/* Къща Мери — вариант 3 «Нощ край камината». Контейнер 1440, адаптив до 320px. */
:root {
  --night: #0D1626; --ink: #15223A; --slate: #24344F; --frost: #E6ECF5; --muted: #8E9BB2; --ember: #F0A868;
  --line: rgba(230, 236, 245, .12);
  --gutter: clamp(16px, 4vw, 48px);
  --sec: clamp(72px, 9vw, 160px);
  --h2: clamp(34px, 4.4vw, 64px);
  --serif: "Playfair Display", Georgia, serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { font-family: Montserrat, system-ui, sans-serif; color: var(--frost); background: var(--night); font-size: 16px; line-height: 1.7; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ember); color: var(--night); padding: 8px 14px; }
.skip:focus { left: 8px; }

.wrap { width: min(1440px, 100% - 2 * var(--gutter)); margin: 0 auto; }
.pf { font-family: var(--serif); font-weight: 400; }
.pf i, h3 i { font-style: italic; color: var(--ember); }
.eyebrow { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--ember); font-weight: 600; }
h2.pf { font-size: var(--h2); line-height: 1.1; margin-top: 22px; }
.pad { padding: var(--sec) 0; }

.btn { min-height: 56px; padding: 0 32px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; transition: background .2s, color .2s, border-color .2s; }
.btn-ember { background: var(--ember); color: var(--night); }
.btn-ember:hover { background: #F5BC88; }
.btn-line { border: 1px solid rgba(230, 236, 245, .4); }
.btn-line:hover { border-color: var(--ember); }

/* ---------- header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.header.scrolled { background: rgba(13, 22, 38, .94); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); backdrop-filter: blur(8px); }
.util { border-bottom: 1px solid var(--line); transition: margin .3s, opacity .3s; }
.util .wrap { height: 44px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.util-l, .util-r, .util .soc { display: flex; align-items: center; gap: 8px; }
.util-r { gap: 22px; }
.util .soc { gap: 14px; }
.util .tel { color: var(--frost); font-weight: 600; }
.header.scrolled .util { margin-top: -45px; opacity: 0; }

.main .wrap { height: 104px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; transition: height .3s; }
.header.scrolled .main .wrap { height: 80px; }
.nav { display: flex; gap: clamp(20px, 2.4vw, 44px); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
.nav a { position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--ember); transition: width .25s; }
.nav a:hover::after { width: 100%; }
.main-r { display: flex; justify-content: flex-end; align-items: center; gap: clamp(20px, 2.4vw, 44px); }
.brand { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.brand b { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1; letter-spacing: .08em; white-space: nowrap; }
.header.scrolled .brand svg { width: 40px !important; height: 40px !important; }

/* выпадающий список языков */
.lang { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--line); font-weight: 600; font-size: 13px; letter-spacing: .08em; }
.lang-btn:hover, .lang.open .lang-btn { border-color: rgba(240, 168, 104, .6); }
.lang-list { position: absolute; right: 0; top: calc(100% + 10px); width: 240px; background: var(--frost); color: var(--night); padding: 8px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s; }
.lang.open .lang-list { opacity: 1; visibility: visible; transform: none; }
.lang-list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; font-size: 15px; font-weight: 500; }
.lang-list a span { flex: 1; }
.lang-list a:hover, .lang-list li.on a { background: #D9E0EB; }
.lang-list .soon { border-top: 1px solid #CBD3E0; margin-top: 4px; padding: 10px 12px 4px; font-size: 13px; color: #5A6680; }

.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger i { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--frost); transition: .25s; }
.burger i:nth-child(1) { top: 15px; } .burger i:nth-child(2) { top: 21px; } .burger i:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] i:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.mnav { position: fixed; inset: 0; z-index: 40; background: var(--night); padding: 110px var(--gutter) 40px; display: flex; flex-direction: column; overflow-y: auto; }
.mnav[hidden] { display: none; }
.mnav nav { display: flex; flex-direction: column; }
.mnav nav a { font-family: var(--serif); font-size: clamp(26px, 7vw, 36px); padding: 12px 0; border-bottom: 1px solid var(--line); }
.mnav-tel { margin-top: 32px; font-family: var(--serif); font-size: 28px; color: var(--ember); }
.mnav-soc { display: flex; gap: 12px; margin-top: 20px; }
.mnav-soc a, .fsoc a { width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(230, 236, 245, .25); display: flex; align-items: center; justify-content: center; transition: border-color .2s; }
.mnav-soc a:hover, .fsoc a:hover { border-color: var(--ember); }
body.menu-open { overflow: hidden; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: max(640px, 100svh); display: flex; flex-direction: column; justify-content: center; text-align: center; overflow: hidden; padding: 170px 0 32px; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .shade { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 55%, rgba(13,22,38,.3) 0%, rgba(13,22,38,.78) 70%), linear-gradient(0deg, rgba(13,22,38,1) 0%, rgba(13,22,38,0) 32%); }
.hero-in { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.hero h1 { font-size: clamp(40px, 5.8vw, 112px); line-height: 1.04; margin-top: 26px; }
.hero p { font-size: clamp(16px, 1.1vw, 19px); max-width: 640px; margin: 28px auto 0; color: #C9D2E1; }
.btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 44px; }
.facts { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); padding-top: 26px; margin-top: 56px; }
.facts div { font-size: 14px; color: var(--muted); }
.facts b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 1.9vw, 34px); color: var(--frost); line-height: 1.2; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); min-height: min(940px, 56vw); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-txt { padding: var(--sec) max(var(--gutter), calc((100vw - 1440px) / 2)) var(--sec) clamp(32px, 6vw, 120px); display: flex; flex-direction: column; justify-content: center; }
.about h2 { margin-bottom: 30px; }
.about-txt p { color: #B9C4D6; margin-bottom: 18px; max-width: 600px; }
.sign { margin-top: 24px; display: flex; gap: 16px; align-items: center; color: var(--muted); font-size: 14px; }
.sign b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 26px; color: var(--frost); }

/* ---------- features ---------- */
.head { text-align: center; margin-bottom: clamp(40px, 5vw, 80px); }
.rows { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(40px, 7vw, 120px); }
.row { display: grid; grid-template-columns: 80px 1fr; gap: 28px; align-items: center; padding: 32px 0; border-top: 1px solid var(--line); }
.row .ic { width: 80px; height: 80px; border-radius: 50%; border: 1px solid rgba(240, 168, 104, .45); display: flex; align-items: center; justify-content: center; }
.row h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 1.6vw, 28px); line-height: 1.3; }
.row p { color: var(--muted); margin-top: 4px; }

/* ---------- gallery ---------- */
.gallery { background: var(--ink); overflow: hidden; }
.ghead { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(32px, 4vw, 64px); }
.gctrl { display: flex; align-items: center; gap: 14px; flex: none; }
.progress { width: 220px; height: 2px; background: var(--slate); margin-right: 14px; }
.progress i { display: block; width: 20%; height: 2px; background: var(--ember); transition: width .2s; }
.arr { width: 60px; height: 60px; border-radius: 50%; border: 1px solid rgba(230, 236, 245, .3); display: flex; align-items: center; justify-content: center; transition: .2s; }
.arr.on { background: var(--ember); border-color: var(--ember); }
.arr:disabled { opacity: .35; cursor: default; }
.strip { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: max(var(--gutter), calc((100vw - 1440px) / 2)); padding: 0 max(var(--gutter), calc((100vw - 1440px) / 2)); scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.slide { flex: none; width: min(520px, 72vw); scroll-snap-align: start; }
.slide.wide { width: min(820px, 86vw); }
.slide img { width: 100%; height: clamp(320px, 34vw, 660px); object-fit: cover; }
.slide figcaption { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; }
.slide figcaption b { font-family: var(--serif); font-weight: 400; font-size: clamp(19px, 1.3vw, 24px); }
.slide figcaption span { color: var(--muted); font-size: 14px; }

/* ---------- prices ---------- */
.prices-in { display: grid; grid-template-columns: 1fr minmax(380px, 500px); gap: clamp(48px, 6vw, 110px); align-items: center; }
.prices h2 { margin-bottom: 18px; }
.prices .lead { color: var(--muted); max-width: 560px; margin-bottom: 36px; }
.prow { display: flex; align-items: flex-end; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.prow:last-child { border-bottom: 1px solid var(--line); }
.prow .n b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 1.8vw, 32px); line-height: 1.2; }
.prow .n span { font-size: 14px; color: var(--muted); }
.prow .dots { flex: 1; border-bottom: 1px dashed rgba(230, 236, 245, .25); margin-bottom: 12px; min-width: 24px; }
.prow .p { white-space: nowrap; font-family: var(--serif); font-size: clamp(34px, 2.6vw, 48px); line-height: 1; color: var(--ember); }
.prow .p small { font-family: Montserrat, sans-serif; font-size: 14px; color: var(--muted); }
.offer { border: 1px solid rgba(240, 168, 104, .55); padding: clamp(36px, 3.5vw, 56px) clamp(24px, 3vw, 48px); text-align: center; }
.offer .big { font-family: var(--serif); font-style: italic; font-size: clamp(72px, 6vw, 110px); line-height: 1; color: var(--ember); margin: 16px 0 10px; white-space: nowrap; }
.offer h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2vw, 32px); line-height: 1.25; }
.offer p { color: var(--muted); margin-top: 14px; }
.offer .sep { height: 1px; background: var(--line); margin: 28px 0; }
.offer .week { display: flex; justify-content: center; align-items: baseline; gap: 14px; color: var(--muted); }
.offer .week b { font-family: var(--serif); font-weight: 400; font-size: 40px; color: var(--frost); }
.offer .btn { margin-top: 28px; }

/* ---------- video ---------- */
.video { position: relative; min-height: clamp(520px, 52vw, 1000px); display: flex; align-items: center; overflow: hidden; }
.video > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video .shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,22,38,.92) 0%, rgba(13,22,38,.4) 60%, rgba(13,22,38,.55) 100%); }
.video-in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 80px 0; }
.video h2 { font-size: clamp(40px, 5vw, 72px); line-height: 1.08; margin: 22px 0 24px; max-width: 640px; }
.video p { color: #C9D2E1; max-width: 480px; }
.ring { flex: none; width: clamp(140px, 10.5vw, 200px); aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(240, 168, 104, .6); display: flex; align-items: center; justify-content: center; margin-right: clamp(0px, 9vw, 180px); transition: transform .3s; }
.ring span { width: 68%; aspect-ratio: 1; border-radius: 50%; background: var(--ember); display: flex; align-items: center; justify-content: center; }
.ring:hover { transform: scale(1.05); }

/* ---------- reviews ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.q { padding: 52px 44px 16px; border-right: 1px solid var(--line); }
.q:first-child { padding-left: 0; } .q:last-child { border-right: 0; padding-right: 0; }
.q .mark { font-family: var(--serif); font-size: 96px; line-height: .6; color: var(--ember); height: 44px; }
.q blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(19px, 1.25vw, 22px); line-height: 1.55; margin: 20px 0 32px; }
.q .stars { display: flex; gap: 4px; margin-bottom: 14px; }
.q b { display: block; font-weight: 600; } .q small { color: var(--muted); font-size: 14px; }
.gline { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 56px; color: var(--muted); font-size: 15px; text-align: center; }
.gline b { color: var(--frost); } .gline a { color: var(--ember); }

/* ---------- nearby ---------- */
.nearby { background: var(--ink); }
.nhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(36px, 4vw, 64px); }
.nhead p { max-width: 460px; color: var(--muted); }
.ngrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ncard { background: var(--night); overflow: hidden; }
.ncard img { width: 100%; height: 260px; object-fit: cover; transition: transform .5s; }
.ncard:hover img { transform: scale(1.04); }
.ncard > div { padding: 28px 30px 32px; }
.dist { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ember); }
.ncard h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.25; margin-top: 12px; }
.ncard p { color: var(--muted); font-size: 15px; margin-top: 8px; }
.rest { padding: 36px 32px; }
.rest-ic { width: 64px; height: 64px; background: var(--ember); display: flex; align-items: center; justify-content: center; }
.rest h3 { margin-top: 28px; }
.rest p { margin-bottom: 18px; }
.rest li { display: flex; justify-content: space-between; padding: 15px 0; border-top: 1px solid var(--slate); }
.rest li span:first-child { font-weight: 600; } .rest li span:last-child { color: var(--muted); }

/* ---------- map ---------- */
.map { position: relative; height: 600px; background: var(--ink); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: invert(.9) hue-rotate(180deg) saturate(.6) brightness(.95); }
.map-in { position: relative; height: 100%; display: flex; align-items: center; pointer-events: none; }
.map-card { pointer-events: auto; width: min(480px, 100%); background: var(--night); padding: 44px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.map-card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2vw, 34px); line-height: 1.2; margin-top: 18px; }
.map-card > p { color: var(--muted); margin-top: 10px; }
.map-dist { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--slate); }
.map-dist b { display: block; font-size: 22px; } .map-dist span { color: var(--muted); font-size: 14px; }
.map-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.map-btns .btn { min-height: 52px; padding: 0 22px; }

/* ---------- footer ---------- */
.footer { background: var(--ink); padding: clamp(72px, 7vw, 120px) 0 40px; text-align: center; }
.fbrand b { font-size: clamp(32px, 2.6vw, 44px); }
.fbrand small { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.ftel { display: inline-block; font-family: var(--serif); font-size: clamp(36px, 3.4vw, 56px); margin-top: 56px; }
.ftel2 { display: block; color: var(--muted); margin-top: 4px; }
.fsoc { display: flex; justify-content: center; gap: 14px; margin-top: 30px; }
.fnav { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px 44px; margin-top: 56px; padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.fnav a:hover { color: var(--ember); }
.fbot { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 32px; font-size: 13px; color: var(--muted); }

/* ---------- модальные окна: связь и видео ---------- */
.modal { margin: auto; border: 0; padding: 0; background: transparent; color: var(--frost); max-width: none; max-height: none; overflow: visible; }
.modal::backdrop { background: rgba(6, 11, 20, .78); backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in .45s var(--ease, cubic-bezier(.2, .7, .2, 1)) both; }
.modal[open]::backdrop { animation: fade .35s ease both; }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-x { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); z-index: 2; transition: border-color .2s, transform .3s; }
.modal-x i { position: absolute; left: 13px; right: 13px; top: 21px; height: 1.5px; background: var(--frost); transform: rotate(45deg); }
.modal-x i + i { transform: rotate(-45deg); }
.modal-x:hover { border-color: var(--ember); transform: rotate(90deg); }

.contact-modal { width: min(520px, calc(100vw - 32px)); background: var(--night); border: 1px solid rgba(240, 168, 104, .35); padding: 40px 36px 32px; box-shadow: 0 40px 100px rgba(0, 0, 0, .5); }
.contact-modal h3 { font-size: clamp(30px, 3vw, 38px); line-height: 1.15; margin-top: 14px; }
.modal-lead { color: var(--muted); margin: 8px 0 26px; }
.contact-list { display: grid; gap: 10px; }
.cl { display: flex; align-items: center; gap: 16px; padding: 12px 16px 12px 12px; border: 1px solid var(--line); transition: border-color .2s, background .2s, transform .3s var(--ease, ease); }
.cl:hover, .cl:focus-visible { border-color: rgba(240, 168, 104, .6); background: rgba(230, 236, 245, .04); transform: translateX(4px); }
.cl > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.cl b { font-weight: 600; font-size: 16px; } .cl small { color: var(--muted); font-size: 13px; }
.cl-ic { flex: none; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; }
.wa .cl-ic { background: #25D366; } .vb .cl-ic { background: #7360F2; } .tg .cl-ic { background: #2AABEE; }
.fb .cl-ic { background: #1877F2; } .ph .cl-ic { background: var(--ember); } .ph2 .cl-ic { border: 1px solid var(--line); }
.contact-modal .contact-list .cl { animation: up .5s var(--ease, ease) both; }
.contact-list .cl:nth-child(2) { animation-delay: .05s; } .contact-list .cl:nth-child(3) { animation-delay: .1s; }
.contact-list .cl:nth-child(4) { animation-delay: .15s; } .contact-list .cl:nth-child(5) { animation-delay: .2s; }
.contact-list .cl:nth-child(6) { animation-delay: .25s; }

.video-modal { width: fit-content; }
.video-modal video { display: block; height: min(86vh, 1280px); max-width: calc(100vw - 32px); aspect-ratio: 9 / 16; object-fit: contain; background: #000; box-shadow: 0 40px 100px rgba(0, 0, 0, .6); }
.video-modal .modal-x { top: 12px; right: 12px; background: rgba(13, 22, 38, .72); border-color: rgba(230, 236, 245, .35); }
body.modal-open { overflow: hidden; }

/* ================= адаптив ================= */
@media (max-width: 1279px) {
  .util-l span { display: none; }
  .nav { letter-spacing: .1em; font-size: 12px; }
}
@media (max-width: 1099px) {
  .nav, .util { display: none; }
  .burger { display: block; }
  .main .wrap { grid-template-columns: auto 1fr auto; height: 80px; }
  .header .brand { order: -1; flex-direction: row; gap: 12px; }
  .header .brand svg { width: 40px !important; height: 40px !important; }
  .header .brand b { font-size: 20px; }
  .main-r { gap: 10px; }
  .hero { padding-top: 120px; }
  .prices-in { grid-template-columns: 1fr; }
  .offer { max-width: 560px; width: 100%; margin: 0 auto; }
  .ngrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1023px) {
  .about { grid-template-columns: 1fr; }
  .about-img img { height: 62vw; max-height: 560px; }
  .about-txt { padding: var(--sec) var(--gutter); }
  .rows { grid-template-columns: 1fr; }
  .quotes { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; border-top: 0; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
  .quotes::-webkit-scrollbar { display: none; }
  .q, .q:first-child, .q:last-child { flex: none; width: min(420px, 82vw); scroll-snap-align: start; border: 1px solid var(--line); padding: 36px 28px 28px; }
  .video-in { flex-direction: column; align-items: flex-start; }
  .ring { margin-right: 0; }
  .nhead { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 767px) {
  .hero { text-align: left; padding: 110px 0 24px; }
  .hero p { margin-left: 0; }
  .btns { justify-content: flex-start; }
  .btns .btn { flex: 1 1 100%; }
  .facts { grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
  .ghead { flex-direction: column; align-items: flex-start; }
  .progress { width: 120px; }
  .arr { width: 52px; height: 52px; }
  .row { grid-template-columns: 60px 1fr; gap: 18px; padding: 24px 0; }
  .row .ic { width: 60px; height: 60px; }
  .row .ic svg { width: 28px !important; height: 28px !important; }
  .prow { flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
  .prow .n { flex: 1 1 100%; }
  .prow .dots { display: none; }
  .ngrid { grid-template-columns: 1fr; }
  .ncard img { height: 220px; }
  .map { height: auto; display: flex; flex-direction: column; }
  .map iframe { position: relative; height: 360px; }
  .map-in { height: auto; pointer-events: auto; width: 100%; }
  .map-card { width: 100%; box-shadow: none; padding: 32px var(--gutter); }
  .fbot { flex-direction: column; align-items: center; }
}
@media (max-width: 600px) {
  /* связь — шторка снизу экрана, удобно большим пальцем */
  .contact-modal { width: 100vw; max-width: 100vw; margin: auto 0 0; padding: 32px 16px calc(20px + env(safe-area-inset-bottom)); border-width: 1px 0 0; }
  .contact-modal[open] { animation-name: sheet-in; }
  .video-modal video { height: auto; width: calc(100vw - 24px); max-height: calc(100svh - 32px); }
}
@keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
@media (max-width: 420px) {
  .header .brand b { font-size: 17px; }
  .lang-btn span { display: none; }
  .offer .big { font-size: 64px; }
  .map-btns .btn { flex: 1 1 100%; }
}
/* ================= анимация ================= */
:root { --ease: cubic-bezier(.2, .7, .2, 1); }
@keyframes up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoom { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes drop { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }

/* первый экран: фото медленно «приближается», текст и цифры выходят по очереди */
.hero > img { animation: zoom 2.8s var(--ease) both; }
.hero .shade { animation: fade 1.2s ease both; }
.hero-in > * { animation: up 1s var(--ease) both; }
.hero-in > :nth-child(1) { animation-delay: .25s; }
.hero-in > :nth-child(2) { animation-delay: .4s; }
.hero-in > :nth-child(3) { animation-delay: .6s; }
.hero-in > :nth-child(4) { animation-delay: .75s; }
.facts > div { animation: up .9s var(--ease) both; }
.facts > div:nth-child(1) { animation-delay: .9s; } .facts > div:nth-child(2) { animation-delay: 1s; }
.facts > div:nth-child(3) { animation-delay: 1.1s; } .facts > div:nth-child(4) { animation-delay: 1.2s; }
.header { animation: drop .9s var(--ease) .1s both; }

/* появление блоков при прокрутке (класс .in ставит main.js) */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-img { overflow: hidden; }
.js .reveal-img img { transform: scale(1.08); transition: transform 1.6s var(--ease); }
.js .reveal-img.in img { transform: none; }

/* мобильное меню: плавно проявляется, пункты выезжают по очереди */
.mnav:not([hidden]) { animation: fade .3s ease both; }
.mnav:not([hidden]) nav a { animation: up .5s var(--ease) both; }
.mnav nav a:nth-child(2) { animation-delay: .04s; } .mnav nav a:nth-child(3) { animation-delay: .08s; }
.mnav nav a:nth-child(4) { animation-delay: .12s; } .mnav nav a:nth-child(5) { animation-delay: .16s; }
.mnav nav a:nth-child(6) { animation-delay: .2s; } .mnav nav a:nth-child(7) { animation-delay: .24s; }
.mnav nav a:nth-child(8) { animation-delay: .28s; }

/* мягкие наведения */
.row .ic { transition: background .3s, border-color .3s, transform .4s var(--ease); }
.row:hover .ic { border-color: var(--ember); transform: scale(1.06); }
.slide img { transition: transform .8s var(--ease), filter .4s; }
.slide:hover img { filter: brightness(1.08); }
.offer, .ncard { transition: transform .5s var(--ease), box-shadow .5s; }
.offer:hover, .ncard:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(0, 0, 0, .3); }
.js .reveal-img.in:hover img { transform: scale(1.04); }
.ring::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; pointer-events: none; border: 1px solid rgba(240, 168, 104, .5); animation: pulse 2.6s ease-out infinite; }
.ring { position: relative; }
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.45); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal-img img { transform: none; }
}
