:root {
  --bg: #f4f0e8;
  --bg-2: #eee6d9;
  --card: #faf7f0;
  --sand: #e8dfd0;
  --line: #e2d9c8;
  --ink: #2a2420;
  --muted: #6b6259;
  --gold: #e6c9a0;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; }
em { font-style: italic; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

.eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 0 0 20px; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 30px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); font: 500 14px var(--sans); text-decoration: none; cursor: pointer; transition: transform .15s, background .2s, color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.btn.light { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn.sm { padding: 11px 22px; font-size: 13px; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #b9894e; outline-offset: 2px; }

/* шапка */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(244, 240, 232, .92); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-family: var(--serif); letter-spacing: .24em; text-transform: uppercase; font-size: 15px; text-decoration: none; }
.site-head nav { display: flex; gap: 28px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.site-head nav a { text-decoration: none; color: var(--muted); }
.site-head nav a:hover { color: var(--ink); }

/* hero */
.hero { padding: 72px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(54px, 7vw, 92px); margin-bottom: 28px; }
.hero p.lead { max-width: 440px; color: #3b342e; margin: 0 0 36px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }

.arch-wrap { width: min(330px, 100%); margin-inline: auto; text-align: center; container-type: inline-size; }
.arch { position: relative; aspect-ratio: 3/4.1; border-radius: 50cqw 50cqw 8px 8px; background: var(--sand); padding: 12px; border: 1px solid var(--line); }
.arch-inner { position: relative; height: 100%; border-radius: calc(50cqw - 12px) calc(50cqw - 12px) 4px 4px; overflow: hidden; background: var(--sand); border: 1px solid #cfc4b0; }
.arch-inner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 68px; height: 68px; border-radius: 50%; border: 1px solid var(--ink); background: rgba(250, 247, 240, .92); display: grid; place-items: center; cursor: pointer; transition: transform .2s; }
.play:hover { transform: scale(1.06); }
.play::before { content: ''; margin-left: 4px; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent var(--ink); }
.arch-label { position: absolute; left: 0; right: 0; bottom: 26px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.caption { margin-top: 18px; }
.caption .name { font-family: var(--serif); font-style: italic; font-size: 20px; }
.caption .role { font-size: 12px; color: var(--muted); }

/* секции */
section.block { padding: 88px 0; }
.center { text-align: center; }
.sec-title { font-size: clamp(38px, 5vw, 56px); }
.sec-sub { max-width: 460px; margin: 16px auto 0; font-size: 15px; color: #3b342e; }

/* арки-кабинеты */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.door-wrap { container-type: inline-size; display: flex; }
.door { width: 100%; display: flex; flex-direction: column; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 50cqw 50cqw 8px 8px; padding: 12px 12px 24px; transition: transform .2s, box-shadow .2s; }
.door:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -18px rgba(42, 36, 32, .35); }
.door .pic { aspect-ratio: 1/1.05; border-radius: calc(50cqw - 12px) calc(50cqw - 12px) 4px 4px; background: var(--sand); overflow: hidden; display: grid; place-items: end center; }
.door .pic img { width: 100%; height: 100%; object-fit: cover; }
.ph { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding-bottom: 16px; }
.door h3 { font-size: 22px; margin: 20px 12px 6px; }
.door p { margin: 0 12px 14px; font-size: 13px; color: var(--muted); flex: 1; }
.door .go { margin: 0 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }

/* тёмный блок с товарами */
.dark { background: var(--ink); color: #f4efe6; }
.dark .eyebrow { color: #cdbfa9; }
.dark .head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: 48px; }
.dark .head h2 { font-size: clamp(38px, 5vw, 56px); }
.dark .head p { max-width: 340px; margin: 0; font-size: 14px; color: var(--gold); }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product { background: #2f2823; border: 1px solid #443b34; border-radius: 10px; padding: 14px; display: flex; flex-direction: column; }
.product .pic { aspect-ratio: 1/.92; background: #3a322c; border-radius: 6px; overflow: hidden; display: grid; place-items: center; }
.product .pic img { width: 100%; height: 100%; object-fit: cover; }
.product .ph { padding: 0; color: #b9a98f; }
.product h3 { font-size: 26px; margin: 22px 0 8px; }
.product p { font-size: 13px; color: var(--gold); margin: 0 0 20px; flex: 1; }
.product .row { display: flex; align-items: center; gap: 14px; }
.price { font-size: 17px; margin-right: auto; }
.product .row a.lesson { font-size: 13px; }
.product.on-light { background: var(--card); border-color: var(--line); color: var(--ink); }
.product.on-light .pic { background: var(--sand); }
.product.on-light .ph { color: var(--muted); }
.product.on-light p { color: var(--muted); }

/* финальный блок */
.final { background: var(--bg-2); padding: 96px 0; text-align: center; }
.final h2 { font-size: clamp(44px, 6vw, 68px); margin-bottom: 20px; }
.final p { max-width: 400px; margin: 0 auto 32px; font-size: 15px; color: #3b342e; }
.site-foot { padding: 36px 0; font-size: 12px; color: var(--muted); }
.site-foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* внутренние страницы */
.page-head { padding: 64px 0 40px; text-align: center; }
.page-head h1 { font-size: clamp(44px, 6vw, 72px); }
.page-head p { max-width: 520px; margin: 16px auto 0; color: #3b342e; }
.crumbs { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.crumbs a { text-decoration: none; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-bottom: 72px; }
.post-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(42, 36, 32, .35); }
.post-card .pic { position: relative; aspect-ratio: 16/10; background: var(--sand); display: grid; place-items: center; }
.post-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.post-card .badge { position: absolute; left: 12px; top: 12px; background: rgba(250,247,240,.94); border-radius: 999px; padding: 4px 12px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.post-card .play-mini { position: absolute; width: 46px; height: 46px; border-radius: 50%; background: rgba(250,247,240,.92); border: 1px solid var(--ink); display: grid; place-items: center; }
.post-card .play-mini::before { content: ''; margin-left: 3px; border-style: solid; border-width: 5px 0 5px 9px; border-color: transparent transparent transparent var(--ink); }
.post-card .txt { padding: 18px 20px 22px; }
.post-card h3 { font-size: 24px; margin-bottom: 6px; }
.post-card p { margin: 0; font-size: 13px; color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 40px 0 80px; grid-column: 1/-1; }

/* заказ консультации / видеозвонка */
.order { background: var(--bg-2); padding: 72px 0; }
.order .two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.panel h3 { font-size: 30px; }
.panel p { margin: 0; font-size: 14px; color: var(--muted); }
.panel .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.panel .btn { margin-top: auto; align-self: flex-start; }
label.f { display: grid; gap: 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
label.f input, label.f select, label.f textarea { font: 15px var(--sans); padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); text-transform: none; letter-spacing: 0; }

/* материал */
.post { max-width: 760px; margin: 0 auto; padding: 56px 0 24px; }
.post h1 { font-size: clamp(38px, 5vw, 58px); margin-bottom: 14px; }
.post .summary { color: var(--muted); font-size: 17px; margin: 0 0 32px; }
.player { aspect-ratio: 16/9; width: 100%; border: 0; border-radius: 12px; background: #000; margin-bottom: 36px; }
.prose p { margin: 0 0 1.2em; font-size: 17px; line-height: 1.75; color: #332d28; }
.related { padding: 24px 0 72px; }
.related h2 { font-size: 38px; text-align: center; margin-bottom: 32px; }

/* модальное окно видео */
.modal { position: fixed; inset: 0; background: rgba(20, 16, 14, .86); display: none; place-items: center; z-index: 50; padding: 20px; }
.modal.open { display: grid; }
.modal .box { width: min(900px, 100%); position: relative; }
.modal .close { position: absolute; right: 0; top: -44px; background: none; border: 0; color: #fff; font-size: 32px; cursor: pointer; line-height: 1; }

.course-band { padding: 88px 0; }
.course-band .wrap { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; }
.course-band h2 { font-size: clamp(38px, 5vw, 56px); margin-bottom: 16px; }
.course-band p { max-width: 520px; color: #3b342e; margin: 0 0 28px; }
.course-band .mini-arch { width: 190px; aspect-ratio: 3/4; border-radius: 95px 95px 8px 8px; border: 1px solid #cfc4b0; background: var(--sand); padding: 10px; }
.course-band .mini-arch div { height: 100%; border-radius: 85px 85px 4px 4px; border: 1px solid #cfc4b0; display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 54px; color: var(--muted); }

.kaspi-band { padding: 56px 0; background: var(--bg-2); }
.kaspi-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.kaspi-band h2 { font-size: clamp(34px, 4.5vw, 48px); margin-bottom: 10px; }
.kaspi-band p { max-width: 480px; margin: 0; color: #3b342e; }

@media (max-width: 960px) {
  .doors { grid-template-columns: repeat(2, 1fr); }
  .grid3, .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .hero { padding: 36px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  section.block { padding: 56px 0; }
  .doors, .grid3, .cards, .order .two { grid-template-columns: 1fr; }
  .doors { max-width: 340px; margin-inline: auto; }
  .panel .fields { grid-template-columns: 1fr; }
  .site-head nav { gap: 16px; }
  .site-foot .wrap { flex-direction: column; }
}
.product.on-light .btn.light { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* блок теста на главной */
.quiz-band { background: var(--bg-2); padding: 88px 0; }
.quiz-band .wrap { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.quiz-band h2 { font-size: clamp(38px, 5vw, 56px); margin-bottom: 16px; }
.quiz-band p { max-width: 480px; color: #3b342e; margin: 0 0 28px; }
.quiz-band .mini-arch img { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 85px 85px 4px 4px; }
.quiz-band .mini-arch { width: 190px; aspect-ratio: 3/4; border-radius: 95px 95px 8px 8px; border: 1px solid #cfc4b0; background: var(--sand); padding: 10px; }
.quiz-band .mini-arch div { overflow: hidden; height: 100%; border-radius: 85px 85px 4px 4px; border: 1px solid #cfc4b0; display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 54px; color: var(--muted); }

/* страница теста */
.quiz { max-width: 820px; padding-bottom: 80px; }
.quiz .page-head h1 em { font-style: italic; }
.quiz .progress { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; margin: 48px 0 12px; }
.quiz .progress span { display: block; height: 100%; background: var(--ink); transition: width .35s; }
.quiz .count { font-size: 13px; color: var(--muted); margin: 0 0 28px; }
.quiz .q { font-size: clamp(28px, 4vw, 40px); outline: none; margin-bottom: 10px; }
.quiz .muted-t { color: var(--muted); font-size: 15px; margin: 0; }
.quiz .opts { display: grid; gap: 10px; margin: 26px 0 30px; }
.quiz .opt { text-align: left; font: 16px var(--sans); color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 16px 52px; cursor: pointer; position: relative; transition: border-color .15s, background .15s; }
.quiz .opt::before { content: ''; position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border: 1.5px solid #a89d8d; border-radius: 50%; }
.quiz .opt.multi::before { border-radius: 5px; }
.quiz .opt:hover { border-color: var(--ink); }
.quiz .opt[aria-pressed="true"] { border-color: var(--ink); background: var(--sand); }
.quiz .opt[aria-pressed="true"]::before { background: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 3px var(--sand); }
.quiz .qnav { display: flex; justify-content: space-between; gap: 12px; }
.quiz .btn:disabled { opacity: .35; cursor: not-allowed; }
.quiz .disc { font-size: 13px; color: var(--muted); margin-top: 28px; border-top: 1px solid var(--line); padding-top: 18px; }
.quiz .disc.center { border: 0; }
.quiz .chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.quiz .chip { font-size: 13px; padding: 5px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.quiz .alert { background: var(--card); border-left: 4px solid var(--ink); padding: 18px 22px; border-radius: 0 12px 12px 0; margin: 8px 0 32px; font-size: 15px; }
.quiz .r-h { font-size: 36px; margin: 40px 0 20px; }
.quiz .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.quiz .col-t { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.quiz .step { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 10px; }
.quiz .step-t { font-family: var(--serif); font-size: 22px; margin-bottom: 4px; }
.quiz .step p { margin: 0 0 4px; font-size: 14px; color: var(--muted); }
.quiz .rec { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.quiz .rec.soon { font-size: 13px; color: var(--muted); font-style: italic; justify-content: center; }
.quiz .rec-pic { width: 52px; height: 52px; border-radius: 10px; background: var(--sand); flex: none; overflow: hidden; }
.quiz .rec-pic img { width: 100%; height: 100%; object-fit: cover; }
.quiz .rec-n { flex: 1; font-size: 15px; line-height: 1.35; }
.quiz .rec-n small { display: block; color: var(--muted); font-size: 13px; }
.quiz .gads { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px 16px; }
.quiz .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 36px 0 8px; }
@media (max-width: 720px) {
  .quiz-band .wrap { grid-template-columns: 1fr; }
  .quiz-band .mini-arch { width: 150px; justify-self: center; order: -1; }
  .course-band .wrap { grid-template-columns: 1fr; }
  .course-band .mini-arch { display: none; }
  .quiz .cols, .quiz .gads { grid-template-columns: 1fr; }
}

/* карточки товаров: ссылки, бренд, цена */
.product .pic { text-decoration: none; }
.product h3 a { text-decoration: none; }
.product h3 a:hover { text-decoration: underline; }
.product .brand { display: block; margin-top: 18px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #b9a98f; }
.product.on-light .brand { color: var(--muted); }
.product .brand + h3 { margin-top: 6px; }
.product h3 { font-size: 22px; line-height: 1.2; }
.product p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.price s { font-size: 13px; opacity: .55; margin-right: 4px; }
.product .row { flex-wrap: wrap; row-gap: 10px; }

/* магазин */
.shop { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; padding-bottom: 80px; }
.filters { position: sticky; top: 88px; display: grid; gap: 22px; }
.filters h4 { margin: 0 0 10px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.filters input[type=search], .filters input[type=number], .filters select { width: 100%; font: 14px var(--sans); padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.cat-list { display: grid; gap: 2px; max-height: 340px; overflow: auto; }
.cat-list button { display: flex; justify-content: space-between; gap: 8px; text-align: left; font: 14px var(--sans); background: none; border: 0; color: var(--ink); padding: 7px 10px; border-radius: 8px; cursor: pointer; }
.cat-list button:hover { background: var(--bg-2); }
.cat-list button.on { background: var(--ink); color: var(--bg); }
.cat-list small { opacity: .6; }
.price-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.shop-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.shop-top .cnt { font-size: 14px; color: var(--muted); }
.shop-top select { font: 14px var(--sans); padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.shop-grid .product p { -webkit-line-clamp: 2; }
.reset { background: none; border: 0; font: 13px var(--sans); text-decoration: underline; color: var(--muted); cursor: pointer; padding: 0; justify-self: start; }
.filters-toggle { display: none; }
.chips-on { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chips-on button { font: 13px var(--sans); background: var(--sand); border: 0; border-radius: 999px; padding: 5px 12px; cursor: pointer; }

/* страница товара */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 48px 0 24px; align-items: start; }
.pdp-main { aspect-ratio: 1; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: grid; place-items: center; }
.pdp-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs button { width: 72px; height: 72px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 0; cursor: pointer; overflow: hidden; }
.thumbs button.on { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp h1 { font-size: clamp(32px, 4vw, 48px); margin: 6px 0 14px; }
.pdp .brand { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.pdp .pprice { font-size: 28px; margin: 18px 0; }
.pdp .pprice s { font-size: 18px; opacity: .5; margin-right: 8px; }
.pdp .meta { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.pdp .stock { display: inline-block; font-size: 13px; padding: 3px 12px; border-radius: 999px; background: #e3eddf; margin-bottom: 8px; }
.pdp .stock.out { background: #f1dfd9; }
.pdp .tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 0; }
.pdp .tags a { font-size: 13px; padding: 4px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); text-decoration: none; }
.pdp .descr { margin-top: 36px; }
.pdp .descr h2 { font-size: 30px; margin-bottom: 12px; }
@media (max-width: 860px) {
  .shop { grid-template-columns: 1fr; gap: 16px; }
  .filters { position: static; display: none; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
  .filters.open { display: grid; }
  .filters-toggle { display: inline-flex; }
  .pdp { grid-template-columns: 1fr; gap: 28px; }
}

/* описание товара */
.desc { display: grid; gap: 28px; }
.desc p { margin: 0 0 .8em; font-size: 16px; line-height: 1.7; color: #3b342e; }
.desc-lead p:first-child { font-family: var(--serif); font-size: 24px; line-height: 1.4; color: var(--ink); }
.desc-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.desc-specs div { background: var(--card); padding: 14px 18px; }
.desc-specs dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.desc-specs dd { margin: 0; font-size: 15px; }
.desc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.dsec { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px 12px; }
.dsec h3 { font-size: 24px; margin-bottom: 12px; }
.dsec ul { list-style: none; margin: 0 0 12px; padding: 0; }
.dsec li { position: relative; padding-left: 20px; margin-bottom: 8px; font-size: 15px; line-height: 1.6; color: #3b342e; }
.dsec li::before { content: ''; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: #b9894e; }
.dsec p { font-size: 15px; }
.dsec.usage { background: var(--ink); border-color: var(--ink); }
.dsec.usage h3 { color: #f4efe6; }
.dsec.usage p, .dsec.usage li, .dsec.usage strong { color: #e8dfd0; }
.dsec.caution { background: #fbf3df; border-color: #ecdcae; }
.dcomp { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 0 24px; }
.dcomp summary { cursor: pointer; padding: 16px 0; font-family: var(--serif); font-size: 22px; list-style: none; display: flex; justify-content: space-between; }
.dcomp summary::after { content: '+'; font-family: var(--sans); }
.dcomp[open] summary::after { content: '–'; }
.dcomp p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.pdp .descr .desc-lead p { max-width: none; }
.descr-wrap { max-width: 980px; margin: 24px auto 0; padding-bottom: 24px; }
.descr-wrap > h2 { font-size: clamp(32px, 4vw, 44px); text-align: center; margin-bottom: 28px; }
.desc-prose p { margin: 0 0 .8em; }
.desc ul { list-style: none; margin: 0 0 16px; padding: 0; }
.desc-lead ul, .desc-prose ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 4px 24px; }
.desc li { position: relative; padding-left: 20px; margin-bottom: 8px; font-size: 15px; line-height: 1.6; color: #3b342e; }
.desc li::before { content: ''; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: #b9894e; }
.specs { margin: 0 0 14px; display: grid; }
.specs div { display: grid; grid-template-columns: minmax(110px, 40%) 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.specs div:last-child { border-bottom: 0; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; color: var(--ink); }
.dsec.usage .specs div { border-color: #4a413a; } .dsec.usage .specs dt { color: #b9a98f; } .dsec.usage .specs dd { color: #f4efe6; }
.dsec.wide { grid-column: 1 / -1; }
.dsec.wide .specs { grid-template-columns: 1fr 1fr; column-gap: 48px; }
@media (max-width: 720px) { .dsec.wide .specs { grid-template-columns: 1fr; } }

/* адаптивные карточки разделов: заполняют ряд, на узких экранах — в одну колонку */
.desc-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.desc-grid > .dsec { flex: 1 1 min(100%, 300px); min-width: 0; }
.desc-grid > .dsec.wide { flex-basis: 100%; }
.dsec { overflow-wrap: anywhere; }
.desc-lead ul, .desc-prose ul { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.specs div { grid-template-columns: minmax(100px, 38%) minmax(0, 1fr); }
@media (max-width: 720px) {
  .dsec { padding: 18px 18px 8px; }
  .dsec h3 { font-size: 22px; }
  .desc-lead p:first-child { font-size: 21px; }
  .dcomp { padding: 0 18px; }
  .desc-grid > .dsec { flex-basis: 100%; }
}

/* тест: результат не вылезает на узких экранах */
.quiz .cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.quiz .cols > div, .quiz .step, .quiz .rec-n { min-width: 0; }
.quiz .rec-n, .quiz .step p { overflow-wrap: anywhere; }
.quiz .rec { flex-wrap: wrap; }
@media (max-width: 720px) { .quiz .cols, .quiz .gads { grid-template-columns: minmax(0, 1fr); } }

/* статья: заголовки, списки, карточки товаров в тексте */
.prose h2 { font-size: 32px; margin: 1.6em 0 .5em; }
.prose ul { list-style: none; padding: 0; margin: 0 0 1.3em; }
.prose li { position: relative; padding-left: 22px; margin-bottom: 8px; font-size: 17px; line-height: 1.7; color: #332d28; }
.prose li::before { content: ''; position: absolute; left: 3px; top: .75em; width: 6px; height: 6px; border-radius: 50%; background: #b9894e; }
.embed { display: flex; align-items: center; gap: 16px; margin: 1.6em 0; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid #b9894e; border-radius: 12px; }
.embed .e-pic { flex: none; width: 76px; height: 76px; border-radius: 10px; background: #fff; border: 1px solid var(--line); overflow: hidden; display: block; }
.embed .e-pic img { width: 100%; height: 100%; object-fit: contain; }
.embed .e-n { flex: 1; min-width: 0; display: grid; gap: 2px; }
.embed .e-n small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.embed .e-n a { font-family: var(--serif); font-size: 21px; line-height: 1.2; text-decoration: none; }
.embed .e-n a:hover { text-decoration: underline; }
.embed .e-n span { font-size: 14px; color: var(--muted); }
.embed .btn { flex: none; }
@media (max-width: 560px) {
  .embed { flex-wrap: wrap; } .embed .e-pic { width: 64px; height: 64px; } .embed .btn { width: 100%; }
}

/* обложки материалов: фото товаров показываем целиком, высота карточек ровная */
.post-card .pic { overflow: hidden; }
.post-card .pic img { position: absolute; inset: 0; }
.post-card .pic.prod { background: #fff; }
.post-card .pic.prod img { object-fit: contain; padding: 12px; }
.post .cover { width: 100%; aspect-ratio: 16/9; border-radius: 12px; margin-bottom: 36px; object-fit: cover; }
.post .cover.prod { object-fit: contain; background: #fff; padding: 16px; }
.related .grid3 { display: flex; flex-wrap: wrap; justify-content: center; }
.related .grid3 > * { flex: 0 1 calc(33.333% - 16px); min-width: 260px; }

/* тест: расширенный результат */
.quiz .r-p { font-size: 16px; line-height: 1.75; color: #3b342e; max-width: none; margin: 0 0 18px; }
.quiz .step p.how { font-size: 13px; color: #8a7f72; border-left: 2px solid var(--line); padding-left: 10px; margin: 6px 0 4px; }
.quiz .tcard { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; min-width: 0; }
.quiz .tcard h3 { font-size: 24px; margin-bottom: 10px; }
.quiz .tcard.avoid { border-left: 3px solid #c98f7d; }
.quiz .tgrid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.quiz .tlist { list-style: none; margin: 0; padding: 0; }
.quiz .tlist li { position: relative; padding-left: 20px; margin-bottom: 8px; font-size: 15px; line-height: 1.6; color: #3b342e; overflow-wrap: anywhere; }
.quiz .tlist li::before { content: ''; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: #b9894e; }
.quiz .alert .tlist { margin-top: 6px; }
.quiz .actgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.quiz .act { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: grid; gap: 4px; }
.quiz .act b { font-family: var(--serif); font-weight: 500; font-size: 20px; }
.quiz .act span { font-size: 14px; color: var(--muted); line-height: 1.55; }
.quiz .arts { display: grid; gap: 10px; }
.quiz .art { display: grid; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; text-decoration: none; transition: border-color .15s; }
.quiz .art:hover { border-color: var(--ink); }
.quiz .art b { font-family: var(--serif); font-weight: 500; font-size: 21px; }
.quiz .art span { font-size: 13px; color: var(--muted); }
@media (max-width: 720px) { .quiz .tgrid2 { grid-template-columns: minmax(0, 1fr); } }

/* салон: лента материалов */
.salon-filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 32px; }
.salon-filters button { font: inherit; font-size: 13px; padding: 7px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s; }
.salon-filters button:hover { border-color: var(--ink); }
.salon-filters button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.salon-feature { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: center; margin: 0 0 48px; }
.salon-feature .player { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 10px; background: #000; display: block; }
.salon-feature h2 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 12px; }
.salon-feature p { color: #3b342e; }
.post-card .meta { display: block; margin-top: 10px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 800px) { .salon-feature { grid-template-columns: 1fr; gap: 20px; } }

/* кнопка «Войти в салон» в шапке */
.site-head nav { align-items: center; }
.site-head nav a.nav-btn { color: var(--bg); background: var(--ink); padding: 9px 18px; border-radius: 999px; letter-spacing: .1em; }
.site-head nav a.nav-btn:hover { color: var(--bg); opacity: .85; }
@media (max-width: 560px) { .site-head nav a.nav-btn { padding: 7px 12px; font-size: 11px; letter-spacing: .06em; } }

/* приветственное видео */
.welcome { padding: 0 0 88px; }
.welcome .wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
.welcome-video { position: relative; aspect-ratio: 16/9; border-radius: 22px; overflow: hidden; background: var(--sand); border: 1px solid #cfc4b0; box-shadow: 0 24px 60px -28px rgba(42, 36, 32, .45); cursor: pointer; }
.welcome-video img, .welcome-video .wvid { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; background: #000; }
.welcome-video::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(42, 36, 32, .28), transparent 45%); pointer-events: none; transition: opacity .2s; }
.welcome-video.on { cursor: default; }
.welcome-video.on::after { display: none; }
.wplay { position: absolute; z-index: 1; left: 50%; top: 50%; translate: -50% -50%; width: 84px; height: 84px; border-radius: 50%; background: rgba(250, 247, 240, .94); display: grid; place-items: center; animation: wpulse 2.6s ease-out infinite; transition: transform .2s; }
.wplay::before { content: ''; margin-left: 5px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--ink); }
.welcome-video:hover .wplay { transform: scale(1.07); }
.wtime { position: absolute; z-index: 1; right: 14px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(42, 36, 32, .6); color: #fff; font-size: 12px; letter-spacing: .06em; }
.welcome-video:focus-visible { outline: 2px solid #b9894e; outline-offset: 3px; }
@keyframes wpulse { 0% { box-shadow: 0 0 0 0 rgba(250, 247, 240, .55); } 70%, 100% { box-shadow: 0 0 0 26px rgba(250, 247, 240, 0); } }
.welcome-text h2 { font-size: clamp(34px, 4vw, 48px); margin-bottom: 16px; }
.welcome-text p { color: #3b342e; max-width: 380px; margin: 0 0 26px; }
@media (max-width: 860px) { .welcome { padding-bottom: 56px; } .welcome .wrap { grid-template-columns: 1fr; gap: 28px; } .welcome-text { text-align: center; } .welcome-text p { margin-inline: auto; } .wplay { width: 68px; height: 68px; } }
@media (prefers-reduced-motion: reduce) { .wplay { animation: none; } }

/* шапка на телефоне: кнопка «Войти в салон» не переносится на две строки */
.site-head nav a.nav-btn { white-space: nowrap; line-height: 1.2; }
@media (max-width: 560px) {
  .site-head .wrap { gap: 10px; }
  .logo { font-size: 13px; letter-spacing: .16em; white-space: nowrap; }
  .site-head nav { gap: 12px; font-size: 11px; letter-spacing: .06em; white-space: nowrap; }
  .site-head nav a.nav-btn { padding: 9px 14px; font-size: 11px; }
}
@media (max-width: 400px) { .site-head nav a[href$="#cabinets"] { display: none; } }

/* салон: закрытые двери, раздвигаются по клику */
.salon-tile .pic { position: relative; background: url(uploads/video/welcome-poster.jpg) center / cover; place-items: stretch; transform: translateZ(0); }
.salon-tile .pic::before { content: ''; position: absolute; inset: 0; background: rgba(250, 247, 240, .0); transition: background .9s ease; z-index: 1; pointer-events: none; }
.sd { position: absolute; z-index: 2; top: 0; bottom: 0; width: 50.5%; background: linear-gradient(180deg, #f3ecde, #e8dfd0); transition: transform .95s cubic-bezier(.77, 0, .18, 1); will-change: transform; }
.sd::before { content: ''; position: absolute; inset: 14px 10px; border: 1px solid #c9a97a; opacity: .75; }
.sd.l { left: 0; border-right: 1px solid #c9a97a; }
.sd.l::before { border-radius: 999px 0 0 0; border-right-width: 1px; }
.sd.r { right: 0; border-left: 1px solid #c9a97a; }
.sd.r::before { border-radius: 0 999px 0 0; }
.sd::after { content: ''; position: absolute; top: 56%; width: 5px; height: 34px; border-radius: 3px; background: #b9894e; }
.sd.l::after { right: 16px; } .sd.r::after { left: 16px; }
.salon-tile.open .sd.l { transform: translateX(-102%); }
.salon-tile.open .sd.r { transform: translateX(102%); }
.salon-tile.open .pic::before { background: rgba(250, 247, 240, .35); }
.salon-tile:hover { transform: none; }
@media (prefers-reduced-motion: reduce) { .sd { transition: none; } }
.salon-hello { margin: 0 auto 40px; max-width: 760px; }

/* ---------- Школа составов ---------- */
.s-price { font-family: var(--serif); font-size: 34px; margin-top: 18px !important; color: var(--ink) !important; }
.s-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; padding-bottom: 80px; align-items: start; }
.s-h { font-size: 34px; margin-bottom: 16px; }
.mod { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 0 20px; }
.mod summary { cursor: pointer; padding: 16px 0; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: baseline; list-style: none; }
.mod summary::-webkit-details-marker { display: none; }
.mod .mn { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.mod small { color: var(--muted); }
.mod ol { margin: 0 0 16px; padding-left: 22px; color: #3b342e; font-size: 15px; }
.mod li { margin-bottom: 6px; }
.tag-free { font-style: normal; font-size: 11px; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: #e3ecdf; color: #3f6b4a; }
.s-tabs { display: flex; border: 1px solid var(--ink); border-radius: 999px; overflow: hidden; align-self: flex-start; }
.s-tabs button { border: 0; background: none; padding: 9px 20px; cursor: pointer; font: 500 13px var(--sans); color: var(--ink); }
.s-tabs button.on { background: var(--ink); color: var(--bg); }
#authbox label.f, .s-pay label.f { display: grid; gap: 5px; font-size: 13px; color: var(--muted); }
#authbox input { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; background: #fff; font: inherit; color: var(--ink); width: 100%; }
#authbox form { display: grid; gap: 14px; }
.s-err { margin: 0; color: #a63d2f !important; font-size: 14px !important; }
.s-note { font-size: 13px !important; }
.s-steps { margin: 22px 0 0; padding-left: 20px; color: #3b342e; font-size: 14px; display: grid; gap: 8px; }
.s-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 28px 0 20px; }
.s-top-r { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.s-pill { font-size: 12px; padding: 5px 14px; border-radius: 999px; background: var(--sand); }
.s-pill.ok { background: #e3ecdf; color: #3f6b4a; }
.s-pay { flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 24px; background: #fbf3df; border-color: #ecdcae; }
.s-pay h3 { font-size: 26px; margin-bottom: 6px; }
.s-pay p { max-width: 560px; color: #3b342e; }
.s-pay-b { display: flex; gap: 10px; flex-wrap: wrap; }
.s-layout { display: grid; grid-template-columns: 300px 1fr; gap: 40px; padding-bottom: 80px; align-items: start; }
.s-side { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; }
.s-side > summary { list-style: none; margin-bottom: 12px; }
.s-side > summary::-webkit-details-marker { display: none; }
.smh { font-weight: 600; font-size: 14px; margin: 16px 0 6px; }
.smh span { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.sl { display: flex; gap: 10px; align-items: baseline; padding: 7px 10px; border-radius: 8px; text-decoration: none; font-size: 14px; color: #3b342e; }
.sl i { font-style: normal; font-size: 12px; min-width: 20px; color: var(--muted); }
.sl:hover { background: var(--sand); }
.sl.on { background: var(--ink); color: var(--bg); }
.sl.on i { color: var(--gold); }
.sl.lock { opacity: .6; }
.s-main { min-width: 0; }
.lesson-head { padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.lesson-head h1 { font-size: clamp(36px, 5vw, 54px); margin-top: 6px; }
.lesson-head .sub { color: var(--muted); margin: 10px 0 0; }
.lesson-head .lead { margin: 14px 0 0; font-size: 17px; color: #3b342e; }
.s-adv { color: #8c6f4c; }
.player { width: 100%; aspect-ratio: 16/9; border: 1px solid var(--line); border-radius: 8px; background: #000; margin-bottom: 24px; }
.prose h3 { font-size: 28px; margin: 32px 0 10px; }
.prose p { margin: 0 0 14px; max-width: 68ch; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; max-width: 66ch; }
.prose li { margin-bottom: 6px; }
.prose mark { background: #e9e0d2; color: var(--ink); padding: 0 3px; border-radius: 2px; }
.prose .inci { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13.5px; background: var(--sand); border-radius: 6px; padding: 14px 16px; line-height: 1.7; margin: 0 0 16px; overflow-wrap: anywhere; }
.prose .note { border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 16px 18px; margin: 0 0 16px; }
.prose .note .eyebrow { display: block; margin-bottom: 4px; }
.prose .flag { border: 1px solid #9a3b2e; background: #f4dfd9; border-radius: 8px; padding: 16px 18px; margin: 16px 0; }
.prose .tw { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 8px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 520px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--card); }
.prose tr:last-child td { border-bottom: 0; }
.prose .ev { display: inline-block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.prose .ev.hi { background: #e3ecdf; color: #3f6b4a; }
.prose .ev.mid { background: #f3e6d2; color: #8a5a1e; }
.prose .ev.lo { background: #f4dfd9; color: #9a3b2e; }
.take { margin: 28px 0 0; background: var(--ink); color: var(--bg); border-radius: 10px; padding: 24px 26px; }
.take h3 { font-size: 26px; margin: 0 0 10px; }
.take ul { margin: 0; padding-left: 20px; }
.take li { margin-bottom: 6px; }
.s-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.s-locked { text-align: center; padding: 60px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.s-locked .big { font-size: 44px; margin-bottom: 8px; }
.s-locked h2 { font-size: 34px; margin-bottom: 10px; }
@media (max-width: 860px) {
  .s-grid, .s-layout { grid-template-columns: 1fr; gap: 24px; }
  .s-side { position: static; max-height: none; }
  .site-head nav { gap: 14px; }
}

.s-author { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; margin-bottom: 80px; }
.s-author img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; object-position: 50% 15%; border-radius: 8px; }
.s-author h2 { font-size: 36px; margin-bottom: 8px; }
.s-author p { margin: 0 0 10px; color: #3b342e; }
@media (max-width: 640px) { .s-author { grid-template-columns: 1fr; justify-items: center; } .s-author img { max-width: 260px; } .s-author > div { justify-self: stretch; } }

/* бургер-меню на телефоне */
.burger { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.site-head.open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-head.open .burger span:nth-child(2) { opacity: 0; }
.site-head.open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 720px) {
  .burger { display: flex; }
  .site-head .wrap { position: relative; }
  .site-head nav, .site-head nav[id] { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 18px; background: var(--bg); border-bottom: 1px solid #cfc4b0; font-size: 13px; letter-spacing: .12em; white-space: normal; }
  .site-head.open nav { display: flex; }
  .site-head nav a { padding: 14px 4px; border-bottom: 1px solid #e4dccb; }
  .site-head nav a.nav-btn { order: 5; margin-top: 14px; padding: 14px; text-align: center; border-bottom: 0; font-size: 13px; }
  .site-head nav a[href$="#cabinets"] { display: block; }
}

/* тест кожи головы */
.scalp-hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: 0; margin-top: 32px; border: 1px solid #cfc4b0; border-radius: 6px; overflow: hidden; background: #fffdf9; }
.scalp-hero .sh-pic { background: var(--sand); min-height: 100%; }
.scalp-hero .sh-pic img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.scalp-hero .sh-txt { padding: 36px 32px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.scalp-hero h1 { font-size: clamp(32px, 4.5vw, 44px); margin: 0; }
.scalp-hero p { margin: 0; color: #3b342e; }
.scalp-hero .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; border-block: 1px solid #e4dccb; padding-block: 16px; }
.scalp-hero .facts div { display: flex; flex-direction: column; gap: 2px; }
.scalp-hero .facts b { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.scalp-hero .facts span { font-size: 12px; color: var(--muted); }
.scalp-hero .btn { align-self: flex-start; }
.author-card { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; border-top: 1px solid #e4dccb; padding-top: 18px; }
.author-card img { width: 96px; height: 120px; object-fit: cover; object-position: center 15%; border-radius: 4px; display: block; }
.author-card b { font-family: var(--serif); font-size: 20px; font-weight: 600; display: block; }
.author-card span { font-size: 13px; color: var(--muted); }
.setpic { background: #fff; border: 1px solid #e4dccb; border-radius: 6px; display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 16px; padding: 12px 16px 12px 8px; margin-top: 12px; }
.setpic img { width: 150px; height: 150px; object-fit: contain; display: block; }
.setpic div { display: flex; flex-direction: column; gap: 4px; }
.setpic span { font-size: 13px; color: var(--muted); }
.routine { display: flex; flex-direction: column; margin-top: 8px; }
.routine .prod { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding-block: 18px; border-top: 1px solid #e4dccb; }
.routine .prod:first-child { border-top: 0; }
.routine .prod .n { font-family: var(--serif); font-size: 30px; color: #b9894e; line-height: 1; }
.routine .prod > div { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.routine .prod p { margin: 0; }
.routine .prod .how { font-size: 14px; color: var(--muted); }
.routine .prod figure { margin: 4px 0 0; background: #fff; border-radius: 4px; max-width: 260px; }
.routine .prod figure img { display: block; width: 100%; height: auto; }
.routine .prod figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; padding: 0 4px 6px; }
.routine .plink { align-self: flex-start; color: #7a5a30; font-weight: 600; font-size: 14px; text-decoration: none; border-bottom: 1px solid currentColor; }
@media (max-width: 720px) {
  .scalp-hero { grid-template-columns: 1fr; }
  .scalp-hero .sh-pic { height: 300px; }
  .scalp-hero .sh-txt { padding: 24px 18px; }
  .setpic { grid-template-columns: 96px 1fr; }
  .setpic img { width: 96px; height: 96px; }
}
/* плашка теста в кабинете */
.cab-test { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 36px; padding: 28px 32px; border-radius: 16px; background: var(--bg-2); border: 1px solid #cfc4b0; }
.cab-test h3 { font-family: var(--serif); font-size: 28px; font-weight: 500; margin: 0 0 6px; }
.cab-test p { margin: 0; color: #3b342e; max-width: 520px; }
@media (max-width: 720px) { .cab-test { flex-direction: column; align-items: flex-start; padding: 22px 20px; } }

/* акции */
.product .pic { position: relative; }
.sale-badge { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 4px 10px; border-radius: 999px; background: #b3382c; color: #fff; font: 600 13px var(--sans); letter-spacing: .02em; }
.product .price s { color: var(--muted); font-size: .85em; margin-right: 4px; }
.product .price { color: inherit; }
.sale-band { background: var(--bg-2); padding: 88px 0; }
.sale-band .head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.sale-band h2 { font-size: clamp(38px, 5vw, 56px); margin: 0; }
.sale-band .head p { max-width: 420px; margin: 0; color: #3b342e; }
.sale-band .shop-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .sale-band .shop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sale-band { padding: 56px 0; } .sale-band .shop-grid { grid-template-columns: 1fr; } }
.shop-tabs { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.shop-tabs button { font: 500 14px var(--sans); padding: 10px 20px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.shop-tabs button.on { background: var(--ink); color: var(--bg); }
.shop-tabs button.sale.on { background: #b3382c; border-color: #b3382c; }
.shop-tabs button small { opacity: .7; margin-left: 4px; }

/* гайд в кабинете */
.cab-guide { display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: center; margin: 0 0 36px; padding: 24px 28px; border-radius: 16px; background: var(--card); border: 1px solid #cfc4b0; }
.cab-guide img { width: 150px; aspect-ratio: 4/5; object-fit: cover; border-radius: 10px; box-shadow: 0 14px 30px -18px rgba(42, 36, 32, .6); }
.cab-guide h3 { font-family: var(--serif); font-size: 28px; font-weight: 500; margin: 0 0 8px; }
.cab-guide p { margin: 0 0 14px; color: #3b342e; max-width: 560px; }
.cab-guide .g-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 560px) { .cab-guide { grid-template-columns: 1fr; justify-items: start; padding: 20px; } .cab-guide img { width: 120px; } }

/* ---------- ярче и нежнее ---------- */
:root { --rose: #4A86C5; --rose-2: #7FB0E3; --peach: #A9CBEE; --blush: #EEE5D6; }

/* заголовок на главной */
.hero { position: relative; }
.hero::before { content: ''; position: absolute; right: -120px; top: -80px; width: 620px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(111, 163, 216, .28), rgba(217, 180, 138, .14) 50%, transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; }
.hero h1 { font-weight: 300; font-size: clamp(56px, 7.4vw, 100px); line-height: 1.02; letter-spacing: -.01em; color: #3a2a30; }
.hero h1 em { display: inline-block; font-weight: 300; font-style: italic; padding-right: .06em;
  background: linear-gradient(100deg, #4A86C5 0%, #7FB0E3 45%, #f3a56b 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 18px rgba(63, 120, 181, .25)); }
.hero .eyebrow { color: var(--rose); font-weight: 600; }
.hero .lead { color: #4a3b40; }

/* акционный баннер на главной */
.promo { padding: 36px 0; }
.promo .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center; padding: 48px 56px; border-radius: 28px; overflow: hidden; position: relative;
  background: linear-gradient(120deg, #4A86C5 0%, #6FA3D8 45%, #A9CBEE 100%); color: #fff; box-shadow: 0 30px 60px -30px rgba(63, 120, 181, .6); }
.promo .wrap::before { content: ''; position: absolute; width: 520px; aspect-ratio: 1; right: -140px; top: -180px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.promo .wrap::after { content: ''; position: absolute; width: 300px; aspect-ratio: 1; left: 38%; bottom: -170px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.promo-txt { position: relative; z-index: 1; }
.promo-pill { display: inline-block; padding: 6px 16px; border-radius: 999px; background: #fff; color: var(--rose); font: 700 12px var(--sans); letter-spacing: .16em; text-transform: uppercase; animation: promo-pulse 2.4s ease-in-out infinite; }
@keyframes promo-pulse { 50% { transform: scale(1.06); } }
.promo h2 { font-size: clamp(36px, 5vw, 58px); font-weight: 400; margin: 16px 0 4px; color: #fff; }
.promo h2 em { font-weight: 400; }
.promo-big { font-family: var(--serif); font-size: clamp(64px, 11vw, 120px); font-weight: 500; line-height: 1; margin: 0 0 8px; text-shadow: 0 8px 24px rgba(40, 28, 20, .25); }
.promo-sub { max-width: 440px; margin: 0 0 24px; color: #F2F7FD; }
.promo .promo-btn { background: #fff; color: var(--rose); border-color: #fff; font-weight: 700; }
.promo .promo-btn:hover { background: #F2F7FD; }
.promo-pics { position: relative; z-index: 1; display: flex; justify-content: center; align-items: center; min-height: 260px; text-decoration: none; }
.pp { position: relative; width: 170px; height: 170px; border-radius: 50%; background: #fff; border: 5px solid #fff; box-shadow: 0 18px 36px -12px rgba(40, 28, 20, .5); overflow: hidden; margin-left: -34px; transition: transform .3s; }
.pp:first-child { margin-left: 0; }
.pp img { width: 100%; height: 100%; object-fit: cover; }
.pp b { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); padding: 3px 12px; border-radius: 999px 999px 0 0; background: #8A4B2A; color: #fff; font: 700 14px var(--sans); }
.pp1 { transform: translateY(26px); } .pp2 { transform: translateY(-14px); } .pp3 { transform: translateY(20px); }
.promo-pics:hover .pp { transform: translateY(-6px) scale(1.04); }
@media (max-width: 860px) {
  .promo .wrap { grid-template-columns: 1fr; padding: 32px 24px; }
  .promo-pics { min-height: 200px; }
  .pp { width: 120px; height: 120px; margin-left: -26px; }
}

/* яркая плашка акций в магазине */
.sale-strip { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; width: 100%; margin: 0 0 18px; padding: 16px 24px; border: 0; border-radius: 16px; text-align: left; cursor: pointer; font: 500 15px var(--sans); color: #fff;
  background: linear-gradient(110deg, #4A86C5, #7FB0E3 55%, #A9CBEE); box-shadow: 0 16px 34px -18px rgba(63, 120, 181, .7); }
.sale-strip b { font: 500 26px var(--serif); }
.sale-strip span { flex: 1; min-width: 160px; opacity: .95; }
.sale-strip i { font-style: normal; font-weight: 700; padding: 8px 18px; border-radius: 999px; background: #fff; color: var(--rose); }
.sale-strip.on { cursor: default; }
.shop-tabs button.sale { border-color: var(--rose); color: var(--rose); font-weight: 700; }
.shop-tabs button.sale.on { background: linear-gradient(110deg, #4A86C5, #7FB0E3); border-color: transparent; color: #fff; }
.sale-badge { background: linear-gradient(110deg, #4A86C5, #6FA3D8); box-shadow: 0 6px 14px -4px rgba(63, 120, 181, .6); font-size: 14px; }
.product .price s { color: #a88b93; }

/* яркая плашка теста в кабинете */
.cab-test { display: grid; grid-template-columns: 1fr 280px; gap: 32px; align-items: center; padding: 0; overflow: hidden; border: 0; border-radius: 24px;
  background: linear-gradient(115deg, #EEE5D6 0%, #ffd3c2 100%); box-shadow: 0 24px 50px -30px rgba(63, 120, 181, .55); }
.ct-txt { padding: 36px 0 36px 44px; }
.ct-pill { display: inline-block; padding: 5px 14px; border-radius: 999px; background: var(--rose); color: #fff; font: 700 12px var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.cab-test h3 { font-size: clamp(32px, 4vw, 44px); font-weight: 400; margin: 14px 0 10px; color: #3a2a30; }
.cab-test p.x, .ct-txt p { color: #5a4249; max-width: 440px; margin: 0 0 20px; }
.cab-test .ct-btn { background: var(--rose); border-color: var(--rose); color: #fff; font-weight: 700; box-shadow: 0 12px 24px -12px rgba(63, 120, 181, .8); }
.cab-test .ct-btn:hover { background: #346aa3; }
.ct-pic { align-self: stretch; min-height: 280px; position: relative; }
.ct-pic::before { content: ''; position: absolute; inset: 24px 24px 0 8px; border-radius: 200px 200px 0 0; background: rgba(255, 255, 255, .55); }
.ct-pic img { position: absolute; inset: 24px 24px 0 8px; width: calc(100% - 32px); height: calc(100% - 24px); object-fit: cover; object-position: 50% 15%; border-radius: 200px 200px 0 0; border: 5px solid #fff; border-bottom: 0; }
@media (max-width: 720px) {
  .cab-test { grid-template-columns: 1fr; padding: 0; }
  .ct-txt { padding: 28px 24px 8px; }
  .ct-pic { min-height: 260px; }
}

/* ретрит в кабинете */
.retreat { margin: 0 0 44px; }
.rt-head { text-align: center; max-width: 640px; margin: 0 auto 24px; }
.rt-head h2 { font-size: clamp(36px, 5vw, 52px); font-weight: 400; margin: 6px 0 10px; }
.rt-head p { margin: 0; color: #3b342e; }
.rt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.rt-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 32px 30px; border-radius: 22px; color: #fff; text-decoration: none; overflow: hidden; min-height: 260px; transition: transform .25s, box-shadow .25s; }
.rt-card:hover { transform: translateY(-4px); }
.rt-card::before { content: ''; position: absolute; width: 320px; aspect-ratio: 1; right: -110px; top: -130px; border-radius: 50%; background: rgba(255, 255, 255, .13); }
.rt-0 { background: linear-gradient(135deg, #1a1738 0%, #3a2f78 55%, #7b5ea7 100%); box-shadow: 0 26px 50px -30px rgba(58, 47, 120, .8); }
.rt-1 { background: linear-gradient(135deg, #5f93c9 0%, #8DB7E3 50%, #e9cfa5 130%); box-shadow: 0 26px 50px -30px rgba(95, 147, 201, .8); }
.rt-tag { align-self: flex-start; padding: 5px 14px; border-radius: 999px; background: rgba(255, 255, 255, .2); font: 700 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.rt-card h3 { font-size: clamp(36px, 4vw, 48px); font-weight: 400; margin: 6px 0 0; color: #fff; }
.rt-card p { margin: 0; max-width: 420px; color: rgba(255, 255, 255, .92); }
.rt-go { margin-top: auto; align-self: flex-start; padding: 10px 22px; border-radius: 999px; background: #fff; color: #2a2420; font-weight: 700; font-size: 14px; }
.rt-note { margin: 14px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
@media (max-width: 720px) { .rt-grid { grid-template-columns: 1fr; } .rt-card { min-height: 0; padding: 26px 22px; } }

/* Ретрит зал: дверь, как у салона, но ночная */
.retreat-tile .pic { background: radial-gradient(circle at 50% 55%, #7fb0e3 0%, #3f78b5 38%, #2a2038 100%); position: relative; overflow: hidden; place-items: stretch; }
.retreat-tile .rt-stars { position: absolute; inset: 0; opacity: .85; background-image:
  radial-gradient(2px 2px at 20% 30%, #fff, transparent), radial-gradient(2px 2px at 70% 20%, #fff, transparent), radial-gradient(1.5px 1.5px at 40% 70%, #fff, transparent),
  radial-gradient(2px 2px at 85% 62%, #fff, transparent), radial-gradient(1.5px 1.5px at 12% 78%, #fff, transparent), radial-gradient(1.5px 1.5px at 58% 44%, #fff, transparent); animation: rt-twinkle 4s ease-in-out infinite alternate; }
@keyframes rt-twinkle { to { opacity: .35; } }
.retreat-tile .rt-orb { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 0; font-size: 84px; line-height: 1; color: #fff; text-shadow: 0 0 40px rgba(255, 255, 255, .8), 0 0 90px #8db7e3; animation: rt-pulse 3.4s ease-in-out infinite; }
@keyframes rt-pulse { 50% { transform: scale(1.18); opacity: .8; } }
.retreat-tile .sd { background: linear-gradient(180deg, #5a3626, #3b2418); }
.retreat-tile .sd::before, .retreat-tile .sd.l, .retreat-tile .sd.r { border-color: #d9b48a; }
.retreat-tile .sd::after { background: #d9b48a; }
.retreat-tile.open .pic::before { background: rgba(255, 255, 255, .25); }
.doors > .door-wrap:last-child:nth-child(3n + 1) { grid-column: 2; }
@media (max-width: 960px) {
  .doors > .door-wrap:last-child:nth-child(3n + 1) { grid-column: auto; }
  .doors > .door-wrap:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 8px); justify-self: center; }
}
@media (max-width: 720px) { .doors > .door-wrap:last-child:nth-child(odd) { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .retreat-tile .rt-stars, .retreat-tile .rt-orb { animation: none; } }

/* Wellness зал: дверь с мятным небом и сетка дверей 3+3+2 */
.door.door-wellness .pic { background: radial-gradient(circle at 50% 60%, #fff6e0 0%, #d9b48a 45%, #b9d3ee 130%); }
.door-wellness .sd { background: linear-gradient(180deg, #f6efe2, #e2d4bd); }
.door-wellness .sd::before, .door-wellness .sd.l, .door-wellness .sd.r { border-color: #b98a5e; }
.door-wellness .sd::after { background: #b98a5e; }
.door-wellness .rt-orb { text-shadow: 0 0 30px rgba(255, 255, 255, .9); }
.door-wellness .rt-stars { opacity: .35; }
.rt-grid.one { grid-template-columns: 1fr; }
.rt-grid.one .rt-card { min-height: 220px; }
.bd-shelf { margin: 8px 0 56px; }
.rt-h2 { font-size: clamp(30px, 4vw, 42px); text-align: center; margin: 0 0 22px; }
@media (min-width: 961px) {
  .doors { grid-template-columns: repeat(6, 1fr); }
  .doors > .door-wrap { grid-column: span 2; }
  .doors > .door-wrap:last-child:nth-child(3n + 1) { grid-column: 3 / span 2; }
  .doors > .door-wrap:nth-last-child(2):nth-child(3n + 1) { grid-column: 2 / span 2; }
}

/* личный кабинет клиента (Altegio.me) */
.cab-account { display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: center; margin: 0 0 36px; padding: 30px 34px; border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.ca-ico { width: 120px; height: 120px; border-radius: 28px; display: grid; place-items: center; font-size: 56px; background: var(--g1); box-shadow: 0 22px 36px -20px rgba(63, 120, 181, .8); animation: mv-bob 5s ease-in-out infinite; }
.ca-txt h3 { font-size: clamp(28px, 3.6vw, 38px); margin: 12px 0 8px; }
.ca-txt p { margin: 0 0 12px; color: #5a4636; max-width: 560px; }
.ca-list { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14.5px; }
.ca-list li { padding-left: 26px; position: relative; }
.ca-list li::before { content: '✓'; position: absolute; left: 0; color: #4a86c5; font-weight: 700; }
.ca-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 720px) { .cab-account { grid-template-columns: 1fr; padding: 24px 20px; justify-items: start; } .ca-ico { width: 84px; height: 84px; font-size: 40px; border-radius: 22px; } }

/* код доступа к школе */
.s-pay { flex-wrap: wrap; }
.s-code { flex: 1 0 100%; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.s-code-row { display: flex; gap: 10px; margin-top: 6px; }
.s-code input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; text-align: center; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 16px; }

/* подарочный сертификат в начале главной */
.gift-band { padding: 8px 0 40px; }
.gift-in { position: relative; display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: center; padding: 38px 48px; border-radius: 30px; overflow: hidden; color: #fbf3e6;
  background: radial-gradient(500px 260px at 12% 0%, rgba(201, 160, 99, .35), transparent 70%), linear-gradient(125deg, #3b2418 0%, #5a3626 55%, #7a5238 100%); box-shadow: 0 34px 60px -32px rgba(59, 36, 24, .8); }
.gift-in::before { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(233, 211, 180, .35); border-radius: 22px; pointer-events: none; }
.gift-art { position: relative; display: grid; place-items: center; }
.gift-art svg { filter: drop-shadow(0 24px 22px rgba(0, 0, 0, .45)); animation: mv-bob 4.5s ease-in-out infinite; }
.gift-art i { position: absolute; font-style: normal; color: #f3d9a4; text-shadow: 0 0 14px rgba(243, 217, 164, .9); animation: mv-bob 3s ease-in-out infinite; }
.gift-art .g1 { left: 8px; top: 18px; font-size: 26px; } .gift-art .g2 { right: 6px; top: 60px; font-size: 18px; animation-delay: -1s; } .gift-art .g3 { right: 24px; bottom: 14px; font-size: 22px; color: #fff; animation-delay: -2s; }
.gift-pill { display: inline-block; padding: 6px 16px; border-radius: 999px; background: rgba(243, 217, 164, .18); border: 1px solid rgba(243, 217, 164, .5); color: #f3d9a4; font: 700 11px var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.gift-txt h2 { font-size: clamp(32px, 4.4vw, 52px); margin: 14px 0 10px; color: #fff; }
.gift-txt h2 em { background: linear-gradient(100deg, #f3d9a4, #d9b48a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.gift-txt p { margin: 0 0 20px; max-width: 560px; color: #f0e3cf; }
.gift-amounts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.gift-amounts button { padding: 10px 18px; border-radius: 999px; border: 1.5px solid rgba(243, 217, 164, .55); background: transparent; color: #f6ead6; font: 700 14px var(--sans); cursor: pointer; transition: transform .2s, background .2s, color .2s; }
.gift-amounts button:hover { transform: translateY(-2px); background: rgba(243, 217, 164, .15); }
.gift-amounts button.on { background: linear-gradient(120deg, #f3d9a4, #d9b48a); color: #3b2418; border-color: transparent; }
.gift-band .gift-btn { background: #fff; color: #3b2418; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .55); }
@media (max-width: 820px) { .gift-in { grid-template-columns: 1fr; padding: 30px 22px; gap: 14px; text-align: center; justify-items: center; } .gift-art svg { width: 150px; height: 150px; } .gift-amounts { justify-content: center; } }
