:root {
    --sp-green: #5BB450;
    --bg-light: #f5f5f7;
    --text-main: #151515;
    --text-muted: #666;
    --border-soft: #e1e1e6;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}
/* -------------------------------------- */
/*              TYPOGRAPHY                */
/* -------------------------------------- */

:root {
    --font-main: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --heading-color: #0f210f; /* строгий тёмно-зелёный оттенок */
    --text-color: #111;
    --line-height-tight: 1.1;

    --accent-green: #5BB450; /* логотип */
}

/* Общие стили текста */
body {
    font-family: var(--font-main);
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.55;
}

/* -------------------------------------- */
/*             ЗАГОЛОВКИ                  */
/* -------------------------------------- */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    font-weight: 700;
    color: var(--heading-color);
    letter-spacing: -0.5px;
    line-height: var(--line-height-tight);
    margin: 0 0 16px 0;
}

/* H1 — крупный, мощный */
h1 {
    font-size: clamp(2.6rem, 5vw, 3.4rem);  /* 42px → 54px */
    font-weight: 800;                      
    letter-spacing: -0.8px;
    text-align: center;
}

/* H2 — заголовки секций */
h2 {
    font-size: clamp(2rem, 4vw, 2.6rem);   /* 32px → 42px */
    font-weight: 700;
    text-align: center;
}

/* H3 — заголовки карточек/блоков */
h3 {
    font-size: 1.4rem; /* около 22px */
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}

/* H4–H6 мин */
h4 {
    font-size: 1.2rem;
    font-weight: 600;
}
h5 {
    font-size: 1rem;
    font-weight: 600;
}
h6 {
    font-size: 0.9rem;
    opacity: 0.7;
}
body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-main);
    background: #ffffff;
}

a {
    color: var(--sp-green);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(3px);
    background: rgba(255,255,255,0.5);
    border-bottom: 1px solid rgba(225,225,230,0.7);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-mark {
    background: var(--sp-green);
    color: #fff;
    border-radius: 10px;
    padding: 4px 10px;
    font-weight: 700;
    font-size: 0.9rem;
}

.logo-text {
    font-weight: 600;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.95rem;
}

.top-nav a {
    white-space: nowrap;
}

/* Buttons */

.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary {
    background: var(--sp-green);
    color: #fff;
}

.btn-primary:hover {
    filter: brightness(1.05);
}

.btn-outline {
    border-color: var(--sp-green);
    color: var(--sp-green);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(91,180,80,0.06);
}

/* Hero */

.hero {
    background: radial-gradient(circle at top left, #e9f8ec, #ffffff 60%);
    padding: 60px 0 50px;
}

.hero-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: center;
}

.hero-text {
    flex: 1 1 280px;
}

.hero-text h1 {
    margin-top: 0;
    font-size: 2.4rem;
    line-height: 1.1;
    margin-bottom: 12px;
}

.hero-text p {
    margin-top: 0;
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 520px;
}

.hero-actions {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-badge {
    font-size: 0.9rem;
    padding: 6px 12px;
    background: #f4fbf4;
    border-radius: 999px;
    border: 1px solid rgba(91,180,80,0.3);
    color: var(--sp-green);
}

.hero-visual {
    flex: 0 0 280px;
    display: flex;
    justify-content: center;
}

.hero-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.08);
    padding: 18px 20px;
    min-width: 240px;
}

.hero-card-title {
    font-weight: 600;
    margin-bottom: 10px;
}

.hero-card-line {
    height: 8px;
    border-radius: 999px;
    margin-bottom: 6px;
    background: #f2f2f7;
}

.hero-card-line--wide {
    width: 90%;
    background: linear-gradient(90deg, var(--sp-green), #9ad88f);
}

.hero-card-line--short {
    width: 55%;
}

.hero-card-tag {
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Sections */

.section {
    padding: 40px 0;
}

.section--light {
    background: var(--bg-light);
}

.section--cta {
    background: linear-gradient(135deg, #5BB450, #3a8137);
    color: #fff;
}

.section--contact {
    background: #fafafa;
}

.section h2 {
    margin-top: 0;
    font-size: 1.8rem;
}

/* Grid + Cards */

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.card {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.04);
}

/* Steps */

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.step-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.03);
    position: relative;
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--sp-green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

/* CTA */

.cta-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
}

.section--cta p {
    max-width: 520px;
}

/* Contact */

.contact-form {
    max-width: 500px;
    margin-top: 20px;
}

.form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.form-row label {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.form-row input,
.form-row textarea {
    border-radius: 10px;
    border: 1px solid var(--border-soft);
    padding: 8px 10px;
    font: inherit;
    resize: vertical;
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--border-soft);
    background: #f8f8fa;
    padding: 18px 0;
    margin-top: 30px;
    font-size: 0.9rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.footer-col {
    flex: 1 1 160px;
}

.footer-col--small {
    text-align: right;
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: row;
        align-items: flex-start;
    }
    .top-nav {
        overflow-x: auto;
        width: 100%;
        padding-bottom: 6px;
    }
    .hero-inner {
        flex-direction: column;
    }
    .footer-col--small {
        text-align: left;
    }
}
/* -LOGO- */
.logo-img {
    height: 46px; 
    width: auto;
    display: block;
}
@media (max-width: 600px) {
    .logo-img {
        height: 38px;
    }
}
/* --------------------------------------------- */
/* ADAPTIVE NAVIGATION                           */
/* --------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(3px);
    background: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(225,225,230,0.7);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.logo-img {
    height: 48px;
    width: auto;
}
/* LOGO ANIMATION */
.logo-img {
    height: 40px;
    width: auto;
    transform-origin: left center;
    opacity: 0;
    transform: translateY(10px) scale(1);
    transition: opacity 0.6s ease, transform 0.4s ease;
}

/* когда страница загружена */
.logo-loaded .logo-img {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* при скролле вниз – уменьшаем логотип */
.header-small .logo-img {
    transform: translateY(0) scale(0.85);
    transition: transform 0.25s ease;
}


/* Desktop navigation */
.top-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* ------ Burger button ------ */

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 99;
    margin: 0px 15px 0px 0px;
}

.nav-toggle-line {
    width: 100%;
    height: 3px;
    background-color: #0f210f;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ------ MOBILE STYLES ------ */

@media (max-width: 820px) {

    /* показываем burger */
    .nav-toggle {
        display: flex;
    }

    /* скрываем меню по умолчанию */
    .top-nav {
        position: absolute;
        top: 70px;
        right: 0;
        left: 0;
        background: #fffffff2;
        display: flex;
        flex-direction: column;
        gap: 18px;
        padding: 20px;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        box-shadow: 0 8px 20px rgba(0,0,0,0.05);

        max-height: 0;      /* скрыто */
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: all 0.35s ease;
    }

    /* когда активное (открыто) */
    .top-nav.active {
        max-height: 300px;
        opacity: 1;
        pointer-events: auto;
        top: 0;
        border-radius: 20px;
        margin: 5px 0px 5px 0px;
        box-shadow: inset 0px 0px 5px 2px #ffd70075;
    }

    .top-nav a {
        font-size: 1.1rem;
    }

    /* Анимация бургер → крестик */
    .nav-toggle.active .nav-toggle-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .nav-toggle-line:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .nav-toggle-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}
/* SCROLL-REVEAL ANIMATION */

.reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0px) scale(1);
}
/* HERO PARALLAX */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-parallax {
    will-change: transform;
    transition: transform 0.1s linear;
}
/* =======================================
   STEP 4 — CARD MICRO ANIMATIONS
======================================= */

/* Базовое состояние карточек */
.vorteil-item,
.ablauf-step,
.paket {
    border-radius: 10px;
    box-shadow: 1px 1px 2px 0.5px #9e9e9e7a;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    margin: 15px 0px 10px 0px;
}

/* Hover эффект: лёгкое поднятие и подсветка */
.vorteil-item:hover,
.ablauf-step:hover,
.paket:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 14px 32px rgba(0,0,0,0.10);
}
/* SPECIAL HOVER для популярного пакета */
.paket--popular:hover {
    box-shadow:
        0 14px 32px rgba(91,180,80,0.22),
        0 0 0 2px rgba(91,180,80,0.35);
    transform: translateY(-8px) scale(1.02);
}
/* эффекты для step круга */
.ablauf-step .step-number {
    transition: background 0.25s ease, transform 0.25s ease;
}

.ablauf-step:hover .step-number {
    background: var(--color-primary-dark);
    transform: scale(1.1);
}
.vorteil-item:hover {
    box-shadow:
        0 10px 28px rgba(0,0,0,0.12),
        0 0 0 1px rgba(91,180,80,0.18);
}
.paket:hover ul li {
    color: var(--color-text);
}
/* =============================
   FORM STYLES (Soft Design)
============================= */

.form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

label {
    font-weight: 600;
    margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
textarea {
    padding: 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(91,180,80,0.2);
    outline: none;
}
/* =======================================
   ICON BUTTONS (WhatsApp / Telegram / Email)
======================================= */

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 999px; /* pills */
    font-size: 0.95rem;
}

.btn-icon-img {
    width: 20px;
    height: 20px;
    display: block;
}

/* WhatsApp — зелёная */
.btn-whatsapp {
    background: #25D366;
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
    border: none;
}
.btn-whatsapp:hover {
    background: #1fb257;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    transform: translateY(-2px);
}

/* Telegram — синяя */
.btn-telegram {
    background: #27A5E7;
    color: #fff;
    box-shadow: 0 4px 14px rgba(39, 165, 231, 0.3);
    border: none;
}
.btn-telegram:hover {
    background: #1f8bc2;
    box-shadow: 0 6px 20px rgba(39, 165, 231, 0.45);
    transform: translateY(-2px);
}

/* Email — нейтральная */
.btn-email {
    border: 1px solid var(--color-border);
    background: #ffffff;
    color: #374151;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.btn-email:hover {
    border-color: #4B5563;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}
/* =======================================
   SUPER SOFT PREMIUM FORM STYLE
======================================= */

/* Контейнер формы */
.kontakt-form {
    margin-top: 48px;
    padding: 40px;
    background: linear-gradient(145deg, #ffffff, #f5f7f8);
    border-radius: 24px;

    box-shadow:
        0 20px 40px rgba(0,0,0,0.06),
        0 0 0 1px rgba(255,255,255,0.6),
        inset 0 0 40px rgba(255,255,255,0.5);

    border: 1px solid rgba(0,0,0,0.05);

    backdrop-filter: blur(8px);
    animation: formFadeIn 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

/* Анимация появления */
@keyframes formFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Группы полей */
.kontakt-form .form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

/* Текст меток */
.kontakt-form label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #1f2937;
}

/* Поля */
.kontakt-form input,
.kontakt-form textarea {
    padding: 16px;
    border-radius: 14px;
    
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.9);

    font-size: 1rem;
    font-family: 'Inter', sans-serif;

    transition: all 0.25s ease;
    box-shadow:
        inset 0 2px 4px rgba(0,0,0,0.04),
        inset 0 1px 6px rgba(255,255,255,0.6);
}

/* Фокус эффект — мягкое свечение */
.kontakt-form input:focus,
.kontakt-form textarea:focus {
    border-color: var(--color-primary);
    box-shadow:
        0 0 0 3px rgba(91,180,80,0.28),
        inset 0 2px 4px rgba(0,0,0,0.05);
    outline: none;
}

/* Кнопка отправки */
.kontakt-form button[type="submit"] {
    width: 100%;
    padding: 16px;
    margin-top: 10px;

    border-radius: 16px;
    font-size: 1.05rem;

    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #000000;
    border: none;

    box-shadow:
        0 8px 20px rgba(91,180,80,0.25),
        inset 0 0 20px rgba(255,255,255,0.2);

    transition: all 0.25s ease;
}

/* Hover */
.kontakt-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 26px rgba(91,180,80,0.33),
        inset 0 0 28px rgba(255,255,255,0.3);
}
.legal-page {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px 10px;
}

.legal-page h1 {
    margin-bottom: 24px;
    font-size: 2rem;
}

.legal-page h2 {
    margin-top: 28px;
    font-size: 1.25rem;
    color: #111;
}

.legal-page p,
.legal-page ul {
    margin-top: 8px;
    line-height: 1.6;
    color: #444;
}

.legal-page ul {
    padding-left: 20px;
}
/* =======================================
   OLD PAPER / PARCHMENT EFFECT
======================================= */

.legal-page {
    hyphens: auto;
    /*max-width: 900px;*/
    margin: 40px auto;
    /*padding: 40px 50px;*/

    background: url('../img/paper.jpg') center/cover no-repeat;
    border-radius: 12px;

    box-shadow:
        0 10px 25px rgba(0,0,0,0.15),
        0 0 0 6px rgba(255,255,255,0.4),
        inset 0 0 40px rgba(0,0,0,0.15);

    color: #3a2f1d;
    font-family: "Georgia", "Times New Roman", serif;

    border: 1px solid rgba(0,0,0,0.2);
    line-height: 1.75;
    position: relative;
}
.legal-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        rgba(0,0,0,0.25),
        transparent 60%
    );
    mix-blend-mode: multiply;
    opacity: 0.4;
    pointer-events: none;
    border-radius: 12px;
}
.legal-page h1,
.legal-page h2 {
    font-family: "Georgia", serif;
    color: #2c2418;
}

.legal-page h1 {
    font-size: 2.4rem;
    margin-bottom: 20px;
}

.legal-page h2 {
    margin-top: 28px;
    font-size: 1.4rem;
}
.legal-page h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 2px;
    margin-top: 6px;
    background: rgba(0,0,0,0.25);
}
