/* Светлая тема (новый дизайн). Имена переменных сохранены от прежней тёмной темы,
   поэтому --gold теперь значит «акцент» и равен бордовому. */
/* движение: одна кривая и три длительности — одинаково в index.html, case.css, blog.css, 404.html, motion.css */
:root { --ease:cubic-bezier(.2,.7,.2,1); --t-fast:.25s; --t-base:.45s; --t-slow:.9s;
  --porcelain: #F0EFEB; --sand: #D8CEC4; --mist: #A9C0D1; --pink: #D5A6AD; --champagne: #D8C6AC;
  --bg: #F0EFEB; --bg2: #E8EAEA; --card: #ffffff;
  --ink: #26282A; --ink-strong: #26282A; --muted: #55585a; --dim: #6b6e70;
  --gold: #642B39; --gold-soft: rgba(38,40,42,0.14); --gold-mid: rgba(100,43,57,0.45);
  --w1: #dfe6ec; --w2: #F0EFEB;
  --display: 'Oranienbaum', 'Cormorant', serif; --accent: 'Cormorant', 'Times New Roman', serif; --latin: 'Italiana', 'Cormorant', serif;
  --sect: clamp(56px, 7vw, 100px);
}
/* у каждого кейса свой светлый «мир» */
body[data-world="sky"]     { --w1: #cfdde8; --w2: #f1e6e4; }
body[data-world="rose"]    { --w1: #ecd3d6; --w2: #e3e8ee; }
body[data-world="champ"]   { --w1: #e6d9c3; --w2: #eef0f1; }
body[data-world="sand"]    { --w1: #ddd3c8; --w2: #e9ecee; }
body[data-world="mist"]    { --w1: #c5d4df; --w2: #efe9e6; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: 'Onest', system-ui, sans-serif; font-weight: 300; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.overline { font-size: 12px; letter-spacing: 0.22em; color: var(--muted); font-weight: 400; text-transform: uppercase; }
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; padding: 0 30px; border-radius: 999px; transition: background var(--t-fast) var(--ease); }
.btn:hover { background: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

header { border-bottom: 1px solid var(--gold-soft); position: sticky; top: 0; background: rgba(240,239,235,0.84); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); z-index: 20; }
.nav { display: flex; justify-content: space-between; align-items: center; height: 60px; padding: 0 20px; max-width: 1200px; margin: 0 auto; }
.logo { display: flex; align-items: baseline; gap: 10px; }
.logo { padding: 10px 0; }
.logo b { font-family: var(--latin); font-size: 22px; font-weight: 400; letter-spacing: 0.22em; }
.logo span { display: none; }
.back { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.back:hover { color: var(--gold); }

.chero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 90px) 0 clamp(40px, 5vw, 64px); background: linear-gradient(180deg, var(--w1), var(--w2) 100%); }
.chero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.chero-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--gold-soft); }
.chero h1 { font-family: var(--display); font-size: clamp(42px, 5.6vw, 84px); line-height: 0.98; font-weight: 400; letter-spacing: -0.03em; color: var(--ink-strong); margin: clamp(22px, 3vw, 38px) 0 clamp(20px, 2.6vw, 30px); text-wrap: balance; }
.chero h1 em { display: block; font-family: var(--accent); font-style: italic; font-weight: 500; font-size: 0.874em; letter-spacing: -0.01em; line-height: 1.04; color: var(--gold); margin: 0.18em 0 0 clamp(0px, 7vw, 110px); text-wrap: balance; }
.chero .lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--muted); max-width: 520px; margin-left: clamp(0px, 7vw, 110px); }
.chero .live { margin-left: clamp(0px, 7vw, 110px); }
.chero-cover { margin: 0; transform: rotate(2deg); border-radius: 6px; overflow: hidden; box-shadow: 0 50px 90px -40px rgba(38,50,70,0.55), 0 0 0 10px rgba(255,255,255,0.55); }
.chero-cover img { width: 100%; height: auto; }
@media (max-width: 900px) {
  .chero-grid { grid-template-columns: 1fr; }
  .chero h1 em, .chero .lead, .chero .live { margin-left: 0; }
  .chero-cover { transform: none; }
}

.facts { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--gold-soft); }
.facts div { padding: 22px 24px 4px 0; display: flex; flex-direction: column; gap: 10px; }
.facts div + div { padding-left: 24px; border-left: 1px solid var(--gold-soft); }
.facts b { font-family: var(--display); font-size: clamp(40px, 4.6vw, 64px); line-height: 0.9; font-weight: 400; color: var(--ink); }
.facts span { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
@media (max-width: 780px) { .facts { grid-template-columns: repeat(2, minmax(0,1fr)); row-gap: 12px; } .facts div:nth-child(3) { padding-left: 0; border-left: 0; } }

body { counter-reset: sec; }
section.block { border-top: 1px solid var(--gold-soft); padding: var(--sect) 0; counter-increment: sec; }
section.block.alt { background: linear-gradient(180deg, var(--bg2), var(--bg)); }
section.block > .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(28px, 5vw, 80px); align-items: start; }
section.block > .wrap > * { grid-column: 2; }
section.block > .wrap > h2.title { grid-column: 1; grid-row: 1 / span 30; }
section.block > .wrap > .shots, section.block > .wrap > .quotes { grid-column: 1 / -1; }
h2.title { font-family: var(--display); font-size: clamp(38px, 4.4vw, 64px); line-height: 0.98; font-weight: 400; letter-spacing: -0.03em; color: var(--ink-strong); margin-bottom: 22px; text-wrap: balance; }
@media (max-width: 860px) {
  section.block > .wrap { display: block; }
}
.block p { font-size: 17px; color: var(--muted); margin-bottom: 14px; max-width: 680px; }
.block > .wrap > p:first-of-type { font-size: clamp(19px, 1.8vw, 22px); color: var(--ink); line-height: 1.55; }
.block p b { color: var(--ink); font-weight: 500; }
.block ul { list-style: none; display: flex; flex-direction: column; gap: 0; margin: 4px 0 6px; max-width: 760px; }
.block li { font-size: 16.5px; color: var(--muted); position: relative; padding: 18px 0 18px 34px; border-top: 1px solid var(--gold-soft); }
.block li:last-child { border-bottom: 1px solid var(--gold-soft); }
.block li svg { position: absolute; left: 0; top: 24px; }
.block li b { color: var(--ink); font-weight: 500; }

/* скриншоты лежат на светлом градиенте «мира», как предметы на ткани */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(16px, 2.2vw, 28px); margin-top: 48px; }
.shots figure:nth-child(3n+2) { transform: translateY(clamp(0px, 3vw, 44px)); }
@media (max-width: 600px) { .shots figure:nth-child(n) { transform: none; } }
.shots.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.shots.one { grid-template-columns: 1fr; }
.shots figure { background: linear-gradient(160deg, var(--w1), var(--w2)); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; padding: clamp(18px, 2.4vw, 32px) clamp(18px, 2.4vw, 32px) 0; cursor: zoom-in; }
.shots figure img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 24px 50px -22px rgba(38,50,70,0.5), 0 2px 6px rgba(38,50,70,0.12); }
.shots figcaption { font-size: 14px; color: var(--muted); padding: 18px 2px 20px; line-height: 1.5; margin-top: auto; min-height: 5.4em; }
@media (max-width: 860px) { .shots, .shots.two { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .shots, .shots.two { grid-template-columns: 1fr; } }

.note { font-size: 13.5px; color: var(--dim); margin-top: 22px; }

.cta-block { border-top: 1px solid var(--gold-soft); padding: var(--sect) 0; text-align: center; background: linear-gradient(180deg, var(--bg), var(--w1)); }
.cta-block h2 { font-family: var(--display); font-size: clamp(44px, 7vw, 104px); font-weight: 400; letter-spacing: -0.03em; color: var(--ink-strong); max-width: 14ch; margin: 0 auto 30px; line-height: 1; text-wrap: balance; }
.cta-block h2 em { display: block; font-family: var(--accent); font-style: italic; font-weight: 500; font-size: 1.12em; letter-spacing: -0.01em; color: var(--gold); }
.cta-block .nick { display: block; font-size: 14px; color: var(--dim); margin-top: 22px; }

.more { border-top: 1px solid var(--gold-soft); padding: var(--sect) 0; background: var(--bg); }
.more .row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: clamp(24px, 5vw, 72px); margin-top: 22px; }
.more a { border-top: 1px solid var(--gold-soft); padding: 18px 0; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; transition: color var(--t-fast) var(--ease); min-height: 56px; }
.more a:hover { color: var(--gold); }
.more a b { font-size: 16.5px; font-weight: 400; color: inherit; }
.more a span { font-size: 13px; color: var(--muted); text-align: right; }
@media (max-width: 760px) { .more .row { grid-template-columns: 1fr; } .more a { flex-direction: column; gap: 2px; } .more a span { text-align: left; } }

footer { border-top: 1px solid var(--gold-soft); }
footer .inner { display: flex; justify-content: space-between; align-items: center; padding: 28px 20px calc(28px + env(safe-area-inset-bottom)); flex-wrap: wrap; gap: 12px; max-width: 1200px; margin: 0 auto; }
footer .fine { font-size: 13px; color: #4a4d4f; }
footer .fine a { color: var(--gold) !important; text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 12px 2px; }

/* Ссылка на живой проект под лидом */
.live { margin-top: 22px; }
.live a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 400; color: var(--gold); border-bottom: 1px solid var(--gold-mid); padding-bottom: 3px; transition: border-color var(--t-fast) var(--ease); }
.live a:hover { border-bottom-color: var(--gold); }

/* Просмотр скриншота во весь экран */
.zoom { position: absolute; inset: 0; width: 100%; background: transparent; border: 0; cursor: zoom-in; border-radius: 6px; }
.zoom:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
.shots figure:focus-visible, .more a:focus-visible, .btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(240,239,235,0.96); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1180px, 96vw); max-height: 92vh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 30px 80px -30px rgba(38,50,70,0.55); }
.lb-close { position: absolute; top: 18px; right: 22px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; font-family: inherit; }
.lb-close:hover { background: var(--ink); color: var(--bg); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .more a { transition: none; } }

/* ---------- отзывы участниц ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; margin-top: 28px; }
.quotes figure { margin: 0; background: linear-gradient(160deg, var(--w1), var(--w2)); border-radius: 6px; padding: 56px 26px 22px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.quotes figure::before { content: '«'; position: absolute; top: 14px; left: 24px; font-family: var(--display); font-size: 52px; line-height: 1; color: var(--gold-mid); pointer-events: none; }
.quotes blockquote { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--ink); position: relative; z-index: 1; }
.quotes figcaption { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 400; margin-top: auto; }
.quotes .big blockquote { font-size: 18px; }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- мини-демо ---------- */
.demo { background: linear-gradient(160deg, var(--w1), var(--w2)); border-radius: 22px; padding: clamp(18px, 3vw, 32px); margin-top: 28px; }
.demo .dm-tag { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.dm-btns { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.dm-btns button { min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--gold-soft); background: rgba(255,255,255,.7); cursor: pointer; font: inherit; font-size: 14px; }
.dm-btns button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.dm-card { display: flex; align-items: center; gap: 22px; background: #fff; border-radius: 18px; padding: 18px 20px; box-shadow: 0 20px 40px -30px rgba(38,50,70,.5); }
.dm-title { font: 400 30px/1.05 var(--display); }
.dm-sub { color: var(--muted); font-size: 15px; margin-top: 4px; }
.dm-ring { width: 96px; height: 96px; flex: none; }
.dm-ring circle:last-child { transition: stroke-dashoffset var(--t-slow) var(--ease); }
.dm-pct { font-size: 13px; color: var(--muted); text-align: center; }
.dm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 14px; }
.dm-pane { background: #fff; border-radius: 18px; padding: 16px 18px; }
.dm-task { display: flex; justify-content: space-between; width: 100%; min-height: 48px; align-items: center; padding: 0 14px; margin-bottom: 8px; border-radius: 12px; border: 1px solid var(--gold-soft); background: none; cursor: pointer; font: inherit; font-size: 15px; text-align: left; }
.dm-task::after { content: "○"; color: var(--muted); }
.dm-task[aria-pressed="true"] { background: rgba(100,43,57,.08); border-color: var(--gold); }
.dm-task[aria-pressed="true"]::after { content: "✓"; color: var(--gold); }
.dm-row { display: grid; grid-template-columns: 64px 1fr 44px; gap: 10px; align-items: center; padding: 7px 0; font-size: 14px; }
.dm-row.me { font-weight: 500; }
.dm-bar { height: 8px; border-radius: 99px; background: rgba(38,40,42,.08); overflow: hidden; }
.dm-bar i { display: block; height: 100%; background: var(--gold); border-radius: 99px; transition: clip-path var(--t-base) var(--ease); }
.dm-note { min-height: 1.6em; font-size: 14px; color: var(--muted); margin-top: 10px; }
.dm-chain { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0; }
.dm-step { background: #fff; border-radius: 16px; padding: 14px; opacity: .45; transform: translateY(8px); transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease); }
.dm-step.on { opacity: 1; transform: none; box-shadow: 0 0 0 2px var(--gold); }
.dm-step b { display: block; font: 400 20px/1.1 var(--display); margin-bottom: 6px; }
.dm-step span { font-size: 13px; color: var(--muted); line-height: 1.4; display: block; }
@media (max-width: 760px) { .dm-two, .dm-chain { grid-template-columns: 1fr; } }

/* ---------- вопросы-ответы на страницах услуг ---------- */
.faq details { border-top: 1px solid var(--gold-soft); }
.faq details:last-child { border-bottom: 1px solid var(--gold-soft); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-size: 18px; color: var(--ink); position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 16px; font-size: 24px; color: var(--gold); transition: transform var(--t-fast) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 20px 0; margin: 0; }
