/* domusman.ru — прототип «Тёплый лён» (staging) */

/* ---------- Fonts (self-host, latin + cyrillic + ₽) ---------- */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/manrope-cyr.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/manrope-lat.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; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/manrope-ext.woff2") format("woff2"); unicode-range: U+20BD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("../fonts/cormorant-cyr.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("../fonts/cormorant-lat.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; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("../fonts/cormorant-ext.woff2") format("woff2"); unicode-range: U+20BD; }

/* ---------- Tokens ---------- */
:root {
  --bg: #F7F4EF;          /* лён */
  --surface: #FFFFFF;
  --sand: #EFE9E0;        /* тёплый песок */
  --line: #E2DACE;
  --ink: #1E1C19;         /* текст, 16.6:1 на --bg */
  --ink-2: #48433C;       /* вторичный текст, 9.3:1 */
  --muted: #6A6358;       /* подписи, 5.5:1 */
  --oak: #8A6236;         /* акцент-текст (дуб), 5.0:1 на --bg */
  --oak-line: #B8956A;    /* декоративные линии */
  --graphite: #26231F;    /* тёмный блок / основная кнопка */
  --on-dark: #F7F4EF;
  --on-dark-2: #CFC6B8;   /* 9.6:1 на --graphite */
  --gold-on-dark: #D2B58B;

  --f-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;

  /* типошкала */
  --t-12: .75rem; --t-14: .875rem; --t-16: 1rem; --t-17: 1.0625rem; --t-18: 1.125rem;
  --t-20: 1.25rem; --t-24: 1.5rem; --t-32: 2rem; --t-40: 2.5rem; --t-56: 3.5rem; --t-72: 4.5rem;

  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem;
  --s-7: 3rem; --s-8: 4rem; --s-9: 6rem; --s-10: 8rem;

  --r-sm: 4px; --r-md: 8px;
  --shadow: 0 1px 2px rgba(30,28,25,.06), 0 8px 24px -12px rgba(30,28,25,.18);
  --ease: cubic-bezier(.2,.7,.2,1);
  --header-h: 64px;
  --bar-h: 64px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-sans); font-size: var(--t-17); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 var(--s-4); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 600; }
address { font-style: normal; }
button { font: inherit; }

:focus-visible { outline: 3px solid var(--oak); outline-offset: 3px; border-radius: 2px; }
.skip-link { position: absolute; left: var(--s-4); top: -100px; z-index: 100; background: var(--graphite); color: var(--on-dark); padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); }
.skip-link:focus { top: var(--s-4); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--s-5); }
@media (min-width: 960px) { .container { padding: 0 var(--s-7); } }

.icon { width: 20px; height: 20px; flex: none; fill: currentColor; }

/* ---------- Typography ---------- */
.eyebrow {
  font-size: var(--t-12); font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--oak); margin: 0 0 var(--s-5);
}
.eyebrow::after { content: ""; display: block; width: 48px; height: 1px; background: var(--oak-line); margin-top: var(--s-3); }
.eyebrow--light { color: var(--gold-on-dark); }
.eyebrow--light::after { background: var(--gold-on-dark); opacity: .6; }

.h2 { font-family: var(--f-serif); font-size: clamp(2rem, 1.4rem + 2.4vw, var(--t-56)); line-height: 1.08; letter-spacing: -.01em; margin-bottom: var(--s-5); text-wrap: balance; }
.h3 { font-family: var(--f-sans); font-size: var(--t-18); font-weight: 700; margin: var(--s-6) 0 var(--s-4); }
.muted { color: var(--muted); }
.text-link { color: var(--oak); font-weight: 600; text-underline-offset: 4px; display: inline-flex; min-height: 44px; align-items: center; }
.text-link:hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 52px; padding: 0 var(--s-5); border-radius: var(--r-sm); border: 1.5px solid transparent;
  font-size: var(--t-16); font-weight: 600; letter-spacing: .01em; text-decoration: none; cursor: pointer; text-align: center;
  transition: transform .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--sm { min-height: 44px; padding: 0 var(--s-4); font-size: var(--t-14); }
.btn--block { width: 100%; }
.btn--primary { background: var(--graphite); color: var(--on-dark); }
.btn--primary:hover { background: #3A332B; box-shadow: 0 10px 24px -10px rgba(38,35,31,.55), 0 0 0 1.5px var(--oak-line); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--on-dark); }
.btn--light { background: var(--on-dark); color: var(--graphite); }
.btn--light:hover { background: #fff; box-shadow: 0 0 0 1.5px var(--gold-on-dark), 0 12px 28px -10px rgba(210,181,139,.5); }
.btn--outline-light { color: var(--on-dark); border-color: rgba(247,244,239,.55); }
.btn--outline-light:hover { border-color: var(--gold-on-dark); color: #fff; }

/* ---------- Header ---------- */
.site-header { background: rgba(247,244,239,.94); border-bottom: 1px solid transparent; z-index: 40; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); min-height: 60px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.15; min-height: 44px; justify-content: center; }
.brand__title { font-family: var(--f-serif); font-weight: 600; font-size: var(--t-18); white-space: nowrap; }
@media (min-width: 960px) { .brand__title { font-size: var(--t-20); } }
.brand__sub { font-size: var(--t-12); color: var(--muted); }
.site-nav { display: none; }
.header-cta { display: none; }
.header-phone { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; font-weight: 600; font-size: var(--t-14); text-decoration: none; white-space: nowrap; }
.header-phone .icon { width: 18px; height: 18px; color: var(--oak); }
@media (max-width: 420px) { .header-phone span { font-size: var(--t-14); } .brand__sub { display: none; } }
@media (min-width: 960px) {
  .site-header { position: sticky; top: 0; backdrop-filter: saturate(1.2) blur(10px); }
  .site-header.is-scrolled { border-bottom-color: var(--line); }
  .site-header__inner { min-height: var(--header-h); }
  .site-nav a { white-space: nowrap; }
  .header-cta { white-space: nowrap; }
  .site-nav a { font-size: var(--t-14); font-weight: 500; text-decoration: none; color: var(--ink-2); padding: var(--s-3) 0; position: relative; }
  .site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 6px; height: 1px; background: var(--oak); transition: right .25s var(--ease); }
  .site-nav a:hover { color: var(--ink); }
  .site-nav a:hover::after { right: 0; }
  .site-header__actions { display: flex; align-items: center; gap: var(--s-5); }
  .header-cta { display: inline-flex; }
}

@media (min-width: 1200px) { .site-nav { display: flex; gap: var(--s-5); } }

/* ---------- Hero ---------- */
.hero { display: grid; background: var(--bg); }
.hero__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--sand); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 56% 62%; }
.hero__content { padding: var(--s-5) var(--s-5) var(--s-7); display: flex; flex-direction: column; }
.hero__lead { order: 5; margin: var(--s-5) 0 0; }
@media (min-width: 960px) { .hero__lead { order: 0; margin: 0 0 var(--s-4); } }
.hero__content .eyebrow { margin-bottom: var(--s-4); }
.hero__title { font-family: var(--f-serif); font-weight: 600; font-size: clamp(1.875rem, 1.5rem + 2.6vw, var(--t-56)); line-height: 1.06; letter-spacing: -.012em; margin-bottom: var(--s-4); text-wrap: balance; }
.hero__lead { color: var(--ink-2); font-size: var(--t-17); max-width: 34em; }
.hero__price { margin: var(--s-2) 0 var(--s-5); }
@media (min-width: 960px) { .hero__price { margin-top: var(--s-5); } }
.price { font-family: var(--f-serif); font-weight: 600; font-size: clamp(2.5rem, 2rem + 2.4vw, var(--t-72)); line-height: 1; letter-spacing: -.01em; margin: 0 0 var(--s-3); font-variant-numeric: lining-nums tabular-nums; }
.price-notes { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); font-size: var(--t-14); font-weight: 600; color: var(--ink-2); }
.price-notes li { display: inline-flex; align-items: center; gap: var(--s-2); }
.price-notes li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--oak-line); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero__actions .btn { flex: 1 1 auto; white-space: nowrap; }
@media (min-width: 960px) { .hero__actions .btn { flex: 0 0 auto; } }
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); min-height: min(calc(100vh - var(--header-h)), 820px); }
  .hero__content { order: -1; align-self: center; padding: var(--s-8) var(--s-7) var(--s-8) max(var(--s-7), calc((100vw - 1240px) / 2 + var(--s-7))); }
  .hero__media { aspect-ratio: auto; height: 100%; }
  .hero__media picture { display: block; height: 100%; }
}

@media (min-width: 960px) and (max-width: 1199px) {
  .hero { grid-template-columns: 1fr 1fr; min-height: 0; }
  .hero__content { padding: var(--s-6) var(--s-6) var(--s-6) var(--s-7); }
  .hero__title { font-size: 2.75rem; }
  .hero__content .eyebrow { margin-bottom: var(--s-3); }
  .hero__lead { font-size: var(--t-16); }
  .hero__price { margin: var(--s-4) 0; }
  .hero__price .price { font-size: 3.25rem; }
  .hero__actions { flex-wrap: nowrap; }
  .hero__actions .btn { padding: 0 var(--s-4); }
}
@media (max-width: 420px) {
  .hero__media { aspect-ratio: 16 / 10; max-height: 32vh; width: 100%; }
  .hero__content { padding-top: var(--s-4); }
  .hero__content .eyebrow { margin-bottom: var(--s-3); }
  .hero__content .eyebrow::after { margin-top: var(--s-2); }
  .hero__title { font-size: 1.75rem; margin-bottom: var(--s-3); }
  .hero__price { margin: 0 0 var(--s-4); }
  .hero__price .price { font-size: 2.375rem; margin-bottom: var(--s-2); }
  .price-notes { font-size: .8125rem; gap: 2px var(--s-3); }
}

/* ---------- Figures ---------- */
.figures { background: var(--surface); padding: var(--s-7) 0; }
.figures__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-6) var(--s-5); margin: 0; }
.figure { margin: 0; display: flex; flex-direction: column-reverse; gap: var(--s-1); }
.figure dt { font-size: var(--t-14); color: var(--muted); }
.figure dd { margin: 0; font-size: var(--t-16); color: var(--ink-2); font-weight: 500; }
.figure__num, .figure__word { font-family: var(--f-serif); font-weight: 600; color: var(--ink); font-size: var(--t-40); line-height: 1; font-variant-numeric: lining-nums; }
.figure__word { font-size: var(--t-32); }
@media (min-width: 720px) { .figures__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) {
  .figures__grid { grid-template-columns: repeat(6, 1fr); }
  .figure { padding-left: var(--s-5); border-left: 1px solid var(--line); }
  .figure:first-child { padding-left: 0; border-left: 0; }
}

/* ---------- Sections ---------- */
.section { padding: var(--s-8) 0; }
@media (min-width: 960px) { .section { padding: var(--s-9) 0; } }
.section-head { max-width: 640px; margin-bottom: var(--s-6); }

/* About */
.about__grid { display: grid; gap: var(--s-6); align-items: start; }
.about__text p { color: var(--ink-2); max-width: 36em; }
.about__media { margin: 0; order: -1; }
@media (min-width: 960px) { .about__media { order: 0; } }
.about__media img { width: 100%; border-radius: var(--r-sm); box-shadow: var(--shadow); }
.about__media figcaption { font-size: var(--t-14); color: var(--muted); margin-top: var(--s-3); }
@media (min-width: 960px) {
  .about__grid { grid-template-columns: 5fr 6fr; gap: var(--s-8); }
  .about__media { position: sticky; top: calc(var(--header-h) + var(--s-6)); }
}
.checklist { display: grid; gap: var(--s-2); }
.checklist li { position: relative; padding-left: 28px; color: var(--ink-2); }
.checklist li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--oak); border-bottom: 2px solid var(--oak); transform: rotate(-45deg); }

.specs { margin-top: var(--s-8); }
.specs__list { display: grid; grid-template-columns: 1fr; margin: 0; background: var(--surface); border-radius: var(--r-md); padding: var(--s-2) var(--s-5); box-shadow: var(--shadow); }
.specs__list > div { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.specs__list > div:last-child { border-bottom: 0; }
.specs__list dt { color: var(--muted); font-size: var(--t-16); }
.specs__list dd { margin: 0; font-weight: 600; text-align: right; }
@media (min-width: 720px) {
  .specs__list { grid-template-columns: 1fr 1fr; column-gap: var(--s-7); padding: var(--s-3) var(--s-6); }
  .specs__list > div:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}
@media (min-width: 1100px) {
  .specs__list { grid-template-columns: repeat(3, 1fr); }
  .specs__list > div:nth-last-child(-n+3) { border-bottom: 0; }
}

/* ---------- Gallery ---------- */
.gallery { background: var(--surface); }
.tabs__list { display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--s-5)) var(--s-5); padding: 2px var(--s-5) var(--s-2); scroll-snap-type: x proximity; }
.tabs__list[hidden] { display: none; }
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__list button {
  flex: none; scroll-snap-align: start; min-height: 44px; padding: 0 var(--s-4); border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); font-size: var(--t-14); font-weight: 600; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.tabs__list button:hover { border-color: var(--oak-line); color: var(--ink); }
.tabs__list button[aria-selected="true"] { background: var(--graphite); border-color: var(--graphite); color: var(--on-dark); }
.tabs__count { font-weight: 500; opacity: .7; margin-left: 2px; }
@media (min-width: 960px) { .tabs__list { flex-wrap: wrap; overflow: visible; margin: 0 0 var(--s-6); padding: 2px 0; } }
.tabs__panel { margin-bottom: var(--s-7); }
.tabs__panel-title { font-family: var(--f-serif); font-size: var(--t-32); margin-bottom: var(--s-4); }
.js .tabs__panel { margin-bottom: 0; }
.js .tabs__panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.grid-photos { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; gap: var(--s-2); }
@media (min-width: 720px) { .grid-photos { grid-template-columns: repeat(4, 1fr); gap: var(--s-3); } }
.tile { aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--r-sm); background: var(--sand); }
.tile--wide { grid-column: span 2; aspect-ratio: 3 / 2; } /* высота = высоте узкой плитки 3:4 */
.tile a { display: block; height: 100%; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.tile a:hover img { transform: scale(1.03); }
.tile a:focus-visible { outline-offset: -3px; }

.inline-cta { margin-top: var(--s-7); padding: var(--s-6); background: var(--bg); border-radius: var(--r-md); display: grid; gap: var(--s-4); align-items: center; }
.inline-cta p { margin: 0; font-family: var(--f-serif); font-size: var(--t-24); line-height: 1.25; font-weight: 600; }
@media (min-width: 720px) { .inline-cta { grid-template-columns: 1fr auto; padding: var(--s-6) var(--s-7); } }

/* ---------- Tour ---------- */
.tour { background: var(--bg); }
.tour__grid { display: grid; gap: var(--s-6); }
.tour__video { justify-self: center; width: min(100%, 320px); }
@media (min-width: 960px) { .tour__video { width: min(100%, 380px); } }
.tour__video video { width: 100%; height: auto; aspect-ratio: 748 / 1600; max-height: 80vh; object-fit: cover; background: #111; border-radius: var(--r-md); box-shadow: var(--shadow); }
.tour__text p { color: var(--ink-2); }
@media (min-width: 960px) { .tour__grid { grid-template-columns: 5fr 7fr; gap: var(--s-8); align-items: center; } .tour__video { justify-self: start; } }
.rooms { border-top: 1px solid var(--line); margin-bottom: var(--s-5); }
.rooms li { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.rooms li span:first-child { font-weight: 600; }
.rooms li span:last-child { color: var(--muted); text-align: right; }
.file-link { display: inline-flex; align-items: center; gap: var(--s-3); min-height: 52px; padding: var(--s-2) var(--s-5) var(--s-2) var(--s-4); border: 1.5px solid var(--ink); border-radius: var(--r-sm); text-decoration: none; font-weight: 600; transition: background-color .2s var(--ease), color .2s var(--ease); }
.file-link:hover { background: var(--ink); color: var(--on-dark); }
.file-link__meta { font-weight: 500; color: var(--muted); margin-left: var(--s-2); white-space: nowrap; }
.file-link:hover .file-link__meta { color: var(--on-dark-2); }
.file-link .icon { fill: none; }

/* ---------- Location ---------- */
.location { background: var(--surface); }
.location__grid { display: grid; gap: var(--s-6); }
.address { font-size: var(--t-18); font-weight: 600; margin-bottom: var(--s-5); }
.location .checklist { margin-bottom: var(--s-4); }
.location__map { border-radius: var(--r-md); overflow: hidden; background: var(--sand); aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.location__map iframe { width: 100%; height: 100%; border: 0; }
@media (min-width: 960px) { .location__grid { grid-template-columns: 5fr 7fr; gap: var(--s-8); align-items: center; } .location__map { aspect-ratio: 7 / 5; } }

/* ---------- Price ---------- */
.price-block { background: var(--graphite); color: var(--on-dark); }
.price-block__inner { display: grid; gap: var(--s-6); }
.price-block .price { color: var(--on-dark); }
.price--xl { font-size: clamp(3rem, 2rem + 4vw, 5.5rem); }
.price-block__sub { color: var(--on-dark-2); margin: 0; }
.price-block__list { display: grid; gap: var(--s-4); }
.price-block__list li { display: grid; gap: 2px; padding-left: var(--s-4); border-left: 1px solid rgba(210,181,139,.55); }
.price-block__list strong { font-weight: 700; }
.price-block__list span { color: var(--on-dark-2); font-size: var(--t-16); }
.price-block__actions { display: grid; gap: var(--s-3); }
.price-block :focus-visible { outline-color: var(--gold-on-dark); }
@media (min-width: 720px) { .price-block__list { grid-template-columns: 1fr 1fr; gap: var(--s-5); } .price-block__actions { grid-template-columns: auto auto; justify-content: start; } }
@media (min-width: 1100px) {
  .price-block__inner { grid-template-columns: 6fr 5fr; column-gap: var(--s-8); align-items: end; }
  .price-block__actions { grid-column: 1 / -1; }
}

/* ---------- FAQ ---------- */
.faq__grid { display: grid; gap: var(--s-5); }
@media (min-width: 960px) { .faq__grid { grid-template-columns: 4fr 7fr; gap: var(--s-8); } .faq .section-head { position: sticky; top: calc(var(--header-h) + var(--s-6)); align-self: start; } }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  min-height: 56px; padding: var(--s-4) 0; font-weight: 600; font-size: var(--t-17);
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--oak); border-bottom: 2px solid var(--oak); transform: rotate(45deg) translate(-2px, -2px); transition: transform .25s var(--ease); }
.faq__list details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq__list summary:hover { color: var(--oak); }
.faq__list details p { color: var(--ink-2); padding-bottom: var(--s-4); margin: 0; max-width: 40em; }
.faq__list a { color: var(--oak); font-weight: 600; display: inline-block; padding-block: 10px; margin-block: -10px; }

/* ---------- Visit / Form ---------- */
.visit { background: var(--sand); }
.visit__grid { display: grid; gap: var(--s-6); }
@media (min-width: 960px) { .visit__grid { grid-template-columns: 5fr 6fr; gap: var(--s-8); align-items: start; } }
.visit__text > p { color: var(--ink-2); }
.contact-list { display: grid; gap: var(--s-2); margin-top: var(--s-5); }
.contact { display: flex; align-items: center; gap: var(--s-4); min-height: 64px; padding: var(--s-3) var(--s-4); background: var(--bg); border-radius: var(--r-md); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.contact:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.contact__icon { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; color: var(--oak); flex: none; box-shadow: 0 0 0 1px var(--line); }
.contact__icon--wa { color: #1A8F4E; }
.contact__icon--max { color: #5B3FD9; }
.contact__label { display: block; font-size: var(--t-14); color: var(--muted); }
.contact__value { display: block; font-weight: 700; }

.form { background: var(--surface); border-radius: var(--r-md); padding: var(--s-6) var(--s-5); box-shadow: var(--shadow); display: grid; gap: var(--s-5); }
@media (min-width: 720px) { .form { padding: var(--s-7); } }
.field { display: grid; gap: var(--s-2); }
.field label { font-weight: 600; font-size: var(--t-16); }
.optional { font-weight: 500; color: var(--muted); font-size: var(--t-14); margin-left: var(--s-1); }
.field input[type="text"], .field input[type="tel"] {
  width: 100%; min-height: 52px; padding: 0 var(--s-4); font: inherit; font-size: var(--t-17); color: var(--ink);
  background: var(--bg); border: 1.5px solid #CFC5B6; border-radius: var(--r-sm); transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field input::placeholder { color: #8A8276; }
.field input:hover { border-color: var(--oak-line); }
.field input:focus { outline: none; border-color: var(--oak); background: #fff; box-shadow: 0 0 0 3px rgba(138,98,54,.18); }
.field input[aria-invalid="true"] { border-color: #A3352B; }
.field--check { grid-template-columns: 24px 1fr; align-items: start; gap: var(--s-3); }
.field--check input { width: 24px; height: 24px; margin: 10px 0 0; accent-color: var(--graphite); cursor: pointer; }
.field--check label { font-weight: 500; font-size: var(--t-14); color: var(--ink-2); line-height: 1.5; padding-block: 10px; cursor: pointer; }
.field--check a { color: var(--oak); font-weight: 600; }
.form__status { margin: 0; font-size: var(--t-14); min-height: 1.5em; }
.form__status.is-error { color: #A3352B; }
.form__status.is-ok { color: var(--ink); background: var(--bg); padding: var(--s-3) var(--s-4); border-left: 2px solid var(--oak); }

/* ---------- Footer ---------- */
.site-footer { background: var(--graphite); color: var(--on-dark-2); padding: var(--s-7) 0; font-size: var(--t-14); }
.site-footer .brand__title { color: var(--on-dark); margin-bottom: var(--s-2); }
.site-footer__inner { display: grid; gap: var(--s-5); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); }
.site-footer__links a { min-height: 44px; display: inline-flex; align-items: center; color: var(--on-dark); text-underline-offset: 4px; }
.site-footer :focus-visible { outline-color: var(--gold-on-dark); }
@media (min-width: 960px) { .site-footer__inner { grid-template-columns: 1fr auto; align-items: center; } }

/* ---------- Mobile action bar ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 1px;
  background: var(--line); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -8px 24px -12px rgba(30,28,25,.25);
}
.action-bar__btn { display: flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: var(--bar-h); background: var(--bg); color: var(--ink); font-weight: 600; font-size: var(--t-14); text-decoration: none; }
.action-bar__btn--main { background: var(--graphite); color: var(--on-dark); }
.action-bar__btn:active { opacity: .85; }
.action-bar__btn .icon { width: 18px; height: 18px; }
body { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
@media (min-width: 960px) { .action-bar { display: none; } body { padding-bottom: 0; } }

/* ---------- Cookie ---------- */
.cookie {
  position: fixed; z-index: 60; left: var(--s-3); right: var(--s-3);
  bottom: calc(var(--bar-h) + env(safe-area-inset-bottom) + var(--s-2));
  display: flex; gap: var(--s-3); align-items: center;
  background: var(--surface); color: var(--ink-2); padding: var(--s-3) var(--s-3) var(--s-3) var(--s-4);
  border-radius: var(--r-md); box-shadow: 0 12px 32px -12px rgba(30,28,25,.35), 0 0 0 1px var(--line);
  font-size: var(--t-12); line-height: 1.4;
}
@media (max-width: 959px) {
  .cookie { height: 48px; padding: 0; gap: 0; align-items: stretch; overflow: hidden; font-size: .75rem; line-height: 1.3; }
  .cookie p { flex: 1; display: flex; align-items: center; padding: 0 var(--s-3); }
  .cookie .btn { min-height: 48px; height: 48px; border-radius: 0; padding: 0 var(--s-4); }
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; }
.cookie a { color: var(--oak); font-weight: 600; }
.cookie .btn { flex: none; }
@media (min-width: 960px) { .cookie { left: auto; right: var(--s-5); bottom: var(--s-5); max-width: 440px; font-size: var(--t-14); } }

/* ---------- Lightbox ---------- */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(18,16,14,.96); color: var(--on-dark); }
.lightbox::backdrop { background: rgba(18,16,14,.8); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr; }
.lightbox__top { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-2) var(--s-2) var(--s-2) var(--s-5); }
.lightbox__caption { margin: 0; flex: 1; font-size: var(--t-14); color: var(--on-dark-2); }
.lightbox__count { margin: 0; font-size: var(--t-14); font-variant-numeric: tabular-nums; color: var(--on-dark-2); }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 var(--s-2) var(--s-5); }
.lightbox__stage { overflow: hidden; }
.lightbox__stage img { width: auto; height: auto; max-width: calc(100vw - 2 * var(--s-2)); max-height: calc(100vh - 64px - var(--s-5)); max-height: calc(100dvh - 64px - var(--s-5)); object-fit: contain; user-select: none; }
@media (max-width: 719px) { .lightbox__stage { padding-bottom: 72px; } .lightbox__stage img { max-height: calc(100vh - 64px - 72px); max-height: calc(100dvh - 64px - 72px); } }
.lightbox__btn { width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(247,244,239,.08); color: var(--on-dark); cursor: pointer; transition: background-color .2s var(--ease); }
.lightbox__btn:hover { background: rgba(247,244,239,.2); }
.lightbox__btn .icon { width: 22px; height: 22px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: var(--s-3); }
.lightbox__nav--next { right: var(--s-3); }
.lightbox :focus-visible { outline-color: var(--gold-on-dark); }
@media (max-width: 719px) { .lightbox__nav { top: auto; bottom: var(--s-3); transform: none; } }

/* ---------- Reveal (только если JS добавил класс) ---------- */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
}

/* 2026-10-15: прод — продавец, MAX-кнопка, honeypot, тост */
.hero__seller { margin: var(--s-2) 0 0; font-size: var(--t-14); color: var(--muted); }
button.contact, .contact--btn { width: 100%; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.contact-note { margin: var(--s-3) 0 0; font-size: var(--t-14); color: var(--muted); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
button.action-bar__btn { border: 0; font-family: inherit; cursor: pointer; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--bar-h, 56px) + 16px + env(safe-area-inset-bottom)); z-index: 60;
  margin: 0; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 10px; background: var(--graphite, #2b2a28); color: #fff;
  font-size: var(--t-14); box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.toast[hidden] { display: none; }
@media (min-width: 960px) { .toast { bottom: 24px; } }
.site-footer__links .link-btn { min-height: 44px; display: inline-flex; align-items: center; color: var(--on-dark); text-underline-offset: 4px; text-decoration: none; }
.hero__seller { margin: 0 0 var(--s-3); }

/* Галерея — bento-плитка комнат (2026-10-19) */
.tabs--rooms .tabs__list, .tabs--rooms .tabs__panel { display: none !important; }
.rooms { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: var(--s-2); }
.room { position: relative; overflow: hidden; border: 0; padding: 0; margin: 0; border-radius: var(--r-md); background: var(--sand); cursor: pointer; text-align: left; font: inherit; color: inherit; }
.room img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.room::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,28,25,0) 45%, rgba(30,28,25,.72) 100%); transition: opacity .3s var(--ease); }
.room:hover img { transform: scale(1.04); }
.room:focus-visible { outline: 3px solid var(--oak); outline-offset: 3px; }
.room__label { position: absolute; left: var(--s-4); right: var(--s-4); bottom: var(--s-3); z-index: 1; display: flex; flex-direction: column; gap: 2px; color: var(--on-dark); }
.room__name { font-family: var(--f-serif); font-size: var(--t-20); line-height: 1.1; font-weight: 600; }
.room__count { font-size: var(--t-12); letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-2); }
.room--hero { grid-column: span 2; grid-row: span 2; }
.room--hero .room__name { font-size: var(--t-32); }
.room--all { grid-column: span 2; background: var(--graphite); color: var(--on-dark); display: flex; flex-direction: column; justify-content: center; gap: var(--s-1); padding: var(--s-4) var(--s-5); }
.room--all::after { display: none; }
.room__all-num { font-family: var(--f-serif); font-size: var(--t-32); line-height: 1; }
.room__all-txt { font-size: var(--t-14); color: var(--on-dark-2); }
.room__all-arrow { position: absolute; right: var(--s-5); top: 50%; transform: translateY(-50%); font-size: var(--t-24); color: var(--gold-on-dark); transition: transform .3s var(--ease); }
.room--all:hover .room__all-arrow { transform: translate(4px, -50%); }
@media (min-width: 720px) {
  .rooms { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: var(--s-3); }
  .room__name { font-size: var(--t-24); }
  .room--hero .room__name { font-size: var(--t-40); }
}
@media (prefers-reduced-motion: reduce) { .room img, .room__all-arrow { transition: none; } }

/* ---- Боковая панель соцсетей (2026-10-20) ---- */
.side-rail { position: fixed; right: 12px; top: 50%; transform: translateY(-50%); z-index: 45; display: flex; flex-direction: column; gap: 10px; }
.side-rail__btn { position: relative; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); text-decoration: none; cursor: pointer; padding: 0; font: 800 15px/1 var(--f-sans); letter-spacing: .02em; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.side-rail__btn .icon { width: 22px; height: 22px; }
.side-rail__txt--sm { font-size: 11px; letter-spacing: .04em; }
.side-rail__btn--vk { background: #0077FF; border-color: #0077FF; color: #fff; }
.side-rail__btn--video { background: var(--graphite); border-color: var(--graphite); color: var(--on-dark); }
.side-rail__btn--max { background: var(--surface); color: var(--ink); }
.side-rail__btn--tel { background: var(--oak); border-color: var(--oak); color: #fff; }
.side-rail__btn:hover { transform: translateX(-3px); box-shadow: 0 10px 24px -10px rgba(30,28,25,.45); }
.side-rail__btn::before { content: attr(data-label); position: absolute; right: calc(100% + 10px); top: 50%; transform: translate(6px, -50%); white-space: nowrap; background: var(--graphite); color: var(--on-dark); font: 600 13px/1.2 var(--f-sans); letter-spacing: 0; padding: 7px 10px; border-radius: var(--r-sm); opacity: 0; pointer-events: none; transition: opacity .15s var(--ease), transform .15s var(--ease); }
.side-rail__btn:hover::before, .side-rail__btn:focus-visible::before { opacity: 1; transform: translate(0, -50%); }
@media (max-width: 959px) {
  .side-rail { right: 6px; gap: 8px; }
  .side-rail__btn { width: 42px; height: 42px; font-size: 13px; }
  .side-rail__btn .icon { width: 20px; height: 20px; }
  .side-rail__btn--max, .side-rail__btn--tel { display: none; } /* есть в нижней панели */
  .side-rail__btn::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { .side-rail__btn, .side-rail__btn::before { transition: none; } }
@media print { .side-rail { display: none; } }

/* ---- Объявления риэлтора: Авито и Домклик (2026-10-22) ---- */
.hero__listings { margin: var(--s-3) 0 0; font-size: var(--t-16); color: inherit; opacity: .92; }
.hero__listings a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.listings { grid-column: 1 / -1; border-top: 1px solid rgba(210,181,139,.35); padding-top: var(--s-5); display: grid; gap: var(--s-3); }
.listings__title { margin: 0; font-weight: 700; color: var(--on-dark); }
.listings__links { display: grid; gap: var(--s-3); }
.listings__link { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 52px; padding: 0 var(--s-5); border-radius: var(--r-sm, 10px); font-weight: 700; text-decoration: none; color: #fff; transition: transform .2s var(--ease), filter .2s var(--ease); }
.listings__link:hover { transform: translateY(-2px); filter: brightness(1.08); }
.listings__link--avito { background: #0A8FDC; }
.listings__link--domclick { background: #1F9D55; }
@media (min-width: 720px) { .listings__links { grid-template-columns: 1fr 1fr; } }
.side-rail__btn--avito { background: #0A8FDC; border-color: #0A8FDC; color: #fff; }
.side-rail__btn--domclick { background: #1F9D55; border-color: #1F9D55; color: #fff; }
.side-rail__btn--avito .side-rail__txt--sm { font-size: 9px; }
.side-rail__btn--domclick .side-rail__txt--sm { font-size: 9px; line-height: 1.05; text-align: center; }
@media (prefers-reduced-motion: reduce) { .listings__link { transition: none; } }

/* p16: подпись разработчика в футере */
.site-footer__bottom { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid rgba(247, 244, 239, .12); font-size: 13px; line-height: 1.5; color: rgba(207, 198, 184, .72); }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom .dev-credit { color: inherit; white-space: nowrap; text-decoration: none; text-underline-offset: 3px; transition: color .2s ease; }
.site-footer__bottom .dev-credit:hover, .site-footer__bottom .dev-credit:focus-visible { color: var(--on-dark); text-decoration: underline; }

/* p17 devband — полоса разработчика под футером (фон «дуб» --oak, кнопка как .btn--light) */
.pl-devband { background: var(--oak, #8A6236); color: #FFFFFF; font-family: var(--f-sans, "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif); font-size: 15px; line-height: 1.4; border-top: 1px solid rgba(210, 181, 139, .5); -webkit-font-smoothing: antialiased; }
.pl-devband__in { box-sizing: border-box; max-width: 1240px; min-height: 56px; margin: 0 auto; padding: 8px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; }
.pl-devband__mark { display: block; width: 17px; height: 23px; flex: none; }
.pl-devband__txt { margin: 0; color: #FFFFFF; }
.pl-devband__txt b { font-weight: 700; }
.pl-devband__btn { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border: 1.5px solid transparent; border-radius: var(--r-sm, 4px); background: var(--on-dark, #F7F4EF); color: var(--graphite, #26231F); font-size: 14px; font-weight: 600; letter-spacing: .01em; line-height: 1; text-decoration: none; white-space: nowrap; transition: transform .2s cubic-bezier(.2,.7,.2,1), background-color .2s cubic-bezier(.2,.7,.2,1), box-shadow .2s cubic-bezier(.2,.7,.2,1); }
.pl-devband__btn:hover { background: #FFFFFF; color: var(--graphite, #26231F); transform: translateY(-1px); box-shadow: 0 0 0 1.5px var(--gold-on-dark, #D2B58B), 0 10px 24px -10px rgba(30, 28, 25, .55); }
.pl-devband__btn:active { transform: translateY(0); }
.pl-devband__btn:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 3px; border-radius: var(--r-sm, 4px); }
@media (max-width: 640px) {
  .pl-devband { font-size: 14px; }
  .pl-devband__in { display: grid; grid-template-columns: auto minmax(0, 1fr); justify-content: stretch; align-items: center; gap: 10px 12px; padding: 14px 20px; }
  .pl-devband__btn { grid-column: 1 / -1; justify-self: start; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .pl-devband__btn { transition: none; } .pl-devband__btn:hover { transform: none; } }
