/* Дизайн-токены. Тёмное «жидкое стекло». Палитра — только фирменные цвета:
   008c39, 191919, e5e5e5, 164c2c, 636363, b0b5b2 (прозрачность — это те же цвета с альфой) */
:root {
  --bg: #191919;
  --text: #e5e5e5;
  --muted: #b0b5b2;      /* второстепенный текст: контраст 8:1 на фоне */
  --line: #636363;       /* только линии и рамки, не текст */
  --green: #008c39;
  --deep: #164c2c;
  --glass: rgba(229, 229, 229, .06);
  --glass-hi: rgba(229, 229, 229, .1);
  --glass-line: rgba(229, 229, 229, .14);
  --blur: blur(22px) saturate(140%);
  --radius: 22px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Единая шкала шрифта: только эти размеры. Насыщенность: 400 текст, 500 подписи, 600 заголовки; 700 только у зелёных кнопок */
  --fs-xs: 13px;                          /* метки КАПСОМ, бейджи, сноски */
  --fs-sm: 15px;                          /* второстепенный текст, меню, подписи */
  --fs-base: 17px;                        /* основной текст (16px на телефоне) */
  --fs-lg: clamp(18px, 1.6vw, 20px);      /* лид, названия карточек */
  --fs-btn: 19px;                         /* кнопки: крупный жирный текст для контраста на зелёном */
  --fs-h3: clamp(22px, 2.2vw, 28px);      /* названия тарифов, цифры в окне кейса */
  --fs-num: clamp(30px, 3.4vw, 42px);     /* большие цифры */
  --fs-h2: clamp(30px, 3.6vw, 44px);      /* заголовки разделов */
  --fs-h1: clamp(40px, 5.4vw, 68px);      /* имя на главном экране */
  --ls-tight: -0.035em;                   /* крупные заголовки и цифры */
  --ls-caps: .06em;                       /* текст капсом */
  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; position: relative; min-height: 100vh; background: var(--bg); color: var(--text); font: 400 var(--fs-base)/1.65 var(--font); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
/* Мягкие размытые пятна за стеклом. Неподвижные, под текстом ровный тёмный тон */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42vw 42vw at 88% 6%, rgba(0, 140, 57, .32), transparent 70%),
    radial-gradient(48vw 48vw at 6% 58%, rgba(22, 76, 44, .55), transparent 70%),
    radial-gradient(36vw 36vw at 72% 100%, rgba(0, 140, 57, .16), transparent 70%);
}
img, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: var(--green); color: var(--bg); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 14px; z-index: 100; border-radius: 10px; }
.skip:focus { left: 8px; }
section[id] { scroll-margin-top: 84px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 760px; }

/* ---------- стеклянная панель ---------- */
.panel {
  background: linear-gradient(180deg, var(--glass-hi), var(--glass));
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: inset 0 1px 0 rgba(229, 229, 229, .08);
}
.panel-green { background: linear-gradient(180deg, rgba(0, 140, 57, .22), rgba(22, 76, 44, .3)); border-color: rgba(0, 140, 57, .45); }
.caption { display: inline-block; margin: 0 0 22px; padding: 6px 14px; border-radius: 12px; background: rgba(0, 140, 57, .16); border: 1px solid rgba(0, 140, 57, .5); color: var(--text); font-weight: 500; font-size: var(--fs-sm); line-height: 1.4; }
.caption-ink { background: rgba(229, 229, 229, .08); border-color: var(--glass-line); }

/* ---------- типографика ---------- */
.h1 { font-weight: 600; font-size: var(--fs-h2); line-height: 1.12; letter-spacing: var(--ls-tight); margin: 10px 0 24px; }
.h2 { font-weight: 600; font-size: var(--fs-h2); line-height: 1.1; letter-spacing: var(--ls-tight); margin: 0 0 32px; text-align: center; }
.h2::after { content: ""; display: block; width: 40px; height: 2px; margin: 18px auto 0; border-radius: 2px; background: var(--green); }
.h3 { font-size: var(--fs-sm); font-weight: 500; color: var(--muted); margin: 0 0 18px; }
.prose p { margin: 0 0 1em; max-width: 64ch; }
.prose p:last-child { margin-bottom: 0; }
.lead { font-size: var(--fs-lg); line-height: 1.6; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: var(--fs-btn); text-decoration: none; border: 1px solid transparent; /* 19px жирный: тёмный на зелёном читается по норме WCAG */ transition: background .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-solid, .btn-inv { background: var(--green); color: var(--bg); box-shadow: 0 8px 24px rgba(0, 140, 57, .35); }
.btn-line { background: var(--glass); border-color: var(--glass-line); color: var(--text); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.btn-line:hover { background: var(--glass-hi); border-color: rgba(229, 229, 229, .3); }

/* ---------- шапка: плавающее стекло ---------- */
.hdr { position: sticky; top: 12px; z-index: 50; padding: 0 var(--gut); }
.hdr-in { display: flex; align-items: center; gap: 26px; min-height: 60px; max-width: calc(var(--wrap) - 2 * var(--gut)); margin: 0 auto; padding: 0 22px; border-radius: 999px;
  background: rgba(25, 25, 25, .55); border: 1px solid var(--glass-line); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.brand { font-weight: 600; text-decoration: none; font-size: var(--fs-base); margin-right: auto; white-space: nowrap; }
.nav { display: flex; gap: 22px; white-space: nowrap; }
.nav a, .langs a { text-decoration: none; font-size: var(--fs-sm); font-weight: 500; color: var(--muted); transition: color .2s; }
.nav a:hover, .langs a:hover { color: var(--text); }
.langs { display: flex; align-items: center; gap: 10px; }
@media (min-width: 1025px) {
  .brand { flex: 1 1 0; margin-right: 0; }
  .langs { flex: 1 1 0; justify-content: flex-end; }
  .langs::before { content: ''; width: 1px; height: 18px; margin-right: 8px; background: var(--glass-line); }
}
@media (min-width: 1200px) { .nav { gap: 28px; } }
.langs a[aria-current] { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.menu-btn { display: none; background: var(--glass); border: 1px solid var(--glass-line); color: var(--text); padding: 7px 16px; border-radius: 999px; font: 600 var(--fs-sm)/1.2 var(--font); cursor: pointer; }

/* ---------- главный экран: всё по центральной оси ---------- */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 72px); text-align: center; }
.hero-in { display: flex; flex-direction: column; align-items: center; }
.hero-stage { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(20px, 4vw, 56px); width: 100%; margin-bottom: 30px; }
.hero-photo { --ph: clamp(132px, 13vw, 168px); position: relative; flex: none; box-sizing: border-box; margin: 0; width: var(--ph); height: var(--ph); min-height: var(--ph); align-self: center; border-radius: 50%; overflow: visible; padding: 6px;
  background: conic-gradient(from 210deg, rgba(0, 140, 57, .9), rgba(22, 76, 44, .2), rgba(229, 229, 229, .35), rgba(0, 140, 57, .9)); }
.hero-photo::before { content: ""; position: absolute; inset: -40%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 140, 57, .28), transparent); }
.hero-photo img, .hero-ph { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 30%; background: var(--bg); border: 3px solid var(--bg); }
.hero-ph { display: grid; place-items: center; font-weight: 600; font-size: var(--fs-h2); color: var(--muted); }
.hero-role { margin: 0 auto 16px; max-width: 60ch; font-size: var(--fs-sm); font-weight: 500; color: var(--muted); text-wrap: balance; }
.hero-name { font-weight: 600; font-size: var(--fs-h1); line-height: 1.04; letter-spacing: var(--ls-tight); margin: 0 0 22px; text-wrap: balance; }
.hero-tag { font-size: var(--fs-lg); line-height: 1.55; color: var(--muted); max-width: 60ch; margin: 0 auto 34px; text-wrap: balance; }
.hero-tag span { display: block; }
.hero-tag span + span { margin-top: 4px; color: var(--text); font-weight: 500; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* уведомления из соцсетей: зеркально слева и справа от фото, медленно «плавают» */
.notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.notes-l { align-items: flex-end; }
.notes-r { align-items: flex-start; }
.notes-l .note:nth-child(2) { margin-right: 36px; }
.notes-r .note:nth-child(2) { margin-left: 36px; }
.note { display: flex; align-items: center; gap: 12px; width: 248px; padding: 10px 16px 10px 10px; text-align: left; border-radius: 16px;
  background: rgba(229, 229, 229, .05); border: 1px solid var(--glass-line); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  animation: float 7s ease-in-out infinite; }
.notes-l .note:nth-child(2), .notes-r .note:nth-child(1) { animation-delay: -3.5s; }
.note svg { flex: 0 0 38px; width: 38px; height: 38px; padding: 9px; border-radius: 11px; background: rgba(0, 140, 57, .16); color: #e5e5e5;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.note span { display: flex; flex-direction: column; line-height: 1.25; }
.note b { font-size: var(--fs-base); font-weight: 600; }
.note small { font-size: var(--fs-xs); color: var(--muted); }
@keyframes float { 50% { transform: translateY(-6px); } }
/* приписка: результаты клиентов, сделанные вместе с командой */
.notes-cap, .team-note { margin: 0 auto; max-width: 62ch; text-wrap: balance; font-size: var(--fs-xs); line-height: 1.5; color: var(--muted); text-align: center; }
.notes-cap { max-width: 90ch; margin: -4px auto 44px; text-wrap: balance; }
.team-note { margin-top: 14px; }

/* полоса из трёх цифр */
.stats { padding: 8px 0 clamp(40px, 6vw, 72px); }
.stats-row { list-style: none; margin: 0 auto; padding: 26px 0; max-width: 960px; display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--glass-line); border-bottom: 1px solid var(--glass-line); }
.stats-row li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 16px; text-align: center; }
.stats-row li + li { border-left: 1px solid var(--glass-line); }
.stats-row b { font-size: var(--fs-num); font-weight: 600; letter-spacing: var(--ls-tight); line-height: 1.1; }
.stats-row span { font-size: var(--fs-sm); color: var(--muted); }

/* ---------- секции ---------- */
.sec { padding: clamp(44px, 5.5vw, 72px) 0; }
.sec-tight { padding: 28px 0 32px; }
.split { max-width: 760px; } /* одна центральная колонка */
.sec-head { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 32px; }
.sec-head .h2 { margin: 0 0 24px; }
.teach { margin-top: 40px; padding: 32px clamp(22px, 4vw, 44px) 34px; text-align: center; }
.teach .caption { margin-bottom: 16px; }
.teach .prose { font-size: var(--fs-base); line-height: 1.7; color: #e5e5e5; }
.teach .prose p { margin: 0 auto; max-width: 56ch; }

/* клиенты: стеклянная полоса с двумя встречными лентами */
.clients { max-width: calc(var(--wrap) - 2 * var(--gut)); margin: 0 auto; border-radius: var(--radius); background: rgba(229, 229, 229, .04); border: 1px solid var(--glass-line); }
.clients .h3 { margin-bottom: 14px; text-align: center; }
.marquee { display: flex; overflow: hidden; padding: 6px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; flex-shrink: 0; align-items: center; gap: 52px; padding-right: 52px; animation: marquee 100s linear infinite; }
.marquee-rev .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.logo { display: flex; align-items: center; height: 46px; text-decoration: none; }
.logo img { max-height: 36px; width: auto; filter: grayscale(1) brightness(0) invert(.9); opacity: .7; transition: opacity .2s; }
.logo:hover img { opacity: 1; }
.logo span { font-weight: 600; font-size: var(--fs-lg); color: var(--muted); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* опыт */
.exp { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--glass-line); }
.exp li { display: grid; grid-template-columns: 130px 1fr; gap: 2px 20px; padding: 16px 0; border-bottom: 1px solid var(--glass-line); }
.exp-period { color: var(--muted); font-variant-numeric: tabular-nums; grid-row: span 2; padding-top: 2px; font-size: var(--fs-sm); }
.exp-co { font-weight: 600; font-size: var(--fs-lg); }
.exp-role { color: var(--muted); }
.edu-title { margin-top: 40px; }
.brands-n { color: var(--muted); font-weight: 400; font-size: var(--fs-xs); margin-left: 6px; font-variant-numeric: tabular-nums; }
.brands { list-style: none; margin: 18px 0 0; padding: 0; columns: 3; column-gap: 32px; border-top: 1px solid var(--glass-line); }
.brands li { break-inside: avoid; padding: 11px 0; border-bottom: 1px solid var(--glass-line); font-size: var(--fs-sm); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brands.is-collapsed li:nth-child(n+13) { display: none; }
.brands-more { margin: 22px 0 0; text-align: center; }
.btn-sm { min-height: 44px; padding: 0 22px; font-size: var(--fs-sm); font-weight: 600; }

/* услуги */
.svc-item { border-bottom: 1px solid var(--glass-line); }
.svc-item:first-child { border-top: 1px solid var(--glass-line); }
.svc-item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; }
.svc-head { display: flex; flex-direction: column; gap: 4px; }
.svc-title { font-size: var(--fs-lg); font-weight: 600; }
.svc-lead { font-size: var(--fs-sm); color: var(--muted); }
.svc-item summary::-webkit-details-marker { display: none; }
.svc-item summary i { position: relative; flex: 0 0 32px; height: 32px; border-radius: 50%; border: 1px solid var(--glass-line); background: var(--glass); }
.svc-item summary i::before, .svc-item summary i::after { content: ""; position: absolute; background: var(--text); left: 10px; top: 15px; width: 11px; height: 1.5px; transition: transform .2s; }
.svc-item summary i::after { transform: rotate(90deg); }
.svc-item[open] summary i { background: var(--green); border-color: var(--green); }
.svc-item[open] summary i::before, .svc-item[open] summary i::after { background: var(--bg); }
.svc-item[open] summary i::after { transform: rotate(0); }
.svc-body { padding: 0 48px 26px 0; color: var(--muted); }
.svc-body .prose p { margin: 0; }
.svc-cap { margin: 18px 0 10px; font-size: var(--fs-xs); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--muted); }
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 28px; color: var(--text); font-size: var(--fs-sm); line-height: 1.5; }
.svc-list li { position: relative; padding-left: 20px; }
.svc-list li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
@media (max-width: 600px) { .svc-list { grid-template-columns: 1fr; } .svc-body { padding-right: 0; } }

/* портфолио */
.work-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 22px; }
.work-open { all: unset; display: block; width: 100%; cursor: pointer; }
.work-open:focus-visible { outline: 2px solid var(--green); outline-offset: 6px; border-radius: var(--radius); }
.work-media { display: block; position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; margin-bottom: 16px;
  background: linear-gradient(180deg, var(--glass-hi), var(--glass)); border: 1px solid var(--glass-line); transition: transform .25s, border-color .25s; }
.work-open:hover .work-media { transform: translateY(-4px); border-color: rgba(0, 140, 57, .6); }
.work-media img { width: 100%; height: 100%; object-fit: cover; }
.work-ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--muted); font-weight: 600; }
.work-stat { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 18px; text-align: left; color: var(--text);
  background: radial-gradient(90% 60% at 100% 0%, rgba(0, 140, 57, .32), transparent 70%), radial-gradient(80% 60% at 0% 100%, rgba(22, 76, 44, .6), transparent 70%); }
.work-client { position: absolute; top: 16px; left: 16px; padding: 4px 12px; border-radius: 999px; background: rgba(25, 25, 25, .5); border: 1px solid var(--glass-line); color: var(--text); font-size: var(--fs-sm); font-weight: 500; }
.stat { display: flex; flex-direction: column; }
.stat b { font-weight: 600; font-size: var(--fs-num); line-height: 1.05; letter-spacing: var(--ls-tight); white-space: nowrap; }
.stat small { font-size: var(--fs-sm); color: var(--muted); margin-top: 4px; }
.work-title { display: block; font-size: var(--fs-lg); font-weight: 600; line-height: 1.3; }
.work-meta { display: block; font-size: var(--fs-sm); color: var(--muted); margin-top: 4px; }

/* вкладки портфолио: Кейсы | Видео | Фото */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.tab { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: var(--fs-sm); color: var(--muted); transition: color .2s, background .2s; }
.tab:hover { color: var(--text); background: var(--glass-hi); }
.tab[aria-current] { background: var(--text); color: var(--bg); }
.tab-n { font-size: var(--fs-xs); font-weight: 600; min-width: 20px; padding: 1px 6px; border-radius: 999px; text-align: center; background: rgba(229, 229, 229, .12); }
.tab[aria-current] .tab-n { background: rgba(25, 25, 25, .14); }

/* страницы-папки «Видео» и «Фото» */
.gallery { padding-top: clamp(32px, 5vw, 56px); }
.gal-head { margin-top: 18px; }
.gal-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-items: start; }
.gal-item { margin: 0; }
.gal-item > a, .gal-item video, .gal-item lite-youtube { display: block; width: 100%; border-radius: 18px; overflow: hidden; border: 1px solid var(--glass-line); background: var(--glass); }
.gal-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .3s; }
.gal-photo:hover img { transform: scale(1.03); }
.gal-item video { aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg); }
.gal-vertical { width: 100%; max-width: 340px; justify-self: center; }
.gal-vertical video { aspect-ratio: 9 / 16; }
.gal-item figcaption { display: flex; flex-direction: column; gap: 2px; padding: 12px 4px 0; }
.gal-title { font-weight: 600; }
.gal-client { font-size: var(--fs-sm); color: var(--muted); }
.gal-empty { padding: 56px 24px; text-align: center; color: var(--muted); border-radius: var(--radius); border: 1px dashed var(--glass-line); background: var(--glass); }

/* окно кейса */
.modal { width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border-radius: var(--radius); color: var(--text);
  background: rgba(25, 25, 25, .85); border: 1px solid var(--glass-line); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: 0 30px 80px rgba(25, 25, 25, .6); }
.modal::backdrop { background: rgba(25, 25, 25, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.modal-x { position: sticky; top: 0; float: right; margin: 16px 16px 0 0; z-index: 2; font: 600 var(--fs-sm)/1.2 var(--font); background: var(--glass-hi); color: var(--text); border: 1px solid var(--glass-line); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.modal-body { padding: clamp(22px, 4vw, 44px); }
.modal-meta { color: var(--muted); margin: 0; }
.modal-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 8px 0 28px; }
.modal-stats .stat { padding: 18px; border-radius: 16px; background: linear-gradient(180deg, rgba(0, 140, 57, .18), rgba(22, 76, 44, .28)); border: 1px solid rgba(0, 140, 57, .35); }
.modal-stats .stat b { font-size: var(--fs-h3); }
.modal-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 28px 0; }
.modal-media .wide { grid-column: 1 / -1; }
.modal-media a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; background: var(--glass); }
.modal-media a img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.modal-media a:hover img { transform: scale(1.03); }
.modal-media video { width: 100%; border-radius: 14px; background: var(--bg); }
lite-youtube { border-radius: 14px; overflow: hidden; max-width: none; }

/* тарифы */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--glass-hi), var(--glass)); border: 1px solid var(--glass-line); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.plan-hot { background: linear-gradient(180deg, rgba(0, 140, 57, .24), rgba(22, 76, 44, .32)); border-color: rgba(0, 140, 57, .6); }
.plan-badge { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); margin: 0; padding: 5px 14px; border-radius: 999px; background: #164c2c; border: 1px solid rgba(0, 140, 57, .9); color: var(--text); font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--ls-caps); line-height: 1.3; white-space: nowrap; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.plan-name { font-weight: 600; font-size: var(--fs-h3); letter-spacing: var(--ls-tight); margin: 0 0 10px; }
.plan-aud { margin: 0 0 20px; color: var(--muted); font-size: var(--fs-sm); line-height: 1.55; }
@media (min-width: 961px) { .plan-aud { min-height: calc(1.55em * 3); } }
.plan-price { font-size: var(--fs-lg); font-weight: 600; margin: 0 0 20px; padding-bottom: 20px; border-bottom: 1px solid var(--glass-line); }
.plan-list { list-style: none; margin: 0 0 28px; padding: 0; font-size: var(--fs-sm); line-height: 1.5; flex: 1; }
.plan-list li { position: relative; padding-left: 22px; margin-bottom: 10px; }
.plan-list li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* новости */
.news { list-style: none; margin: 0; padding: 0; }
.news li { border-bottom: 1px solid var(--glass-line); }
.news li:first-child { border-top: 1px solid var(--glass-line); }
.news-row { display: grid; grid-template-columns: 160px 1fr; gap: 4px 24px; padding: 20px 0; text-decoration: none; }
.news-row time { color: var(--muted); font-size: var(--fs-sm); grid-row: span 2; padding-top: 3px; }
.news-title { font-size: var(--fs-lg); font-weight: 600; line-height: 1.3; transition: color .2s; }
.news-row:hover .news-title { color: var(--green); }
.news-ex { color: var(--muted); }
.article time { display: block; color: var(--muted); margin-top: 24px; }
.back { font-weight: 600; text-decoration: none; color: var(--muted); }
.back:hover { color: var(--text); }
.back::before { content: "\2190\00a0"; }
.article-cover { margin: 0 0 32px; }
.article-cover img { width: 100%; border-radius: var(--radius); }

/* контакты */
.contact { padding: clamp(44px, 5.5vw, 72px) var(--gut) clamp(56px, 7vw, 96px); }
.contact { position: relative; text-align: center; background: radial-gradient(ellipse 60% 75% at 50% 30%, rgba(0, 140, 57, .16), rgba(0, 140, 57, 0) 70%); }
.contact > .wrap { position: relative; }
.contact-title { margin: 0 auto 36px; text-align: center; font-weight: 600; font-size: var(--fs-h2); line-height: 1.08; letter-spacing: var(--ls-tight); max-width: 18ch; text-wrap: balance; }
.contact-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 44px; margin: 0 auto; }
.contact-list > div { display: flex; align-items: center; gap: 12px; }
.contact-list dt { margin: 0; }
.ct-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(0, 140, 57, .14); border: 1px solid rgba(0, 140, 57, .4); }
.ct-ic svg { width: 17px; height: 17px; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact-list dd { margin: 0; font-size: var(--fs-lg); font-weight: 600; }
.contact-list a { text-decoration: none; transition: color .2s; }
.contact-list a:hover { color: var(--green); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.socials { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; margin: 40px auto 0; padding-top: 34px; }
.socials::before { content: ""; position: absolute; top: 0; left: 50%; width: 48px; height: 2px; border-radius: 2px; background: var(--green); transform: translateX(-50%); }
.socials a { text-decoration: none; padding: 4px 0; font-size: var(--fs-base); font-weight: 500; color: var(--muted); border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.socials a:hover { color: var(--text); border-color: var(--green); }

.ftr { color: var(--muted); font-size: var(--fs-sm); border-top: 1px solid var(--glass-line); }
.ftr-in { display: flex; justify-content: center; text-align: center; gap: 16px; padding-top: 24px; padding-bottom: 24px; }

/* браузеры без размытия: стекло плотнее, чтобы текст читался */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .panel, .plan, .hdr-in, .modal { background-color: rgba(25, 25, 25, .92); }
}

/* ---------- адаптив ---------- */
@media (max-width: 960px) {
  /* телефон и планшет: фото сверху, уведомления двумя рядами под кнопками */
  .hero-stage { display: contents; }
  .hero-photo { order: 0; margin-bottom: 26px; }
  .hero-role { order: 1; } .hero-name { order: 2; } .hero-tag { order: 3; } .hero-cta { order: 4; }
  .notes { order: 5; flex-direction: row; gap: 10px; width: 100%; max-width: 460px; margin-top: 10px; }
  .notes-l { margin-top: 36px; }
  .notes-l .note:nth-child(2), .notes-r .note:nth-child(2) { margin: 0; }
  .note { flex: 1 1 0; min-width: 0; width: auto; gap: 10px; padding: 9px 10px; border-radius: 14px; animation: none; }
  .note svg { flex-basis: 32px; width: 32px; height: 32px; padding: 7px; border-radius: 9px; }
  .note b { font-size: var(--fs-sm); }
  .note small { font-size: var(--fs-xs); }
  .notes-r { order: 6; }
  .notes-cap { order: 7; margin: 14px auto 0; }
  .split { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; row-gap: 30px; }
  .contact-list { flex-direction: column; align-items: center; gap: 14px; }
}
@media (max-width: 1024px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: calc(100% + 8px); left: var(--gut); right: var(--gut); flex-direction: column; gap: 0; padding: 10px 22px 14px; border-radius: var(--radius);
    background: rgba(25, 25, 25, .94); border: 1px solid var(--glass-line); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
  .nav a { padding: 12px 0; font-size: var(--fs-lg); color: var(--text); }
  .menu-open .nav { display: flex; }
  .hdr-in { gap: 14px; }
}
@media (max-width: 560px) {
  :root { --fs-base: 16px; }
  .hdr { top: 8px; padding: 0 10px; }
  .hdr-in { gap: 10px; padding: 0 8px 0 16px; min-height: 54px; }
  .brand { font-size: var(--fs-sm); }
  .langs { gap: 7px; }
  .menu-btn { padding: 6px 12px; }
  .work-grid { grid-template-columns: 1fr; }
  .news-row, .exp li { grid-template-columns: 1fr; }
  .news-row time, .exp-period { grid-row: auto; }
  .ftr-in { flex-direction: column; }
  .stats-row { padding: 20px 0; }
  .stats-row li { padding: 0 6px; }
  
  .stats-row span { font-size: var(--fs-xs); line-height: 1.35; }
  .clients { margin: 0 10px; }
  .contact { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 600px) { .brands { columns: 2; column-gap: 20px; } .brands li { white-space: normal; } }

/* «Как я работаю»: 4 шага по линии, без рамок */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: s; }
.step { position: relative; padding-top: 22px; text-align: center; border-top: 1px solid var(--glass-line); }
.step::before { content: ''; position: absolute; top: -1px; left: 50%; transform: translateX(-50%); width: 48px; height: 2px; background: var(--green); }
.step-n { display: block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--ls-caps); color: var(--green); margin-bottom: 10px; }
.step-t { margin: 0 0 8px; font-size: var(--fs-lg); font-weight: 600; line-height: 1.3; }
.step-p { margin: 0; font-size: var(--fs-sm); line-height: 1.6; color: var(--muted); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; gap: 28px 24px; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* Отзывы */
.revs { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.rev { flex: 1 1 320px; max-width: 400px; }
.rev { margin: 0; display: flex; flex-direction: column; gap: 18px; padding: 28px; border: 1px solid var(--glass-line); border-radius: 20px; background: rgba(229, 229, 229, .03); }
.rev-tag { align-self: flex-start; font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--green); }
.rev-text { margin: 0; font-size: var(--fs-base); line-height: 1.65; }
.rev-text p { margin: 0 0 .7em; } .rev-text p:last-child { margin: 0; }
.rev-shot img { display: block; width: 100%; border-radius: 12px; }
.rev-who { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.rev-ava { width: 44px; height: 44px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #164c2c; font-weight: 600; font-size: var(--fs-sm); }
.rev-ava img { width: 100%; height: 100%; object-fit: cover; }
.rev-who b { display: block; font-weight: 600; } .rev-who small { color: var(--muted); font-size: var(--fs-sm); }

/* Плавающая кнопка Telegram: появляется после главного экрана */
.tg-fab { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 16px; border-radius: 999px; background: var(--green); color: #191919; text-decoration: none; font-weight: 700; font-size: var(--fs-btn); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s, background .2s; }
.tg-fab svg { width: 22px; height: 22px; fill: currentColor; }
.tg-fab.show { opacity: 1; transform: none; pointer-events: auto; }
.tg-fab:hover { filter: brightness(1.12); }
.no-js .tg-fab, .tg-fab:not(.js) { opacity: 1; transform: none; pointer-events: auto; }
.menu-open .tg-fab { display: none; }
@media (max-width: 600px) { .tg-fab { right: 14px; bottom: 14px; padding: 0; width: 54px; justify-content: center; } .tg-fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* ---------- телефон: удобные нажатия и ровные колонки ---------- */
@media (max-width: 600px) {
  /* Кнопки и ссылки не меньше 44px по высоте (норма Apple для пальца) */
  .langs { gap: 0; }
  .hdr-in { gap: 6px; }
  .langs a { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; min-height: 44px; }
  .menu-btn { min-height: 44px; padding: 0 14px; }
  .contact-list a { display: inline-flex; align-items: center; min-height: 44px; }
  .socials a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
  /* Контакты: иконки ровно друг под другом, блок по центру */
  .contact-list { display: flex; flex-direction: column; align-items: flex-start; width: fit-content; margin: 0 auto; gap: 6px; }
  /* Соцсети: сетка 2×2 вместо 3 + 1 */
  .socials { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; gap: 4px 40px; }
  /* Кейсы ниже, чтобы портфолио не тянулось на 6 экранов */
  .work-media { aspect-ratio: 5 / 4; }
  /* Кнопка Telegram не закрывает подвал */
  .ftr-in { padding-bottom: 88px; }
}

/* Самые узкие телефоны (iPhone SE и т.п.): в шапке инициалы вместо полного имени, чтобы влезли языки и «Меню» */
.brand-short { display: none; }
@media (max-width: 370px) {
  .brand-full { display: none; }
  .brand-short { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #164c2c; border: 1px solid rgba(0, 140, 57, .6); font-size: var(--fs-sm); letter-spacing: .02em; }
}

/* =====================================================================
   РЕДИЗАЙН «дорого и спокойно» (4 декабря 2026). Версия до него: git-тег v1-prostoy
   ===================================================================== */
:root {
  --fs-h2: clamp(32px, 4vw, 52px);
  --fs-num: clamp(40px, 4.6vw, 64px);
  --fs-h1: clamp(46px, 7.4vw, 108px);
}

/* 1. Один шрифт на весь сайт (Manrope): крупные заголовки плотные, 600, с поджатым межбуквенным */
.h1, .h2, .hero-name, .contact-title, .plan-name, .stats-row b, .stat b, .loader-name {
  font-family: var(--font); font-weight: 600; letter-spacing: -0.035em;
}
.h2 { line-height: 1.05; }

/* 3. Номера разделов: «— 01 —» над заголовком вместо зелёной черты */
main { counter-reset: sec; }
main > .sec:not(.gallery) .h2::after { display: none; }
main > .sec:not(.gallery) .h2::before {
  counter-increment: sec; content: "— " counter(sec, decimal-leading-zero) " —";
  display: block; margin-bottom: 16px; font: 500 var(--fs-xs)/1 var(--font); letter-spacing: var(--ls-caps); color: var(--green);
}

/* 2. Огромное имя и 10. крупнее фото */
.hero-name { font-size: var(--fs-h1); line-height: 1; letter-spacing: -0.045em; margin-bottom: 24px; }
.hero-photo { --ph: clamp(150px, 15vw, 210px); }

/* 4. Огромные цифры */
.stats-row b { font-size: var(--fs-num); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.stat b { font-weight: 600; }

/* 5. Бегущая строка с услугами */
.ticker { display: flex; overflow: hidden; padding: clamp(18px, 2.6vw, 32px) 0; border-top: 1px solid var(--glass-line); border-bottom: 1px solid var(--glass-line); }
.ticker-track { display: flex; flex-shrink: 0; align-items: center; gap: clamp(28px, 4vw, 56px); padding-right: clamp(28px, 4vw, 56px); animation: marquee 70s linear infinite; }
.ticker span { font: 600 clamp(34px, 5.4vw, 76px)/1.1 var(--font); letter-spacing: -0.035em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(229, 229, 229, .38); transition: color .4s; }
.ticker span:nth-of-type(3n+1) { color: var(--text); -webkit-text-stroke: 0; }
.ticker i { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--green); }

/* 6, 8. Кейсы: обложка и видео заполняют карточку, параллакс внутри */
.work-media.has-img img, .work-media .work-vid { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; }
.work-stat .stat b { font-size: clamp(34px, 3.4vw, 48px); }

/* 11. Лёгкое плёночное зерно поверх всего */
body::after { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* 12, 13. Подсветка за курсором и светящаяся рамка стекла (только мышь) */
.panel, .plan { box-shadow: inset 0 1px 0 rgba(229, 229, 229, .07); }
.glow { position: relative; }
.glow-fx { position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 140, 57, .14), transparent 60%); }
.glow-fx::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 140, 57, .95), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.glow:hover > .glow-fx { opacity: 1; }
.plan > *:not(.glow-fx):not(.plan-badge) { position: relative; z-index: 1; }

/* 15. Свой курсор (только мышь; на телефоне его нет) */
.cur, .cur-ring { display: none; }
html.has-cur, html.has-cur a, html.has-cur button, html.has-cur summary { cursor: none; }
html.has-cur .cur, html.has-cur .cur-ring { display: grid; position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; border-radius: 50%; }
.cur { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--green); }
.cur-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; place-items: center; border: 1px solid rgba(229, 229, 229, .45);
  transition: width .3s, height .3s, margin .3s, background .3s, border-color .3s; }
.cur-ring span { font: 600 var(--fs-xs)/1 var(--font); color: var(--bg); opacity: 0; transition: opacity .2s; }
.cur-ring.is-link { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: rgba(0, 140, 57, .14); border-color: rgba(0, 140, 57, .7); }
.cur-ring.is-view { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--green); border-color: var(--green); }
.cur-ring.is-view span { opacity: 1; }
.cur-ring.is-hidden { opacity: 0; }

/* 16. Заставка при первом входе */
.loader { display: none; position: fixed; inset: 0; z-index: 400; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: var(--bg); }
html.intro .loader { display: flex; }
html.intro body { overflow: hidden; }
.loader-name { font-size: clamp(36px, 5.4vw, 72px); line-height: 1; overflow: hidden; }
.loader-n { font: 500 var(--fs-sm)/1 var(--font); color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: var(--ls-caps); }
.loader-n::after { content: "%"; }

/* 19. Финальный блок: купол, который выпрямляется при прокрутке, огромный заголовок */
.contact { --cr: 0px; margin-top: 24px; min-height: min(88vh, 820px); display: flex; flex-direction: column; justify-content: center;
  border-top-left-radius: 50% var(--cr); border-top-right-radius: 50% var(--cr);
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(0, 140, 57, .34), rgba(0, 140, 57, 0) 70%), linear-gradient(180deg, rgba(22, 76, 44, .55), rgba(25, 25, 25, 0) 85%); }
.contact-title { font-size: clamp(40px, 6.4vw, 92px); line-height: 1.02; max-width: 14ch; margin-bottom: 44px; }

/* Телефон: строка и заголовки чуть скромнее */
@media (max-width: 600px) {
  .ticker span { font-size: 34px; }
  .contact { min-height: 0; }
}

/* Пока открыто окно кейса или галерея (они лежат поверх всего), возвращаем обычный курсор */
html.has-cur:has(dialog[open]), html.has-cur:has(dialog[open]) *, html.has-cur:has(.pswp--open), html.has-cur:has(.pswp--open) * { cursor: auto; }
html.has-cur:has(dialog[open]) :is(a, button), html.has-cur:has(.pswp--open) :is(a, button) { cursor: pointer; }
html:has(dialog[open]) :is(.cur, .cur-ring), html:has(.pswp--open) :is(.cur, .cur-ring) { display: none; }

/* Ритм отступов: полосы наверху (цифры, клиенты, строка) ~104px между содержимым, разделы 144px (72+72) */
.stats { padding-top: 32px; }
.contact { min-height: 0; margin-top: 0; padding-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(64px, 7vw, 96px); }
@media (max-width: 600px) { .stats { padding-top: 24px; } }
/* Кнопка «Закрыть» в окне кейса — удобная для пальца */
@media (max-width: 600px) { .modal-x { min-height: 44px; padding: 0 18px; } }

/* Свечение за фото не пропадает после анимации: у фото свой слой (isolation), свечение остаётся внутри него */
.hero-photo { isolation: isolate; }

/* Фон: едва заметные контурные иконки соцсетей по краям страницы, плавают при прокрутке */
.bgi { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bgi-i { position: absolute; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); rotate: var(--r);
  fill: none; stroke: var(--text, #e5e5e5); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; opacity: .06; }
.bgi-i.is-g { stroke: #008c39; opacity: .16; }
@media (max-width: 600px) {
  .bgi-i { --s: 40px !important; opacity: .05; }
  .bgi-i.is-g { opacity: .13; }
  .bgi-i:nth-of-type(3n) { display: none; }
}
/* Иконки лежат над фоном страницы, но под содержимым */
.bgi { z-index: 0; }
main, body > footer { position: relative; z-index: 1; }

/* Телефон: мягкий отклик на нажатие вместо наведения мышью */
@media (hover: none) {
  .btn, .tab, .work-open, .svc-item summary, .brands-more button, .tg-fab { transition: transform .35s cubic-bezier(.2, .8, .2, 1), background-color .3s, color .3s; }
  .btn:active, .tab:active, .work-open:active, .brands-more button:active, .tg-fab:active { transform: scale(.96); }
  .svc-item summary:active { transform: scale(.99); }
}
/* Плюс у услуг поворачивается плавнее */
.svc-item summary i, .svc-item summary i::before, .svc-item summary i::after { transition: transform .45s cubic-bezier(.2, .8, .2, 1), background-color .35s, border-color .35s; }

/* Обёртка списка брендов: плавно меняет высоту, отступы внутри не «схлопываются» */
.brands-wrap { display: flow-root; }

/* Окно кейса: фон за окном плавно появляется и гаснет */
.modal[open]::backdrop { animation: bd-in .5s ease both; }
.modal.is-closing::backdrop { animation: bd-out .55s ease forwards; }
@keyframes bd-in { from { opacity: 0; } }
@keyframes bd-out { to { opacity: 0; } }

/* Полоска прогресса прокрутки */
.progress { position: fixed; left: 0; top: 0; z-index: 60; width: 100%; height: 2px; background: #008c39; transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* Линии в «Опыте» прорисовываются при прокрутке */
.exp li.line-in { border-bottom-color: transparent; background: linear-gradient(var(--glass-line), var(--glass-line)) 0 100% / 0 1px no-repeat; transition: background-size 1.1s cubic-bezier(.2, .8, .2, 1); }
.exp li.line-in.is-drawn { background-size: 100% 1px; }

/* Телефон: подсветка карточки в месте касания, уведомления на главном снова плавают */
.glow.is-touch > .glow-fx { opacity: 1; }
.notes .note { animation: float 7s ease-in-out infinite; }
