:root {
  --cream: #f3eee5;
  --cream-2: #faf7f1;
  --sand: #e7dfd0;
  --sand-2: #dcd2bf;
  --olive: #5b6a4c;
  --olive-deep: #4a573d;
  --olive-soft: #e3e7da;
  --ink: #2a2924;
  --ink-2: #6d685e;
  --ink-3: #9a948a;
  --white: #ffffff;
  --gold: #b79d75;
  --font-display: 'Playfair Display', 'Times New Roman', serif;
  --font-body: 'Golos Text', 'Helvetica Neue', Arial, sans-serif;
  --r: 20px;
  --r-s: 14px;
  --gutter: 20px;
  --bar-h: 84px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'tnum' 1;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 560px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: var(--cream); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 40px; height: 40px; }
.brand__name { font-family: var(--font-display); font-size: 22px; letter-spacing: .08em; line-height: 1; color: var(--ink); }
.brand__sub { display: block; font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); margin-top: 4px; }
.top__call { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--olive); color: var(--white); font-weight: 500; font-size: 15px; transition: background .2s var(--ease), transform .15s var(--ease); }
.top__call:active { transform: scale(.97); background: var(--olive-deep); }
.top__call svg { width: 16px; height: 16px; }

/* Hero */
.hero { padding-top: 12px; }
.hero h1 { font-family: var(--font-display); font-size: clamp(38px, 11vw, 52px); line-height: 1.02; letter-spacing: -.015em; }
.hero__lead { margin-top: 16px; font-size: 17px; color: var(--ink-2); max-width: 30ch; }
.hero__media { margin-top: 22px; position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge { position: absolute; left: 14px; bottom: 14px; background: var(--cream-2); color: var(--ink); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 500; }
.hero__badge span { color: var(--olive); }

/* Sections */
.section { padding-top: 44px; }
.section__title { font-family: var(--font-display); font-size: 30px; line-height: 1.1; letter-spacing: -.01em; }
.section__sub { margin-top: 8px; color: var(--ink-2); }

/* Service tiles */
.services { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 18px var(--gutter) 6px; margin: 0 calc(-1 * var(--gutter)); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.services::-webkit-scrollbar { display: none; }
.tile { flex: 0 0 auto; width: 132px; scroll-snap-align: start; border-radius: var(--r-s); overflow: hidden; background: var(--cream-2); text-align: left; transition: transform .2s var(--ease), background .2s var(--ease); position: relative; }
.tile img { width: 100%; height: 92px; object-fit: cover; transition: transform .4s var(--ease); }
.tile__label { display: block; padding: 10px 12px 12px; font-size: 14px; font-weight: 500; line-height: 1.25; min-height: 56px; }
.tile:active { transform: scale(.97); }
.tile[aria-selected="true"] { background: var(--olive); color: var(--white); }
.tile[aria-selected="true"] img { transform: scale(1.06); }

/* Calculator card */
.calc { margin-top: 14px; background: var(--cream-2); border-radius: var(--r); padding: 22px 18px 24px; }
.calc__title { font-family: var(--font-display); font-size: 24px; line-height: 1.15; }
.calc__hint { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.block { margin-top: 24px; }
.block__label { display: flex; flex-direction: column; gap: 2px; font-weight: 500; font-size: 15px; }
.block__label small { font-weight: 400; color: var(--ink-2); font-size: 13px; }

/* Area control */
.area { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 10px; }
.area__value { display: flex; align-items: baseline; gap: 6px; }
.area__input { width: 92px; font: inherit; font-size: 40px; font-weight: 500; line-height: 1; color: var(--ink); background: transparent; border: 0; padding: 0; border-bottom: 2px solid var(--sand-2); -moz-appearance: textfield; font-feature-settings: 'tnum' 1; }
.area__input::-webkit-outer-spin-button, .area__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.area__input:focus { outline: none; border-bottom-color: var(--olive); }
.area__unit { font-size: 20px; color: var(--ink-2); }
.area__band { text-align: right; font-size: 14px; color: var(--ink-2); line-height: 1.3; }
.area__band b { display: block; color: var(--ink); font-weight: 500; font-size: 16px; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 6px 0 0; cursor: pointer; }
.range::-webkit-slider-runnable-track { /* taste-skill-ignore: two-tone progress fill of a form control */ height: 8px; border-radius: 999px; background: linear-gradient(to right, var(--olive) 0 var(--pct, 40%), var(--sand) var(--pct, 40%) 100%); }
.range::-moz-range-track { height: 8px; border-radius: 999px; background: var(--sand); }
.range::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--olive); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: var(--white); border: 9px solid var(--olive); transition: transform .15s var(--ease); }
.range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 9px solid var(--olive); }
.range:active::-webkit-slider-thumb { transform: scale(1.12); }
.ticks { position: relative; height: 18px; margin: 0 15px; font-size: 12px; color: var(--ink-3); }
.ticks span { position: absolute; top: 0; transform: translateX(-50%); }

/* Segmented choices */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin-top: 10px; padding: 5px; background: var(--sand); border-radius: 999px; }
.seg--3 { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); }
.seg button { height: 42px; border-radius: 999px; font-size: 13.5px; line-height: 1.1; font-weight: 500; color: var(--ink-2); transition: background .2s var(--ease), color .2s var(--ease); padding: 0 6px; }
.seg button[aria-pressed="true"] { background: var(--cream-2); color: var(--ink); }

/* Choice cards (stacked radio/check) */
.choices { display: grid; gap: 8px; margin-top: 10px; }
.choice { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: center; text-align: left; width: 100%; padding: 14px 16px; border-radius: var(--r-s); background: var(--cream); transition: background .2s var(--ease), transform .15s var(--ease); }
.choice:active { transform: scale(.99); }
.choice { border: 2px solid transparent; }
.choice[aria-pressed="true"], .choice[aria-checked="true"] { background: var(--olive-soft); border-color: var(--olive); }
.choice__title { font-weight: 500; font-size: 15px; }
.choice__sub { grid-column: 1; font-size: 13px; color: var(--ink-2); }
.choice__price { grid-column: 2; grid-row: 1 / span 2; font-weight: 500; font-size: 15px; white-space: nowrap; text-align: right; }
.choice__price small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-2); }

/* Included list */
.includes { margin-top: 12px; display: grid; gap: 6px; }
.includes li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.includes li::before { content: ''; flex: 0 0 auto; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: var(--olive) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.6 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }

/* Toggle chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { height: 40px; padding: 0 14px; border-radius: 999px; background: var(--cream); font-size: 14px; font-weight: 500; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; transition: background .2s var(--ease), color .2s var(--ease), transform .15s var(--ease); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--olive); color: var(--white); }

/* Counter rows */
.rows { display: grid; gap: 2px; margin-top: 10px; border-radius: var(--r-s); overflow: hidden; }
.row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 12px 14px; background: var(--cream); }
.row__title { font-size: 15px; font-weight: 500; }
.row__price { grid-column: 1; font-size: 13px; color: var(--ink-2); }
.row--on { background: var(--olive-soft); }
.row--switch .row__title { grid-row: 1; }
.counter { grid-column: 2; grid-row: 1 / span 2; display: inline-grid; grid-template-columns: 40px 34px 40px; align-items: center; height: 40px; border-radius: 999px; background: var(--cream-2); }
.counter button { height: 40px; width: 40px; border-radius: 50%; font-size: 22px; line-height: 1; color: var(--olive); display: grid; place-items: center; transition: background .15s var(--ease); }
.counter button:active { background: var(--sand); }
.counter button:disabled { color: var(--sand-2); }
.counter output { text-align: center; font-weight: 500; font-size: 16px; }
.switch { grid-column: 2; grid-row: 1 / span 2; width: 52px; height: 32px; border-radius: 999px; background: var(--sand-2); position: relative; transition: background .2s var(--ease); }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--white); transition: transform .2s var(--ease); }
.switch[aria-checked="true"] { background: var(--olive); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }

details.more { margin-top: 20px; border-radius: var(--r-s); background: var(--cream); }
details.more summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; font-weight: 500; font-size: 15px; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: ''; width: 10px; height: 10px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); transition: transform .2s var(--ease); margin-right: 4px; }
details.more[open] summary::after { transform: rotate(-135deg); }
details.more .more__body { padding: 0 12px 12px; }
details.more .more__body .block { margin-top: 14px; }
details.more .rows { background: var(--cream-2); }
details.more .row { background: var(--cream-2); }
details.more .row--on { background: var(--olive-soft); }
details.more .counter { background: var(--cream); }
details.more .chip { background: var(--cream-2); }
details.more .chip[aria-pressed="true"] { background: var(--olive); }

.note { margin-top: 14px; font-size: 13px; color: var(--ink-2); line-height: 1.45; }

/* Result card */
.result { margin-top: 22px; background: var(--olive); color: var(--white); border-radius: var(--r); padding: 20px 18px 18px; }
.result__label { font-size: 14px; opacity: .8; }
.result__price { margin-top: 4px; font-size: clamp(30px, 8.6vw, 38px); font-weight: 500; line-height: 1.05; letter-spacing: -.01em; font-feature-settings: 'tnum' 1; }
.result__price.result__price--custom { font-size: 26px; font-family: var(--font-display); font-weight: 400; }
.result__unit { font-size: 14px; opacity: .8; margin-top: 4px; }
.gauge { margin-top: 16px; }
.gauge__track { position: relative; height: 10px; border-radius: 999px; background: rgba(255,255,255,.22); }
.gauge__fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: rgba(255,255,255,.95); width: var(--pos, 40%); transition: width .4s var(--ease); }
.gauge__labels { display: flex; justify-content: space-between; font-size: 12px; opacity: .8; margin-top: 6px; }
.gauge__hint { margin-top: 10px; font-size: 14px; }
.lines { margin-top: 16px; padding: 12px 14px; border-radius: var(--r-s); background: rgba(255,255,255,.1); display: grid; gap: 8px; }
.lines li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.lines li span:last-child { white-space: nowrap; font-feature-settings: 'tnum' 1; }
.result__note { margin-top: 12px; font-size: 13px; opacity: .85; line-height: 1.45; }

/* Price list accordions */
.plist { display: grid; gap: 10px; margin-top: 18px; }
.pl { background: var(--cream-2); border-radius: var(--r); overflow: hidden; }
.pl summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 14px; padding: 10px 16px 10px 10px; }
.pl summary::-webkit-details-marker { display: none; }
.pl summary img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.pl__t { display: block; font-family: var(--font-display); font-size: 20px; line-height: 1.15; }
.pl__s { display: block; font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.pl summary::after { content: ''; width: 10px; height: 10px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); transition: transform .2s var(--ease); margin-right: 4px; }
.pl[open] summary::after { transform: rotate(-135deg); }
.pl__body { padding: 4px 16px 18px; }
.pl__h { margin-top: 16px; font-weight: 500; font-size: 15px; }
.plain { margin-top: 8px; display: grid; gap: 4px; }
.plain li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 9px 12px; border-radius: 10px; background: var(--cream); }
.plain li span:last-child { white-space: nowrap; font-weight: 500; }
.plain li small { display: block; color: var(--ink-2); font-weight: 400; font-size: 12px; }

/* How */
.steps { display: grid; gap: 10px; margin-top: 18px; }
.step { background: var(--cream-2); border-radius: var(--r); padding: 18px; }
.step h3 { font-family: var(--font-display); font-size: 21px; line-height: 1.15; }
.step p { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.step--photo { padding: 0; overflow: hidden; }
.step--photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.step--photo div { padding: 18px; }

/* Footer */
.foot { margin-top: 52px; background: var(--olive); color: var(--white); border-radius: var(--r) var(--r) 0 0; padding: 32px 0 calc(36px + env(safe-area-inset-bottom)); }
.foot__word { font-family: var(--font-display); font-size: clamp(64px, 22vw, 120px); line-height: .95; letter-spacing: .04em; }
.foot__tag { margin-top: 10px; font-size: 17px; opacity: .85; }
.foot__links { margin-top: 24px; display: grid; gap: 10px; }
.foot__links a { display: flex; justify-content: space-between; align-items: center; background: var(--olive-deep); border-radius: var(--r-s); padding: 14px 16px; font-weight: 500; }
.foot__links a small { font-weight: 400; opacity: .75; }
.foot__fine { margin-top: 22px; font-size: 13px; opacity: .75; line-height: 1.5; }

/* Sticky bar */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--cream-2); box-shadow: 0 -8px 30px rgba(42,41,36,.08); /* taste-skill-ignore: floating bar */ transform: translateY(0); transition: transform .3s var(--ease); }
.bar.is-hidden { transform: translateY(110%); }
.bar__in { max-width: 520px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.bar__label { font-size: 12px; color: var(--ink-2); }
.bar__price { font-size: 20px; font-weight: 500; line-height: 1.15; font-feature-settings: 'tnum' 1; white-space: nowrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 22px; border-radius: 999px; background: var(--olive); color: var(--white); font-weight: 500; font-size: 16px; transition: background .2s var(--ease), transform .15s var(--ease); white-space: nowrap; }
.btn:active { transform: scale(.97); background: var(--olive-deep); }
.btn--light { background: var(--cream); color: var(--ink); }
.btn--light:active { background: var(--sand); }
.btn--block { width: 100%; }

/* Bottom sheet */
.sheet { position: fixed; inset: 0; z-index: 40; display: none; }
.sheet.is-open { display: block; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(42,41,36,.45); animation: fade .25s var(--ease); }
.sheet__panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow: auto; background: var(--cream-2); border-radius: 24px 24px 0 0; padding: 10px 20px calc(24px + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; animation: rise .3s var(--ease); }
.sheet__grip { width: 40px; height: 4px; border-radius: 999px; background: var(--sand-2); margin: 0 auto 16px; }
.sheet h2 { font-family: var(--font-display); font-size: 26px; line-height: 1.1; }
.sheet__sum { margin-top: 14px; background: var(--cream); border-radius: var(--r-s); padding: 14px 16px; }
.sheet__sum ul { display: grid; gap: 6px; }
.sheet__sum li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.sheet__sum li span:last-child { white-space: nowrap; }
.sheet__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--olive-soft); font-weight: 500; font-size: 18px; }
.sheet__actions { margin-top: 16px; display: grid; gap: 8px; }
.sheet__hint { margin-top: 12px; font-size: 13px; color: var(--ink-2); text-align: center; }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.toast { position: fixed; left: 50%; bottom: calc(var(--bar-h) + 16px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 50; background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Entrance */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.panel-swap { animation: swap .3s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

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

/* Desktop */
/* Price grid */
.pt { display: grid; gap: 6px; margin-top: 12px; }
.pt__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px 12px 12px; border-radius: 12px; background: var(--cream); }
.pt--2 .pt__row { grid-template-columns: 1fr 1fr; }
.pt__band { grid-column: 1 / -1; font-weight: 500; font-size: 15px; }
.pt__cell { font-size: 13px; font-weight: 500; line-height: 1.3; font-feature-settings: 'tnum' 1; }
.pt__cell small { display: block; font-size: 11.5px; font-weight: 400; color: var(--ink-2); margin-bottom: 2px; }
.result__btn { margin-top: 18px; width: 100%; }

@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .wrap { max-width: 1120px; }
  .top .wrap { height: 76px; }
  .layout { display: grid; grid-template-columns: 1fr 520px; gap: 56px; align-items: start; }
  .layout__left { position: sticky; top: 92px; }
  .hero h1 { font-size: 64px; }
  .hero__media { aspect-ratio: 4 / 5; max-height: 560px; }
  .bar { display: none; }
  .section--calc { padding-top: 12px; }
  .services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; padding: 18px 0 6px; overflow: visible; }
  .tile { width: auto; }
  .tile img { height: 104px; }
  .sheet__panel { bottom: auto; top: 50%; transform: translateY(-50%); border-radius: 24px; max-height: 86vh; }
  .foot { border-radius: var(--r); margin-bottom: 40px; }
  .foot .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
  .foot__links { margin-top: 0; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step--photo { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .step--photo img { height: 100%; aspect-ratio: auto; }
}
