/* =============================================================
   ALSTRIN — единая таблица стилей сайта
   ============================================================= */

/* ---------- Шрифт (локально, без обращения к Google) ---------- */
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("../fonts/manrope-cyrillic-wght-normal.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Переменные ---------- */
:root {
    --bg: #ffffff;
    --text: #0B1933;
    --text-2: #3B4A63;
    --muted: #5B6B80;
    --border: #E7EEF7;
    --panel: #F7FAFE;
    --panel-2: #F2F6FC;
    --accent: #0b5fd6;
    --dark: #1a1a1a;
    --ok: #2e7d32;

    --radius: 16px;
    --radius-sm: 12px;
    --shadow: 0 10px 30px rgba(12, 22, 44, 0.08);
    --shadow-lg: 0 20px 50px rgba(12, 22, 44, 0.18);

    /* Типографическая шкала — используется на всех страницах */
    --fs-h1: 36px;
    --fs-h2: 28px;
    --fs-h3: 17px;
    --fs-lead: 17px;
    --fs-body: 16px;
    --fs-small: 14px;
    --fs-xs: 12px;

    --nav-h: 68px;
    --container: 1100px;
}

@media (max-width: 768px) {
    :root {
        --fs-h1: 28px;
        --fs-h2: 23px;
        --fs-lead: 16px;
        --nav-h: 60px;
    }
}

/* ---------- База ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 12px);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    margin: 0;
    padding-top: var(--nav-h);
    background: var(--bg);
    color: var(--text);
    font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: var(--fs-body);
    line-height: 1.5;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body.is-locked {
    overflow: hidden;
}

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

a {
    color: inherit;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.2;
}

h1 {
    font-size: var(--fs-h1);
    font-weight: 800;
}

h2 {
    font-size: var(--fs-h2);
    font-weight: 800;
}

h3 {
    font-size: var(--fs-h3);
    font-weight: 700;
}

:focus-visible {
    outline: 3px solid rgba(11, 95, 214, 0.45);
    outline-offset: 2px;
}

.container {
    width: min(var(--container), 100% - 32px);
    margin: 0 auto;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- Полоса прогресса прокрутки ---------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    transform-origin: 0 50%;
    transform: scaleX(0);
    background: linear-gradient(90deg, var(--accent), #35a0ff);
    z-index: 200;
    pointer-events: none;
}

/* =============================================================
   NAVBAR
   ============================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-h);
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease;
}

.navbar.is-hidden {
    transform: translateY(-100%);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 100%;
    width: min(var(--container), 100% - 32px);
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand img {
    width: 40px;
    height: 40px;
}

.brand-name {
    font-weight: 800;
    font-size: 18px;
    color: var(--text);
    letter-spacing: 0.3px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-link {
    position: relative;
    color: var(--text-2);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
    color: var(--text);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    position: relative;
    transition: transform 0.25s ease, background 0.25s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle span::before {
    top: -6px;
}

.nav-toggle span::after {
    top: 6px;
}

.nav-toggle[aria-expanded="true"] span {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
    transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 720px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 16px 16px;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 12px 24px rgba(12, 22, 44, 0.08);
        display: none;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-link {
        padding: 12px 4px;
        font-size: 16px;
        border-bottom: 1px solid var(--border);
    }

    .nav-link:last-child {
        border-bottom: 0;
    }

    .nav-link::after {
        display: none;
    }

    .brand img {
        width: 34px;
        height: 34px;
    }

    .brand-name {
        font-size: 16px;
    }
}

/* =============================================================
   HERO / ШАПКА СТРАНИЦЫ
   ============================================================= */
.hero {
    padding: 72px 0;
    text-align: center;
    background:
        radial-gradient(900px 300px at 50% -80px, rgba(11, 95, 214, 0.08), transparent 70%),
        var(--panel);
    border-bottom: 1px solid var(--border);
}

.hero h1 {
    margin-bottom: 14px;
}

.hero .subtitle {
    font-size: 18px;
    color: var(--muted);
    margin: 0 0 16px;
}

.hero .lead {
    margin-bottom: 24px;
}

.hero-contacts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 22px 0 26px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(12, 22, 44, 0.05);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(12, 22, 44, 0.09);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

@media (max-width: 768px) {
    .hero {
        padding: 48px 0;
    }

    .hero .subtitle {
        font-size: 16px;
    }
}

/* =============================================================
   КНОПКИ
   ============================================================= */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font: inherit;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    background: var(--dark);
    color: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.btn-primary::before {
    content: "";
    position: absolute;
    inset: -20%;
    background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.18) 50%, transparent 80%);
    transform: translateX(-80%);
    transition: transform 0.8s ease;
    pointer-events: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.26);
}

.btn-primary:hover::before {
    transform: translateX(0);
}

.btn-outline {
    background: #fff;
    color: var(--text);
    border-color: #cfd9e8;
}

.btn-outline:hover {
    transform: translateY(-2px);
    border-color: var(--text);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.btn-block {
    width: 100%;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

/* =============================================================
   СЕКЦИИ
   ============================================================= */
.section {
    padding: 72px 0;
}

.section--alt {
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-title {
    text-align: center;
    margin-bottom: 14px;
}

.section-lead,
.lead {
    color: var(--muted);
    font-size: var(--fs-lead);
    line-height: 1.65;
    text-align: center;
    max-width: 860px;
    margin: 0 auto 20px;
}

.section-title + .gallery,
.section-title + .grid,
.section-title + .adv-grid,
.section-title + .steps,
.section-title + .faq,
.section-title + .filter-buttons {
    margin-top: 28px;
}

.section-lead + .grid,
.section-lead + .steps,
.section-lead + .faq {
    margin-top: 28px;
}

@media (max-width: 768px) {
    .section {
        padding: 48px 0;
    }
}

/* =============================================================
   КАТАЛОГ
   ============================================================= */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 22px;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: center;
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px 10px 18px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card .thumb {
    display: block;
    aspect-ratio: 3 / 2;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #fff;
}

.card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .thumb img {
    transform: scale(1.04);
}

.card h3 {
    margin: 14px 0 6px;
}

/* Вся карточка кликабельна через ссылку в заголовке */
.card h3 a {
    text-decoration: none;
    color: inherit;
}

.card h3 a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.card .meta {
    color: var(--muted);
    font-size: var(--fs-small);
    line-height: 1.5;
    margin: 0 0 12px;
}

.card .more {
    margin-top: auto;
    font-weight: 700;
    font-size: var(--fs-small);
    color: var(--accent);
}

.card .more::after {
    content: "→";
    display: inline-block;
    margin-left: 6px;
    transition: transform 0.2s ease;
}

.card:hover .more::after {
    transform: translateX(4px);
}

/* =============================================================
   ПРЕИМУЩЕСТВА / БЕЙДЖИ
   ============================================================= */
.adv-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.adv-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    box-shadow: var(--shadow);
}

.adv-card .icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border-radius: 12px;
    background: var(--panel);
    border: 1px solid var(--border);
}

.adv-card h3 {
    margin: 0 0 6px;
}

.adv-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .adv-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================
   КАК МЫ РАБОТАЕМ
   ============================================================= */
.steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    counter-reset: step;
}

.step {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px 18px 18px;
    box-shadow: var(--shadow);
    counter-increment: step;
}

.step::before {
    content: counter(step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: var(--dark);
    color: #fff;
    font-weight: 800;
}

.step h3 {
    margin-bottom: 6px;
}

.step p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

@media (max-width: 960px) {
    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .steps {
        grid-template-columns: 1fr;
    }
}

/* =============================================================
   FAQ
   ============================================================= */
.faq {
    max-width: 820px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.faq details {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 52px 18px 20px;
    font-weight: 700;
    position: relative;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 600;
    color: var(--muted);
    transition: transform 0.2s ease;
}

.faq details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq details p {
    margin: 0;
    padding: 0 20px 18px;
    color: var(--muted);
    line-height: 1.6;
}

/* =============================================================
   CTA-БЛОК
   ============================================================= */
.cta-band {
    text-align: center;
    background: var(--dark);
    color: #fff;
    padding: 64px 0;
}

.cta-band h2 {
    margin-bottom: 12px;
}

.cta-band p {
    margin: 0 auto;
    max-width: 720px;
    color: rgba(255, 255, 255, 0.78);
    font-size: var(--fs-lead);
    line-height: 1.6;
}

.cta-band .btn-primary {
    background: #fff;
    color: var(--dark);
}

.cta-band .btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.cta-band .btn-outline:hover {
    border-color: #fff;
}

/* =============================================================
   КОНТАКТЫ
   ============================================================= */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 18px;
}

.contact-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    box-shadow: var(--shadow);
}

.contact-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.contact-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.contact-card a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-card--wide {
    max-width: 720px;
    margin: 28px auto 0;
}

/* Кнопка «копировать» рядом с контактами */
.copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-left: 4px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #fff;
    color: var(--muted);
    font-size: 13px;
    line-height: 1;
    vertical-align: middle;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.copy-btn:hover {
    color: var(--text);
    border-color: var(--text);
}

/* =============================================================
   СТРАНИЦЫ ПРОДУКЦИИ
   ============================================================= */
.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 190px;
    padding: 12px;
    text-align: center;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff, var(--panel));
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    color: var(--text);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.filter-btn img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.filter-btn span {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.35;
}

@media (max-width: 460px) {
    .filter-btn {
        width: calc(50% - 10px);
    }

    .filter-btn span {
        font-size: 14px;
    }
}

.gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 28px auto 0;
}

.photo-box {
    position: relative;
    width: min(340px, 100%);
    aspect-ratio: 17 / 12;
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: var(--shadow);
    cursor: zoom-in;
}

.photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.photo-box:hover img {
    transform: scale(1.05);
}

.photo-box::after {
    content: "⤢";
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.photo-box:hover::after,
.photo-box:focus-visible::after {
    opacity: 1;
}

.disclaimer {
    width: fit-content;
    max-width: min(640px, 100%);
    margin: 16px auto 0;
    padding: 8px 14px;
    font-size: var(--fs-small);
    line-height: 1.45;
    text-align: center;
    color: var(--muted);
    background: rgba(0, 0, 0, 0.03);
    border: 1px dashed rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

.gallery + .disclaimer + .lead,
.disclaimer + .lead {
    margin-top: 24px;
}

/* =============================================================
   ТЕКСТОВЫЕ СТРАНИЦЫ
   ============================================================= */
.prose {
    max-width: 820px;
    margin: 0 auto;
    color: var(--text-2);
    line-height: 1.7;
}

.prose h2 {
    font-size: 20px;
    margin: 28px 0 10px;
}

.prose p,
.prose ul {
    margin: 0 0 14px;
}

.prose a {
    color: var(--accent);
}

/* =============================================================
   ПОДВАЛ
   ============================================================= */
.site-footer {
    background: #fff;
    color: var(--muted);
    padding: 22px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: var(--fs-xs);
    line-height: 1.5;
}

.site-footer .wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: var(--muted);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--text);
    text-decoration: underline;
}

/* =============================================================
   МОДАЛЬНЫЕ ОКНА
   ============================================================= */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(8, 14, 28, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.modal.is-open {
    display: flex;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 520px;
    /* Окно никогда не выходит за пределы экрана: контент прокручивается внутри */
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalIn 0.25s ease;
    overflow: hidden;
}

.modal-content--wide {
    max-width: 780px;
}

.modal-header {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 24px 16px 32px;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-size: 22px;
    line-height: 1.3;
    padding-top: 6px;
}

.modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 20px 32px 28px;
    color: var(--text-2);
    line-height: 1.6;
}

.close-btn {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--muted);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.close-btn:hover {
    color: var(--text);
    border-color: var(--text);
    transform: rotate(90deg);
}

@media (max-width: 560px) {
    .modal {
        padding: 8px;
    }

    .modal-content {
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
    }

    .modal-header {
        padding: 16px 16px 12px 20px;
    }

    .modal-header h2 {
        font-size: 19px;
    }

    .modal-body {
        padding: 16px 20px 22px;
    }
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Содержимое окна «Подробнее» */
.details h3 {
    font-size: 18px;
    color: var(--text);
    margin: 22px 0 10px;
}

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

.details p {
    margin: 0 0 12px;
}

.details ul {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
}

.details li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
}

.details li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 0.65em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.details-cta {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.details-cta .btn {
    flex: 1 1 200px;
}

/* Окно «Связаться» */
.contact-options {
    display: grid;
    gap: 10px;
    margin: 16px 0 0;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.contact-option:hover {
    border-color: var(--text);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(12, 22, 44, 0.08);
}

.contact-option .ico {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--panel);
    font-size: 20px;
}

.contact-option strong {
    display: block;
    font-size: 16px;
}

.contact-option small {
    display: block;
    color: var(--muted);
    font-size: var(--fs-small);
}

.contact-option--primary {
    background: var(--dark);
    border-color: var(--dark);
    color: #fff;
}

.contact-option--primary .ico {
    background: rgba(255, 255, 255, 0.12);
}

.contact-option--primary small {
    color: rgba(255, 255, 255, 0.72);
}

.contact-option--primary:hover {
    border-color: var(--dark);
}

.modal-note {
    margin: 16px 0 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

/* =============================================================
   ЛАЙТБОКС (просмотр фото)
   ============================================================= */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.88);
    touch-action: pan-y;
}

.lightbox.is-open {
    display: flex;
}

.lightbox figure {
    margin: 0;
    max-width: calc(100vw - 32px);
    text-align: center;
}

.lightbox img {
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 120px);
    max-height: calc(100dvh - 120px);
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    margin: 0 auto;
    user-select: none;
}

.lightbox figcaption {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--fs-small);
}

.lb-btn {
    position: absolute;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lb-btn:hover {
    background: rgba(255, 255, 255, 0.28);
}

.lb-close {
    top: 16px;
    right: 16px;
}

.lb-prev {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.lb-next {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 560px) {

    .lb-prev,
    .lb-next {
        top: auto;
        bottom: 16px;
        transform: none;
    }
}

/* =============================================================
   ПЛАВАЮЩИЕ ЭЛЕМЕНТЫ
   ============================================================= */
.fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.fab-main {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--dark);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
    animation: fabPulse 2.8s ease-in-out 3s 3;
}

.fab-main:hover {
    transform: scale(1.06);
}

.fab.is-open .fab-main {
    animation: none;
}

.fab-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.fab.is-open .fab-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.fab-menu a,
.fab-menu button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(12, 22, 44, 0.14);
}

.fab-menu a:hover,
.fab-menu button:hover {
    border-color: var(--text);
}

@keyframes fabPulse {

    0%,
    100% {
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(26, 26, 26, 0.35);
    }

    50% {
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3), 0 0 0 14px rgba(26, 26, 26, 0);
    }
}

.to-top {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 900;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: #fff;
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

@media (max-width: 560px) {
    .fab {
        right: 14px;
        bottom: 14px;
    }

    .to-top {
        left: 14px;
        bottom: 14px;
    }
}

/* Всплывающее уведомление */
.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 1200;
    padding: 12px 18px;
    border-radius: 10px;
    background: var(--dark);
    color: #fff;
    font-size: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translate(-50%, 16px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* =============================================================
   ПОЯВЛЕНИЕ БЛОКОВ ПРИ ПРОКРУТКЕ
   ============================================================= */
.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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