:root {
  --bg: #fbfaf7;
  --ink: #26332e;
  --muted: #707970;
  --accent: #8e5b3d;
  --soft: #eee7dd;
  --line: #dedfd5;
  --card: #f1f0e9;
  --risk: #a33c31;
  --ok: #3c7259;
  --radius: 18px;
  font-family:
    Manrope,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
a {
  color: var(--accent);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #b68866;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
img {
  max-width: 100%;
  display: block;
}
.top {
  background: rgba(251, 250, 247, 0.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}
.top-in {
  max-width: 1240px;
  margin: auto;
  min-height: 72px;
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 12px 24px;
}
.brand {
  display: inline-flex;
  flex-shrink: 0;
}
.brand img {
  width: 102px;
  height: auto;
  mix-blend-mode: multiply;
}
.team-link {
  text-decoration: none;
  font-size: 13px;
  color: var(--muted);
}
.text-button {
  padding: 5px 0;
  background: none;
  border: 0;
  color: var(--accent);
  font-weight: 650;
}
.wrap {
  max-width: 1180px;
  margin: auto;
  padding: 32px 24px 80px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -1.7px;
  margin-bottom: 16px;
}
h2 {
  font-size: 24px;
  letter-spacing: -0.6px;
}
h3 {
  font-size: 18px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  display: block;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 13px 22px;
  background: var(--ink);
  color: white;
  font-weight: 700;
  gap: 8px;
  min-height: 48px;
}
.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn.sm {
  padding: 8px 12px;
  min-height: 38px;
  font-size: 13px;
}
.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  padding: clamp(12px, 4vw, 54px) 0 22px;
}
.hero h1 {
  font-family: Georgia, serif;
  font-size: clamp(2.45rem, 4.55vw, 4rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.045em;
  margin-bottom: 20px;
}
.hero-copy > p {
  max-width: 34ch;
  color: #4e5b50;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}
.hero-copy .hero-scope {
  margin: 14px 0 0;
  font-size: .875rem;
}
.hero-photo {
  position: relative;
  margin: 0;
}
.hero-photo > img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.18;
  object-fit: cover;
  border-radius: 24px;
}
.hero-result-label,
.hero-before span {
  background: #ffffff;
  color: var(--ink);
  font-size: .875rem;
  line-height: 1.3;
}
.hero-result-label {
  position: absolute;
  top: 14px;
  right: 14px;
  border-radius: 999px;
  padding: 7px 12px;
}
.hero-before {
  position: absolute;
  bottom: 14px;
  left: 14px;
  width: clamp(108px, 30%, 174px);
  overflow: hidden;
  border: 3px solid #ffffff;
  border-radius: 12px;
  background: #ffffff;
}
.hero-before img {
  width: 100%;
  height: auto;
}
.hero-before span {
  display: block;
  padding: 4px 6px;
}
.steps {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 30px;
  font-size: 12px;
  color: var(--muted);
}
.steps span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.steps b {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 11px;
}
.steps .active {
  color: var(--ink);
  font-weight: 700;
}
.steps .active b,
.steps .done b {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.lead {
  max-width: 650px;
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}
.choice {
  background: white;
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 7px;
  text-align: left;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
}
.choice img {
  width: 100%;
  aspect-ratio: 1.48;
  object-fit: cover;
  border-radius: 12px;
}
.choice .copy {
  padding: 12px 9px;
}
.choice strong {
  display: block;
  font-size: 17px;
  margin-bottom: 4px;
}
.choice small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.choice[aria-pressed="true"] {
  border-color: var(--accent);
  box-shadow: none;
}
.choice[aria-pressed="true"] strong:after {
  content: " ✓";
  color: var(--accent);
}
.choice:disabled {
  opacity: 0.63;
}
.styles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.styles .choice img {
  aspect-ratio: 1.7;
}
.room-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  margin-top: 25px;
  align-items: start;
}
.box {
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.box h2 {
  font-size: 20px;
}
.upload-zone {
  border: 1.5px dashed #b3b8ab;
  background: var(--card);
  border-radius: 16px;
  padding: 26px;
  text-align: center;
}
.upload-zone > img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 18px;
}
.upload-zone label {
  cursor: pointer;
}
.photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.photos {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.photos img {
  height: 84px;
  width: 106px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.fields3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 650;
}
.field input,
.field textarea {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg);
  padding: 12px;
  width: 100%;
  font-size: 15px;
  font-weight: 400;
}
.field textarea {
  resize: vertical;
  min-height: 106px;
}
.examples {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.example {
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
}
.example img {
  height: 60px;
  width: 90px;
  object-fit: cover;
}
.notice {
  padding: 13px 16px;
  border-radius: 10px;
  background: var(--soft);
  font-size: 13px;
  margin: 16px 0;
}
.notice.error {
  background: #f6e5e0;
  color: var(--risk);
}
.notice.ok {
  background: #e7efe7;
  color: var(--ok);
}
.dimensions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  font-size: 13px;
  margin: 20px 0;
}
.dimensions b {
  font-size: 16px;
  display: block;
}
.variants {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 26px;
}
.variant {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.variant .cover {
  position: relative;
  background: var(--card);
  aspect-ratio: 1.2;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.cover img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.cover img.placeholder {
  opacity: 0.45;
}
.cover .state {
  position: absolute;
  bottom: 13px;
  left: 13px;
  right: 13px;
  padding: 9px 12px;
  background: rgba(251, 250, 247, 0.95);
  border-radius: 8px;
  font-size: 12px;
}
.variant .in {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.variant h2 {
  font-size: 22px;
  margin: 0;
}
.price {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.8px;
}
.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 650;
  background: var(--soft);
  color: var(--accent);
}
.variant .btn {
  margin-top: auto;
  width: 100%;
}
.variant .note {
  font-size: 12px;
  color: var(--muted);
  min-height: 35px;
}
.progress {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 17px 20px;
  background: var(--card);
  border-radius: 12px;
  margin: 20px 0;
  font-size: 14px;
}
.spinner {
  width: 19px;
  height: 19px;
  display: inline-block;
  border: 2px solid #d0c9bd;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  flex-shrink: 0;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.interior-head {
  display: flex;
  align-items: start;
  gap: 18px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.interior-picture {
  position: relative;
  margin-top: 20px;
}
.interior-picture img {
  width: 100%;
  max-height: 660px;
  object-fit: contain;
  border-radius: 20px;
  background: var(--card);
}
.interior-picture.stale img {
  opacity: 0.62;
}
.stale-label {
  position: absolute;
  top: 18px;
  left: 18px;
  background: #fff5e7;
  padding: 12px 16px;
  border: 1px solid #ead3ad;
  border-radius: 10px;
  max-width: calc(100% - 36px);
  font-size: 13px;
}
.view-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 9px;
}
.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.product {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.product img {
  width: 100%;
  height: 150px;
  object-fit: contain;
}
.product h3 {
  font-size: 15px;
  margin: 3px 0;
}
.product .meta {
  font-size: 12px;
  color: var(--muted);
}
.product .product-price {
  font-weight: 750;
  margin-top: auto;
}
.product button {
  margin-top: 4px;
}
.estimate {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  margin-top: 22px;
}
.estimate-row {
  display: grid;
  grid-template-columns: 65px minmax(0, 1fr) 65px 110px 110px;
  gap: 16px;
  align-items: center;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.estimate-row img {
  width: 65px;
  height: 60px;
  object-fit: contain;
}
.estimate-row small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.estimate-row .number {
  text-align: right;
}
.estimate-row.head {
  background: var(--card);
  font-size: 11px;
  color: var(--muted);
}
.estimate-row a {
  font-size: 12px;
}
.grand-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  background: var(--card);
  gap: 14px;
  flex-wrap: wrap;
}
.grand-total .price {
  font-size: 32px;
}
.sheet-bg {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(26, 36, 29, 0.45);
  display: flex;
  justify-content: flex-end;
}
.sheet {
  background: var(--bg);
  width: min(520px, 100%);
  height: 100%;
  overflow: auto;
  padding: 26px 22px;
  box-shadow: -10px 0 40px #0002;
}
.sheet-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}
.close {
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  width: 36px;
  height: 36px;
  font-size: 22px;
  flex-shrink: 0;
}
.alternative {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 13px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.alternative img {
  width: 86px;
  height: 100px;
  object-fit: contain;
  background: white;
  border-radius: 8px;
}
.alternative strong {
  font-size: 14px;
}
.alternative small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin: 5px 0;
}
.alternative .btn {
  margin-top: 8px;
}
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  max-width: calc(100% - 32px);
  padding: 13px 18px;
  border-radius: 11px;
  background: var(--ink);
  color: white;
  font-size: 14px;
  box-shadow: 0 8px 28px #0003;
}
.busy-cover {
  padding: 25px;
  text-align: center;
}
.bottom-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 28px;
}
.section-title {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 28px;
}
.step-error {
  color: var(--risk);
  font-size: 13px;
  margin: 14px 0;
}
.status-quiet {
  color: var(--muted);
  font-size: 12px;
}
.empty-image {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border-radius: 18px;
  padding: 30px;
  text-align: center;
}
.link-button {
  background: none;
  border: 0;
  color: var(--accent);
  padding: 0;
  font-size: 13px;
  text-decoration: underline;
}
.float-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.resume {
  margin: 20px 0;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
/* ---------- мобильная версия: общие элементы ---------- */
.steps-mini,
.bar-total {
  display: none;
}
.foot {
  max-width: 1180px;
  margin: auto;
  padding: 0 24px 28px;
  text-align: right;
}
.foot .team-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.upload-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
label.btn.disabled {
  opacity: 0.55;
  pointer-events: none;
}
/* класс touch ставит journey.js: сенсорный экран — показываем «Сфотографировать» и «Из галереи» */
html:not(.touch) .camera-only,
html.touch .no-camera {
  display: none !important;
}
.thumb {
  position: relative;
}
.thumb-x {
  /* цель касания 44 px, видимый кружок 30 px */
  position: absolute;
  top: -14px;
  right: -14px;
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  background: radial-gradient(circle, white 0 14px, #c9cbc0 14px 15px, transparent 15.5px);
}
.thumb-main {
  position: absolute;
  left: 5px;
  bottom: 5px;
  padding: 1px 7px;
  border-radius: 99px;
  background: rgba(251, 250, 247, 0.92);
  font-size: 12px;
  font-weight: 650;
}
.zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  position: relative;
  cursor: zoom-in;
}
.zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(38, 51, 46, 0.78);
  color: white;
  font-size: 13px;
  font-weight: 650;
}
.no-scroll {
  overflow: hidden;
}
.viewer {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #141a17;
  display: grid;
  place-items: center;
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: contain;
  cursor: zoom-in;
}
.viewer.zoomed {
  cursor: grab;
}
.viewer img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: center;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.viewer-close {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top));
  right: calc(12px + env(safe-area-inset-right));
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}
.viewer-hint {
  position: absolute;
  bottom: calc(14px + env(safe-area-inset-bottom));
  left: 16px;
  right: 16px;
  margin: 0;
  text-align: center;
  color: #d8dcd6;
  font-size: 13px;
  pointer-events: none;
}
.viewer.zoomed .viewer-hint {
  display: none;
}
.top-in,
.wrap,
.foot {
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}
@media (max-width: 900px) {
  .hero {
    gap: 28px;
  }
  .choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .styles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .variants {
    grid-template-columns: 1fr;
  }
  .variant {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .variant .cover {
    height: 100%;
    aspect-ratio: auto;
    min-height: 260px;
  }
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .room-grid {
    grid-template-columns: 1fr;
  }
  .estimate-row {
    grid-template-columns: 55px minmax(0, 1fr) 45px 80px 90px;
    gap: 10px;
    padding: 15px;
  }
}
@media (max-width: 600px) {
  .top-in {
    gap: 16px;
    padding: 12px 16px;
    min-height: 62px;
  }
  .brand img {
    width: 84px;
  }
  .wrap {
    padding: 24px 16px 60px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 4px 0 12px;
  }
  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
    margin-bottom: 12px;
  }
  .hero-actions {
    margin-top: 16px;
  }
  .hero-photo > img {
    aspect-ratio: 1.38;
    border-radius: 18px;
  }
  .steps {
    gap: 10px;
    font-size: 11px;
    margin-bottom: 23px;
  }
  .steps b {
    width: 20px;
    height: 20px;
  }
  .steps span {
    gap: 4px;
  }
  .fields3 {
    grid-template-columns: 1fr;
  }
  .box {
    padding: 18px;
  }
  .upload-zone {
    padding: 18px;
  }
  .variant {
    display: flex;
  }
  .variant .cover {
    aspect-ratio: 1.35;
    min-height: 0;
  }
  .variants {
    gap: 24px;
  }
  .products {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .product {
    padding: 12px;
  }
  .product img {
    height: 120px;
  }
  .product h3 {
    font-size: 13px;
  }
  .product .btn {
    padding: 9px;
  }
  .grand-total {
    padding: 20px;
  }
  .grand-total .price {
    font-size: 27px;
  }
  .sheet {
    padding: 22px 17px;
  }
  .section-title h2 {
    font-size: 22px;
  }
  .interior-head h1 {
    font-size: 34px;
  }
  .stale-label {
    top: 10px;
    left: 10px;
    font-size: 12px;
    max-width: calc(100% - 20px);
  }
  .top #back {
    font-size: 13px;
  }
  .alternative {
    grid-template-columns: 74px minmax(0, 1fr);
  }
  .alternative img {
    width: 74px;
  }
  .dimensions {
    gap: 10px 17px;
  }
  .empty-image {
    min-height: 250px;
  }
  .float-actions {
    width: 100%;
  }
  .float-actions .btn {
    flex: 1;
  }
}
/* ---------- телефон: удобство одной рукой ---------- */
@media (max-width: 600px) {
  .top-in,
  .wrap,
  .foot {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .top-in {
    min-height: 56px;
    padding-top: 6px;
    padding-bottom: 6px;
  }
  .brand {
    display: inline-block;
    line-height: 44px;
  }
  details > summary {
    padding: 12px 0;
  }
  .top #back {
    margin-left: auto;
    min-height: 44px;
    padding: 0 4px;
    font-size: 15px;
  }
  .wrap {
    padding-top: 16px;
  }
  .foot {
    text-align: center;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
  h1 {
    font-size: 30px;
    letter-spacing: -1px;
    margin-bottom: 10px;
  }
  .eyebrow {
    font-size: 12px;
    margin-bottom: 10px;
  }
  .lead {
    font-size: 15px;
  }
  .small,
  .notice,
  .bottom-note,
  .view-note,
  .choice small,
  .product .meta,
  .alternative small,
  .estimate-row small,
  .estimate-row a,
  .variant .note,
  .cover .state,
  .proofs,
  .hero-note {
    font-size: 13px;
  }
  .tag,
  .price-kind {
    font-size: 12px;
  }
  /* шаги: одна строка и полоса прогресса */
  .steps {
    display: none;
  }
  .steps-mini {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0 0 18px;
    font-size: 13px;
    color: var(--muted);
  }
  .steps-mini b {
    color: var(--ink);
  }
  .steps-bar {
    height: 4px;
    border-radius: 2px;
    background: var(--soft);
    overflow: hidden;
  }
  .steps-bar i {
    display: block;
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
  }
  /* главное действие закреплено внизу экрана */
  .actions.bar {
    position: sticky;
    bottom: 0;
    z-index: 8;
    margin: 20px -16px 0;
    padding: 12px max(16px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background: rgba(251, 250, 247, 0.97);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(10px);
    flex-wrap: nowrap;
    gap: 10px;
  }
  .actions.bar .btn {
    flex: 1 1 0;
    min-width: 0;
    padding-left: 12px;
    padding-right: 12px;
  }
  .bar-total {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    line-height: 1.2;
    margin-right: 2px;
  }
  .bar-total small {
    font-size: 12px;
    color: var(--muted);
  }
  .bar-total b {
    font-size: 18px;
    white-space: nowrap;
  }
  .wide-only {
    display: none;
  }
  .actions .btn {
    flex: 1 1 auto;
  }
  .btn.sm {
    min-height: 44px;
    font-size: 14px;
  }
  .text-button,
  .link-button {
    min-height: 44px;
  }
  .close {
    width: 44px;
    height: 44px;
  }
  .toast {
    bottom: calc(92px + env(safe-area-inset-bottom));
  }
  .field {
    font-size: 14px;
  }
  .field input,
  .field textarea {
    font-size: 16px; /* меньше 16 px — iOS увеличивает страницу при фокусе */
  }
  /* комнаты и стили: сетка 2 колонки вместо ленты */
  .choice-grid,
  .styles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
  }
  .choice {
    padding: 5px;
    border-radius: 14px;
  }
  .choice img,
  .styles .choice img {
    aspect-ratio: 1.35;
    border-radius: 10px;
  }
  .choice .copy {
    padding: 8px 6px 6px;
  }
  .choice strong {
    font-size: 15px;
    line-height: 1.25;
  }
  .choice small {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
  }
  /* фото комнаты */
  .room-grid {
    gap: 14px;
    margin-top: 16px;
  }
  .upload-zone > img {
    height: 180px;
  }
  .upload-buttons .btn {
    flex: 1 1 140px;
  }
  .photos {
    gap: 12px;
  }
  .photos img {
    width: 92px;
    height: 72px;
  }
  .example {
    min-height: 44px;
  }
  .dimensions {
    margin: 12px 0;
    padding: 12px 14px;
  }
  /* варианты: строка «фото — сумма», три варианта видны почти без прокрутки */
  .variants {
    gap: 12px;
    margin-top: 16px;
  }
  .variant {
    display: grid;
    grid-template-columns: 38% minmax(0, 1fr);
  }
  .variant .cover {
    aspect-ratio: auto;
    height: 100%;
    min-height: 150px;
  }
  .cover .state {
    left: 6px;
    right: 6px;
    bottom: 6px;
    padding: 5px 7px;
  }
  .variant .in {
    padding: 12px;
    gap: 4px;
  }
  .variant .in .tag {
    display: none;
  }
  .variant h2 {
    font-size: 17px;
  }
  .variant .price {
    font-size: 21px;
  }
  .variant .note {
    min-height: 0;
  }
  .variant .btn {
    min-height: 44px;
    padding: 9px 12px;
    margin-top: 6px;
  }
  /* интерьер */
  .interior-head {
    gap: 4px 18px;
    align-items: end;
  }
  .interior-head h1 {
    font-size: 28px;
    margin-bottom: 0;
  }
  .interior-picture {
    margin: 14px -16px 0;
  }
  .interior-picture img {
    border-radius: 0;
  }
  .view-note {
    margin-top: 6px;
  }
  .products {
    gap: 10px;
  }
  .product img {
    height: 110px;
  }
  .product h3 {
    font-size: 14px;
  }
  .product .btn {
    padding: 9px;
  }
  /* смета: строка — карточка */
  .estimate {
    margin-top: 16px;
    border-radius: 14px;
  }
  .estimate-row.head {
    display: none;
  }
  .estimate-row {
    grid-template-columns: 56px auto minmax(0, 1fr) auto;
    grid-template-areas:
      "img info info info"
      "img qty unit total";
    gap: 6px 10px;
    align-items: start;
    padding: 14px;
    font-size: 14px;
  }
  .estimate-row img {
    grid-area: img;
    width: 56px;
    height: 56px;
  }
  .estimate-row > div {
    grid-area: info;
    min-width: 0;
  }
  .estimate-row strong {
    line-height: 1.3;
  }
  .estimate-row a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: -6px 0 -10px;
  }
  .estimate-row .quantity {
    grid-area: qty;
    text-align: left;
    color: var(--muted);
  }
  .estimate-row .unit {
    grid-area: unit;
    text-align: left;
    color: var(--muted);
  }
  .estimate-row .unit::before {
    content: "× ";
  }
  .estimate-row .line-price {
    grid-area: total;
    white-space: nowrap;
  }
  .grand-total {
    padding: 16px 14px;
  }
  /* замена товара: шторка снизу на весь экран */
  .sheet {
    width: 100%;
    padding: 18px max(16px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  }
  .alternative .btn {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
  }
}
@media print {
  .top,
  .steps,
  .no-print,
  .toast,
  .sheet-bg {
    display: none !important;
  }
  .wrap {
    max-width: none;
    padding: 0;
  }
  body {
    background: white;
  }
  .estimate {
    border: 0;
  }
  .estimate-row {
    break-inside: avoid;
  }
  .estimate-row a:after {
    content: " " attr(href);
    font-size: 9px;
    display: block;
    overflow-wrap: anywhere;
  }
  .estimate-row {
    grid-template-columns: 45px 1fr 50px 100px 100px;
  }
  .estimate-row img {
    width: 45px;
  }
  .bottom-note {
    color: #333;
  }
}
.price-kind {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 99px;
  background: #f6e8cc;
  color: #7a5414;
  font-size: 12px;
  font-weight: 600;
  vertical-align: middle;
  white-space: nowrap;
}
