/* Ukdoors — светлый цех: графитовая шкала, белые карточки, бронза в ценах и шагах */
:root {
  --bg: #F3F3F2;
  --surface: #FDFDFC;
  --raised: #EAEAE8;
  --line: rgba(27, 25, 28, 0.09);
  --line-strong: rgba(27, 25, 28, 0.16);
  --text: #1B191C;
  --text-2: #4C4A44;
  --muted: #696964;
  --accent: #1B191C;
  --accent-hover: #353236;
  --bronze: #8E6430;
  --dark: #1B191C;
  --dark-raised: #262427;
  --dark-line: rgba(243, 243, 242, 0.14);
  --on-dark: #F3F3F2;
  --on-dark-2: #B9B7B1;
  --font: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1200px;
  --pad: 20px;
  --header-h: 56px;
}

@media (min-width: 960px) {
  :root { --pad: 32px; --header-h: 64px; }
}

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

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

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

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 { color: var(--text); font-weight: 500; }
h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; }
h3 { font-size: 18px; line-height: 1.35; }

.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 14px; line-height: 1.5; color: var(--muted); }
.nowrap { white-space: nowrap; }

.icon { display: block; flex-shrink: 0; }
.icon-flip { transform: scaleX(-1); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--surface); color: var(--text);
  padding: 12px 16px; border-radius: 8px; border: 1px solid var(--line-strong);
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; border-radius: 6px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px;
  border-radius: 10px; border: 1px solid transparent;
  font-size: 16px; font-weight: 500; line-height: 1.2; text-align: center;
  cursor: pointer;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--raised); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-icon { width: 48px; padding: 0; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease);
}
.site-header.is-scrolled { background: var(--surface); border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: flex; flex-direction: column; line-height: 1.1; margin-right: auto; padding-block: 4px; }
.brand-name { font-size: 18px; font-weight: 600; color: var(--text); letter-spacing: 0; }
.brand-city { font-size: 14px; color: var(--muted); margin-top: 2px; }

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

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone { display: none; font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; min-height: 44px; align-items: center; }
.header-cta { display: none; }

.lang { display: flex; gap: 2px; }
.header-actions .lang { display: none; }
.lang button {
  min-width: 44px; min-height: 44px; padding: 0 8px;
  border: 0; border-radius: 8px; background: transparent;
  font-size: 14px; font-weight: 500; color: var(--muted); 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(--raised); color: var(--text); }

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

.mobile-menu {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  padding: 8px var(--pad) 24px;
  max-height: calc(100svh - var(--header-h));
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav a {
  display: flex; align-items: center; min-height: 48px;
  border-bottom: 1px solid var(--line);
  font-size: 18px; color: var(--text);
}
.mobile-menu .lang { margin-top: 16px; }
.mobile-menu .menu-contacts { display: grid; gap: 8px; margin-top: 16px; }
.mobile-menu .menu-contacts .btn { width: 100%; }

@media (min-width: 960px) {
  .header-actions .lang { display: flex; }
  .header-cta { display: inline-flex; }
}
@media (min-width: 1100px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
  .mobile-menu { display: none !important; }
}
@media (min-width: 1360px) {
  .header-phone { display: inline-flex; }
}

/* ---------- Первый экран ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #FFFFFF;
  overflow: hidden;
}
.hero-text {
  position: relative; z-index: 1;
  padding: 120px var(--pad) 32px;
  animation: rise 500ms var(--ease) both;
}
html:not(.js) .hero-text { padding-bottom: 104px; }
.hero-media { position: absolute; inset: 0; animation: fade 600ms var(--ease) both; }
.hero-media > * {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 64% 38%;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.62) 42%, rgba(0, 0, 0, 0.12) 72%, rgba(0, 0, 0, 0) 100%);
}
.hero h1 {
  color: #FFFFFF;
  font-size: clamp(28px, 8.8vw, 36px);
  line-height: 1.06; letter-spacing: 0;
  max-width: 14em;
}
.hero-lead { margin-top: 16px; font-size: 17px; color: rgba(255, 255, 255, 0.88); max-width: 34em; }
.hero-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
.hero .btn-primary { background: var(--surface); color: var(--text); }
.hero .btn-primary:hover { background: var(--raised); }
.hero .btn-secondary { background: rgba(0, 0, 0, 0.2); color: #FFFFFF; border-color: rgba(255, 255, 255, 0.5); }
.hero .btn-secondary:hover { background: rgba(0, 0, 0, 0.4); }
.status { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.status[hidden] { display: none; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.status.is-open .status-dot { background: #3E9B5E; }
.hero .status { margin-top: 16px; color: rgba(255, 255, 255, 0.88); }

@media (min-width: 480px) {
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
}

@media (min-width: 960px) {
  .hero {
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
    max-width: calc(var(--container) + var(--pad) * 2);
    margin-inline: auto;
    padding: 24px var(--pad) 40px;
    min-height: 0;
    color: inherit; overflow: visible;
  }
  .hero-text, html:not(.js) .hero-text { padding: 0; }
  .hero-media {
    position: relative; inset: auto;
    aspect-ratio: 4 / 5;
    max-height: calc(100svh - 196px);
    min-height: 480px;
    border-radius: 12px; overflow: hidden;
    background: var(--raised);
  }
  .hero-media > * { object-position: 50% 50%; }
  .hero-media::after { display: none; }
  .hero h1 { color: var(--text); font-size: clamp(44px, 4.6vw, 58px); letter-spacing: -0.03em; }
  .hero-lead { color: var(--text-2); }
  .hero .btn-primary { background: var(--accent); color: #FFFFFF; }
  .hero .btn-primary:hover { background: var(--accent-hover); }
  .hero .btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
  .hero .btn-secondary:hover { background: var(--raised); }
  .hero .status { color: var(--muted); }
}

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Строка фактов ---------- */
.facts { padding-block: 24px 8px; }
.facts ul {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
}
.facts li { display: flex; gap: 12px; padding: 16px; align-items: flex-start; }
.facts li:nth-child(odd) { border-right: 1px solid var(--line); }
.facts li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.fact-icon {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--raised); color: var(--text-2);
}
.fact-title { display: block; color: var(--text); font-weight: 500; font-size: 16px; line-height: 1.35; font-variant-numeric: tabular-nums; }
.fact-sub { display: block; color: var(--muted); font-size: 16px; line-height: 1.4; margin-top: 2px; }

@media (max-width: 479px) {
  .facts ul { grid-template-columns: 1fr; }
  .facts li:nth-child(odd) { border-right: 0; }
  .facts li:not(:last-child) { border-bottom: 1px solid var(--line); }
}
@media (min-width: 960px) {
  .facts { padding-block: 0 16px; }
  .facts ul { grid-template-columns: repeat(4, 1fr); }
  .facts li { padding: 20px 24px; }
  .facts li:nth-child(odd) { border-right: 0; }
  .facts li:nth-child(-n+2) { border-bottom: 0; }
  .facts li:not(:last-child) { border-right: 1px solid var(--line); }
}

/* ---------- Секции ---------- */
.section { padding-block: 56px; }
@media (min-width: 960px) { .section { padding-block: 96px; } }
.section-head { display: grid; gap: 12px; margin-bottom: 32px; max-width: 760px; }
.section-head p { font-size: 17px; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 32px; }
.section-head-row .section-head { margin-bottom: 0; }

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

/* ---------- Услуги: плитки с ценой «от» ---------- */
.tiles { display: grid; gap: 16px; }
@media (min-width: 640px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .tiles { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.tile {
  display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px;
}
.tile h3 { overflow-wrap: break-word; }
@media (max-width: 359px) { .tile { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; } }
@media (min-width: 1024px) { .tile { grid-template-columns: 148px minmax(0, 1fr); } }
.tile-media { aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; background: var(--raised); }
.tile-media img { width: 100%; height: 100%; object-fit: cover; }
.tile-body { display: flex; flex-direction: column; gap: 8px; padding: 4px 4px 4px 0; }
.tile-body p { font-size: 16px; line-height: 1.5; }
.tile-body .price {
  margin-top: auto; padding-top: 8px;
  color: var(--bronze); font-size: 22px; font-weight: 500; line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.price-none { margin-top: auto; padding-top: 8px; }

/* ---------- Прайс ---------- */
.pricing { display: grid; gap: 16px; }
@media (min-width: 960px) { .pricing { grid-template-columns: 7fr 5fr; gap: 20px; align-items: start; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
@media (min-width: 960px) { .card { padding: 28px; } }
.card h3 { margin-bottom: 8px; }
.price-list li {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: 16px; line-height: 1.45;
}
.price-list li:last-child { border-bottom: 0; }
.price-list .p-val { margin-left: auto; color: var(--text); font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pricing-side { display: grid; gap: 16px; }
.surcharge { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: baseline; }
.surcharge-val { font-family: var(--mono); font-size: 28px; line-height: 1.1; color: var(--bronze); grid-row: span 2; }
.surcharge-title { color: var(--text); font-weight: 500; }
.surcharge p { font-size: 16px; }
.foam { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.foam .icon { margin-top: 2px; color: var(--text-2); }

/* ---------- Работы ---------- */
.works { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
@media (min-width: 768px) { .works { grid-template-columns: repeat(4, 1fr); gap: 24px 20px; } }
.work a { display: block; border-radius: 12px; overflow: hidden; background: var(--raised); aspect-ratio: 4 / 5; cursor: zoom-in; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: opacity 180ms var(--ease); }
.work a:hover img { opacity: 0.92; }
.work figcaption { margin-top: 12px; }
.work-title { display: block; color: var(--text); font-weight: 500; font-size: 16px; line-height: 1.4; }
.work-meta { display: block; margin-top: 2px; }

/* ---------- Тонкости качества ---------- */
.split { display: grid; gap: 32px; }
@media (min-width: 960px) {
  .split { grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
  .split-rev { grid-template-columns: 7fr 5fr; }
}
.split-media { border-radius: 12px; overflow: hidden; background: var(--raised); aspect-ratio: 3 / 4; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 959px) { .split-media { max-width: 520px; } }
.quality-list { display: grid; gap: 24px; margin-top: 32px; }
@media (min-width: 640px) { .quality-list { grid-template-columns: 1fr 1fr; gap: 28px 32px; } }
.q-item { display: grid; grid-template-columns: 40px 1fr; gap: 4px 16px; align-content: start; }
.q-item .fact-icon { grid-row: span 2; }
.q-item h3 { font-size: 17px; padding-top: 8px; }
.q-item p { font-size: 16px; }

.brands { margin-top: 40px; border-top: 1px solid var(--line); }
.brands div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.brands dt { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.brands dd { color: var(--text); font-size: 16px; }

/* ---------- Плиссе ---------- */
.checks { display: grid; gap: 12px; margin-top: 24px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; }
.checks .icon { margin-top: 2px; color: var(--text-2); }
.note { margin-top: 20px; padding: 16px 20px; border-left: 2px solid var(--bronze); background: var(--surface); border-radius: 0 10px 10px 0; font-size: 16px; }
.net { margin-top: 20px; }
.net h3 { margin-bottom: 4px; }
.net p { font-size: 16px; }
.split-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Как заказать ---------- */
.steps-wrap { display: grid; gap: 40px; }
@media (min-width: 960px) { .steps-wrap { grid-template-columns: 1fr 360px; gap: 80px; align-items: center; } }
.steps { counter-reset: step; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 4px 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.step-num { font-family: var(--mono); font-size: 15px; color: var(--bronze); padding-top: 2px; grid-row: span 2; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 18px; }
.steps p { font-size: 16px; }
.live-frame { position: relative; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: var(--raised); width: 100%; max-width: 360px; }
.live-frame video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
@media (max-width: 959px) { .live-frame { max-width: 300px; } }

/* ---------- Расчёт ---------- */
.calc { background: var(--dark); color: var(--on-dark-2); }
.calc h2 { color: var(--on-dark); }
.calc-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .calc-grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } }
.calc-intro p { margin-top: 12px; }
.calc-preview { padding: 16px 20px; border: 1px solid var(--dark-line); border-radius: 10px; }
.calc-preview[hidden] { display: none; }
.calc-preview span { display: block; font-family: var(--mono); font-size: 14px; color: var(--on-dark-2); margin-bottom: 4px; }
.calc-preview output { display: block; color: var(--on-dark); font-size: 16px; }
.calc-form { display: grid; gap: 24px; }
html:not(.js) .calc-form fieldset, html:not(.js) .calc-preview { display: none; }
.calc fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.calc legend { padding: 0; margin-bottom: 12px; color: var(--on-dark); font-weight: 500; font-size: 17px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.opt span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
  border: 1px solid var(--dark-line); border-radius: 8px;
  color: var(--on-dark); font-size: 16px; line-height: 1.3; cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}
.opt span:hover { background: var(--dark-raised); }
.opt input:checked + span { background: var(--on-dark); color: var(--dark); border-color: var(--on-dark); }
.opt input:focus-visible + span { outline: 2px solid #C9A56E; outline-offset: 2px; }
.calc .btn-primary { background: var(--on-dark); color: var(--dark); justify-self: start; }
.calc .btn-primary:hover { background: #FFFFFF; }
.calc :focus-visible { outline-color: #C9A56E; }

/* ---------- Отзывы ---------- */
.reviews { display: grid; gap: 16px; }
@media (min-width: 720px) { .reviews { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .reviews { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.review { display: flex; flex-direction: column; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.review blockquote { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.review footer { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--line); }
.review cite { font-style: normal; color: var(--text); font-weight: 500; font-size: 16px; }

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

/* ---------- Instagram ---------- */
.ig-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 640px) { .ig-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (min-width: 1100px) { .ig-grid { grid-template-columns: repeat(6, 1fr); } }
.ig-grid a { display: block; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: var(--raised); }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; transition: opacity 180ms var(--ease); }
.ig-grid a:hover img { opacity: 0.9; }

/* ---------- Контакты ---------- */
.contacts-grid { display: grid; gap: 16px; }
@media (min-width: 960px) { .contacts-grid { grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; } }
.contact-list li { border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-row { display: grid; grid-template-columns: 40px 1fr; gap: 0 16px; align-items: center; padding: 12px 0; min-height: 64px; }
a.contact-row { transition: color 160ms var(--ease); }
a.contact-row:hover .contact-val { color: var(--bronze); }
.contact-label { display: block; font-size: 14px; color: var(--muted); font-family: var(--mono); line-height: 1.4; }
.contact-val { display: block; color: var(--text); font-size: 17px; font-weight: 500; line-height: 1.4; font-variant-numeric: tabular-nums; transition: color 160ms var(--ease); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.schedule-card { display: flex; flex-direction: column; }
.schedule { margin-top: 8px; }
.schedule li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 12px; border-radius: 8px; font-size: 16px; font-variant-numeric: tabular-nums; }
.schedule li:nth-child(odd) { background: transparent; }
.schedule li.is-today { background: var(--raised); color: var(--text); font-weight: 500; }
.schedule .off { color: var(--muted); }
.schedule-card .status { margin-top: 16px; color: var(--text); }
.schedule-card .btn { margin-top: auto; align-self: flex-start; }
.schedule-foot { margin-top: 20px; padding-top: 20px; display: flex; }

/* ---------- Подвал ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 32px; font-size: 16px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; }
.footer-links { display: flex; gap: 8px; }
.footer-links a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--line-strong); color: var(--text-2);
  transition: background-color 160ms var(--ease);
}
.footer-links a:hover { background: var(--raised); }
.footer-note { margin-top: 16px; color: var(--muted); font-size: 16px; }

/* ---------- Нижняя панель на телефоне ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; gap: 8px;
  padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line);
  transition: transform 220ms var(--ease), opacity 220ms var(--ease);
}
.sticky-cta .btn-primary { flex: 1; min-width: 0; padding: 0 12px; }
.sticky-cta.is-hidden { transform: translateY(100%); opacity: 0; pointer-events: none; }
@media (max-width: 959px) { body { padding-bottom: 76px; } }
@media (min-width: 960px) { .sticky-cta { display: none; } }

/* ---------- Просмотр фото ---------- */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(17, 16, 18, 0.96); color: #FFFFFF;
}
.lightbox::backdrop { background: rgba(17, 16, 18, 0.6); }
.lightbox[open] { display: grid; place-items: center; animation: fade 200ms var(--ease) both; }
.lb-figure { display: grid; justify-items: center; gap: 12px; padding: 64px 16px 72px; max-width: 100%; }
.lb-img { max-width: min(100%, 1280px); max-height: calc(100dvh - 160px); width: auto; height: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); touch-action: pan-y; }
.lb-caption { color: rgba(255, 255, 255, 0.86); font-size: 16px; text-align: center; }
.lb-count { position: absolute; top: 20px; left: 20px; font-family: var(--mono); font-size: 14px; color: rgba(255, 255, 255, 0.8); }
.lb-btn {
  position: absolute; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08); color: #FFFFFF; cursor: pointer;
  transition: background-color 160ms var(--ease);
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.18); }
.lb-close { top: 12px; right: 12px; }
.lb-prev, .lb-next { bottom: 16px; }
.lb-prev { left: calc(50% - 56px); }
.lb-next { right: calc(50% - 56px); }
@media (min-width: 960px) {
  .lb-prev, .lb-next { bottom: auto; top: calc(50% - 24px); }
  .lb-prev { left: 24px; }
  .lb-next { right: 24px; }
  .lb-close { top: 20px; right: 24px; }
}

/* ---------- Появление при прокрутке ---------- */
html.motion .reveal { opacity: 0; transform: translateY(10px); transition: opacity 450ms var(--ease), transform 450ms var(--ease); transition-delay: calc(var(--i, 0) * 50ms); }
html.motion .reveal.in { opacity: 1; transform: none; }

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