/* ===== Переменные ===== */
:root {
    --color-bg: #FFFFFF;
    --color-cream: #F7F3EF;
    --color-accent-light: #D3CAC0;
    --color-accent-dark: #C3B198;
    --color-ink: #2B2620;
    --color-ink-soft: #6E6459;
    --color-white: #FFFFFF;

    --font-display: 'Fraunces', serif;
    --font-body: 'Manrope', sans-serif;

    --radius-lg: 32px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --radius-pill: 999px;

    --container-width: 1200px;
    --section-pad: 140px;

    --ease: cubic-bezier(0.32, 0.72, 0, 1);
    --shadow-soft: 0 50px 90px -30px rgba(43, 38, 32, 0.28), 0 6px 16px rgba(43, 38, 32, 0.05);
    --shadow-soft-sm: 0 24px 48px -16px rgba(43, 38, 32, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--color-ink);
    background: var(--color-bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

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

/* ===== Текстура зерна ===== */
.grain-overlay {
    position: fixed; inset: 0; z-index: 1; pointer-events: none;
    opacity: 0.035; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ===== Eyebrow ===== */
.eyebrow {
    display: inline-flex; align-items: center;
    padding: 7px 18px; border-radius: var(--radius-pill);
    background: var(--color-cream); font-size: 13px; font-weight: 600;
    color: var(--color-ink); margin-bottom: 22px;
}

.section-head { max-width: 600px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); }

.section-head-row {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 48px; gap: 24px; flex-wrap: wrap;
}

.link-arrow { font-weight: 600; font-size: 15px; color: var(--color-ink); white-space: nowrap; transition: color 0.3s var(--ease); }
.link-arrow:hover { color: var(--color-accent-dark); }

/* ===== Кнопки ===== */
.btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    gap: 10px; padding: 16px 26px; border-radius: var(--radius-pill);
    font-family: var(--font-body); font-weight: 600; font-size: 15px;
    transition: transform 0.45s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease);
    will-change: transform;
}
.btn:active { transform: scale(0.97); }

/* Заливка кругом от иконки вместо плоской смены цвета */
.btn-primary {
    position: relative;
    overflow: hidden;
    background: var(--color-ink);
    color: var(--color-white);
    transition: color 0.5s var(--ease) 0.1s;
}
.btn-primary > span:not(.btn-nested-icon) { position: relative; z-index: 2; }
.btn-primary::before {
    /* Круг заливки растёт через clip-path (а не scale() маленькой точки) —
       проценты в circle() считаются от диагонали самого элемента, поэтому
       заливка всегда корректно покрывает кнопку целиком, любой длины. */
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-accent-dark);
    border-radius: inherit;
    clip-path: circle(0% at calc(100% - 32px) 50%);
    transition: clip-path 0.6s var(--ease);
    z-index: 1;
    pointer-events: none;
}
.btn-primary:hover { color: var(--color-ink); }
.btn-primary:hover::before { clip-path: circle(150% at calc(100% - 32px) 50%); }

.btn-outline-dark {
    background: rgba(255, 255, 255, 0.5); color: var(--color-ink);
    border: 1.5px solid rgba(43, 38, 32, 0.3); backdrop-filter: blur(6px);
}
.btn-outline-dark:hover { background: var(--color-ink); color: var(--color-white); border-color: var(--color-ink); transform: translateY(-3px); }

.btn-block { width: 100%; }
.btn-nested { padding-right: 8px; }
.btn-nested-icon {
    position: relative;
    z-index: 2;
    width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.22);
    display: inline-flex; align-items: center; justify-content: center; font-size: 15px;
    transition: transform 0.45s var(--ease), background 0.5s var(--ease), color 0.5s var(--ease);
}
.btn-primary:hover .btn-nested-icon { background: rgba(43, 38, 32, 0.12); color: var(--color-ink); }
.btn-nested:hover .btn-nested-icon { transform: translate(3px, -2px) scale(1.08); }

.btn-pulse::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(43, 38, 32, 0.35);
    animation: pulseRing 2.6s var(--ease) infinite; pointer-events: none;
}
@keyframes pulseRing {
    0%   { box-shadow: 0 0 0 0 rgba(43, 38, 32, 0.35); }
    70%  { box-shadow: 0 0 0 16px rgba(43, 38, 32, 0); }
    100% { box-shadow: 0 0 0 0 rgba(43, 38, 32, 0); }
}

.btn-icon {
    width: 46px; height: 46px; border-radius: 50%; background: var(--color-cream);
    display: inline-flex; align-items: center; justify-content: center; font-size: 18px;
    transition: background 0.3s var(--ease), transform 0.45s var(--ease);
}
.btn-icon:hover { background: var(--color-ink); color: var(--color-white); transform: translate(2px, -2px) scale(1.06); }

/* ===== Reveal (базовый) ===== */
.reveal { opacity: 0; filter: blur(8px); transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease); }
.reveal.is-visible { opacity: 1; filter: blur(0); transform: none; }

.reveal-left { opacity: 0; transform: translateX(-90px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal-left.is-visible { opacity: 1; transform: none; }

/* ===== Двойная рамка ===== */
.bezel-shell {
    background: var(--color-cream); border: 1px solid rgba(195, 177, 152, 0.35);
    border-radius: calc(var(--radius-lg) + 10px); padding: 12px; box-shadow: var(--shadow-soft);
}

/* ===== Шапка ===== */
.site-header { position: fixed; top: 20px; left: 0; right: 0; z-index: 100; display: flex; justify-content: center; padding: 0 24px; }

.nav-pill {
    display: flex; align-items: center; gap: 40px;
    background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.5); border-radius: var(--radius-pill);
    padding: 10px 12px 10px 20px; max-width: 900px; width: 100%;
    box-shadow: 0 20px 48px -16px rgba(43, 38, 32, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.4) inset, 0 0 40px 6px rgba(211, 202, 192, 0.45);
    animation: navGlow 5s ease-in-out infinite alternate;
}
@keyframes navGlow {
    from { box-shadow: 0 20px 48px -16px rgba(43, 38, 32, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.4) inset, 0 0 36px 4px rgba(211, 202, 192, 0.4); }
    to   { box-shadow: 0 20px 48px -16px rgba(43, 38, 32, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.4) inset, 0 0 52px 10px rgba(211, 202, 192, 0.6); }
}

.nav-logo img { height: 36px; width: auto; }
.nav-links { display: flex; gap: 28px; flex: 1; justify-content: center; }
.nav-links li { white-space: nowrap; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--color-ink); transition: color 0.3s var(--ease); white-space: nowrap; }
.nav-links a:hover { color: var(--color-accent-dark); }

.nav-phone {
    background: var(--color-ink); color: var(--color-white); padding: 11px 22px; border-radius: var(--radius-pill);
    font-size: 14px; font-weight: 600; display: inline-block;
    transition: background 0.3s var(--ease), transform 0.45s var(--ease);
}
.nav-phone:hover { background: var(--color-accent-dark); transform: translateY(-2px); }

/* ===== Мобильное меню (бургер + выпадающий список) ===== */
.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--color-ink);
    cursor: pointer;
    transition: background 0.3s var(--ease);
}
.nav-burger span {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: var(--color-white);
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-menu {
    position: fixed;
    top: 86px;
    left: 24px;
    right: 24px;
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px -20px rgba(43, 38, 32, 0.3);
    padding: 16px 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}
.nav-mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.nav-mobile-links { display: flex; flex-direction: column; }
.nav-mobile-links a {
    display: block;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-ink);
    border-radius: var(--radius-md);
    transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-mobile-links a:hover, .nav-mobile-links a:active { background: var(--color-cream); color: var(--color-accent-dark); }
.nav-mobile-phone {
    display: block;
    text-align: center;
    margin: 8px 10px 4px;
    background: var(--color-ink);
    color: var(--color-white);
    padding: 13px 22px;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 600;
    transition: background 0.3s var(--ease);
}
.nav-mobile-phone:hover { background: var(--color-accent-dark); }

@media (min-width: 861px) { .nav-mobile-menu { display: none; } }

@media (max-width: 860px) {
    .nav-links { display: none; }
    .nav-phone { display: none; }
    .nav-pill { justify-content: space-between; }
    .nav-burger { display: flex; }
}

/* ===== Hero ===== */
.hero { position: relative; height: 100vh; min-height: 680px; overflow: hidden; display: flex; align-items: center; }
.hero-media-wrap { position: absolute; top: -10%; left: 0; right: 0; height: 120%; z-index: 0; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; }
.hero-vignette { position: absolute; inset: 0; z-index: 1; pointer-events: none; box-shadow: inset 0 0 180px 50px rgba(20, 17, 14, 0.22); }

.hero-white-blur {
    position: absolute; top: 0; left: 0; width: 46%; height: 100%; z-index: 1; pointer-events: none;
    background: linear-gradient(to right, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.95) 55%, rgba(255,255,255,0.7) 75%, rgba(255,255,255,0) 100%);
    border-radius: 0 120px 120px 0;
}

.hero-bottom-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 220px;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to bottom,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.08) 25%,
        rgba(255,255,255,0.35) 50%,
        rgba(255,255,255,0.72) 72%,
        #FFFFFF 100%);
}

.hero-content { position: relative; z-index: 2; padding-left: clamp(28px, 6vw, 96px); max-width: 640px; color: var(--color-ink); }
.hero-title { font-size: clamp(38px, 4.8vw, 60px); margin-bottom: 20px; }
.hero-subtitle { font-size: 16.5px; color: var(--color-ink-soft); max-width: 460px; margin-bottom: 30px; text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5); }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 760px) {
    .hero { height: auto; min-height: 100vh; padding-top: 120px; padding-bottom: 60px; }
    .hero-white-blur {
        width: 100%; height: 100%; left: 0; border-radius: 0;
        background: linear-gradient(to bottom,
            rgba(255,255,255,0.4) 0%,
            rgba(255,255,255,0.22) 30%,
            rgba(255,255,255,0) 50%);
    }
    .hero-title, .hero-subtitle {
        text-shadow: 0 2px 10px rgba(255,255,255,0.85), 0 1px 3px rgba(255,255,255,0.9);
    }
    .hero-content { padding-left: 24px; padding-right: 24px; max-width: 100%; }
}

/* ===== Преимущества ===== */
.advantages { position: relative; padding: 100px 0 70px; overflow: hidden; }

.adv-bg-pattern {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        radial-gradient(circle at 85% 10%, rgba(211,202,192,0.35) 0%, rgba(211,202,192,0) 45%),
        radial-gradient(circle at 5% 90%, rgba(195,177,152,0.25) 0%, rgba(195,177,152,0) 40%),
        repeating-linear-gradient(135deg, rgba(43,38,32,0.025) 0px, rgba(43,38,32,0.025) 1px, transparent 1px, transparent 26px);
}

.adv-top-fade {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 220px;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0) 100%);
}

.adv-heading-wrap { position: relative; z-index: 2; padding-top: 54px; margin-bottom: 56px; }

.adv-watermark {
    position: absolute;
    top: -6px;
    left: 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(46px, 7vw, 94px);
    color: var(--color-ink);
    white-space: nowrap;
    letter-spacing: -0.01em;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.3s linear, transform 0.3s linear;
    z-index: 0;
}

.adv-title { position: relative; z-index: 1; font-size: clamp(32px, 3.8vw, 46px); margin-top: 34px; }

.adv-title .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.25s linear, transform 0.25s linear;
}

.adv-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }

.adv-feature {
    position: relative; overflow: hidden; background: var(--color-ink); color: var(--color-accent-light);
    border-radius: var(--radius-lg); padding: 44px; display: flex; flex-direction: column;
    justify-content: space-between; gap: 44px; box-shadow: var(--shadow-soft);
}
.adv-feature-bg { position: absolute; top: -20px; right: -20px; width: 260px; height: 260px; z-index: 0; }
.adv-feature::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 20%), rgba(255,255,255,0.1), transparent 70%);
    opacity: 0; transition: opacity 0.5s var(--ease); pointer-events: none;
}
.adv-feature:hover::before { opacity: 1; }
.adv-feature-text, .adv-feature .adv-icon { position: relative; z-index: 1; }
.adv-feature h3 { font-family: var(--font-body); color: var(--color-white); font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.adv-feature p { font-size: 15px; line-height: 1.7; max-width: 420px; color: rgba(251, 249, 247, 0.7); }
.adv-icon-light { background: rgba(255, 255, 255, 0.08) !important; color: var(--color-accent-light) !important; }
.adv-icon-light svg { width: 44px; height: 44px; }

.adv-stack { display: flex; flex-direction: column; gap: 24px; }

.adv-card {
    --adv-y: 0px;
    --adv-hover: -5px;
    position: relative;
    overflow: hidden;
    background: var(--color-cream);
    border-radius: var(--radius-md);
    padding: 28px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex: 1;
    box-shadow: var(--shadow-soft-sm);
    opacity: 0;
    transform: translate(90px, var(--adv-y));
    transition: opacity 1s var(--ease), transform 1s var(--ease), box-shadow 0.5s var(--ease);
}
.adv-card.is-visible { opacity: 1; transform: translate(0, var(--adv-y)); }

/* Bounce с лёгким поворотом при наведении */
.adv-card:hover {
    transform: translate(0, var(--adv-hover)) rotate(-1deg) scale(1.015);
    box-shadow: var(--shadow-soft);
}

.adv-card-1 { --adv-y: -8px; --adv-hover: -14px; }
.adv-card-2 { --adv-y: 6px; --adv-hover: 0px; }
.adv-card-3 { --adv-y: -3px; --adv-hover: -9px; }
.adv-card-4 { --adv-y: 4px; --adv-hover: -6px; }

.adv-stack .adv-card:nth-child(1) { transition-delay: 0s; }
.adv-stack .adv-card:nth-child(2) { transition-delay: 0.18s; }
.adv-stack .adv-card:nth-child(3) { transition-delay: 0.36s; }
.adv-stack .adv-card:nth-child(4) { transition-delay: 0.54s; }

.adv-card-bg { position: absolute; top: 0; right: 0; width: 90px; height: 90px; z-index: 0; }
.adv-card-bg line { stroke: var(--color-ink); stroke-width: 1; opacity: 0.08; }

.adv-card::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,0.7), transparent 70%);
    opacity: 0; transition: opacity 0.5s var(--ease); pointer-events: none;
}
.adv-card:hover::before { opacity: 1; }

.adv-icon {
    width: 56px; height: 56px; min-width: 56px; border-radius: var(--radius-sm);
    background: var(--color-white); display: flex; align-items: center; justify-content: center; color: var(--color-ink);
    position: relative; z-index: 1;
    transition: transform 0.5s var(--ease);
}
.adv-icon svg { width: 26px; height: 26px; }
.adv-card:hover .adv-icon {
    transform: rotate(-8deg) scale(1.08);
}

.adv-card > div:last-child { position: relative; z-index: 1; }
.adv-card h3 { font-family: var(--font-body); font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.adv-card p { font-size: 13.5px; color: var(--color-ink-soft); line-height: 1.6; }

@media (max-width: 900px) {
    .adv-grid { grid-template-columns: 1fr; }
    .adv-feature { padding: 36px; }
    .adv-watermark { font-size: 34px; }
}

/* ===== Карта (превью) ===== */
.map-preview {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background: var(--color-cream);
}
.map-preview .container { position: relative; z-index: 2; }
.map-preview .bezel-shell { margin-top: 48px; }

.map-heading {
    margin-bottom: 48px;
}
.map-kicker {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent-dark);
    margin-bottom: 16px;
}
.map-subtitle {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    color: rgba(43,38,32,0.65);
    max-width: 820px;
    margin-top: 20px;
}

.map-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 480px;
}

.map-canvas {
    width: 100%;
    height: 100%;
}

.map-canvas [class*="ground-pane"] {
    filter: sepia(0.45) saturate(0.55) hue-rotate(-10deg) brightness(0.9) contrast(1.08);
}

.map-pin-icon {
    position: relative;
    width: 28px;
    height: 28px;
    transform: translate(-50%, -50%);
}

/* Точка пина + пульсирующее кольцо вокруг неё */
.map-pin-dot {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--color-accent-dark);
    border: 3px solid #fff;
    box-shadow: 0 4px 14px rgba(43,38,32,0.35);
    cursor: pointer;
    transition: transform 0.3s var(--ease);
}
.map-pin-icon:hover .map-pin-dot {
    transform: scale(1.15);
}
.map-pin-dot::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--color-accent-dark);
    opacity: 0;
    animation: pinPulse 2.8s var(--ease) infinite;
}
@keyframes pinPulse {
    0% { transform: scale(0.6); opacity: 0.7; }
    70% { transform: scale(1.9); opacity: 0; }
    100% { opacity: 0; }
}

/* полировка попапов на карте */
.map-canvas [class*="balloon__layout"] {
    border-radius: var(--radius-md) !important;
    box-shadow: 0 20px 50px rgba(43,38,32,0.22) !important;
}
.map-canvas [class*="balloon__tail"] {
    display: none !important;
}
.map-canvas [class*="balloon__close-button"] {
    top: 10px !important;
    right: 10px !important;
    opacity: 0.5;
}

.map-balloon {
    width: 240px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #fff;
    font-family: var(--font-body);
}
.map-balloon-item {
    position: relative;
    cursor: pointer;
    transition: background 0.3s var(--ease);
}
.map-balloon-item:hover {
    background: rgba(195,177,152,0.12);
}
.map-balloon-item + .map-balloon-item {
    border-top: 1px solid rgba(43,38,32,0.08);
}
.map-balloon-photo {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease);
}
.map-balloon-item:hover .map-balloon-photo {
    transform: scale(1.06);
}
.map-balloon-name {
    padding: 14px 16px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16px;
    color: var(--color-ink);
}

/* map title */
.map-title {
    font-size: clamp(42px, 5.5vw, 80px);
}
.map-title .word {
    display: inline-block;
    opacity: 0;
    transform: scale(0.85);
    filter: blur(6px);
    transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease);
}
.map-title.is-visible .word {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

/* map card: one-shot fade+scale entrance, stays visible */
.map-reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    transition: opacity 1.6s var(--ease), transform 1.6s var(--ease);
}
.map-reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* footer row: text left, button right */
.map-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.map-footer-text-wrap {
    max-width: 560px;
}
.map-footer-label {
    display: block;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--color-accent-dark);
    margin-bottom: 10px;
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-map-footer].is-visible .map-footer-label {
    opacity: 1;
    transform: translateX(0);
}
.map-footer-text {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.2vw, 28px);
    color: var(--color-ink);
    margin: 0;
    max-width: 560px;
}
.map-footer-text .word {
    display: inline-block;
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
}
[data-map-footer].is-visible .map-footer-text .word {
    opacity: 1;
    transform: translateX(0);
}
.map-footer-btn {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
    transition-delay: 0.5s;
    flex-shrink: 0;
}
[data-map-footer].is-visible .map-footer-btn {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 700px) { .map-card { height: 380px; } }

/* ===== Развлечения: заголовок ===== */
.activities { padding: 80px 0 100px; }

.activities-heading {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}
.activities-watermark {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(28px, 3.4vw, 52px);
    color: var(--color-ink);
    max-width: 480px;
    line-height: 1.15;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1.3s var(--ease), transform 1.3s var(--ease);
}
.activities-watermark.is-visible {
    opacity: 0.15;
    transform: translateY(0);
}
.activities-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 3.8vw, 46px);
    color: var(--color-ink);
    margin: 0;
    text-align: right;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1.3s var(--ease), transform 1.3s var(--ease);
}
.activities-title.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Развлечения: адаптивная сетка карточек ===== */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px;
}
.activity-card {
    display: block;
    position: relative;
    border: none;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-cream);
    box-shadow: var(--shadow-soft-sm);
    aspect-ratio: 4 / 5;
    opacity: 0;
    transform: translateY(18px);
    text-decoration: none;
    color: inherit;
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), box-shadow 0.4s var(--ease);
}
.activity-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.activity-card:hover {
    box-shadow: var(--shadow-soft);
}
.activity-card-media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s var(--ease);
}
.activity-card-media-empty {
    background: repeating-linear-gradient(135deg, rgba(43,38,32,0.035) 0px, rgba(43,38,32,0.035) 1px, transparent 1px, transparent 22px), var(--color-cream);
}
.activity-card:hover .activity-card-media {
    transform: scale(1.08);
}
.activity-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(43,38,32,0.78) 0%, rgba(43,38,32,0) 60%);
}
.activity-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--color-ink);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
}
.activity-badge-here {
    background: #BFE3C4;
    color: #1F4A2A;
}
.activity-badge-nearby {
    background: #F5DD8B;
    color: #5A4A0D;
}
.activity-card-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px;
    z-index: 2;
}
.activity-card-title {
    font-family: var(--font-display);
    font-size: clamp(16px, 1.4vw, 20px);
    color: #fff;
    margin: 0;
}
.activity-card-desc {
    font-family: var(--font-body);
    font-size: 12.5px;
    color: rgba(255,255,255,0.8);
    margin: 4px 0 0;
}
.activities-footer {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}
@media (max-width: 560px) {
    .activities-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
}

/* ===== Форма заявки ===== */
.request { background: var(--color-cream); padding: var(--section-pad) 0; }
.request-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

.request-text {
    position: relative;
    padding-top: 95px;
}
.request-text > *:not(.request-watermark) { position: relative; z-index: 1; }

.request-watermark {
    position: absolute;
    top: 0;
    left: -4px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(50px, 6vw, 90px);
    color: var(--color-ink);
    white-space: nowrap;
    z-index: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.3s var(--ease), transform 1.3s var(--ease);
    pointer-events: none;
}
.request-watermark.is-visible {
    opacity: 0.07;
    transform: translateY(0);
}

.request-text h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 16px; }
.request-text p { color: var(--color-ink-soft); margin-bottom: 28px; max-width: 420px; }

.request-title { font-size: clamp(34px, 4vw, 50px); margin-bottom: 18px; }
.request-title .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px) rotate(4deg);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.request-title.is-visible .word {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

/* Таблетки пунктов, в ряд, с инверсией цвета при наведении */
.request-points {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.request-point {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--color-white);
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-ink);
    box-shadow: var(--shadow-soft-sm);
    opacity: 0;
    transform: scale(0.7) translateY(14px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.request-point.is-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}
.request-point:hover {
    background: var(--color-ink);
    color: var(--color-white);
    transform: translateY(-3px) scale(1.03);
    box-shadow: var(--shadow-soft);
}
.request-point-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-ink);
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
    transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.request-point:hover .request-point-icon {
    background: var(--color-white);
    color: var(--color-ink);
}

.request-card {
    position: relative;
    overflow: hidden;
    margin-top: 56px;
}
.request-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,0.6), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s var(--ease);
    pointer-events: none;
    z-index: 0;
}
.request-card:hover::before { opacity: 1; }
.request-card > * { position: relative; z-index: 1; }

.request-form { background: var(--color-white); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.request-form label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; color: var(--color-ink-soft); }

.request-form input[type="text"], .request-form input[type="tel"] {
    border: 1.5px solid var(--color-accent-light); border-radius: var(--radius-sm); padding: 14px 16px;
    font-size: 15px; font-family: var(--font-body); color: var(--color-ink); transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.request-form input[type="text"]:focus, .request-form input[type="tel"]:focus {
    outline: none;
    border-color: var(--color-accent-dark);
    box-shadow: 0 0 0 4px rgba(195,177,152,0.25);
}

.checkbox-row { flex-direction: row !important; align-items: center; gap: 10px !important; font-size: 13px; }
.checkbox-row input { width: 18px; height: 18px; }
.checkbox-row a { text-decoration: underline; }

@media (max-width: 860px) { .request-inner { grid-template-columns: 1fr; } }

/* ===== Футер ===== */
.site-footer { position: relative; overflow: hidden; background: var(--color-ink); color: var(--color-accent-light); padding: 64px 0 0; }

.footer-watermark {
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 340px;
    height: 340px;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
}

.footer-inner { position: relative; z-index: 1; max-width: var(--container-width); margin: 0 auto; padding: 0 24px 48px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-logo { height: 96px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 14px; color: rgba(251, 249, 247, 0.6); max-width: 220px; }
.footer-col h4 { font-family: var(--font-body); font-size: 14px; font-weight: 700; color: var(--color-white); margin-bottom: 16px; }
.footer-col a, .footer-col span { display: block; font-size: 14px; color: rgba(251, 249, 247, 0.6); margin-bottom: 10px; transition: color 0.3s var(--ease); }
.footer-col a { position: relative; }
.footer-col a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--color-white);
    transition: width 0.4s var(--ease);
}
.footer-col a:hover::after { width: 100%; }
.footer-col a:hover { color: var(--color-white); }

.footer-brand, .footer-col {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.footer-brand.is-visible, .footer-col.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.footer-bottom { position: relative; z-index: 1; border-top: 1px solid rgba(251, 249, 247, 0.12); padding: 20px 24px; text-align: center; }
.footer-bottom span { font-size: 13px; color: rgba(251, 249, 247, 0.4); }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr 1fr; } }

/* ===== Курсор, прогресс-бар скролла ===== */
.cursor-dot, .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    /* Курсор — самый верхний слой на сайте, иначе элементы с таким же
       z-index (например, плавающая кнопка мессенджеров), идущие позже
       в разметке, перекрывают его и курсор "прячется" под ними. */
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}
.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--color-white);
}
.cursor-ring {
    width: 34px;
    height: 34px;
    border: 1.5px solid var(--color-white);
    transition: width 0.3s var(--ease), height 0.3s var(--ease);
}
.cursor-ring.is-hover {
    width: 56px;
    height: 56px;
}
body.cursor-active, body.cursor-active a, body.cursor-active button, body.cursor-active input {
    cursor: none;
}
@media (hover: none), (max-width: 860px) {
    .cursor-dot, .cursor-ring { display: none !important; }
    body.cursor-active, body.cursor-active a, body.cursor-active button { cursor: auto; }
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 998;
    pointer-events: none;
}
.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--color-ink);
}

/* ===== Nav actions (Арендовать / Связаться) ===== */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.2s var(--ease);
}
.nav-action-primary {
    background: var(--color-ink);
    color: var(--color-white);
}
.nav-action-primary:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}
.nav-action-outline {
    border: 1.5px solid var(--color-ink);
    color: var(--color-ink);
    background: transparent;
}
.nav-action-outline:hover {
    background: var(--color-ink);
    color: var(--color-white);
}
@media (max-width: 1080px) {
    .nav-actions { display: none; }
}

/* ===== Floating messenger button ===== */
.messenger-fab-wrap {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}
.messenger-fab {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--color-ink);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    overflow: visible;
    border: none;
    transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.messenger-fab:hover {
    transform: translateY(-2px);
    background: var(--color-accent-dark);
    color: var(--color-ink);
}
.messenger-fab svg {
    width: 26px;
    height: 26px;
    position: relative;
    z-index: 2;
}
.messenger-fab-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--color-ink);
    opacity: 0.55;
    animation: messengerPulse 2.2s ease-out infinite;
    pointer-events: none;
}
@keyframes messengerPulse {
    0% { transform: scale(1); opacity: 0.55; }
    70% { transform: scale(1.9); opacity: 0; }
    100% { transform: scale(1.9); opacity: 0; }
}
.messenger-fab-list {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.messenger-fab-list.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.messenger-fab-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: var(--color-white);
    color: var(--color-ink);
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.messenger-fab-item:hover {
    transform: scale(1.08);
    background: var(--color-ink);
    color: var(--color-white);
}
.messenger-fab-item svg {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
}

/* ===== Модалка "Заказать звонок" ===== */
body.no-scroll { overflow: hidden; }
.callback-modal {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(43, 38, 32, 0.45);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s var(--ease);
}
.callback-modal.is-open { opacity: 1; pointer-events: auto; }
.callback-modal-card {
    position: relative;
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    max-width: 360px; width: 100%;
    transform: translateY(16px) scale(0.98);
    transition: transform 0.3s var(--ease);
}
.callback-modal.is-open .callback-modal-card { transform: translateY(0) scale(1); }
.callback-modal-card h3 { font-family: 'Fraunces', serif; font-size: 22px; margin: 0 0 6px; font-weight: 500; }
.callback-modal-card p { font-size: 14px; color: var(--color-ink-soft); margin: 0 0 18px; }
.callback-modal-close {
    position: absolute; top: 14px; right: 14px;
    width: 32px; height: 32px; border-radius: 50%;
    border: none; background: var(--color-cream); color: var(--color-ink);
    font-size: 20px; line-height: 1; cursor: pointer;
}
#callbackForm input, #callbackForm textarea {
    width: 100%; padding: 12px 14px; margin-bottom: 10px;
    border-radius: var(--radius-sm); border: 1px solid rgba(43, 38, 32, 0.15);
    font-family: inherit; font-size: 15px; background: var(--color-cream); resize: none;
}
#callbackForm input:focus, #callbackForm textarea:focus { outline: 2px solid var(--color-accent-dark); border-color: transparent; }
.callback-modal-success {
    display: none; text-align: center; padding: 20px 0; font-weight: 600;
}
.callback-modal-success.is-visible { display: block; }
@media (max-width: 640px) {
    .messenger-fab-wrap { right: 16px; bottom: 16px; }
}

/* ===== FAQ ===== */
.faq { padding: var(--section-pad) 0; }
.faq-heading { text-align: center; margin-bottom: 44px; }
.faq-watermark {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-ink-soft);
    margin-bottom: 10px;
}
.faq-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.4vw, 40px);
    color: var(--color-ink);
    margin: 0;
}
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    border: 1.5px solid rgba(43, 38, 32, 0.12);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-white);
}
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-body);
    font-size: 15.5px;
    font-weight: 600;
    color: var(--color-ink);
    cursor: pointer;
}
.faq-toggle-icon {
    flex-shrink: 0;
    font-size: 20px;
    line-height: 1;
    transition: transform 0.3s var(--ease);
}
.faq-item.is-open .faq-toggle-icon {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
}
.faq-answer p {
    margin: 0;
    padding: 0 22px 20px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--color-ink-soft);
}
.faq-item.is-open .faq-answer {
    max-height: 400px;
}
