/* =========================================
   БАЗОВЫЕ СТИЛИ И СБРОС
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

html {
    scroll-behavior: smooth; /* Плавная прокрутка */
    scroll-padding-top: 80px; /* Отступ при прокрутке, чтобы шапка не перекрывала заголовок */
}

body {
    background-color: #f9f9f9;
    color: #111;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =========================================
   ШАПКА (HEADER)
   ========================================= */
.header {
    background-color: #fff;
    padding: 15px 0;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky; /* Липкая шапка */
    top: 0;
    z-index: 100;
}

.header__container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo__img {
    height: 50px;
    width: auto;
    margin-right: 15px;
}

.logo__text {
    display: flex;
    flex-direction: column;
}

.logo__title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.logo__title-blue {
    color: #3498db;
}

.logo__subtitle {
    font-size: 10px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
    margin-top: 2px;
    text-transform: uppercase;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav__link {
    font-size: 15px;
    font-weight: 600;
    transition: color 0.3s;
}

.nav__link:hover {
    color: #3498db;
}

.header__actions {
    display: flex;
    gap: 15px;
}

/* --- Кнопки (Общие) --- */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    border: 2px solid transparent;
}

.btn--outline {
    background-color: transparent;
    border-color: #3498db;
    color: #000;
}

.btn--outline:hover {
    background-color: #f0f8ff;
}

.btn--green {
    background-color: #88e17d;
    border-color: #88e17d;
    color: #000;
}

.btn--green:hover {
    background-color: #7ad16f;
    border-color: #7ad16f;
}

/* =========================================
   ОСНОВНОЙ БЛОК (HERO)
   ========================================= */
.hero {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.hero__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero__content {
    flex: 0 0 45%;
    max-width: 550px;
}

.hero__subtitle {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.hero__title {
    font-size: 32px;
    line-height: 1.3;
    font-weight: 700;
    color: #111;
    margin-bottom: 20px;
}

.hero__desc {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 30px;
    font-weight: 600;
}

.features {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.features__item {
    display: flex;
    align-items: center;
    font-size: 15px;
    color: #222;
    font-weight: 600;
    margin-bottom: 15px;
}

.features__icon {
    color: #2ecc71;
    font-size: 20px;
    margin-right: 10px;
    font-weight: bold;
}

.hero__actions {
    display: flex;
    gap: 15px;
}

.hero__actions .btn {
    padding: 14px 30px;
    font-size: 15px;
}

.hero__image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero__image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* =========================================
   БЛОК "О ПРОГРАММЕ" (ABOUT)
   ========================================= */
.about {
    padding: 80px 0;
    background-color: #fff;
}

.about__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.about__top {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 80px;
}

.about__text {
    flex: 0 0 48%;
}

.about__title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 25px;
}

.about__lead {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
}

.about__desc {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 30px;
}

.about__order {
    display: flex;
    background-color: #f5f6f8;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    gap: 20px;
}

.about__order-text h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.about__order-text p {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.about__auto-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.auto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.auto-item__header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 12px;
}

.auto-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #e1f0fa;
    border-radius: 8px;
    font-size: 18px;
}

.auto-icon--green {
    background-color: #e6f9ea;
}

.auto-item h4 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.auto-item p {
    font-size: 13px;
    line-height: 1.5;
    color: #666;
}

.about__image {
    flex: 1;
}

.about__image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.about__bottom-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.benefit-card {
    border: 2px solid #e6f9ea;
    border-radius: 16px;
    padding: 30px;
    background-color: #fff;
    transition: border-color 0.3s;
}

.benefit-card:hover {
    border-color: #88e17d;
}

.benefit-card__header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 1px solid #ddd;
    border-radius: 50%;
    font-size: 20px;
    flex-shrink: 0;
}

.benefit-card h4 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.benefit-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

/* =========================================
   БЛОК "ТАРИФ" (PRICING)
   ========================================= */
.pricing {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.pricing__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.pricing__title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch; /* Растягиваем карточки на одну высоту */
}

.pricing-card {
    background-color: #fff;
    border: 2px solid #3498db;
    border-radius: 16px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.pricing-card--popular {
    border-color: #88e17d;
    box-shadow: 0 10px 30px rgba(136, 225, 125, 0.2);
}

.pricing-card__badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #88e17d;
    color: #000;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 15px;
    border-radius: 20px;
    text-transform: uppercase;
}

.pricing-card__name {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.pricing-card__spacer {
    flex-grow: 1;
}

.pricing-card__details {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pricing-card__price {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.pricing-card__desc {
    font-size: 13px;
    color: #555;
    margin-bottom: 30px;
    font-weight: 600;
}

.pricing-card__features {
    width: 100%;
    text-align: left;
}

.pricing-card__features-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.pricing-card__features ul {
    list-style: none;
}

.pricing-card__features li {
    position: relative;
    padding-left: 20px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 10px;
    color: #333;
}

.pricing-card__features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #2ecc71;
    font-weight: bold;
}

/* =========================================
   БЛОК FAQ
   ========================================= */
.faq {
    padding: 80px 0;
    background-color: #fff;
}

.faq__container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq__title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
}

.faq__item {
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.faq__question {
    font-size: 18px;
    font-weight: 600;
    padding: 20px 0;
    cursor: pointer;
    list-style: none; /* Убираем стандартный треугольник */
    position: relative;
    padding-right: 30px;
}

/* Кастомная стрелочка */
.faq__question::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #3498db;
    transition: transform 0.3s;
}

.faq__item[open] .faq__question::after {
    content: "−";
}

.faq__question::-webkit-details-marker {
    display: none; /* Убираем маркер в Safari/Chrome */
}

.faq__answer {
    padding-bottom: 20px;
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

/* =========================================
   БЛОК CTA (Призыв к действию)
   ========================================= */
.cta {
    padding: 80px 0;
    background-color: #f0f8ff; /* Легкий синий фон */
    text-align: center;
}

.cta__container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta__title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta__desc {
    font-size: 16px;
    color: #555;
    margin-bottom: 30px;
}

.cta__actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta__actions .btn {
    padding: 15px 40px;
    font-size: 16px;
}

/* =========================================
   ПОДВАЛ (FOOTER)
   ========================================= */
.footer {
    background-color: #111;
    color: #fff;
    padding: 60px 0 30px;
}

.footer__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer__info {
    flex: 0 0 300px;
}

.footer__info .logo__title {
    color: #fff; /* Белый текст в подвале */
}

.footer__copy {
    margin-top: 20px;
    font-size: 13px;
    color: #888;
    line-height: 1.5;
}

.footer__links h4, .footer__contacts h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.footer__links ul {
    list-style: none;
}

.footer__links li {
    margin-bottom: 10px;
}

.footer__links a, .footer__contacts a {
    color: #aaa;
    font-size: 14px;
    transition: color 0.3s;
}

.footer__links a:hover, .footer__contacts a:hover {
    color: #88e17d;
}

.footer__contacts p {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 10px;
}

/* =========================================
   АДАПТИВНОСТЬ
   ========================================= */
@media (max-width: 992px) {
    .header__container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .nav {
        order: 3;
        width: 100%;
    }

    .nav__list {
        justify-content: center;
        gap: 15px;
    }

    .hero__container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero__content {
        flex: 1 1 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero__image {
        flex: 1 1 100%;
        justify-content: center;
        margin-top: 40px;
    }

    .hero__actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .features__item {
        justify-content: flex-start;
        text-align: left;
    }

    .about__top {
        flex-direction: column;
    }
    
    .about__text {
        flex: 1 1 100%;
    }

    .about__image {
        margin-top: 40px;
    }

    .auto-grid, .benefits-grid {
        grid-template-columns: 1fr;
    }

    .pricing__grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .cta__actions {
        flex-direction: column;
        align-items: center;
    }

    .cta__actions .btn {
        width: 100%;
        max-width: 300px;
    }

    .footer__container {
        flex-direction: column;
        text-align: center;
    }

    .footer__info {
        flex: 1 1 100%;
    }

    .footer__info .logo {
        justify-content: center;
    }
}
/* =========================================
   ДОПОЛНЕНИЯ: бургер, кнопки тарифов, модальное окно, формы
   ========================================= */
:focus-visible {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

.header.is-scrolled {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.nav__link.is-active {
    color: #3498db;
}

.burger {
    display: none;
    width: 42px;
    height: 42px;
    border: 2px solid #3498db;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #111;
    transition: transform 0.3s, opacity 0.3s;
}

.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.pricing-card__btn {
    margin-top: 25px;
    width: 100%;
}

.pricing-card--popular .pricing-card__btn {
    background-color: #2ecc71;
    border-color: #2ecc71;
}

/* Появление блоков при прокрутке */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* Модальное окно */
.modal[hidden] { display: none; }

.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.55);
}

.modal__box {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: 100%;
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    padding: 35px 30px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.modal__close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: 0;
    background: none;
    font-size: 30px;
    line-height: 1;
    color: #888;
    cursor: pointer;
}

.modal__close:hover { color: #111; }

.modal__title {
    font-size: 24px;
    margin-bottom: 8px;
}

.modal__desc {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

.form__field {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 14px;
}

.form__field input,
.form__field select {
    display: block;
    width: 100%;
    margin-top: 5px;
    padding: 11px 12px;
    font-size: 15px;
    border: 1px solid #ccd3da;
    border-radius: 8px;
    background: #fff;
}

.form__field input:focus,
.form__field select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.form__field .is-invalid,
.form__check .is-invalid {
    border-color: #e74c3c;
}

.form__check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    color: #555;
    margin-bottom: 14px;
}

.form__check input { margin-top: 3px; }

.form__error {
    color: #e74c3c;
    font-size: 13px;
    margin-bottom: 12px;
}

.form__submit { width: 100%; padding: 14px; font-size: 15px; }

.form__success {
    font-size: 16px;
    font-weight: 600;
    color: #1e8449;
    text-align: center;
    padding: 20px 0 5px;
}

body.is-locked { overflow: hidden; }

/* Адаптив: планшет/телефон */
@media (max-width: 992px) {
    .burger { display: flex; }

    .header__container { justify-content: space-between; flex-wrap: wrap; }

    .nav {
        order: 4;
        width: 100%;
        display: none;
    }

    .nav.is-open { display: block; }

    .nav__list { flex-direction: column; align-items: center; gap: 4px; padding-top: 8px; }
    .nav__link { display: block; padding: 10px; font-size: 16px; }

    .header__actions { order: 3; margin-left: auto; margin-right: 10px; }
}

@media (max-width: 576px) {
    .logo__subtitle { display: none; }
    .logo__title { font-size: 20px; }
    .header__actions .btn--outline { display: none; }
    .header__actions .btn { padding: 8px 14px; }

    .hero, .about, .pricing, .faq, .cta { padding: 50px 0; }
    .hero__title { font-size: 24px; }
    .about__title, .pricing__title, .faq__title { font-size: 28px; }
    .cta__title { font-size: 24px; }
    .about__order { flex-direction: column; padding: 20px; }
    .benefit-card { padding: 20px; }
    .faq__question { font-size: 16px; }
    .footer__container { align-items: center; }
}

.pricing-card.reveal.is-visible:hover { transform: translateY(-5px); }


/* =========================================
   СТРАНИЦА ДОКУМЕНТАЦИИ (docs.html)
   ========================================= */
.docs { padding: 60px 0 80px; background-color: #f9f9f9; }

.docs__container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.docs__header { margin-bottom: 40px; }

.docs__title { font-size: 32px; font-weight: 700; margin-bottom: 10px; }

.docs__subtitle { font-size: 16px; color: #555; }

.docs__nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }

.docs__nav a {
    display: inline-block; padding: 8px 18px; background: #fff;
    border: 1px solid #e0e4e8; border-radius: 20px; font-size: 14px; font-weight: 600;
    color: #333; transition: all 0.3s;
}

.docs__nav a:hover { border-color: #3498db; color: #3498db; }

.docs-section {
    background: #fff; border-radius: 12px; padding: 35px 40px;
    margin-bottom: 25px; box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.docs-section h2 {
    font-size: 22px; font-weight: 700; margin-bottom: 18px;
    padding-left: 14px; border-left: 4px solid #3498db;
}

.docs-section h3 { font-size: 16px; font-weight: 700; margin: 18px 0 8px; }

.docs-section p { font-size: 15px; line-height: 1.6; color: #333; margin-bottom: 12px; }

.docs-section ul, .docs-section ol { margin: 8px 0 12px 22px; }

.docs-section li { font-size: 15px; line-height: 1.6; color: #333; margin-bottom: 6px; }

.docs-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }

.docs-table th, .docs-table td { border: 1px solid #e0e4e8; padding: 10px 12px; text-align: left; vertical-align: top; }

.docs-table th { background: #f0f7fc; font-weight: 700; }

.docs-table tr:nth-child(even) td { background: #fafcfd; }

.docs-note {
    background: #f0f9f0; border-left: 4px solid #2ecc71;
    padding: 12px 16px; border-radius: 6px; margin: 14px 0; font-size: 14px; color: #333;
}

.docs-section code {
    background: #f0f2f4; padding: 2px 6px; border-radius: 4px; font-size: 13px;
    font-family: Consolas, monospace;
}

.docs-download {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    gap: 20px; background: #f0f7fc; border-radius: 12px; padding: 25px 30px; margin-top: 15px;
}

.docs-download p { margin: 0; font-weight: 600; }

.docs-green { color: #2ecc71; }
