/* =========================================================
   NickGolt — главная страница (десктоп: 1440 и 1920)
   Правило: все размеры кратны 4px, без дробных значений.
   Исключение: волосяные линии (border 1px).
   ========================================================= */

/* ---------- Токены ---------- */
:root {
  --bg: #EFEFEF;
  --surface: #FFFFFF;
  --surface-2: #F6F6F6;
  --ink: #0F0F0F;
  --ink-2: #3A3A3A;
  --muted: #707070;
  --line: #E4E4E4;
  --line-2: #D4D4D4;
  --dark: #141414;
  --dark-2: #1F1F1F;
  --orange: #FF6A13;
  --orange-soft: #FFE6D6;
  --orange-grad: linear-gradient(180deg, #FFA04C 0%, #FF6A13 100%);
  --lime: #C6F03C;
  --lime-grad: linear-gradient(180deg, #DEFB72 0%, #B4E428 100%);
  --sky-grad: linear-gradient(180deg, #CDE9FF 0%, #84C6FF 100%);
  --lilac-grad: linear-gradient(180deg, #EBE2FF 0%, #BCA8FF 100%);

  --font-h: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-b: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --shadow-s: 0 4px 12px rgba(0, 0, 0, .04);
  --shadow-m: 0 4px 12px rgba(0, 0, 0, .04), 0 16px 40px rgba(0, 0, 0, .06);
  --shadow-l: 0 8px 24px rgba(0, 0, 0, .06), 0 32px 64px rgba(0, 0, 0, .08);
  /* мягкая короткая тень для наведения — используется во всех карточках и кнопках */
  --shadow-hover: 0 4px 8px rgba(0, 0, 0, .03), 0 8px 24px rgba(0, 0, 0, .05);
  --shadow-orange: 0 8px 24px rgba(255, 106, 19, .32), 0 24px 56px rgba(255, 106, 19, .24);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  /* Макет 1440 */
  --cw: 1280px;
  --g2: 32px;  --c2: 624px;
  --g3: 16px;  --c3: 416px;
  --sec: 128px;

  --fs-d: 112px;  --lh-d: 112px;
  --fs-h2: 64px;  --lh-h2: 68px;
  --fs-h3: 32px;  --lh-h3: 36px;
  --fs-h4: 24px;  --lh-h4: 28px;
  --fs-lead: 20px; --lh-lead: 28px;
  --fs-b: 16px;   --lh-b: 24px;
  --fs-s: 12px;   --lh-s: 16px;
  --fs-num: 128px;
  --fs-pill: 88px;
  --pill-pt: 16px; --pill-pb: 8px;   /* текст в плашке «САЙТОВ» центрирован по букве Й */

  --pw: 368px;  --pi: 304px;          /* портрет в hero */
  --hc: 392px;  --hg: 20px;           /* карточки hero */
  --sc-h: 416px; --sm-w: 256px; --sm-h: 384px; /* услуги */
  --t: 120px;  --s: 128px;            /* плитки */
  --ci-h: 276px;                      /* кейсы */
  --bento-h: 400px;
  --pc: 544px;                        /* процесс */
  --blog-h: 280px;
  --app-h: 360px;                     /* сервисы и приложения */
  --pv-h: 560px;                      /* большое фото на внутренних страницах */
  --dev-img: 240px;                   /* фото в карточках услуг */
  --feat-h: 400px;                    /* главная статья блога */
}

@media (min-width: 1800px) {
  :root {
    --cw: 1600px;
    --c2: 784px;
    --g3: 32px;  --c3: 512px;
    --sec: 160px;

    --fs-d: 144px;  --lh-d: 144px;
    --fs-h2: 80px;  --lh-h2: 84px;
    --fs-h3: 40px;  --lh-h3: 44px;
    --fs-h4: 28px;  --lh-h4: 32px;
    --fs-lead: 24px; --lh-lead: 32px;
    --fs-num: 160px;
    --fs-pill: 112px;
    --pill-pt: 16px; --pill-pb: 8px;

    --pw: 432px; --pi: 368px;
    --hc: 496px; --hg: 24px;
    --sc-h: 480px; --sm-w: 304px; --sm-h: 448px;
    --t: 144px; --s: 152px;
    --ci-h: 348px;
    --bento-h: 480px;
    --pc: 704px;
    --blog-h: 344px;
    --app-h: 456px;
    --pv-h: 680px;
    --dev-img: 288px;
    --feat-h: 480px;
  }
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-b);
  font-size: var(--fs-b);
  line-height: var(--lh-b);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 8px; }

.container { width: var(--cw); margin: 0 auto; position: relative; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.section { padding-top: var(--sec); position: relative; }
.skip-link { position: absolute; left: 16px; top: -64px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; }
.skip-link:focus { top: 16px; }

/* ---------- Типографика ---------- */
.h2 { font-family: var(--font-h); font-weight: 600; font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: 0; }
.h3 { font-family: var(--font-h); font-weight: 600; font-size: var(--fs-h3); line-height: var(--lh-h3); }
.h4 { font-family: var(--font-h); font-weight: 600; font-size: var(--fs-h4); line-height: var(--lh-h4); }
.lead { font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: var(--fs-s); line-height: var(--lh-s); }

/* ---------- Чипы / теги ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 12px;
  border-radius: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: var(--fs-s); line-height: var(--lh-s); font-weight: 500;
  white-space: nowrap;
}
.chip--dot::before { content: ""; width: 8px; height: 8px; border-radius: 8px; background: var(--orange); }
.chip--dark { background: var(--dark-2); color: #fff; border-color: rgba(255, 255, 255, .12); }
.chip--live::before { content: ""; width: 8px; height: 8px; border-radius: 8px; background: #2BD46A; box-shadow: 0 0 0 4px rgba(43, 212, 106, .2); animation: pulse 2s infinite; }
.tag {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 28px;
  font-size: var(--fs-s); line-height: var(--lh-s); font-weight: 500; color: var(--ink-2);
}
.tags { display: flex; flex-wrap: wrap; gap: 4px; }

/* ---------- Кнопки ---------- */
.btn {
  --btn-h: 56px;
  position: relative; display: inline-flex; align-items: center; gap: 16px;
  height: var(--btn-h); padding: 0 8px 0 24px;
  border-radius: 56px;
  font-weight: 600; font-size: 16px; line-height: 24px;
  white-space: nowrap; isolation: isolate; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .4s var(--ease), color .4s var(--ease);
}
.btn__icon {
  width: 40px; height: 40px; border-radius: 40px;
  display: grid; place-items: center; flex: none;
  transition: transform .5s var(--ease), background-color .4s var(--ease);
}
.btn__icon svg { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.btn:hover .btn__icon svg { transform: rotate(45deg); }
.btn:active { transform: scale(.98); }
.btn--light { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-s); }
.btn--light .btn__icon { background: var(--ink); color: #fff; }
.btn--light:hover { box-shadow: var(--shadow-hover); }
.btn--light:hover .btn__icon { background: var(--orange); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark .btn__icon { background: var(--orange); color: #fff; }
.btn--dark:hover { background: #262626; }
.btn--orange { background: var(--orange-grad); color: #fff; box-shadow: var(--shadow-orange); }
.btn--orange .btn__icon { background: #fff; color: var(--orange); }
.btn--ghost { background: transparent; border: 1px solid var(--line-2); padding: 0 24px; }
.btn--ghost:hover { background: var(--surface); }
/* кнопка на всю ширину: текст по центру, кружок со стрелкой у правого края */
.btn--block { width: 100%; justify-content: center; padding: 0 64px; }
.btn--block .btn__icon { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
.btn--sm { --btn-h: 48px; padding: 0 20px; gap: 8px; }

.round-btn {
  height: 48px; padding: 0 20px; display: inline-flex; align-items: center; gap: 8px;
  border-radius: 48px; background: var(--surface); border: 1px solid var(--line);
  font-weight: 500; transition: background-color .3s, color .3s, transform .3s var(--ease);
}
.round-btn svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.round-btn:hover { background: var(--ink); color: #fff; }
.round-btn[data-dir="prev"]:hover svg { transform: translateX(-4px); }
.round-btn[data-dir="next"]:hover svg { transform: translateX(4px); }
.round-btn:disabled { opacity: .4; pointer-events: none; }

/* ---------- Иконки-плитки (squircle) ---------- */
.app-icon {
  width: 64px; height: 64px; border-radius: 20px;
  display: grid; place-items: center; color: #fff; flex: none;
  box-shadow: inset 0 -4px 8px rgba(0, 0, 0, .12), inset 0 4px 8px rgba(255, 255, 255, .32), 0 8px 16px rgba(0, 0, 0, .12);
}
.app-icon svg { width: 28px; height: 28px; }
.app-icon--design { background: linear-gradient(160deg, #FF5FA2 0%, #A03CFF 100%); }
.app-icon--code { background: linear-gradient(160deg, #3A3A3A 0%, #0A0A0A 100%); }
.app-icon--ads { background: linear-gradient(160deg, #FF8A3D 0%, #F3341C 100%); }
.app-icon--smm { background: linear-gradient(160deg, #57C8FF 0%, #2F6BFF 100%); }
.app-icon-wrap { padding: 8px; border-radius: 28px; background: var(--surface-2); display: inline-flex; }

/* ---------- Хром-объекты ---------- */
.chrome { position: absolute; pointer-events: none; user-select: none; z-index: 3; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .16)); }
.float-a { animation: floatA 8s ease-in-out infinite; }
.float-b { animation: floatB 10s ease-in-out infinite; }
.float-c { animation: floatC 12s ease-in-out infinite; }
@keyframes floatA { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-16px) rotate(8deg); } }
@keyframes floatB { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(12px) rotate(-12deg); } }
@keyframes floatC { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 33% { transform: translate(8px, -12px) rotate(12deg); } 66% { transform: translate(-8px, 4px) rotate(-8deg); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(43, 212, 106, .2); } 50% { box-shadow: 0 0 0 8px rgba(43, 212, 106, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   ШАПКА
   ========================================================= */
.header {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 50;
  transition: transform .5s var(--ease);
}
.header.is-hidden { transform: translateY(-96px); }
.header__bar {
  width: var(--cw); margin: 0 auto; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 8px 0 32px; border-radius: 64px;
  background: rgba(246, 246, 246, .72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .8);
  transition: box-shadow .4s var(--ease), background-color .4s var(--ease);
}
.header.is-scrolled .header__bar { box-shadow: var(--shadow-m); background: rgba(255, 255, 255, .8); }
.logo { display: inline-flex; align-items: center; font-family: var(--font-h); font-weight: 700; font-size: 20px; line-height: 24px; white-space: nowrap; }
.logo__accent { background: var(--orange-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav > a, .nav__link { position: relative; display: inline-flex; align-items: center; gap: 4px; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--ink-2); transition: color .3s; }
.nav > a::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 4px; height: 4px; margin-left: -2px; border-radius: 4px; background: var(--orange); transform: scale(0); transition: transform .4s var(--ease-spring); }
.nav > a:hover, .nav__link:hover, .nav__item.is-open .nav__link { color: var(--ink); }
.nav > a:hover::after { transform: scale(1.5); }

/* Выпадающее меню */
.nav__item { position: relative; }
.nav__link svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.nav__item.is-open .nav__link svg { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 24px); left: -24px; z-index: 60; width: 264px;
  display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: 24px;
  background: var(--surface); box-shadow: var(--shadow-l);
  opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity .25s var(--ease), transform .35s var(--ease);
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 24px; } /* мостик, чтобы меню не закрывалось при переводе курсора */
.nav__item.is-open .dropdown { opacity: 1; transform: none; pointer-events: auto; }
.dropdown__link { display: block; padding: 12px 16px; border-radius: 16px; transition: background-color .3s; }
.dropdown__link:hover, .dropdown__link:focus-visible { background: var(--surface-2); }
.dropdown__link b { display: block; font-family: var(--font-h); font-weight: 600; font-size: 16px; line-height: 20px; color: var(--ink); }
.dropdown__link small { display: block; margin-top: 4px; font-size: 12px; line-height: 16px; color: var(--muted); }
.header__cta { --btn-h: 48px; padding-left: 20px; gap: 12px; }
.header__cta .btn__icon { width: 32px; height: 32px; }

/* =========================================================
   HERO
   ========================================================= */
.hero { padding-top: 160px; position: relative; overflow: hidden; }
.hero__inner { position: relative; z-index: 2; text-align: center; }
.hero__title {
  font-family: var(--font-h); font-weight: 600;
  font-size: var(--fs-d); line-height: var(--lh-d); letter-spacing: -4px;
  display: flex; flex-direction: column; align-items: center;
}
.hero__line { display: inline-flex; align-items: center; gap: 16px; position: relative; }
.hero__line .word { display: inline-block; overflow: hidden; padding-bottom: 8px; margin-bottom: -8px; }
.hero__line .word > span { display: inline-block; transform: translateY(100%); transition: transform 1s var(--ease); }
.is-loaded .hero__line .word > span { transform: none; }
.hero__line:nth-child(2) .word > span { transition-delay: .12s; }
.hero__emoji { width: 104px; height: 104px; flex: none; }
.hero__emoji--sm { width: 80px; height: 80px; }
.hero__note {
  position: absolute; left: calc(100% + 24px); top: 32px; width: 200px; text-align: left;
  font-family: var(--font-b); font-size: var(--fs-s); line-height: var(--lh-s); letter-spacing: 0; font-weight: 500; color: var(--ink-2);
}
.hero__note sup { font-size: 12px; line-height: 12px; }
.hero__pill-wrap { position: relative; margin-top: 16px; }
.hero__pill {
  display: inline-block; padding: var(--pill-pt) 40px var(--pill-pb);
  border-radius: 28px; background: var(--orange-grad); color: #fff;
  font-size: var(--fs-pill); line-height: var(--fs-pill); letter-spacing: 0; text-transform: uppercase; font-weight: 600;
  box-shadow: var(--shadow-orange), inset 0 -8px 16px rgba(200, 60, 0, .24), inset 0 4px 8px rgba(255, 255, 255, .32);
  transform: rotate(-2deg) scale(.4); opacity: 0;
  transition: transform 1s var(--ease-spring) .35s, opacity .4s ease .35s;
}
.is-loaded .hero__pill { transform: rotate(-2deg) scale(1); opacity: 1; }
.hero__pill:hover { animation: wobble .8s var(--ease); }
@keyframes wobble { 0%, 100% { transform: rotate(-2deg); } 30% { transform: rotate(2deg) scale(1.04); } 60% { transform: rotate(-4deg); } }
.sticker {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px 8px 8px; border-radius: 32px; background: var(--surface);
  box-shadow: var(--shadow-m); transform: rotate(6deg);
  font-family: var(--font-b); letter-spacing: 0; text-align: left;
}
.sticker__icon { width: 32px; height: 32px; }
.sticker__text { font-size: 12px; line-height: 16px; color: var(--muted); font-weight: 500; }
.sticker__text b { display: block; color: var(--ink); font-weight: 700; }
.hero__sticker { right: -152px; bottom: -36px; }
.hero__sub { width: 560px; margin: 40px auto 0; font-size: var(--fs-b); line-height: var(--lh-b); color: var(--ink-2); }
.hero__actions { display: flex; justify-content: center; gap: 12px; margin-top: 32px; }

/* Сцена с портретом */
.hero-stage { position: relative; margin-top: 56px; padding-top: 168px; z-index: 2; }
.hero-panel { position: relative; background: var(--surface); border-radius: 48px; padding: 32px; box-shadow: var(--shadow-s); }
.hero-panel__top { display: flex; justify-content: space-between; align-items: flex-start; height: 264px; padding: 24px 24px 0; }
.stat { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.stat__num { font-family: var(--font-h); font-weight: 600; font-size: 96px; line-height: 96px; letter-spacing: -4px; background: linear-gradient(180deg, #0F0F0F 40%, #8A8A8A 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__divider { display: none; }
.stat__text { width: 256px; font-size: 16px; line-height: 20px; color: var(--ink-2); }
.hero-panel__right .icons-row { margin-top: 24px; }
.hero-panel__left .chip, .hero-panel__right .chip { margin-top: 24px; height: 40px; padding: 0 16px; font-size: 16px; line-height: 20px; border-radius: 40px; }
.hero-panel__right { display: flex; flex-direction: column; align-items: flex-end; }
.icons-row { display: flex; gap: 8px; padding: 8px; border-radius: 28px; background: var(--surface-2); }
.icons-row .app-icon { transition: transform .5s var(--ease-spring); }
.icons-row .app-icon:hover { transform: translateY(-8px) rotate(-8deg); }

.portrait { position: absolute; top: 0; left: 50%; width: var(--pw); height: var(--pw); margin-left: calc(var(--pw) / -2); z-index: 4; }
.portrait__ring { position: absolute; inset: 0; }
.portrait__ring circle { fill: none; }
.portrait__track { stroke: var(--line-2); stroke-width: 1; }
.portrait__arc { stroke: url(#arcGrad); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 1131; stroke-dashoffset: 1131; transition: stroke-dashoffset 2.4s var(--ease) .4s; }
.is-loaded .portrait__arc { stroke-dashoffset: 820; }
.portrait__img { position: absolute; inset: 32px; border-radius: 50%; overflow: hidden; background: #bcdcff; box-shadow: var(--shadow-l); }
.portrait__img img { width: 100%; height: 100%; object-fit: cover; }
.bubble {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 12px; border-radius: 32px; background: var(--surface); box-shadow: var(--shadow-m);
  font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap; z-index: 5;
  animation: bubble 4s var(--ease) infinite;
}
.bubble svg { width: 16px; height: 16px; color: var(--orange); }
@keyframes bubble { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.portrait .bubble { right: 8px; top: 72px; }
.portrait .bubble--2 { left: -48px; bottom: 88px; top: auto; right: auto; animation-delay: -2s; }
.portrait__chrome-1 { width: 160px; left: -64px; top: -24px; }
.portrait__chrome-2 { width: 128px; right: -40px; bottom: -8px; }

.hero-cards { display: grid; grid-template-columns: repeat(3, var(--hc)); gap: var(--hg); }
.mini-card {
  display: flex; align-items: center; gap: 16px; height: 96px; padding: 16px 16px 16px 16px;
  border-radius: 24px; border: 1px solid var(--line); background: var(--surface);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.mini-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.mini-card__thumb { width: 64px; height: 64px; border-radius: 64px; overflow: hidden; flex: none; }
.mini-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-card__body { flex: 1; min-width: 0; }
.mini-card__title { display: block; font-family: var(--font-h); font-weight: 600; font-size: 20px; line-height: 24px; }
.mini-card__meta { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12px; line-height: 16px; color: var(--muted); }
.mini-card__meta svg { width: 12px; height: 12px; }
.mini-card__icon { width: 48px; height: 48px; border-radius: 16px; background: var(--surface-2); display: grid; place-items: center; flex: none; transition: background-color .3s, color .3s; }
.mini-card__icon svg { width: 20px; height: 20px; }

/* =========================================================
   ЗАГОЛОВКИ СЕКЦИЙ
   ========================================================= */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 48px; }
.section-head__left { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center .section-head__left { align-items: center; }
.section-head .lead { max-width: 560px; }
.controls { display: flex; gap: 12px; }

/* =========================================================
   УСЛУГИ — слайдер
   ========================================================= */
.services { overflow: hidden; }
.slider { position: relative; }
.slider__track { display: flex; gap: var(--g2); padding-bottom: 32px; transition: transform .8s var(--ease); will-change: transform; }
.svc-card {
  flex: none; width: var(--c2); height: var(--sc-h);
  display: flex; gap: 32px; padding: 16px;
  border-radius: 40px; background: var(--surface);
  transition: box-shadow .5s var(--ease), transform .5s var(--ease);
}
.svc-card:hover { box-shadow: var(--shadow-hover); }
.svc-card__media {
  position: relative; flex: none; width: var(--sm-w); height: var(--sm-h);
}
.svc-card__photo { position: relative; width: 100%; height: 100%; border-radius: 28px; overflow: hidden; background: var(--surface-2); }
.svc-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.svc-card__chrome { width: 96px; right: -32px; top: -24px; }
.svc-card__body { flex: 1; display: flex; flex-direction: column; padding: 16px 16px 16px 0; min-width: 0; }
.svc-card__title { margin-top: 20px; }
.svc-card__desc { margin-top: auto; color: var(--ink-2); }
.svc-card__price { margin-top: 16px; font-family: var(--font-h); font-weight: 600; font-size: 20px; line-height: 24px; }
.svc-card__price span { color: var(--muted); font-weight: 500; font-size: 16px; }
.svc-card .btn { margin-top: 24px; align-self: flex-start; }
.slider__progress { margin-top: 0; height: 4px; border-radius: 4px; background: var(--line-2); overflow: hidden; width: 256px; }
.slider__progress span { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 4px; transition: width .8s var(--ease); }

/* =========================================================
   ЦИФРЫ + ПЛИТКИ
   ========================================================= */
.impact { text-align: center; }
.impact__num { font-family: var(--font-h); font-weight: 600; font-size: var(--fs-num); line-height: var(--fs-num); letter-spacing: -4px; }
.impact__pill-wrap { position: relative; display: inline-block; margin-top: 8px; }
.impact__pill {
  display: inline-block; padding: 8px 32px 8px; border-radius: 24px;
  background: var(--orange-grad); color: #fff; text-transform: uppercase;
  font-family: var(--font-h); font-weight: 600; font-size: 64px; line-height: 64px;
  box-shadow: var(--shadow-orange), inset 0 -8px 16px rgba(200, 60, 0, .24), inset 0 4px 8px rgba(255, 255, 255, .32);
  transform: rotate(-2deg);
}
.impact__sticker { right: -120px; bottom: -40px; }
.tiles { position: relative; margin: 96px auto 0; width: calc(var(--s) * 8 - 8px); height: calc(var(--s) * 5 - 8px); }
.tile {
  position: absolute; width: var(--t); height: var(--t); border-radius: 24px;
  left: calc(var(--s) * var(--x)); top: calc(var(--s) * var(--y));
  opacity: 0; transform: scale(.6);
  transition: opacity .6s var(--ease), transform .8s var(--ease-spring);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.tiles.is-in .tile { opacity: 1; transform: none; }
.tile--hatch {
  border: 1px dashed var(--line-2);
  background-image: repeating-linear-gradient(135deg, rgba(0, 0, 0, .05) 0 1px, transparent 1px 8px);
}
.tile--photo { overflow: hidden; box-shadow: var(--shadow-s); }
.tile--photo img { width: 100%; height: 100%; object-fit: cover; }
.tile--icon { border: 1px dashed var(--line-2); display: grid; place-items: center; background-image: repeating-linear-gradient(135deg, rgba(0, 0, 0, .05) 0 1px, transparent 1px 8px); }
.tile--icon .app-icon { width: 72px; height: 72px; border-radius: 24px; }
.tile--icon .app-icon svg { width: 32px; height: 32px; }
.tile--center {
  width: calc(var(--s) * 2 - 8px); height: calc(var(--s) * 3 - 8px);
  border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-l); z-index: 2;
}
.tile--center img { width: 100%; height: 100%; object-fit: cover; }
.tile-label {
  position: absolute; z-index: 4; height: 40px; padding: 0 16px; display: inline-flex; align-items: center;
  border-radius: 40px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-s);
  font-size: 16px; line-height: 20px; font-weight: 500; white-space: nowrap;
  left: calc(var(--s) * var(--x)); top: calc(var(--s) * var(--y));
  animation: bubble 5s var(--ease) infinite;
}
.tiles__chrome-1 { width: 112px; left: calc(var(--s) * 3 - 48px); top: calc(var(--s) * 1 - 24px); }
.tiles__chrome-2 { width: 104px; left: calc(var(--s) * 5 - 72px); top: calc(var(--s) * 4 - 96px); }

/* =========================================================
   КЕЙСЫ
   ========================================================= */
.cases-grid { display: grid; grid-template-columns: repeat(3, var(--c3)); gap: var(--g3); }
.case {
  display: flex; flex-direction: column; padding: 24px; border-radius: 32px; background: var(--surface);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.case__tags { display: flex; justify-content: space-between; gap: 8px; }
.case__title { margin-top: 16px; }
.case__desc { margin-top: 12px; color: var(--muted); min-height: 72px; }
.case__media { position: relative; margin-top: 24px; height: var(--ci-h); border-radius: 20px; overflow: hidden; background: var(--surface-2); }
.case__media img { width: 100%; height: 100%; object-fit: cover; }
.case__stats { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 8px; }
.case__stat { height: 32px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 32px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); font-size: 12px; line-height: 16px; font-weight: 600; }
.case__stat--accent { background: var(--orange); color: #fff; }
.case__arrow { position: absolute; right: 12px; top: 12px; width: 48px; height: 48px; border-radius: 48px; background: var(--surface); display: grid; place-items: center; transform: scale(0) rotate(-45deg); transition: transform .5s var(--ease-spring); }
.case__arrow svg { width: 16px; height: 16px; }
.case:hover .case__arrow { transform: scale(1) rotate(0deg); }

/* =========================================================
   БЕНТО — подход
   ========================================================= */
.bento { display: grid; grid-template-columns: repeat(3, var(--c3)); grid-auto-rows: var(--bento-h); gap: var(--g3); }
.bento__card { position: relative; border-radius: 32px; overflow: hidden; background: var(--surface); }
.bento__card--wide { grid-column: span 2; }
.bento__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .64) 100%); }
.bento__caption { position: absolute; left: 32px; bottom: 32px; width: 480px; color: #fff; }
.bento__caption p { margin-top: 12px; color: rgba(255, 255, 255, .8); }
.bento__caption-pill { position: absolute; right: 24px; top: 24px; }
.bento__card--dark { background: var(--dark); color: #fff; padding: 32px; display: flex; flex-direction: column; }
.bento__big { font-family: var(--font-h); font-weight: 600; font-size: 128px; line-height: 128px; letter-spacing: -4px; margin-top: auto; background: linear-gradient(180deg, #FFB070 0%, #FF6A13 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bento__card--dark p { margin-top: 12px; color: rgba(255, 255, 255, .72); }
.bento__bar { margin-top: 24px; display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 12px; font-size: 12px; line-height: 16px; color: rgba(255, 255, 255, .64); }
.bar { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; border-radius: 8px; background: rgba(255, 255, 255, .32); transition: width 1.6s var(--ease) .2s; }
.bar--accent span { background: var(--orange-grad); }
.is-in .bar span { width: var(--w); }
.bento__card--cloud { background: linear-gradient(180deg, #FFF3EA 0%, #FFD9BF 100%); padding: 32px; }
.cloud { position: absolute; inset: 96px 0 0 0; }
.cloud__pill {
  position: absolute; height: 48px; padding: 0 20px; display: inline-flex; align-items: center; gap: 8px;
  border-radius: 48px; background: var(--surface); box-shadow: var(--shadow-m);
  font-weight: 600; font-size: 16px; line-height: 20px; white-space: nowrap; cursor: grab;
  transform: rotate(var(--r, 0deg)); transition: transform .5s var(--ease-spring), box-shadow .3s;
  user-select: none; touch-action: none;
}
.cloud__pill:hover { transform: rotate(0deg) scale(1.08); box-shadow: var(--shadow-hover); z-index: 2; }
.cloud__pill.is-dragging { cursor: grabbing; transition: none; box-shadow: var(--shadow-hover); z-index: 3; }
.cloud__pill--orange { background: var(--orange); color: #fff; }
.cloud__pill--lime { background: var(--lime); }
.cloud__pill--dark { background: var(--ink); color: #fff; }
.cloud__hint { display: inline-flex; gap: 8px; align-items: center; color: var(--ink-2); font-size: 12px; line-height: 16px; font-weight: 500; }
.cloud__hint svg { width: 16px; height: 16px; }

/* =========================================================
   ПРОЦЕСС — тёмная секция
   ========================================================= */
.process { background: var(--dark); color: #fff; border-radius: 48px; padding: 64px; display: grid; grid-template-columns: var(--pc) var(--pc); gap: 64px; position: relative; overflow: hidden; }
.process::before { content: ""; position: absolute; width: 640px; height: 640px; right: -240px; top: -320px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 106, 19, .32) 0%, rgba(255, 106, 19, 0) 64%); pointer-events: none; }
.process__left { display: flex; flex-direction: column; position: relative; z-index: 1; }
.process__left .lead { color: rgba(255, 255, 255, .64); margin-top: 20px; }
.steps { margin-top: 40px; display: flex; flex-direction: column; }
.step {
  position: relative; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 16px;
  height: 72px; padding: 0 20px; border-radius: 20px; text-align: left; color: rgba(255, 255, 255, .56);
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
.step:hover { color: #fff; }
.step.is-active { background: rgba(255, 255, 255, .08); color: #fff; }
.step__num { font-family: var(--font-h); font-size: 16px; line-height: 20px; font-weight: 600; color: var(--orange); }
.step__name { font-family: var(--font-h); font-size: 24px; line-height: 28px; font-weight: 600; }
.step__time { font-size: 12px; line-height: 16px; color: rgba(255, 255, 255, .48); }
.step__progress { position: absolute; left: 20px; right: 20px; bottom: 0; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; opacity: 0; }
.step.is-active .step__progress { opacity: 1; }
.step__progress span { display: block; height: 100%; width: 0; background: var(--orange); }
.step.is-active .step__progress span { animation: progress 6s linear forwards; }
.process.is-paused .step.is-active .step__progress span { animation-play-state: paused; }
@keyframes progress { to { width: 100%; } }
.process__pills { margin-top: auto; padding-top: 40px; display: flex; gap: 8px; flex-wrap: wrap; }
.process__right { position: relative; z-index: 1; }
.panel { position: absolute; inset: 0; display: flex; flex-direction: column; border-radius: 32px; background: var(--dark-2); padding: 16px; opacity: 0; transform: translateY(16px) scale(.98); pointer-events: none; transition: opacity .6s var(--ease), transform .8s var(--ease); }
.panel.is-active { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.panel__media { height: 360px; border-radius: 20px; overflow: hidden; }
.panel__media img { width: 100%; height: 100%; object-fit: cover; }
.panel__body { padding: 24px 16px 16px; }
.panel__body p { margin-top: 12px; color: rgba(255, 255, 255, .72); }
.panel__list { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.panel__list li { display: flex; gap: 8px; align-items: center; font-size: 16px; line-height: 20px; color: rgba(255, 255, 255, .88); }
.panel__list svg { width: 16px; height: 16px; color: var(--lime); flex: none; }

/* =========================================================
   ДОВЕРИЕ — логотипы
   ========================================================= */
.trust__head { display: flex; justify-content: space-between; align-items: flex-end; }
.trust__num { font-family: var(--font-h); font-weight: 600; font-size: var(--fs-num); line-height: var(--fs-num); letter-spacing: -4px; }
.trust__label { font-family: var(--font-h); font-weight: 600; font-size: var(--fs-h3); line-height: var(--lh-h3); margin-top: 8px; }
.marquee { margin-top: 48px; padding: 24px 0; border-radius: 32px; background: var(--surface); overflow: hidden; position: relative; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 128px; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0)); }
.marquee::after { right: 0; background: linear-gradient(270deg, #fff, rgba(255, 255, 255, 0)); }
.marquee__track { display: flex; gap: 64px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.brand { display: inline-flex; align-items: center; gap: 12px; height: 48px; color: #8C8C8C; font-family: var(--font-h); font-weight: 700; font-size: 24px; line-height: 28px; white-space: nowrap; transition: color .3s; }
.brand:hover { color: var(--ink); }
.brand svg { width: 32px; height: 32px; }
.quote { margin: 48px auto 0; width: 720px; text-align: center; }
.quote .stars { justify-content: center; }
.quote__text { font-family: var(--font-h); font-weight: 500; font-size: var(--fs-h4); line-height: var(--lh-h4); }
.quote__author { margin-top: 24px; display: inline-flex; align-items: center; gap: 12px; text-align: left; }
.quote__author img { width: 48px; height: 48px; border-radius: 48px; object-fit: cover; }
.quote__author b { display: block; font-weight: 600; }
.quote__author span { font-size: 12px; line-height: 16px; color: var(--muted); }
.stars { display: flex; gap: 4px; color: var(--orange); margin-bottom: 20px; }
.stars svg { width: 20px; height: 20px; }

/* =========================================================
   CTA-баннер
   ========================================================= */
.cta-banner {
  position: relative; border-radius: 48px; padding: 80px 64px; overflow: hidden;
  background: var(--orange-grad); color: #fff; text-align: center;
  box-shadow: inset 0 -24px 64px rgba(200, 60, 0, .24);
}
.cta-banner::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 96px), repeating-linear-gradient(0deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 96px); pointer-events: none; }
.cta-banner__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.cta-banner .h2 { width: 880px; }
.cta-banner .lead { color: rgba(255, 255, 255, .88); margin-top: 20px; width: 560px; }
.cta-banner .btn { margin-top: 40px; }
.cta-banner .chip { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .32); color: #fff; margin-bottom: 24px; }
.cta-banner__chrome-1 { width: 200px; left: 64px; top: 40px; z-index: 1; }
.cta-banner__chrome-2 { width: 168px; right: 80px; bottom: 32px; z-index: 1; }
.cta-banner__chrome-3 { width: 120px; right: 200px; top: 24px; z-index: 1; }

/* =========================================================
   ОБО МНЕ
   ========================================================= */
.about { position: relative; }
.about__grid { position: relative; z-index: 1; display: grid; grid-template-columns: var(--c2) var(--c2); gap: var(--g2); align-items: center; }
.about__photo { position: relative; height: 720px; border-radius: 48px; overflow: visible; }
.about__photo-inner { position: absolute; inset: 0; border-radius: 48px; overflow: hidden; background: #E6E2DD; }
.about__photo-inner img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.tool {
  position: absolute; z-index: 3; height: 48px; padding: 0 16px 0 8px; display: inline-flex; align-items: center; gap: 8px;
  border-radius: 48px; background: var(--surface); box-shadow: var(--shadow-m); font-weight: 600; white-space: nowrap;
  animation: bubble 6s var(--ease) infinite;
}
.tool i { width: 32px; height: 32px; border-radius: 32px; display: grid; place-items: center; color: #fff; font-style: normal; font-size: 12px; line-height: 16px; font-weight: 700; }
.about__text .h2 { margin-top: 0; }
.about__text .lead { margin-top: 24px; }
.about__text p + p { margin-top: 16px; }
.facts { margin-top: 40px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.fact { padding: 24px; border-radius: 24px; background: var(--surface); }
.fact__num { font-family: var(--font-h); font-weight: 600; font-size: 48px; line-height: 52px; letter-spacing: 0; }
.fact__label { margin-top: 4px; color: var(--muted); }
.about__actions { margin-top: 32px; display: flex; gap: 12px; }

/* =========================================================
   ЦЕНЫ
   ========================================================= */
.switch { display: inline-flex; padding: 4px; border-radius: 48px; background: var(--surface); position: relative; box-shadow: inset 0 0 0 1px var(--line); }
.switch button { position: relative; z-index: 1; height: 40px; width: 176px; padding: 0; border-radius: 40px; font-weight: 600; color: var(--muted); transition: color .4s var(--ease); }
.switch button.is-active { color: #fff; }
.switch__thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 40px; background: var(--ink); transition: transform .5s var(--ease), width .5s var(--ease); }
.price-group { display: none; grid-template-columns: repeat(3, var(--c3)); gap: var(--g3); }
.price-group.is-active { display: grid; animation: fadeUp .6s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.price {
  position: relative; display: flex; flex-direction: column; padding: 32px; border-radius: 32px; background: var(--surface);
  border: 2px solid transparent; transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.price:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.price--featured { border-color: var(--orange); }
.price__badge { position: absolute; right: 24px; top: 24px; }
.price__badge.chip { background: var(--orange); color: #fff; border-color: var(--orange); }
.price__name { color: var(--muted); font-weight: 500; font-size: 16px; line-height: 24px; }
.price__value { margin-top: 16px; font-family: var(--font-h); font-weight: 600; font-size: 48px; line-height: 52px; }
.price__term { margin-top: 8px; color: var(--muted); }
.price__divider { height: 1px; background: var(--line); margin: 24px 0; }
.price__list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.price__list li { display: flex; gap: 12px; align-items: flex-start; }
.price__list svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--orange); }
.price .btn { margin-top: auto; }
.pricing__note { margin-top: 32px; text-align: center; color: var(--muted); }

/* =========================================================
   СЕРВИСЫ И ПРИЛОЖЕНИЯ
   ========================================================= */
.apps-grid { display: grid; grid-template-columns: repeat(2, var(--c2)); gap: var(--g2); }
.app-card {
  display: flex; flex-direction: column; padding: 16px; border-radius: 40px; background: var(--surface);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.app-card__media { position: relative; height: var(--app-h); border-radius: 28px; overflow: hidden; background: var(--surface-2); }
.app-card__media img { width: 100%; height: 100%; object-fit: cover; }
.app-card__chip { position: absolute; left: 16px; top: 16px; border-color: transparent; }
.app-card__body { display: flex; flex-direction: column; flex: 1; padding: 24px 16px 16px; }
.app-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.app-card__arrow { width: 56px; height: 56px; border-radius: 56px; flex: none; display: grid; place-items: center; background: var(--ink); color: #fff; transition: background-color .4s var(--ease); }
.app-card__arrow svg { width: 20px; height: 20px; transition: transform .5s var(--ease); }
.app-card:hover .app-card__arrow { background: var(--orange); }
.app-card:hover .app-card__arrow svg { transform: rotate(45deg); }
.app-card__text { margin-top: 12px; max-width: 480px; color: var(--ink-2); }
.app-card__list { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 4px; }
/* как .tag в кейсах и услугах */
.app-card__list li { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 28px; font-size: var(--fs-s); line-height: var(--lh-s); font-weight: 500; color: var(--ink-2); }

/* =========================================================
   ОТЗЫВЫ
   ========================================================= */
.reviews { display: grid; grid-template-columns: repeat(3, var(--c3)); gap: var(--g3); align-items: start; }
.reviews__col { display: flex; flex-direction: column; gap: var(--g3); }
.review { padding: 32px; border-radius: 32px; background: var(--surface); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.review .stars { margin-bottom: 16px; }
.review .stars svg { width: 16px; height: 16px; }
.review__text { color: var(--ink-2); }
.review__author { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.review__author img { width: 48px; height: 48px; border-radius: 48px; object-fit: cover; }
.review__author b { display: block; font-weight: 600; }
.review__author span { font-size: 12px; line-height: 16px; color: var(--muted); }
.review--accent { background: var(--dark); color: #fff; }
.review--accent .review__text { color: rgba(255, 255, 255, .8); }
.review--accent .review__author span { color: rgba(255, 255, 255, .56); }
.review__metric { font-family: var(--font-h); font-weight: 600; font-size: 64px; line-height: 64px; letter-spacing: -4px; color: var(--orange); margin-bottom: 16px; }

/* =========================================================
   БЛОГ
   ========================================================= */
.blog-grid { display: grid; grid-template-columns: repeat(3, var(--c3)); gap: var(--g3); }
.post { display: flex; flex-direction: column; border-radius: 32px; background: var(--surface); padding: 12px; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.post__media { position: relative; height: var(--blog-h); border-radius: 24px; overflow: hidden; }
.post__media img { width: 100%; height: 100%; object-fit: cover; }
.post__media .chip { position: absolute; left: 12px; top: 12px; }
.post__body { padding: 20px 12px 12px; display: flex; flex-direction: column; flex: 1; }
.post__date { font-size: 12px; line-height: 16px; color: var(--muted); }
.post__title { margin-top: 8px; font-family: var(--font-h); font-weight: 600; font-size: 24px; line-height: 28px; }
.post__more { margin-top: 24px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.post__more svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.post:hover .post__more svg { transform: translateX(4px) rotate(45deg); }

/* =========================================================
   FAQ
   ========================================================= */
.faq { display: grid; grid-template-columns: var(--c3) calc(var(--c3) * 2 + var(--g3)); gap: var(--g3); align-items: start; }
.faq__left { position: sticky; top: 112px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.faq__list { display: flex; flex-direction: column; gap: 8px; }
.qa { border-radius: 24px; background: var(--surface); overflow: hidden; transition: box-shadow .4s var(--ease); }
.qa[open] { box-shadow: var(--shadow-hover); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 24px 24px 32px; font-family: var(--font-h); font-weight: 600; font-size: 20px; line-height: 28px; }
.qa summary::-webkit-details-marker { display: none; }
.qa__icon { width: 40px; height: 40px; border-radius: 40px; background: var(--surface-2); display: grid; place-items: center; flex: none; transition: transform .5s var(--ease), background-color .3s, color .3s; }
.qa__icon svg { width: 16px; height: 16px; }
.qa[open] .qa__icon { transform: rotate(45deg); background: var(--orange); color: #fff; }
.qa__a { padding: 0 96px 28px 32px; color: var(--ink-2); }

/* =========================================================
   КОНТАКТ / ФОРМА
   ========================================================= */
.contact { display: grid; grid-template-columns: calc(var(--c3) * 2 + var(--g3)) var(--c3); gap: var(--g3); }
.contact__card { position: relative; background: var(--dark); color: #fff; border-radius: 48px; padding: 56px; overflow: hidden; }
.contact__card::before { content: ""; position: absolute; width: 560px; height: 560px; left: -200px; bottom: -320px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 106, 19, .32) 0%, rgba(255, 106, 19, 0) 64%); pointer-events: none; }
.contact__card .lead { color: rgba(255, 255, 255, .64); margin-top: 16px; }
.form { position: relative; margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field__label { font-size: 12px; line-height: 16px; color: rgba(255, 255, 255, .56); font-weight: 500; }
.input {
  height: 56px; padding: 0 20px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04); color: #fff; outline: none;
  transition: border-color .3s, background-color .3s;
}
textarea.input { height: 112px; padding: 16px 20px; resize: none; }
.input::placeholder { color: rgba(255, 255, 255, .32); }
.input:focus { border-color: var(--orange); background: rgba(255, 255, 255, .08); }
.input.is-error { border-color: #FF4D4D; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; margin: 0; }
legend { padding: 0; }
.choice span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 40px; border: 1px solid rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .8); font-weight: 500; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease-spring); }
.choice span:hover { border-color: rgba(255, 255, 255, .4); }
.choice input:checked + span { background: #fff; color: var(--ink); border-color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 4px; }
.form__bottom { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 8px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 12px; line-height: 16px; color: rgba(255, 255, 255, .56); max-width: 360px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 0; accent-color: var(--orange); flex: none; }
.consent a { text-decoration: underline; }
.form__success { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--dark); opacity: 0; pointer-events: none; transform: scale(.96); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.form__success.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.form__success-icon { width: 80px; height: 80px; border-radius: 80px; background: var(--lime); color: var(--ink); display: grid; place-items: center; margin-bottom: 24px; }
.form__success-icon svg { width: 32px; height: 32px; }
.form__success p { margin-top: 12px; color: rgba(255, 255, 255, .64); }
.contact__side { position: relative; border-radius: 48px; overflow: hidden; min-height: 640px; }
.contact__side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact__side-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, .64) 100%); }
.contact__links { position: absolute; left: 24px; right: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 8px; }
.contact-link { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 8px 0 20px; border-radius: 20px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); font-weight: 600; transition: background-color .3s, transform .4s var(--ease); }
.contact-link small { display: block; font-size: 12px; line-height: 16px; color: var(--muted); font-weight: 500; }
.contact-link:hover { background: #fff; transform: translateX(4px); }
.contact-link .btn__icon { background: var(--ink); color: #fff; }

/* =========================================================
   ПОДВАЛ
   ========================================================= */
.footer { margin-top: var(--sec); padding-bottom: 24px; }
.footer__card { background: var(--surface); border-radius: 48px; padding: 56px 56px 32px; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 64px; }
.footer__tagline { font-family: var(--font-h); font-weight: 600; font-size: var(--fs-h2); line-height: var(--lh-h2); text-align: right; }
.footer__tagline span { color: var(--orange); }
.footer__cols { margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.footer__col h3 { font-size: 12px; line-height: 16px; text-transform: uppercase; color: var(--muted); font-weight: 600; letter-spacing: 0; margin-bottom: 16px; }
.footer__col li + li { margin-top: 8px; }
.footer__col a { transition: color .3s; }
.footer__col a:hover { color: var(--orange); }
.socials { display: flex; gap: 8px; margin-top: 24px; }
.social { width: 48px; height: 48px; border-radius: 48px; display: grid; place-items: center; background: var(--surface-2); transition: background-color .3s, color .3s, transform .4s var(--ease-spring); }
.social svg { width: 20px; height: 20px; }
.social:hover { background: var(--ink); color: #fff; transform: translateY(-4px); }
.footer__bottom { margin-top: 48px; display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; line-height: 16px; }
.footer__bottom a:hover { color: var(--ink); }
.footer__big { margin-top: 24px; font-family: var(--font-h); font-weight: 700; font-size: 188px; line-height: 188px; letter-spacing: -8px; text-align: center; white-space: nowrap; color: var(--ink); user-select: none; }
@media (min-width: 1800px) { .footer__big { font-size: 232px; line-height: 232px; } }

/* =========================================================
   ВНУТРЕННИЕ СТРАНИЦЫ (Разработка и др.)
   ========================================================= */
.nav__item.is-current .nav__link { color: var(--ink); }
.dropdown__link[aria-current="page"] b { color: var(--orange); }

.nav > a.is-current { color: var(--ink); }

/* Фильтр кейсов */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 12px 0 20px; border-radius: 48px; background: var(--surface); font-weight: 600; font-size: 16px; line-height: 20px; color: var(--ink-2); transition: background-color .3s, color .3s; }
.filter:hover { color: var(--ink); }
.filter__count { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 28px; background: var(--surface-2); font-size: 12px; line-height: 16px; color: var(--muted); transition: background-color .3s, color .3s; }
.filter.is-active { background: var(--ink); color: #fff; }
.filter.is-active .filter__count { background: rgba(255, 255, 255, .16); color: #fff; }
[data-cat].is-hidden { display: none; }
[data-cat].is-shown { animation: fadeUp .5s var(--ease); }

/* Блог: главная статья и анонсы */
.post-feature { display: grid; grid-template-columns: var(--c2) 1fr; gap: 32px; margin-bottom: var(--g3); padding: 16px; border-radius: 40px; background: var(--surface); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.post-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.post-feature__media { position: relative; height: var(--feat-h); border-radius: 28px; overflow: hidden; background: var(--surface-2); }
.post-feature__media img { width: 100%; height: 100%; object-fit: cover; }
.post-feature__media .chip { position: absolute; left: 16px; top: 16px; }
.post-feature__body { display: flex; flex-direction: column; align-items: flex-start; padding: 24px 24px 16px 0; }
.post-feature__title { margin-top: 12px; }
.post-feature__text { margin-top: 16px; color: var(--ink-2); }
.post-feature__btn { margin-top: auto; }
.post__excerpt { margin-top: 8px; color: var(--muted); }

/* Контакты: способы связи и шаги */
.contact-cards, .next-steps { display: grid; grid-template-columns: repeat(3, var(--c3)); gap: var(--g3); }
.contact-card { display: flex; flex-direction: column; align-items: flex-start; padding: 32px; border-radius: 32px; background: var(--surface); }
.contact-card__icon { width: 56px; height: 56px; border-radius: 56px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink); }
.contact-card__icon svg { width: 24px; height: 24px; }
.contact-card__label { margin-top: 24px; font-size: 12px; line-height: 16px; font-weight: 600; text-transform: uppercase; color: var(--muted); }
.contact-card__value { margin-top: 8px; font-family: var(--font-h); font-weight: 600; font-size: 24px; line-height: 28px; transition: color .3s; }
a.contact-card__value:hover { color: var(--orange); }
.contact-card__text { margin-top: 12px; margin-bottom: 32px; color: var(--muted); }
.contact-card__btn { margin-top: auto; }
.contact-card--dark { background: var(--dark); color: #fff; }
.contact-card--dark .contact-card__icon { background: rgba(255, 255, 255, .08); color: #fff; }
.contact-card--dark .contact-card__label { color: rgba(255, 255, 255, .56); }
.contact-card--dark .contact-card__text { color: rgba(255, 255, 255, .64); }
.next-step { padding: 32px; border-radius: 32px; background: var(--surface); }
.next-step__num { display: block; font-family: var(--font-h); font-weight: 600; font-size: 48px; line-height: 52px; background: var(--orange-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.next-step .h4 { margin-top: 24px; }
.next-step__text { margin-top: 8px; color: var(--muted); }

/* Хлебные крошки */
.crumbs { display: flex; justify-content: center; align-items: center; gap: 8px; margin-bottom: 32px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--muted); }
.crumbs a { color: var(--ink-2); transition: color .3s; }
.crumbs a:hover { color: var(--orange); }
.crumbs [aria-current] { color: var(--ink); }

/* Большое фото под заголовком */
.page-visual { position: relative; margin-top: 64px; height: var(--pv-h); }
.page-visual__img { position: absolute; inset: 0; border-radius: 48px; overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow-s); }
.page-visual__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.page-visual__chrome-1 { width: 144px; right: -40px; top: -56px; }
.page-visual__chrome-2 { width: 120px; left: -40px; top: 64px; }

/* Карточки услуг: сетка 6 колонок (span 2 = треть, span 3 = половина) */
.dev-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--g3); }
.dev-card--span2 { grid-column: span 2; }
.dev-card--span3 { grid-column: span 3; }
.dev-card { display: flex; flex-direction: column; padding: 12px; border-radius: 32px; background: var(--surface); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.dev-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.dev-card__media { height: var(--dev-img); border-radius: 24px; overflow: hidden; background: var(--surface-2); }
.dev-card__media img { width: 100%; height: 100%; object-fit: cover; }
.dev-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 12px 12px; }
.dev-card__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; }
.dev-card__arrow { width: 40px; height: 40px; border-radius: 40px; flex: none; display: grid; place-items: center; background: var(--ink); color: #fff; transition: background-color .4s var(--ease); }
.dev-card__arrow svg { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.dev-card:hover .dev-card__arrow { background: var(--orange); }
.dev-card:hover .dev-card__arrow svg { transform: rotate(45deg); }
.dev-card__text { margin-top: 8px; color: var(--muted); }
.dev-card__meta { margin-top: auto; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dev-card__price { font-family: var(--font-h); font-weight: 600; font-size: 20px; line-height: 24px; }
.dev-card__price span { color: var(--muted); font-weight: 500; font-size: 16px; }
.dev-card__term { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; line-height: 16px; color: var(--muted); white-space: nowrap; }
.dev-card__term svg { width: 12px; height: 12px; }

/* Код или конструктор */
.compare { display: grid; grid-template-columns: repeat(2, var(--c2)); gap: var(--g2); }
.compare-card { display: flex; flex-direction: column; align-items: flex-start; padding: 40px; border-radius: 40px; background: var(--surface); }
.compare-card .h3 { margin-top: 20px; }
.compare-card__text { margin-top: 12px; max-width: 480px; color: var(--ink-2); }
.compare-card__list { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.compare-card__list li { display: flex; gap: 12px; align-items: flex-start; }
.compare-card__list svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--orange); }
.compare-card__fit { margin-top: auto; padding-top: 32px; font-size: 12px; line-height: 16px; color: var(--muted); }
.compare-card--dark { background: var(--dark); color: #fff; }
.compare-card--dark .compare-card__text { color: rgba(255, 255, 255, .72); }
.compare-card--dark .compare-card__list svg { color: var(--lime); }
.compare-card--dark .compare-card__fit { color: rgba(255, 255, 255, .56); }


/* =========================================================
   СТАТЬЯ БЛОГА
   ========================================================= */
.read-progress { position: fixed; left: 0; right: 0; top: 0; z-index: 70; height: 4px; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--orange-grad); transform: scaleX(0); transform-origin: left; }
.crumbs--left { justify-content: flex-start; }
.article-head { padding-top: 160px; }
.article-head > * { max-width: 960px; }
.article-head__meta { display: flex; align-items: center; gap: 12px; }
.article-head__cat { font-size: 12px; line-height: 16px; font-weight: 600; text-transform: uppercase; color: var(--orange); }
.article-head__info { font-size: 12px; line-height: 16px; color: var(--muted); }
.article-head__title { margin-top: 16px; font-family: var(--font-h); font-weight: 600; font-size: var(--fs-h2); line-height: var(--lh-h2); }
.article-head__lead { margin-top: 24px; font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--ink-2); }
.article-head__author { margin-top: 32px; display: flex; align-items: center; gap: 12px; }
.article-head__author img { width: 48px; height: 48px; border-radius: 48px; object-fit: cover; }
.article-head__author b { display: block; font-weight: 600; }
.article-head__author span span { font-size: 12px; line-height: 16px; color: var(--muted); }
.article-cover { margin-top: 48px; }
.article-layout { display: grid; grid-template-columns: var(--c3) minmax(0, 1fr); gap: var(--g3); align-items: start; margin-top: 64px; }

/* Содержание */
.toc { position: sticky; top: 112px; padding: 24px; border-radius: 24px; background: var(--surface); }
.toc__title { margin-bottom: 12px; font-size: 12px; line-height: 16px; font-weight: 600; text-transform: uppercase; color: var(--muted); }
.toc__list { counter-reset: toc; display: flex; flex-direction: column; gap: 4px; }
.toc__list a { display: flex; gap: 12px; padding: 8px 12px; border-radius: 12px; font-size: 16px; line-height: 20px; color: var(--ink-2); transition: background-color .3s, color .3s; }
.toc__list a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); flex: none; font-size: 12px; line-height: 20px; font-weight: 600; color: var(--muted); transition: color .3s; }
.toc__list a:hover { background: var(--surface-2); color: var(--ink); }
.toc__list a.is-active { background: var(--surface-2); color: var(--ink); }
.toc__list a.is-active::before { color: var(--orange); }

/* Текст статьи */
.article-main { min-width: 0; max-width: 800px; }   /* комфортная длина строки для чтения */
.prose { font-size: 20px; line-height: 32px; color: var(--ink-2); }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 56px 0 16px; font-family: var(--font-h); font-weight: 600; font-size: 32px; line-height: 36px; color: var(--ink); scroll-margin-top: 112px; }
.prose h3 { margin: 32px 0 8px; font-family: var(--font-h); font-weight: 600; font-size: 24px; line-height: 28px; color: var(--ink); }
.prose p { margin: 16px 0; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose a { color: var(--orange); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.prose ul, .prose ol { margin: 16px 0; display: flex; flex-direction: column; gap: 12px; }
.prose li { position: relative; padding-left: 36px; }
.prose ul li::before { content: ""; position: absolute; left: 8px; top: 12px; width: 8px; height: 8px; border-radius: 8px; background: var(--orange); }
.prose ol { counter-reset: li; }
.prose ol li { counter-increment: li; }
.prose ol li::before { content: counter(li); position: absolute; left: 0; top: 4px; width: 24px; height: 24px; border-radius: 24px; background: var(--ink); color: #fff; text-align: center; font-size: 12px; line-height: 24px; font-weight: 600; }
.prose blockquote { margin: 32px 0; padding: 24px 32px; border-radius: 24px; background: var(--orange-soft); font-family: var(--font-h); font-weight: 600; font-size: 24px; line-height: 32px; color: var(--ink); }
.prose figure { margin: 40px 0; }
.prose figure img { width: 100%; height: auto; border-radius: 24px; }
.prose figcaption { margin-top: 12px; font-size: 12px; line-height: 16px; color: var(--muted); }
.prose__table { margin: 24px 0; border-radius: 24px; overflow-x: auto; background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 24px; }
.prose th, .prose td { padding: 16px 20px; text-align: left; }
.prose th { font-size: 12px; line-height: 16px; font-weight: 600; text-transform: uppercase; color: var(--muted); }
.prose td { border-top: 1px solid var(--line); color: var(--ink); }
.prose td:last-child { font-weight: 600; white-space: nowrap; }
.prose .prose__note { font-size: 16px; line-height: 24px; color: var(--muted); }

/* Призыв внутри статьи и «Поделиться» */
.article-cta { margin-top: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px; border-radius: 32px; background: var(--dark); color: #fff; }
.article-cta__title { font-family: var(--font-h); font-weight: 600; font-size: 24px; line-height: 28px; }
.article-cta__text { margin-top: 8px; color: rgba(255, 255, 255, .64); }
.article-share { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.article-share__label { font-weight: 600; }
.article-share__btns { display: flex; align-items: center; gap: 8px; }
.article-share__copied { font-size: 12px; line-height: 16px; color: var(--muted); }

/* =========================================================
   СТРАНИЦА КЕЙСА
   ========================================================= */
.results { display: grid; grid-template-columns: repeat(3, var(--c3)); gap: var(--g3); margin-top: var(--g3); }
.result { display: flex; flex-direction: column; gap: 8px; padding: 32px; border-radius: 32px; background: var(--surface); }
.result__num { font-family: var(--font-h); font-weight: 600; font-size: 64px; line-height: 64px; background: var(--orange-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.result__text { color: var(--muted); }
.case-facts { position: sticky; top: 112px; padding: 24px; border-radius: 24px; background: var(--surface); }
.case-facts dl { margin: 0 0 24px; }
.case-facts__row { padding: 12px 0; border-top: 1px solid var(--line); }
.case-facts__row:first-child { border-top: 0; padding-top: 0; }
.case-facts dt { font-size: 12px; line-height: 16px; color: var(--muted); }
.case-facts dd { margin: 4px 0 0; font-weight: 600; }
.prose .gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 40px 0; }
.prose .gallery figure { margin: 0; }
.case-review { margin: 48px 0 0; padding: 40px; border-radius: 32px; background: var(--surface); }
.case-review .stars { margin-bottom: 20px; }
.case-review__text { font-family: var(--font-h); font-weight: 600; font-size: 24px; line-height: 32px; }
.case-review__author { margin-top: 24px; display: flex; align-items: center; gap: 12px; }
.case-review__author img { width: 48px; height: 48px; border-radius: 48px; object-fit: cover; }
.case-review__author b { display: block; font-weight: 600; }
.case-review__author span span { font-size: 12px; line-height: 16px; color: var(--muted); }

/* ---------- Кнопка «наверх» ---------- */
.to-top { position: fixed; right: 32px; bottom: 32px; z-index: 40; width: 56px; height: 56px; border-radius: 56px; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-m); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .4s, transform .5s var(--ease); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; transform: rotate(-45deg); }
.to-top:hover { background: var(--orange); }

/* ---------- Появление при скролле ---------- */
[data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal="scale"].is-in { transform: none; }

/* ---------- Снижение анимаций ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  [data-reveal], .tile { opacity: 1 !important; transform: none !important; }
}
