/* =========================================================
   RESET
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* =========================================================
   THEME TOKENS — LIGHT (default)
   ========================================================= */
:root,
[data-theme="light"] {
    --bg: #FFFFFF;
    --bg-alt: #F4F6F4;
    --bg-dark: #0A2B1C;           /* тёмно-зелёный для секций */
    --bg-footer: #061A11;          /* почти чёрный для футера */

    --text: #0A0F0D;
    --text-muted: #5F6B65;
    --text-inverse: #FFFFFF;
    --text-inverse-muted: rgba(255,255,255,0.65);

    --border: #E2E6E3;
    --border-strong: #0A0F0D;
    --border-inverse: rgba(255,255,255,0.12);

    --accent: #0F3D28;             /* тёмно-зелёный */
    --accent-hover: #0A2B1C;
    --accent-bright: #22C55E;      /* яркий зелёный для акцентов */
    --accent-soft: rgba(15, 61, 40, 0.08);

    --header-bg: #0F3D28;          /* ← контрастная тёмная шапка */
    --header-text: #FFFFFF;
    --header-border: rgba(255,255,255,0.1);

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.10);
    --shadow-lg: 0 24px 60px rgba(0,0,0,0.18);
}

/* =========================================================
   THEME TOKENS — DARK
   ========================================================= */
[data-theme="dark"] {
    --bg: #0A0F0C;
    --bg-alt: #111815;
    --bg-dark: #050A07;
    --bg-footer: #000000;

    --text: #F0F5F2;
    --text-muted: #8A9490;
    --text-inverse: #FFFFFF;
    --text-inverse-muted: rgba(255,255,255,0.65);

    --border: #1F2A24;
    --border-strong: #F0F5F2;
    --border-inverse: rgba(255,255,255,0.12);

    --accent: #22C55E;
    --accent-hover: #16A34A;
    --accent-bright: #22C55E;
    --accent-soft: rgba(34, 197, 94, 0.1);

    --header-bg: #000000;
    --header-text: #FFFFFF;
    --header-border: rgba(255,255,255,0.08);

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.5);
    --shadow-lg: 0 24px 60px rgba(0,0,0,0.6);
}

/* =========================================================
   BASE
   ========================================================= */
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease, opacity 0.2s ease; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
}

/* =========================================================
   TYPOGRAPHY HELPERS
   ========================================================= */
.section__label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}
.section__label--light { color: var(--accent-bright); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn--accent {
    background: var(--accent);
    color: #FFFFFF;
    border-color: var(--accent);
}
.btn--accent:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.25);
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}
.btn--ghost:hover {
    background: var(--border-strong);
    color: var(--bg);
    transform: translateY(-2px);
}

.btn--sm { padding: 10px 18px; font-size: 13px; border-radius: 6px; }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--full { width: 100%; }

/* =========================================================
   HEADER — тёмная контрастная шапка
   ========================================================= */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    color: var(--header-text);
    border-bottom: 1px solid var(--header-border);
    transition: box-shadow 0.25s ease;
}
.header.is-scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.35); }

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    height: 80px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 17px;
    font-weight: 600;
    color: var(--header-text);
    letter-spacing: -0.02em;
    flex-shrink: 0;
}
.logo__mark {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    background: var(--accent-bright);
    color: #0A0F0D;
    border-radius: 8px;
    font-weight: 900;
    font-size: 20px;
    line-height: 1;
}
.logo__text { color: var(--header-text); }
.logo__text strong { font-weight: 800; margin-left: 2px; }

.nav {
    display: flex;
    gap: 2px;
    flex: 1;
    justify-content: center;
}
.nav__link {
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    border-radius: 6px;
    transition: all 0.2s ease;
}
.nav__link:hover {
    color: #FFFFFF;
    background: rgba(255,255,255,0.08);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.header__phone {
    font-weight: 700;
    font-size: 15px;
    color: #FFFFFF;
    white-space: nowrap;
    letter-spacing: -0.01em;
}
.header__phone:hover { color: var(--accent-bright); }

/* Кнопка темы */
.theme-toggle {
    width: 40px; height: 40px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: #FFFFFF;
    transition: all 0.2s ease;
    position: relative;
    flex-shrink: 0;
}
.theme-toggle:hover { background: rgba(255,255,255,0.16); }
.theme-toggle svg { width: 18px; height: 18px; position: absolute; transition: opacity 0.25s ease, transform 0.25s ease; }

[data-theme="light"] .theme-toggle__moon { opacity: 1; transform: rotate(0); }
[data-theme="light"] .theme-toggle__sun { opacity: 0; transform: rotate(-90deg); }
[data-theme="dark"]  .theme-toggle__moon { opacity: 0; transform: rotate(90deg); }
[data-theme="dark"]  .theme-toggle__sun { opacity: 1; transform: rotate(0); }

/* Бургер */
.burger {
    display: none;
    width: 44px; height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
}
.burger span {
    display: block;
    width: 20px; height: 2px;
    background: #FFFFFF;
    border-radius: 2px;
    transition: all 0.25s ease;
}
.burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; }
.burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
    background: var(--bg-dark);
    color: var(--text-inverse);
    padding: 88px 0 96px;
    position: relative;
    overflow: hidden;
}
[data-theme="dark"] .hero { background: #050A07; }

.hero__inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 72px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(255,255,255,0.85);
    margin-bottom: 32px;
}
.hero__dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent-bright);
    box-shadow: 0 0 0 4px rgba(34,197,94,0.2);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(34,197,94,0.2); }
    50% { box-shadow: 0 0 0 8px rgba(34,197,94,0.05); }
}

.hero__title {
    font-size: clamp(42px, 5.6vw, 80px);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.035em;
    color: #FFFFFF;
    margin-bottom: 28px;
}
.hero__title-accent {
    color: var(--accent-bright);
    font-style: italic;
    font-weight: 800;
    padding-right: 8px;
}

.hero__subtitle {
    font-size: 18px;
    line-height: 1.55;
    color: rgba(255,255,255,0.72);
    max-width: 520px;
    margin-bottom: 40px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 64px;
}
.hero__actions .btn--accent {
    background: var(--accent-bright);
    border-color: var(--accent-bright);
    color: #0A0F0D;
    font-weight: 700;
}
.hero__actions .btn--accent:hover {
    background: #FFFFFF;
    border-color: #FFFFFF;
    color: #0A0F0D;
    box-shadow: 0 8px 24px rgba(255,255,255,0.15);
}
.hero__actions .btn--ghost {
    color: #FFFFFF;
    border-color: rgba(255,255,255,0.3);
}
.hero__actions .btn--ghost:hover {
    background: #FFFFFF;
    color: #0A0F0D;
    border-color: #FFFFFF;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 48px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.12);
    justify-content: flex-start;
}
.hero__stat { display: flex; flex-direction: column; gap: 4px; }
.hero__stat-num {
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    color: #FFFFFF;
    letter-spacing: -0.03em;
}
.hero__stat-num sup {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-bright);
    margin-left: 2px;
    top: -12px;
    position: relative;
}
.hero__stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.01em;
}

.hero__visual {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: #000;
}
.hero__visual img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
}
.hero__visual:hover img { transform: scale(1.04); }

.hero__promo {
    position: absolute;
    bottom: 20px; left: 20px;
    background: var(--accent-bright);
    color: #0A0F0D;
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-radius: 4px;
}
.hero__promo-num { font-size: 32px; font-weight: 900; line-height: 1; letter-spacing: -0.03em; }
.hero__promo-text { font-size: 12px; font-weight: 600; opacity: 0.85; line-height: 1.3; }

/* =========================================================
   SECTION
   ========================================================= */
.section { padding: 104px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark {
    background: var(--bg-dark);
    color: var(--text-inverse);
}
[data-theme="dark"] .section--dark { background: #050A07; }

.section__head {
    max-width: 720px;
    margin: 0 0 64px;
}
.section__head--row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    max-width: none;
    gap: 32px;
}
.section__head--left { max-width: 640px; }

.section__title {
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 16px;
}
.section__title--light { color: #FFFFFF; }

.section__sub {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.55;
    max-width: 520px;
}

.section__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    color: var(--accent);
    white-space: nowrap;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}
.section__link svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.section__link:hover { border-color: var(--accent); }
.section__link:hover svg { transform: translateX(4px); }

/* =========================================================
   CATEGORIES
   ========================================================= */
.categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cat-card {
    display: block;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.25s ease;
}
.cat-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.cat-card__img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-alt);
}
.cat-card__img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.cat-card:hover .cat-card__img img { transform: scale(1.08); }

.cat-card__body {
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.cat-card__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}
.cat-card__arrow {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    transition: all 0.25s ease;
    flex-shrink: 0;
}
.cat-card__arrow svg { width: 18px; height: 18px; }
.cat-card:hover .cat-card__arrow {
    background: var(--accent);
    color: #FFFFFF;
    transform: rotate(-45deg);
}

/* =========================================================
   PRODUCTS
   ========================================================= */
.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}
.product-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.product-card__img {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bg-alt);
}
.product-card__img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.product-card:hover .product-card__img img { transform: scale(1.06); }

.product-card__badge {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--accent-bright);
    color: #0A0F0D;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 10px;
    border-radius: 4px;
}

.product-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.product-card__cat {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}
.product-card__name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
    letter-spacing: -0.01em;
    min-height: 42px;
}
.product-card__name a:hover { color: var(--accent); }

.product-card__bottom {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
}
.product-card__price {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1;
}
.product-card__price small {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 2px;
}

.product-card__btn {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    background: var(--accent);
    color: #FFFFFF;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.product-card__btn svg { width: 18px; height: 18px; }
.product-card__btn:hover {
    background: var(--accent-hover);
    transform: translateX(2px);
}

/* =========================================================
   SERVICES
   ========================================================= */
.services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 2px solid var(--border-strong);
    border-bottom: 2px solid var(--border-strong);
}

.service {
    padding: 44px 32px 48px;
    border-right: 1px solid var(--border);
    transition: background 0.25s ease;
    position: relative;
}
.service:last-child { border-right: none; }
.service:hover { background: var(--accent-soft); }
[data-theme="dark"] .service:hover { background: rgba(34,197,94,0.06); }

.service__num {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}
.service__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.service__text {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 24px;
    min-height: 70px;
}
.service__price {
    display: inline-block;
    font-size: 18px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.02em;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}
.about__img {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 4px;
    background: #000;
}
.about__img img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.about__text {
    font-size: 17px;
    color: rgba(255,255,255,0.72);
    line-height: 1.65;
    margin: 24px 0 32px;
}
.about__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 40px;
}
.about__list li {
    position: relative;
    padding-left: 32px;
    font-size: 16px;
    color: #FFFFFF;
    line-height: 1.5;
}
.about__list li::before {
    content: '';
    position: absolute;
    left: 0; top: 4px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--accent-bright);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0F0D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

/* =========================================================
   ADVANTAGES
   ========================================================= */
.advantages {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 2px solid var(--border-strong);
}
.adv {
    padding: 40px 32px 40px 0;
    border-right: 1px solid var(--border);
    padding-left: 32px;
}
.adv:first-child { padding-left: 0; }
.adv:last-child { border-right: none; padding-right: 0; }

.adv__num {
    display: block;
    font-size: 48px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--accent);
    margin-bottom: 20px;
}
.adv__title {
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}
.adv__text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* =========================================================
   CONTACTS
   ========================================================= */
.contacts {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
    align-items: stretch;
}

.contacts__info {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 2px solid var(--border-strong);
}
.contact {
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s ease;
}
.contact:hover { padding-left: 8px; }

.contact__label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
}
.contact__value {
    font-size: 16px;
    color: var(--text);
    line-height: 1.5;
    font-weight: 500;
}
.contact__value a {
    font-weight: 700;
    color: var(--accent);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}
.contact__value a:hover { border-color: var(--accent); }

.contacts__info .btn { margin-top: 28px; align-self: flex-start; }

.contacts__map {
    border-radius: 4px;
    overflow: hidden;
    min-height: 520px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
}
.contacts__map iframe { display: block; width: 100%; height: 100%; min-height: 520px; }

/* =========================================================
   FOOTER — почти чёрный, максимальный контраст
   ========================================================= */
.footer {
    background: var(--bg-footer);
    color: #FFFFFF;
    padding: 80px 0 0;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 56px;
    padding-bottom: 64px;
}

.logo--footer { color: #FFFFFF; }
.logo--footer .logo__mark { background: var(--accent-bright); color: #0A0F0D; }

.footer__desc {
    margin-top: 24px;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
    max-width: 340px;
}

.footer__col h4 {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 22px;
    color: rgba(255,255,255,0.45);
}
.footer__col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer__col a, .footer__col li {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
    transition: color 0.2s ease;
}
.footer__col a:hover { color: var(--accent-bright); }

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
}
.footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: rgba(255,255,255,0.35);
    flex-wrap: wrap;
}

/* =========================================================
   MODAL
   ========================================================= */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal.is-open { display: flex; }

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    animation: fadeIn 0.25s ease;
}
.modal__dialog {
    position: relative;
    background: var(--bg);
    color: var(--text);
    border-radius: 6px;
    padding: 44px;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal__close {
    position: absolute;
    top: 16px; right: 16px;
    width: 40px; height: 40px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    color: var(--text-muted);
    transition: all 0.2s ease;
}
.modal__close svg { width: 20px; height: 20px; }
.modal__close:hover { background: var(--bg-alt); color: var(--text); }

.modal__title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 10px;
}
.modal__text {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 28px;
}
.modal__form { display: flex; flex-direction: column; gap: 14px; }
.modal__form input[type="text"],
.modal__form input[type="tel"] {
    width: 100%;
    padding: 16px 18px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    background: var(--bg-alt);
    border: 1.5px solid var(--border);
    border-radius: 6px;
    transition: border-color 0.2s ease;
}
.modal__form input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg);
}
.modal__agree {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.45;
    cursor: pointer;
    margin-top: 4px;
}
.modal__agree input { margin-top: 3px; accent-color: var(--accent); flex-shrink: 0; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
    .products { grid-template-columns: repeat(3, 1fr); }
    .services { grid-template-columns: repeat(2, 1fr); }
    .service:nth-child(2) { border-right: none; }
    .service:nth-child(3),
    .service:nth-child(4) { border-top: 1px solid var(--border); }
    .footer__inner { grid-template-columns: 1.4fr 1fr 1fr; }
    .footer__col:last-child { grid-column: 2 / -1; }
}

@media (max-width: 980px) {
    .header__inner { height: 72px; }
    .nav {
        position: fixed;
        top: 72px; left: 16px; right: 16px;
        background: var(--header-bg);
        flex-direction: column;
        padding: 16px;
        border-radius: 8px;
        box-shadow: 0 24px 60px rgba(0,0,0,0.5);
        gap: 2px;
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.25s ease;
        z-index: 99;
        max-height: calc(100vh - 88px);
        overflow-y: auto;
        border: 1px solid var(--header-border);
    }
    .nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
    .nav__link { padding: 14px 18px; color: #FFFFFF; }
    .header__phone { display: none; }
    .header__actions .btn { display: none; }
    .burger { display: flex; }

    .hero { padding: 64px 0 80px; }
    .hero__inner { grid-template-columns: 1fr; gap: 56px; }
    .hero__visual { aspect-ratio: 4 / 3; }
    .hero__stats { gap: 32px; }
    .hero__stat-num { font-size: 32px; }

    .section { padding: 80px 0; }
    .section__head--row { flex-direction: column; align-items: flex-start; }

    .categories { grid-template-columns: repeat(2, 1fr); }
    .about { grid-template-columns: 1fr; gap: 48px; }
    .about__img { aspect-ratio: 4 / 3; }

    .advantages { grid-template-columns: repeat(2, 1fr); }
    .adv { padding: 32px 24px; border-bottom: 1px solid var(--border); }
    .adv:first-child { padding-left: 24px; }
    .adv:nth-child(2) { border-right: none; }
    .adv:last-child { padding-right: 24px; }

    .contacts { grid-template-columns: 1fr; }
    .contacts__map { min-height: 400px; }
    .contacts__map iframe { min-height: 400px; }
}

@media (max-width: 640px) {
    .container { padding: 0 20px; }

    .hero { padding: 48px 0 64px; }
    .hero__title { font-size: 42px; }
    .hero__subtitle { font-size: 16px; }
    .hero__actions { flex-direction: column; }
    .hero__actions .btn { width: 100%; }
    .hero__stats { grid-template-columns: 1fr 1fr; gap: 24px; row-gap: 32px; }

    .section { padding: 64px 0; }
    .section__head { margin-bottom: 44px; }

    .categories { grid-template-columns: 1fr; }
    .products { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .product-card__body { padding: 16px; }
    .product-card__name { font-size: 14px; min-height: auto; }
    .product-card__price { font-size: 17px; }
    .product-card__btn { width: 36px; height: 36px; }

    .services { grid-template-columns: 1fr; border-top: 2px solid var(--border-strong); }
    .service { border-right: none; border-bottom: 1px solid var(--border); padding: 32px 0; }
    .service:last-child { border-bottom: none; }
    .service:nth-child(3),
    .service:nth-child(4) { border-top: none; }

    .advantages { grid-template-columns: 1fr; }
    .adv { padding: 28px 0; border-right: none; border-bottom: 1px solid var(--border); }
    .adv:first-child,
    .adv:last-child { padding: 28px 0; }

    .footer__inner { grid-template-columns: 1fr; gap: 40px; padding-bottom: 48px; }
    .footer__col:last-child { grid-column: auto; }

    .modal__dialog { padding: 32px 24px; }
}

/* =========================================================
   UTIL
   ========================================================= */
body.no-scroll { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}