/* =========================================================
   Бюро Маркетинговой Упаковки — Light Edition (award-tier)
   Архитектурно-технологичный свет: бумажно-белый + ink + ультрамарин.
   Vanilla + GSAP/ScrollTrigger + Lenis + Three.js (CDN).
   ========================================================= */

:root {
	--paper:    oklch(0.985 0.002 250);     /* холодный бумажно-белый (не beige) */
	--surface:  oklch(0.965 0.004 255);
	--surface-2:oklch(0.93 0.006 255);
	--ink:      oklch(0.20 0.02 265);        /* near-black, чуть синий */
	--ink-dim:  oklch(0.42 0.02 265);
	--ink-faint:oklch(0.58 0.015 265);
	--line:     oklch(0.20 0.02 265 / 0.12);
	--line-2:   oklch(0.20 0.02 265 / 0.22);
	--accent:   oklch(0.50 0.235 264);       /* электрический ультрамарин */
	--accent-2: oklch(0.58 0.22 264);
	--on-accent:oklch(0.99 0.01 264);

	/* Цветные «марки»-плашки услуг (боль клиента) — перенесены из тёмной версии */
	--mark-violet:  #53467a;
	--mark-teal:    #1b767c;
	--mark-magenta: #ab3583;
	--mark-blue:    #1b367c;
	--mark-crimson: #930a33;
	--mark-gold:    #93750a;

	--font-display: 'Geologica', system-ui, sans-serif;    /* тонкий техно-гротеск, кириллица ✓ */
	--font-body: 'Manrope', system-ui, sans-serif;         /* кириллица ✓ */

	--e1: cubic-bezier(0.22, 1, 0.36, 1);    /* expo-out */
	--e2: cubic-bezier(0.65, 0, 0.35, 1);

	--container: 1700px;
	--pad: clamp(24px, 6vw, 140px);
	--r: 14px;
	--z-nav: 50; --z-pre: 100;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-weight: 400;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
body.is-loading { overflow: hidden; height: 100dvh; }
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--on-accent); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 300; line-height: 1.06; letter-spacing: -0.02em; text-wrap: balance; }

.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }
.kicker { display: inline-block; font-family: var(--font-body); font-weight: 600; font-size: 0.82rem; letter-spacing: 0; text-transform: none; color: var(--ink-dim); background: var(--surface-2); border: 1px solid var(--line-2); padding: 6px 14px; border-radius: 999px; }

/* ---------- Preloader ---------- */
.pre { position: fixed; inset: 0; z-index: var(--z-pre); background: var(--paper); display: grid; place-items: center; }
.pre__inner { text-align: center; }
.pre__logo { display: inline-block; height: 24px; width: auto; margin-bottom: 22px; padding: 13px 17px; background: var(--ink); border-radius: 14px; opacity: 0; }
.pre__bar { width: min(280px, 60vw); height: 2px; background: var(--line); position: relative; overflow: hidden; }
.pre__bar span { position: absolute; inset: 0; width: 0; background: var(--accent); }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav); display: flex; align-items: center; justify-content: space-between; padding: clamp(16px,2vw,24px) var(--pad); transition: background-color 0.4s var(--e1), box-shadow 0.4s var(--e1), padding 0.4s var(--e1); }
.nav.is-stuck { background: oklch(0.985 0.002 250 / 0.8); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); padding-block: 12px; }
.nav__logo { display: inline-flex; align-items: center; transition: opacity 0.3s var(--e1); }
.nav__logo-img { display: block; width: auto; }
.nav__logo-img--desktop { height: 22px; }          /* горизонтальный вордмарк */
.nav__logo-img--mobile { display: none; height: 26px; }  /* компактный знак */
@media (max-width: 600px) {
	.nav__logo-img--desktop { display: none; }
	.nav__logo-img--mobile { display: block; }
}
.nav__logo:hover { opacity: 0.72; }
.nav__right { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 38px); }
.nav__link { font-size: 0.95rem; font-weight: 500; position: relative; color: var(--ink-dim); transition: color 0.3s var(--e1); }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent); border-radius: 2px; transform: scaleX(0); transform-origin: right; transition: transform 0.38s var(--e1); }
.nav__link:hover, .nav__link.is-active { color: var(--accent); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { background: var(--ink); color: var(--paper); padding: 12px 22px; border-radius: 4px; font-weight: 600; font-size: 0.92rem; transition: background-color 0.3s var(--e1); }
.nav__cta:hover { background: var(--accent); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(40px, 6vw, 100px); padding-top: 17vh; padding-bottom: 10vh; }
/* Наклонная стена обложек проектов в герое */
.covers {
	position: absolute; inset: 0; overflow: hidden; z-index: 0;
	display: flex; align-items: center; justify-content: center;
	perspective: 1600px;
	/* растворяем только сверху и снизу; слева/справа — чёткий край */
	-webkit-mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
	        mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
}
.covers__inner { display: flex; align-items: flex-start; gap: clamp(12px, 1vw, 16px); transform: rotateY(-11deg) rotateX(5deg); transform-style: preserve-3d; }
.covers__col { display: flex; flex-direction: column; gap: 0; width: clamp(210px, 17.5vw, 295px); will-change: transform; transform-style: preserve-3d; animation: cov-up var(--dur, 34s) linear infinite; }
.covers__col--down { animation-name: cov-down; --dur: 40s; }
.covers:hover .covers__col, .covers.is-paused .covers__col { animation-play-state: paused; }
/* --set = пиксельная высота одного набора обложек (вычисляется в app.js).
   Фолбэк -50% работает, если JS не сработал. */
@keyframes cov-up { from { transform: translateY(0); } to { transform: translateY(calc(-1 * var(--set, 50%))); } }
@keyframes cov-down { from { transform: translateY(calc(-1 * var(--set, 50%))); } to { transform: translateY(0); } }

.cv { position: relative; display: block; aspect-ratio: 16 / 9; margin-bottom: clamp(14px, 1.3vw, 20px); border-radius: 12px; overflow: hidden; background: var(--surface-2); box-shadow: 0 14px 30px -10px oklch(0.2 0.06 265 / 0.22); transition: transform 0.65s var(--e1), box-shadow 0.65s var(--e1); }
.cv img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--e1); }
.cv__name { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px 11px; font-weight: 600; font-size: 0.8rem; line-height: 1.2; color: #fff; background: linear-gradient(transparent, oklch(0.18 0.03 265 / 0.88)); opacity: 0; transform: translateY(6px); transition: opacity 0.3s var(--e1), transform 0.3s var(--e1); }
/* #14: активная карточка крупнее (~+20%), translateX(--cv-shift) от JS затягивает её целиком в окно, чтобы не срезало */
.cv.is-active { transform: translateX(var(--cv-shift, 0px)) translateZ(30px) scale(1.28); z-index: 5; box-shadow: 0 34px 60px -22px oklch(0.2 0.06 265 / 0.5); }   /* отрицательный spread — тень уходит вниз, не вылезает по бокам (иначе край блока режет её в рамку) */
#cov-a .cv.is-active { transform-origin: 0% 50%; }   /* левый столбец растёт вправо */
#cov-b .cv.is-active { transform-origin: 100% 50%; }  /* правый столбец растёт влево */
.cv.is-active img { transform: none; }
.cv.is-active .cv__name { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .covers__col { animation: none; } }
.hero__content { position: relative; z-index: 2; }
.hero__title { font-size: clamp(2.6rem, 6.4vw, 5.8rem); font-weight: 300; letter-spacing: -0.025em; line-height: 1.05; }
.hero__title .ln { display: block; overflow: hidden; }
.hero__title .ln > span { display: block; transform: translateY(108%); }
.hero__title em { font-style: normal; font-weight: 500; color: var(--accent); }
.hero__lead { margin-top: clamp(28px, 3.4vw, 40px); max-width: 42ch; font-size: clamp(1.05rem, 1.3vw, 1.3rem); color: var(--ink-dim); }
.hero__actions { margin-top: clamp(34px, 4vw, 52px); display: flex; gap: clamp(20px, 2.4vw, 40px); flex-wrap: wrap; align-items: center; }
.hero__stagewrap { position: relative; z-index: 1; height: 100%; min-height: 60vh; }

/* ---------- Buttons (прямоугольная CTA + текст-ссылка) ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-body); font-weight: 600; font-size: 1.02rem; }
.btn--primary { background: var(--accent); color: var(--on-accent); border: none; cursor: pointer; padding: 18px 32px; border-radius: 4px; transition: background-color 0.3s var(--e1); }
.btn--primary .ar { transition: transform 0.4s var(--e1); }
.btn--primary:hover { background: var(--accent-2); }
.btn--primary:hover .ar { transform: translateX(6px); }
.btn--link { position: relative; color: var(--ink); padding-bottom: 5px; }
.btn--link .ar { transition: transform 0.4s var(--e1); }
.btn--link::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--e1); }
.btn--link:hover::after { transform: scaleX(1); transform-origin: left; }
.btn--link:hover .ar { transform: translateX(6px); }

/* ---------- Section heading ---------- */
.shead { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(48px, 6vw, 96px); }
.shead__title { font-size: clamp(2rem, 5vw, 4rem); font-weight: 300; letter-spacing: -0.025em; }
.shead__note { color: var(--ink-faint); max-width: 32ch; font-size: 0.98rem; }

.reveal { opacity: 0; transform: translateY(28px); }

/* ---------- Works ---------- */
.works { padding-block: clamp(120px, 18vh, 260px); }

/* Featured (первый кейс крупно) */
.feat { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(36px, 4.5vw, 90px); align-items: center; margin-bottom: clamp(80px, 9vw, 160px); }
.feat__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r); background: var(--surface-2); }
.feat__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--e1); }
.feat:hover .feat__media img { transform: scale(1.04); }
.feat__tagline { color: var(--accent); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.04em; }
.feat__name { font-size: clamp(1.8rem, 3.4vw, 3rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1.02; margin: 14px 0 16px; }
.feat__theme { color: var(--ink-dim); font-size: 1.08rem; max-width: 42ch; }
.feat__meta { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 26px; }
.chip { font-size: 0.8rem; color: var(--ink-dim); background: var(--surface-2); border-radius: 100px; padding: 7px 14px; }

/* Сетка остальных */
.works__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr)); gap: clamp(40px, 4vw, 80px) clamp(32px, 3vw, 56px); grid-auto-flow: row dense; }   /* dense — добивает пустые ячейки перед широкими видео-кейсами (в т.ч. при фильтрации) */
/* Карточка кейса: клик по карточке → сайт проекта (видеокейс → попап с видео) */
.card { position: relative; display: flex; flex-direction: column; cursor: pointer; width: 100%; text-align: left; background: none; border: none; padding: 0; font: inherit; color: inherit; }
.card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r); background: var(--surface-2); }
.card__media img:not(.card__cover), .card__media video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--e1); }
.card:hover .card__media img:not(.card__cover) { transform: scale(1.04); }   /* видео и его обложку при ховере не зумим */
.card__cms { position: absolute; bottom: 12px; left: 12px; background: oklch(0.99 0.01 264 / 0.9); backdrop-filter: blur(6px); color: var(--ink); font-size: 0.74rem; font-weight: 600; padding: 6px 11px; border-radius: 100px; }
.card__body { padding-top: 18px; display: flex; flex-direction: column; gap: 9px; }
.card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.card__name { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1.15; }
.card__theme { color: var(--ink-faint); font-size: 0.92rem; max-width: 44ch; }
.card__go { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ink); font-size: 0.95rem; transition: transform 0.4s var(--e1), background-color 0.3s var(--e1), color 0.3s var(--e1); }
.card:hover .card__go { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.card__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 3px; }
.card__tag { font-size: 0.76rem; font-weight: 500; color: var(--ink-dim); background: var(--surface-2); border: 1px solid var(--line); padding: 4px 10px; border-radius: 100px; }
/* Кейсы с видео-обложкой — крупные, во всю строку (обложка + название/тема/теги) */
.card--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 72px); align-items: center; }
.card--wide .card__body { padding-top: 0; gap: 14px; }
.card--wide .card__name { font-size: clamp(1.5rem, 2.4vw, 2.3rem); line-height: 1.1; }
.card--wide .card__theme { font-size: 1.05rem; max-width: 46ch; }
@media (max-width: 760px) { .card--wide { grid-template-columns: 1fr; gap: 16px; } .card--wide .card__body { padding-top: 18px; } }

/* ---------- Showreel ---------- */
.reel { padding-block: clamp(120px, 18vh, 260px); }
.reel__top { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 72px); }
.reel__title { font-size: clamp(2rem, 5vw, 4rem); font-weight: 300; letter-spacing: -0.015em; }
.reel__note { color: var(--ink-faint); max-width: 36ch; font-size: 0.98rem; }
.reel__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: radial-gradient(circle at 50% 38%, oklch(0.46 0.2 264), oklch(0.18 0.03 265)); }
.reel__video { width: 100%; height: 100%; object-fit: cover; }
.reel__play { position: absolute; inset: 0; margin: auto; width: clamp(72px, 8vw, 104px); height: clamp(72px, 8vw, 104px); border: none; border-radius: 50%; background: var(--paper); color: var(--accent); cursor: pointer; display: grid; place-items: center; box-shadow: 0 18px 50px oklch(0.2 0.05 265 / 0.35); transition: transform 0.45s var(--e1), background-color 0.3s var(--e1), color 0.3s var(--e1), opacity 0.4s var(--e1); }
.reel__play span { width: 0; height: 0; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent currentColor; margin-left: 5px; }
.reel__play:hover { transform: scale(1.08); background: var(--accent); color: var(--on-accent); }
.reel__frame.is-playing .reel__play { opacity: 0; pointer-events: none; }

/* ---------- Services (sticky two-col) ---------- */
.services { padding-block: clamp(120px, 18vh, 260px); background: var(--surface); }
.services__inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 6vw, 120px); align-items: start; }
.services__aside { position: sticky; top: 16vh; }
.services__title { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 300; letter-spacing: -0.025em; }
.services__sub { margin-top: 18px; color: var(--ink-dim); max-width: 32ch; }
.svc { border-top: 1px solid var(--line); padding: clamp(28px, 3.6vw, 50px) 0; transition: opacity 0.4s var(--e1); }
.svc__main { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.svc__mark { display: inline-block; background: var(--mark, var(--accent)); color: #fff; font-family: var(--font-body); font-weight: 600; font-size: 0.82rem; line-height: 1.25; letter-spacing: 0.01em; padding: 7px 15px; border-radius: 100px; }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc__num { font-family: var(--font-display); font-weight: 500; color: var(--accent); font-size: 1rem; }
.svc__name { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 2.1rem); letter-spacing: -0.015em; line-height: 1.05; }
.svc__desc { color: var(--ink-dim); font-size: 0.98rem; max-width: 30ch; margin-top: 10px; }
.svc__plus { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background-color 0.35s var(--e1), color 0.35s var(--e1), transform 0.35s var(--e1); }
@media (hover: hover) { .svc:hover .svc__plus { background: var(--accent); color: var(--on-accent); border-color: var(--accent); transform: rotate(90deg); } }

/* ---------- Drenched band (манифест в цвете) ---------- */
.band { background: var(--accent); color: var(--on-accent); padding-block: clamp(80px, 13vh, 200px); }
.band__text { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 4.2vw, 3.6rem); line-height: 1.12; letter-spacing: -0.015em; max-width: 24ch; }
.band__text .w { display: inline-block; opacity: 0.32; transition: opacity 0.3s var(--e1); }
.band__stats { margin-top: clamp(40px, 6vw, 90px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 1px solid oklch(0.99 0.01 264 / 0.28); padding-top: 30px; }
.band__n { font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 3.6vw, 3.2rem); letter-spacing: -0.02em; }
.band__l { opacity: 0.82; margin-top: 6px; font-size: 0.95rem; }
.band__top { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: clamp(40px, 5vw, 90px); align-items: center; }
.band__photo { margin: 0; }
.band__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: var(--r); display: block; box-shadow: 0 30px 70px oklch(0.18 0.05 265 / 0.4); }
@media (max-width: 760px) { .band__top { grid-template-columns: 1fr; gap: clamp(28px, 5vw, 40px); } .band__photo { max-width: 300px; } }

/* ---------- Contact ---------- */
.contact { padding-block: clamp(120px, 18vh, 260px); }
.contact__big { font-size: clamp(2.4rem, 9vw, 9rem); font-weight: 300; letter-spacing: -0.03em; line-height: 0.94; }
.contact__big a { transition: color 0.4s var(--e1); }
.contact__big a:hover { color: var(--accent); }
.contact__grid { margin-top: clamp(40px, 6vw, 90px); display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; border-top: 1px solid var(--line); padding-top: 36px; }
.contact__col h4 { font-family: var(--font-display); font-weight: 500; color: var(--ink); font-size: 1.02rem; letter-spacing: -0.01em; text-transform: none; margin-bottom: 14px; }
.contact__col a, .contact__col p { display: block; font-size: 1.05rem; color: var(--ink-dim); margin-bottom: 8px; transition: color 0.3s var(--e1); }
.contact__col a:hover { color: var(--ink); }
.contact__foot { margin-top: clamp(48px, 8vw, 110px); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--ink-faint); font-size: 0.85rem; }

.magnetic { display: inline-flex; will-change: transform; }
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform: scaleX(0); transform-origin: left; background: var(--accent); z-index: 70; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.hero { grid-template-columns: 1fr; min-height: auto; padding-top: 18vh; padding-bottom: 12vh; }
	.hero__stagewrap { display: none; }
	.feat { grid-template-columns: 1fr; }
	.services__inner { grid-template-columns: 1fr; }
	.services__aside { position: static; }
	.band__stats { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 600px) {
	.nav__right { display: none; }
	.nav__burger { display: flex; }
	.svc__plus { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.hero__title .ln > span { transform: none !important; }
	.reveal { opacity: 1 !important; transform: none !important; }
	.band__text .w { opacity: 1 !important; }
	.modal__overlay, .modal__dialog { animation: none !important; }
}

/* ============================================================
   Блок 2: кейсы (фильтры, видео), модалки и формы — светлая
   Воздух — приоритет: крупные карточки, много отступов, чистые поверхности.
   ============================================================ */

.is-hidden { display: none !important; }

/* Фильтры направлений */
.works__filters { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-bottom: clamp(40px, 5vw, 72px); }
.fchip { font-family: var(--font-body); font-size: 0.92rem; font-weight: 500; color: var(--ink-dim); background: transparent; border: 1px solid var(--line-2); border-radius: 100px; padding: 9px 18px; cursor: pointer; transition: color .3s var(--e1), background-color .3s var(--e1), border-color .3s var(--e1); }
.fchip:hover { color: var(--accent); border-color: var(--accent); }
.fchip.is-active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.fchip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.works__empty { color: var(--ink-faint); font-size: 1.05rem; padding: 10px 0; }

/* Видео в карточке: бейдж «Видео» + обложка-оверлей (возврат на паузе) */
.card__cms { z-index: 2; }
.card__videotag { position: absolute; top: 12px; right: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; background: oklch(0.2 0.03 265 / 0.82); color: #fff; font-size: 0.72rem; font-weight: 600; padding: 6px 10px; border-radius: 100px; backdrop-filter: blur(6px); transition: opacity .3s var(--e1); }
.card__videotag svg { display: block; }
.card.is-playing .card__videotag { opacity: 0; }
.card__cover { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: opacity .55s var(--e1), filter .55s var(--e1); }
.card.is-playing .card__cover { opacity: 0; filter: blur(8px); }
@media (prefers-reduced-motion: reduce) { .card__cover { transition: none; } }

/* Модалка */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-start; justify-content: center; padding: clamp(16px, 5vh, 80px) var(--pad); overflow-y: auto; }
.modal[hidden] { display: none; }
.modal__overlay { position: fixed; inset: 0; background: oklch(0.2 0.02 265 / 0.42); backdrop-filter: blur(6px); animation: m-fade .25s var(--e1); }
.modal__dialog { position: relative; width: 100%; max-width: 640px; background: var(--paper); border-radius: var(--r); padding: clamp(28px, 4vw, 56px); box-shadow: 0 40px 120px oklch(0.2 0.06 265 / 0.28); animation: m-rise .35s var(--e1); }
.modal__close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border: none; background: transparent; color: var(--ink-dim); cursor: pointer; display: grid; place-items: center; border-radius: 50%; transition: background-color .3s var(--e1), color .3s var(--e1); }
.modal__close:hover { background: var(--surface-2); color: var(--ink); }
@keyframes m-fade { from { opacity: 0; } }
@keyframes m-rise { from { opacity: 0; transform: translateY(16px); } }

/* Контент попапа кейса */
.lmodal__media { aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--surface-2); margin-bottom: clamp(20px, 2.4vw, 30px); }
.lmodal__media img { width: 100%; height: 100%; object-fit: cover; }
.lmodal__video { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r); background: #000; margin-bottom: clamp(20px, 2.4vw, 30px); }
.lmodal__title { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.08; padding-right: 40px; }
.lmodal__theme { margin-top: 14px; color: var(--ink-dim); font-size: 1.05rem; }
.lmodal__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.lmodal__note { margin-top: 22px; color: var(--ink-faint); font-size: 0.95rem; }
.lmodal__cta { margin-top: clamp(26px, 3vw, 36px); display: flex; flex-wrap: wrap; gap: 16px 26px; align-items: center; }
@media (max-width: 560px) {
	.modal { padding: 12px; }
	.modal__dialog { max-width: 100%; min-width: 0; padding: 24px 18px 28px; }
	.lmodal__cta { flex-wrap: nowrap; gap: 10px; align-items: stretch; }
	.lmodal__cta .btn { flex: 1 1 0; min-width: 0; justify-content: center; text-align: center; font-size: 0.84rem; gap: 0; line-height: 1.15; }
	.lmodal__cta .btn .ar { display: none; }
	.lmodal__cta .btn--primary { padding: 13px 8px; }
	.lmodal__cta .btn--link { padding-bottom: 2px; align-self: center; }
}

/* Форма */
.btn--link { background: none; border: none; cursor: pointer; }
.lform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: block; margin-top: 14px; }
.field__label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink-faint); letter-spacing: 0.04em; margin-bottom: 8px; }
.field__input, .field__textarea { width: 100%; font-family: var(--font-body); font-size: 1.02rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; padding: 13px 16px; transition: border-color .25s var(--e1), background-color .25s var(--e1); }
.field__textarea { min-height: 96px; resize: vertical; }
.field__input:focus, .field__textarea:focus { outline: none; border-color: var(--accent); background: var(--paper); }
.field.is-invalid .field__input, .field.is-invalid .field__textarea { border-color: oklch(0.55 0.2 25); }
.field__error { display: block; min-height: 1.1em; margin-top: 6px; font-size: 0.85rem; color: oklch(0.55 0.2 25); }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; font-size: 0.9rem; color: var(--ink-dim); line-height: 1.5; cursor: pointer; }
.check input { margin-top: 3px; flex: 0 0 auto; accent-color: var(--accent); width: 18px; height: 18px; }
.check a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.check.is-invalid { color: oklch(0.55 0.2 25); }
.lform__submit { margin-top: 20px; }
.lform__senderror { margin-top: 14px; color: oklch(0.55 0.2 25); font-size: 0.9rem; }
.lform__senderror a { color: var(--accent); }
.lform__success .btn { margin-top: 26px; }

/* ===== Лид-магнит (2 колонки, воздушный) ===== */
.lead { background: var(--surface); padding-block: clamp(90px, 14vh, 200px); }
.lead__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 110px); align-items: center; }
.lead__title { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1.02; margin-top: 20px; }
.lead__sub { margin-top: clamp(20px, 2.4vw, 28px); font-size: clamp(1.15rem, 1.6vw, 1.5rem); color: var(--ink-dim); max-width: 40ch; }
.lead__desc { margin-top: 16px; color: var(--ink-faint); font-size: 1.05rem; max-width: 46ch; }
.lead .btn--primary { margin-top: clamp(28px, 3.4vw, 42px); }
@media (max-width: 1024px) {
	.lead__inner { grid-template-columns: 1fr; gap: clamp(26px, 4vw, 44px); }
	.lead__sub { max-width: 52ch; }
}

/* ===== Партнёрская программа: калькулятор ===== */
.partners { padding-block: clamp(120px, 18vh, 260px); }
.pcalc { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 5vw, 96px); align-items: start; }
.pcalc__panel { display: flex; flex-direction: column; gap: clamp(30px, 3.6vw, 48px); }
.pcalc__group { display: flex; flex-direction: column; gap: 16px; }
.pcalc__label { font-size: 0.9rem; font-weight: 600; color: var(--ink-dim); letter-spacing: 0; text-transform: none; }
.pcalc__label--row { display: flex; justify-content: space-between; align-items: baseline; text-transform: none; letter-spacing: 0; font-size: 0.95rem; color: var(--ink-dim); font-weight: 500; }
.pcalc__label--row span:last-child { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
.pcalc__formats { display: flex; flex-wrap: wrap; gap: 10px; }
.pformat { font-family: var(--font-body); font-size: 0.95rem; font-weight: 500; color: var(--ink-dim); background: transparent; border: 1px solid var(--line-2); border-radius: 100px; padding: 11px 22px; cursor: pointer; transition: color .3s var(--e1), background-color .3s var(--e1), border-color .3s var(--e1); }
.pformat:hover { color: var(--ink); border-color: var(--ink); }
.pformat.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pcalc__stepper { display: inline-flex; align-items: center; gap: 8px; }
.pcalc__stepper button { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; font-size: 1.5rem; line-height: 1; color: var(--ink); cursor: pointer; transition: background-color .3s var(--e1), color .3s var(--e1), border-color .3s var(--e1); }
.pcalc__stepper button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pcalc__stepper output { min-width: 70px; text-align: center; font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; }
.pcalc__range { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: var(--surface-2); cursor: pointer; }
.pcalc__range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); cursor: pointer; border: 4px solid var(--paper); box-shadow: 0 2px 8px oklch(0.2 0.06 265 / 0.25); }
.pcalc__range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); cursor: pointer; border: none; }
.pcalc__result { background: var(--surface); border-radius: var(--r); padding: clamp(32px, 3.6vw, 52px); }
.pcalc__result-cap { color: var(--ink-faint); font-size: 0.95rem; }
.pcalc__result-sum { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1; color: var(--accent); margin-top: 10px; }
.pcalc__result-note { color: var(--ink-faint); font-size: 0.9rem; line-height: 1.5; margin-top: 16px; max-width: 40ch; }
.pcalc__result .btn--primary { margin-top: 26px; }
.pcalc__leaders { margin-top: 22px; color: var(--ink-dim); font-size: 0.9rem; }
.pcalc__leaders b { color: var(--ink); }
.field__select { width: 100%; font-family: var(--font-body); font-size: 1.02rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; padding: 13px 16px; cursor: pointer; }
.field__select:focus { outline: none; border-color: var(--accent); }
.field.is-invalid .field__select { border-color: oklch(0.55 0.2 25); }
@media (max-width: 900px) { .pcalc { grid-template-columns: 1fr; gap: clamp(32px, 5vw, 48px); } }

/* ===== Контакт: рабочая форма + инфо ===== */
.contact__main { display: grid; grid-template-columns: 1fr 0.78fr; gap: clamp(40px, 6vw, 100px); margin-top: clamp(44px, 6vw, 90px); align-items: start; }
.contact__form { display: flex; flex-direction: column; }
.contact__form .field:first-of-type { margin-top: 0; }
/* Кнопка отправки в контактной форме — по размеру контента, слева (не на всю ширину) */
.contact__form .lform__submit { align-self: flex-start; width: auto; }
@media (max-width: 640px) { .contact__form .lform__submit { align-self: stretch; width: 100%; } }
.contact__aside { display: flex; flex-direction: column; gap: clamp(28px, 3.2vw, 44px); }
@media (max-width: 900px) { .contact__main { grid-template-columns: 1fr; gap: clamp(36px, 6vw, 56px); } }

/* ===== Cookie-баннер ===== */
.cookie { position: fixed; left: var(--pad); right: var(--pad); bottom: clamp(16px, 3vw, 28px); z-index: 80; max-width: 760px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; background: var(--ink); color: var(--paper); padding: 18px 24px; border-radius: var(--r); box-shadow: 0 20px 60px oklch(0.2 0.06 265 / 0.3); }
.cookie[hidden] { display: none; }
.cookie__text { font-size: 0.92rem; line-height: 1.5; max-width: 56ch; color: oklch(0.92 0.01 255); }
.cookie__text a { color: var(--paper); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.cookie__btn { flex: 0 0 auto; padding: 12px 26px; }

/* ===== Внутренние страницы (кейсы / услуги / документы) ===== */
.subnav { border-bottom: 1px solid var(--line); }
.subnav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 18px; }
.subnav__right { display: flex; align-items: center; gap: clamp(16px, 2vw, 34px); }
@media (max-width: 700px) { .subnav__right .nav__link { display: none; } }
.subpage { max-width: 880px; margin-inline: auto; padding-block: clamp(40px, 6vw, 90px) clamp(80px, 12vh, 160px); }
.subpage__back { display: inline-block; color: var(--ink-dim); font-size: 0.95rem; margin-bottom: clamp(28px, 4vw, 48px); transition: color 0.3s var(--e1); }
.subpage__back:hover { color: var(--accent); }
.subpage__media { aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--surface-2); margin-bottom: clamp(28px, 3.4vw, 44px); }
.subpage__media img, .subpage__media video { width: 100%; height: 100%; object-fit: cover; }
.subpage__title { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 300; letter-spacing: -0.025em; line-height: 1.05; }
.subpage__theme { margin-top: 18px; font-size: clamp(1.1rem, 1.5vw, 1.35rem); color: var(--ink-dim); max-width: 60ch; }
.subpage__cms { margin-top: 16px; color: var(--ink-dim); }
.subpage__meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 30px; }
.subpage__note { margin-top: 44px; color: var(--ink-faint); font-size: 0.95rem; }
.subpage__body { margin-top: 26px; }
.subpage__body p { margin-top: 18px; font-size: 1.05rem; line-height: 1.7; color: var(--ink-dim); max-width: 72ch; }
.subpage__body h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 400; letter-spacing: -0.015em; margin-top: 40px; }
.subfoot { border-top: 1px solid var(--line); padding-block: 36px; }
.subfoot__row { display: flex; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; color: var(--ink-faint); font-size: 0.88rem; }
.subfoot__legal { display: flex; gap: 22px; flex-wrap: wrap; }
.subfoot__legal a:hover { color: var(--ink); }

/* Юр-страницы */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.08; }
.legal h2 { font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 400; letter-spacing: -0.01em; margin-top: 40px; }
.legal p { margin-top: 16px; color: var(--ink-dim); line-height: 1.7; }
.legal ul { margin: 16px 0 0 20px; color: var(--ink-dim); line-height: 1.7; display: flex; flex-direction: column; gap: 8px; }
.legal a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.legal__meta { color: var(--ink-faint); font-size: 0.9rem; margin-top: 10px; }
.legal__lead { font-size: 1.1rem; color: var(--ink); margin-top: 18px; }
.legal__note { margin-top: 24px; padding: 16px 18px; background: var(--surface); border-radius: 10px; color: var(--ink-dim); font-size: 0.92rem; }

/* ===== Мобильное меню (бургер) ===== */
.nav__burger { display: none; width: 44px; height: 44px; border: none; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; padding: 10px; flex-shrink: 0; }
.nav__burger span { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--e1), opacity 0.3s var(--e1); }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__panel { position: fixed; inset: 0 0 auto 0; z-index: 40; background: var(--paper); padding: clamp(82px, 14vh, 110px) var(--pad) clamp(28px, 6vw, 40px); display: flex; flex-direction: column; gap: 4px; box-shadow: 0 24px 60px oklch(0.2 0.06 265 / 0.14); transform: translateY(-100%); opacity: 0; pointer-events: none; transition: transform 0.45s var(--e1), opacity 0.3s var(--e1); }
.nav.is-open ~ .nav__panel { transform: translateY(0); opacity: 1; pointer-events: auto; }
.nav__panel-link { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--line); }
.nav__panel-cta { margin-top: 20px; justify-content: center; }
body.menu-open { overflow: hidden; }
@media (min-width: 601px) { .nav__panel { display: none; } }
@media (max-width: 600px) { .nav__right { display: none; } .nav__burger { display: flex; } }
/* Планшет: кейсы в 2 колонки (на мобильном — 1, на десктопе — авто 3) */
@media (min-width: 601px) and (max-width: 1100px) { .works__grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   Джентльменский набор — услуга-комплекс + SVG-схема воронки
   ============================================================ */
.gent { padding-block: clamp(84px, 12vh, 170px); }
.gent__inner { display: grid; grid-template-columns: minmax(340px, 400px) minmax(0, 1fr); gap: clamp(44px, 5vw, 100px); align-items: center; }
.gent__head { max-width: 760px; }
.gent__title { font-size: clamp(2rem, 2.5vw, 2.6rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.08; margin-top: 18px; text-wrap: balance; }
.gent__sub { margin-top: clamp(18px, 2vw, 24px); font-size: clamp(1.04rem, 1.2vw, 1.2rem); color: var(--ink-dim); max-width: 46ch; }
.gent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(16px, 2vw, 30px); margin-top: clamp(28px, 3.2vw, 40px); }

.gent__diagram { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.gd { display: block; width: 100%; min-width: 600px; height: auto; margin-inline: auto; }
.gd-box { fill: var(--surface); stroke: var(--line-2); stroke-width: 1.5; }
.gd-chip { fill: var(--paper); stroke: var(--line-2); stroke-width: 1.4; }
.gd-soft { fill: var(--surface-2); }
.gd-line { fill: var(--line-2); }
.gd-accent { fill: var(--accent); }
.gd-dot { fill: var(--ink-faint); }
.gd-stroke { fill: none; stroke: var(--line-2); stroke-width: 1.6; stroke-linecap: round; }
.gd-flow { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gd-data { fill: none; stroke: var(--ink-faint); stroke-width: 1.6; stroke-dasharray: 5 6; stroke-linecap: round; }
.gd-ah { fill: var(--accent); }
.gd-ahd { fill: var(--ink-faint); }
.gd-track { fill: none; stroke: var(--surface-2); stroke-width: 13; }
.gd-ring { fill: none; stroke: var(--accent); stroke-width: 13; stroke-linecap: round; }
.gd text { font-family: var(--font-body); }
.gd-title { fill: var(--ink); font-size: 16px; font-weight: 600; }
.gd-cap { fill: var(--ink-faint); font-size: 12.5px; font-weight: 500; }
.gd-tag { fill: var(--ink-dim); font-size: 13px; font-weight: 600; }

.gent__more[hidden] { display: none; }
.gent__more { grid-column: 1 / -1; margin-top: clamp(36px, 4vw, 60px); padding-top: clamp(36px, 4vw, 56px); border-top: 1px solid var(--line); max-width: 920px; }
.gent__more > p { color: var(--ink-dim); font-size: 1.06rem; max-width: 70ch; text-wrap: pretty; }
.gent__more > p + p { margin-top: 1.05em; }
.gent__steps { list-style: none; margin-top: clamp(32px, 3.8vw, 50px); display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(26px, 3vw, 46px); }
.gstep { display: flex; gap: 16px; align-items: flex-start; }
.gstep__ic { flex: none; width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: 13px; display: grid; place-items: center; color: var(--accent); }
.gstep__ic svg { width: 23px; height: 23px; }
.gstep__b h4 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; line-height: 1.25; margin-bottom: 6px; }
.gstep__b h4 b { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; margin-right: 10px; }
.gstep__b p { font-size: 0.97rem; color: var(--ink-dim); max-width: 44ch; }
.gent__more-cta { margin-top: clamp(34px, 4vw, 54px); }
.js-gent-more .ar { transition: transform 0.4s var(--e1); }
.js-gent-more[aria-expanded="true"] .ar { transform: rotate(90deg); }
@media (max-width: 1200px) {
	.gent__inner { grid-template-columns: 1fr; gap: clamp(40px, 6vw, 70px); align-items: start; }
	.gent__head { max-width: 720px; }
	.gent__title { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.04; }
	.gent__sub { max-width: 60ch; font-size: clamp(1.08rem, 1.6vw, 1.3rem); }
}
@media (max-width: 680px) { .gent__steps { grid-template-columns: 1fr; } }

/* ===== H3 в «Джентльменском наборе» ===== */
.gent__h3 { margin-top: 14px; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.1rem, 1.7vw, 1.5rem); letter-spacing: -0.01em; color: var(--accent); }

/* ===== Переключатель способа связи ===== */
.field--contact { display: block; margin-top: 18px; }
.cmethods { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.cmethod { font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; color: var(--ink-dim); background: transparent; border: 1px solid var(--line-2); border-radius: 100px; padding: 6px 13px; cursor: pointer; transition: color .25s var(--e1), background-color .25s var(--e1), border-color .25s var(--e1); }
.cmethod:hover { color: var(--accent); border-color: var(--accent); }
.cmethod.is-active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* ===== Фото в попап-форме (2 колонки: поля + портрет) ===== */
.lform__intro { display: grid; grid-template-columns: clamp(96px, 24%, 132px) 1fr; column-gap: clamp(16px, 2.6vw, 24px); row-gap: 6px; align-items: center; margin: 0 0 clamp(18px, 2.4vw, 26px); }
.lform__photo { grid-row: 1 / 3; margin: 0; }
.lform__photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: top; border-radius: 14px; display: block; border: 1px solid var(--line); }
.lform__intro .lmodal__title { grid-column: 2; margin: 0; align-self: end; }
.lform__intro .lmodal__theme { grid-column: 2; margin: 0; align-self: start; }
@media (max-width: 560px) {
	.lform__intro { grid-template-columns: 76px 1fr; column-gap: 14px; row-gap: 10px; }
	.lform__photo { grid-row: 1; }
	.lform__intro .lmodal__title { align-self: center; }
	.lform__intro .lmodal__theme { grid-column: 1 / -1; align-self: start; }
}

/* ===== Партнёрка: условия ===== */
.partners__terms { margin-top: clamp(44px, 5vw, 76px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
.pterm { border-top: 2px solid var(--accent); padding-top: 16px; }
.pterm__h { font-family: var(--font-display); font-weight: 400; font-size: 1.12rem; letter-spacing: -0.01em; margin-bottom: 10px; }
.pterm p { color: var(--ink-dim); font-size: 0.96rem; line-height: 1.6; }
@media (max-width: 820px) { .partners__terms { grid-template-columns: 1fr; gap: 28px; } }

/* ===== Батч 23.06: логотип, кнопки, ссылки, табы, иконки связи, подписи, видео-попап ===== */

/* #16 Логотип в шапке крупнее */
.nav__logo-img--desktop { height: 30px; }

/* Синяя кнопка — V2: магнитный 3D-наклон к курсору + скользящий блик (наклон задаётся в app.js) */
.btn--primary { position: relative; overflow: hidden; box-shadow: 0 10px 24px -10px oklch(0.4 0.2 264 / 0.5); transition: transform 0.25s var(--e1), box-shadow 0.25s var(--e1), background-color 0.3s var(--e1); }
.btn--primary:hover { box-shadow: 0 18px 36px -10px oklch(0.4 0.2 264 / 0.55); }
.nav__cta { position: relative; overflow: hidden; transition: transform 0.25s var(--e1), background-color 0.3s var(--e1); }
.btn__glare { position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(120px circle at var(--gx, 50%) var(--gy, 50%), oklch(1 0 0 / 0.45), transparent 60%); opacity: 0; transition: opacity 0.25s var(--e1); pointer-events: none; }
.btn--primary:hover .btn__glare, .nav__cta:hover .btn__glare { opacity: 1; }
.btn .ar { display: inline-block; }
@media (prefers-reduced-motion: reduce) { .btn--primary { transition: box-shadow 0.25s var(--e1), background-color 0.3s var(--e1); } }

/* #17 Контентные ссылки: анимированное подчёркивание + синий, как в меню (::after растёт от края) */
.btn--link:hover { color: var(--accent); }
.contact__col a, .subfoot__legal a { position: relative; width: fit-content; transition: color 0.3s var(--e1); }
.contact__col a::after, .subfoot__legal a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform 0.38s var(--e1); }
.contact__col a:hover, .subfoot__legal a:hover { color: var(--accent); }
.contact__col a:hover::after, .subfoot__legal a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__panel-link { transition: color 0.3s var(--e1); }
.nav__panel-link:hover { color: var(--accent); }

/* #18 Табы кейсов и партнёрки: ховер красит обводку, активный — заливается (волна слева) */
.fchip, .pformat { position: relative; overflow: hidden; z-index: 0; }
.fchip::before, .pformat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--e1); }
.fchip.is-active::before, .pformat.is-active::before { transform: scaleX(1); }
.fchip.is-active, .pformat.is-active { background: transparent; color: var(--on-accent); border-color: var(--accent); }
.fchip:hover:not(.is-active), .pformat:hover:not(.is-active) { color: var(--accent); border-color: var(--accent); }

/* #7 Иконки способа связи */
.cmethod { display: inline-flex; align-items: center; gap: 7px; }
.cmethod__ic { width: 16px; height: 16px; flex: 0 0 auto; display: block; }

/* #10 Кикер «Видеокейс» на карточке + крупное видео в попапе */
.card__kicker { align-self: flex-start; margin-bottom: 10px; color: var(--accent); }
.modal__dialog:has(.lmodal__video) { max-width: min(1000px, 94vw); }

/* #3 Подпись к фото (форма + блок «О нас») */
.lform__cap { margin-top: 8px; text-align: left; line-height: 1.25; }
.lform__cap b { display: block; font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.lform__cap span { font-size: 0.78rem; color: var(--ink-dim); white-space: nowrap; }
.band__cap { margin-top: 14px; line-height: 1.25; }
.band__cap b { display: block; font-weight: 600; font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--on-accent); }
.band__cap span { font-size: 0.9rem; color: oklch(1 0 0 / 0.72); }
@media (max-width: 560px) { .lform__cap { display: none; } }   /* узкий экран: портрет 76px — подпись лишняя */

/* ===== «О нас»: почему с нами нормально работать ===== */
.band__reasons-wrap { margin-top: clamp(48px, 6vw, 96px); }
.band__reasons-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 3.2vw, 2.6rem); letter-spacing: -0.02em; margin-bottom: clamp(24px, 2.6vw, 40px); }
.band__reasons { list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(48px, 6vw, 100px); }
.band__reason { border-top: 1px solid oklch(1 0 0 / 0.26); padding: clamp(22px, 2.6vw, 34px) 0; font-size: clamp(1.02rem, 1.15vw, 1.16rem); line-height: 1.5; color: oklch(1 0 0 / 0.82); }
.band__reason b { color: #fff; font-weight: 700; }
.band__reason s { opacity: 0.42; text-decoration-thickness: 1px; }
@media (max-width: 760px) { .band__reasons { grid-template-columns: 1fr; } }

/* ===== Отзывы (виджет Яндекс Карт) ===== */
.reviews { padding-block: clamp(70px, 9vh, 130px); }
.reviews__widget { margin-top: clamp(28px, 3.5vw, 48px); }

/* ===== Партнёрка: заголовок калькулятора ===== */
.pcalc__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -0.01em; margin: clamp(20px, 2.6vw, 34px) 0 clamp(16px, 2vw, 24px); }
