/* ============================================================
   Таза — стили. Цвета и шрифты — переменные в начале.
   Размеры для компьютера по макету 1440, для телефона — по макету 390.
   ============================================================ */
:root {
  --ink: #0E1E33;          /* основной текст, тёмные кнопки */
  --muted: #4F5F74;        /* второстепенный текст */
  --faint: #A3AFBD;        /* неактивное */
  --accent: #1D5FE0;       /* синий: вкладка, тумблер, выбранная дата */
  --accent-soft: #E3ECFC;  /* фон значков в меню */
  --white: #FFFFFF;
  --line: rgba(14, 30, 51, .08);
  --fill: rgba(14, 30, 51, .07);       /* фон сегментов и степпера */
  --group: rgba(255, 255, 255, .72);   /* белые группы в листах */
  --glass: rgba(255, 255, 255, .75);
  --glass-edge: rgba(255, 255, 255, .85);
  --shadow: 0 24px 60px rgba(22, 52, 90, .14);
  --error: #E5484D;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --logo: "Unbounded", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); min-height: 100vh;
  background: #EAF1FC url("../images/bg.webp") center top / cover fixed no-repeat;
  -webkit-tap-highlight-color: transparent;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
a { color: inherit; text-decoration: none; touch-action: manipulation; }
[hidden]:not(.stage__note) { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 64px; }
.ico { display: inline-flex; width: 20px; height: 20px; flex-shrink: 0; }
.ico svg { width: 100%; height: 100%; }
.ico svg path { fill: currentColor; }
.br-phone { display: none; }

.glass {
  background: var(--glass); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: var(--shadow), inset 0 1px 1px rgba(255, 255, 255, .95);
}

/* ---------- шапка ---------- */
.header { position: sticky; top: 0; z-index: 30; padding: 16px 40px 0; }
.header__bar {
  max-width: 1360px; margin: 0 auto; height: 68px; border-radius: 34px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 14px 0 26px;
  background: rgba(255, 255, 255, .65); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 12px 36px rgba(22, 52, 90, .14), inset 0 1px 1px rgba(255, 255, 255, .95);
}
.header__left { display: flex; align-items: center; gap: 48px; }
.logo { display: flex; align-items: baseline; gap: 8px; }
.logo__mark {                       /* как в макете: «т» голубая, дальше тёмный (в выгрузке Pencil угол записан как 0deg) */
  font-family: var(--logo); font-weight: 600; font-size: 22px; letter-spacing: -0.6px;
  line-height: normal; white-space: nowrap;
  background-image: linear-gradient(270deg, #0E1E33 0%, #0E1E33 45%, #2F80F5 100%); background-repeat: no-repeat; background-size: 100% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.logo__master { font-size: 14px; color: var(--muted); }
.logo__master::before { content: "· "; }
.nav { display: flex; gap: 30px; }
.nav a { font-size: 15px; font-weight: 500; color: var(--muted); transition: color 160ms ease; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.header__right { display: flex; align-items: center; gap: 8px; }
.pill {
  height: 44px; padding: 0 18px; border-radius: 22px; display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 500; background: rgba(255, 255, 255, .8); border: 1px solid var(--glass-edge);
  box-shadow: 0 3px 10px rgba(14, 30, 51, .08); transition: transform 160ms var(--ease-out);
}
.pill:active { transform: scale(.97); }
.badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center;
}
.burger { display: none; width: 44px; height: 44px; padding: 0; justify-content: center; }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--ink); }
  .pill:hover { background: #fff; }
}

/* ---------- заголовки ---------- */
.page-title { font-size: 64px; font-weight: 700; letter-spacing: -.035em; line-height: 1.08; margin: 28px 0 0; }
.page-lead { font-size: 18px; color: var(--muted); margin: 10px 0 0; }
main { padding-bottom: 64px; }

/* ---------- кнопки ---------- */
.btn {
  height: 60px; padding: 0 32px; border: 0; border-radius: 30px; background: var(--ink); color: #fff;
  font-size: 17px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  white-space: nowrap; transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.btn:active { transform: scale(.97); }
.btn--wide { width: 100%; }
.btn--soft { background: rgba(14, 30, 51, .07); color: var(--ink); }
.btn.is-done { background: var(--accent); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: #1b3150; } .btn--soft:hover { background: rgba(14, 30, 51, .11); } }

/* ---------- элементы управления ---------- */
.segment { display: flex; background: var(--fill); border-radius: 23px; padding: 3px; gap: 2px; }
.segment button {
  flex: 1 1 0; min-width: 0; height: 40px; border: 0; border-radius: 20px; background: transparent;
  font-size: 15px; font-weight: 500; color: var(--muted); white-space: nowrap;
  transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.segment button[aria-pressed="true"] {
  background: rgba(255, 255, 255, .95); color: var(--ink); font-weight: 600;
  box-shadow: 0 3px 10px rgba(14, 30, 51, .15), inset 0 1px 1px #fff;
}
.switch { position: relative; width: 56px; height: 28px; flex-shrink: 0; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 14px; background: rgba(14, 30, 51, .13); transition: background-color 220ms ease; }
.switch span::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 34px; height: 24px; border-radius: 12px; background: #fff;
  box-shadow: 0 2px 6px rgba(14, 30, 51, .2); transition: transform 260ms var(--ease-out);
}
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.stepper { display: flex; align-items: center; height: 36px; border-radius: 18px; background: var(--fill); }
.stepper button { width: 48px; height: 100%; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.stepper button:disabled { color: var(--faint); cursor: default; }
.stepper i { width: 1px; height: 18px; background: rgba(14, 30, 51, .15); }
.stepper .ico { width: 18px; height: 18px; }

/* ---------- главная: 3D ---------- */
.panel { display: grid; grid-template-columns: minmax(0, 1fr) 455px; gap: 20px; margin-top: 24px; align-items: start; }
.stage {
  position: relative; border-radius: 44px; padding: 14px; display: flex; flex-direction: column; gap: 14px;
  background: #CFE0F8 url("../images/card-3d.webp") center / 100% 100% no-repeat;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, .8); height: 682px;
}
.stage__view { position: relative; flex: 1 1 auto; min-height: 0; border-radius: 32px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .6); }
.stage model-viewer { width: 100%; height: 100%; background: transparent; }
.stage__note {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-align: center; color: var(--muted); font-size: 18px; font-weight: 500; padding: 24px; pointer-events: none; transition: opacity 260ms ease;
}
.stage__note small { font-size: 15px; font-weight: 400; }
.stage__note[hidden] { display: flex; opacity: 0; }
.stage__photo {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  text-align: center; cursor: pointer; padding: 24px; color: var(--muted); font-size: 15px;
}
.stage__photo b { color: var(--ink); font-size: 17px; font-weight: 600; margin-top: 10px; }
.stage__photo-ico {
  width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .85); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(22, 52, 90, .12);
}
.stage__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.stage__photo > *:not(img):not(input) { position: relative; }
.stage__spin {
  position: absolute; top: 12px; right: 12px; width: 47px; height: 47px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; z-index: 2; border: 1px solid var(--glass-edge);
  background: rgba(255, 255, 255, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}
.stage__spin[aria-pressed="true"] { background: rgba(255, 255, 255, .95); color: var(--accent); }
.stage__spin:active { transform: scale(.94); }
.tabs {
  display: flex; gap: 2px; padding: 5px; border-radius: 30px; overflow-x: auto; scrollbar-width: none;
  background: rgba(255, 255, 255, .55); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 8px 12px rgba(22, 52, 90, .1), inset 0 1px 1px #fff;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: 1 0 auto; height: 47px; padding: 0 16px; border: 0; border-radius: 24px; background: transparent;
  font-size: 16px; font-weight: 500; white-space: nowrap; transition: background-color 220ms ease, color 220ms ease;
}
.tabs button[aria-selected="true"] { background: var(--accent); color: #fff; font-weight: 600; }

/* ---------- главная: расчёт ---------- */
.calc { border-radius: 40px; padding: 28px; display: flex; flex-direction: column; gap: 18px; min-height: 682px; }
.calc__title { font-size: 32px; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.params { background: rgba(255, 255, 255, .55); border-radius: 20px; padding: 0 18px; }
.param { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; font-size: 16px; }
.toggles .param { border-bottom: 1px solid var(--line); cursor: pointer; }
.param__qty { display: flex; align-items: center; gap: 16px; font-weight: 600; }
.field-plain { width: 100%; height: 54px; padding: 0 18px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, .7); font-size: 16px; }
.field-plain:focus { outline: none; border-color: var(--accent); }
.calc__bottom { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }
.calc__bottom .btn { width: 100%; }
.calc__label { font-size: 15px; color: var(--muted); }
.calc__price { font-size: 68px; font-weight: 700; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.calc__price--photo { font-size: 52px; }

/* ---------- листы: заказ, меню, дата, время ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; visibility: hidden; transition: visibility 0s 380ms; }
.sheet.is-open { visibility: visible; transition: none; }
#picker { z-index: 60; }
.sheet__back { position: absolute; inset: 0; background: rgba(14, 30, 51, .22); opacity: 0; transition: opacity 280ms ease;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet.is-open .sheet__back { opacity: 1; }
.sheet__box {
  position: absolute; top: 12px; right: 12px; bottom: 12px; width: min(460px, calc(100% - 24px));
  background: rgba(244, 248, 254, .92); border: 1px solid var(--glass-edge); border-radius: 40px; box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  display: flex; flex-direction: column; transform: translateX(calc(100% + 24px)); transition: transform 380ms var(--ease-out);
}
.sheet.is-open .sheet__box { transform: none; }
.sheet__grab { width: 36px; height: 5px; border-radius: 3px; background: rgba(14, 30, 51, .2); margin: 8px auto 0; flex-shrink: 0; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px 12px 18px; }
.sheet__head h2 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.sheet__close { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--fill); display: inline-flex; align-items: center; justify-content: center; }
.sheet__close .ico { width: 16px; height: 16px; }
.sheet__done { border: 0; background: none; color: var(--accent); font-size: 17px; font-weight: 600; padding: 6px 2px; }
.sheet__body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 0 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.sheet__body > div { display: flex; flex-direction: column; gap: 12px; }
.group { background: var(--group); border-radius: 22px; overflow: hidden; }

/* заказ */
.o-row { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-bottom: 1px solid var(--line); min-height: 53px; }
.o-row:last-child { border-bottom: 0; }
.o-name { flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 500; line-height: 1.3; }
.o-name small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; }
.o-price { font-size: 15px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.o-del { width: 28px; height: 28px; border: 0; background: none; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.o-del .ico { width: 16px; height: 16px; }
.order-total { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px; font-size: 15px; }
.order-total b { font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.order-note { font-size: 13px; color: var(--muted); margin: -4px 4px 0; line-height: 1.45; }
.empty b { display: block; font-size: 16px; margin: 4px 2px 0; }
.empty p { color: var(--muted); font-size: 15px; line-height: 1.45; margin: 6px 2px 14px; }

/* форма списком: подпись слева, поле справа */
.f-row {
  display: grid; grid-template-columns: 94px minmax(0, 1fr) auto auto; align-items: center; gap: 0 8px; width: 100%;
  min-height: 45px; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font-size: 15px;
}
.f-row:last-child { border-bottom: 0; }
.f-label { color: var(--ink); }
.f-field { min-width: 0; display: flex; flex-direction: column; }
.f-field input { width: 100%; border: 0; background: none; padding: 0; font-size: 16px; color: var(--ink); outline: none; }
.f-field input::placeholder, .f-value.is-empty { color: #8592A3; }
.f-value { font-size: 15px; }
.f-chev, .f-alert { display: inline-flex; color: var(--muted); }
.f-chev .ico, .f-alert .ico { width: 18px; height: 18px; }
.f-alert, .f-err { display: none; }
.f-row.is-error .f-label { color: var(--error); }
.f-row.is-error .f-alert { display: inline-flex; color: var(--error); }
.f-row.is-error .f-err { display: block; color: var(--error); font-style: normal; font-size: 12.5px; margin-top: 4px; line-height: 1.3; }
.f-row.is-error { animation: shake 320ms var(--ease-out); }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* календарь и время */
.cal { padding: 14px 14px 10px; }
.cal__head { display: flex; justify-content: space-between; align-items: center; margin: 0 4px 10px; font-size: 17px; }
.cal__head span { display: flex; gap: 8px; }
.cal__head button { width: 32px; height: 32px; border: 0; background: none; color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.cal__head button:disabled { color: var(--faint); }
.cal__week, .cal__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; }
.cal__week span { font-size: 12.5px; color: var(--muted); padding-bottom: 6px; }
.cal__days button { height: 44px; border: 0; background: none; font-size: 16px; border-radius: 50%; width: 44px; justify-self: center; transition: background-color 160ms ease; }
.cal__days .is-past { color: var(--faint); cursor: default; }
.cal__days .is-today { color: var(--accent); font-weight: 600; }
.cal__days .is-on { background: var(--accent); color: #fff; font-weight: 700; }
.t-row { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 50px; padding: 0 16px; border: 0; border-bottom: 1px solid var(--line); background: none; font-size: 15.5px; text-align: left; }
.t-row:last-child { border-bottom: 0; }
.t-row.is-on { color: var(--accent); font-weight: 600; }
.t-row:disabled { color: var(--faint); cursor: default; }
.t-row small { color: var(--muted); font-size: 13px; }

/* меню */
.menu-row { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 12px; border-bottom: 1px solid var(--line); }
.menu-row:last-child { border-bottom: 0; }
.menu-row__ico { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.menu-row__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.menu-row__text b { font-size: 16px; font-weight: 600; }
.menu-row__text small { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.menu-row > .ico { color: var(--faint); width: 18px; height: 18px; }
.menu-row[aria-current="page"] b { color: var(--accent); }

/* после отправки */
.sent { text-align: center; padding: 4px 2px; }
.sent b { font-size: 20px; }
.sent p { color: var(--muted); margin: 6px 0 4px; line-height: 1.5; font-size: 15px; }
.sent pre { text-align: left; white-space: pre-wrap; font: 14px/1.5 var(--font); background: var(--group); border-radius: 18px; padding: 14px 16px; margin: 0; max-height: 260px; overflow: auto; }

/* ---------- страница цен ---------- */
.two { display: grid; grid-template-columns: minmax(0, 1fr) 438px; gap: 20px; margin-top: 28px; align-items: start; }
.card { border-radius: 40px; padding: 36px; }
.card--blue { background: #CFE0F8 url("../images/card-prices.webp") center / 100% 100% no-repeat; box-shadow: inset 0 1px 2px rgba(255,255,255,.8); }
.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 44px; }
.prices h2, .card h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.02em; }
.row { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.row:last-child { border-bottom: 0; }
.row b { font-weight: 600; white-space: nowrap; }
.extras { background: rgba(255,255,255,.6); border-radius: 18px; padding: 0 18px; margin: 14px 0 28px; }
.big-sum { font-size: 64px; font-weight: 700; letter-spacing: -.04em; line-height: 1.1; margin: 4px 0 6px; }
.muted { color: var(--muted); line-height: 1.5; }
.card .btn { margin-top: 28px; }

/* ---------- как это работает ---------- */
.how { grid-template-columns: minmax(0, 610px) minmax(0, 1fr); }
.steps { background: #CFE0F8 url("../images/card-steps.webp") center / 100% 100% no-repeat; display: flex; flex-direction: column; min-height: 680px; }
.step { display: flex; gap: 20px; margin-bottom: 36px; }
.step__n {
  width: 60px; height: 60px; flex-shrink: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--accent);
  font-size: 24px; font-weight: 600; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(22,52,90,.14);
}
.step h2 { margin: 6px 0 6px; font-size: 26px; letter-spacing: -.02em; }
.step p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.5; }
.steps .btn { margin-top: auto; align-self: flex-start; }
.faq h2 { font-size: 30px; margin-bottom: 18px; }
.faq dl { margin: 0; }
.faq dl > div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.faq dl > div:last-child { border-bottom: 0; }
.faq dt { font-weight: 600; font-size: 17px; margin-bottom: 6px; }
.faq dd { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }

/* ---------- контакты ---------- */
.cont { grid-template-columns: minmax(0, 770px) minmax(0, 1fr); }
.contact { background: #CFE0F8 url("../images/card-contact.webp") center / 100% 100% no-repeat; display: flex; flex-direction: column; min-height: 640px; padding: 48px 44px; }
.contact__phone { font-size: clamp(40px, 5.2vw, 76px); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; white-space: nowrap; }
.contact__lead { font-size: 18px; margin: 12px 0 0; }
.contact .btn { margin-top: auto; align-self: flex-start; }
.info > div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.info > div:first-child { padding-top: 6px; }
.info > div:last-child { border-bottom: 0; }
.info span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.info b { font-weight: 500; font-size: 18px; }

/* ---------- подвал ---------- */
.footer { padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- появление ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ============================================================
   ПЛАНШЕТ
   ============================================================ */
@media (max-width: 1100px) {
  .wrap { padding: 0 32px; }
  .header { padding: 12px 20px 0; }
  .nav { gap: 20px; }
  .header__left { gap: 28px; }
  .panel { grid-template-columns: minmax(0, 1fr) 400px; }
  .two, .how, .cont { grid-template-columns: minmax(0, 1fr); }
  .steps, .contact { min-height: 0; }
  .steps .btn, .contact .btn { margin-top: 28px; }
}
@media (max-width: 860px) {
  .nav, .header .pill--wa { display: none; }
  .burger { display: inline-flex; }
  .panel { grid-template-columns: minmax(0, 1fr); }
  .stage { height: auto; }
  .stage__view { height: 44vh; min-height: 260px; max-height: 480px; flex: none; }
  .calc { min-height: 0; }
}

/* ============================================================
   ТЕЛЕФОН (макет 390)
   ============================================================ */
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .header { padding: 0; }
  .header__bar { height: 60px; border-radius: 0; padding: 0 16px; background: transparent; border: 0; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none; transition: background-color 200ms ease; }
  .header { position: relative; }   /* как в макете: шапка стоит наверху страницы и уезжает вместе с ней */
  .logo { flex-direction: column; gap: 0; align-items: flex-start; }
  .logo__mark { font-size: 22px; line-height: normal; }   /* как в макете — иначе градиент ложится иначе */
  .logo__master { font-size: 11px; }
  .logo__master::before { content: none; }
  .pill { height: 39px; border-radius: 20px; padding: 0 14px; font-size: 14px; gap: 8px; background: rgba(255,255,255,.6); }
  .pill .ico { width: 18px; height: 18px; }
  .burger { width: 39px; height: 39px; padding: 0; }
  .br-phone { display: inline; }
  .page-title { font-size: 34px; line-height: 1.1; margin-top: 2px; }
  .page-lead { font-size: 15px; margin-top: 6px; }

  /* главная */
  .panel { margin-top: 14px; gap: 12px; }
  .stage { border-radius: 34px; padding: 8px; gap: 8px; }
  .stage__view { border-radius: 28px; height: 270px; min-height: 0; border: 0; }
  .stage__spin { width: 37px; height: 37px; top: 8px; right: 8px; }
  .stage__spin .ico { width: 18px; height: 18px; }
  .stage__note { font-size: 16px; }
  .tabs { border-radius: 23px; padding: 4px; gap: 0; }
  .tabs button { height: 37px; padding: 0 9px; font-size: 12.5px; border-radius: 19px; }
  .calc { border-radius: 34px; padding: 14px; gap: 10px; background: rgba(255,255,255,.78); }
  .calc__title { display: none; }
  .segment { border-radius: 20px; }
  .segment button { height: 34px; font-size: 13px; border-radius: 17px; }
  .params { background: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
  .toggles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .toggles .param { min-height: 54px; padding: 0 10px 0 12px; border: 0; border-radius: 18px; background: rgba(255,255,255,.6); font-size: 13px; font-weight: 500; line-height: 1.2; }
  .toggles .switch { width: 46px; height: 26px; }
  .toggles .switch span::after { width: 28px; height: 22px; border-radius: 11px; }
  .toggles .switch input:checked + span::after { transform: translateX(14px); }
  .param--qty { min-height: 48px; padding: 0 6px 0 14px; border-radius: 18px; background: rgba(255,255,255,.6); font-size: 14px; font-weight: 500; }
  .field-plain { height: 48px; border-radius: 18px; font-size: 16px; }
  .calc__bottom { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; margin-top: 2px; padding-left: 4px; }
  .calc__bottom .btn { width: auto; flex: 0 0 auto; height: 54px; padding: 0 28px; font-size: 15px; border-radius: 27px; }
  .calc__label { font-size: 12px; }
  .calc__price, .calc__price--photo { font-size: 24px; letter-spacing: -.02em; }

  /* листы снизу, плавающей карточкой */
  .sheet__box { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: calc(100% - 60px); border-radius: 40px;
    transform: translateY(calc(100% + 16px)); padding-bottom: env(safe-area-inset-bottom); }
  .sheet__head { padding: 8px 16px 10px; }

  /* цены: группы отдельными карточками */
  .two { margin-top: 16px; gap: 16px; }
  .prices-card { background: none; border: 0; box-shadow: none; padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0; }
  .prices { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .prices h2 { font-size: 20px; margin: 0 0 8px; }
  .price-rows { background: rgba(255,255,255,.7); border: 1px solid var(--glass-edge); border-radius: 22px; padding: 0 16px; box-shadow: 0 8px 20px rgba(22,52,90,.06); }
  .row { padding: 15px 0; font-size: 15px; }
  .card { border-radius: 34px; padding: 22px 18px; }
  .card h2 { font-size: 20px; }
  .extras { margin: 10px 0 18px; padding: 0 14px; }
  .big-sum { font-size: 44px; }
  .card .btn { width: 100%; margin-top: 18px; }

  /* как это работает */
  .steps { padding: 20px 18px; }
  .step { gap: 14px; margin-bottom: 22px; }
  .step__n { width: 44px; height: 44px; font-size: 19px; }
  .step h2 { font-size: 18px; margin: 2px 0 4px; }
  .step p { font-size: 15px; }
  .steps .btn { width: 100%; margin-top: 4px; }
  .faq { background: none; border: 0; box-shadow: none; padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .faq h2 { font-size: 22px; margin: 8px 0 12px; }
  .faq dl { background: rgba(255,255,255,.7); border: 1px solid var(--glass-edge); border-radius: 22px; padding: 0 16px; }
  .faq dl > div { padding: 16px 0; }
  .faq dt { font-size: 15px; }
  .faq dd { font-size: 14.5px; }

  /* контакты */
  .contact { padding: 22px 18px; border-radius: 30px; }
  .contact__phone { font-size: 34px; white-space: normal; }
  .contact__lead { font-size: 15px; margin-top: 6px; }
  .contact .btn { width: 100%; margin-top: 20px; height: 54px; }
  .info { padding: 6px 16px; border-radius: 22px; }
  .info > div { padding: 14px 0; }
  .info b { font-size: 16px; }
  .footer { padding-top: 12px; }
}
@media (max-width: 370px) {
  .tabs button { padding: 0 7px; font-size: 12px; }
  .calc__bottom .btn { padding: 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ============================================================
   Заказ на компьютере (макет «ПК · Состояние …»): окно по центру внизу,
   слева позиции и итог, справа форма; дата и время — окошком у поля
   ============================================================ */
.order-grid { display: flex; flex-direction: column; gap: 12px; }
.o-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pop { position: absolute; z-index: 5; background: rgba(255,255,255,.98); border-radius: 22px; box-shadow: 0 18px 48px rgba(22,52,90,.2); overflow: hidden; }
.pop .group { background: transparent; border-radius: 0; }
.pop--date { width: 340px; }
.pop--time { width: 250px; }
.pop .cal__days button { height: 38px; width: 38px; font-size: 15px; }
@media (min-width: 861px) {
  .sheet__box { top: auto; left: 50%; right: auto; bottom: 16px; width: min(1120px, calc(100% - 48px)); max-height: calc(100% - 110px);
    transform: translate(-50%, calc(100% + 24px)); }
  .sheet.is-open .sheet__box { transform: translate(-50%, 0); }
  #order.is-empty .sheet__box { width: 560px; }
  #menu .sheet__box { width: 460px; }
  .sheet__head { padding: 10px 24px 12px; }
  .sheet__body { padding: 0 22px 22px; }
  .order-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
  .order-total { padding: 6px 16px 0; }
  .sent { max-width: 560px; margin: 0 auto; }
}

/* ---------- «Заявка готова» ---------- */
.sent { display: flex; flex-direction: column; gap: 10px; text-align: left; padding: 0; }
.sent__top { display: flex; gap: 12px; align-items: flex-start; padding: 2px 4px 4px; }
.sent__ico { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; }
.sent__ico .ico { width: 20px; height: 20px; }
.sent__top b { display: block; font-size: 17px; font-weight: 600; margin-top: 2px; }
.sent__top p { margin: 3px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.sent__text { margin: 0; white-space: pre-wrap; font: 14px/1.5 var(--font); color: var(--ink); background: var(--group);
  border-radius: 22px; padding: 14px 16px; max-height: 240px; overflow: auto; }
.sent .btn { height: 54px; font-size: 16px; }
.sent .btn .ico { width: 20px; height: 20px; }
.sent__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sent__row .btn { padding: 0 12px; }
@media (min-width: 861px) {
  #order.is-sent .sheet__box { width: 520px; }
  .sent { max-width: none; margin: 0; }
}

/* 3D: своя полоса загрузки model-viewer не нужна; пока грузится новая модель — старая бледнеет */
model-viewer::part(default-progress-bar) { display: none; }
.stage__view.is-loading model-viewer { opacity: .25; transition: opacity 200ms ease; }
.stage__view model-viewer { transition: opacity 300ms ease; }

/* сверка с макетом ПК: карточки страниц высокие, как карточка 3D на главной, кнопка внизу */
@media (min-width: 1101px) {
  .two > .card { min-height: 682px; }
  .card--blue { display: flex; flex-direction: column; }
  .card--blue .btn { margin-top: auto; }
}
/* кнопка вращения как в макете: стеклянная, тёмный значок */
.stage__spin[aria-pressed="true"] { background: rgba(255, 255, 255, .6); color: var(--ink); }
.stage__spin[aria-pressed="false"] { color: var(--faint); }

/* на телефоне фон не «фиксированный»: fixed заставляет перерисовывать страницу при каждой прокрутке */
@media (max-width: 860px), (hover: none) { body { background-attachment: scroll; } }
