/* Asem Zhihaz — мебель на заказ, Атырау */

:root {
  --bg: #F2EEE4;
  --surface: #F8F5EE;
  --raised: #E8E3D8;
  --line: rgba(30, 27, 23, 0.10);
  --line-strong: rgba(30, 27, 23, 0.18);

  --text: #1E1B17;
  --text-2: #514742;
  --text-3: #675E57;

  --accent: #17140F;
  --accent-hover: #2E2A24;
  --on-accent: #F2EEE4;

  --dark: #24201B;
  --dark-text: #F2EEE4;
  --dark-text-2: #B5AFA5;
  --dark-text-3: #9A948A;
  --dark-line: rgba(242, 238, 228, 0.12);

  --gold: #C9A356;

  --serif: "EB Garamond", "PT Serif", Georgia, serif;
  --sans: "Commissioner", "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "Roboto Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 160ms;

  --pad: 20px;
  --container: 1200px;
  --header-h: 64px;
  --section: 64px;
}

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

*,
*::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);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: 80px;
}

@media (min-width: 960px) {
  body { padding-bottom: 0; }
}

img,
video { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--text);
}

h2 {
  font-size: clamp(34px, 3.2vw + 12px, 46px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h3 {
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.35;
  font-weight: 500;
}

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

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

.skip {
  position: absolute;
  left: 16px; top: -64px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.icon {
  display: block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

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

.section { padding-block: var(--section); }
.section-raised { background: var(--raised); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 32px;
  margin-bottom: 32px;
}
@media (min-width: 960px) {
  .section-head { margin-bottom: 48px; }
}

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

.tag {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.5;
  word-spacing: -0.15em;
  color: var(--text-3);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--text-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  border-bottom: 1px solid transparent;
  transition: color var(--fast) var(--ease);
}
.link-arrow:hover { color: var(--text); }
.link-arrow .icon { width: 16px; height: 16px; }

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

.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-secondary:hover { background: var(--surface); border-color: rgba(30, 27, 23, 0.28); }

.btn-sm { min-height: 44px; padding: 10px 16px; font-size: 15px; }
.btn-lg { min-height: 52px; padding: 14px 24px; }

.btn-icon {
  width: 52px;
  min-height: 52px;
  padding: 0;
  flex-shrink: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
  max-width: calc(var(--container) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
  transition: height 200ms var(--ease);
}
.site-header.is-scrolled .header-inner { height: calc(var(--header-h) - 8px); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
  color: var(--text);
  margin-right: auto;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--accent);
  flex-shrink: 0;
}
.brand-mark svg { display: block; width: 24px; height: 24px; }
.brand-name {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.005em;
}

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

.lang {
  display: none;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px;
}
.lang button {
  min-width: 44px;
  min-height: 40px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-2);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }

.header-cta { display: none; }

.menu-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  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%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 8px var(--pad) 24px;
  max-height: calc(100svh - var(--header-h));
  overflow-y: auto;
}
.mobile-menu nav { display: grid; }
.mobile-menu nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 18px;
}
.mobile-menu .lang { display: inline-flex; margin-top: 20px; }
.mobile-menu .menu-phone {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  min-height: 44px;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  color: var(--text-2);
}

@media (min-width: 960px) {
  .lang { display: inline-flex; }
  .header-cta { display: inline-flex; }
}
@media (min-width: 1200px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
  .mobile-menu { display: none; }
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  gap: 32px;
  max-width: calc(var(--container) + var(--pad) * 2);
  margin-inline: auto;
  padding: 24px var(--pad) 0;
}
.hero-text { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

@media (max-width: 559px) {
  .hero-actions { flex-wrap: nowrap; }
  .hero-actions .btn-primary { flex: 1 1 auto; min-width: 0; padding-inline: 16px; }
  .hero-call { width: 52px; padding: 0; flex-shrink: 0; }
  .hero-call-label {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

.hero-meta {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  font-size: 15px;
  color: var(--text-2);
}
.hero-meta li { display: flex; align-items: flex-start; gap: 10px; }
.hero-meta .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--text-3); }

.open-status:not([hidden])::after { content: " · "; color: var(--text-3); }
.open-status [data-state="open"] { color: var(--text); font-weight: 500; }

.hero-media {
  position: relative;
  margin-inline: calc(var(--pad) * -1);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--raised);
}
.hero-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}

@media (min-width: 560px) and (max-width: 959px) {
  .hero-media { margin-inline: 0; }
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) min(50%, calc((100svh - 160px) * 0.8));
    align-items: center;
    gap: 64px;
    padding: 32px var(--pad) 48px;
    min-height: calc(100svh - var(--header-h));
  }
  .hero-media {
    margin-inline: 0;
    aspect-ratio: 4 / 5;
    height: auto;
  }
  .hero-media::after { display: none; }
  .hero-lead { font-size: 20px; }
}

/* Facts strip */
.facts { padding-top: 40px; }
.facts-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 12px 20px 0;
  min-width: 0;
}
.facts-list li:nth-child(odd) { padding-right: 16px; }
.facts-list li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.facts-list li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.fact-ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--raised);
  color: var(--text-2);
}
.fact-ico .icon { width: 18px; height: 18px; }
.facts-list strong {
  display: block;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.35;
  color: var(--text);
}
.facts-list span.fact-d {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--text-3);
}

@media (max-width: 559px) {
  .facts-list { grid-template-columns: 1fr; }
  .facts-list li,
  .facts-list li:nth-child(odd),
  .facts-list li:nth-child(even) {
    padding: 16px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
    align-items: center;
  }
  .facts-list li:last-child { border-bottom: 0; }
  .facts-list span.fact-d { margin-top: 0; }
}
@media (min-width: 960px) {
  .facts { padding-top: 0; }
  .facts-list { grid-template-columns: repeat(4, 1fr); }
  .facts-list li { padding: 28px 24px; border-bottom: 0 !important; }
  .facts-list li:nth-child(odd),
  .facts-list li:nth-child(even) { padding: 28px 24px; }
  .facts-list li:first-child { padding-left: 0; }
  .facts-list li + li { border-left: 1px solid var(--line); }
}

/* Works */
.works-grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 640px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 24px; }
}
@media (min-width: 960px) {
  .works-grid { grid-template-columns: repeat(3, 1fr); gap: 56px 32px; }
}

.work-photo {
  display: block;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--raised);
  cursor: zoom-in;
}
.work-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work figcaption { padding-top: 16px; }
.work-title {
  display: block;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  transition: color var(--fast) var(--ease);
}
.work .tag { display: block; margin-top: 8px; }
.work-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-top: 12px;
}
.work-price b {
  font-weight: 600;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.work-price span { font-size: 15px; color: var(--text-3); }
.work:hover .work-title { color: var(--text-2); }

/* Services */

.service {
  display: grid;
  gap: 8px;
  padding: 24px 0;
  border-top: 1px solid var(--line-strong);
}
.service:last-child { border-bottom: 1px solid var(--line-strong); }
.service h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
}
.service p { color: var(--text-2); font-size: 16px; line-height: 1.6; }
.service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 15px;
  color: var(--text-3);
}
.service-meta b {
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
@media (min-width: 720px) {
  .service { grid-template-columns: 220px 1fr; gap: 8px 32px; padding: 28px 0; }
  .service-meta { grid-column: 2; }
}
@media (min-width: 1100px) {
  .service { grid-template-columns: 280px minmax(0, 1fr) 300px; gap: 8px 48px; }
  .service p { max-width: 40rem; padding-top: 4px; }
  .service-meta { grid-column: 3; flex-direction: column; text-align: right; gap: 2px; padding-top: 8px; }
  .service-meta b { font-size: 20px; }
}

/* Process (dark) */
.section-dark {
  background: var(--dark);
  color: var(--dark-text);
  padding-block: var(--section);
}
.section-dark h2 { color: var(--dark-text); }
.process-layout { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .process-layout { grid-template-columns: minmax(0, 1fr) 400px; gap: 80px; align-items: start; }
}
.steps { margin-top: 32px; counter-reset: step; }
.steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 4px 16px;
  padding: 24px 0;
  border-top: 1px solid var(--dark-line);
}
.steps li:last-child { border-bottom: 1px solid var(--dark-line); }
.step-num {
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  color: var(--dark-text-3);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}
.steps h3 { color: var(--dark-text); }
.steps p { grid-column: 2; color: var(--dark-text-2); font-size: 16px; }
@media (min-width: 960px) {
  .steps li { grid-template-columns: 64px 1fr; gap: 4px 24px; padding: 28px 0; }
  .steps h3 { font-size: 21px; }
}

.process-video { margin: 0; }
.video-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #1A1713;
}
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.process-video figcaption {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--dark-text-3);
}
@media (min-width: 960px) {
  .process-video { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* Materials */
.brands {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-strong);
}
.brands li {
  padding: 24px 16px 24px 0;
  border-bottom: 1px solid var(--line);
}
.brands li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.brand-word {
  display: block;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.1;
}
.brands .tag { display: block; margin-top: 8px; }
@media (min-width: 960px) {
  .brands { grid-template-columns: repeat(4, 1fr); }
  .brands li,
  .brands li:nth-child(even) { padding: 32px 24px; border-left: 0; }
  .brands li:first-child { padding-left: 0; }
  .brands li:nth-child(n+2) { border-left: 1px solid var(--line); }
  .brand-word { font-size: 42px; }
}

.materials-row {
  display: grid;
  gap: 32px;
  margin-top: 48px;
}
@media (min-width: 960px) {
  .materials-row { grid-template-columns: 7fr 5fr; gap: 56px; margin-top: 64px; align-items: start; }
}
.materials-photo .frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--raised);
}
.materials-photo img { width: 100%; height: 100%; object-fit: cover; }
.materials-photo figcaption { margin-top: 12px; }

.spec h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
}
.spec > p { margin-top: 8px; color: var(--text-2); font-size: 16px; }
.spec-list { margin-top: 20px; }
.spec-item {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.spec-item:last-child { border-bottom: 1px solid var(--line); }
.spec-item dt { font-weight: 500; font-size: 17px; }
.spec-item dd {
  margin: 8px 0 0;
  display: grid;
  gap: 2px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
}
.spec-item dd span { color: var(--text-3); }
.spec-item dd b { font-weight: 400; color: var(--text); }

/* Workshop */
.workshop-layout { display: grid; gap: 32px; }
.workshop-text p { margin-top: 16px; color: var(--text-2); font-size: 17px; }
.workshop-text p:first-of-type { margin-top: 20px; }
.workshop-fact {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
  display: flex;
  gap: 24px;
}
.workshop-fact div { display: grid; align-content: start; flex: 1 1 0; min-width: 0; }
.workshop-fact div:first-child { flex: 0 0 auto; max-width: 9rem; }
.workshop-fact b {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.workshop-fact span { margin-top: 8px; font-size: 15px; color: var(--text-2); }
.workshop-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.workshop-media figure { margin: 0; min-width: 0; }
.workshop-media .frame,
.workshop-media .video-frame {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg);
  position: relative;
}
.workshop-media img { width: 100%; height: 100%; object-fit: cover; }
.workshop-media figcaption { margin-top: 12px; }
@media (min-width: 960px) {
  .workshop-layout { grid-template-columns: 4fr 8fr; gap: 56px; align-items: center; }
  .workshop-media { gap: 32px; }
}

/* Reviews */
.reviews-grid { display: grid; gap: 16px; }
@media (min-width: 720px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (min-width: 1040px) {
  .reviews-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.review {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.review blockquote p {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.4;
  color: var(--text);
}
.review figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.review .author { font-weight: 500; }
.review .date { color: var(--text-3); }

/* Instagram */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
@media (min-width: 960px) {
  .ig-grid { grid-template-columns: repeat(6, 1fr); gap: 12px; }
}
.ig-grid a {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--raised);
  position: relative;
}
.ig-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--fast) var(--ease);
}
.ig-grid a:hover img { opacity: 0.86; }
.ig-profile {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}
.ig-profile .tag { font-weight: 400; }
.ig-profile:hover .ig-handle { text-decoration: underline; text-underline-offset: 3px; }

/* Calc */
.calc-layout { display: grid; gap: 32px; }
@media (min-width: 960px) {
  .calc-layout { grid-template-columns: 7fr 5fr; gap: 64px; align-items: start; }
}
.calc-intro .lead { margin-top: 16px; }
.calc-fallback { margin-top: 28px; }

.calc { margin-top: 32px; display: grid; gap: 28px; }
.calc fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.calc legend {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 0;
  margin-bottom: 12px;
  font-weight: 500;
  font-size: 17px;
}
.calc legend .n {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.opt span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 16px;
  color: var(--text);
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.opt:hover span { border-color: rgba(30, 27, 23, 0.32); }
.opt input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.opt input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }

.field input {
  width: 100%;
  max-width: 420px;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  transition: border-color var(--fast) var(--ease);
}
.field input::placeholder { color: var(--text-3); }
.field input:focus { outline: none; border-color: var(--text); }
.field input:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

.check {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-top: 12px;
  cursor: pointer;
  font-size: 16px;
}
.check input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--accent);
}

.calc-preview {
  padding: 24px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.calc-preview h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: var(--text-2);
}
.calc-preview h3 .icon { color: var(--text-3); }
.msg {
  margin-top: 16px;
  padding: 16px;
  border-radius: 8px;
  background: var(--raised);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
}
.msg p + p { margin-top: 4px; }
.msg .k { color: var(--text-2); }
.calc-note { margin-top: 16px; font-size: 15px; color: var(--text-3); }
.calc-submit { justify-self: start; }
@media (min-width: 960px) {
  .calc-side { position: sticky; top: calc(var(--header-h) + 32px); }
}

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

/* Contacts */
.contacts-layout { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .contacts-layout { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
}
.contact-list { margin-top: 28px; }
.contact-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.contact-row:last-child { border-bottom: 1px solid var(--line); }
.c-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-2);
}
.c-label { display: block; font-size: 14px; color: var(--text-3); line-height: 1.4; }
.c-value {
  display: inline-block;
  margin-top: 2px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
a.c-value:hover { text-decoration: underline; text-underline-offset: 3px; }
.c-sub { display: block; margin-top: 4px; font-size: 15px; color: var(--text-2); }

.week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 12px;
  max-width: 380px;
}
.week li {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 8px 4px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.week li b { font-weight: 500; font-size: 14px; color: var(--text); }
.week li.is-today { background: var(--accent); color: var(--on-accent); }
.week li.is-today b { color: var(--on-accent); }
.week-hours { display: block; margin-top: 8px; font-size: 15px; color: var(--text-2); }

.map-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--raised);
}
.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (min-width: 960px) {
  .map-frame { aspect-ratio: auto; height: 520px; }
}
.map-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

/* Footer */
.site-footer {
  background: var(--dark);
  color: var(--dark-text-2);
  padding-block: 48px;
  font-size: 15px;
}
.footer-inner { display: grid; gap: 24px; }
.site-footer .brand { color: var(--dark-text); margin: 0; }
.site-footer .brand-mark { background: #17140F; border: 1px solid var(--dark-line); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--dark-text);
  text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-links .icon { width: 18px; height: 18px; color: var(--dark-text-3); }
.footer-note { color: var(--dark-text-3); max-width: 44rem; }
@media (min-width: 960px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer-note { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--dark-line); }
}

/* Mobile action bar */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  gap: 8px;
  padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--line);
  transition: transform 240ms var(--ease);
}
.mobile-bar .btn-primary { flex: 1; min-width: 0; }
.mobile-bar.is-hidden { transform: translateY(110%); }
@media (min-width: 960px) {
  .mobile-bar { display: none; }
}

/* Lightbox */
.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 56px 16px 72px;
  border: 0;
  background: rgba(18, 16, 13, 0.94);
  color: var(--dark-text);
}
.lightbox::backdrop { background: rgba(18, 16, 13, 0.6); }
.lightbox[open] { display: grid; place-items: center; }
.lb-figure {
  display: grid;
  justify-items: center;
  gap: 12px;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
}
.lb-figure img {
  max-width: min(100%, 1100px);
  max-height: calc(100dvh - 180px);
  width: auto;
  height: auto;
  object-fit: contain;
}
.lb-caption { font-family: var(--mono); font-size: 14px; color: var(--dark-text-2); text-align: center; }
.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: 1px solid var(--dark-line);
  background: rgba(36, 32, 27, 0.8);
  color: var(--dark-text);
  cursor: pointer;
  transition: background-color var(--fast) var(--ease);
}
.lb-btn:hover { background: #2E2A24; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 16px; bottom: 12px; }
.lb-next { right: 16px; bottom: 12px; }
.lb-prev .icon { transform: scaleX(-1); }
.lb-counter {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 14px;
  color: var(--dark-text-2);
  font-variant-numeric: tabular-nums;
}
@media (min-width: 960px) {
  .lightbox { padding: 48px 96px; }
  .lb-prev { left: 24px; top: 50%; bottom: auto; transform: translateY(-50%); }
  .lb-next { right: 24px; top: 50%; bottom: auto; transform: translateY(-50%); }
  .lb-close { top: 20px; right: 24px; }
}

/* Motion */
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.hero-text { animation: rise 500ms var(--ease) both; }
.hero-media { animation: rise 600ms var(--ease) 80ms both; }

html.js .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 450ms var(--ease), transform 450ms var(--ease);
  transition-delay: var(--d, 0ms);
}
html.js .reveal.is-in { opacity: 1; transform: none; }

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