/* =============================================================
   «В облаках Крыма» — новый дизайн (v2). Палитра «Небо и море».
   ============================================================= */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/fonts/inter-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/fonts/inter-latin.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 {
    --navy: #0b1b33; --navy-2: #13294a; --ink: #1b2a3e; --muted: #667487;
    --sand: #f6f1e8; --sand-2: #ece3d3; --paper: #fbf8f3;
    --gold: #c8a26a; --gold-2: #e2c79c;
    --line: rgba(27, 42, 62, .12);
    --font-display: "Cormorant", Georgia, "Times New Roman", serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --pad: clamp(16px, 4vw, 56px);
    --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 16px;
       -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
em { font-style: italic; }
h1, h2, h3 { margin: 0; }
button { font: inherit; }

/* ---------- типографика ---------- */
.kicker { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(36px, 5.2vw, 68px); line-height: 1.02; letter-spacing: -.01em; color: var(--navy); }
.h2 em { color: var(--gold); font-weight: 500; }
.sec-head { max-width: 1280px; margin: 0 auto 48px; padding: 0 var(--pad); }
.sec-lead { max-width: 640px; margin: 18px 0 0; font-size: 17px; color: var(--muted); }
.sec-head--light .h2 { color: #fff; }
.sec-head--light .sec-lead { color: rgba(255, 255, 255, .72); }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 28px; border-radius: 999px; border: 1px solid transparent;
       font-size: 15px; font-weight: 600; letter-spacing: .02em; text-decoration: none; cursor: pointer; white-space: nowrap;
       transition: background .3s var(--ease), color .3s var(--ease), border-color .3s, transform .3s var(--ease), box-shadow .3s; }
.btn:active { transform: scale(.97); }
.btn--light { background: #fff; color: var(--navy); }
@media (hover: hover) { .btn--light:hover { background: var(--gold-2); } }
.btn--ghost { border-color: rgba(255, 255, 255, .6); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); background: rgba(255, 255, 255, .06); }
@media (hover: hover) { .btn--ghost:hover { background: #fff; color: var(--navy); } }
.btn--gold { background: var(--gold); color: var(--navy); }
@media (hover: hover) { .btn--gold:hover { background: var(--gold-2); box-shadow: 0 10px 30px rgba(200, 162, 106, .35); } }
.btn--gold:disabled { background: var(--sand-2); color: #a5adb8; cursor: not-allowed; box-shadow: none; }
.btn--dark { background: var(--navy); color: #fff; }
@media (hover: hover) { .btn--dark:hover { background: var(--navy-2); } }
.btn--outline { border-color: var(--line); color: var(--ink); background: transparent; }
@media (hover: hover) { .btn--outline:hover { border-color: var(--navy); background: var(--navy); color: #fff; } }
.btn--wide { width: 100%; }

/* ---------- появление при прокрутке ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- шапка ---------- */
.hdr { position: fixed; top: 0; left: 0; right: 0; z-index: 90; display: flex; align-items: center; gap: 28px; height: 76px; padding: 0 var(--pad);
       color: #fff; transition: background .45s var(--ease), color .45s, height .45s var(--ease), box-shadow .45s; }
.hdr.is-solid { height: 64px; background: rgba(251, 248, 243, .86); color: var(--navy); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
                box-shadow: 0 1px 0 var(--line); }
.hdr-logo { font-family: var(--font-display); font-size: 27px; font-weight: 600; text-decoration: none; letter-spacing: .01em; white-space: nowrap; margin-right: auto; }
.hdr-logo em { color: var(--gold-2); font-weight: 500; }
.hdr.is-solid .hdr-logo em { color: var(--gold); }
.hdr-nav { display: flex; gap: 26px; }
.hdr-nav a { font-size: 14px; font-weight: 500; text-decoration: none; opacity: .88; position: relative; padding: 6px 0; }
.hdr-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
@media (hover: hover) { .hdr-nav a:hover { opacity: 1; } }
@media (hover: hover) { .hdr-nav a:hover::after { transform: scaleX(1); transform-origin: left; } }
.hdr-cta { padding: 11px 22px; font-size: 14px; }
.hdr-burger { display: none; width: 44px; height: 44px; border: 0; background: none; color: inherit; cursor: pointer; position: relative; margin-right: -8px; }
.hdr-burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease), top .4s var(--ease); }
.hdr-burger span:first-child { top: 17px; } .hdr-burger span:last-child { top: 25px; }
.menu-open .hdr-burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .hdr-burger span:last-child { top: 21px; transform: rotate(-45deg); }
.menu-open .hdr { color: #fff; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu-open .hdr .hdr-cta { display: none; }
.menu { position: fixed; inset: 0; z-index: 85; background: var(--navy); color: #fff; display: flex; flex-direction: column; justify-content: center;
        padding: 100px var(--pad) 40px; animation: menu-in .5s var(--ease); }
.menu[hidden] { display: none; }
@keyframes menu-in { from { opacity: 0; } to { opacity: 1; } }
.menu nav { display: flex; flex-direction: column; gap: 6px; }
.menu nav a { font-family: var(--font-display); font-size: clamp(34px, 9vw, 54px); line-height: 1.15; text-decoration: none; }
@media (hover: hover) { .menu nav a:hover { color: var(--gold-2); font-style: italic; } }
.menu-contacts { margin-top: 40px; display: flex; gap: 22px; flex-wrap: wrap; font-size: 15px; }
.menu-contacts a { color: var(--gold-2); text-decoration: none; }

/* ---------- главный экран ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; color: #fff; overflow: hidden; background: var(--navy); }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease; }
.hero-slide.is-on { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 9s linear; }
.hero-slide.is-on img { transform: scale(1); }
.hero-shade { position: absolute; inset: 0; background:
    linear-gradient(180deg, rgba(11, 27, 51, .55) 0%, rgba(11, 27, 51, 0) 28%),
    linear-gradient(0deg, rgba(11, 27, 51, .88) 0%, rgba(11, 27, 51, .35) 42%, rgba(11, 27, 51, 0) 70%); }
.hero-clouds { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-clouds i { position: absolute; width: 70vw; height: 30vw; min-width: 520px; min-height: 220px; border-radius: 50%; opacity: .22;
                 background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0)); filter: blur(10px);
                 animation: cloud-drift 70s linear infinite; }
.hero-clouds i:nth-child(1) { top: 6%; left: -40%; }
.hero-clouds i:nth-child(2) { top: 26%; left: -70%; animation-duration: 95s; animation-delay: -30s; opacity: .14; transform: scale(1.4); }
.hero-clouds i:nth-child(3) { top: 0%; left: -55%; animation-duration: 120s; animation-delay: -70s; opacity: .18; }
@keyframes cloud-drift { from { translate: 0 0; } to { translate: 190vw 0; } }
.hero-inner { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(110px, 16vh, 170px); max-width: 980px; }
.hero .kicker { color: var(--gold-2); }
.hero-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(46px, 8vw, 116px); line-height: .95; letter-spacing: -.015em;
              text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.hero-title em { color: var(--gold-2); }
.hero-sub { max-width: 560px; margin: 22px 0 30px; font-size: clamp(16px, 1.5vw, 19px); color: rgba(255, 255, 255, .86); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-bottom { position: absolute; left: var(--pad); right: var(--pad); bottom: 28px; display: flex; align-items: center; gap: 18px;
               font-size: 14px; color: rgba(255, 255, 255, .85); }
.hero-phone { text-decoration: none; font-weight: 600; letter-spacing: .02em; }
.hero-tg { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); display: inline-flex; align-items: center; justify-content: center; color: #fff;
           transition: background .3s, color .3s; }
@media (hover: hover) { .hero-tg:hover { background: #fff; color: #229ed9; } }
.hero-tg svg { width: 18px; height: 18px; }
.hero-counter { margin-left: auto; font-family: var(--font-display); font-size: 18px; letter-spacing: .08em; }
.hero-scroll { width: 26px; height: 42px; border: 1.5px solid rgba(255, 255, 255, .6); border-radius: 14px; position: relative; }
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: scroll-dot 2s ease-in-out infinite; }
@keyframes scroll-dot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- цифры ---------- */
.facts { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--sand); border-bottom: 1px solid var(--line); }
.fact { padding: 34px 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.fact:last-child { border-right: 0; }
.fact b { font-family: var(--font-display); font-weight: 500; font-size: clamp(34px, 3.4vw, 50px); line-height: 1; color: var(--navy); }
.fact > span { font-size: 14px; color: var(--muted); }

/* ---------- о нас ---------- */
.about { max-width: 1280px; margin: 0 auto; padding: clamp(80px, 11vw, 150px) var(--pad); display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about-text p { font-size: 17px; color: #3d4b5c; margin: 0 0 18px; }
.about-text .h2 { margin-bottom: 30px; }
.about-sign { font-family: var(--font-display); font-style: italic; font-size: 26px !important; color: var(--navy) !important; line-height: 1.3; margin-top: 26px !important; }
.about-collage { position: relative; height: clamp(440px, 52vw, 640px); }
.about-collage figure { position: absolute; margin: 0; overflow: hidden; border-radius: 20px; box-shadow: 0 30px 60px rgba(11, 27, 51, .18);
                        transform: translateY(var(--py, 0px)); transition: transform .15s linear; }
.about-collage figure img { width: 100%; height: 100%; object-fit: cover; }
.about-collage figure:nth-child(1) { left: 0; top: 0; width: 68%; height: 62%; }
.about-collage figure:nth-child(2) { right: 0; top: 30%; width: 50%; height: 48%; z-index: 2; border: 6px solid var(--paper); }
.about-collage figure:nth-child(3) { left: 12%; bottom: 0; width: 44%; height: 34%; z-index: 1; }

/* ---------- квартиры ---------- */
.apts { padding: clamp(70px, 9vw, 120px) 0; background: var(--sand); }
.apts-grid { max-width: 1280px; margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 40px); }
.apt { background: var(--paper); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 0 var(--line);
       transition: box-shadow .5s var(--ease), transform .5s var(--ease); }
@media (hover: hover) { .apt:hover { box-shadow: 0 30px 70px rgba(11, 27, 51, .14); transform: translateY(-4px); } }
.apt-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; cursor: pointer; background: var(--sand-2); }
.apt-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), opacity .8s; }
.apt-media img + img, .apt-media picture + picture img { opacity: 0; }
@media (hover: hover) { .apt:hover .apt-media img { transform: scale(1.05); } }
@media (hover: hover) { .apt:hover .apt-media picture + picture img { opacity: 1; } }
.apt-badge { position: absolute; left: 16px; top: 16px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--navy);
             background: rgba(251, 248, 243, .92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.apt-count { position: absolute; right: 16px; bottom: 16px; padding: 6px 12px; border-radius: 999px; font-size: 12px; color: #fff; background: rgba(11, 27, 51, .55); }
.apt-body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.apt-name { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.05; color: var(--navy); }
.apt-desc { margin: 0; color: #4a5768; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.apt-meta { display: flex; gap: 18px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.apt-meta b { color: var(--navy); font-weight: 600; }
.apt-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }

/* ---------- 3D-карта ---------- */
.mapsec { background: var(--navy); padding: clamp(70px, 9vw, 120px) 0; }
.mapsec-frame { max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }
.mapsec-map { height: min(80vh, 780px); min-height: 460px; border-radius: 26px; box-shadow: 0 40px 90px rgba(0, 0, 0, .35); --font-display: "Cormorant", Georgia, serif; }

/* ---------- достопримечательности ---------- */
.sights { padding: clamp(70px, 9vw, 120px) 0 clamp(60px, 7vw, 100px); }
.sights-rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--pad) 24px; scrollbar-width: none; scroll-padding: 0 var(--pad); }
.sights-rail::-webkit-scrollbar { display: none; }
.sight { flex: 0 0 clamp(250px, 26vw, 340px); scroll-snap-align: start; position: relative; aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden;
         cursor: pointer; border: 0; padding: 0; text-align: left; color: #fff; background: var(--navy-2); }
.sight img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
@media (hover: hover) { .sight:hover img { transform: scale(1.07); } }
.sight::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 27, 51, .9) 0%, rgba(11, 27, 51, 0) 55%); }
.sight-info { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 1; }
.sight-dist { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); }
.sight-title { display: block; margin-top: 6px; font-family: var(--font-display); font-size: 27px; font-weight: 500; line-height: 1.08; }
.rail-nav { max-width: 1280px; margin: 0 auto; padding: 0 var(--pad); display: flex; gap: 10px; justify-content: flex-end; }
.rail-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--navy); font-size: 20px; cursor: pointer;
            transition: background .3s, color .3s; }
@media (hover: hover) { .rail-btn:hover { background: var(--navy); color: #fff; } }

/* ---------- правила ---------- */
.rules { padding: clamp(70px, 9vw, 120px) 0; background: var(--sand); }
.rules-grid { max-width: 1280px; margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(30px, 5vw, 80px); }
.rule { position: relative; padding: 28px 0 28px 64px; border-top: 1px solid var(--line); }
.rule-n { position: absolute; left: 0; top: 24px; font-family: var(--font-display); font-size: 30px; color: var(--gold); font-style: italic; }
.rule h3 { font-size: 18px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.rule p { margin: 0; color: #4a5768; font-size: 15px; }
.rule b { color: var(--navy); }

/* ---------- контакты ---------- */
.contact { position: relative; padding: clamp(100px, 14vw, 180px) var(--pad); color: #fff; text-align: center; overflow: hidden; background: var(--navy); }
.contact-bg { position: absolute; inset: -8% 0; background-size: cover; background-position: center; opacity: .5; transform: translateY(var(--py, 0px)); }
.contact::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(11, 27, 51, .55), rgba(11, 27, 51, .85)); }
.contact-inner { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.contact .kicker { color: var(--gold-2); }
.contact .h2 { color: #fff; }
.contact-phone { display: block; margin: 26px 0 18px; font-family: var(--font-display); font-size: clamp(40px, 7vw, 84px); line-height: 1; text-decoration: none; }
@media (hover: hover) { .contact-phone:hover { color: var(--gold-2); } }
.contact-links { display: flex; gap: 10px 26px; flex-wrap: wrap; justify-content: center; font-size: 15px; }
.contact-links a { color: var(--gold-2); text-decoration: none; border-bottom: 1px solid rgba(226, 199, 156, .4); }
@media (hover: hover) { .contact-links a:hover { border-color: var(--gold-2); } }
.contact-addr { margin: 18px 0 30px; color: rgba(255, 255, 255, .72); font-size: 15px; max-width: 560px; }

/* ---------- подвал ---------- */
.ftr { background: #071224; color: rgba(255, 255, 255, .7); text-align: center; padding: 56px var(--pad) 40px; font-size: 14px; }
.ftr-logo { font-family: var(--font-display); font-size: 32px; color: #fff; }
.ftr-logo em { color: var(--gold-2); }
.ftr-sub { margin: 4px 0 18px; }
.ftr-links { margin: 6px 0; }
.ftr-links a { color: rgba(255, 255, 255, .82); text-decoration: none; margin: 0 8px; white-space: nowrap; }
@media (hover: hover) { .ftr-links a:hover { color: var(--gold-2); } }
.ftr-copy { margin-top: 22px; font-size: 13px; color: rgba(255, 255, 255, .45); }

/* ---------- панель бронирования ---------- */
html.is-locked, html.is-locked body { overflow: hidden; }
.drawer, .modal { position: fixed; inset: 0; z-index: 200; }
.drawer[hidden], .modal[hidden] { display: none; }
.drawer-backdrop, .modal-backdrop { position: absolute; inset: 0; background: rgba(7, 18, 36, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade-in .4s ease; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(1240px, 100%); background: var(--paper); box-shadow: -30px 0 80px rgba(0, 0, 0, .25);
                animation: drawer-in .6s var(--ease); display: flex; }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
.drawer-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
.drawer-close { position: absolute; top: 14px; right: 14px; z-index: 5; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; font-size: 28px; line-height: 1;
                background: rgba(11, 27, 51, .7); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .3s, transform .3s; }
@media (hover: hover) { .drawer-close:hover { background: var(--navy); transform: rotate(90deg); } }
.dr-gallery { position: sticky; top: 0; height: 100vh; height: 100dvh; background: var(--navy); display: flex; flex-direction: column; }
.dr-main { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.dr-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.dr-main img.is-on { opacity: 1; }
.dr-arrows { position: absolute; left: 14px; right: 14px; top: 50%; display: flex; justify-content: space-between; transform: translateY(-50%); pointer-events: none; }
.dr-arrows button { pointer-events: auto; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(251, 248, 243, .88); color: var(--navy); font-size: 18px; }
.dr-thumbs { display: flex; gap: 6px; padding: 8px; overflow-x: auto; scrollbar-width: none; background: var(--navy); }
.dr-thumbs::-webkit-scrollbar { display: none; }
.dr-thumbs button { flex: 0 0 74px; height: 52px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; opacity: .55; transition: opacity .3s, border-color .3s; background: none; }
.dr-thumbs button.is-on { opacity: 1; border-color: var(--gold); }
.dr-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.dr-body { padding: 70px clamp(20px, 3vw, 44px) 40px; }
.dr-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.05; color: var(--navy); }
.dr-desc { color: #4a5768; font-size: 15px; margin: 12px 0 26px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-head h3 { font-size: 18px; font-weight: 600; color: var(--navy); }
.cal-nav { display: flex; gap: 8px; }
.cal-nav button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; font-size: 16px; transition: background .25s, color .25s; }
@media (hover: hover) { .cal-nav button:hover:not(:disabled) { background: var(--navy); color: #fff; } }
.cal-nav button:disabled { opacity: .3; cursor: default; }
.cal { display: grid; grid-template-columns: repeat(var(--months, 2), minmax(0, 1fr)); gap: 22px; }
.cal-month h4 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--navy); text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; user-select: none; }
.cal-dow { text-align: center; font-size: 11px; font-weight: 600; color: #9aa4b2; text-transform: uppercase; padding-bottom: 4px; }
.day { position: relative; height: 48px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
       font-size: 14px; font-weight: 600; color: var(--navy); background: #fff; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s; }
.day small { font-size: 9.5px; font-weight: 600; color: #8a95a5; line-height: 1; }
.day--empty { background: transparent; }
.day--free { cursor: pointer; }
@media (hover: hover) { .day--free:hover { border-color: var(--gold); } }
.day--past { background: transparent; color: #c7ccd4; }
.day--busy { background: repeating-linear-gradient(135deg, #efe9df 0 5px, #e6ddcf 5px 10px); color: #b3aa9c; text-decoration: line-through; }
/* половинки: день выезда одного гостя = день заезда другого */
.day--busy-start { background: linear-gradient(90deg, #fff 50%, #e6ddcf 50%); cursor: pointer; }
.day--busy-end { background: linear-gradient(90deg, #e6ddcf 50%, #fff 50%); cursor: pointer; }
.day--busy-double { background: #e6ddcf; color: #b3aa9c; text-decoration: line-through; }
.day.is-range { background: #dfe6f0; color: var(--navy); border-radius: 4px; }
.day.is-start, .day.is-end { background: var(--navy); color: #fff; }
.day.is-start small, .day.is-end small { color: var(--gold-2); }
.day.is-start.day--busy-end { background: linear-gradient(90deg, #e6ddcf 50%, var(--navy) 50%); }
.day.is-end.day--busy-start { background: linear-gradient(90deg, var(--navy) 50%, #e6ddcf 50%); }
.cal-legend { display: flex; gap: 16px; flex-wrap: wrap; margin: 16px 0 22px; font-size: 12px; color: var(--muted); }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.lg--free { background: #fff; border: 1px solid var(--line); }
.lg--busy { background: repeating-linear-gradient(135deg, #efe9df 0 3px, #e1d7c7 3px 6px); }
.lg--sel { background: var(--navy); }
.dr-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.dr-summary div { background: #fff; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.dr-summary span { font-size: 12px; color: var(--muted); }
.dr-summary b { font-size: 16px; color: var(--navy); }
.dr-note { font-size: 13px; color: var(--muted); margin: 14px 0 18px; }
.dr-back { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0; margin-bottom: 10px; font-size: 14px; }
@media (hover: hover) { .dr-back:hover { color: var(--navy); } }
.dr-picked { margin: 0 0 20px; padding: 14px 16px; border-radius: 14px; background: var(--sand); color: var(--navy); font-size: 15px; }
.dr-done { text-align: center; padding: 40px 10px; }
.done-mark { width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 50%; background: var(--navy); color: var(--gold-2); font-size: 34px; display: flex; align-items: center; justify-content: center; }
.dr-done h3 { font-family: var(--font-display); font-weight: 500; font-size: 32px; color: var(--navy); }
.dr-done p { color: #4a5768; margin: 10px auto 26px; max-width: 420px; }

/* ---------- формы ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld--wide { grid-column: 1 / -1; }
.fld > span { font-size: 13px; font-weight: 600; color: var(--navy); }
.fld small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; }
.fld input, .fld select, .fld textarea { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 15px; color: var(--ink);
                                         transition: border-color .2s, box-shadow .2s; }
.fld textarea { resize: vertical; min-height: 84px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 162, 106, .22); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 8px; font-size: 13px; color: var(--muted); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; accent-color: var(--navy); }
.consent a { color: var(--navy); }
.form-status { min-height: 22px; margin: 6px 0 12px; font-size: 14px; font-weight: 600; color: #b42318; }

/* ---------- модальные окна ---------- */
.modal { display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-panel { position: relative; width: min(720px, 100%); max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain; background: var(--paper); border-radius: 26px;
               padding: clamp(24px, 4vw, 44px); box-shadow: 0 40px 100px rgba(0, 0, 0, .3); animation: modal-in .5s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-panel h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 4vw, 42px); color: var(--navy); margin-bottom: 20px; line-height: 1.05; }
.modal-panel--sight { padding: 0; width: min(980px, 100%); display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; }
.sm-gallery { position: relative; min-height: 420px; background: var(--navy); }
.sm-gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s; }
.sm-gallery img.is-on { opacity: 1; }
.sm-body { padding: clamp(28px, 4vw, 48px); overflow-y: auto; }
.sm-body h2 { margin-bottom: 14px; }
.sm-body p { color: #4a5768; }
.sm-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

/* ---------- уведомления ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 300; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; max-width: calc(100% - 32px);
         padding: 14px 22px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 14px; font-weight: 500; box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
         transition: opacity .35s, transform .35s var(--ease); text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150; max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 14px;
          padding: 14px 16px; border-radius: 18px; background: rgba(11, 27, 51, .94); color: #fff; font-size: 13px; line-height: 1.45; box-shadow: 0 16px 40px rgba(0, 0, 0, .3); }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; flex: 1; }
.cookie a { color: var(--gold-2); }
.cookie button { flex-shrink: 0; border: 0; border-radius: 999px; padding: 9px 18px; background: var(--gold); color: var(--navy); font-weight: 700; cursor: pointer; }

/* =============================================================
   Адаптив
   ============================================================= */
@media (max-width: 1180px) {
    .hdr-nav { display: none; }
    .hdr-burger { display: block; }
}
@media (max-width: 1000px) {
    .facts { grid-template-columns: repeat(3, 1fr); }
    .fact:nth-child(3) { border-right: 0; }
    .fact:nth-child(n+4) { border-top: 1px solid var(--line); }
    .about { grid-template-columns: 1fr; }
    .about-collage { height: clamp(360px, 80vw, 560px); }
    .drawer-scroll { grid-template-columns: 1fr; display: block; }
    .dr-gallery { position: relative; height: auto; }
    .dr-main { aspect-ratio: 16 / 10; flex: none; }
    .dr-body { padding-top: 32px; }
    .modal-panel--sight { grid-template-columns: 1fr; overflow-y: auto; }
    .sm-gallery { min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 760px) {
    body { font-size: 15px; }
    .hdr { height: 64px; }
    .hdr-cta { display: none; }
    .hdr-logo { font-size: 24px; }
    .hero-inner { bottom: 104px; }
    .hero-actions .btn { padding: 14px 22px; }
    .hero-counter, .hero-scroll { display: none; }
    .facts { grid-template-columns: 1fr 1fr; }
    .fact { padding: 24px 18px; border-top: 1px solid var(--line); }
    .fact:nth-child(odd) { border-right: 1px solid var(--line); }
    .fact:nth-child(even) { border-right: 0; }
    .fact:first-child, .fact:nth-child(2) { border-top: 0; }
    .fact:last-child { grid-column: 1 / -1; border-right: 0; }
    .apts-grid { grid-template-columns: 1fr; }
    .apt-body { padding: 22px; }
    .rules-grid { grid-template-columns: 1fr; }
    .mapsec-map { height: 74vh; min-height: 420px; border-radius: 18px; }
    .form-grid { grid-template-columns: 1fr 1fr; }
    .dr-summary { grid-template-columns: 1fr 1fr; }
    .day { height: 46px; }
    .modal { padding: 0; align-items: flex-end; }
    .modal-panel { border-radius: 24px 24px 0 0; max-height: 92dvh; }
}
@media (max-width: 420px) {
    .form-grid { grid-template-columns: 1fr; }
    .fld:nth-child(5), .fld:nth-child(6) { grid-column: auto; }
}

/* Телефон в горизонтальной ориентации: низкий экран */
@media (orientation: landscape) and (max-height: 500px) {
    .hdr { height: 54px; }
    .hdr.is-solid { height: 50px; }
    .hero { min-height: 340px; }
    .hero-inner { bottom: 70px; max-width: 70%; }
    .hero-title { font-size: clamp(34px, 6vw, 56px); }
    .hero-sub { margin: 10px 0 16px; font-size: 14px; }
    .hero-bottom { bottom: 16px; }
    .menu { padding-top: 64px; }
    .menu nav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 30px; }
    .menu nav a { font-size: 30px; }
    .apts-grid { grid-template-columns: 1fr 1fr; }
    .mapsec-map { height: 86vh; min-height: 300px; }
    .drawer-scroll { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
    .dr-gallery { position: sticky; height: 100vh; height: 100dvh; }
    .dr-main { aspect-ratio: auto; flex: 1; }
    .dr-body { padding-top: 56px; }
    .modal { align-items: center; padding: 10px; }
    .modal-panel { max-height: calc(100dvh - 20px); border-radius: 20px; }
    .modal-panel--sight { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
    .sm-gallery { aspect-ratio: auto; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .hero-slide img, .hero-clouds i { transition: none; animation: none; transform: none; }
}

/* Главный экран: текст читается на любом фото (в т.ч. на белой стене дома) */
.hero .kicker, .hero-sub { text-shadow: 0 1px 14px rgba(7, 18, 36, .55); }
@media (max-width: 760px) {
    .hero-shade { background:
        linear-gradient(180deg, rgba(11, 27, 51, .55) 0%, rgba(11, 27, 51, 0) 22%),
        linear-gradient(0deg, rgba(11, 27, 51, .92) 0%, rgba(11, 27, 51, .6) 45%, rgba(11, 27, 51, .15) 75%); }
}

/* Атрибут hidden всегда скрывает (даже у блоков с display:flex/grid) */
[hidden] { display: none !important; }

/* Окно достопримечательности: маршрут, «что ещё рядом», точки фото */
.sm-route { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 22px 0 4px; padding: 16px 18px;
            border-radius: 16px; background: var(--sand); }
.sm-route span { display: block; font-size: 12px; color: var(--muted); }
.sm-route b { font-size: 18px; color: var(--navy); }
.sm-route .btn { padding: 12px 20px; }
.sm-near { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.sm-near h3 { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.sm-near-item { width: 100%; display: flex; align-items: center; gap: 14px; padding: 8px; margin: 0 -8px; border: 0; border-radius: 14px; background: none;
                text-align: left; cursor: pointer; transition: background .25s; color: var(--ink); }
@media (hover: hover) { .sm-near-item:hover { background: var(--sand); } }
.sm-near-item picture, .sm-near-item img { width: 64px; height: 64px; flex-shrink: 0; border-radius: 12px; object-fit: cover; }
.sm-near-item b { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 500; line-height: 1.1; color: var(--navy); }
.sm-near-item small { font-size: 13px; color: var(--muted); }
.sm-dots { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.sm-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .5); cursor: pointer; transition: background .3s, transform .3s; }
.sm-dots button.is-on { background: #fff; transform: scale(1.25); }

/* =============================================================
   v2.1 — правки по замечаниям владельца
   ============================================================= */
/* Иконки-кнопки: стрелки и крестики — SVG строго по центру (а не символы шрифта) */
.ico-btn { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 48px; height: 48px; padding: 0;
           border-radius: 50%; border: 0; cursor: pointer; line-height: 0; font-size: 0;
           transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.ico-btn svg, .drawer-close svg { width: 20px; height: 20px; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-btn--line { background: transparent; border: 1px solid var(--line); color: var(--navy); }
@media (hover: hover) { .ico-btn--line:hover:not(:disabled) { background: var(--navy); border-color: var(--navy); color: #fff; } }
.ico-btn--line:disabled { opacity: .3; cursor: default; }
.ico-btn--glass { background: rgba(251, 248, 243, .92); color: var(--navy); box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
@media (hover: hover) { .ico-btn--glass:hover { background: #fff; transform: scale(1.06); } }
.cal-nav .ico-btn { width: 42px; height: 42px; }
.dr-arrows .ico-btn { width: 48px; height: 48px; font-size: 0; background: rgba(251, 248, 243, .92); }
/* крестик: ровно по центру, поворот вокруг своего центра */
.drawer-close { display: flex !important; align-items: center; justify-content: center; padding: 0; font-size: 0; line-height: 0; transform-origin: 50% 50%; top: 16px; right: 16px; }
.drawer-close svg { width: 22px; height: 22px; }

/* Заголовок секции со стрелками справа, на одной линии */
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.sec-head-row .rail-nav { max-width: none; margin: 0; padding: 0 0 8px; display: flex; gap: 10px; }
@media (max-width: 760px) { .sec-head-row .rail-nav { display: none; } }   /* на телефоне ленту листают пальцем */

/* Карточки квартир: широкий кадр, фото листаются, пока курсор на карточке */
.apt-media { aspect-ratio: 16 / 9; }
.apt-slides, .apt-slides > picture, .apt-slide { position: absolute; inset: 0; display: block; }
.apt-slides > picture > img { opacity: 0; transition: opacity .8s ease, transform 1.4s var(--ease); }
.apt-slides > picture > img.is-on { opacity: 1; }
.apt-slide { opacity: 0; transition: opacity .8s ease; }
.apt-slide.is-on { opacity: 1; }
.apt-slide img { opacity: 1 !important; }
.apt-count { bottom: 20px; }
.apt-progress { position: absolute; left: 16px; right: 16px; bottom: 10px; height: 2px; border-radius: 2px; overflow: hidden; z-index: 2;
                background: rgba(255, 255, 255, .3); opacity: 0; transition: opacity .3s; }
.apt-progress i { display: block; height: 100%; width: 0; background: #fff; }
.apt.is-cycling .apt-progress { opacity: 1; }
.apt.is-cycling .apt-progress i { animation: apt-prog 1.6s linear infinite; }
@keyframes apt-prog { from { width: 0; } to { width: 100%; } }

/* Панель бронирования: фото сверху целиком (они широкие, ~2:1), ниже — описание и календарь */
.drawer-scroll { display: block !important; }
.dr-gallery { position: relative !important; top: auto !important; height: auto !important; display: block !important; background: var(--navy); }
.dr-main { position: relative; flex: none !important; width: 100%; aspect-ratio: 2.17 / 1 !important; max-height: 64vh; max-height: 64dvh; }
.dr-main img { object-fit: contain !important; }
.dr-arrows { left: 16px; right: 16px; }
.dr-count { position: absolute; right: 16px; bottom: 14px; z-index: 2; padding: 5px 12px; border-radius: 999px; background: rgba(11, 27, 51, .6); color: #fff; font-size: 12px; }
.dr-body { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.3fr); gap: 24px 52px; align-items: start; padding: 38px clamp(20px, 3.5vw, 52px) 52px !important; }
.dr-info { position: sticky; top: 24px; }
.dr-prices { margin-top: 6px; border-top: 1px solid var(--line); }
.dr-prices h4 { margin: 16px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.dr-prices div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.dr-prices b { color: var(--navy); }
.dr-prices p { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.dr-more { display: inline-block; margin-top: 18px; font-weight: 600; color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--gold); cursor: pointer; }
@media (hover: hover) { .dr-more:hover { color: var(--gold); } }
@media (max-width: 1000px) { .dr-body { grid-template-columns: 1fr; } .dr-info { position: static; } .dr-main { max-height: none; } }
@media (orientation: landscape) and (max-height: 500px) {
    .dr-main { max-height: 80vh; max-height: 80dvh; }
    .dr-body { grid-template-columns: 1fr; padding-top: 24px !important; }
    .dr-info { position: static; }
}

/* Окно достопримечательности: широкое фото сверху, ниже рассказ и боковая колонка; всё окно прокручивается */
.modal-panel--sight { display: block !important; width: min(1000px, 100%); padding: 0; overflow-y: auto !important; overflow-x: hidden; }
.sm-gallery { aspect-ratio: 2 / 1 !important; min-height: 0 !important; }
.sm-body { overflow: visible !important; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 28px 44px;
           padding: 34px clamp(22px, 4vw, 48px) 44px !important; }
.sm-lead { font-size: 17px; color: var(--ink) !important; }
.sm-facts { list-style: none; padding: 0; margin: 18px 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.sm-facts:empty { display: none; }
.sm-facts li { padding: 7px 14px; border-radius: 999px; background: var(--sand); color: var(--navy); font-size: 13px; font-weight: 600; }
.sm-more p { color: #4a5768; margin: 0 0 14px; }
.sm-side .sm-route { margin: 0 0 12px; flex-direction: column; align-items: stretch; }
.sm-side .sm-route .btn { width: 100%; }
.sm-side .sm-actions { margin-top: 0; flex-direction: column; }
.sm-side .sm-actions .btn { width: 100%; }
.sm-side .sm-near { margin-top: 22px; }
.sm-near-item { margin: 0; }
@media (max-width: 860px) { .sm-body { grid-template-columns: 1fr; } }
@media (orientation: landscape) and (max-height: 500px) { .sm-body { grid-template-columns: 1fr; } .sm-gallery { aspect-ratio: 2.4 / 1 !important; } }

/* =============================================================
   Своя полоса прокрутки на всём сайте: тонкая, скруглённая, в цветах сайта
   ============================================================= */
/* Chrome, Edge, Safari, Яндекс.Браузер */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background-color: rgba(11, 27, 51, .28); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box;
                           transition: background-color .2s; }
@media (hover: hover) { ::-webkit-scrollbar-thumb:hover { background-color: var(--gold); } }
::-webkit-scrollbar-thumb:active { background-color: #b08a52; }
::-webkit-scrollbar-corner { background: transparent; }
html::-webkit-scrollbar-track { background: var(--paper); }
/* в окнах со скруглёнными углами полоса не упирается в углы */
.modal-panel::-webkit-scrollbar-track, .drawer-scroll::-webkit-scrollbar-track { margin: 22px 0; }
.modal-panel::-webkit-scrollbar, .drawer-scroll::-webkit-scrollbar { width: 10px; }
/* тёмное меню — светлая полоса */
.menu::-webkit-scrollbar-thumb { background-color: rgba(255, 255, 255, .3); }
/* Firefox */
@supports (-moz-appearance: none) {
    html { scrollbar-width: thin; scrollbar-color: rgba(11, 27, 51, .32) var(--paper); }
    .modal-panel, .drawer-scroll, .m3d-card { scrollbar-width: thin; scrollbar-color: rgba(11, 27, 51, .3) transparent; }
}
/* Окно достопримечательности: фото меняются спокойно, с мягким перетеканием */
.sm-gallery img { transition: opacity 1.4s ease !important; }

/* Текст карточки квартиры тоже открывает бронирование */
.apt-body { cursor: pointer; }
.apt-name { transition: color .25s; }
@media (hover: hover) { .apt-body:hover .apt-name { color: #a8814a; } }
