:root {
    --color-light-gray: #E7E7E7;
    --color-beige: #FEE5A5;
    --color-dark-gray: #3D3D3D;
    --color-black: #262627;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--color-black);
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--color-black);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 32px;
}

.flag {
    height: 35px;
}

/* Burger */
.burger {
    display: none;
    width: 32px;
    height: 24px;
    position: relative;
    border: none;
    background: transparent;
    cursor: pointer;
}

.burger-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, top 0.3s ease, opacity 0.3s ease;
}

.burger-line:nth-child(1) {
    top: 0;
}

.burger-line:nth-child(2) {
    top: 10px;
}

.burger-line:nth-child(3) {
    top: 20px;
}

.burger.open .burger-line:nth-child(1) {
    top: 10px;
    transform: rotate(45deg);
}

.burger.open .burger-line:nth-child(2) {
    opacity: 0;
}

.burger.open .burger-line:nth-child(3) {
    top: 10px;
    transform: rotate(-45deg);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    flex-wrap: wrap;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--color-beige);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color-dark-gray) 0%, var(--color-black) 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    background-color: var(--color-beige);
    color: var(--color-black);
    padding: 15px 40px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 5px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    margin: 10px;
}

.cta-button:hover {
    background-color: #fdd97a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(254, 229, 165, 0.4);
}

/* Content Sections */
.content-section {
    padding: 60px 0;
}

.content-section:nth-child(even) {
    background-color: var(--color-light-gray);
}

.content-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--color-black);
}

.content-section h3 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--color-dark-gray);
}

.content-section p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.content-section ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.content-section li {
    margin-bottom: 10px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--color-light-gray);
}

th {
    background-color: var(--color-dark-gray);
    color: #fff;
    font-weight: bold;
}

tr:hover {
    background-color: #f5f5f5;
}

/* Image Styles */
.content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Step-by-step Guide */
.step {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #fff;
    border-left: 4px solid var(--color-beige);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.step h3 {
    margin-top: 0;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* FAQ Section */
.faq-item {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.faq-item h3 {
    margin-top: 0;
    color: var(--color-black);
}

/* Footer */
footer {
    background-color: var(--color-black);
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--color-beige);
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--color-beige);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--color-dark-gray);
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
    }
    
    .burger {
        display: block;
    }

    .main-nav {
        width: 100%;
    }

    .main-nav ul {
        display: none;
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding-top: 15px;
    }

    .main-nav.open ul {
        display: flex;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* Таблицы на мобильных: горизонтальный скролл */
    table {
        font-size: 0.9rem;
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
    
    th, td {
        padding: 10px;
        white-space: nowrap;
    }
}

/* Author Block */
.author-block {
    background-color: var(--color-light-gray);
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    border-left: 4px solid var(--color-beige);
}

.author-block p {
    margin-bottom: 10px;
    font-style: italic;
}

.author-block .author-name {
    font-weight: bold;
    color: var(--color-dark-gray);
}

/* Button Container */
.button-container {
    text-align: center;
    margin: 30px 0;
}
