/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ru-white: #FFFFFF;
    --ru-blue: #0039A6;
    --ru-red: #D52B1E;
    --dark-bg: #1a1a1a;
    --text-color: #333;
    --light-gray: #f4f4f4;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--ru-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--ru-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--ru-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    margin-left: 20px;
    font-weight: 700;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--ru-red);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, var(--ru-white) 33%, var(--ru-blue) 33%, var(--ru-blue) 66%, var(--ru-red) 66%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5); 
}

.hero-text {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--ru-red);
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    text-transform: uppercase;
    transition: transform 0.3s, background 0.3s;
    border: 2px solid white;
}

.cta-button:hover {
    transform: scale(1.05);
    background-color: #b01f14;
}

/* Sections General */
section {
    padding: 80px 0;
}

.section-light {
    background-color: var(--ru-white);
}

.section-dark {
    background-color: var(--ru-blue);
    color: white;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-transform: uppercase;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background-color: var(--ru-red);
    margin: 15px auto 0;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--light-gray);
    padding: 40px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border-top: 5px solid var(--ru-blue);
}

.card:hover {
    transform: translateY(-10px);
}

.card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    color: var(--ru-blue);
}

/* Law Section */
.law-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.law-text {
    flex: 1;
}

.quote {
    border-left: 4px solid var(--ru-red);
    padding-left: 20px;
    margin-top: 20px;
    font-style: italic;
    font-size: 1.1rem;
}

.law-image-placeholder {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ru-map-stylized {
    font-size: 10rem;
    animation: pulse 3s infinite;
}

/* Analogs Table */
.subtitle {
    text-align: center;
    max-width: 700px;
    margin: -30px auto 50px;
    color: #555;
}

.analogs-table {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.analog-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    padding: 20px;
    border-radius: 8px;
    align-items: center;
}

.header-row {
    background-color: #333;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
}

.analog-row:not(.header-row) {
    background-color: var(--light-gray);
    border-left: 5px solid #ccc;
}

.analog-row:not(.header-row):hover {
    border-left-color: var(--ru-red);
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.bad {
    color: #888;
    text-decoration: line-through;
}

.good {
    color: var(--text-color);
}

.good strong {
    color: var(--ru-blue);
    display: block;
    font-size: 1.1em;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: white;
    text-align: center;
    padding: 40px 0;
}

footer p {
    margin-bottom: 10px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Mobile */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }
    
    nav {
        margin-top: 10px;
    }

    nav a {
        margin: 0 10px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .law-content {
        flex-direction: column;
    }

    .analog-row {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .header-row {
        display: none;
    }
}