/* Базовые стили */
:root {
    --dark-blue: #0f172a;
    --navy: #1e293b;
    --dark-navy: #0f172a;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --text: #e2e8f0;
    --text-light: #94a3b8;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--dark-blue);
    color: var(--text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.hidden {
    display: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
.header {
    background-color: var(--navy);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.logo span {
    color: var(--accent);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-list a {
    font-weight: 500;
    transition: color 0.3s;
}

.nav-list a:hover {
    color: var(--accent);
}

/* Герой секция */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--dark-navy) 100%);
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-text {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-button {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 12px 35px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: background-color 0.3s;
}

.hero-button:hover {
    background-color: var(--accent-hover);
}

/* Общие стили секций */
.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

section {
    padding: 60px 0;
}

/* Особенности */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.feature-card {
    background-color: var(--navy);
    padding: 25px;
    border-radius: 10px;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--accent);
}

.feature-card p {
    color: var(--text-light);
    font-size: 15px;
}

/* Отзывы */
.reviews {
    background-color: var(--navy);
    padding: 50px 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.review-card {
    background-color: var(--dark-navy);
    padding: 25px;
    border-radius: 10px;
}

.review-card blockquote {
    font-style: italic;
    margin-bottom: 15px;
    position: relative;
    font-size: 15px;
}

.review-card blockquote::before {
    content: '"';
    font-size: 50px;
    color: var(--accent);
    opacity: 0.3;
    position: absolute;
    top: -15px;
    left: -10px;
}

.review-card cite {
    font-style: normal;
    color: var(--text-light);
    font-size: 14px;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--navy);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 18px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    font-size: 16px;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 18px;
    font-size: 22px;
    color: var(--accent);
    transition: transform 0.3s;
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 18px 18px;
    color: var(--text-light);
    font-size: 15px;
}

/* Форма подписки */
.subscribe {
    background-color: var(--navy);
    padding: 50px 0;
}

.subscribe-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 30px;
    background-color: var(--dark-navy);
    border-radius: 10px;
}

.subscribe-box h3 {
    font-size: 22px;
    margin-bottom: 25px;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.subscribe-form input {
    padding: 12px 15px;
    border-radius: 6px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 15px;
}

.subscribe-form input::placeholder {
    color: var(--text-light);
}

.subscribe-button {
    padding: 12px;
    border-radius: 6px;
    border: none;
    background-color: var(--accent);
    color: white;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.subscribe-button:hover {
    background-color: var(--accent-hover);
}

.subscribe-message {
    margin-top: 15px;
    color: var(--accent);
    font-weight: 500;
    font-size: 15px;
}

/* Футер */
.footer {
    background-color: var(--dark-navy);
    padding: 30px 0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--text-light);
    transition: color 0.3s;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-copyright {
    color: var(--text-light);
    font-size: 13px;
}

/* Стили для страниц политик */
.policy-page, 
.cookie-policy-page,
.about-page,
.contacts-page {
    padding: 40px 0;
    line-height: 1.6;
}

.policy-page h1, 
.cookie-policy-page h1,
.about-page h1,
.contacts-page h1 {
    font-size: 32px;
    margin-bottom: 20px;
    text-align: center;
}

.last-updated {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 14px;
}

.policy-section {
    margin: 0 0 25px 0;
    padding: 20px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.policy-section h2 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--accent);
}

.policy-section p, 
.policy-section li {
    margin-bottom: 12px;
    font-size: 15px;
}

.policy-section ul {
    padding-left: 18px;
    margin-bottom: 15px;
}

/* Таблица cookie */
.cookies-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 14px;
}

.cookies-table th, 
.cookies-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--navy);
}

.cookies-table th {
    background-color: var(--navy);
    font-weight: 600;
}

/* Страница "О нас" */
.about-section {
    margin: 0 0 30px 0;
    padding: 20px 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.step {
    background-color: var(--navy);
    padding: 20px;
    border-radius: 8px;
}

.step h3 {
    color: var(--accent);
    margin-bottom: 12px;
    font-size: 17px;
}

.step p {
    font-size: 14px;
}

.principles-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.principles-list li {
    background-color: var(--navy);
    padding: 20px;
    border-radius: 8px;
    list-style: none;
}

.principles-list h3 {
    color: var(--accent);
    margin-bottom: 12px;
    font-size: 17px;
}

.principles-list p {
    font-size: 14px;
}

/* Страница контактов */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.contact-info h2, 
.contact-form-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--accent);
}

.contact-item {
    margin-bottom: 20px;
}

.contact-item h3 {
    color: var(--accent);
    margin-bottom: 8px;
    font-size: 18px;
}

.contact-item p, 
.contact-item address {
    font-size: 15px;
}

.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 15px;
}

.contact-form input, 
.contact-form select, 
.contact-form textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--navy);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 15px;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-button {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 15px;
}

.submit-button:hover {
    background-color: var(--accent-hover);
}

.form-success {
    background-color: rgba(59, 130, 246, 0.1);
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
    text-align: center;
    color: var(--accent);
    font-size: 15px;
}

.map-section h2 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--accent);
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 10px -3px rgba(0, 0, 0, 0.1);
}

/* Адаптив */
@media (max-width: 768px) {
    .features-grid,
    .reviews-grid,
    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    section {
        padding: 50px 0;
    }

    .header .container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-list {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .policy-page, 
    .cookie-policy-page,
    .about-page,
    .contacts-page {
        padding: 30px 0;
    }

    .policy-section,
    .about-section {
        margin-bottom: 20px;
        padding: 15px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }

    .policy-page h1, 
    .cookie-policy-page h1,
    .about-page h1,
    .contacts-page h1 {
        font-size: 28px;
    }
}