/* ==========================================
   МАМИ АГРО — style.css
   ========================================== */

:root {
    --green-dark: #1a4d08;
    --green-primary: #2e7d12;
    --green-mid: #3d9a18;
    --green-light: #4caf20;
    --green-pale: #e8f5e9;
    --green-bg: #f4faf0;
    --yellow: #f5b800;
    --yellow-light: #fff3cd;
    --yellow-dark: #d49a00;
    --white: #ffffff;
    --text: #1a2e0a;
    --text-mid: #3a5228;
    --text-muted: #6b8059;
    --border: #cce5b8;
    --shadow: 0 4px 24px rgba(46, 125, 18, 0.10);
    --shadow-lg: 0 8px 48px rgba(46, 125, 18, 0.16);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s ease;
    --container: 1340px;
    --header-h: 80px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

ul {
    list-style: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

input:focus, textarea:focus {
    border-color: var(--green-primary);
    box-shadow: 0 0 0 3px rgba(46, 125, 18, 0.12);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.btn--primary {
    background: var(--green-primary);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(46, 125, 18, 0.3);
}

.btn--primary:disabled {
    background: #a5c898;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.btn--primary:hover {
    background: var(--green-dark);
    box-shadow: 0 6px 24px rgba(46, 125, 18, 0.4);
    transform: translateY(-1px);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--white);
}

.btn--ghost {
    background: transparent;
    color: var(--green-primary);
    border: 2px solid var(--green-primary);
}

.btn--ghost:hover {
    background: var(--green-pale);
}

.btn--lg {
    padding: 16px 36px;
    font-size: 1rem;
    border-radius: var(--radius);
}

.btn--full {
    width: 100%;
}

.section {
    padding: 96px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.section-label {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green-primary);
    background: var(--green-pale);
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll:nth-child(2) {
    transition-delay: 0.1s;
}

.animate-on-scroll:nth-child(3) {
    transition-delay: 0.2s;
}

.animate-on-scroll:nth-child(4) {
    transition-delay: 0.3s;
}

/* ==========================================
   HEADER
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.header--scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-icon {
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text__name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--white);
    transition: color var(--transition);
    letter-spacing: 0.02em;
}

.header--scrolled .logo-text__name {
    color: var(--green-dark);
}

.logo-text__tagline {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    transition: color var(--transition);
}

.header--scrolled .logo-text__tagline {
    color: var(--text-muted);
}

.header__nav {
    margin-left: auto;
}

.nav__list {
    display: flex;
    gap: 4px;
}

.nav__link {
    padding: 8px 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.header--scrolled .nav__link {
    color: var(--text-mid);
}

.nav__link:hover {
    color: var(--yellow);
    background: rgba(255, 255, 255, 0.12);
}

.header--scrolled .nav__link:hover {
    color: var(--green-primary);
    background: var(--green-pale);
}

.header__contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

.header__phone {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--white);
    transition: color var(--transition);
}

.header--scrolled .header__phone {
    color: var(--green-dark);
}

.header__phone:hover {
    color: var(--yellow);
}

.header--scrolled .header__phone:hover {
    color: var(--green-primary);
}

.header__email {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition);
}

.header--scrolled .header__email {
    color: var(--text-muted);
}

.header__email:hover {
    color: var(--yellow);
}

.header__cta {
    flex-shrink: 0;
}

/* Телефон в мобильном меню — скрыт на десктопе */
.nav__mobile-phone {
    display: none;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    margin-left: auto;
    flex-shrink: 0;
}

.burger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}

.header--scrolled .burger span {
    background: var(--green-dark);
}

/* translateY сначала — смещаем к центру, затем rotate — крутим на месте */
.burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================
   HERO
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + 40px) 0 60px;
    overflow: hidden;
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
            135deg,
            rgba(20, 60, 5, 0.72) 0%,
            rgba(30, 92, 10, 0.62) 50%,
            rgba(15, 40, 5, 0.70) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 1;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 184, 0, 0.2);
    border: 1px solid rgba(245, 184, 0, 0.5);
    color: var(--yellow);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.hero__badge::before {
    content: '';
    width: 6px;
    height: 6px;
    min-width: 6px;
    flex-shrink: 0;
    background: var(--yellow);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.4);
    }
}

.hero__title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 20px;
}

.hero__title .accent {
    color: var(--yellow);
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 36px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero__stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero__stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 160px;
}

.hero__stat strong {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--yellow);
    line-height: 1;
}

.hero__stat span {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero__scroll-arrow {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(255, 255, 255, 0.6);
    animation: bounce 2s infinite;
}

.hero__scroll-arrow svg {
    width: 36px;
    height: 36px;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* ==========================================
   PRODUCT SECTION
   ========================================== */
.product {
    background: var(--white);
}

.product__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.gallery__main {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--green-pale);
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}

.gallery__main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    cursor: zoom-in;
}

.gallery__main-img:hover {
    transform: scale(1.03);
}

.gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.gallery__thumb {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.65;
    border: 2.5px solid transparent;
    transition: all var(--transition);
}

.gallery__thumb:hover,
.gallery__thumb.active {
    opacity: 1;
    border-color: var(--green-primary);
}

.gallery__video-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow);
}

.gallery__video {
    width: 100%;
    display: block;
    max-height: 220px;
    object-fit: cover;
}

.gallery__video-caption {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 8px;
    background: #f8f8f8;
}

.product__name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.25;
}

.product__desc {
    font-size: 0.97rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 16px;
}

.specs__title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--text);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}

.specs-table-wrap {
    margin-bottom: 28px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.specs-table tr {
    border-bottom: 1px solid var(--border);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 10px 12px;
    line-height: 1.4;
}

.specs-table td:first-child {
    color: var(--text-muted);
    width: 55%;
}

.specs-table td:last-child {
    color: var(--text);
}

.specs-table tr:nth-child(even) td {
    background: var(--green-bg);
}

.product__cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ==========================================
   PRODUCTION LINE SECTION
   ========================================== */
.lineup {
    background: var(--green-bg);
    position: relative;
    overflow: hidden;
}

.lineup::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(46, 125, 18, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.lineup__flow {
    display: flex;
    align-items: stretch;
    gap: 0;
    overflow-x: auto;
    padding-bottom: 8px;
}

.lineup__item {
    flex: 1;
    min-width: 180px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1.5px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
}

.lineup__item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.lineup__item--highlight {
    background: linear-gradient(135deg, #fff8e1, #fffde7);
    border-color: var(--yellow);
    border-width: 2px;
    box-shadow: 0 8px 32px rgba(245, 184, 0, 0.2);
}

.lineup__icon {
    width: 72px;
    height: 72px;
    margin-bottom: 16px;
}

.lineup__icon svg {
    width: 100%;
    height: 100%;
}

.lineup__num {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.75rem;
    color: var(--green-primary);
    background: var(--green-pale);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.lineup__num--accent {
    color: var(--yellow-dark);
    background: var(--yellow-light);
}

.lineup__title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.3;
}

.lineup__text {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.lineup__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 4px;
}

.lineup__arrow svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.lineup__cta {
    text-align: center;
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.lineup__cta p {
    font-size: 1rem;
    color: var(--text-muted);
}

/* ==========================================
   ADVANTAGES SECTION
   ========================================== */
.advantages {
    background: var(--white);
}

.advantages__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.advantage-card {
    background: var(--green-bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    transition: all var(--transition);
}

.advantage-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--green-light);
}

.advantage-card__icon {
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
}

.advantage-card__icon svg {
    width: 100%;
    height: 100%;
}

.advantage-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.3;
}

.advantage-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ==========================================
   CONTACTS SECTION
   ========================================== */
.contacts {
    background: var(--green-bg);
}

.contacts__layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 56px;
    align-items: start;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 28px;
}

.contact-item__icon {
    width: 44px;
    height: 44px;
    background: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.contact-item__icon svg {
    width: 22px;
    height: 22px;
}

.contact-item__label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-item__value {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    transition: color var(--transition);
}

a.contact-item__value:hover {
    color: var(--green-primary);
}

.contacts__social {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.contacts__social p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.social-link svg {
    width: 22px;
    height: 22px;
}

.social-link--max {
    background: linear-gradient(135deg, #8d28c8, #007aff);
    color: var(--white);
}

.social-link--max:hover {
    background: linear-gradient(135deg, #7a20b0, #006ae0);
    transform: translateY(-2px);
}

.social-link--tg {
    background: #0088cc;
    color: var(--white);
}

.social-link--tg:hover {
    background: #006ea6;
    transform: translateY(-2px);
}

.contacts__form {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.form__title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 24px;
}

.form__group {
    margin-bottom: 18px;
}

.form__group label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-mid);
    margin-bottom: 6px;
}

.form__privacy {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
    line-height: 1.5;
}

.form__privacy a {
    color: var(--green-primary);
    text-decoration: underline;
}

.form__consent {
    margin-bottom: 18px;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.consent-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.consent-box {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 5px;
    background: var(--white);
    margin-top: 1px;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.consent-box::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    border: 2px solid var(--white);
    border-top: none;
    border-left: none;
    transform: rotate(45deg) scale(0);
    transition: transform 0.15s ease;
}

.consent-checkbox:checked + .consent-box {
    background: var(--green-primary);
    border-color: var(--green-primary);
}

.consent-checkbox:checked + .consent-box::after {
    transform: rotate(45deg) scale(1);
}

.consent-checkbox:focus-visible + .consent-box {
    box-shadow: 0 0 0 3px rgba(46, 125, 18, 0.2);
}

.consent-label:hover .consent-box {
    border-color: var(--green-primary);
}

.consent-checkbox:required:invalid + .consent-box {
    border-color: var(--border);
}

.consent-text {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.consent-text a {
    color: var(--green-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.consent-text a:hover {
    color: var(--green-dark);
}

.consent-label.consent--error .consent-box {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* Honeypot — скрыто от людей, видно ботам */
.form__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    visibility: hidden;
}

.form__error-msg {
    background: #fef2f2;
    border: 1.5px solid #fca5a5;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 0.88rem;
    color: #b91c1c;
}

.form__error-msg p {
    margin: 0;
    line-height: 1.6;
}

.form__error-msg p + p {
    margin-top: 4px;
}

.form__success {
    text-align: center;
    padding: 32px 20px;
}

.form__success h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--green-primary);
    margin-bottom: 10px;
}

.form__success p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--green-dark);
    padding: 32px 0;
}

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

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}

.footer__copy {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    flex: 1;
    text-align: center;
}

.footer__nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer__nav a {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
}

.footer__nav a:hover {
    color: var(--yellow);
}

/* ==========================================
   MODAL
   ========================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 30, 5, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: var(--radius);
    padding: 44px 40px;
    max-width: 500px;
    width: 100%;
    position: relative;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.35s ease;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

.modal-overlay.open .modal {
    transform: translateY(0) scale(1);
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-pale);
    transition: background var(--transition);
}

.modal__close:hover {
    background: var(--border);
}

.modal__close svg {
    width: 18px;
    height: 18px;
    color: var(--text-mid);
}

.modal__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.modal__header h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text);
}

.modal > p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.modal .form__group {
    margin-bottom: 16px;
}

/* ==========================================
   MEDIA QUERIES
   ========================================== */

@media (max-width: 1280px) {
    .logo-text__tagline {
        display: none;
    }
}

@media (max-width: 1100px) {
    .advantages__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .header__contacts {
        display: none;
    }

    .lineup__flow {
        flex-wrap: nowrap;
        gap: 0;
    }

    .nav__link {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
}

@media (max-width: 1200px) {
    .header__cta {
        display: none;
    }
}

@media (max-width: 900px) {
    .product__layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contacts__layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contacts__form {
        padding: 28px 24px;
    }
}

.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 997;
    transition: opacity var(--transition);
}

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

@media (max-width: 768px) {
    :root {
        --header-h: 64px;
    }

    .section {
        padding: 64px 0;
    }

    .header {
        padding: 12px 0;
    }

    .header--scrolled {
        padding: 8px 0;
    }

    .logo-text__name {
        font-size: 1.1rem;
    }

    .header__nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        z-index: 998;
        background: var(--white);
        padding: 12px 16px 24px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        transform: translateY(-110%);
        visibility: hidden;
        transition: transform 0.35s ease, visibility 0.35s ease;
        margin-left: 0;
        border-top: 2px solid var(--green-pale);
    }

    .header__nav.nav-open {
        transform: translateY(0);
        visibility: visible;
    }

    .nav__list {
        flex-direction: column;
        gap: 2px;
    }

    .nav__link {
        color: var(--text-mid) !important;
        font-size: 1rem !important;
        padding: 13px 16px !important;
        border-radius: var(--radius-sm);
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .nav__link::before {
        content: '';
        width: 6px;
        height: 6px;
        background: var(--green-primary);
        border-radius: 50%;
        flex-shrink: 0;
    }

    .nav__link:hover,
    .nav__link--active {
        background: var(--green-pale) !important;
        color: var(--green-primary) !important;
    }

    .nav__mobile-phone {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 13px 16px;
        margin-top: 8px;
        border-top: 1px solid var(--border);
        font-family: 'Montserrat', sans-serif;
        font-weight: 700;
        font-size: 1rem;
        color: var(--green-dark);
    }

    .nav__mobile-phone svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

    .header__cta {
        display: none;
    }

    .burger {
        display: flex;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
        text-align: center;
        white-space: normal;
    }

    .hero__stats {
        gap: 24px;
    }

    .hero__stat strong {
        font-size: 1.3rem;
    }

    .gallery__thumbs {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }

    .lineup__flow {
        flex-direction: column;
        align-items: stretch;
        overflow-x: visible;
    }

    .lineup__item {
        min-width: unset;
    }

    .lineup__arrow {
        padding: 4px 0;
        transform: rotate(90deg);
    }

    .advantages__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .footer__inner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .footer__copy {
        text-align: center;
        flex: none;
    }

    .footer__nav {
        justify-content: center;
        gap: 12px 20px;
        flex-wrap: wrap;
    }

    .modal {
        padding: 32px 20px;
    }
}

/* ==========================================
   FAQ
   ========================================== */
.faq {
    background: var(--green-bg);
}

.faq__list {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq__item {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.faq__item.open {
    border-color: var(--green-primary);
    box-shadow: var(--shadow);
}

.faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    text-align: left;
    background: none;
    cursor: pointer;
    transition: background var(--transition);
}

.faq__question:hover {
    background: var(--green-bg);
}

.faq__item.open .faq__question {
    background: var(--green-bg);
}

.faq__question span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.97rem;
    color: var(--text);
    line-height: 1.4;
}

.faq__item.open .faq__question span {
    color: var(--green-primary);
}

.faq__icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--green-primary);
    transition: transform var(--transition);
}

.faq__item.open .faq__icon {
    transform: rotate(180deg);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 24px;
}

.faq__item.open .faq__answer {
    max-height: 400px;
    padding: 0 24px 20px;
    border-top: 1px solid var(--border);
}

.faq__answer p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.75;
    padding-top: 16px;
}

/* ==========================================
   SCROLL PROGRESS
   ========================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--green-primary), var(--yellow));
    z-index: 2000;
    transition: width 0.1s linear;
}

/* ==========================================
   SCROLL TO TOP
   ========================================== */
.scroll-top {
    position: fixed;
    bottom: 32px;
    left: 24px;
    z-index: 900;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--white);
    border: 1.5px solid var(--border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease, background var(--transition), box-shadow var(--transition);
}

.scroll-top svg {
    width: 20px;
    height: 20px;
    color: var(--green-primary);
}

.scroll-top:hover {
    background: var(--green-primary);
    border-color: var(--green-primary);
    box-shadow: 0 6px 20px rgba(46, 125, 18, 0.3);
}

.scroll-top:hover svg {
    color: var(--white);
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media (max-width: 600px) {
    .scroll-top {
        bottom: 24px;
        left: 16px;
        width: 42px;
        height: 42px;
    }
}

/* ==========================================
   FLOAT BUTTONS
   ========================================== */
.float-btns {
    position: fixed;
    bottom: 32px;
    right: 24px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.float-btns.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition), box-shadow var(--transition);
    white-space: nowrap;
}

.float-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.float-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.float-btn--max {
    background: linear-gradient(135deg, #8d28c8, #007aff);
}

.float-btn--max:hover {
    background: linear-gradient(135deg, #7a20b0, #006ae0);
}

.float-btn--phone {
    background: var(--green-primary);
}

.float-btn--phone:hover {
    background: var(--green-dark);
}

@media (max-width: 600px) {
    .float-btns {
        bottom: 24px;
        right: 16px;
        gap: 10px;
    }

    .float-btn {
        padding: 14px;
        border-radius: 50%;
    }

    .float-btn span {
        display: none;
    }

    .float-btn svg {
        width: 22px;
        height: 22px;
    }
}

/* ==========================================
   COOKIE BANNER
   ========================================== */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    z-index: 1500;
    width: calc(100% - 48px);
    max-width: 860px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.14);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.cookie-banner.hidden {
    transform: translateX(-50%) translateY(120%);
    opacity: 0;
    pointer-events: none;
}

.cookie-banner__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
}

.cookie-banner__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
}

.cookie-banner__text {
    flex: 1;
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.cookie-banner__btn {
    flex-shrink: 0;
    padding: 10px 24px;
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .cookie-banner {
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        border-radius: var(--radius) var(--radius) 0 0;
        transform: translateY(0);
    }

    .cookie-banner.hidden {
        transform: translateY(120%);
    }

    .cookie-banner__inner {
        flex-wrap: wrap;
    }

    .cookie-banner__btn {
        width: 100%;
    }
}

/* ==========================================
   PRIVACY POLICY MODAL
   ========================================== */
.modal--wide {
    max-width: 760px;
    padding: 0;
    display: flex;
    flex-direction: column;
    max-height: 88vh;
}

.privacy-header {
    padding: 32px 40px 20px;
    border-bottom: 1.5px solid var(--border);
    flex-shrink: 0;
}

.privacy-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 6px;
}

.privacy-header p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.privacy-body {
    overflow-y: auto;
    padding: 28px 40px;
    flex: 1;
    scroll-behavior: smooth;
}

.privacy-body::-webkit-scrollbar {
    width: 6px;
}

.privacy-body::-webkit-scrollbar-track {
    background: var(--green-bg);
    border-radius: 4px;
}

.privacy-body::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.privacy-body::-webkit-scrollbar-thumb:hover {
    background: var(--green-light);
}

.privacy-body h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--green-dark);
    margin: 24px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.privacy-body h3:first-child {
    margin-top: 0;
}

.privacy-body p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 10px;
}

.privacy-body ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 10px;
}

.privacy-body ul li {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 4px;
}

.privacy-body a {
    color: var(--green-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.privacy-footer {
    padding: 18px 40px;
    border-top: 1.5px solid var(--border);
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
    background: var(--green-bg);
    border-radius: 0 0 var(--radius) var(--radius);
}

@media (max-width: 600px) {
    .modal--wide {
        max-height: 95vh;
    }

    .privacy-header {
        padding: 24px 20px 16px;
    }

    .privacy-body {
        padding: 20px;
    }

    .privacy-footer {
        padding: 14px 20px;
    }
}

/* ==========================================
   LIGHTBOX
   ========================================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: zoom-out;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox.open img {
    transform: scale(1);
}

.lightbox__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background var(--transition);
}

.lightbox__close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox__close svg {
    width: 22px;
    height: 22px;
}

.nav__link--active {
    color: var(--yellow) !important;
}

.header--scrolled .nav__link--active {
    color: var(--green-primary) !important;
}

@media (max-width: 480px) {
    .hero {
        min-height: 100svh;
    }

    .hero__stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px 12px;
    }

    .hero__stat {
        min-width: unset;
    }

    .hero__stat strong {
        font-size: 1.2rem;
    }

    .hero__stat span {
        font-size: 0.75rem;
    }

    .product__cta {
        flex-direction: column;
    }

    .gallery__thumbs {
        grid-template-columns: repeat(3, 1fr);
    }

}
