/* =========================================================
   keln.space / uslugi — редакторский раздел услуг (Jost).
   Самодостаточный стиль (не пересекается с корневым разделом).
   Кремовая палитра + чернильный текст + гранатовый акцент.
   ========================================================= */

@font-face { font-family: "Exo2"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/exo2.woff2") format("woff2"); }
@font-face { font-family: "Exo2"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("/fonts/exo2-italic.woff2") format("woff2"); }

:root {
  --cream: #f4f5f8; --cream-2: #e9ebf1; --card: #ffffff;
  --ink: #16181f; --ink-soft: #313542; --muted: #6b7280;
  --line: rgba(22,24,31,.14); --line-strong: rgba(22,24,31,.30);
  --accent: #4f46e5; --accent-2: #ec4899;
  --footer: #14151b; --footer-ink: #e7e8ee; --footer-muted: #888ea0;
  --container: 1280px; --pad: clamp(20px, 4vw, 60px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.uslugi {
  margin: 0; font-family: "Exo2", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 400; color: var(--ink); background: var(--cream); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
body.uslugi a { color: inherit; text-decoration: none; }
/* кнопки — явные цвета поверх a{color:inherit} */
body.uslugi .btn-light { color: var(--ink); }
body.uslugi .btn-dark { color: #fff; }
body.uslugi .btn-outline-light { color: #fff; }
body.uslugi .btn-accent { color: #fff; }
body.uslugi .nav-inline .cta { color: var(--ink); }
body.head-light .nav-inline .cta { background: var(--ink); color: #fff; }
body.uslugi .dock-cta { color: #fff; }
/* проекты в подвале — ровные плашки (перебиваем .footer-col a padding) */
.footer-col .proj-card { padding: 14px 16px; }
body.uslugi img { max-width: 100%; display: block; }
body.uslugi button { font-family: inherit; cursor: pointer; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }

.label { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
h1, h2, h3 { margin: 0; font-weight: 500; }
em { font-style: italic; font-weight: 300; color: var(--accent); }

.arrow-circle { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--ink); background: transparent; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.arrow-circle svg { width: 17px; height: 17px; }

.btn { display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 10px 0 24px; border-radius: 40px; font-size: 15px; font-weight: 500; border: 1px solid transparent; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease); }
.btn .ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 34px; }
.btn .ic svg { width: 15px; height: 15px; }
.btn-light { background: var(--cream); color: var(--ink); } .btn-light .ic { background: var(--ink); color: var(--cream); }
.btn-outline-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.45); backdrop-filter: blur(4px); } .btn-outline-light .ic { background: #fff; color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--cream); } .btn-dark .ic { background: var(--cream); color: var(--ink); }
.btn-accent { background: var(--accent); color: #fff; } .btn-accent .ic { background: #fff; color: var(--accent); }
.btn:hover { transform: translateY(-1px); }
.btn-plain { padding: 0 30px; justify-content: center; }

.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: var(--accent); z-index: 200; transition: width .1s linear; }

/* ---------- Header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 120; display: flex; align-items: center; justify-content: space-between; padding: clamp(16px,2.4vw,26px) var(--pad); pointer-events: none; }
.site-header > * { pointer-events: auto; }
/* логотип: две версии (как на armenia) — белая над тёмным, тёмная над светлым */
.brand { position: relative; display: block; height: 30px; }
.brand img { height: 30px; width: auto; transition: opacity .3s var(--ease); }
.brand .logo-dark { position: absolute; inset: 0; opacity: 0; }
body.head-light .brand .logo-light { opacity: 0; }
body.head-light .brand .logo-dark { opacity: 1; }

.nav-inline { display: flex; align-items: center; gap: 6px; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.nav-inline a, body.uslugi .nav-inline a { color: rgba(255,255,255,.92); font-size: 15px; padding: 9px 16px; border-radius: 30px; transition: color .2s, background .2s; }
body.head-light .nav-inline a { color: var(--ink-soft); }
.nav-inline a:hover { color: #fff; background: rgba(255,255,255,.12); }
.nav-inline .cta { margin-left: 10px; height: 46px; padding: 0 22px; display: inline-flex; align-items: center; border-radius: 30px; background: #fff; color: var(--ink); font-weight: 500; }
body.head-light .nav-inline a { color: var(--ink-soft); }
body.head-light .nav-inline a:hover { background: rgba(27,26,23,.07); }
body.head-light .nav-inline .cta { background: var(--ink); color: var(--cream); }
/* CTA в шапке — собственный hover (перебиваем общий a:hover, иначе фон светлеет и текст пропадает) */
.nav-inline .cta:hover, body.head-light .nav-inline .cta:hover { background: var(--accent); color: #fff; }
body.scrolled .nav-inline { opacity: 0; transform: translateY(-12px); pointer-events: none; }

/* переключатель языков RU/EN — фиксированный слайдер в верхнем правом углу,
   прячется при скролле вместе с шапкой-меню */
.lang-fixed { position: fixed; top: clamp(16px, 2.4vw, 26px); right: clamp(20px, 4vw, 60px); z-index: 121; pointer-events: auto; transition: opacity .35s var(--ease), transform .35s var(--ease); }
body.scrolled .lang-fixed { opacity: 0; transform: translateY(-12px); pointer-events: none; }
.lang-toggle { position: relative; display: inline-flex; align-items: center; padding: 4px; border-radius: 40px; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font: inherit; cursor: pointer; }
.lang-toggle span { position: relative; z-index: 1; min-width: 38px; text-align: center; padding: 0 13px; line-height: 34px; height: 34px; font-size: 13px; font-weight: 600; letter-spacing: .03em; color: rgba(255,255,255,.82); border-radius: 40px; transition: color .25s var(--ease); }
.lang-toggle::before { content: ""; position: absolute; z-index: 0; top: 4px; left: 4px; bottom: 4px; width: calc(50% - 4px); border-radius: 40px; background: var(--accent); transition: transform .3s var(--ease); }
html[data-lang="en"] .lang-toggle::before { transform: translateX(100%); }
html[data-lang="ru"] .lang-toggle [data-opt="ru"],
html[data-lang="en"] .lang-toggle [data-opt="en"] { color: #fff; }
/* в выпадающем меню (кремовый фон) — слайдер на светлом */
.dock-lang { margin-top: 8px; display: flex; justify-content: center; }
.dock-panel .lang-toggle { width: 100%; justify-content: center; border-color: var(--line); background: var(--cream-2); backdrop-filter: none; }
.dock-panel .lang-toggle span { flex: 1; color: var(--ink-soft); }
.dock-panel .lang-toggle [data-opt] { color: var(--ink-soft); }
html[data-lang="ru"] .dock-panel .lang-toggle [data-opt="ru"],
html[data-lang="en"] .dock-panel .lang-toggle [data-opt="en"] { color: #fff; }
/* угловой слайдер над светлой секцией (блог/статьи): тёмная плашка — белый текст (и выбранный, и второй) читается, сам переключатель не сливается со светлым фоном */
body.head-light .lang-fixed .lang-toggle { border-color: rgba(22,24,31,.42); background: rgba(22,24,31,.74); backdrop-filter: blur(6px); }
/* в подвале (тёмный) — под иконками соцсетей, тёмный стиль с обводкой, без заливки */
.footer-lang { display: flex; justify-content: flex-start; margin-top: 20px; }
.footer-lang .lang-toggle { border-color: rgba(255,255,255,.30); background: transparent; backdrop-filter: none; }
.footer-lang .lang-toggle span { color: var(--footer-muted); }
.footer-lang .lang-toggle::before { background: rgba(255,255,255,.14); }
/* мобайл: слайдер языка стоит слева от кнопки «Меню» и одного с ней роста.
   Отступ считается от самой кнопки (её ширина зависит от языка), поэтому
   переключатель не наезжает на неё и не болтается на глазок. */
@media (max-width: 1000px) {
  .lang-fixed { top: 16px; right: auto; left: auto; }
  .lang-fixed .lang-toggle { padding: 4px; border-radius: 30px; }
  .lang-fixed .lang-toggle span { min-width: 34px; padding: 0 11px; line-height: 38px; height: 38px; font-size: 13px; }
  .lang-fixed .lang-toggle::before { top: 4px; left: 4px; bottom: 4px; width: calc(50% - 4px); }
  /* шапка на мобильных выстраивает логотип, слайдер и кнопку в одну строку */
  .site-header { display: flex; align-items: center; gap: 10px; }
  .site-header .brand { margin-right: auto; }
  .lang-fixed { position: static; order: 2; flex: none; pointer-events: auto; }
  .nav-dock { order: 3; }
}

.nav-dock { position: relative; opacity: 0; transform: translateX(130%); transition: opacity .4s var(--ease), transform .5s var(--ease); pointer-events: none; }
body.scrolled .nav-dock { opacity: 1; transform: translateX(0); pointer-events: auto; }
.dock-toggle { display: inline-flex; align-items: center; gap: 24px; height: 48px; padding: 0 22px; border: 1px solid var(--line-strong); border-radius: 30px; background: #fff; color: var(--ink); font-size: 15px; box-shadow: 0 4px 14px rgba(27,26,23,.07); }
.dock-toggle .plus { font-size: 20px; line-height: 1; transition: transform .4s var(--ease); }
.nav-dock.open .dock-toggle .plus, .nav-dock:hover .dock-toggle .plus { transform: rotate(135deg); }
.dock-panel { position: absolute; top: calc(100% + 12px); right: 0; width: 280px; padding: 14px; border-radius: 22px; background: var(--cream); border: 1px solid var(--line); box-shadow: 0 10px 26px rgba(27,26,23,.09); display: grid; gap: 2px; opacity: 0; transform: translateY(-10px) scale(.97); pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
/* мост, чтобы курсор не терял :hover в зазоре между кнопкой и панелью */
.dock-panel::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-dock.open .dock-panel, .nav-dock:hover .dock-panel { opacity: 1; transform: none; pointer-events: auto; }
.dock-panel a { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-radius: 14px; font-size: 16px; color: var(--ink); transition: background .2s; }
.dock-panel a:hover { background: var(--cream-2); }
.dock-panel .dock-cta { margin-top: 6px; justify-content: center; background: var(--ink); color: var(--cream); }
.dock-panel .dock-cta:hover { background: var(--accent); }

/* ---------- Hero (сток-фон + моё фото) ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; background: #14130f url("/assets/hero-bg.webp") 72% center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(13,12,10,.62) 0%, transparent 24%), linear-gradient(100deg, rgba(13,12,10,.78) 0%, rgba(13,12,10,.34) 48%, rgba(13,12,10,.1) 74%), linear-gradient(to top, rgba(13,12,10,.66), transparent 44%); }
.hero > .container { max-width: none; padding-inline: clamp(24px, 6vw, 96px); }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 840px; margin-right: auto; padding-top: 140px; padding-bottom: clamp(48px,7vh,90px); }
.hero-tag { display: inline-flex; align-items: center; gap: 9px; padding: 9px 18px; border: 1px solid rgba(255,255,255,.32); border-radius: 30px; font-size: 13px; backdrop-filter: blur(6px); margin-bottom: 26px; }
.hero-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); }
.hero h1 { max-width: 16ch; font-size: clamp(44px,7vw,96px); line-height: .98; letter-spacing: -.025em; font-weight: 500; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero p.sub { max-width: 46ch; margin: 24px 0 34px; font-size: clamp(16px,1.5vw,19px); font-weight: 300; color: rgba(255,255,255,.92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
/* имя-чип снизу справа (фон первого экрана — моё фото) */
.hero-photo { position: absolute; right: var(--pad); bottom: clamp(48px,7vh,90px); z-index: 2; padding: 14px 18px; border-radius: 14px; border: 1px solid rgba(255,255,255,.28); background: rgba(243,239,231,.12); backdrop-filter: blur(8px); color: #fff; }
.hero-photo b { display: block; font-size: 15px; font-weight: 500; }
.hero-photo span { display: block; font-size: 12px; font-weight: 300; color: rgba(255,255,255,.8); margin-top: 3px; }

/* ---------- Marquee ---------- */
.marquee { border-bottom: 1px solid var(--line); background: var(--cream); overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 14px; padding: 0 34px; font-size: 15px; letter-spacing: .04em; color: var(--ink-soft); white-space: nowrap; }
.marquee-track span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- What I do (pillars) ---------- */
.whatwedo { position: relative; color: #fff; padding: clamp(70px,9vw,130px) 0 clamp(40px,6vw,80px);
  background: radial-gradient(90% 120% at 82% 0%, rgba(79,70,229,.32), transparent 55%), linear-gradient(160deg, #1b1d29 0%, #101119 100%); }
.whatwedo::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 8% 100%, rgba(236,72,153,.16), transparent 60%); }
.whatwedo > .container { position: relative; z-index: 2; }
.whatwedo .head { max-width: 760px; margin: 0 auto; text-align: center; }
.whatwedo .label { color: rgba(255,255,255,.78); justify-content: center; }
.whatwedo h2 { margin: 18px 0 20px; font-size: clamp(30px,4.4vw,56px); font-weight: 500; line-height: 1.04; letter-spacing: -.02em; }
.whatwedo .head p { font-size: clamp(15px,1.4vw,18px); font-weight: 300; color: rgba(255,255,255,.82); }
.whatwedo .head-actions { display: flex; gap: 12px; justify-content: center; margin: 30px 0 0; }
.pillars { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: clamp(40px,6vw,72px); align-items: stretch; }
.pillar { display: flex; flex-direction: column; padding: 30px 30px 28px; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; background: rgba(255,255,255,.05); backdrop-filter: blur(4px); }
.pillar .pillar-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.pillar h3 { font-size: 22px; font-weight: 500; }
.pillar .pillar-ic { width: 40px; height: 40px; opacity: .92; }
.pillar p { margin: 0 0 22px; font-size: 15px; font-weight: 300; color: rgba(255,255,255,.82); }
/* «Подробнее» - строка на всю ширину карточки: подпись слева, стрелка справа.
   Раньше кнопка жалась к левому краю и висела посреди пустоты. */
.pillar .more { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14);
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.pillar:hover .more .arrow-circle { background: var(--accent); border-color: var(--accent); color: #fff; }
.pillar .more .arrow-circle { width: 38px; height: 38px; flex-basis: 38px; border-color: rgba(255,255,255,.45); color: #fff; }

/* ---------- Services rows ---------- */
.services { padding: clamp(70px,9vw,120px) 0; }
.services-grid { display: grid; grid-template-columns: 260px 1fr; gap: 40px; }
.services-aside { align-self: start; position: sticky; top: 110px; }
.services-aside h2 { margin-top: 18px; font-size: clamp(30px,3.6vw,50px); font-weight: 500; line-height: 1.02; letter-spacing: -.02em; }
.services-aside p { margin: 18px 0 0; max-width: 30ch; color: var(--muted); }
.service-row { display: grid; grid-template-columns: 1.1fr 1.2fr 1.5fr; gap: 30px; align-items: center; padding: 26px 0; border-top: 1px solid var(--line); }
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row .sr-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-right: 10px; }
.service-row .sr-title h3 { font-size: clamp(20px,1.8vw,26px); font-weight: 500; }
/* Картинки услуг лежат на фоне страницы без плашки: у файлов вырезан
   студийный фон, поэтому предмет читается как объект, а не как вставленное фото. */
.service-row .sr-img { height: 190px; display: flex; align-items: center; justify-content: center; }
.service-row .sr-img img { width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(27,26,23,.12)); transition: transform .5s var(--ease); }
.service-row:hover .sr-img img { transform: translateY(-3px); }
.service-row .sr-desc { color: var(--ink-soft); font-weight: 300; font-size: 15.5px; }
.service-row:hover .arrow-circle { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ---------- Portfolio (карусели по категориям) ---------- */
.portfolio { padding: clamp(60px,8vw,110px) 0; background: var(--cream-2); }
.pf-head { max-width: 760px; margin: 0 0 10px; }
.pf-head h2 { font-size: clamp(30px,4vw,54px); font-weight: 500; letter-spacing: -.02em; margin-top: 14px; }
.pf-head p { color: var(--muted); margin: 14px 0 0; }
.pf-cat { margin-top: clamp(34px,5vw,60px); }
.pf-cat__h { font-size: clamp(20px,2.4vw,30px); font-weight: 500; text-transform: lowercase; }
.pf-swiper { overflow: clip; overflow-clip-margin: 10px; }
.pf-card { position: relative; display: block; width: 100%; border-radius: 10px; overflow: hidden; background: var(--card); border: 1px solid var(--line); cursor: pointer; }
.pf-card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.pf-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s var(--ease); }
.pf-card__media img.is-active { opacity: 1; }
.pf-card__count { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(0,0,0,.5); color: #fff; font-size: 12px; padding: 3px 9px; border-radius: 20px; backdrop-filter: blur(4px); }
.pf-card__body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.pf-card__title { font-size: 17px; font-weight: 500; }
.pf-card__url { color: var(--muted); font-size: 13px; }
.pf-card .arrow-circle { width: 38px; height: 38px; flex-basis: 38px; }
.pf-card:hover .arrow-circle { background: var(--ink); color: var(--cream); border-color: var(--ink); }
/* контролы карусели портфолио (стрелки + полоса прогресса) */
.pf-cat__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.pf-arrows { display: flex; gap: 10px; }
.pf-arrows button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); display: grid; place-items: center; transition: background .25s, color .25s; }
.pf-arrows button:hover { background: var(--ink); color: var(--cream); }
.pf-arrows button.swiper-button-disabled { opacity: .35; cursor: default; }
.pf-scrollbar { position: relative; height: 3px; margin-top: 18px; background: var(--line); border-radius: 3px; }
.pf-scrollbar .swiper-scrollbar-drag { background: var(--accent); border-radius: 3px; }

/* белые стрелки/арки над тёмными секциями */
.hero .arrow-circle, .whatwedo .arrow-circle { border-color: rgba(255,255,255,.45); color: #fff; }
.pillar .more .arrow-circle { width: 38px; height: 38px; flex-basis: 38px; border-color: rgba(255,255,255,.45); color: #fff; }

/* логотипы в портфолио — целиком (contain) на белом */
.pf-card--contain .pf-card__media { background: #fff; }
.pf-card--contain .pf-card__media img { object-fit: contain; padding: 16px; }

/* Модалка портфолио */
body.uslugi.expander-open, body.expander-open { overflow: hidden; }
.pf-modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: clamp(12px,4vw,48px); pointer-events: none; }
.pf-modal[hidden] { display: none; }
.pf-modal::before { content: ""; position: absolute; inset: 0; background: rgba(10,11,16,.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .35s var(--ease); }
.pf-modal.is-open { pointer-events: auto; }
.pf-modal.is-open::before { opacity: 1; }
.pf-modal__inner { position: relative; z-index: 1; width: min(1040px, 100%); max-height: 90vh; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 40px 90px rgba(0,0,0,.4); display: grid; grid-template-columns: 1.35fr 1fr; transform: scale(.94); opacity: .5; transition: transform .42s var(--ease), opacity .42s var(--ease); }
.pf-modal.is-open .pf-modal__inner { transform: none; opacity: 1; }
.pf-modal__media { position: relative; background: #0e0f15; min-height: 320px; display: grid; place-items: center; overflow: hidden; }
.pf-modal__media img { width: 100%; height: 100%; max-height: 80vh; object-fit: contain; display: block; }
.pf-modal--contain .pf-modal__media { background: #fff; }
.pf-modal--contain .pf-modal__media img { padding: clamp(20px,4vw,50px); }
.pf-modal__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.pf-modal__nav:hover { background: rgba(0,0,0,.8); }
.pf-modal__nav--prev { left: 12px; } .pf-modal__nav--next { right: 12px; }
.pf-modal__count { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.6); color: #fff; font-size: .76rem; padding: 4px 11px; border-radius: 20px; }
.pf-modal__info { padding: clamp(22px,3vw,40px); display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.pf-modal__info h3 { font-size: clamp(22px,2.6vw,32px); font-weight: 500; color: var(--ink); }
.pf-modal__info p { color: var(--ink-soft); font-weight: 400; }
.pf-modal__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--accent); font-weight: 600; }
.pf-modal__close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; border: 1px solid rgba(255,255,255,.3); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.pf-modal__close:hover { background: #fff; color: #000; }
@media (max-width: 760px) { .pf-modal__inner { grid-template-columns: 1fr; max-height: 92vh; overflow: auto; } .pf-modal__media { min-height: 230px; } }

/* ---------- Process steps ---------- */
.process { padding: clamp(70px,9vw,120px) 0; }
.process .p-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; margin-bottom: 50px; }
.process h2 { font-size: clamp(30px,3.6vw,50px); font-weight: 500; letter-spacing: -.02em; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.step .step-line { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.step .step-line .ln { flex: 1; height: 1px; background: var(--line-strong); }
.step .step-line b { font-weight: 500; color: var(--ink); }
.step-card { padding: 32px 30px 34px; border-radius: 12px; min-height: 220px; display: flex; flex-direction: column; color: #fff; background: linear-gradient(160deg, #3b35a6, #221f5e); }
.step:nth-child(2) .step-card { background: linear-gradient(160deg, #6d3b86, #3a2350); }
.step:nth-child(3) .step-card { background: linear-gradient(160deg, #b03a6e, #5e2440); }
.step-card h3 { font-size: 24px; font-weight: 500; margin-bottom: 12px; }
.step-card p { margin: 0; font-size: 15px; font-weight: 300; color: rgba(255,255,255,.84); }
.step-card .num { margin-top: auto; font-size: 15px; color: rgba(255,255,255,.7); }

/* ---------- CTA «нравится мой сайт?» + форма ---------- */
.cta { padding: clamp(60px,8vw,110px) 0; }
.cta-inner { text-align: center; max-width: 720px; margin: 0 auto; }
.cta h2 { font-size: clamp(30px,4.6vw,60px); font-weight: 500; letter-spacing: -.025em; line-height: 1.03; }
.cta p { margin: 18px auto 30px; max-width: 50ch; color: var(--muted); font-size: 17px; }
.cta-form { max-width: 520px; margin: 0 auto; display: grid; gap: 12px; text-align: left; }
.cta-form input, .cta-form textarea { width: 100%; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; }
.cta-form textarea { min-height: 110px; resize: vertical; }
.cta-form .btn { justify-self: center; }
.cta-form__msg { min-height: 1.2em; font-size: 14px; color: var(--muted); text-align: center; }

/* ---------- FAQ (общий: главная /uslugi и побочные) ---------- */
.faq { padding: clamp(60px,8vw,110px) 0; }
.faq .faq-head { max-width: 760px; margin: 0 0 clamp(26px,3vw,40px); }
.faq .faq-head h2 { font-size: clamp(30px,4vw,54px); font-weight: 500; letter-spacing: -.02em; margin-top: 14px; }
.faq .faq-head p { color: var(--muted); margin: 14px 0 0; }
.faq-list { display: grid; gap: 12px; max-width: none; width: 100%; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 0 clamp(18px,2vw,26px); transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.faq-item[open] { border-color: var(--accent); box-shadow: 0 16px 38px rgba(79,70,229,.09); }
.faq-item > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: clamp(18px,2vw,22px) 0; font-size: clamp(16px,1.5vw,18px); font-weight: 500; color: var(--ink); }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: ""; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--accent); transition: transform .3s var(--ease); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; background-size: 15px; border-color: transparent; }
.faq-item[open] > summary::after { transform: rotate(45deg); }
.faq-item > div, .faq-item > p { margin: 0; padding: 0 0 clamp(20px,2.4vw,26px); max-width: 64ch; color: var(--ink-soft); font-weight: 300; font-size: 15.5px; line-height: 1.62; }

/* ---------- Footer (большой) ---------- */
.site-footer { background: var(--footer); color: var(--footer-ink); padding: clamp(56px,7vw,90px) 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 0.8fr 0.9fr 1fr; gap: 36px; padding-bottom: 56px; }
.footer-col h4 { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--footer-muted); margin: 0 0 18px; font-weight: 500; }
.footer-col a { display: block; padding: 7px 0; color: var(--footer-ink); font-weight: 300; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-logo { height: 42px; width: auto; margin-bottom: 22px; }
.footer-lead h3 { font-size: clamp(22px,2.4vw,30px); font-weight: 500; max-width: 18ch; }
.footer-lead p { color: var(--footer-muted); margin: 14px 0 22px; max-width: 36ch; font-weight: 300; }
.footer-meta--left { text-align: left; }
.socials { display: flex; gap: 12px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; transition: background .25s, color .25s; }
.socials a:hover { background: #fff; color: var(--ink); }
.socials svg { width: 17px; height: 17px; }
.proj-card { display: block; padding: 14px 16px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; margin-bottom: 10px; transition: background .2s, border-color .2s; }
.proj-card:hover { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.28); }
.proj-card b { font-weight: 500; color: var(--footer-ink); } .proj-card span { display: block; font-size: 13px; color: var(--footer-muted); font-weight: 300; margin-top: 3px; }
.footer-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding-top: 36px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom .f-logo img { height: 40px; width: auto; }
.footer-meta { text-align: right; font-size: 13px; font-weight: 300; color: var(--footer-muted); line-height: 1.8; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Экспертный блог (статьи) ---------- */
.u-feed { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.u-post { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.u-post:hover { border-color: var(--line-strong); box-shadow: 0 14px 34px rgba(22,24,31,.07); }
.u-post__media { aspect-ratio: 16/10; overflow: hidden; background: var(--cream-2); }
.u-post__media img { width: 100%; height: 100%; object-fit: cover; }
.u-post__media iframe { width: 100%; height: 100%; border: 0; }
.u-post__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.u-post__meta { font-size: 12.5px; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }
.u-post__title { font-size: 19px; font-weight: 600; line-height: 1.3; margin: 2px 0 0; letter-spacing: -.01em; }
.u-post__text { color: var(--ink-soft); font-weight: 300; font-size: 14.5px; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.u-post__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.u-post__foot .ue-meta { margin: 0; }
.u-post__more { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.u-post__more svg { width: 15px; height: 15px; }
@media (max-width: 620px){ .u-feed { grid-template-columns: 1fr; } }

/* ---------- Generic page (sub-pages) ---------- */
.page-wrap { padding: clamp(110px,15vh,180px) 0 clamp(60px,9vw,110px); }
.page-wrap h1 { font-size: clamp(34px,5vw,64px); font-weight: 500; letter-spacing: -.02em; max-width: 18ch; }
.page-wrap .lead { color: var(--muted); font-size: clamp(16px,1.6vw,19px); margin: 18px 0 0; max-width: 60ch; }
.prose { max-width: 820px; }
.prose h2 { font-size: clamp(24px,2.6vw,34px); margin: 38px 0 14px; font-weight: 500; }
.prose h3 { font-size: clamp(19px,2vw,24px); margin: 26px 0 10px; font-weight: 500; }
.prose p, .prose li { color: var(--ink-soft); font-weight: 300; }
.prose ul { padding-left: 20px; }

/* Примеры-иллюстрации внутри статьи */
.prose figure { margin: 30px 0; }
.prose figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-2, #f1f2f5);
}
.prose figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 300;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav-inline { display: none; }
  .nav-dock { opacity: 1; transform: none; pointer-events: auto; }
  .pillars { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .services-grid { grid-template-columns: 1fr; gap: 26px; }
  .services-aside { position: static; }
  .service-row { grid-template-columns: 1fr 1fr; grid-template-areas: "title title" "img desc"; gap: 18px 24px; }
  .service-row .sr-title { grid-area: title; } .service-row .sr-img { grid-area: img; } .service-row .sr-desc { grid-area: desc; }
  .process .p-head { grid-template-columns: 1fr; gap: 18px; }
  .steps { grid-template-columns: 1fr; max-width: 520px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 600px) {
  .hero-photo { padding: 10px 14px; bottom: auto; top: 90px; right: var(--pad); }
  .hero h1 { font-size: clamp(34px,10vw,52px); }
  .hero-actions .btn, .cta .btn { width: 100%; justify-content: space-between; }
  .whatwedo .head-actions { flex-direction: column; }
  /* текст в кнопках этого блока по центру, а не слева */
  .whatwedo .head-actions .btn { justify-content: center; padding-inline: 22px; }
  /* заголовки секций по центру на мобиле — как у process/whatwedo, а не слева */
  .services-aside, .pf-head, .faq .faq-head { text-align: center; }
  .services-aside p, .pf-head p, .faq .faq-head p { margin-inline: auto; }
  .services-aside .label, .pf-head .label, .faq .faq-head .label { justify-content: center; }
  .u-articles__head { flex-direction: column; align-items: center; text-align: center; }
  .u-articles__head p { margin-inline: auto; }
  .u-articles__head .label { justify-content: center; }
  .service-row { grid-template-columns: 1fr; grid-template-areas: "title" "img" "desc"; }
  .service-row .sr-img { height: 190px; }
  /* подвал компактнее */
  .site-footer { padding: clamp(40px,9vw,64px) 0 26px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 22px 18px; padding-bottom: 34px; }
  .footer-lead { grid-column: 1 / -1; text-align: center; }
  .footer-lead .socials { justify-content: center; }
  .footer-logo { height: 34px; margin-inline: auto; }
  /* CTA-кнопки одинаковой ширины по контенту, не на весь экран */
  .cta .hero-actions { display: inline-flex; flex-direction: column; align-items: stretch; width: fit-content; max-width: 100%; margin-inline: auto; gap: 12px; }
  .cta .hero-actions .btn { width: 100%; }
  .footer-col h4 { margin-bottom: 12px; font-size: 11px; }
  .footer-col a { padding: 5px 0; font-size: 14px; }
  .proj-card { margin-bottom: 8px; padding: 11px 13px; }
  .proj-card span { display: none; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 12px; text-align: center; }
  .footer-meta, .footer-meta--left { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* =========================================================
   Статьи — просмотры, лайки, комментарии (engage)
   ========================================================= */
.ue-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 0 0 22px; font-size: 13.5px; color: var(--muted); }
.ue-meta--card { margin: 12px 0 14px; gap: 14px; font-size: 13px; }
.ue-meta__item { display: inline-flex; align-items: center; gap: 6px; }
.ue-meta__item svg { width: 16px; height: 16px; color: var(--accent); }

.ue-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.ue-like { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 26px; border: 1px solid var(--line-strong); border-radius: 40px; background: transparent; color: var(--ink); font-size: 15px; font-weight: 500; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease); }
.ue-like svg { width: 19px; height: 19px; color: var(--accent); transition: transform .25s var(--ease); }
.ue-like:hover { transform: translateY(-1px); border-color: var(--accent); }
.ue-like:hover svg { transform: scale(1.12); }
.ue-like.liked { background: rgba(79, 70, 229, .08); border-color: var(--accent); color: var(--accent); }
.ue-like.liked svg { fill: var(--accent); }
.ue-like:disabled { opacity: .6; cursor: default; }
.ue-like__count { font-weight: 600; }

.ue-comments { margin-top: 50px; }
.ue-comments__title { font-size: clamp(22px, 2.4vw, 28px); font-weight: 500; letter-spacing: -0.02em; margin: 0 0 18px; }
.ue-comment { padding: 16px 0; border-bottom: 1px solid var(--line); }
.ue-comment__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.ue-comment__head b { font-weight: 600; }
.ue-comment__head time { font-size: 13px; color: var(--muted); }
.ue-comment p { margin: 0; font-size: 15px; font-weight: 300; color: var(--ink-soft); overflow-wrap: anywhere; }
.ue-comments__empty { color: var(--muted); font-weight: 300; }

.ue-form { display: flex; flex-direction: column; gap: 16px; margin-top: 26px; padding: 24px 24px 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.ue-form label { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ue-form__name { max-width: 340px; }
.ue-form input[type="text"],
.ue-form textarea { padding: 13px 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--cream); color: var(--ink); font: inherit; font-size: 15px; letter-spacing: normal; text-transform: none; transition: border-color .25s ease; }
.ue-form input:focus, .ue-form textarea:focus { outline: none; border-color: var(--accent); }
.ue-form textarea { resize: vertical; min-height: 110px; }
.ue-form .btn { align-self: flex-start; }
.ue-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; margin: 0; }
.ue-error { margin: 0; padding: 12px 16px; border: 1px solid rgba(236, 72, 153, .45); border-radius: 12px; background: rgba(236, 72, 153, .07); color: #be185d; font-size: 14px; }

/* Блок статей на главной /uslugi */
.btn-outline-dark { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-outline-dark:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.u-articles { padding: clamp(64px, 8vw, 110px) 0; border-top: 1px solid var(--line); }
.u-articles__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: clamp(30px, 4vw, 46px); }
.u-articles__head h2 { margin-top: 12px; font-size: clamp(28px, 3.6vw, 46px); font-weight: 500; letter-spacing: -.02em; }
.u-articles__head p { margin: 10px 0 0; max-width: 52ch; font-weight: 300; color: var(--ink-soft); }
.u-articles__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.u-acard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; background: var(--card); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.u-acard:hover { border-color: var(--line-strong); box-shadow: 0 14px 34px rgba(22,24,31,.07); }
.u-acard__media { aspect-ratio: 16/10; overflow: hidden; background: var(--cream-2); }
.u-acard__media img, .u-acard__media iframe { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.u-acard__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.u-acard__meta { margin: 0; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.u-acard__title { font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.u-acard__text { margin: 0; font-size: 14.5px; font-weight: 300; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.u-acard .ue-meta { margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
@media (max-width: 960px) { .u-articles__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .u-articles__grid { grid-template-columns: 1fr; } }

/* =========================================================
   Статья: широкая колонка + интерактивное содержание слева
   ========================================================= */
.article-shell { display: grid; grid-template-columns: minmax(0,1fr); gap: 0; }
.article-main { max-width: 720px; margin-inline: auto; }
.article-main > h1 { max-width: none; }
.prose-body h2, .prose-body h3 { scroll-margin-top: 96px; }
.article-toc { display: none; }
@media (min-width: 1240px) {
  /* контент — строго по центру страницы; оглавление уходит в левое поле */
  .article-shell { grid-template-columns: minmax(0,1fr) minmax(auto,720px) minmax(0,1fr); align-items: start; }
  .article-main { grid-column: 2; margin-inline: 0; }
  .article-toc { display: block; grid-column: 1; justify-self: end; width: 190px; margin-right: clamp(20px,2.6vw,52px); position: sticky; top: 104px; align-self: start; max-height: calc(100vh - 130px); overflow-y: auto; padding: 2px 6px 2px 0; }
}
.article-toc__title { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.article-toc__list { display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.article-toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); font-size: 14px; line-height: 1.35; transition: color .2s var(--ease), border-color .2s var(--ease); }
.article-toc a.is-sub { padding-left: 30px; font-size: 13px; }
.article-toc a:hover { color: var(--ink); }
.article-toc a.is-current { color: var(--accent); border-color: var(--accent); font-weight: 500; }

/* =========================================================
   Уведомление снизу справа (лид-тост) с моим фото
   ========================================================= */
.lead-toast { position: fixed; right: clamp(14px,3vw,30px); bottom: clamp(14px,3vw,30px); z-index: 300; width: min(396px, calc(100vw - 24px)); padding: 14px 150px 15px 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(22,24,31,.17); overflow: hidden; transform: translateY(24px); opacity: 0; visibility: hidden; transition: transform .55s var(--ease), opacity .45s var(--ease), visibility 0s linear .55s; }
.lead-toast[hidden] { display: none; }
.lead-toast.is-visible { transform: none; opacity: 1; visibility: visible; transition: transform .55s var(--ease), opacity .45s var(--ease); }
.lead-toast__body { min-width: 0; }
.lead-toast__title { margin: 0; font-size: 15.5px; font-weight: 600; line-height: 1.22; color: var(--ink); letter-spacing: -.01em; }
.lead-toast__text { margin: 5px 0 11px; font-size: 12.5px; line-height: 1.38; font-weight: 300; color: var(--ink-soft); }
.lead-toast__cta { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 30px; background: var(--accent); font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .25s var(--ease), transform .25s var(--ease); }
/* высокая специфичность: перебиваем body.uslugi a{color:inherit}, иначе текст кнопки тёмный */
body.uslugi .lead-toast__cta, body.uslugi .lead-toast__cta span, body.uslugi .lead-toast__cta svg { color: #fff; }
.lead-toast__cta svg { width: 16px; height: 16px; flex: 0 0 16px; }
.lead-toast__cta:hover { background: #3a33c9; transform: translateY(-1px); }
/* фото — БЕЗ кружка и обводки: транспарентный вырез справа, тело идёт ОТ НИЗА плашки
   (overflow:hidden на .lead-toast обрезает фото по краю карточки, поэтому оно заполняет
   правую часть снизу вверх, без «парения» посередине и без обрезки плеч по бокам) */
.lead-toast__photo { position: absolute; right: 0; bottom: 0; width: 150px; pointer-events: none; }
.lead-toast__photo img { display: block; width: 100%; height: auto; }
.lead-toast__close { position: absolute; top: 9px; right: 9px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); background: rgba(244,245,248,.92); backdrop-filter: blur(2px); color: var(--muted); display: flex; align-items: center; justify-content: center; z-index: 3; transition: background .2s, color .2s; }
.lead-toast__close:hover { background: var(--cream-2); color: var(--ink); }
.lead-toast__close svg { display: block; width: 12px; height: 12px; }
@media (max-width: 600px) { .lead-toast { right: 10px; bottom: 10px; } .footer-lang { justify-content: center; } }
@media (max-width: 430px) { .lead-toast { padding-right: 120px; } .lead-toast__photo { width: 120px; } }

/* ---- Страница портфолио (/portfolio) ---- */
.pf-block__h { font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 600; text-transform: lowercase; letter-spacing: -.01em; margin: 0 0 20px; }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(16px, 2vw, 26px); }
.pf-item { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg, 20px); overflow: hidden; color: inherit; text-decoration: none; transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.pf-item:hover { border-color: var(--line-strong); box-shadow: 0 14px 34px rgba(22,24,31,.07); }
.pf-item__media { aspect-ratio: 16 / 10; background: var(--cream-2); overflow: hidden; }
.pf-item__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-item__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.pf-item__title { margin: 0; font-size: 1.06rem; font-weight: 600; line-height: 1.35; }
.pf-item__text { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.6; }
.pf-item__link { margin-top: 4px; display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-size: .86rem; }
.pf-item__link svg { width: 15px; height: 15px; }
@media (max-width: 560px) { .pf-grid { grid-template-columns: 1fr; } }
