/* ==========================================================================
   Главная
   ========================================================================== */

/* ---------- hero ---------- */
.hero { padding-block: clamp(20px, 3vw, 40px) clamp(28px, 3.4vw, 48px); position: relative; overflow-x: clip; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.hero__title { margin-top: 26px; font-size: clamp(3.3rem, 7.5vw, 7.8rem); }
.hero__title .marker::before { height: 0.36em; bottom: 0.08em; }
.hero__lead { margin-top: 28px; max-width: 38ch; }
.hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero__stage { position: relative; justify-self: end; width: min(100%, 560px); padding: 26px 8px 26px 86px; }
.hero__slab {
  position: absolute; inset: 9% 0 3% 30%; border-radius: 44px; background: var(--yellow);
  transform: rotate(5deg); box-shadow: inset 0 -30px 60px -30px rgba(160, 100, 0, 0.35);
}
.hero__frame {
  position: relative; padding: 8px; border-radius: 38px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8), 0 50px 90px -40px rgba(48, 40, 16, 0.55), 0 2px 6px rgba(48, 40, 16, 0.08);
}
.hero__photo { position: relative; aspect-ratio: 720 / 912; border-radius: 30px; overflow: hidden; background: #3b2a1c; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 60%; will-change: transform; }
.hero__photo::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); pointer-events: none; }

.hero__hang { position: absolute; left: 0; top: 13%; z-index: 4; display: flex; flex-direction: column; align-items: center; transform-origin: 50% 7px; will-change: transform; }
.hang__nail { position: relative; z-index: 2; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #c9c2ab 40%, #6d6450 80%); box-shadow: 0 3px 5px rgba(0, 0, 0, 0.35); }
.hang__string { width: 1.6px; height: 92px; margin-top: -6px; background: linear-gradient(#7c6d4a, #a6946a); border-radius: 2px; }
.hero__tag { --w: 206px; margin-top: -19px; transform-origin: 50% 19px; transition: filter 0.3s; }
.hero__tag:hover { filter: drop-shadow(0 20px 22px rgba(48, 40, 16, 0.3)) drop-shadow(0 1px 1px rgba(48, 40, 16, 0.14)); }
.hero__tag .tag__title { font-size: 1.42rem; }

.hero__hint {
  position: absolute; left: -150px; bottom: 11%; z-index: 5; width: 200px; text-align: right;
  font-size: 1.5rem; line-height: 1; color: var(--ink-2); transform: rotate(-5deg);
}
.hero__hint-arrow { width: 84px; height: 50px; margin: 4px 0 0 auto; fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html.js .hero__hint { opacity: 0; transition: opacity 0.8s var(--ease) 1.6s; }
html.js .hero__hint.is-in { opacity: 1; }

/* ---------- perks ---------- */
.perks__row { display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px; border-radius: 28px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); list-style: none; }
.perks__row li { display: flex; gap: 14px; align-items: center; padding: 18px 20px; }
.perks__row li + li { box-shadow: inset 1px 0 0 var(--line); }
.perks__ico { width: 50px; height: 50px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); }
.perks__row b { display: block; font-weight: 750; font-size: 16.5px; line-height: 1.25; }
.perks__row small { display: block; margin-top: 2px; color: var(--ink-3); font-size: 14px; line-height: 1.35; }

/* ---------- section heads ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 40px; margin-bottom: clamp(24px, 3vw, 40px); flex-wrap: wrap; }
.sec-head--tabs { align-items: flex-end; }

/* ---------- bento categories ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(2, clamp(210px, 20vw, 300px)) clamp(180px, 15vw, 230px); gap: clamp(10px, 1.2vw, 16px); }
.tile { position: relative; overflow: hidden; border-radius: 30px; background: var(--bg-2); isolation: isolate; grid-column: span 3; }
.tile--hero { grid-column: span 6; grid-row: span 2; }
.tile--wide { grid-column: 1 / -1; }
.tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.tile:hover .tile__img { transform: scale(1.06); }
.tile::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(19, 19, 18, 0.06); pointer-events: none; }
.tile__label {
  position: absolute; left: 12px; bottom: 12px; right: 12px; z-index: 1; display: flex; flex-direction: column; gap: 4px; width: fit-content; max-width: calc(100% - 24px);
  padding: 14px 18px 15px; border-radius: 20px; background: var(--surface);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.35);
  transition: transform 0.6s var(--ease);
}
.tile:hover .tile__label { transform: translateY(-4px); }
.tile__label b { font: 850 clamp(1.7rem, 2.3vw, 2.3rem)/0.92 var(--f-display); text-transform: uppercase; }
.tile--hero .tile__label b { font-size: clamp(2.4rem, 4vw, 3.8rem); }
.tile__label small { font-size: 14px; color: var(--ink-3); font-weight: 550; }
.tile__label small em { font-style: normal; color: var(--ink); font-weight: 750; }
.tile__go {
  position: absolute; top: 14px; right: 14px; z-index: 1; width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; background: var(--yellow); color: var(--ink);
  transform: scale(0.8) rotate(-45deg); opacity: 0; transition: transform 0.6s var(--ease-spring), opacity 0.35s;
}
.tile:hover .tile__go, .tile:focus-visible .tile__go { transform: none; opacity: 1; }
.tile--wide .tile__label { flex-direction: row; align-items: baseline; gap: 16px; flex-wrap: wrap; }

/* ---------- grades rail ---------- */
.grades__head { display: grid; gap: 22px; max-width: 760px; }
.rail { position: relative; margin-top: clamp(32px, 4vw, 56px); padding-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 48px); align-items: start; }
.rail__bar {
  position: absolute; top: 0; left: -1.5%; right: -1.5%; height: 12px; border-radius: 10px;
  background: linear-gradient(180deg, #55544e 0%, #232320 55%, #131312 100%);
  box-shadow: 0 10px 18px -8px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.rail__bar::before, .rail__bar::after { content: ''; position: absolute; top: -6px; width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #6f6d66, #1d1d1b 70%); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35); }
.rail__bar::before { left: -8px; }
.rail__bar::after { right: -8px; }
.rail__item { display: flex; flex-direction: column; align-items: center; transform-origin: 50% 0; will-change: transform; }
.rail__loop { width: 18px; height: 18px; margin-top: -3px; border-radius: 50%; border: 2px solid #8a7a55; border-bottom-color: transparent; transform: rotate(45deg); }
.rail__string { width: 1.6px; height: var(--len, 60px); margin-top: -6px; background: linear-gradient(#8a7a55, #a6946a); }
.gtag { --w: min(100%, 380px); margin-top: -19px; transform-origin: 50% 19px; }
.gtag .tag__paper { padding: 50px clamp(20px, 2.2vw, 30px) 28px; display: flex; flex-direction: column; gap: 10px; min-height: 380px; }
.gtag__top { display: flex; justify-content: space-between; align-items: flex-start; }
.gtag__letter { font: 900 5.4rem/0.75 var(--f-display); letter-spacing: -0.02em; }
.gtag .grade { transform: scale(1.5); transform-origin: right top; margin-top: 6px; }
.gtag .grade > span:not(.grade__bars) { display: none; }
.gtag .tag__title { font-size: 2.2rem; margin-top: 8px; }
.gtag__short { font-weight: 700; font-size: 15px; color: var(--ink-2); }
.gtag__text { color: var(--ink-2); font-size: 15.5px; line-height: 1.45; }
.gtag__save { font: 600 1.6rem/1.05 var(--f-hand); color: #23324d; margin-top: 4px; transform: rotate(-1.5deg); }
.gtag .link-arrow { margin-top: auto; align-self: flex-start; position: relative; z-index: 1; }
.gtag__stamp { position: absolute; right: 18px; bottom: 22px; width: 76px; height: 76px; border-radius: 50%; border: 2.5px solid rgba(163, 34, 34, 0.55); color: rgba(163, 34, 34, 0.7); display: grid; place-items: center; text-align: center; font: 800 11px/1.05 var(--f-body); letter-spacing: 0.06em; text-transform: uppercase; transform: rotate(-14deg); }

/* ---------- popular ---------- */
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px; margin: -4px; max-width: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.pgrid.is-swapping { opacity: 0; transform: translateY(10px); }
.pgrid { transition: opacity 0.3s var(--ease), transform 0.5s var(--ease); }
.popular__more { display: flex; justify-content: center; margin-top: clamp(28px, 3vw, 40px); }

/* ---------- brands marquee ---------- */
.brands { padding-block: 8px 0; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee__track { display: flex; align-items: center; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track, .marquee.is-off .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.brand {
  display: inline-flex; align-items: flex-start; gap: 6px; padding: 6px clamp(18px, 2.4vw, 36px);
  font: 900 clamp(2.8rem, 5.6vw, 5rem)/1 var(--f-display); text-transform: uppercase; letter-spacing: 0.005em;
  color: #cdcbc3; transition: color 0.35s var(--ease);
}
.brand sup { font: 800 14px/1 var(--f-body); color: var(--ink-3); margin-top: 0.5em; }
.brand:hover { color: var(--ink); }
.brand-sep { width: 26px; height: 26px; flex: none; color: var(--yellow); }

/* ---------- showroom panel ---------- */
.sroom { position: relative; overflow: hidden; background: var(--dark); color: var(--on-dark); border-radius: 40px; padding: clamp(18px, 3vw, 40px); }
.sroom::before { content: ''; position: absolute; width: 60%; aspect-ratio: 1; left: -18%; top: -40%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 194, 26, 0.14), transparent 65%); pointer-events: none; }
.sroom__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.sroom__copy { padding: clamp(8px, 2vw, 28px); }
.eyebrow--dark { background: rgba(242, 241, 237, 0.07); color: var(--on-dark); box-shadow: inset 0 0 0 1px rgba(242, 241, 237, 0.14); }
.sroom h2 { margin-top: 22px; }
.marker--dark { color: var(--ink); padding-inline: 0.06em; }
.marker--dark::before { height: 0.92em; bottom: 0.02em; left: -0.08em; right: -0.1em; }
.sroom__text { margin-top: 24px; max-width: 44ch; color: var(--on-dark-2); font-size: 1.1rem; }
.sroom__facts { margin-top: 28px; display: grid; gap: 16px; list-style: none; padding: 0; }
.sroom__facts li { display: flex; gap: 14px; align-items: flex-start; }
.sroom__facts .i { color: var(--yellow); margin-top: 1px; }
.sroom__facts b { display: block; font-weight: 650; }
.sroom__facts small { display: block; color: var(--on-dark-2); font-size: 14.5px; margin-top: 2px; }
.sroom__facts .open-status { color: var(--on-dark-2); font-weight: 500; }
.sroom__cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.sroom__photo { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 5 / 4.6; }
.sroom__photo img { width: 100%; height: 115%; object-fit: cover; }

.strings { position: relative; margin-top: clamp(20px, 3vw, 36px); padding: clamp(18px, 2.4vw, 28px); border-radius: 28px; background: linear-gradient(180deg, #1d1c1a, #141413); box-shadow: inset 0 0 0 1px rgba(242, 241, 237, 0.08); }
.strings__head { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; }
.strings__head h3 { color: var(--on-dark); }
.strings__head p { margin-top: 6px; color: var(--on-dark-2); font-size: 15px; }
[data-sound][aria-pressed='true'] { background: var(--on-dark); }
.strings__stage { position: relative; margin-top: 18px; height: 240px; border-radius: 20px; overflow: hidden; background: #1a1612; box-shadow: inset 0 0 0 1px rgba(242, 241, 237, 0.06), inset 0 20px 40px -20px rgba(0, 0, 0, 0.8); }
.strings__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.strings__notes { position: absolute; left: 12px; top: 26px; bottom: 26px; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; list-style: none; padding: 0; pointer-events: none; }
.strings__notes li { height: 0; line-height: 0; font: 800 13px/0 var(--f-body); color: var(--on-dark-2); }

/* ---------- steps ---------- */
.steps__list { position: relative; margin-top: clamp(32px, 4vw, 52px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; list-style: none; padding: 0; }
.steps__list::before { content: ''; position: absolute; left: 34px; right: 12%; top: 33px; height: 2px; background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 16px); opacity: 0.35; transform-origin: left; }
html.js .steps__list::before { transform: scaleX(0); transition: transform 1.8s var(--ease) 0.2s; }
html.js .steps__list.is-in::before { transform: none; }
.steps__list li { position: relative; }
.steps__ico { position: relative; z-index: 1; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 0 0 8px var(--bg); }
.steps__list li:first-child .steps__ico { background: var(--yellow); box-shadow: 0 0 0 8px var(--bg); }
.steps__list h3 { margin-top: 26px; font: 800 1.9rem/0.95 var(--f-display); text-transform: uppercase; }
.steps__list p { margin-top: 10px; color: var(--ink-2); max-width: 30ch; }

/* ---------- faq ---------- */
:root { interpolate-size: allow-keywords; }
.faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.faq__side { position: sticky; top: 120px; }
.faq__help { margin-top: 34px; padding: 22px; border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); max-width: 420px; }
.faq__help p { color: var(--ink-2); }
.faq__help b { color: var(--ink); }
.faq__help-btns { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.faq__help-btns .btn { gap: 8px; }
.faq__item { border-bottom: 1px solid var(--line-2); }
.faq__item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font: 700 clamp(1.1rem, 1.5vw, 1.3rem)/1.3 var(--f-body); cursor: pointer; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover .faq__plus { background: var(--ink); color: var(--bg); }
.faq__plus { position: relative; width: 40px; height: 40px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: transform 0.5s var(--ease-spring), background-color 0.3s; color: var(--ink); }
.faq__plus::before, .faq__plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: currentColor; border-radius: 2px; }
.faq__plus::after { transform: rotate(90deg); }
.faq__item[open] .faq__plus { transform: rotate(45deg); background: var(--yellow); box-shadow: none; color: var(--ink); }
.faq__item::details-content { height: 0; overflow: clip; transition: height 0.5s var(--ease), content-visibility 0.5s allow-discrete; }
.faq__item[open]::details-content { height: auto; }
.faq__body p { padding: 0 56px 28px 0; color: var(--ink-2); max-width: 62ch; }

/* ---------- waitlist ---------- */
.wl { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; padding: clamp(28px, 5vw, 72px); border-radius: 40px; background: var(--yellow); }
.wl::before { content: ''; position: absolute; right: -8%; top: -30%; width: 46%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.45), transparent 65%); pointer-events: none; }
.wl__copy p { margin-top: 20px; font-size: 1.15rem; max-width: 36ch; color: var(--ink-2); }
.wl__form, .wl__done { position: relative; display: grid; gap: 16px; }
.wl .field > span { color: var(--ink); }
.wl .input { box-shadow: inset 0 0 0 1.5px rgba(19, 19, 18, 0.18); }
.wl .check { color: var(--ink); }
.wl .check input { background: var(--surface-2); }
.wl .check input:checked { background: var(--ink); }
.wl .check input::after { border-color: var(--yellow); }
.wl__done { justify-items: start; }
.wl__done .success__ico { margin: 0; background: var(--ink); color: var(--yellow); }
.wl__done p { color: var(--ink-2); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__stage { justify-self: center; width: min(100%, 520px); }
  .perks__row { grid-template-columns: 1fr 1fr; }
  .perks__row li:nth-child(3) { box-shadow: inset 0 1px 0 var(--line); }
  .perks__row li:nth-child(4) { box-shadow: inset 1px 0 0 var(--line), inset 0 1px 0 var(--line); }
  .sroom__grid { grid-template-columns: 1fr; }
  .sroom__photo { aspect-ratio: 16 / 10; }
  .steps__list { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .steps__list::before { display: none; }
  .faq__grid { grid-template-columns: 1fr; }
  .faq__side { position: static; }
}
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: clamp(170px, 40vw, 260px); }
  .tile, .tile--hero { grid-column: span 1; grid-row: span 1; }
  .tile--hero { grid-column: 1 / -1; grid-row: span 2; }
  .tile--wide { grid-column: 1 / -1; }
  .tile__go { opacity: 1; transform: none; width: 42px; height: 42px; }
  .rail { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; padding-top: 0; gap: 28px; }
  .rail__bar { display: none; }
  .rail__loop, .rail__string { display: none; }
  .gtag { margin-top: 0; }
  .gtag .tag__paper { min-height: 0; }
  .wl { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero__stage { padding: 20px 0 30px 28px; }
  .hero__slab { inset: 12% -4% 4% 30%; border-radius: 32px; }
  .hero__frame { padding: 6px; border-radius: 30px; }
  .hero__photo { border-radius: 24px; }
  .hero__hang { top: auto; bottom: 7%; left: -10px; }
  .hang__string { height: 46px; }
  .hero__tag { --w: 168px; }
  .hero__tag .tag__paper { padding: 36px 14px 14px; }
  .hero__tag .tag__title { font-size: 1.15rem; }
  .hero__tag .tag__note { font-size: 1.12rem; }
  .hero__tag .tag__prices b { font-size: 1.55rem; }
  .hero__tag .tag__prices s { font-size: 1rem; }
  .hero__hint { display: none; }
  .hero__cta .btn { flex: 1 1 100%; }
  .perks__row { grid-template-columns: 1fr; padding: 4px; }
  .perks__row li { padding: 14px 14px; }
  .perks__row li + li, .perks__row li:nth-child(3), .perks__row li:nth-child(4) { box-shadow: inset 0 1px 0 var(--line); }
  .perks__ico { width: 44px; height: 44px; }
  .tile { border-radius: 22px; }
  .tile__label { left: 8px; bottom: 8px; padding: 10px 12px; border-radius: 14px; max-width: calc(100% - 16px); }
  .tile__label b { font-size: 1.45rem; }
  .tile--hero .tile__label b { font-size: 2.2rem; }
  .tile__label small { font-size: 12.5px; }
  .tile:not(.tile--hero):not(.tile--wide) .tile__from { display: none; }
  .tile__go { top: 8px; right: 8px; width: 36px; height: 36px; }
  .tile__go .i { width: 18px; height: 18px; }
  .gtag__letter { font-size: 4.4rem; }
  .gtag .tag__title { font-size: 1.9rem; }
  .sroom { border-radius: 28px; }
  .sroom__cta .btn { flex: 1 1 100%; }
  .strings__stage { height: 300px; }
  .strings__stage canvas { cursor: default; }
  .strings__notes { left: 34px; right: 34px; top: 10px; bottom: auto; flex-direction: row; }
  .strings__notes li { width: 0; display: flex; justify-content: center; line-height: 1; height: auto; }
  .steps__list { grid-template-columns: 1fr; }
  .faq__body p { padding-right: 0; }
  .wl { border-radius: 28px; }
}
