/* Максимум Север — окна ПВХ, Петропавловск */

:root {
  --bg: #f3f2ef;
  --surface: #fdfcfa;
  --raised: #e9e7e2;
  --line: rgba(26, 22, 17, 0.09);
  --line-strong: rgba(26, 22, 17, 0.16);

  --text: #1a1611;
  --text-2: #4a453d;
  --text-3: #6b655b;

  --accent: #d98c2b;
  --accent-ink: #9a5a12;

  --dark: #1a1611;
  --dark-2: #241f19;
  --dark-3: #2f2921;
  --on-dark: #f3f2ef;
  --on-dark-2: #b9b2a6;
  --dark-line: rgba(243, 242, 239, 0.14);

  --ok: #2f7d4a;

  --r-btn: 8px;
  --r-card: 12px;
  --r-panel: 16px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1152px;
  --gutter: 16px;
  --header-h: 64px;
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
}
@media (min-width: 960px) {
  :root { --header-h: 72px; }
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--text);
  font-weight: 500;
  overflow-wrap: break-word;
}
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.mono {
  font-family: var(--mono);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.icon {
  display: block;
  flex-shrink: 0;
}

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

:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease), transform 120ms var(--ease);
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--dark);
  color: var(--surface);
}
.btn-primary:hover { background: #352e25; }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-secondary:hover { background: var(--raised); }

.btn-accent {
  background: var(--accent);
  color: var(--dark);
}
.btn-accent:hover { background: #e59a3c; }

.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; white-space: nowrap; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 160ms var(--ease);
}
.link-arrow:hover { color: var(--accent-ink); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 242, 239, 0.94);
  border-bottom: 1px solid transparent;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { backdrop-filter: saturate(1.2) blur(8px); }
}
.site-header.is-scrolled {
  background: rgba(253, 252, 250, 0.96);
  border-bottom-color: var(--line);
}

.header-in {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
  min-height: 44px;
}
.brand-mark {
  width: 48px;
  height: 32px;
  border-radius: 6px;
  overflow: hidden;
  background: #221f1c;
  flex-shrink: 0;
}
.brand-mark img {
  width: 66px;
  height: 66px;
  max-width: none;
  margin: -9px 0 0 -8px;
}
.brand-text { display: grid; line-height: 1.2; }
.brand-name { color: var(--text); font-size: 17px; font-weight: 500; }
.brand-sub { color: var(--text-3); font-size: 13px; white-space: nowrap; }

.nav { display: none; gap: 4px; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: var(--r-btn);
  color: var(--text-2);
  font-size: 15px;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.nav a:hover { background: var(--raised); color: var(--text); }

.lang {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.lang button {
  min-width: 44px;
  min-height: 40px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-3);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: var(--dark); color: var(--surface); }
.header-in > .lang { display: none; }

.header-phone {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.header-phone .icon { color: var(--text-3); }
.header-cta { display: none; }

.menu-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.menu-btn[aria-expanded="true"] .i-menu { display: none; }

.mnav {
  border-top: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 12px 24px rgba(26, 22, 17, 0.08);
}
.mnav[hidden] { display: none; }
.mnav-in { display: grid; gap: 16px; padding-block: 12px 20px; }
.mnav-links { display: grid; }
.mnav-links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 18px;
  text-decoration: none;
}
.mnav-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.mnav .header-phone { display: inline-flex; }

@media (min-width: 1080px) {
  .nav { display: flex; }
  .header-in > .lang { display: inline-flex; }
  .header-cta { display: inline-flex; }
  .menu-btn, .mnav { display: none !important; }
}
@media (min-width: 1260px) {
  .site-header .header-phone { display: inline-flex; }
}

/* ---------- Hero ---------- */

.hero {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
  display: grid;
  gap: 20px;
  padding-block: 16px 40px;
}
.hero-text { display: grid; gap: 20px; align-content: center; }

.hero h1 {
  font-size: clamp(34px, 4.8vw + 18px, 60px);
  line-height: 1.04;
  letter-spacing: 0;
  max-width: 13ch;
}
@media (min-width: 600px) {
  .hero h1 { letter-spacing: -0.03em; }
}

.hero .lead {
  max-width: 36rem;
  color: var(--text-2);
  font-size: 18px;
  line-height: 1.55;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--text);
  font-size: 16px;
}
.hero-facts li { display: flex; align-items: flex-start; gap: 8px; }
.hero-facts .icon { color: var(--text-3); margin-top: 2px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 959px) {
  .hero .actions { display: none; }
  .hero-facts { gap: 8px 16px; font-size: 15px; }
  .hero .lead { font-size: 17px; }
}

.open-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.open-status[hidden] { display: none; }
.open-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-3);
  flex-shrink: 0;
}
.open-status.is-open .dot { background: var(--ok); }

.hero-media { order: -1; display: grid; gap: 12px; max-width: 556px; }
.hero-media .crop { border-radius: var(--r-card); }
.crop.t-glass { aspect-ratio: 506 / 258; }
.crop.t-stand, .crop.t-room { display: none; }

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 48px;
    padding-block: 40px 64px;
  }
  .hero-media {
    order: 0;
    max-width: none;
    grid-template-columns: 184fr 327fr;
  }
  .crop.t-glass { grid-column: 1 / -1; }
  .crop.t-stand { display: block; aspect-ratio: 3 / 4; --fy: 30%; }
  .crop.t-room { display: block; aspect-ratio: 4 / 3; }
}

/* ---------- Crop: a frame cut out of a client slide ---------- */

.crop {
  position: relative;
  overflow: hidden;
  container-type: size;
  aspect-ratio: var(--w) / var(--h);
  background: var(--raised);
}
.crop .vb {
  position: absolute;
  left: var(--fx, 50%);
  top: var(--fy, 50%);
  width: max(100cqw, 100cqh * var(--w) / var(--h));
  aspect-ratio: var(--w) / var(--h);
  translate: calc(var(--fx, 50%) * -1) calc(var(--fy, 50%) * -1);
}
.crop img {
  position: absolute;
  max-width: none;
  width: calc(100% * var(--W, 1440) / var(--w));
  height: auto;
  left: calc(-100% * var(--x) / var(--w));
  top: calc(-100% * var(--y) / var(--h));
}

/* ---------- Facts strip ---------- */

.facts { border-block: 1px solid var(--line); background: var(--surface); }
.facts-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.facts-list li {
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 20px 16px 20px 0;
}
.facts-list li:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--line); }
.facts-list li:nth-child(n + 3) { border-top: 1px solid var(--line); }
.fact-num {
  color: var(--text);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.fact-label { color: var(--text-2); font-size: 15px; line-height: 1.45; }

@media (min-width: 900px) {
  .facts-list { grid-template-columns: repeat(4, 1fr); }
  .facts-list li { padding: 28px 24px; border-top: 0 !important; }
  .facts-list li:first-child { padding-left: 0; }
  .facts-list li + li { border-left: 1px solid var(--line); padding-left: 24px; }
  .fact-num { font-size: 32px; }
}

/* ---------- Sections ---------- */

.section { padding-block: 56px; }
@media (min-width: 960px) {
  .section { padding-block: 104px; }
}

.sec-head { display: grid; gap: 12px; margin-bottom: 32px; max-width: 46rem; }
.sec-head h2,
.calc h2,
.faq h2,
.contacts h2 {
  font-size: clamp(28px, 2.2vw + 16px, 40px);
  line-height: 1.12;
}
@media (min-width: 1100px) {
  .sec-head h2, .calc h2, .faq h2, .contacts h2 { letter-spacing: -0.02em; }
}
.sec-lead { color: var(--text-2); font-size: 17px; }
@media (min-width: 960px) {
  .sec-head { margin-bottom: 48px; }
}

/* ---------- Products ---------- */

.products { display: grid; gap: 32px; }
@media (min-width: 960px) {
  .products { grid-template-columns: 7fr 5fr; gap: 48px; align-items: start; }
}

.prod-list { border-top: 1px solid var(--line-strong); }
.prod-row {
  display: grid;
  gap: 4px 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.prod-row h3 { font-size: 20px; line-height: 1.3; }
.prod-row p { color: var(--text-2); font-size: 16px; }
.prod-row .spec { color: var(--text-3); font-size: 14px; }
@media (min-width: 640px) {
  .prod-row { grid-template-columns: 1fr auto; }
  .prod-row h3 { grid-column: 1; }
  .prod-row .spec { grid-column: 2; grid-row: 1; justify-self: end; align-self: center; }
  .prod-row p { grid-column: 1 / -1; max-width: 40rem; }
}

.profile-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.profile-card h3 { font-size: 20px; margin-bottom: 16px; }
.spec-list { display: grid; }
.spec-list > div {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.spec-list dt { color: var(--text-3); }
.spec-list dd { color: var(--text); font-family: var(--mono); font-variant-numeric: tabular-nums; }
.profile-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 15px;
}
.profile-note .icon { color: var(--text-3); margin-top: 2px; }
@media (min-width: 960px) {
  .profile-card { padding: 28px; }
}

/* ---------- Steps ---------- */

.steps-section { background: var(--surface); border-block: 1px solid var(--line); }
.steps { display: grid; gap: 0; counter-reset: none; }
.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 4px 12px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.step-num {
  grid-row: span 2;
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.7;
}
.step h3 { font-size: 19px; line-height: 1.35; }
.step p { color: var(--text-2); font-size: 16px; }
@media (min-width: 1100px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .step { grid-template-columns: 1fr; gap: 12px; padding: 20px 0 0; align-content: start; }
  .step-num { grid-row: auto; }
}

/* ---------- Calc (dark) ---------- */

.calc {
  background: var(--dark);
  color: var(--on-dark-2);
  padding-block: 56px;
}
.calc h2 { color: var(--on-dark); }
.calc-in { display: grid; gap: 32px; }
.calc-head { display: grid; gap: 16px; align-content: start; }
.calc-head p { font-size: 17px; max-width: 30rem; }
.calc-pay {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--on-dark-2);
  font-size: 15px;
}
.calc-pay .icon { color: var(--on-dark-2); margin-top: 2px; }

.calc-box {
  display: grid;
  gap: 28px;
  padding: 24px;
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  border-radius: var(--r-panel);
}
.calc-box fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.calc-box legend {
  padding: 0;
  margin-bottom: 12px;
  color: var(--on-dark);
  font-size: 17px;
  font-weight: 500;
}
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.opt span {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--dark-line);
  border-radius: var(--r-btn);
  color: var(--on-dark);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
  pointer-events: none;
}
.opt:hover span { border-color: rgba(243, 242, 239, 0.32); }
.opt input:checked + span { background: var(--on-dark); color: var(--dark); border-color: var(--on-dark); }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.calc-note { color: var(--on-dark-2); font-size: 14px; margin-top: 12px; }
.calc-send { justify-self: start; }
.calc :focus-visible { outline-color: var(--accent); }

@media (min-width: 960px) {
  .calc { padding-block: 104px; }
  .calc-in { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .calc-box { padding: 32px; }
}

/* ---------- Objects ---------- */

.story {
  display: grid;
  gap: 24px;
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.story-head { display: grid; gap: 8px; max-width: 44rem; }
.story-head h3 { font-size: 24px; line-height: 1.25; }
.obj-meta { color: var(--text-3); font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; }
.story-head p:not(.obj-meta) { color: var(--text-2); }
.story-rows { display: grid; gap: 24px; }
.story-row { margin: 0; display: grid; gap: 12px; }
.story-row figcaption { color: var(--text); font-size: 15px; font-weight: 500; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.story-grid .crop { aspect-ratio: 4 / 3; border-radius: 10px; }
.story-grid .crop:first-child { grid-column: 1 / -1; }
@media (min-width: 720px) {
  .story-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .story-grid .crop:first-child { grid-column: auto; }
  .story-grid .crop { border-radius: var(--r-card); }
}

.obj-grid { display: grid; gap: 24px; }
@media (min-width: 600px) { .obj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .obj-grid { grid-template-columns: repeat(4, 1fr); } }

.obj {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}
.obj .crop { aspect-ratio: 4 / 3; }
.obj-body { display: grid; gap: 6px; padding: 16px 20px 20px; align-content: start; }
.obj-body h3 { font-size: 18px; line-height: 1.3; }
.obj-count {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}
.obj-count .icon { color: var(--text-3); transition: color 160ms var(--ease); }
.obj-open {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: var(--r-card);
}
.js .obj-open { display: block; }
.js .obj-count { display: inline-flex; }
.js .obj:hover { border-color: var(--line-strong); background: #fff; }
.js .obj:hover .obj-count .icon { color: var(--accent-ink); }
.obj-open:focus-visible { outline-offset: -2px; }

/* Dialog */
.obj-dialog {
  width: min(1120px, 100% - 24px);
  max-height: min(92vh, 1000px);
  padding: 0;
  border: 0;
  border-radius: var(--r-panel);
  background: var(--surface);
  color: var(--text-2);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
  overscroll-behavior: contain;
}
.obj-dialog::backdrop { background: rgba(26, 22, 17, 0.62); }
.obj-dialog[open] { animation: dlg-in 220ms var(--ease); }
@keyframes dlg-in { from { opacity: 0; translate: 0 8px; } }
.dlg-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 12px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.dlg-count { color: var(--text-3); font-size: 14px; }
.dlg-nav { display: flex; gap: 8px; }
.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background-color 160ms var(--ease), transform 120ms var(--ease);
}
.icon-btn:hover { background: var(--raised); }
.icon-btn:active { transform: scale(0.98); }
.flip { transform: scaleX(-1); }
.obj-set { display: grid; gap: 16px; padding: 20px; }
.obj-set[hidden] { display: none; }
.obj-set h3 { font-size: 22px; line-height: 1.25; }
.dlg-grid { columns: 1; column-gap: 12px; }
.dlg-grid .crop {
  width: 100%;
  max-width: calc(var(--w) * 1px);
  margin-bottom: 12px;
  border-radius: 10px;
  break-inside: avoid;
}
@media (min-width: 640px) { .dlg-grid { columns: 2; } }
@media (min-width: 960px) {
  .dlg-grid { columns: 3; }
  .obj-set { padding: 24px 28px 28px; }
}

/* ---------- Build ---------- */

.build { display: grid; gap: 32px; }
@media (min-width: 960px) {
  .build { grid-template-columns: 7fr 5fr; gap: 56px; align-items: start; }
}
.build .sec-head { margin-bottom: 24px; }
.work-list {
  display: grid;
  border-top: 1px solid var(--line-strong);
}
.work-list li {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 17px;
  line-height: 1.4;
}
@media (min-width: 640px) {
  .work-list { grid-template-columns: 1fr 1fr; column-gap: 32px; }
}
.partners {
  margin-top: 24px;
  color: var(--text-2);
  font-size: 15px;
}
.partners b { color: var(--text); font-weight: 500; }
.build-cta { margin-top: 16px; }
.build-photos { display: grid; gap: 16px; }
.build-photos figure { margin: 0; display: grid; gap: 8px; max-width: 470px; }
.build-photos .crop { border-radius: var(--r-card); }
.build-photos figcaption { color: var(--text-3); font-size: 14px; }

/* ---------- Instagram ---------- */

.ig-section { background: var(--surface); border-top: 1px solid var(--line); }
.ig-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 32px;
}
.ig-head .sec-head { margin-bottom: 0; }
.ig-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 900px) { .ig-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.ig {
  display: grid;
  gap: 8px;
  text-decoration: none;
  color: var(--text-2);
}
.ig-img {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: var(--raised);
  border: 1px solid var(--line);
}
.ig-img img { width: 100%; height: 100%; object-fit: cover; }
.ig-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 15px;
  line-height: 1.35;
  transition: color 160ms var(--ease);
}
.ig-cap .icon { color: var(--text-3); }
.ig:hover .ig-cap { color: var(--text); }

/* ---------- FAQ ---------- */

.faq-in { display: grid; gap: 24px; }
@media (min-width: 960px) {
  .faq-in { grid-template-columns: 4fr 8fr; gap: 56px; }
}
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 12px 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { color: var(--text-3); transition: transform 180ms var(--ease); }
.faq-list details[open] summary .icon { transform: rotate(180deg); }
.faq-list details p { padding: 0 0 20px; max-width: 42rem; color: var(--text-2); }

/* ---------- Contacts ---------- */

.contacts { background: var(--surface); border-top: 1px solid var(--line); }
.contacts-in { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .contacts-in { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
}
.contacts-head { display: grid; gap: 16px; margin-bottom: 32px; }
.contacts-head p { max-width: 32rem; }

.c-list { display: grid; border-top: 1px solid var(--line); }
.c-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.c-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text-2);
}
.c-body { display: grid; gap: 2px; min-width: 0; padding-top: 0; }
.c-label { color: var(--text-3); font-size: 14px; line-height: 1.4; }
.c-value {
  color: var(--text);
  font-size: 17px;
  line-height: 1.45;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
a.c-value { display: inline-flex; align-items: center; min-height: 32px; width: fit-content; }
a.c-value:hover { color: var(--accent-ink); }

.sched { display: grid; gap: 0; margin-top: 4px; max-width: 22rem; }
.sched li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 8px;
  margin-inline: -8px;
  border-radius: 6px;
  color: var(--text-2);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.sched li span:last-child { font-family: var(--mono); font-size: 15px; }
.sched li.is-today { background: var(--bg); color: var(--text); }
.sched li.is-today span:first-child { font-weight: 500; }

.map-box { display: grid; gap: 16px; }
.map-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--raised);
  display: block;
}
.map-cap { color: var(--text-3); font-size: 15px; }
@media (min-width: 960px) {
  .map-box { position: sticky; top: calc(var(--header-h) + 24px); }
  .map-frame { aspect-ratio: 1 / 1; }
}
.map-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 40px;
  background: var(--dark);
  color: var(--on-dark-2);
  font-size: 15px;
}
.footer-in { display: grid; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--on-dark); font-weight: 500; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--on-dark);
  text-decoration: none;
}
.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-links .icon { color: var(--on-dark-2); }
.footer-legal { display: grid; gap: 4px; }
.site-footer :focus-visible { outline-color: var(--accent); }
@media (min-width: 960px) {
  .footer-in { grid-template-columns: 1fr auto; align-items: center; }
  .footer-legal { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--dark-line); }
}

/* ---------- Mobile bar ---------- */

.mbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 48px;
  gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(253, 252, 250, 0.97);
  border-top: 1px solid var(--line);
}
.mbar .btn { min-height: 48px; }
.mbar .icon-btn { width: 48px; height: 48px; }
body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
@media (min-width: 960px) {
  .mbar { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- Motion ---------- */

.anim .hero-text,
.anim .hero-media {
  animation: rise 480ms var(--ease) both;
}
.anim .hero-media { animation-delay: 60ms; }
@keyframes rise { from { opacity: 0; translate: 0 10px; } }

.rv .reveal {
  opacity: 0;
  translate: 0 10px;
  transition: opacity 420ms var(--ease), translate 420ms var(--ease);
  transition-delay: calc(var(--i, 0) * 50ms);
}
.rv .reveal.is-in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim .hero-text, .anim .hero-media, .obj-dialog[open] { animation: none; }
  .rv .reveal { opacity: 1; translate: none; transition: none; }
  * { transition-duration: 0ms !important; }
}
