/* Magic Slide — стили сайта. Свой код вместо Тильды (ноябрь 2026).
   Цвета и размеры сняты с прежнего сайта на Тильде. Ширина контента — 1200 px, как там. */

@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url('/fonts/montserrat-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url('/fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #181913;
  --muted: #6f7180;
  --bg: #f8f8f8;
  --white: #fff;
  --blue: #4471f6;
  --blue-dark: #2f5ae0;
  --orange: #ff8f02;
  --peach: #ffb150;
  --line: #e6e7ec;
  --r: 8px;
  --r-lg: 32px;
  --wrap: 1200px;
  --gut: 20px;
  --shadow: 0 2px 16px rgba(24, 25, 19, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 16px/1.5 'Montserrat', Arial, sans-serif; }
/* декоративные звёздочки выступают за блоки — обрезаем по краю экрана, не давая боковой прокрутки */
main > *, .cta, .ftr { overflow-x: clip; }
img, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.spark { position: absolute; pointer-events: none; width: 60px; height: auto; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 50px;
  padding: 0 28px; height: 48px; font-weight: 600; font-size: 18px; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, transform .2s; }
.btn:active { transform: scale(.98); }
.btn--black { background: var(--ink); color: #fff; font-weight: 400; }
.btn--black:hover { background: #33342c; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-dark); }
.btn--orange { background: var(--orange); color: #fff; }
.btn--orange:hover { background: #f07f00; }
.btn--ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }

/* ---------- шапка ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(248, 248, 248, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hdr__in { display: flex; align-items: center; height: 69px; gap: 16px; }
.hdr__logo img { width: 208px; }
.hdr__part { font-size: 14px; text-decoration: none; padding-left: 16px; border-left: 1px solid var(--ink); line-height: 1.1; white-space: nowrap; }
.hdr__nav { margin-left: auto; display: flex; gap: 32px; }
.hdr__nav a { font-size: 18px; text-decoration: none; }
.hdr__nav a:hover, .hdr__part:hover { color: var(--blue); }
.hdr__cta { margin-left: 24px; height: 44px; font-size: 18px; }
.hdr__burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; padding: 10px; }
.hdr__burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; margin: 5px 0; }

.mmenu { position: fixed; inset: 0; z-index: 100; background: #fff; overflow-y: auto; }
.mmenu[hidden] { display: none; }
.mmenu__in { padding: 14px var(--gut) 40px; }
.mmenu__top { display: flex; align-items: center; justify-content: space-between; }
.mmenu__top img { width: 180px; }
.mmenu__close { width: 44px; height: 44px; border: 0; background: none; position: relative; }
.mmenu__close::before, .mmenu__close::after { content: ''; position: absolute; left: 10px; right: 10px; top: 21px; height: 2px; background: var(--ink); transform: rotate(45deg); }
.mmenu__close::after { transform: rotate(-45deg); }
.mmenu__part { display: inline-block; margin: 16px 0 24px; text-decoration: none; }
.mmenu__nav { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.mmenu__nav a { font-size: 22px; text-decoration: none; }
.mmenu .contacts a { color: var(--ink); }
.mmenu__cta { margin-top: 28px; }
body.menu-open { overflow: hidden; }

/* ---------- контакты (в меню и в блоке заявки) ---------- */
.contacts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.contacts a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 17px; }
.contacts a:hover { text-decoration: underline; }
.contacts__ico { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--blue); }
.contacts__ico img { width: 18px; height: 18px; }

/* ---------- общие секции ---------- */
.sec { padding: 72px 0; position: relative; }
.sec--tight { padding: 40px 0; }
.eyebrow { display: block; text-align: center; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 12px; }
.h2 { font-size: 42px; font-weight: 700; text-align: center; max-width: 800px; margin: 0 auto 48px; }
.h2--left { text-align: left; margin-left: 0; }

/* ---------- главная: первый экран ---------- */
.hero { padding: 24px 0 40px; }
.hero__art { position: relative; border-radius: 0; overflow: hidden; aspect-ratio: 1680 / 624; background: var(--blue); }
.hero__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__art .hero__layer { transition: transform .4s ease-out; will-change: transform; }
.hero__tag { position: absolute; right: 6%; top: 27%; color: #fff; font-weight: 600; font-size: clamp(12px, 1.6vw, 20px); }
.hero__line { position: absolute; left: 0; right: 0; bottom: 6.5%; display: flex; justify-content: center; flex-wrap: wrap; gap: 0 14px;
  font-weight: 600; font-size: clamp(11px, 1.6vw, 20px); }
.hero__line span:nth-child(1) { color: #87f542; }
.hero__line span:nth-child(2) { color: #fbad41; }
.hero__line span:nth-child(3) { color: #72e3ff; }
.hero__line span:nth-child(4) { color: #ff99cc; }
.hero__mob { display: none; }

/* ---------- карточки услуг (главная) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 960px; margin: 0 auto; position: relative; }
.svc-card { display: flex; flex-direction: column; gap: 10px; background: #fff; border-radius: var(--r); padding: 16px 16px 20px; text-decoration: none;
  transition: transform .2s, box-shadow .2s; }
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.svc-card__ico { width: 72px; height: 72px; border-radius: 50%; background: var(--peach); overflow: hidden; margin-bottom: 8px; }
.svc-card__ico img { width: 100%; height: 100%; object-fit: cover; }
.svc-card h3 { font-size: 20px; font-weight: 700; }
.svc-card p { font-size: 16px; color: var(--muted); line-height: 1.35; }
.svc-grid .spark--a { right: -40px; top: -40px; width: 54px; }
.svc-grid .spark--b { left: -40px; bottom: -30px; width: 46px; }

/* ---------- видео ---------- */
.video { max-width: 980px; margin: 0 auto; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r); overflow: hidden; }
.video iframe, .video video { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- цифры ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 40px; max-width: 980px; margin: 0 auto; }
.stats b { display: block; font-size: 32px; font-weight: 700; margin-bottom: 10px; line-height: 1.15; }
.stats p { color: var(--muted); }

/* ---------- команда ---------- */
.team { display: grid; grid-template-columns: repeat(7, 1fr); gap: 16px; text-align: center; position: relative; }
.team__ph { width: 120px; height: 120px; border-radius: 50%; background: var(--peach); margin: 0 auto 14px; overflow: hidden; }
.team__ph img { width: 100%; height: 100%; object-fit: cover; }
.team h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.team__role { color: var(--muted); font-weight: 400; margin-bottom: 6px; }
.team__exp { font-size: 15px; font-weight: 400; line-height: 1.35; }
.sec--team .spark { right: 8%; top: 40px; width: 110px; }

/* ---------- бегущая строка логотипов ---------- */
.marquee { overflow: hidden; padding: 16px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 64px; width: max-content; animation: marquee 40s linear infinite; }
.marquee__track img { height: 72px; width: auto; flex: none; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.sec--tech .spark { left: 6%; top: 10px; width: 110px; }

/* ---------- «Помогаем фармкомпаниям» ---------- */
.help { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: center; max-width: 920px; margin: 0 auto; position: relative; }
.help__art { position: relative; height: 260px; }
.help__art img { position: absolute; }
.help__tags { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.help__tags li { list-style: none; background: #fff; border-radius: var(--r); padding: 18px 16px; text-align: center; font-size: 20px; font-weight: 500; line-height: 1.25;
  display: flex; align-items: center; justify-content: center; min-height: 88px; }
.help__tags { margin: 0; padding: 0; }
.help .spark { right: -50px; bottom: -40px; width: 80px; }

/* ---------- блок заявки ---------- */
.cta { padding: 56px 0 40px; }
.cta__box { position: relative; background: var(--blue); color: #fff; border-radius: var(--r-lg); padding: 48px 48px 40px; }
.cta__title { font-size: 72px; font-weight: 800; line-height: 1; max-width: 1100px; margin-bottom: 40px; }
.cta__form { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin-bottom: 32px; }
.field { height: 56px; border-radius: 50px; border: 2px solid #fff; background: transparent; color: #fff; padding: 0 24px; font: 400 20px 'Montserrat', Arial, sans-serif; width: 280px; outline: none; }
.field::placeholder { color: rgba(255, 255, 255, .55); }
.field:focus { background: rgba(255, 255, 255, .08); }
.field.is-bad { border-color: #ffd0a0; background: rgba(255, 143, 2, .18); }
.cta__btn { height: 56px; font-size: 20px; padding: 0 32px; }
.cta__btn:disabled { opacity: .6; cursor: default; }
.cta__msg { flex-basis: 100%; min-height: 0; font-size: 16px; }
.cta__msg:empty { display: none; }
.cta .contacts { flex-direction: row; flex-wrap: wrap; gap: 12px 36px; }
.cta .contacts a { color: #fff; font-size: 20px; }
.cta .contacts__ico { background: transparent; width: 24px; height: 24px; }
.cta .contacts__ico img { width: 22px; height: 22px; }
.cta__spark1 { right: -22px; top: 62%; width: 46px; }
.cta__spark2 { right: 56px; bottom: -48px; width: 76px; }
.hp { position: absolute; left: -9999px; }

/* ---------- подвал ---------- */
.ftr { padding: 40px 0 32px; }
.ftr__group { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; font-size: 32px; font-weight: 500; margin-bottom: 48px; }
.ftr__group img { width: 240px; }
.ftr__bottom { border-top: 1px solid #7b87a3; padding-top: 18px; display: flex; gap: 16px 48px; font-size: 16px; }
.ftr__bottom span { margin-right: auto; }
.ftr__bottom a { text-decoration: none; }
.ftr__bottom a:hover { color: var(--blue); }

/* ---------- страница-карточка (услуги, статьи, служебные) ---------- */
.page { padding: 12px 0 0; }
.cover { max-width: 1186px; margin: 0 auto; border-radius: 20px; overflow: hidden; }
.cover img { width: 100%; aspect-ratio: 1186 / 573; object-fit: cover; }
.sheet { position: relative; max-width: 980px; margin: -185px auto 0; background: #fff; border-radius: 16px; padding: 44px 70px 56px; box-shadow: var(--shadow); }
.sheet--flat { margin-top: 24px; }
.crumbs { font-size: 15px; font-weight: 400; color: var(--blue); margin-bottom: 16px; }
.crumbs a { text-decoration: none; color: #ff8f02; }
.crumbs a:hover { text-decoration: underline; }

/* текст статьи и описаний */
.prose { font-size: 16px; font-weight: 400; line-height: 1.6; }
.prose > * + * { margin-top: 16px; }
.prose h1 { font-size: 36px; font-weight: 700; line-height: 1.2; }
.prose h2 { font-size: 26px; font-weight: 700; margin-top: 40px; }
.prose h3 { font-size: 20px; font-weight: 700; margin-top: 28px; }
.prose b, .prose strong { font-weight: 700; }
.prose a { color: var(--blue); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose figure { margin: 28px 0; }
.prose figure img { border-radius: var(--r); margin: 0 auto; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; text-align: center; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 24px 0; }
.prose th { background: var(--blue); color: #fff; font-weight: 600; text-align: left; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
.prose tr:nth-child(even) td { background: #f4f6fd; }
.prose .table-scroll { overflow-x: auto; }
.note { background: #eef3ff; border-radius: var(--r); padding: 20px 24px; }
.note--orange { background: #fff4e5; }

/* нумерованные шаги с кружками */
.steps { list-style: none; padding: 0; margin: 24px 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 40px; }
.steps li + li { margin-top: 18px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: #e8ecfb; color: var(--blue); font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.steps b { display: block; font-weight: 700; }

.stats--sheet { grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 32px 0; }
.stats--sheet b { font-size: 28px; }
.stats--sheet p { font-size: 14px; }

.embed { width: 100%; border: 0; border-radius: var(--r); background: #f1f2f6; display: block; }
.embed--clm { aspect-ratio: 4 / 3; }

/* автор и дата статьи */
.byline { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.byline__author { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--ink); }
.byline__author img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }

/* ---------- ленты: услуги и блог ---------- */
.page-title { font-size: 42px; font-weight: 700; margin-bottom: 32px; }
.feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feed-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--r); overflow: hidden; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.feed-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feed-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.feed-card__body { padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 10px; }
.feed-card__date { font-size: 13px; color: var(--muted); }
.feed-card h2, .feed-card h3 { font-size: 20px; font-weight: 700; line-height: 1.3; }
.feed-card p { font-size: 15px; font-weight: 400; color: var(--muted); }

/* ---------- кейсы ---------- */
.case-hero { position: relative; max-width: 1184px; margin: 0 auto; }
.case-hero > img:first-child { width: 100%; aspect-ratio: 1184 / 560; object-fit: cover; border-radius: 20px; }
.case-hero__card { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); background: #fff; border-radius: 20px; padding: 20px 28px; text-align: center; width: min(937px, 90%); }
.case-hero__card h1 { font-size: 42px; font-weight: 600; line-height: 1.15; }
.case-hero__card p { font-size: 16px; font-weight: 600; color: #404040; text-transform: uppercase; margin-top: 10px; }
.case-hero__s1 { right: 8%; top: 6%; width: 90px; }
.case-hero__s2 { left: 6%; bottom: 30%; width: 77px; }
.case-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.case-row--steps { grid-template-columns: 340px 1fr; align-items: start; gap: 60px; }
.case-fig { margin: 0; }
.case-fig img { border-radius: 20px; width: 100%; }
.case-tags { display: flex; gap: 24px; font-size: 18px; font-weight: 400; color: #888885; margin-top: 10px; }
.case-lead { font-size: 20px; font-weight: 500; color: #404040; line-height: 1.5; }
.case-lead--sm { font-size: 20px; }
.case-lead b { font-weight: 700; }
.case-art { margin: 0 auto; max-height: 420px; width: auto; }
.case-kicker { color: var(--peach); font-weight: 600; font-size: 24px; margin-bottom: 6px; }
.case-h { font-size: 40px; font-weight: 600; margin-bottom: 28px; line-height: 1.2; }
.case-h--center { text-align: center; max-width: 900px; margin-left: auto; margin-right: auto; }
.case-text { font-weight: 400; line-height: 1.55; }
.case-text b { font-weight: 700; }
.case-steps { list-style: none; padding: 0; margin: 0; counter-reset: cs; }
.case-steps li { counter-increment: cs; position: relative; padding-left: 90px; min-height: 120px; }
.case-steps li + li { margin-top: 24px; }
.case-steps li::before { content: counter(cs); position: absolute; left: 0; top: -14px; font-size: 128px; font-weight: 400; line-height: 1; color: rgba(0, 0, 0, .12); }
.case-steps h3 { font-size: 28px; font-weight: 400; line-height: 1.15; margin-bottom: 10px; }
.case-steps p { font-size: 16px; font-weight: 400; color: #404040; }
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; }
.people li { list-style: none; background: #fff; border-radius: 20px; padding: 20px 26px; }
.people b { display: block; color: var(--blue); font-size: 24px; font-weight: 600; margin-bottom: 6px; }
.people span { color: #888885; font-size: 20px; font-weight: 400; }
.case-demo { max-width: 841px; margin: 0 auto 40px; }
.case-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.case-gallery img { width: 100%; border-radius: 12px; }
.case-why { max-width: 900px; margin: 0 auto; }
.steps--lg li { font-size: 20px; padding-left: 56px; min-height: 40px; }
.steps--lg li::before { width: 40px; height: 40px; font-size: 20px; top: -6px; }
.case-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* ---------- анимация появления ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
}

/* ---------- планшет ---------- */
@media (max-width: 1100px) {
  .hdr__nav { gap: 20px; }
  .hdr__nav a, .hdr__cta { font-size: 16px; }
  .team { grid-template-columns: repeat(4, 1fr); row-gap: 32px; }
  .cta__title { font-size: 56px; }
  .sheet { padding: 32px 40px 48px; }
}
@media (max-width: 900px) {
  .hdr__nav, .hdr__cta, .hdr__part { display: none; }
  .hdr__burger { display: block; }
  .svc-grid, .feed { grid-template-columns: 1fr 1fr; }
  .help { grid-template-columns: 1fr; }
  .help__art { display: none; }
  .case-row, .case-row--steps { grid-template-columns: 1fr; gap: 28px; }
  .case-row--steps .case-art { max-height: 240px; }
  .case-hero__card h1 { font-size: 30px; }
  .case-h { font-size: 32px; }
  .people { grid-template-columns: 1fr 1fr; }
}

/* ---------- телефон ---------- */
@media (max-width: 640px) {
  body { font-size: 15px; }
  .hdr__in { height: 60px; }
  .hdr__logo img { width: 160px; }
  .sec { padding: 48px 0; }
  .h2 { font-size: 28px; margin-bottom: 28px; }
  .hero { padding: 12px 0 24px; }
  .hero__art { display: none; }
  .hero__mob { display: block; border-radius: var(--r); overflow: hidden; background: var(--blue); }
  .hero__mob img { width: 100%; }
  .svc-grid, .feed, .case-cards { grid-template-columns: 1fr; }
  .svc-grid .spark { display: none; }
  .stats, .stats--sheet { grid-template-columns: 1fr; gap: 24px; }
  .team { grid-template-columns: 1fr 1fr; }
  .team__ph { width: 104px; height: 104px; }
  .marquee__track img { height: 48px; }
  .marquee__track { gap: 40px; }
  .help__tags { grid-template-columns: 1fr; }
  .help__tags li { font-size: 17px; }
  .help .spark, .sec--team .spark, .sec--tech .spark { display: none; }
  .cta__box { padding: 32px 20px 28px; border-radius: 24px; }
  .cta__title { font-size: 36px; margin-bottom: 24px; }
  .cta__form { flex-direction: column; align-items: stretch; }
  .field { width: 100%; font-size: 18px; }
  .cta__btn { white-space: normal; height: auto; min-height: 56px; padding: 12px 20px; text-align: center; }
  .cta .contacts { flex-direction: column; }
  .cta .contacts a { font-size: 16px; }
  .ftr__group { font-size: 22px; }
  .ftr__group img { width: 180px; }
  .ftr__bottom { flex-direction: column; align-items: center; gap: 8px; font-size: 14px; }
  .ftr__bottom span { margin-right: 0; }
  .cta__spark1 { display: none; }
  .cover img { aspect-ratio: 16 / 10; }
  .sheet { margin-top: -32px; padding: 24px 18px 36px; border-radius: var(--r); }
  .prose h1 { font-size: 26px; }
  .prose h2 { font-size: 21px; }
  .page-title { font-size: 30px; }
  .case-hero > img:first-child { aspect-ratio: 4 / 3; }
  .case-hero__card { position: relative; left: auto; bottom: auto; transform: none; width: auto; margin: -36px 12px 0; padding: 16px; box-shadow: var(--shadow); }
  .case-hero__card h1 { font-size: 22px; }
  .case-hero__card p { font-size: 13px; }
  .case-hero .spark { display: none; }
  .case-h { font-size: 26px; margin-bottom: 18px; }
  .case-kicker { font-size: 17px; }
  .case-lead, .case-lead--sm { font-size: 17px; }
  .case-tags { font-size: 15px; }
  .case-steps li { padding-left: 56px; min-height: 80px; }
  .case-steps li::before { font-size: 80px; top: -8px; }
  .case-steps h3 { font-size: 20px; }
  .people { grid-template-columns: 1fr; }
  .people b { font-size: 20px; }
  .people span { font-size: 16px; }
  .case-gallery { grid-template-columns: 1fr; }
  .steps--lg li { font-size: 16px; padding-left: 48px; }
  .steps--lg li::before { width: 32px; height: 32px; font-size: 16px; top: -4px; }
  .cover img { aspect-ratio: 16 / 10; }
}

/* ===== parts/articles.css ===== */
/* Блог: лента /blog и статьи (/blog/…, /brief_article).
   Всё здесь — только для этих страниц: лента — внутри .blog, статьи — внутри .post.
   Размеры и цвета сняты со статей на Тильде (ноябрь 2026). */

/* ---------- лента /blog ---------- */
.blog-head { position: relative; text-align: center; padding: 136px 0 96px; }
.blog-head .page-title { font-size: 48px; margin-bottom: 20px; }
.blog-head p { font-size: 16px; font-weight: 600; text-transform: uppercase; }
.blog-head .spark--a { width: 42px; left: calc(50% - 291px); top: 110px; }
.blog-head .spark--b { width: 54px; left: calc(50% + 220px); top: 264px; }

.feed--blog { gap: 90px 40px; max-width: 1160px; margin: 0 auto; }
.feed--blog .feed-card { border-radius: 0; }
.feed--blog .feed-card img { aspect-ratio: 360 / 276; }
.feed--blog .feed-card__body { padding: 30px 30px 40px; gap: 10px; }
.feed--blog .feed-card h2 { font-size: 20px; font-weight: 600; line-height: 1.3; }
.feed--blog .feed-card p { font-size: 14px; line-height: 1.55; }
.feed--blog .feed-card__date { font-size: 11px; font-weight: 600; letter-spacing: .03em; color: #777; margin-top: 2px; }

/* синий баннер «Хотите заказать…» */
.blog-order { padding: 110px 0 0; }
.blog-order__box { position: relative; max-width: 1184px; margin: 0 auto; aspect-ratio: 1184 / 447; border-radius: 24px; background: var(--blue);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 40px; text-align: center; }
.blog-order__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 24px; }
.blog-order__box h2 { position: relative; color: #fff; font-size: 72px; font-weight: 800; line-height: 1; max-width: 822px; }
.blog-order__btn { position: relative; background: #fff; color: var(--ink); min-width: 150px; height: 50px; font-size: 20px; }
.blog-order__btn:hover { background: #f0f0f0; }
.blog-order .spark--a { width: 111px; left: 10%; bottom: -58px; }
.blog-order .spark--b { width: 54px; right: 10%; top: -16px; }

/* ---------- статья ---------- */
.post .cover img { aspect-ratio: 1186 / 380; }
.post .sheet { margin-top: -50px; padding-top: 36px; }

/* дата · время чтения · автор */
.post .byline { flex-wrap: wrap; gap: 12px 24px; font-size: 16px; font-weight: 400; color: #12121e; margin-bottom: 20px; }
.byline__read { display: inline-flex; align-items: center; gap: 12px; }
.byline__read img { width: 24px; height: 24px; }
.post .byline__author { gap: 16px; color: #12121e; }
.post .byline__author img { width: 56px; height: 56px; }

.post .prose { color: #12121e; }
.post .prose h1 { font-size: 40px; line-height: 1.1; max-width: 780px; }
.post .prose h1 + * { margin-top: 32px; }
.post .prose h2 { font-size: 24px; line-height: 1.25; }
.post .prose h3 { font-size: 20px; line-height: 1.3; }
.post .prose a { color: #ff8562; }
.post-lead { font-size: 20px; font-weight: 700; line-height: 1.3; }
.post-tagline { font-size: 24px; font-weight: 500; line-height: 1.3; }

/* колонка с отступом: подзаголовок и пояснения стоят над текстом пунктов, кружки — по левому краю текста */
.post-col { max-width: 640px; }
.post-col > :not(.steps) { padding-left: 40px; }
.post-col > * + * { margin-top: 12px; }
.post-col > h2, .post-col > h3 { margin-top: 32px; }
.post-col > :first-child { margin-top: 0; }

/* нумерованные пункты: кружки как на Тильде — сиреневый, розовый, бирюзовый, серый */
.post .steps { max-width: 640px; margin-bottom: 0; padding-left: 0; }
.post .steps li + li { margin-top: 14px; }
.post .steps li::before { width: 27px; height: 27px; font-size: 14px; color: #12121e; background: #dee2fd; }
.post .steps li:nth-child(4n+2)::before { background: #fecaf2; }
.post .steps li:nth-child(4n+3)::before { background: #d4f4f7; }
.post .steps li:nth-child(4n)::before { background: #e3e3e1; }
.post .steps--cyan li:nth-child(n)::before { background: #d4f4f7; }
.post .steps--plus li:nth-child(n)::before { content: '+'; background: #d4f4f7; }
.post .steps--minus li:nth-child(n)::before { content: '-'; background: #fecaf2; }
.post-col > .steps { margin-top: 14px; }

/* таблица (на Тильде была картинкой) */
.post .post-table { max-width: 700px; margin: 32px auto; border-radius: 10px; }
.post .post-table table { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.35; text-align: center; border-collapse: collapse; }
.post .post-table th, .post .post-table td { border: 0; border-right: 2px solid #fff; border-bottom: 2px solid #fff; padding: 10px 12px 18px; vertical-align: top; text-align: center; }
.post .post-table th:last-child, .post .post-table td:last-child { border-right: 0; }
.post .post-table th { background: #4472c4; color: #fff; font-weight: 600; border-bottom-width: 3px; }
.post .post-table td { background: #cfd5ea; }
.post .post-table tr:nth-child(even) td { background: #e9ebf5; }

/* выноска с градиентом */
.post .post-note { background: linear-gradient(122deg, #dee2fd 0%, #d4f4f7 100%); border-radius: 12px; padding: 32px 30px; box-shadow: 0 1px 4px 1px rgba(0, 0, 0, .1); }
.post .prose .post-note { margin-top: 28px; margin-bottom: 8px; }
.post .post-note > * + * { margin-top: 12px; }
.post .post-note h2 { margin: 0 0 16px; }

/* сетка «иконка + текст» */
.post .post-icons { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; margin-top: 24px; }
.post .post-icons > li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 16px; align-items: start; margin: 0; }
.post .post-icons > li > img { width: 42px; height: 42px; object-fit: contain; }
.post .post-icons b { display: block; }
.post .post-icons ul { margin: 2px 0; padding-left: 20px; list-style: disc; }
.post .post-icons li li + li { margin-top: 2px; }
.post .post-icons--narrow { max-width: 780px; margin-left: auto; margin-right: auto; }
.post .post-icons--narrow > li:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 20px); }
.post .post-icons--single { grid-template-columns: minmax(0, 340px); justify-content: center; }

/* ряд коротких пунктов: иконка сверху (или слева — --side) */
.post .post-tiles { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px 16px; text-align: center; }
.post .post-tiles > li { margin: 0; }
.post .post-tiles img { width: 42px; height: 42px; margin: 0 auto 8px; }
.post .post-tiles b { display: block; }
.post .post-tiles--side { grid-template-columns: repeat(4, 1fr); text-align: left; font-weight: 500; }
.post .post-tiles--side > li { display: flex; align-items: center; gap: 14px; }
.post .post-tiles--side img { flex: none; margin: 0; }

/* типы инфографики: заголовок, «Что это», «Где применимо», «Зачем использовать» — плотным блоком */
.post-types > * { margin: 0; }
.post-types > h3 { font-size: 16px; margin-top: 28px; }
.post .prose .post-types > h3 { font-size: 16px; }
.post-types > h3:first-child { margin-top: 0; }
.post .post-types li + li { margin-top: 0; }

/* картинки и видео */
.post .prose figure { max-width: 700px; margin: 32px auto; }
.post .prose figure img { width: 100%; border-radius: 20px; }
.post .prose .post-wide { max-width: none; }
.post .video { border-radius: 20px; }

/* ---------- планшет ---------- */
@media (max-width: 900px) {
  .blog-head { padding: 80px 0 64px; }
  .blog-head .spark--a { left: 8%; top: 56px; }
  .blog-head .spark--b { left: auto; right: 8%; top: 190px; }
  .feed--blog { gap: 48px 24px; }
  .blog-order__box { aspect-ratio: auto; min-height: 340px; }
  .blog-order__box h2 { font-size: 48px; }
  .post .post-tiles { grid-template-columns: repeat(3, 1fr); }
  .post .post-tiles--side { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- телефон ---------- */
@media (max-width: 640px) {
  .blog-head { padding: 48px 0 40px; }
  .blog-head .page-title { font-size: 34px; margin-bottom: 12px; }
  .blog-head p { font-size: 14px; }
  .blog-head .spark--a { width: 30px; left: 4%; top: 24px; }
  .blog-head .spark--b { width: 36px; right: 4%; top: 104px; }
  .feed--blog { gap: 24px; }
  .feed--blog .feed-card__body { padding: 20px 20px 28px; }
  .feed--blog .feed-card h2 { font-size: 18px; }
  .blog-order { padding-top: 56px; }
  .blog-order__box { min-height: 300px; padding: 48px 20px; gap: 24px; border-radius: 20px; }
  .blog-order__bg { border-radius: 20px; }
  .blog-order__box h2 { font-size: 32px; }
  .blog-order .spark--a { width: 64px; bottom: -30px; }
  .blog-order .spark--b { width: 40px; }

  .post .cover img { aspect-ratio: 16 / 10; }
  .post .sheet { margin-top: -32px; padding-top: 24px; }
  .post .byline { font-size: 14px; gap: 10px 16px; }
  .post .byline__author { margin-left: 0; width: 100%; gap: 12px; }
  .post .byline__author img { width: 40px; height: 40px; }
  .post .prose h1 { font-size: 26px; }
  .post .prose h1 + * { margin-top: 24px; }
  .post .prose h2 { font-size: 21px; }
  .post .prose h3 { font-size: 18px; }
  .post-lead { font-size: 17px; }
  .post-tagline { font-size: 20px; }
  .post .post-note { padding: 24px 18px; }
  .post .post-table table { font-size: 13px; hyphens: auto; }
  .post .post-table th, .post .post-table td { padding: 8px 6px 12px; }
  .post .post-icons { grid-template-columns: 1fr; gap: 24px; }
  .post .post-icons--narrow > li:last-child:nth-child(odd) { grid-column: auto; justify-self: stretch; width: auto; }
  .post .post-tiles { grid-template-columns: repeat(2, 1fr); }
  .post .post-tiles--side { grid-template-columns: 1fr; gap: 12px; }
  .post .prose figure { margin: 24px auto; }
  .post .prose figure img, .post .video { border-radius: 12px; }
}

/* ===== parts/cases.css ===== */
/* Кейсы: список /our_cases и страницы /our_cases/<имя>.
   Общие блоки кейса (.case-hero, .case-row, .case-steps, .people, .case-gallery…) — в site.css,
   здесь только то, чего там нет. */

/* ---------- список кейсов: заголовок ---------- */
.cases-head { position: relative; text-align: center; padding: 100px 0 113px; }
.cases-head h1 { font-size: 48px; font-weight: 700; }
.cases-head p { font-size: 16px; font-weight: 600; text-transform: uppercase; margin-top: 30px; }
.cases-head__s1 { left: calc(50% - 402px); top: 85px; width: 42px; }
.cases-head__s2 { left: calc(50% + 226px); top: 180px; width: 54px; }

/* ---------- список кейсов: фильтр (радиокнопки + :has, без скриптов) ---------- */
.cases-filter { display: flex; flex-wrap: wrap; gap: 12px 36px; min-width: 0; margin: 0 0 34px; padding: 0 0 0 27px; border: 0; }
.cases-filter input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.cases-filter label { display: inline-flex; align-items: flex-start; gap: 14px; cursor: pointer; font-size: 20px; font-weight: 500; }
.cases-filter label span { display: block; background: #fff; border-radius: 30px; padding: 8px 20px; line-height: 1.4; transition: background-color .2s, color .2s; }
.cases-filter label:hover span { color: var(--blue); }
.cases-filter sup { font-size: 16px; line-height: 1; margin-top: -2px; }
.cases-filter input:checked + label span { background: var(--blue); color: #fff; }
.cases-filter input:focus-visible + label span { outline: 2px solid var(--blue); outline-offset: 3px; }
.cases:has(#cf-graphic_design:checked) .case-card:not([data-tags~="graphic_design"]),
.cases:has(#cf-websites:checked) .case-card:not([data-tags~="websites"]),
.cases:has(#cf-clm:checked) .case-card:not([data-tags~="clm"]) { display: none; }

/* ---------- список кейсов: карточка ---------- */
.cases { padding-bottom: 110px; }
.cases .case-cards { gap: 20px; padding: 0 10px; }
.case-card { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 580 / 476; border-radius: 40px; overflow: hidden; background: #fff; color: var(--ink);
  text-decoration: none; box-shadow: 2px 2px 5px #9e9e9e; }
.case-card > img { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.case-card:hover > img { transform: scale(1.03); }
/* обложка «псориаза» — увеличенный кусок скриншота сайта, как на Тильде */
.case-card > img.case-card__zoom { inset: auto; left: -59.2%; top: -18.1%; width: 199.5%; max-width: none; height: auto; }
.case-card__tags { position: absolute; left: 20px; top: 20px; display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0;
  list-style: none; font-size: 14px; font-weight: 400; line-height: 1.5; color: #fff; }
.case-card__tags--dark { color: #000; }
.case-card__body { margin: 0 20px 15px 12px; min-height: 171px; padding: 26px 6px 20px 33px; border-radius: 40px;
  background: rgba(255, 255, 255, .4); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.case-card h2 { font-size: 20px; font-weight: 600; line-height: 1.2; margin-bottom: 12px; }
.case-card p { max-width: 479px; font-size: 15px; font-weight: 400; line-height: 1.25; }

/* ---------- страница кейса ---------- */
.case-hero--top > img:first-child { object-position: top; }
.case-hero--full > img:first-child { aspect-ratio: auto; }
.case-hero--full .case-hero__card { bottom: 23%; }
@media (min-width: 901px) {
  .case-hero__card--long { padding-left: 22px; padding-right: 22px; }
  .case-hero__card--long h1 { font-size: 36px; letter-spacing: -1px; }
}
.case-art--sm { max-width: min(335px, 100%); }

.people--4 { grid-template-columns: repeat(4, 1fr); }
.people--4 li { padding: 20px 14px 20px 18px; }

.case-h--full { max-width: 1120px; }

.case-gallery + .case-gallery { margin-top: 24px; }
.case-gallery--tall-wide { grid-template-columns: 379fr 781fr; }

/* демо-игра (лендинг в духе ретро-игр) */
.case-demo--game { aspect-ratio: 841 / 688; }

/* коллаж «спрайты + экраны игры» */
.case-collage { display: grid; grid-template-columns: 640fr 530fr; gap: 24px 30px; align-items: start; }
.case-collage > * { min-width: 0; }
.case-collage__sprites { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.case-collage__sprites img:nth-child(1) { width: 78%; }
.case-collage__sprites img:nth-child(2) { width: 100%; }
.case-collage__sprites img:nth-child(3) { width: 56%; }
.case-collage__shots { display: flex; flex-direction: column; gap: 15px; }
.case-collage__shots img { width: 75.5%; }
.case-collage__shots img:nth-child(2) { margin-left: 24.5%; }
.case-collage__shots img:nth-child(3) { margin-left: 9.2%; }

/* коллаж «планшеты + иллюстрации» (сайт о псориазе); проценты — от сетки 1200 px Тильды */
.case-stack img { position: relative; }
.case-stack__a { width: 58.5%; margin-left: 6.7%; }
.case-stack__b { width: 58.5%; margin: -19.5% 0 0 35%; }
.case-stack__wide { width: 91.9%; margin: 3.3% 0 0 6.5%; }
.case-stack__row { display: grid; grid-template-columns: 394fr 286fr 417fr; gap: 31px; align-items: center; margin: -3.8% 2.7% 0 1.8%; }

/* «Почему выбирают нас» */
.case-reasons { list-style: none; margin: 0; padding: 0 0 0 58px; }
.case-reasons li + li { margin-top: 22px; }
.case-reasons h3 { font-size: 28px; font-weight: 400; line-height: 1.15; margin-bottom: 12px; }
.case-reasons p { font-size: 16px; font-weight: 400; color: #404040; }

/* ---------- планшет ---------- */
@media (max-width: 900px) {
  .cases-head { padding: 64px 0 48px; }
  .cases-head h1 { font-size: 40px; }
  .cases-head__s1 { left: 4%; top: 40px; }
  .cases-head__s2 { left: auto; right: 6%; top: auto; bottom: 24px; }
  .case-card { border-radius: 30px; }
  .case-card__body { border-radius: 30px; padding: 20px 24px 18px; min-height: 0; }
  .case-card h2 { font-size: 17px; }
  .case-card p { font-size: 14px; }
  .people--4 { grid-template-columns: 1fr 1fr; }
  .case-collage { grid-template-columns: 1fr; }
  .case-reasons { padding-left: 0; }
  .case-reasons h3 { font-size: 24px; }
}

/* ---------- телефон ---------- */
@media (max-width: 640px) {
  .cases-head { padding: 40px 0 36px; }
  .cases-head h1 { font-size: 34px; }
  .cases-head p { max-width: 260px; margin: 18px auto 0; font-size: 14px; }
  .cases-head__s1 { width: 32px; left: 3%; top: auto; bottom: 62px; }
  .cases-head__s2 { width: 40px; right: 5%; bottom: 10px; }
  .cases-filter { gap: 10px 12px; padding-left: 0; }
  .cases-filter label { font-size: 14px; gap: 3px; }
  .cases-filter label span { padding: 6px 12px; }
  .cases-filter sup { font-size: 12px; }
  .cases { padding-bottom: 48px; }
  .case-card { aspect-ratio: 10 / 9; }
  .case-card__body { margin: 0 10px 10px; padding: 16px 18px 14px; }
  .case-card h2 { font-size: 15px; margin-bottom: 8px; }
  .case-card p { font-size: 13px; }
  .case-card__tags { left: 18px; top: 14px; font-size: 13px; }
  .case-card > img.case-card__zoom { width: 207.5%; left: -67.9%; top: -18.4%; }
  .case-hero--full .case-hero__card { bottom: auto; }
  .people--4 { grid-template-columns: 1fr; }
  .case-gallery--tall-wide { grid-template-columns: 1fr; }
  .case-collage__shots img { width: 85%; }
  .case-collage__shots img:nth-child(2) { margin-left: 15%; }
  .case-collage__shots img:nth-child(3) { margin-left: 7%; }
  .case-stack__row { gap: 10px; }
  .case-reasons h3 { font-size: 20px; margin-bottom: 8px; }
  .case-reasons p { font-size: 15px; }
}

/* ===== parts/misc.css ===== */
/* Служебные страницы: глоссарий (/glossariy), DEI (/inclusion), опрос (/feedback), документ (/policies), 404. */

/* ---------- глоссарий ---------- */
.gls { max-width: 960px; margin: 0 auto; padding-top: 24px; }
.gls h1 { font-size: 48px; text-align: center; }
.gls .gls__lead { max-width: 600px; margin: 24px auto 0; text-align: center; }
.gls h2 { font-size: 24px; text-align: center; margin: 56px 0 28px; }
.gls h3 { font-size: 16px; margin-top: 28px; }
.gls h3 + ol { margin-top: 12px; }
.gls__dl { margin-bottom: 0; }
.gls__dl > div + div { margin-top: 20px; }
.gls__dl dt { display: inline; font-weight: 700; }
.gls__dl dd { display: inline; margin: 0; }

/* синий баннер «Хотите заказать…» */
.gls-order-sec { padding-top: 96px; }
.gls-order { position: relative; max-width: 1184px; margin: 0 auto; aspect-ratio: 1776 / 671; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 32px; padding: 40px 24px; text-align: center; color: #fff;
  background: var(--blue); border-radius: 20px; }
.gls-order picture { position: absolute; inset: 0; }
.gls-order__bg { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }
.gls-order__title { position: relative; max-width: 822px; font-size: clamp(30px, 5vw, 72px); font-weight: 800; line-height: 1; }
.gls-order__btn { position: relative; min-width: 150px; height: 50px; background: #fff; color: #000; font-size: 20px; }
.gls-order__btn:hover { background: #f1f1f1; }
.gls-order__s1 { top: -26px; right: 15%; width: 54px; }
.gls-order__s2 { bottom: -55px; left: 15%; width: 111px; }

/* ---------- DEI ---------- */
.incl { padding-top: 56px; color: #12121e; }
.incl h1, .incl h2 { max-width: 640px; margin: 0 auto 40px; font-size: 40px; font-weight: 700; line-height: 1; text-align: center; }
.incl h2 { max-width: 560px; }
.incl .prose + .prose { margin-top: 56px; }
.incl .prose > p + p { margin-top: 24px; }

/* ---------- опрос ---------- */
.fb-page { padding-bottom: 32px; }
.fb-hero { position: relative; max-width: 1184px; margin: 88px auto 0; aspect-ratio: 1680 / 624; display: flex; align-items: center;
  justify-content: center; padding: 40px 24px; text-align: center; color: #fff; background: var(--blue); border-radius: 24px; }
.fb-hero picture { position: absolute; inset: 0; }
.fb-hero__bg { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; }
.fb-hero__in { position: relative; display: flex; flex-direction: column; align-items: center; }
.fb-hero__tag { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 600; margin-bottom: 20px; }
.fb-hero__tag img { width: 22px; height: 22px; }
.fb-hero__title { font-size: clamp(34px, 5vw, 72px); font-weight: 800; line-height: 1.05; }
.fb-hero__hl { position: relative; display: inline-block; padding: 0 .12em; isolation: isolate; }
.fb-hero__hl img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; border-radius: 14px; }
.fb-hero__sub { font-size: 24px; font-weight: 600; margin-top: 24px; }
.fb-hero__s1 { top: -26px; right: 15%; width: 54px; }
.fb-hero__s2 { bottom: -55px; left: 15%; width: 111px; }

.fb-intro { max-width: 1160px; margin: 160px auto 0; text-align: center; }
.fb-intro h2 { font-size: 36px; font-weight: 700; text-wrap: balance; }
.fb-intro p { font-size: 30px; font-weight: 400; line-height: 1.55; margin-top: 28px; }

.fb { max-width: 713px; margin-top: 100px; }
.fb-q { display: block; border: 0; margin: 0 0 60px; padding: 0; min-width: 0; }
.fb-q__title { display: block; padding: 0; margin-bottom: 20px; font-size: 32px; font-weight: 400; line-height: 1.5; }
.fb-opt { display: flex; align-items: flex-start; gap: 12px; font-size: 20px; font-weight: 400; line-height: 1.35; cursor: pointer; }
.fb-opt + .fb-opt { margin-top: 8px; }
.fb-opt input { -webkit-appearance: none; appearance: none; flex: none; width: 20px; height: 20px; margin: 3px 0 0;
  border: 2px solid rgba(0, 0, 0, .65); border-radius: 0; background: transparent; cursor: pointer; }
.fb-opt input[type="radio"] { border-radius: 50%; }
.fb-opt input[type="checkbox"]:checked { border-color: #000;
  background: #000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.fb-opt input[type="radio"]:checked { border-color: #000; background: #000; box-shadow: inset 0 0 0 3px var(--bg); }
.fb-opt input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.fb-ta { display: block; width: 100%; min-height: 168px; padding: 14px 20px; border: 2px solid #828282; border-radius: 20px;
  background: var(--bg); color: #000; font: 400 20px/1.4 'Montserrat', Arial, sans-serif; resize: vertical; }
.fb-ta:focus { outline: none; border-color: var(--blue); }
.fb-submit { width: 177px; height: 50px; margin-top: 20px; background: #000; color: #fff; font-size: 20px; }
.fb-submit:hover { background: #828282; }
.fb-submit:disabled { opacity: .6; cursor: default; }
.fb-msg { margin-top: 16px; font-size: 18px; }
.fb-msg:empty { display: none; }
/* поля, которые появляются по ответу (как на Тильде); без :has() видны всегда */
@supports selector(:has(*)) {
  .fb-q--if { display: none; }
  .fb:has(#fb-term-3:checked) .fb-if-quality,
  .fb:has(#fb-need-1:checked, #fb-need-2:checked) .fb-if-needtext,
  .fb:has(#fb-fac-7:checked) .fb-if-factext,
  .fb:has(#fb-imp-5:checked) .fb-if-imptext { display: block; }
}

/* ---------- документ /policies ---------- */
.pol__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 8px 0 16px; }
.pol__title { font-size: 24px; font-weight: 700; }
.pol__open { height: 44px; font-size: 16px; }
.pol__open:hover { border-color: var(--ink); }
.pol__doc { display: block; width: 100%; height: calc(100vh - 180px); min-height: 520px; border: 0; border-radius: var(--r); background: #525659; }

/* ---------- 404 ---------- */
.nf { padding: 40px 0 24px; }
.nf__box { position: relative; max-width: 1184px; min-height: 440px; margin: 0 auto; display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 56px 24px; text-align: center; color: #fff; background: var(--blue); border-radius: 24px; }
.nf__box picture { position: absolute; inset: 0; }
.nf__bg { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; }
.nf__code, .nf__title, .nf__text, .nf__btns { position: relative; }
.nf__code { font-size: 140px; font-weight: 800; line-height: 1; }
.nf__title { font-size: 48px; font-weight: 800; margin-top: 8px; text-wrap: balance; }
.nf__text { max-width: 560px; margin-top: 16px; font-size: 20px; }
.nf__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 32px; }
.nf__btns .btn { height: 52px; font-size: 18px; }
.nf__btn2 { background: #fff; color: var(--ink); }
.nf__btn2:hover { background: #f1f1f1; }
.nf__s1 { top: -26px; right: 15%; width: 54px; }
.nf__s2 { bottom: -55px; left: 15%; width: 111px; }

/* ---------- планшет ---------- */
@media (max-width: 900px) {
  .fb-intro { margin-top: 112px; }
  .fb-intro p { font-size: 24px; }
  .fb-q__title { font-size: 26px; }
}

/* ---------- телефон ---------- */
@media (max-width: 640px) {
  .gls { padding-top: 8px; }
  .gls h1 { font-size: 34px; }
  .gls h2 { font-size: 21px; margin: 40px 0 20px; }
  .gls__dl > div + div { margin-top: 16px; }
  .gls-order-sec { padding-top: 64px; }
  .gls-order { max-width: 300px; aspect-ratio: 450 / 545; gap: 20px; padding: 28px 12px; }
  .gls-order__title { font-size: 30px; }
  .gls-order__btn { height: 44px; font-size: 16px; }
  .gls-order__s1 { top: -20px; right: auto; left: 44%; width: 40px; }
  .gls-order__s2 { bottom: -36px; left: 30%; width: 70px; }

  .incl { padding-top: 32px; }
  .incl h1, .incl h2 { font-size: 24px; line-height: 1.1; margin-bottom: 24px; }
  .incl .prose + .prose { margin-top: 40px; }
  .incl .prose > p + p { margin-top: 20px; }

  .fb-hero { max-width: 300px; margin-top: 48px; aspect-ratio: 1200 / 2412; padding: 24px 12px; }
  .fb-hero__tag { display: block; font-size: 13px; max-width: 200px; margin-bottom: 14px; }
  .fb-hero__tag img { display: inline-block; vertical-align: -3px; width: 14px; height: 14px; margin-right: 6px; }
  .fb-hero__title { font-size: 34px; }
  .fb-hero__hl { margin: 4px 0; }
  .fb-hero__hl img { border-radius: 10px; }
  .fb-hero__sub { font-size: 15px; max-width: 200px; margin-top: 16px; }
  .fb-hero__s1 { top: -20px; right: auto; left: 44%; width: 40px; }
  .fb-hero__s2 { bottom: -36px; left: 12%; width: 70px; }
  .fb-intro { margin-top: 96px; }
  .fb-intro h2 { font-size: 26px; }
  .fb-intro p { font-size: 18px; margin-top: 20px; }
  .fb { margin-top: 48px; }
  .fb-q { margin-bottom: 40px; }
  .fb-q__title { font-size: 20px; margin-bottom: 16px; }
  .fb-opt { font-size: 16px; }
  .fb-opt input { width: 18px; height: 18px; margin-top: 2px; }
  .fb-ta { font-size: 16px; min-height: 140px; border-radius: 16px; }
  .fb-submit { width: 100%; max-width: 320px; }

  .pol__title { font-size: 20px; }
  .pol__doc { height: calc(100vh - 220px); min-height: 460px; }

  .nf { padding-top: 24px; }
  .nf__box { min-height: 0; padding: 48px 16px; border-radius: 20px; }
  .nf__bg { border-radius: 20px; }
  .nf__code { font-size: 96px; }
  .nf__title { font-size: 28px; }
  .nf__text { font-size: 16px; }
  .nf__btns { flex-direction: column; align-items: stretch; width: 100%; max-width: 280px; }
  .nf__s1 { top: -20px; width: 40px; }
  .nf__s2 { bottom: -36px; width: 70px; }
}

/* ===== parts/services.css ===== */
/* Услуги: лента /our_services и страницы услуг (website, photo_video, storytelling, motiondesign, business-presentation). */

/* ---------- лента услуг: заголовок по центру со звёздочками ---------- */
.svc-head { position: relative; text-align: center; max-width: 560px; margin: 0 auto 64px; padding-top: 24px; }
.svc-head h1 { font-size: 48px; font-weight: 700; }
.svc-head p { font-weight: 400; max-width: 340px; margin: 12px auto 0; }
.svc-head__s1 { left: -46px; top: 0; width: 42px; }
.svc-head__s2 { right: -10px; bottom: -36px; width: 54px; }

/* карточки: картинка как на Тильде (360 × 277) */
.feed--svc { gap: 56px 40px; }
.feed--svc .feed-card img { aspect-ratio: 360 / 277; }
.feed--svc .feed-card__body { padding: 30px 30px 28px; }

/* ---------- синий баннер «Хотите заказать у нас реализацию проекта?» ---------- */
.svc-banner { position: relative; max-width: 1184px; margin: 0 auto; aspect-ratio: 1776 / 671;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px; padding: 40px; text-align: center; }
.svc-banner__bg, .svc-banner__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.svc-banner__bg img { object-fit: cover; border-radius: 20px; background: var(--blue); }
.svc-banner h2 { position: relative; color: #fff; font-size: 72px; font-weight: 800; line-height: 1; max-width: 822px; }
.svc-banner__btn { position: relative; background: #fff; color: var(--ink); font-size: 20px; text-transform: uppercase; min-width: 150px; }
.svc-banner__btn:hover { background: #eef1ff; }
.svc-banner__s1 { right: 16%; top: -22px; width: 54px; }
.svc-banner__s2 { left: 15%; bottom: -54px; width: 111px; }

/* ---------- страницы услуг ---------- */
/* шаги внутри .prose (без лишнего отступа списка) и вложенный маркированный список в шаге */
.prose ol.steps { padding-left: 0; }
.steps ul { margin: 6px 0; list-style: disc; }
.steps ul li { counter-increment: none; padding-left: 0; }
.steps ul li + li { margin-top: 0; }
.steps ul li::before { content: none; }

/* скриншоты сайтов в «Примерах успешных проектов» */
.svc-shot { width: 100%; aspect-ratio: 840 / 472; object-fit: cover; object-position: top; border-radius: 24px; box-shadow: 0 1px 4px 1px rgba(0, 0, 0, .2); margin-block: 24px 28px; }

@media (max-width: 900px) {
  .svc-banner h2 { font-size: 48px; }
  .svc-banner { gap: 24px; }
}

@media (max-width: 640px) {
  .svc-head { margin-bottom: 40px; padding-top: 8px; }
  .svc-head h1 { font-size: 34px; }
  .svc-head__s1 { left: 2px; top: -28px; width: 28px; }
  .svc-head__s2 { right: 8px; bottom: -30px; width: 40px; }
  .feed--svc { gap: 32px; }
  .feed--svc .feed-card__body { padding: 20px 20px 24px; }
  .svc-banner { aspect-ratio: 450 / 545; max-width: 450px; padding: 24px 20px; }
  .svc-banner__bg img { border-radius: 16px; }
  .svc-banner h2 { font-size: 32px; }
  .svc-banner__s1 { right: auto; left: 46%; top: -18px; width: 36px; }
  .svc-banner__s2 { left: 34%; bottom: -36px; width: 64px; }
  .svc-shot { border-radius: 16px; }
}
