/* Express-Мебель — мебельный цех, Астана */
: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;
  --text-3: #696964;
  --accent: #A3520F;          /* фирменный оранжевый, затемнённый для текста на светлом */
  --brand-orange: #F57C20;
  --brand-teal: #1A9BA8;
  --positive: #2F7D4A;
  --dark: #1B191C;
  --dark-raised: #2A282B;
  --dark-line: rgba(243, 243, 242, 0.14);
  --on-dark: #F3F3F2;
  --on-dark-2: #A7A49C;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --pad: 20px;
  --header-h: 64px;
  --section: 64px;
}
@media (min-width: 768px) {
  :root { --pad: 32px; --section: 96px; }
}

*, *::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: 400 17px/1.6 var(--font);
  font-feature-settings: "ss01" on;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { color: var(--text); font-weight: 500; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--mono); font-weight: 400; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.num { font-variant-numeric: tabular-nums; }
.icon { display: block; flex-shrink: 0; }
.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;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: calc(1200px + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }

.sec-head { display: grid; gap: 12px; margin-bottom: 32px; }
.sec-head h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; max-width: 22ch; }
.sec-head p { max-width: 40rem; color: var(--text-2); }
.sec-head .legend { font-size: 14px; color: var(--text-3); }
@media (min-width: 960px) {
  .sec-head { grid-template-columns: 1fr auto; align-items: end; column-gap: 48px; margin-bottom: 40px; }
  .sec-head > :not(h2) { grid-column: 1; }
  .sec-head .sec-link { grid-column: 2; grid-row: 1; }
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
  font: 500 16px/1.2 var(--font); text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--text); color: #FFFFFF; }
.btn-primary:hover { background: #38353A; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--raised); }
.btn-light { background: var(--on-dark); color: var(--dark); }
.btn-light:hover { background: #FFFFFF; }
.btn-light:focus-visible { outline-color: var(--brand-orange); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-icon { width: 48px; padding: 0; }

.text-link {
  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 0.15s var(--ease);
}
.text-link:hover { color: var(--accent); }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.header.is-scrolled { background: var(--surface); border-bottom-color: var(--line); }
.header-in { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.logo-mark { width: 32px; height: 32px; flex-shrink: 0; }
.logo-text { display: grid; line-height: 1.15; }
.logo-name { font-size: 17px; font-weight: 600; color: var(--text); }
.logo-sub { font-size: 14px; color: var(--text-3); white-space: nowrap; }
.nav { display: none; gap: 4px; margin-left: 16px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  font-size: 15px; color: var(--text-2); text-decoration: none; border-radius: 8px; white-space: nowrap;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.nav a:hover { color: var(--text); background: var(--raised); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header-phone {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px;
  color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap;
}
.header-phone .icon { color: var(--text-3); }
.header-cta { display: none; white-space: nowrap; }
.lang { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 10px; padding: 1px; background: var(--surface); }
.lang button {
  min-width: 44px; min-height: 42px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent;
  font-size: 14px; font-weight: 500; color: var(--text-2); cursor: pointer;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: var(--text); color: #FFFFFF; }
.header-right .lang { display: none; }
.menu-btn {
  display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px;
  border: 0; background: transparent; border-radius: 10px; cursor: pointer; color: var(--text);
}
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.mobile-menu {
  position: fixed; left: 0; right: 0; top: var(--header-h); z-index: 49;
  background: var(--surface); border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  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: 52px; border-bottom: 1px solid var(--line);
  color: var(--text); text-decoration: none; font-size: 18px;
}
.mobile-menu .menu-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; }
.mobile-menu .header-phone { display: inline-flex; }

@media (min-width: 1100px) {
  :root { --header-h: 72px; }
  .nav { display: flex; }
  .header-right .lang { display: inline-flex; }
  .header-cta { display: inline-flex; }
  .menu-btn, .mobile-menu { display: none !important; }
}
@media (min-width: 1280px) {
  .header-phone { display: inline-flex; }
}

/* ---------- Первый экран ---------- */
.hero {
  position: relative;
  max-width: calc(1200px + var(--pad) * 2);
  margin-inline: auto;
  padding: 24px var(--pad) 40px;
}
.hero-text { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(36px, 4.8vw, 60px); line-height: 1.04;
  max-width: 14ch;
}
.hero-lead { margin-top: 20px; font-size: 18px; line-height: 1.55; color: var(--text-2); max-width: 34rem; }
.hero-actions { display: grid; gap: 8px; margin-top: 28px; }
.status {
  display: flex; align-items: center; gap: 10px; margin-top: 16px;
  font-size: 15px; color: var(--text-2);
}
.status[hidden] { display: none; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex-shrink: 0; }
.status[data-state="open"] .status-dot { background: var(--positive); }
.hero-media {
  margin-top: 28px; border-radius: 12px; overflow: hidden; background: var(--raised);
  aspect-ratio: 4 / 5;
}
.hero-media > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }

@media (min-width: 480px) {
  .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
}
@media (min-width: 960px) {
  .hero {
    display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
    column-gap: 64px; max-width: calc(1200px + var(--pad) * 2);
    padding-top: 40px; padding-bottom: 56px;
  }
  .hero h1 { letter-spacing: -0.03em; }
  .hero-lead { font-size: 19px; }
  .hero-actions { margin-top: 36px; }
  .hero-media {
    position: relative; inset: auto; margin-top: 0;
    aspect-ratio: 4 / 5; max-height: calc(100svh - var(--header-h) - 96px); min-height: 420px;
  }
}

/* Появление первого экрана один раз при загрузке */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hero-text, .hero-media { animation: rise 0.5s var(--ease) both; }
.hero-media { animation-delay: 0.06s; }

/* ---------- Строка фактов ---------- */
.facts-wrap { padding-bottom: 0; }
.facts {
  display: grid; grid-template-columns: 1fr;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.fact { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; }
.fact + .fact { border-top: 1px solid var(--line); }
.ibox {
  display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 10px; background: var(--raised); color: var(--text-2);
}
.fact-t { color: var(--text); font-weight: 500; font-size: 17px; line-height: 1.35; padding-top: 2px; }
.fact-d { font-size: 15px; color: var(--text-3); line-height: 1.45; margin-top: 4px; }
@media (min-width: 640px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact { padding: 24px 24px 24px 0; }
  .fact + .fact { border-top: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .fact:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--line); }
}
@media (min-width: 1100px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
  .fact:nth-child(n+3) { border-top: 0; }
  .fact:nth-child(n+2) { padding-left: 24px; border-left: 1px solid var(--line); }
}

/* ---------- Что делаем ---------- */
.types { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.type {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
}
.type img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--raised); }
.type-body { padding: 16px; }
.type h3 { font-size: 16px; line-height: 1.3; }
.type p { margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--text-3); }
.make-more {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; color: var(--text-2);
}
.make-more .icon { color: var(--text-3); margin-top: 3px; }
@media (min-width: 768px) {
  .types { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .type-body { padding: 18px 20px 20px; }
  .type h3 { font-size: 18px; }
  .type p { font-size: 15px; }
}

/* ---------- Работы и цены ---------- */
.works { display: grid; gap: 16px; }
.work {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  display: grid; grid-template-columns: 40% 1fr;
}
.work img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--raised); }
.work-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.work h3 { font-size: 17px; line-height: 1.3; }
.work-mat { font-size: 15px; color: var(--text-2); line-height: 1.45; }
.dims { font-size: 14px; color: var(--text-2); margin-top: 4px; }
.work-price { margin-top: auto; padding-top: 12px; display: grid; gap: 2px; }
.price-label { font-size: 14px; color: var(--text-3); }
.price { font-size: 22px; font-weight: 500; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1.2; white-space: nowrap; }
.price-note { font-size: 14px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.work-line {
  margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px; display: grid; gap: 12px;
}
.work-line h3 { font-size: 17px; }
.work-line .work-mat { color: var(--text-3); }
.work-line .work-price { margin-top: 0; padding-top: 0; }
@media (min-width: 960px) {
  .works { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .work { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .work img { height: auto; }
  .work-body { padding: 20px 24px 24px; }
  .work h3 { font-size: 19px; }
  .price { font-size: 24px; }
  .work-line {
    grid-template-columns: 1.2fr 1fr auto; align-items: center; gap: 24px; padding: 20px 24px;
  }
  .work-line .work-price { justify-items: end; text-align: right; }
}

/* ---------- Из чего собираем ---------- */
.quality { display: grid; gap: 32px; }
.quality figure { margin: 0; }
.quality figure img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; background: var(--raised); }
.quality figcaption { margin-top: 12px; font-size: 15px; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.quality figcaption .mono { font-size: 14px; color: var(--text-2); }
.q-list { display: grid; margin-top: 28px; border-top: 1px solid var(--line); }
.q-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.q-item h3 { font-size: 18px; line-height: 1.35; padding-top: 2px; }
.q-item p { font-size: 16px; color: var(--text-2); margin-top: 4px; }
@media (min-width: 960px) {
  .quality { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .quality .sec-head { grid-template-columns: 1fr; margin-bottom: 0; }
}

/* ---------- Как заказать ---------- */
.steps { display: grid; counter-reset: step; }
.step { display: grid; align-content: start; grid-template-columns: 48px 1fr; gap: 4px 12px; padding: 20px 0; border-top: 1px solid var(--line); }
.step-n { grid-row: span 2; font-family: var(--mono); font-size: 15px; color: var(--accent); padding-top: 2px; }
.step h3 { font-size: 18px; line-height: 1.35; }
.step p { font-size: 16px; color: var(--text-2); }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .step { grid-template-columns: 1fr; gap: 8px; padding-top: 20px; }
  .step-n { grid-row: auto; }
}

/* ---------- Расчёт ---------- */
.calc { background: var(--dark); color: var(--on-dark-2); }
.calc .section-in { padding-block: var(--section); }
.calc h2 { color: var(--on-dark); font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; }
.calc-lead { margin-top: 12px; max-width: 30rem; color: var(--on-dark-2); }
.calc-call { margin-top: 24px; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--on-dark); text-decoration: none; font-weight: 500; }
.calc-call .icon { color: var(--on-dark-2); }
.calc-call:hover { color: #FFFFFF; }
.calc-call:focus-visible { outline-color: var(--brand-orange); }
.calc-grid { display: grid; gap: 32px; }
.calc fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.calc fieldset + fieldset { margin-top: 28px; }
.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; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--dark-line); border-radius: 8px; color: var(--on-dark); font-size: 15px;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.opt:hover span { border-color: rgba(243, 243, 242, 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(--brand-orange); outline-offset: 2px; }
.calc-out { margin-top: 32px; display: grid; gap: 16px; }
.msg {
  background: var(--dark-raised); border: 1px solid var(--dark-line); border-radius: 12px; padding: 16px 20px;
}
.msg-label { font-size: 14px; color: var(--on-dark-2); }
.msg-text { margin-top: 4px; color: var(--on-dark); font-size: 16px; line-height: 1.5; }
.calc .btn-light { justify-self: start; }
@media (min-width: 960px) {
  .calc-grid { grid-template-columns: 4fr 7fr; gap: 64px; }
}

/* ---------- Отзывы ---------- */
.reviews { display: grid; gap: 16px; }
.review {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px;
  display: flex; flex-direction: column; gap: 20px; margin: 0;
}
.review blockquote { margin: 0; color: var(--text); font-size: 16px; line-height: 1.6; }
.review figcaption { margin-top: auto; display: grid; gap: 2px; }
.review-author { font-size: 15px; font-weight: 500; color: var(--text); }
.review-date { font-size: 14px; color: var(--text-3); }
@media (min-width: 700px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .reviews { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

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

/* ---------- Вопросы ---------- */
.faq-grid { display: grid; gap: 24px; }
.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: 64px; padding: 16px 0; cursor: pointer; list-style: none;
  color: var(--text); font-size: 18px; font-weight: 500; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--text-3); transition: transform 0.18s var(--ease); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .answer { padding: 0 40px 20px 0; color: var(--text-2); max-width: 46rem; }
@media (min-width: 960px) {
  .faq-grid { grid-template-columns: 4fr 7fr; gap: 64px; align-items: start; }
  .faq-grid .sec-head { grid-template-columns: 1fr; }
}

/* ---------- Контакты ---------- */
.contacts { display: grid; gap: 32px; }
.c-list { display: grid; border-top: 1px solid var(--line); }
.c-row { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.c-label { font-size: 14px; color: var(--text-3); }
.c-value { color: var(--text); font-size: 17px; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
a.c-value:hover { color: var(--accent); }
.c-sub { font-size: 15px; color: var(--text-3); margin-top: 2px; }
.hours { display: grid; gap: 2px; margin-top: 4px; font-size: 15px; }
.hours div { display: grid; grid-template-columns: 40px 1fr; gap: 12px; color: var(--text-2); }
.hours .mono { font-size: 14px; }
.hours .is-today { color: var(--text); font-weight: 500; }
.hours .is-today .mono { color: var(--text); }
.c-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.map { display: grid; gap: 12px; }
.map iframe {
  width: 100%; height: 360px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); display: block;
}
.map .btn { justify-self: start; }
@media (min-width: 960px) {
  .contacts { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .map iframe { height: 520px; }
}

/* ---------- Подвал ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 32px; font-size: 15px; color: var(--text-3); }
.footer-in { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; }
.footer nav { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.footer a { color: var(--text-2); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.footer a:hover { color: var(--text); }

/* ---------- Панель внизу на телефоне ---------- */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line);
}
.mbar .btn-primary { flex: 1; min-width: 0; }
body { padding-bottom: 76px; }
@media (max-width: 379px) {
  .mbar .btn-primary { padding: 0 12px; gap: 8px; font-size: 15px; }
}
@media (min-width: 960px) {
  .mbar { display: none; }
  body { padding-bottom: 0; }
}

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

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