/* ═══════════ Иван Рожков — художник-монументалист ═══════════ */
:root {
  --bg: #F6F1E9;
  --paper: #EFE7DA;
  --card: #FFFCF7;
  --ink: #1C1813;
  --ink-2: #3A332B;
  --muted: #6F665B;
  --line: #E1D6C6;
  --accent: #FFA500;
  --accent-d: #F08C00;
  --accent-ink: #1C1813;
  --dark: #17130F;
  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1320px;
  --gut: clamp(16px, 4vw, 48px);
  --ff-h: 'Unbounded', system-ui, sans-serif;
  --ff: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --hdr: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--ff); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }

/* ─── Типографика ─── */
.h2 { font: 500 clamp(30px, 4.4vw, 60px)/1.05 var(--ff-h); letter-spacing: -.02em; }
.h3 { font: 500 clamp(19px, 1.7vw, 23px)/1.25 var(--ff-h); letter-spacing: -.01em; }
.h4 { font: 600 18px/1.3 var(--ff); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1 var(--ff); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--accent); }
.eyebrow .dot { display: none; }
.eyebrow--light { color: #B9AE9F; }
.tag { font: 600 12px/1 var(--ff); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }

/* ─── Кнопки ─── */
.btn { --bh: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--bh); padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent; font: 600 15px/1 var(--ff); text-decoration: none; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s; white-space: nowrap; }
.btn--sm { --bh: 42px; padding: 0 18px; font-size: 14px; }
.btn--lg { --bh: 58px; padding: 0 30px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 24px -10px rgba(240, 140, 0, .7); }
.btn--accent:hover { background: var(--accent-d); transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(240, 140, 0, .8); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--bg); }
.btn--ghost { border-color: var(--line); background: var(--card); }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:hover { background: #000; }
.arr { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); flex: none; }
.btn:hover .arr, a:hover > .arr { transform: translate(3px, -3px); }
.link-arr { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--accent); padding-bottom: 4px; }

/* ─── Шапка ─── */
.hdr { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.hdr.is-scrolled { border-color: var(--line); }
.hdr__in { display: flex; align-items: center; gap: 28px; height: var(--hdr); }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.logo__mark { width: 40px; height: 40px; color: var(--ink); transition: transform .5s var(--ease); }
.logo:hover .logo__mark { transform: rotate(-12deg); }
.logo__txt { display: flex; flex-direction: column; line-height: 1.15; }
.logo__txt b { font: 500 15px/1.2 var(--ff-h); }
.logo__txt small { font-size: 12px; color: var(--muted); }
.nav { margin-left: auto; }
.nav > ul { display: flex; gap: 4px; }
.nav a { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 15px; transition: background .2s; }
.nav > ul > li > a:hover, .nav__dd:focus-within > a { background: var(--paper); }
.chev { width: 12px; height: 12px; transition: transform .25s; }
.nav__dd { position: relative; }
.nav__dd:hover .chev, .nav__dd:focus-within .chev { transform: rotate(180deg); }
.dd { position: absolute; top: calc(100% + 8px); left: -12px; width: 340px; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 60px -24px rgba(28, 24, 19, .35); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .25s var(--ease); }
.dd::before { content: ''; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav__dd:hover .dd, .nav__dd:focus-within .dd { opacity: 1; visibility: visible; transform: none; }
.dd a { gap: 14px; padding: 8px; border-radius: var(--radius-sm); }
.dd a:hover { background: var(--paper); }
.dd img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.dd b { display: block; font-weight: 600; font-size: 15px; }
.dd small { color: var(--muted); font-size: 13px; }
.hdr__act { display: flex; align-items: center; gap: 18px; }
.hdr__tel { font-weight: 600; text-decoration: none; font-size: 15px; white-space: nowrap; }
.hdr__tel:hover { color: var(--accent-d); }
.burger { display: none; width: 46px; height: 46px; border: 1.5px solid var(--line); border-radius: 50%; background: var(--card); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); transition: .3s var(--ease); }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

.mnav { position: fixed; inset: var(--hdr) 0 0; z-index: 49; background: var(--bg); padding: 20px var(--gut) 40px; overflow-y: auto; animation: fadeIn .3s var(--ease); }
.mnav__top { display: grid; gap: 10px; margin-bottom: 24px; }
.mnav nav > a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font: 500 22px/1.2 var(--ff-h); text-decoration: none; }
.mnav__sub { display: grid; gap: 2px; padding: 8px 0 8px 16px; border-bottom: 1px solid var(--line); }
.mnav__sub a { padding: 8px 0; color: var(--muted); text-decoration: none; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-8px); } }

/* ─── Хлебные крошки ─── */
.crumbs { padding: 18px 0 0; font-size: 14px; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: .5; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--ink); }

/* ─── Первый экран ─── */
.hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 0; overflow: hidden; }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero__h { font: 500 clamp(32px, 4.1vw, 66px)/1.02 var(--ff-h); letter-spacing: -.035em; margin-bottom: 26px; }
.stroke { position: relative; white-space: nowrap; color: var(--ink); }
.stroke svg { position: absolute; left: -2%; bottom: -.12em; width: 104%; height: .32em; overflow: visible; }
.stroke path { fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 1.1s .6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero__lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); max-width: 34em; margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.hero__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 600px; }
.hero__facts b { display: block; font: 500 26px/1.1 var(--ff-h); margin-bottom: 6px; }
.hero__facts span { font-size: 14px; color: var(--muted); line-height: 1.4; display: block; }

.hero__art { position: relative; aspect-ratio: 1 / 1.02; }
.hcard { position: absolute; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(28, 24, 19, .45); transition: transform .6s var(--ease); will-change: transform; }
.hcard img { width: 100%; height: 100%; object-fit: cover; }
.hcard--a { inset: 4% 22% 30% 0; animation: rise 1s .1s var(--ease) both; }
.hcard--b { inset: 46% 40% 0 8%; animation: rise 1s .3s var(--ease) both; }
.hcard--c { inset: 26% 0 8% 64%; animation: rise 1s .45s var(--ease) both; }
.hero__panno { position: absolute; width: 34%; right: 18%; top: -2%; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .35)); animation: spinIn 1.4s .5s var(--ease) both, float 7s 2s ease-in-out infinite; transition: transform .6s var(--ease); }
.hero__badge { position: absolute; left: -4%; top: 58%; width: 120px; height: 120px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; box-shadow: 0 18px 40px -16px rgba(240, 140, 0, .9); animation: rise 1s .7s var(--ease) both; transition: transform .6s var(--ease); }
.hero__badge svg { position: absolute; inset: 0; animation: spin 18s linear infinite; }
.hero__badge text { font: 600 10.5px var(--ff); letter-spacing: .14em; text-transform: uppercase; fill: var(--ink); }
.hero__badge b { font: 500 30px/1 var(--ff-h); }
@keyframes rise { from { opacity: 0; transform: translateY(40px) scale(.96); } }
@keyframes spinIn { from { opacity: 0; transform: rotate(-90deg) scale(.6); } }
@keyframes float { 50% { translate: 0 -14px; rotate: 6deg; } }
@keyframes spin { to { transform: rotate(360deg); } }

.marquee { margin-top: clamp(48px, 7vw, 96px); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; gap: 16px; width: max-content; animation: marq 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee img { height: clamp(150px, 18vw, 240px); width: auto; border-radius: var(--radius-sm); object-fit: cover; transition: transform .4s var(--ease), filter .4s; filter: saturate(.9); }
.marquee img:hover { transform: scale(1.04) rotate(-1deg); filter: saturate(1.1); }
@keyframes marq { to { transform: translateX(calc(-50% - 8px)); } }

/* ─── Секции ─── */
.sec { padding: clamp(72px, 10vw, 140px) 0; }
.sec--paper { background: var(--paper); }
.sec__head { margin-bottom: clamp(36px, 5vw, 64px); max-width: 820px; }
.sec__head--row { display: flex; align-items: end; justify-content: space-between; gap: 24px; max-width: none; flex-wrap: wrap; }

/* Сценарии */
.scen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.scen__card { position: relative; display: flex; flex-direction: column; min-height: 440px; padding: 32px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); text-decoration: none; overflow: hidden; isolation: isolate; transition: transform .5s var(--ease), border-color .3s, color .4s; }
.scen__n { font: 500 15px/1 var(--ff-h); color: var(--accent-d); margin-bottom: auto; padding-bottom: 40px; transition: color .4s; }
.scen__card h3 { margin-bottom: 14px; max-width: 14em; }
.scen__card p { color: var(--muted); transition: color .4s; }
.scen__go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin-top: 8px; }
.scen__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: 0; transform: scale(1.12); transition: opacity .5s, transform .9s var(--ease); }
.scen__card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(23, 19, 15, .15), rgba(23, 19, 15, .88)); opacity: 0; transition: opacity .5s; }
.scen__card:hover { transform: translateY(-6px); color: #fff; border-color: transparent; }
.scen__card:hover .scen__img { opacity: 1; transform: scale(1); }
.scen__card:hover::after { opacity: 1; }
.scen__card:hover p { color: rgba(255, 255, 255, .85); }
.scen__card:hover .scen__n { color: var(--accent); }

/* Услуги */
.svc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc__card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .5s var(--ease), box-shadow .5s; }
.svc__card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(28, 24, 19, .4); }
.svc__img { aspect-ratio: 4 / 3.4; overflow: hidden; }
.svc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.svc__card:hover .svc__img img { transform: scale(1.07); }
.svc__img--ba { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.svc__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.svc__body h3 { margin-bottom: 10px; }
.svc__body p { font-size: 15px; color: var(--muted); }
.svc__price { margin: auto 0 0 !important; padding-top: 14px; border-top: 1px solid var(--line); font: 500 18px/1.2 var(--ff-h) !important; color: var(--ink) !important; display: flex; justify-content: space-between; align-items: center; }
.svc__price::after { content: '→'; font-family: var(--ff); color: var(--accent-d); transition: transform .3s var(--ease); }
.svc__card:hover .svc__price::after { transform: translateX(4px); }

/* Кейсы + слайдер до/после */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case { display: flex; flex-direction: column; gap: 18px; }
.case--big { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; margin-bottom: 28px; }
.case--big .ba { aspect-ratio: 5 / 5.2; }
.case__txt p:not(.tag) { color: var(--ink-2); }
.case__txt h3 { margin-bottom: 12px; }
.case--big .case__txt h3 { font-size: clamp(24px, 2.6vw, 36px); }
.case__photo { aspect-ratio: 3 / 3.6; border-radius: var(--radius); overflow: hidden; }
.case__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.case:hover .case__photo img { transform: scale(1.05); }

.ba { position: relative; aspect-ratio: 3 / 3.6; border-radius: var(--radius); overflow: hidden; user-select: none; touch-action: pan-y; background: var(--line); }
.ba > img, .ba__before img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba::after { content: ''; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .35); pointer-events: none; }
.ba__handle { position: absolute; top: 50%; left: var(--pos); width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; z-index: 2; pointer-events: none; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); transition: transform .3s var(--ease); }
.ba:hover .ba__handle { transform: scale(1.1); }
.ba__handle svg { width: 24px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ba__tag { position: absolute; top: 14px; z-index: 2; padding: 7px 12px; border-radius: 999px; font: 600 12px/1 var(--ff); letter-spacing: .1em; text-transform: uppercase; background: rgba(23, 19, 15, .7); color: #fff; backdrop-filter: blur(6px); pointer-events: none; }
.ba__tag--l { left: 14px; } .ba__tag--r { right: 14px; background: var(--accent); color: var(--ink); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; }
.ba.is-hint { transition: --pos 1s; }

/* Этапы */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; counter-reset: s; }
.steps::before { content: ''; position: absolute; top: 27px; left: 28px; right: 28px; height: 2px; background: var(--line); }
.steps::after { content: ''; position: absolute; top: 27px; left: 28px; height: 2px; width: calc((100% - 56px) * var(--p, 0)); background: var(--accent); transition: width 1.6s var(--ease); }
.steps li { position: relative; z-index: 1; }
.steps__n { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); font: 500 20px/1 var(--ff-h); margin-bottom: 22px; transition: background .4s, border-color .4s; }
.steps.is-on .steps__n { background: var(--accent); border-color: var(--accent); }
.steps li:nth-child(2) .steps__n { transition-delay: .3s; } .steps li:nth-child(3) .steps__n { transition-delay: .6s; }
.steps li:nth-child(4) .steps__n { transition-delay: .9s; } .steps li:nth-child(5) .steps__n { transition-delay: 1.2s; }
.steps h3 { margin-bottom: 8px; }
.steps p { font-size: 15px; color: var(--muted); margin: 0; }

/* Смета фиксируется */
.smeta { background: var(--dark); color: #F3ECE1; padding: clamp(80px, 11vw, 150px) 0; position: relative; overflow: hidden; }
.smeta::before { content: '₽'; position: absolute; right: -4vw; bottom: -14vw; font: 500 46vw/1 var(--ff-h); color: rgba(255, 165, 0, .06); pointer-events: none; }
.smeta__in { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; position: relative; }
.smeta__h { font: 500 clamp(34px, 5vw, 72px)/1.04 var(--ff-h); letter-spacing: -.03em; margin-bottom: 28px; }
.smeta__h em { font-style: normal; color: var(--accent); }
.smeta__lead { color: #B9AE9F; font-size: 18px; max-width: 30em; margin-bottom: 36px; }
.trust { display: grid; gap: 4px; }
.trust li { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.trust svg { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: rgba(255, 165, 0, .14); fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.trust b { display: block; font-weight: 600; font-size: 18px; margin-bottom: 2px; }
.trust span { color: #B9AE9F; font-size: 15px; }

/* Отзывы */
.revs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rev { position: relative; display: flex; flex-direction: column; padding: 34px 30px 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .5s var(--ease); }
.rev:hover { transform: translateY(-4px) rotate(-.4deg); }
.rev::before { content: '“'; font: 500 80px/.6 var(--ff-h); color: var(--accent); height: 40px; }
.rev__sample { position: absolute; top: 14px; right: 14px; font-size: 11px; padding: 4px 8px; border-radius: 6px; background: #FFE9C2; color: #8A5300; }
.rev blockquote { margin: 0 0 28px; font-size: 18px; line-height: 1.55; flex: 1; }
.rev figcaption { display: flex; gap: 14px; align-items: center; padding-top: 20px; border-top: 1px solid var(--line); }
.rev figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.rev b { display: block; font-size: 15px; } .rev small { color: var(--muted); font-size: 13px; }

/* Соцсети */
.social { padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--line); }
.social__lead { font-size: 15px; color: var(--muted); text-align: center; margin-bottom: 28px; }
.social__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.social__a { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 16px; padding: 28px 30px; border-radius: var(--radius); border: 1.5px solid var(--ink); text-decoration: none; overflow: hidden; isolation: isolate; transition: color .4s; }
.social__a::before { content: ''; position: absolute; inset: 0; background: var(--ink); z-index: -1; transform: translateY(101%); transition: transform .5s var(--ease); }
.social__a:hover { color: var(--bg); } .social__a:hover::before { transform: none; }
.social__a span { font: 500 clamp(22px, 2.4vw, 32px)/1.1 var(--ff-h); }
.social__a small { grid-row: 2; color: var(--muted); transition: color .4s; } .social__a:hover small { color: #B9AE9F; }
.social__a .arr { grid-row: 1 / 3; grid-column: 2; width: 28px; height: 28px; }
.social__a:hover .arr { color: var(--accent); }

/* Форма */
.order { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.order__txt > p { color: var(--ink-2); font-size: 18px; max-width: 28em; }
.order__contacts { display: grid; gap: 14px; margin: 32px 0; }
.order__contacts a { display: block; text-decoration: none; font: 500 20px/1.3 var(--ff-h); }
.order__contacts a:hover { color: var(--accent-d); }
.order__contacts small { display: block; font: 500 13px var(--ff); color: var(--muted); margin-bottom: 2px; }
.order__ivan { width: 180px; aspect-ratio: 1; object-fit: cover; object-position: 50% 25%; border-radius: 50%; border: 6px solid var(--card); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .4); }
.card { background: var(--card); border-radius: calc(var(--radius) + 6px); padding: clamp(22px, 3.5vw, 44px); box-shadow: 0 40px 80px -50px rgba(28, 24, 19, .45); }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fld { display: grid; gap: 8px; }
.fld > span, .chips legend { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.fld input, .fld textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; transition: border-color .2s, background .2s, box-shadow .2s; resize: vertical; }
.fld input:hover, .fld textarea:hover { border-color: #CDBFAA; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(255, 165, 0, .18); }
.fld.is-bad input, .fld.is-bad textarea { border-color: #D2452E; }
.fld__msg { font-size: 13px; color: #B5311C; }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { margin-bottom: 10px; padding: 0; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 14px; font-weight: 500; transition: .2s; }
.chips label:hover span { border-color: var(--ink); }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chips input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.file { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px dashed #CDBFAA; border-radius: var(--radius-sm); cursor: pointer; font-size: 15px; color: var(--muted); transition: .2s; }
.file:hover { border-color: var(--accent); color: var(--ink); background: rgba(255, 165, 0, .06); }
.file input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; flex: none; }
.chk { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; line-height: 1.5; }
.chk input { appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border: 1.5px solid #CDBFAA; border-radius: 6px; background: var(--bg); display: grid; place-items: center; transition: .2s; cursor: pointer; }
.chk input::after { content: ''; width: 10px; height: 6px; border: 2.4px solid var(--ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .2s var(--ease); }
.chk input:checked { background: var(--accent); border-color: var(--accent); }
.chk input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.chk.is-bad input { border-color: #D2452E; }
.chk a { color: var(--ink); }
.hp { position: absolute !important; left: -9999px !important; opacity: 0; }
.form__note { font-size: 13px; color: var(--muted); text-align: center; margin: -4px 0 0; }
.form__err { color: #B5311C; font-size: 14px; margin: 0; min-height: 0; }
.form__err:empty { display: none; }
.form.is-sending button[type=submit] { opacity: .6; pointer-events: none; }

/* ─── Подвал ─── */
.ftr { background: var(--dark); color: #D8CFC2; padding: clamp(64px, 9vw, 120px) 0 32px; }
.ftr a { text-decoration: none; transition: color .2s; } .ftr a:hover { color: var(--accent); }
.ftr__cta { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; padding-bottom: clamp(48px, 6vw, 80px); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ftr__big { font: 500 clamp(32px, 5vw, 68px)/1.05 var(--ff-h); color: #F3ECE1; letter-spacing: -.03em; margin: 0; }
.ftr__big em { font-style: normal; color: var(--accent); }
.ftr__grid { display: grid; grid-template-columns: repeat(3, 1fr) 1.4fr; gap: 32px; padding: 48px 0; }
.ftr__h { font: 600 13px/1 var(--ff); letter-spacing: .12em; text-transform: uppercase; color: #8C8174; margin-bottom: 18px; }
.ftr ul { display: grid; gap: 10px; }
.ftr__req { font-size: 14px; line-height: 1.7; color: #A89D8F; }
.ftr__bottom { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: #8C8174; }
.ftr__bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* Плавающая кнопка, cookie, модалка */
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: none; align-items: center; gap: 10px; padding: 0 20px 0 16px; height: 54px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5); transform: translateY(120px); transition: transform .45s var(--ease); }
.fab svg { width: 24px; color: var(--accent); }
.fab.is-on { transform: none; }
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 45; max-width: 440px; display: flex; gap: 16px; align-items: center; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .35); font-size: 14px; animation: rise .6s var(--ease); }
.cookie p { margin: 0; color: var(--muted); }
.modal { width: min(480px, calc(100% - 32px)); border: 0; border-radius: calc(var(--radius) + 6px); padding: 36px 32px 32px; background: var(--card); color: var(--ink); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .5); }
.modal::backdrop { background: rgba(23, 19, 15, .55); backdrop-filter: blur(4px); }
.modal[open] { animation: rise .45s var(--ease); }
.modal__x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--paper); font-size: 24px; line-height: 1; }
.modal h2 { margin-bottom: 6px; }

/* ─── Появление при прокрутке ─── */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ─── Адаптив ─── */
@media (max-width: 1180px) {
  .nav, .hdr__tel { display: none; }
  .burger { display: block; }
  .hdr__act { margin-left: auto; }
  .svc { grid-template-columns: repeat(2, 1fr); }
  .ftr__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__art { max-width: 560px; width: 100%; margin: 0 auto; aspect-ratio: 1 / .9; }
  .scen, .revs, .social__row { grid-template-columns: 1fr; }
  .scen__card { min-height: 0; }
  .scen__n { padding-bottom: 24px; }
  .cases { grid-template-columns: 1fr 1fr; }
  .case--big { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before, .steps::after { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; }
  .steps::after { height: calc((100% - 56px) * var(--p, 0)); bottom: auto; transition: height 1.6s var(--ease); }
  .steps li { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; padding-bottom: 28px; }
  .steps__n { grid-row: 1 / 3; margin: 0; }
  .smeta__in, .order { grid-template-columns: 1fr; }
  .fab { display: inline-flex; }
}
@media (max-width: 640px) {
  :root { --hdr: 64px; }
  body { font-size: 16px; }
  .logo__txt small { display: none; }
  .hdr__act .btn { display: none; }
  .hero__facts { grid-template-columns: 1fr; gap: 14px; }
  .hero__facts li { display: flex; gap: 14px; align-items: baseline; }
  .hero__facts b { flex: none; min-width: 70px; font-size: 22px; }
  .hero__cta .btn { width: 100%; }
  .hero__badge { width: 92px; height: 92px; left: -2%; }
  .hero__badge text { font-size: 13px; }
  .stroke { white-space: normal; }
  .svc, .cases { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .ftr__grid { grid-template-columns: 1fr; }
  .cookie { left: 8px; right: 8px; bottom: 80px; max-width: none; flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* правки после первого просмотра */
.order__txt .h2 { margin-bottom: 24px; }
@media (min-width: 961px) { .scen__card { min-height: 380px; } }

/* Сценарии: мягкое проявление фото при наведении */
.scen__card { transition: transform .9s var(--ease), border-color .6s, color .7s ease; }
.scen__img { opacity: 0; transform: scale(1.05); filter: blur(6px) saturate(.8); transition: opacity 1.1s cubic-bezier(.4, 0, .2, 1), transform 1.8s cubic-bezier(.2, .6, .2, 1), filter 1.2s ease; }
.scen__card::after { transition: opacity 1.1s cubic-bezier(.4, 0, .2, 1); }
.scen__card p, .scen__n { transition: color .7s ease; }
.scen__card:hover .scen__img { opacity: 1; transform: scale(1); filter: none; }

/* ═══════════ Внутренние страницы ═══════════ */
.todo { display: inline-block; font: 600 12px/1.4 var(--ff); padding: 2px 8px; border-radius: 6px; background: #FFE9C2; color: #8A5300; vertical-align: middle; }
.sec--tight { padding-top: clamp(32px, 4vw, 56px); }
.cap { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* Заголовок страницы */
.phead { padding: clamp(32px, 5vw, 72px) 0 clamp(8px, 2vw, 24px); }
.phead__h { font: 500 clamp(32px, 4.6vw, 68px)/1.04 var(--ff-h); letter-spacing: -.03em; max-width: 15em; margin-bottom: 22px; }
.phead__lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); max-width: 38em; }

/* Первый экран услуги */
.phero { padding: clamp(28px, 4vw, 56px) 0 clamp(64px, 8vw, 110px); }
.phero__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.phero__h { font: 500 clamp(32px, 4.2vw, 62px)/1.04 var(--ff-h); letter-spacing: -.03em; margin-bottom: 22px; }
.phero__lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); max-width: 34em; margin-bottom: 30px; }
.phero__facts { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); width: fit-content; }
.phero__facts div { padding: 16px 24px; }
.phero__facts div + div { border-left: 1px solid var(--line); }
.phero__facts dt { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.phero__facts dd { margin: 0; font: 500 20px/1.2 var(--ff-h); }
.phero__note { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.phero__img { border-radius: calc(var(--radius) + 6px); overflow: hidden; aspect-ratio: 4 / 4.4; box-shadow: 0 40px 80px -40px rgba(28, 24, 19, .5); }
.phero__img img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 18s ease-in-out infinite alternate; }
@keyframes kenburns { to { transform: scale(1.08) translate(-1%, -1%); } }

/* Список услуг (хаб) */
.svc-list { display: grid; }
.svc-row { display: grid; grid-template-columns: 60px 200px 1fr 220px 48px; gap: 32px; align-items: center; padding: 28px 0; border-top: 1px solid var(--line); text-decoration: none; position: relative; }
.svc-row:last-child { border-bottom: 1px solid var(--line); }
.svc-row__n { font: 500 16px var(--ff-h); color: var(--accent-d); }
.svc-row__img { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; }
.svc-row__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.svc-row h2 { font-size: clamp(22px, 2.4vw, 34px); margin-bottom: 8px; transition: color .3s; }
.svc-row__txt p { color: var(--muted); margin: 0; }
.svc-row__price { display: grid; gap: 4px; }
.svc-row__price b { font: 500 20px/1.2 var(--ff-h); }
.svc-row__price small { color: var(--muted); font-size: 13px; }
.svc-row__go { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; transition: .4s var(--ease); }
.svc-row:hover .svc-row__go { background: var(--accent); border-color: var(--accent); transform: rotate(45deg); }
.svc-row:hover .svc-row__go .arr { transform: rotate(-45deg); }
.svc-row:hover .svc-row__img img { transform: scale(1.08); }

/* Сетки и плитки */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat { padding: 28px; background: var(--card); border-radius: var(--radius); }
.feat__n { display: block; font: 500 14px var(--ff-h); color: var(--accent-d); margin-bottom: 20px; }
.feat h3 { margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: 15px; margin: 0; }
.steps--4 { grid-template-columns: repeat(4, 1fr); }

/* Материалы */
.mat { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; position: relative; }
.mat__txt p { color: var(--ink-2); font-size: 18px; margin-top: 20px; }
.mat__txt { position: sticky; top: calc(var(--hdr) + 32px); }
.mat__list { display: grid; gap: 14px; }
.mat__item { padding: 26px 28px; background: var(--card); border-radius: var(--radius); border-left: 4px solid var(--accent); transition: transform .4s var(--ease); }
.mat__item:hover { transform: translateX(6px); }
.mat__item h3 { margin-bottom: 8px; }
.mat__item p { color: var(--muted); margin: 0; }
.mat__img { position: absolute; width: 220px; left: 6%; bottom: -40px; animation: float 7s ease-in-out infinite; filter: drop-shadow(0 20px 24px rgba(0,0,0,.3)); pointer-events: none; }
.checklist { display: grid; gap: 12px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; background: var(--card); border-radius: var(--radius-sm); font-weight: 500; }
.checklist li::before { content: ''; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-9' fill='none' stroke='%231C1813' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* Галерея-каменная кладка */
.masonry { columns: 3 280px; column-gap: 20px; }
.masonry figure { break-inside: avoid; margin-bottom: 20px; border-radius: var(--radius); overflow: hidden; position: relative; cursor: zoom-in; }
.masonry img { width: 100%; transition: transform .9s var(--ease); }
.masonry figure:hover img { transform: scale(1.05); }
.masonry figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 10px 14px; border-radius: 10px; background: rgba(23, 19, 15, .7); color: #fff; font-size: 13px; backdrop-filter: blur(6px); opacity: 0; transform: translateY(8px); transition: .4s var(--ease); }
.masonry figure:hover figcaption { opacity: 1; transform: none; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border-radius: var(--radius); overflow: hidden; }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 26px; cursor: pointer; font: 600 18px/1.35 var(--ff); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--paper); position: relative; transition: background .3s, transform .4s var(--ease); }
.faq summary span::before, .faq summary span::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--ink); }
.faq summary span::after { transform: rotate(90deg); transition: transform .4s var(--ease); }
.faq details[open] summary span { background: var(--accent); transform: rotate(180deg); }
.faq details[open] summary span::after { transform: rotate(0); }
.faq details p { padding: 0 26px 24px; margin: 0; color: var(--ink-2); animation: fadeIn .4s var(--ease); }

/* Смета — компактная */
.smeta--slim { padding: clamp(56px, 7vw, 96px) 0; }
.smeta--slim .smeta__h { font-size: clamp(30px, 3.8vw, 54px); margin: 0; }
.smeta--slim .smeta__lead { margin-bottom: 24px; }

/* Карточки проектов */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 20px; }
.pcard { display: block; text-decoration: none; }
.pcard__img { position: relative; aspect-ratio: 4 / 4.6; border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; background: var(--line); }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; }
.pcard:hover .pcard__img img { transform: scale(1.06); }
.pcard__img::after { content: 'Смотреть кейс →'; position: absolute; left: 16px; bottom: 16px; padding: 10px 16px; border-radius: 999px; background: var(--accent); font-weight: 600; font-size: 14px; opacity: 0; transform: translateY(10px); transition: .5s var(--ease); }
.pcard:hover .pcard__img::after { opacity: 1; transform: none; }
.pcard__ba { position: absolute; top: 14px; left: 14px; padding: 6px 11px; border-radius: 999px; background: rgba(23, 19, 15, .72); color: #fff; font: 600 11px/1 var(--ff); letter-spacing: .1em; text-transform: uppercase; backdrop-filter: blur(6px); }
.pcard h3 { margin-bottom: 4px; transition: color .3s; }
.pcard__sub { color: var(--muted); font-size: 15px; margin: 0; }
.pcard.is-hidden { display: none; }
.pcard.is-show { animation: rise .6s var(--ease) both; }

/* Фильтры */
.filters { display: grid; gap: 12px; margin-bottom: 20px; }
.filters__grp { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font-weight: 500; font-size: 15px; color: var(--ink); transition: .25s; }
.fchip:hover { border-color: var(--ink); }
.fchip.is-on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.filters__grp + .filters__grp .fchip { font-size: 14px; padding: 8px 14px; }
.filters__count { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.filters__empty { padding: 40px; text-align: center; color: var(--muted); }

/* Страница кейса */
.chero { padding: clamp(28px, 4vw, 56px) 0 0; }
.chero__img { margin-top: clamp(24px, 3vw, 40px); }
.chero__img img { width: 100%; max-height: 78vh; object-fit: cover; border-radius: calc(var(--radius) + 6px); }
.cbody { display: grid; grid-template-columns: 320px 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; padding-bottom: clamp(64px, 8vw, 110px); }
.cmeta { position: sticky; top: calc(var(--hdr) + 24px); padding: 28px; background: var(--card); border-radius: var(--radius); }
.cmeta dl { margin: 0 0 24px; display: grid; gap: 16px; }
.cmeta dt { font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.cmeta dd { margin: 0; font-weight: 600; }
.ctext { max-width: 760px; }
.ctext > h2 { margin: 0 0 14px; }
.ctext > p { font-size: 18px; color: var(--ink-2); margin-bottom: 40px; }
.cfig { margin-bottom: 40px; }
.cfig .ba { aspect-ratio: 4 / 4.4; }
.cgal { display: grid; gap: 20px; margin-bottom: 40px; }
.cgal figure { border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.cgal img { width: 100%; }
.rev--inline { background: var(--paper); border: 0; }

/* Лайтбокс */
.lb { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(15, 12, 9, .92); padding: 24px; animation: fadeIn .3s; cursor: zoom-out; }
.lb img { max-width: 100%; max-height: 100%; border-radius: 12px; animation: rise .5s var(--ease); }

@media (max-width: 1180px) {
  .svc-row { grid-template-columns: 40px 160px 1fr 48px; }
  .svc-row__price { grid-column: 3; }
  .svc-row__go { grid-row: 1; grid-column: 4; }
}
@media (max-width: 960px) {
  .phero__in, .mat, .faq-wrap, .cbody { grid-template-columns: 1fr; }
  .phero__img { aspect-ratio: 4 / 3; order: -1; }
  .mat__txt, .cmeta { position: static; }
  .mat__img { display: none; }
  .grid3, .pgrid { grid-template-columns: 1fr 1fr; }
  .steps--4 { grid-template-columns: 1fr; }
  .cmeta { order: 2; }
}
@media (max-width: 640px) {
  .svc-row { grid-template-columns: 1fr 48px; gap: 14px; }
  .svc-row__n { display: none; }
  .svc-row__img { grid-column: 1 / -1; }
  .svc-row__txt, .svc-row__price { grid-column: 1; }
  .svc-row__go { grid-row: 3; grid-column: 2; }
  .grid2, .grid3, .pgrid { grid-template-columns: 1fr; }
  .phero__facts { width: 100%; }
  .phero__facts div { flex: 1; padding: 14px 16px; }
  .phero__facts dd { font-size: 16px; }
  .filters__grp { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut) 4px; scrollbar-width: none; }
  .fchip { flex: none; }
}

/* Линия этапов: от центра первого до центра последнего кружка */
.steps { --n: 5; --col: calc((100% - (var(--n) - 1) * 20px) / var(--n)); }
.steps--4 { --n: 4; }
@media (min-width: 961px) {
  .steps::before { left: 28px; right: auto; width: calc(100% - var(--col)); }
  .steps::after { width: calc((100% - var(--col)) * var(--p, 0)); }
}
/* Галерея кейса */
.cgal { grid-template-columns: 1fr 1fr; }
.cgal figure:only-child { grid-column: 1 / -1; }
.cgal img { height: 100%; object-fit: cover; aspect-ratio: 4 / 4.6; transition: transform .9s var(--ease); }
.cgal figure:hover img { transform: scale(1.04); }
.cgal:empty { display: none; }

/* ═══════════ Обо мне ═══════════ */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(28px, 4vw, 56px) 0 clamp(64px, 8vw, 110px); }
.about__photo { position: relative; }
.about__photo img { width: 100%; border-radius: calc(var(--radius) + 6px); aspect-ratio: 3 / 4; object-fit: cover; }
.about__photo::before { content: ''; position: absolute; inset: 24px -24px -24px 24px; border: 2px solid var(--accent); border-radius: calc(var(--radius) + 6px); z-index: -1; }
.about__sign { position: absolute; right: -20px; bottom: 32px; padding: 14px 20px; background: var(--card); border-radius: var(--radius-sm); box-shadow: 0 20px 40px -20px rgba(0,0,0,.4); font: 500 15px/1.3 var(--ff-h); }
.about__sign small { display: block; font: 500 12px var(--ff); color: var(--muted); }
.prose { font-size: 18px; color: var(--ink-2); max-width: 40em; }
.prose h2 { font: 500 clamp(22px, 2.2vw, 30px)/1.2 var(--ff-h); color: var(--ink); margin: 1.6em 0 .6em; }
.prose h3 { font: 600 19px/1.3 var(--ff); color: var(--ink); margin: 1.4em 0 .5em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.2em; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.tools { display: flex; flex-wrap: wrap; gap: 10px; }
.tools li { padding: 12px 18px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 500; }
.quote-big { font: 500 clamp(26px, 3.4vw, 46px)/1.2 var(--ff-h); letter-spacing: -.02em; max-width: 22em; }
.quote-big em { font-style: normal; color: var(--accent-d); }

/* ═══════════ Партнёрам ═══════════ */
.cond { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cond__item { padding: 32px; border-radius: var(--radius); background: var(--card); position: relative; overflow: hidden; }
.cond__item h3 { margin-bottom: 10px; }
.cond__item p { color: var(--muted); margin: 0; }
.cond__item svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: rgba(255,165,0,.15); stroke: var(--accent-d); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; }
.flow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; counter-reset: f; }
.flow li { counter-increment: f; display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 999px; background: var(--card); font-weight: 600; transition: background .3s, transform .3s var(--ease); }
.flow li::before { content: counter(f); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); font: 500 13px var(--ff-h); }
.flow li:hover { transform: translateY(-3px); }
.flow li + li { position: relative; }
.pdf { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding: clamp(28px, 4vw, 56px); border-radius: calc(var(--radius) + 6px); background: var(--dark); color: #F3ECE1; }
.pdf .h2 { color: #F3ECE1; }
.pdf p { color: #B9AE9F; }
.pdf .form { grid-template-columns: 1fr auto; align-items: end; }
.pdf .fld input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.15); color: #fff; }
.pdf .fld > span { color: #B9AE9F; }
.pdf .chk { grid-column: 1 / -1; color: #B9AE9F; }
.pdf .chk a { color: #F3ECE1; }
.pdf .form__err { grid-column: 1 / -1; }

/* ═══════════ Контакты ═══════════ */
.cgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ccard { display: flex; flex-direction: column; gap: 6px; padding: 28px; border-radius: var(--radius); background: var(--card); text-decoration: none; border: 1.5px solid transparent; transition: border-color .3s, transform .4s var(--ease); }
a.ccard:hover { border-color: var(--accent); transform: translateY(-4px); }
.ccard small { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.ccard b { font: 500 clamp(18px, 1.7vw, 22px)/1.25 var(--ff-h); word-break: break-word; }
.ccard span { color: var(--muted); font-size: 14px; }
.map { border-radius: calc(var(--radius) + 6px); overflow: hidden; height: 420px; background: var(--paper); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) sepia(.15); }
.req { display: grid; grid-template-columns: max-content 1fr; gap: 12px 32px; margin: 0; font-size: 16px; }
.req dt { color: var(--muted); }
.req dd { margin: 0; font-weight: 600; }

/* ═══════════ Обучение ═══════════ */
.prod { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prod__card { display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius); background: var(--card); border: 1.5px solid var(--line); text-decoration: none; transition: transform .5s var(--ease), border-color .3s, box-shadow .5s; position: relative; }
.prod__card:hover { transform: translateY(-6px); border-color: var(--ink); box-shadow: 0 30px 50px -30px rgba(0,0,0,.35); }
.prod__card--hot { background: var(--dark); color: #F3ECE1; border-color: var(--dark); }
.prod__card--hot p { color: #B9AE9F !important; }
.prod__fmt { font: 600 12px/1 var(--ff); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-d); margin-bottom: 18px; }
.prod__card h3 { margin-bottom: 12px; }
.prod__card p { color: var(--muted); font-size: 15px; }
.prod__price { margin-top: auto; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font: 500 22px var(--ff-h); }
.prod__badge { position: absolute; top: -12px; right: 20px; padding: 6px 12px; border-radius: 999px; background: var(--accent); color: var(--ink); font: 600 12px var(--ff); }
.free { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.free a { display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: var(--radius); border: 1.5px solid var(--line); text-decoration: none; transition: .3s; }
.free a:hover { background: var(--card); border-color: var(--accent); }
.free svg { flex: none; width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--paper); stroke: var(--ink); fill: none; stroke-width: 2; }
.free b { display: block; } .free span { font-size: 14px; color: var(--muted); }
.subscribe { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.subscribe .form { grid-template-columns: 1fr auto; align-items: end; }
.subscribe .chk, .subscribe .form__err { grid-column: 1 / -1; }
.prog { display: grid; gap: 10px; counter-reset: m; }
.prog details { background: var(--card); border-radius: var(--radius); }
.prog summary { list-style: none; cursor: pointer; display: flex; gap: 18px; align-items: center; padding: 22px 26px; font: 600 18px var(--ff); }
.prog summary::-webkit-details-marker { display: none; }
.prog summary::before { counter-increment: m; content: 'Модуль ' counter(m); flex: none; font: 600 12px var(--ff); letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--paper); color: var(--muted); }
.prog details p { padding: 0 26px 22px; margin: 0; color: var(--ink-2); }
.buy { position: sticky; top: calc(var(--hdr) + 24px); padding: 32px; border-radius: calc(var(--radius) + 6px); background: var(--dark); color: #F3ECE1; }
.buy__price { font: 500 44px/1 var(--ff-h); margin: 8px 0 6px; }
.buy ul { display: grid; gap: 10px; margin: 24px 0; color: #D8CFC2; }
.buy li::before { content: '✓  '; color: var(--accent); font-weight: 700; }
.buy small { color: #8C8174; display: block; margin-top: 14px; font-size: 13px; text-align: center; }
.two { display: grid; grid-template-columns: 1fr 380px; gap: clamp(32px, 5vw, 80px); align-items: start; }

/* ═══════════ Отзывы, блог ═══════════ */
.revs--page { grid-template-columns: repeat(2, 1fr); }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.shot { aspect-ratio: 9 / 16; border-radius: var(--radius); border: 2px dashed #CDBFAA; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--muted); font-size: 14px; }
.blog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 20px; }
.post { display: flex; flex-direction: column; text-decoration: none; }
.post__img { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post:hover .post__img img { transform: scale(1.06); }
.post h2, .post h3 { font: 500 21px/1.3 var(--ff-h); margin-bottom: 10px; transition: color .3s; }
.post:hover h2, .post:hover h3 { color: var(--accent-d); }
.post p { color: var(--muted); font-size: 15px; margin: 0; }
.post--big { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.post--big .post__img { margin: 0; aspect-ratio: 16 / 10; }
.post--big h2 { font-size: clamp(26px, 3vw, 40px); }
.art { max-width: 760px; margin: 0 auto; }
.art__cover { max-width: 1100px; margin: 0 auto clamp(32px, 5vw, 64px); border-radius: calc(var(--radius) + 6px); overflow: hidden; }
.art__meta { display: flex; gap: 16px; color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.callout { padding: 24px 28px; border-radius: var(--radius); background: var(--paper); border-left: 4px solid var(--accent); margin: 1.5em 0; }

/* ═══════════ Служебные ═══════════ */
.center-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.center-page .h2 { margin-bottom: 18px; }
.center-page p { color: var(--ink-2); max-width: 32em; margin: 0 auto 28px; font-size: 18px; }
.big404 { font: 500 clamp(120px, 24vw, 320px)/.9 var(--ff-h); letter-spacing: -.06em; background: url(/assets/img/okeanarium-korabl-1280.webp) center / cover; -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; }
.check-anim { width: 96px; height: 96px; margin: 0 auto 28px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; animation: rise .6s var(--ease); }
.check-anim svg { width: 44px; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .4s var(--ease) forwards; }
.legal { padding-bottom: clamp(64px, 8vw, 110px); }
.legal .prose { font-size: 16px; }

@media (max-width: 960px) {
  .about, .pdf, .subscribe, .two { grid-template-columns: 1fr; }
  .about__photo { max-width: 460px; }
  .cond, .cgrid, .prod, .free, .blog, .revs--page { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .post--big { grid-template-columns: 1fr; gap: 20px; }
  .buy { position: static; }
}
@media (max-width: 640px) {
  .cond, .cgrid, .prod, .free, .blog, .revs--page { grid-template-columns: 1fr; }
  .about__sign { right: 8px; }
  .about__photo::before { inset: 14px -10px -14px 14px; }
  .pdf .form, .subscribe .form { grid-template-columns: 1fr; }
  .req { grid-template-columns: 1fr; gap: 2px; }
  .req dd { margin-bottom: 12px; }
}
.fld select { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%231C1813' stroke-width='1.6'/%3E%3C/svg%3E") right 16px center / 12px no-repeat; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 14px 40px 14px 16px; appearance: none; }
.fld select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,165,0,.18); }
.subscribe .form, .pdf .form { display: grid; }
.about { padding-left: var(--gut); padding-right: var(--gut); }
.pdf .h2, .subscribe .h2 { margin-bottom: 16px; }
.map iframe { height: 420px; display: block; }
.center-page { min-height: min(72vh, 760px); }
.center-page .big404 { font-size: clamp(120px, 24vw, 320px); line-height: .9; max-width: none; margin: 0 auto 12px; color: transparent; }
