/* Палитры: выбираются в админке (content.theme → <html data-theme>). */
:root, [data-theme="emerald"] {
  --primary: #2f5d51; --primary-2: #3f6f63; --primary-ink: #f4ecd9;
  --accent: #d9b774; --accent-2: #ecd9a8; --accent-ink: #2d2614;
  --bg: #f6f1e7; --paper: #fffbf4; --soft: #eee7d7;
  --ink: #33403b; --muted: #7d8178; --line: #e8dfca;
  --primary-text: var(--primary); /* цвет основного тона для текста на светлом фоне; у пастельных палитр темнее */
}
[data-theme="terracotta"] {
  --primary: #8a4a3a; --primary-2: #a05c4a; --primary-ink: #fbeee2;
  --accent: #e6b27f; --accent-2: #f2d3b3; --accent-ink: #3a2418;
  --bg: #faf3ec; --paper: #fffbf7; --soft: #f2e6da;
  --ink: #45332c; --muted: #8a746b; --line: #eeddcd;
}
[data-theme="plum"] {
  --primary: #6a4a66; --primary-2: #805e7b; --primary-ink: #f8eaf1;
  --accent: #eca593; --accent-2: #f3cdc0; --accent-ink: #3b2020;
  --bg: #f8f3f4; --paper: #fffbfc; --soft: #f1e6ea;
  --ink: #43353f; --muted: #8b7986; --line: #ebdde3;
}
[data-theme="navy"] {
  --primary: #3d4c6e; --primary-2: #56668a; --primary-ink: #eef1f8;
  --accent: #e9c274; --accent-2: #f0dcae; --accent-ink: #2d2510;
  --bg: #f4f3f0; --paper: #fffefc; --soft: #eae9e3;
  --ink: #343b4c; --muted: #7a808c; --line: #e2e0d8;
}
[data-theme="sage"] {
  --primary: #4b6756; --primary-2: #5f7a68; --primary-ink: #f1f0e4;
  --accent: #d0b47a; --accent-2: #eadcb9; --accent-ink: #342d1c;
  --bg: #f4f2e8; --paper: #fdfcf7; --soft: #e9e8d9;
  --ink: #39423b; --muted: #7d8177; --line: #e2e0cf;
}
[data-theme="sand"] {
  --primary: #7d6754; --primary-2: #8f7761; --primary-ink: #f6efe6;
  --accent: #d3a880; --accent-2: #eed3b8; --accent-ink: #3a281a;
  --bg: #f6f0e8; --paper: #fffbf6; --soft: #ece3d6;
  --ink: #42362b; --muted: #8a7d70; --line: #e8dccb;
}
[data-theme="rose"] {
  --primary: #8f5765; --primary-2: #a06d7b; --primary-ink: #fbeef0;
  --accent: #e2bf95; --accent-2: #f1dcc4; --accent-ink: #3d2a20;
  --bg: #faf3f3; --paper: #fffbfb; --soft: #f4e6e7;
  --ink: #4a3841; --muted: #93797f; --line: #eedfe1;
}
[data-theme="sea"] {
  --primary: #3b6f77; --primary-2: #4a8089; --primary-ink: #e6f4f2;
  --accent: #e8b487; --accent-2: #f1d5b9; --accent-ink: #3b291a;
  --bg: #f0f6f4; --paper: #fcfffd; --soft: #e1ede9;
  --ink: #2f4245; --muted: #758a8c; --line: #d6e6e1;
}
[data-theme="lavender"] {
  --primary: #6f6190; --primary-2: #7d709f; --primary-ink: #f0ecfa;
  --accent: #e0c07f; --accent-2: #efdeb4; --accent-ink: #382c1a;
  --bg: #f6f4fa; --paper: #fdfcff; --soft: #ebe7f3;
  --ink: #3d3750; --muted: #837c98; --line: #e2dcee;
}
[data-theme="graphite"] {
  --primary: #555a60; --primary-2: #6b7077; --primary-ink: #eeeeee;
  --accent: #d09c7d; --accent-2: #e9c6b0; --accent-ink: #382820;
  --bg: #f4f3f1; --paper: #fdfcfb; --soft: #e9e7e3;
  --ink: #383b40; --muted: #7d7f84; --line: #e1dfda;
}
[data-theme="olive"] {
  --primary: #646c3f; --primary-2: #788150; --primary-ink: #f3f0d8;
  --accent: #dcae7f; --accent-2: #f0d3b0; --accent-ink: #3b2914;
  --bg: #f5f3e6; --paper: #fffdf6; --soft: #ecead6;
  --ink: #3c4030; --muted: #82856c; --line: #e4e0c7;
}
[data-theme="burgundy"] {
  --primary: #84495a; --primary-2: #94596a; --primary-ink: #f6e6ea;
  --accent: #dcc08f; --accent-2: #eedcbd; --accent-ink: #3a2a1c;
  --bg: #f8f2f3; --paper: #fffbfb; --soft: #f1e5e8;
  --ink: #453239; --muted: #8e747b; --line: #ecdadf;
}
[data-theme="beige"] {
  --primary: #85705a; --primary-2: #9a846b; --primary-ink: #fbf6ee;
  --accent: #d8c3a0; --accent-2: #eadcc3; --accent-ink: #3b2f1f;
  --bg: #f7f2ea; --paper: #fffcf7; --soft: #efe7da;
  --ink: #43392d; --muted: #8a7d6c; --line: #e7dccb;
}
[data-theme="chocolate"] {
  --primary: #6b4d40; --primary-2: #7d5e51; --primary-ink: #f5ebe1;
  --accent: #d2ae8c; --accent-2: #e8d1b9; --accent-ink: #3a2619;
  --bg: #f7f0ea; --paper: #fffbf7; --soft: #eee3da;
  --ink: #43312a; --muted: #8a7369; --line: #e8dbd0;
}
[data-theme="gray"] {
  --primary: #686d73; --primary-2: #7c8187; --primary-ink: #f2f3f4;
  --accent: #c9ccd0; --accent-2: #e2e4e7; --accent-ink: #2f3236;
  --bg: #f4f4f5; --paper: #fdfdfd; --soft: #e9eaec;
  --ink: #34373b; --muted: #7f8388; --line: #dfe0e3;
}
/* Молочная — светлая, как пастельные: тёмный текст на светлом основном тоне. */
[data-theme="milk"] {
  --primary: #eee4d8; --primary-2: #f6efe6; --primary-ink: #4a3b2e; --primary-text: #6f5238;
  --accent: #93704d; --accent-2: #6f5238; --accent-ink: #ffffff;
  --bg: #fbf8f3; --paper: #fffdfa; --soft: #f3ede4;
  --ink: #3d322a; --muted: #8b7d70; --line: #ece3d6;
}
/* Пастельные: светлый основной тон, тёмный текст на нём, акценты глубже — чтобы читалось. */
[data-theme="pastel-rose"] {
  --primary: #f4d6dc; --primary-2: #fbe6ea; --primary-ink: #4a2a35; --primary-text: #8a3f57;
  --accent: #a8566e; --accent-2: #8a3f57; --accent-ink: #ffffff;
  --bg: #fdf5f6; --paper: #fffbfb; --soft: #f8e8eb;
  --ink: #3a2530; --muted: #8a6f78; --line: #f1dde1;
}
[data-theme="pastel-mint"] {
  --primary: #cfe8dc; --primary-2: #e2f3ea; --primary-ink: #23403a; --primary-text: #2f6552;
  --accent: #3f7a65; --accent-2: #2f6552; --accent-ink: #ffffff;
  --bg: #f5fbf8; --paper: #fdfffe; --soft: #e6f3ec;
  --ink: #23342f; --muted: #6b8079; --line: #d6e9df;
}
[data-theme="pastel-lilac"] {
  --primary: #ddd3f0; --primary-2: #eee8f9; --primary-ink: #3a2f57; --primary-text: #5f4a96;
  --accent: #7a63b0; --accent-2: #5f4a96; --accent-ink: #ffffff;
  --bg: #f9f7fd; --paper: #fefdff; --soft: #efeaf8;
  --ink: #2f2941; --muted: #7d7692; --line: #e6dff2;
}
[data-theme="pastel-peach"] {
  --primary: #fbdcc4; --primary-2: #fdeadb; --primary-ink: #4d2f1f; --primary-text: #8f4a27;
  --accent: #b0623a; --accent-2: #8f4a27; --accent-ink: #ffffff;
  --bg: #fff8f2; --paper: #fffcf9; --soft: #faeadc;
  --ink: #3b281d; --muted: #8c7262; --line: #f3dfcd;
}
[data-theme="pastel-sky"] {
  --primary: #cfe3f4; --primary-2: #e3eff9; --primary-ink: #23394f; --primary-text: #2f5f8a;
  --accent: #3f78a8; --accent-2: #2f5f8a; --accent-ink: #ffffff;
  --bg: #f5f9fd; --paper: #fdfeff; --soft: #e6eff8;
  --ink: #23303d; --muted: #6b7d8f; --line: #d8e5f1;
}
[data-theme="pastel-butter"] {
  --primary: #f6ecc4; --primary-2: #fbf5dc; --primary-ink: #4a3f1c; --primary-text: #6f5710;
  --accent: #8a6d14; --accent-2: #6f5710; --accent-ink: #ffffff;
  --bg: #fdfaf0; --paper: #fffdf7; --soft: #f6efd6;
  --ink: #3a3220; --muted: #85795a; --line: #eee5c6;
}
:root { --radius: 22px; --serif: "Playfair Display", Georgia, serif; --sans: "Manrope", system-ui, sans-serif; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); overflow-x: hidden; }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: 700 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:active { transform: scale(.97); }
.btn.gold { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--accent-ink); box-shadow: 0 8px 24px -8px var(--accent); }
.btn.gold:hover { box-shadow: 0 12px 30px -8px var(--accent); transform: translateY(-1px); }
.btn.ghost { color: var(--primary-ink); border-color: color-mix(in srgb, var(--primary-ink) 45%, transparent); }
.btn.ghost:hover { background: color-mix(in srgb, var(--primary-ink) 10%, transparent); }
.btn.line { color: var(--primary-text); border-color: var(--primary-text); background: transparent; }
.btn.small { padding: 10px 16px; font-size: 14px; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; }

/* ---------- анонсы ---------- */
.announcements { background: var(--accent); color: var(--accent-ink); position: relative; z-index: 3; }
.ann { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .25s ease, opacity .25s ease; }
.ann.leaving { grid-template-rows: 0fr; opacity: 0; }
.ann > div { min-height: 0; overflow: hidden; }
.ann-row { max-width: 1120px; margin: 0 auto; padding: 9px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; }
.ann-label { background: var(--primary); color: var(--primary-ink); border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ann-text { flex: 1; min-width: 180px; font-weight: 600; }
.ann-when { border: 1.5px solid var(--primary); border-radius: 999px; padding: 2px 10px; font-weight: 800; font-size: 13px; }
.ann a { color: inherit; font-weight: 800; }
.ann-x { background: none; border: 0; font-size: 18px; cursor: pointer; color: inherit; width: 32px; height: 32px; border-radius: 50%; }

/* ---------- первый экран ---------- */
.hero { position: relative; background: radial-gradient(120% 90% at 85% 10%, var(--primary-2), var(--primary) 60%); color: var(--primary-ink); overflow: hidden; }
.strips { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); pointer-events: none; }
/* Замша: очищенное фото стены лежит поверх цвета палитры. Ширина фона = ширине блока, а не «cover»:
   так размер текстуры не растёт с высотой экрана (на телефоне первый экран высокий). Повторяется вниз без шва. */
.hero::before, .extra::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("/img/cover-suede-cover.jpg") center top / 100% auto repeat-y; mix-blend-mode: hard-light; opacity: .55; }
.strips i {
  display: block;
  border-right: 1px solid color-mix(in srgb, var(--primary-ink) 8%, transparent);
  clip-path: inset(0 0 100% 0);
  animation: unroll 1.1s cubic-bezier(.22,.8,.26,1) forwards;
}
.strips i:nth-child(2) { animation-delay: .12s; } .strips i:nth-child(3) { animation-delay: .24s; }
.strips i:nth-child(4) { animation-delay: .36s; } .strips i:nth-child(5) { animation-delay: .48s; }
.strips i:nth-child(6) { animation-delay: .6s; }
@keyframes unroll { to { clip-path: inset(0 0 0 0); } }

.hero-inner { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 44px 16px 96px; display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.1fr .9fr; padding-top: 72px; padding-bottom: 130px; } }
.brand-chip { display: inline-block; border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); color: var(--accent-2); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 13px; letter-spacing: .06em; animation: rise .7s .2s both; }
h1 { font: 800 clamp(52px, 13vw, 104px)/.95 var(--serif); margin: 18px 0 8px; letter-spacing: -1.5px; animation: rise .8s .3s both; }
.subtitle { font: italic 600 clamp(22px, 5vw, 30px)/1.2 var(--serif); color: var(--accent-2); margin: 0; animation: rise .8s .42s both; }
.intro { max-width: 520px; margin: 16px 0 0; font-size: 17px; opacity: .88; animation: rise .8s .52s both; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; animation: rise .8s .62s both; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 34px 0 0; max-width: 520px; animation: rise .8s .72s both; }
.stats div { border-left: 2px solid var(--accent); padding-left: 12px; }
.stats dt { font: 800 clamp(28px, 7vw, 40px)/1 var(--serif); color: var(--accent-2); }
.stats dd { margin: 4px 0 0; font-size: 13px; opacity: .8; line-height: 1.3; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero-photo { position: relative; min-height: 340px; animation: rise 1s .5s both; }
.frame { margin: 0; position: absolute; border-radius: 18px; overflow: hidden; border: 6px solid var(--paper); box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); }
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.frame.big { width: 72%; aspect-ratio: 3/4; right: 4%; top: 0; transform: rotate(3deg); animation: float 7s ease-in-out infinite; }
.frame.small { width: 46%; aspect-ratio: 1; left: 0; bottom: -10px; transform: rotate(-6deg); animation: float 8s 1s ease-in-out infinite reverse; }
.avatar-badge { position: absolute; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; background: var(--paper); color: var(--ink); border-radius: 999px; padding: 6px 16px 6px 6px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.4); font-weight: 800; font-size: 14px; line-height: 1.1; }
.avatar-badge img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.avatar-badge small { color: #2f9e62; font-weight: 700; }
@keyframes float { 50% { translate: 0 -10px; } }
@media (max-width: 899px) { .hero-photo { min-height: 0; aspect-ratio: 1 / .95; } }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 60px; fill: var(--bg); }

/* ---------- бегущая строка ---------- */
.marquee { background: var(--primary); color: var(--accent-2); overflow: hidden; padding: 14px 0; transform: rotate(-1.2deg); margin: 18px -10px 0; box-shadow: 0 10px 30px -18px rgba(0,0,0,.5); }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; font: italic 600 20px/1 var(--serif); }
.marquee-track span { padding: 0 22px; white-space: nowrap; }
.marquee-track span::after { content: "✦"; margin-left: 44px; color: var(--accent); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- секции ---------- */
.section { padding: 72px 0; }
.section.soft { background: var(--soft); }
.section.dark { background: var(--primary); color: var(--primary-ink); }
.eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.section:not(.dark) .eyebrow { color: color-mix(in srgb, var(--accent) 70%, var(--ink)); }
h2 { font: 700 clamp(32px, 7vw, 48px)/1.05 var(--serif); margin: 0 0 28px; letter-spacing: -.5px; }
.lead { font-size: 17px; color: var(--muted); margin: -12px 0 24px; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.8,.26,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- цены ---------- */
.price-grid { display: grid; gap: 16px; }
@media (min-width: 820px) { .price-grid { grid-template-columns: 1fr 1fr; } .price-grid .group:first-child { grid-row: span 2; } }
.group { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 18px 40px -30px rgba(0,0,0,.35); transition: transform .25s ease, box-shadow .25s ease; }
.group:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -30px rgba(0,0,0,.45); }
.group h3 { margin: 0; font: 700 24px/1.2 var(--serif); }
.group .note { color: var(--muted); font-size: 14px; margin: 2px 0 8px; }
.row { display: flex; gap: 10px; align-items: baseline; padding: 11px 0; }
.row + .row { border-top: 1px solid var(--line); }
.row .name { flex: 1; min-width: 0; }
.row .hint { display: block; color: var(--muted); font-size: 13px; }
.row .price { font-weight: 800; white-space: nowrap; color: var(--primary-text); font-size: 17px; }
[data-theme] .row .price { color: color-mix(in srgb, var(--primary-text) 85%, var(--accent)); }

/* ---------- калькулятор ---------- */
.calc { display: grid; gap: 18px; }
@media (min-width: 900px) { .calc { grid-template-columns: 1.25fr 1fr; align-items: start; } .calc-result { position: sticky; top: 16px; } }
.calc-form, .calc-result { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.room { border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 12px; background: var(--bg); }
.room-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.room-head b { font: 700 18px var(--serif); }
.seg { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; font: 700 13px var(--sans); padding: 7px 12px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.seg button.on { background: var(--primary); color: var(--primary-ink); }
.dims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dims label { font-size: 12px; font-weight: 700; color: var(--muted); }
.field { display: block; font-size: 14px; font-weight: 700; margin: 14px 0 0; }
input, select, textarea {
  display: block; width: 100%; margin-top: 5px; padding: 12px 14px; font: 500 16px var(--sans); color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
.room input { background: var(--paper); }
.icon-x { border: 0; background: var(--soft); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; color: var(--muted); flex: none; }
.checks { border: 0; padding: 0; margin: 18px 0 0; }
.checks legend { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.check { display: flex; align-items: center; gap: 10px; padding: 8px 0; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--primary); flex: none; }
.openings { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-left: 32px; }
.openings label { font-size: 13px; color: var(--muted); font-weight: 700; }
.calc-result { background: var(--primary); color: var(--primary-ink); border: 0; box-shadow: 0 30px 60px -30px var(--primary); }
.calc-label { margin: 0; opacity: .75; font-size: 14px; }
.calc-total { font: 800 56px/1 var(--serif); margin: 6px 0 14px; color: var(--accent-2); }
.calc-total small { font-size: 22px; }
.calc-lines { list-style: none; padding: 0; margin: 0 0 12px; font-size: 14px; }
.calc-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid color-mix(in srgb, var(--primary-ink) 15%, transparent); }
.calc-lines li b { white-space: nowrap; }
.calc-note { font-size: 13px; opacity: .75; margin: 0 0 16px; }

/* ---------- работы ---------- */
.carousel { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 18px; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
@media (min-width: 1152px) { .carousel { padding-left: calc((100vw - 1120px) / 2 + 16px); } }
.carousel button { flex: none; width: min(78vw, 360px); aspect-ratio: 4/5; border: 0; padding: 0; border-radius: 20px; overflow: hidden; scroll-snap-align: center; cursor: zoom-in; background: var(--primary-2); }
.carousel img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.carousel button:hover img { transform: scale(1.05); }
.carousel-nav { display: flex; gap: 10px; justify-content: flex-end; }
.round { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--primary-ink) 40%, transparent); background: none; color: var(--primary-ink); font-size: 24px; cursor: pointer; }

#lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; overflow: visible; }
#lightbox::backdrop { background: rgba(10,10,10,.9); }
#lightbox img { max-width: 94vw; max-height: 86vh; display: block; border-radius: 12px; }
#lightbox button { position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 0; font-size: 22px; background: rgba(255,255,255,.92); cursor: pointer; }
.lb-close { top: 14px; right: 14px; } .lb-prev { left: 10px; top: 50%; } .lb-next { right: 10px; top: 50%; }

/* ---------- правила ---------- */
.rules { list-style: none; counter-reset: r; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 820px) { .rules { grid-template-columns: 1fr 1fr; } }
.rules li { counter-increment: r; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 18px 64px; position: relative; }
.rules li::before { content: counter(r); position: absolute; left: 16px; top: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: var(--accent-2); font: 700 18px/34px var(--serif); text-align: center; }
.how { margin-top: 18px; border-radius: var(--radius); padding: 22px; background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--accent-ink); }
.how h3 { margin: 0 0 6px; font: 700 24px var(--serif); }
.how p { margin: 0; }

/* ---------- FAQ ---------- */
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 18px; font-weight: 800; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; translate: 0 -50%; width: 28px; height: 28px; border-radius: 50%; background: var(--soft); text-align: center; line-height: 28px; font-size: 20px; transition: rotate .25s; }
.faq details[open] summary::after { rotate: 45deg; background: var(--accent); }
.faq .a { padding: 0 18px 18px; color: var(--muted); }

/* ---------- вопрос ---------- */
.ask { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: 0 30px 60px -40px rgba(0,0,0,.4); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 9px 14px; font: 700 14px var(--sans); cursor: pointer; transition: all .15s; }
.chip.on { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.two { display: grid; gap: 0 12px; }
@media (min-width: 600px) { .two { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.ask .btn { margin-top: 16px; }
.form-msg { min-height: 1.4em; margin: 10px 0 0; font-weight: 700; }
.form-msg.ok { color: #2f9e62; } .form-msg.err { color: #c0392b; }
.calc-attached { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--soft); font-size: 13px; }
.calc-attached > div { flex: 1; min-width: 0; }
.calc-attached pre { margin: 4px 0 0; white-space: pre-wrap; font: inherit; color: var(--muted); }

/* ---------- доп. блок ---------- */
.extra { border-radius: 28px; padding: 32px 24px; color: var(--primary-ink); position: relative; overflow: hidden;
  background: radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--accent) 45%, var(--primary-2)), var(--primary) 70%); }
.extra > * { position: relative; }
.extra .eyebrow { color: var(--accent-2) !important; }
.extra h2 { margin-bottom: 12px; }
.extra p:last-child { margin: 0; max-width: 640px; opacity: .9; }

/* ---------- контакты ---------- */
.contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.contacts .btn { min-width: 150px; }
.contacts .btn.alt { background: var(--paper); color: var(--ink); border-color: var(--line); }
.push-card { margin: 26px auto 0; max-width: 460px; padding: 18px; border-radius: 18px; border: 1.5px dashed var(--line); }
.push-card p { margin: 0 0 10px; }

.footer { background: var(--primary); color: var(--primary-ink); text-align: center; padding: 40px 16px 48px; }
.footer p { margin: 4px 0; }
.footer-brand { font: 700 28px var(--serif); color: var(--accent-2); }
.footer .muted { color: color-mix(in srgb, var(--primary-ink) 60%, transparent); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .strips i { clip-path: none; }
  .reveal { opacity: 1; transform: none; }
}
