/* «Тон» · окрашивание. Слоновая кость, живая прядь, один тёплый сигнал. */
:root {
  --paper: #f3efe9;
  --paper-2: #ebe5dc;
  --white: #fffdf9;
  --ink: #1c1814;
  --ink-2: #6f665d;
  --ink-3: #a59b90;
  --line: rgba(28, 24, 20, .12);
  --dark: #14110f;
  --dark-ink: #f4efe8;
  --dark-ink-2: #a39a90;
  --accent: #9a5a3a;
  --accent-dark: #d99a74;
  --r-tile: 28px;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --f: 'Wix Madefor Display', -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.47 var(--f); letter-spacing: -.012em; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }

#pryad { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; display: block; z-index: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
body.ready #pryad { opacity: 1; }
main, .foot, .gnav, .lnav { position: relative; z-index: 1; }

.gnav { height: 44px; background: var(--paper); }
.gnav-in { height: 100%; width: min(1024px, calc(100% - 40px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 13px; }
.logo { font-weight: 700; font-size: 19px; letter-spacing: -.03em; }
.gnav-links { display: flex; gap: 36px; color: var(--ink-2); }
.gnav-links a:hover, .gnav-tel:hover { color: var(--ink); }
.gnav-tel { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lnav { position: sticky; top: 0; z-index: 20; height: 52px; background: rgba(243, 239, 233, .76); backdrop-filter: saturate(1.6) blur(20px); -webkit-backdrop-filter: saturate(1.6) blur(20px); border-bottom: 1px solid var(--line); transition: background .4s, color .4s, border-color .4s; }
.lnav-in { height: 100%; width: min(1024px, calc(100% - 40px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.lnav-name { font-weight: 650; font-size: 21px; letter-spacing: -.02em; }
.lnav-links { display: flex; align-items: center; gap: 28px; font-size: 13px; color: var(--ink-2); }
.lnav-links a:not(.pill):hover { color: var(--ink); }
body.on-dark .lnav { background: rgba(20, 17, 15, .72); color: var(--dark-ink); border-color: rgba(255, 255, 255, .1); }
body.on-dark .lnav-links { color: var(--dark-ink-2); }
body.on-dark .lnav .pill { background: var(--dark-ink); color: var(--ink) !important; }

.pill { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 24px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 17px; font-weight: 500; border: 0; transition: background .25s, transform .25s var(--ease); }
.pill:hover { background: #3b342e; }
.pill:active { transform: scale(.97); }
.pill-s { height: 28px; padding: 0 13px; font-size: 12px; color: #fff !important; }
.pill-wide { width: 100%; height: 52px; }
.more { color: var(--ink); font-size: 17px; display: inline-flex; align-items: center; gap: 4px; }
.more::after { content: '›'; font-size: 22px; line-height: 1; transform: translateY(-1px); transition: transform .25s var(--ease); }
.more:hover::after { transform: translate(3px, -1px); }
.eyebrow { font-size: 19px; font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.display { font-size: clamp(40px, 5.4vw, 76px); line-height: 1.04; font-weight: 700; letter-spacing: -.038em; }
.center { text-align: center; }
.s3d { background: transparent; }
.s3d .display { font-size: clamp(36px, 4.4vw, 64px); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* первый экран: текст слева, прядь падает справа сверху */
.hero { min-height: 100vh; min-height: 100svh; position: relative; }
.hero-text { position: absolute; left: max(24px, calc(50vw - 512px)); top: 50%; transform: translateY(-58%); max-width: 520px; }
.hero .eyebrow { margin-bottom: 4px; font-size: 21px; }
.hero-name { font-size: clamp(84px, 9.6vw, 148px); line-height: .95; font-weight: 700; letter-spacing: -.05em; margin-bottom: 18px; }
.hero-lead { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.28; font-weight: 500; color: var(--ink-2); max-width: 26ch; }
.hero-cta { display: flex; gap: 26px; align-items: center; margin-top: 26px; }
.hero-price { margin-top: 14px; font-size: 14px; color: var(--ink-3); letter-spacing: 0; }
.rise { opacity: 0; transform: translateY(18px); }
body.go .rise { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
body.go .rise:nth-child(2) { transition-delay: .08s; }
body.go .rise:nth-child(3) { transition-delay: .16s; }
body.go .rise:nth-child(4) { transition-delay: .24s; }
body.go .rise:nth-child(5) { transition-delay: .32s; }

.manifest { background: var(--white); padding: clamp(120px, 24vh, 260px) 0; }
.manifest-text { width: min(980px, calc(100% - 48px)); margin: 0 auto; font-size: clamp(30px, 3.9vw, 56px); line-height: 1.14; font-weight: 650; letter-spacing: -.03em; }
.manifest-text .w { color: #ddd5cb; transition: color .35s linear; }
.manifest-text .w.on { color: var(--ink); }

/* оттенки */
.ottenki { height: 400vh; }
.ott-head { position: absolute; top: 16vh; left: max(24px, calc(50vw - 512px)); z-index: 2; }
.ott-pick { position: absolute; left: max(24px, calc(50vw - 512px)); bottom: 12vh; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; z-index: 2; }
.swatches { display: flex; gap: 14px; }
.sw { width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0; position: relative; background: linear-gradient(160deg, var(--a), var(--b)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.sw::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid transparent; transition: border-color .3s; }
.sw[aria-checked="true"]::after { border-color: var(--ink); }
.sw[data-ton="pesok"] { --a: #b08a5c; --b: #e6cfa2; }
.sw[data-ton="karamel"] { --a: #5a3a22; --b: #c08a52; }
.sw[data-ton="kashtan"] { --a: #2e1a10; --b: #6b3f25; }
.sw[data-ton="med"] { --a: #5a2210; --b: #c8622e; }
.sw[data-ton="pepel"] { --a: #4a4644; --b: #c9c4bd; }
.ton-info { min-height: 80px; }
.ton-name { font-size: 24px; font-weight: 650; letter-spacing: -.02em; }
.ton-text { color: var(--ink-2); max-width: 30ch; margin-top: 4px; }

/* переход */
.perehod { height: 320vh; color: var(--dark-ink); }
.per-text { position: absolute; left: max(24px, calc(50vw - 590px)); top: 50%; transform: translateY(-50%); width: min(460px, 40vw); z-index: 2; }
.perehod .eyebrow { color: var(--accent-dark); }
.per-lead { color: var(--dark-ink-2); font-size: 19px; line-height: 1.4; margin-top: 18px; }
.per-ctl { margin-top: 34px; }
.rng { display: block; }
.rng-k { display: block; font-size: 14px; font-weight: 600; color: var(--dark-ink-2); margin-bottom: 6px; }
.rng input { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; background: none; margin: 0; cursor: pointer; }
.rng input::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, #5a3a22, #c08a52, #e6cfa2); }
.rng input::-moz-range-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, #5a3a22, #c08a52, #e6cfa2); }
.rng input::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; margin-top: -12px; box-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.rng input::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 0; }
.rng-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--dark-ink-2); margin-bottom: 22px; }
.seg { display: inline-flex; background: rgba(255, 255, 255, .08); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; height: 36px; padding: 0 16px; border-radius: 999px; font-size: 14px; color: var(--dark-ink-2); transition: background .25s, color .25s; }
.seg button[aria-checked="true"] { background: var(--dark-ink); color: var(--ink); }

/* кадр */
.kadr { height: 240vh; background: var(--white); }
.kadr-frame { position: absolute; inset: 0; clip-path: inset(var(--iy, 16%) var(--ix, 20%) round var(--ir, 32px)); }
.kadr-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; transform: scale(var(--is, 1.14)); }
.kadr-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 14, 10, .62) 0%, rgba(20, 14, 10, .25) 40%, rgba(20, 14, 10, 0) 62%); opacity: var(--io, 0); }
.kadr-text { position: absolute; left: max(24px, calc(50vw - 590px)); bottom: 12vh; color: #fff; max-width: 30ch; opacity: var(--io, 0); transform: translateY(calc((1 - var(--io, 0)) * 30px)); }
.kadr-text p { font-size: clamp(18px, 1.6vw, 22px); color: rgba(255, 255, 255, .86); margin-top: 14px; font-weight: 500; }

/* плитки */
.bento { background: var(--white); padding: clamp(100px, 16vh, 180px) 0 clamp(100px, 14vh, 160px); }
.bento .display { margin-bottom: clamp(48px, 7vh, 80px); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(260px, auto); gap: 20px; }
.tile { position: relative; border-radius: var(--r-tile); background: var(--paper); overflow: hidden; padding: 34px; display: flex; flex-direction: column; justify-content: space-between; transform: translateY(28px) scale(.985); transition: transform .9s var(--ease); }
.tile.on { transform: none; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease); }
.tile.on img { transform: scale(1); }
.tile figcaption { position: relative; z-index: 1; font-size: 21px; line-height: 1.28; letter-spacing: -.018em; max-width: 24ch; }
.tile figcaption b { font-weight: 650; }
.t-k { display: block; font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--ink-2); margin-bottom: 8px; }
.tile.light { justify-content: flex-start; }
.tile.light::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(243, 239, 233, .95) 0%, rgba(243, 239, 233, .72) 26%, rgba(243, 239, 233, 0) 50%); }
.t-big { grid-column: 1 / 3; grid-row: 1 / 3; min-height: 580px; }
.t-big img { object-position: 50% 70%; }
.t-wide { grid-column: 1 / 5; min-height: 460px; }
.t-wide figcaption { max-width: 30ch; }
.t-obr { grid-column: 3 / 5; grid-row: 2 / 4; min-height: 520px; }
.t-obr img { object-position: 50% 75%; }
.t-time { grid-column: 1 / 3; }
.num { font-size: clamp(72px, 7.6vw, 112px); line-height: .95; font-weight: 700; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.num small { font-size: .3em; font-weight: 600; letter-spacing: -.01em; margin-left: .18em; color: var(--ink-2); }
.t-num p { font-size: 15px; color: var(--ink-2); max-width: 26ch; margin-top: 10px; }

/* цены */
.ceny { background: var(--paper); padding: clamp(100px, 15vh, 170px) 0; }
.ceny .display { margin-bottom: clamp(48px, 7vh, 80px); }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.col { background: var(--white); border-radius: var(--r-tile); padding: 34px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.col-sw { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(160deg, var(--a), var(--b)); margin-bottom: 22px; }
.col h3 { font-size: 26px; font-weight: 700; letter-spacing: -.025em; }
.col-d { color: var(--ink-2); margin-top: 6px; min-height: 2.9em; }
.col-p { font-size: 28px; font-weight: 700; letter-spacing: -.03em; margin: 18px 0; font-variant-numeric: tabular-nums; }
.col ul { border-top: 1px solid var(--line); width: 100%; margin-bottom: 26px; }
.col li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.col .pill { margin-top: auto; }
.ceny-fine { text-align: center; color: var(--ink-3); font-size: 14px; margin-top: 26px; }

/* запись */
.zapis { background: var(--white); padding: clamp(100px, 15vh, 170px) 0; }
.zapis .eyebrow { color: var(--accent); }
.zapis-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.zapis-sum { margin-top: 26px; color: var(--ink-2); font-size: 17px; }
.zapis-sum b { color: var(--ink); font-weight: 600; }
.form { display: grid; gap: 12px; }
.masters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 6px; }
.masters button { border: 1px solid rgba(28, 24, 20, .16); background: #fff; border-radius: 18px; padding: 14px 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; transition: border-color .2s, box-shadow .2s; }
.masters i { font-style: normal; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); font-weight: 700; margin-bottom: 6px; }
.masters b { font-weight: 650; }
.masters small { color: var(--ink-2); font-size: 12px; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.days button, .slots button, .masters button { color: var(--ink); }
.days button, .slots button { border: 1px solid rgba(28, 24, 20, .16); background: #fff; border-radius: 14px; transition: border-color .2s, box-shadow .2s; }
.days button { height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; color: var(--ink-2); }
.days button b { font-size: 19px; color: var(--ink); font-weight: 650; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.slots button { height: 46px; font-size: 15px; font-variant-numeric: tabular-nums; }
.days button[aria-checked="true"], .slots button[aria-checked="true"], .masters button[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.slots button:disabled { color: var(--ink-3); text-decoration: line-through; background: transparent; cursor: default; }
.form label span { display: block; font-size: 13px; color: var(--ink-2); margin: 0 0 6px 4px; }
.form input { width: 100%; height: 54px; border-radius: 14px; border: 1px solid rgba(28, 24, 20, .18); background: #fff; padding: 0 18px; font: inherit; color: var(--ink); }
.form input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(28, 24, 20, .08); }
.form .pill { margin-top: 6px; }
.form-ok { display: none; font-weight: 600; }
.form.sent .form-ok { display: block; }
.fine { font-size: 13px; color: var(--ink-3); }

.foot { background: var(--paper); border-top: 1px solid var(--line); padding: 44px 0 40px; font-size: 13px; color: var(--ink-2); }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot-k { font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot-fine { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12px; }
body.no3d #pryad { display: none; }

@media (max-width: 1060px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .t-big, .t-wide, .t-obr, .t-time { grid-column: 1 / 3; grid-row: auto; }
  .bento { padding-bottom: 80px; }
  .ceny { padding-top: 80px; }
  .col { padding: 26px 20px; }
  .zapis-in { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .cols { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}

@media (max-width: 760px), (max-width: 1100px) and (max-aspect-ratio: 9/10) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 40px); }
  .gnav-links { display: none; }
  .lnav-links a:not(.pill) { display: none; }
  .lnav-name { font-size: 19px; }
  .eyebrow, .hero .eyebrow { font-size: 16px; }
  .hero-text { position: relative; left: auto; top: auto; transform: none; padding: 30px 20px 0; max-width: none; }
  .hero-name { font-size: 76px; margin-bottom: 12px; }
  .hero-lead { font-size: 18px; }
  .display { font-size: 40px; }
  .manifest { padding: 80px 0 96px; }
  .manifest-text { font-size: 29px; width: calc(100% - 40px); }
  .ottenki { height: 260vh; }
  .ott-head { top: 11vh; left: 0; right: 0; padding: 0 20px; text-align: center; }
  .ott-pick { left: 0; right: 0; bottom: 5vh; padding: 0 20px; align-items: center; text-align: center; }
  .ton-text { margin: 4px auto 0; }
  .ton-text { font-size: 15px; }
  .perehod { height: 220vh; }
  .per-text { left: 20px; right: 20px; top: auto; bottom: 5vh; transform: none; width: auto; }
  .per-text .display { font-size: 34px; }
  .per-lead { font-size: 16px; margin-top: 10px; }
  .per-ctl { margin-top: 18px; }
  .kadr { height: 190vh; }
  .kadr-text { left: 20px; right: 20px; bottom: 8vh; }
  .kadr-text .display { font-size: 38px; }
  .bento, .ceny, .zapis { padding: 96px 0; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 12px; grid-auto-rows: auto; }
  .tile { padding: 22px; border-radius: 22px; }
  .t-big { min-height: 460px; }
  .t-wide { min-height: 380px; }
  .t-obr { min-height: 440px; }
  .t-num { min-height: 200px; }
  .tile figcaption { font-size: 19px; }
  .num { font-size: 60px; }
  .days { grid-template-columns: repeat(4, 1fr); }
  .foot-cols { grid-template-columns: 1fr; gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .tile { transition: none !important; }
}
