:root {
  --dark: #101218;
  --white: #FAFBFC;
  --red: #E30C00;
  --blue: #336DFF;
  --muted: rgba(250, 251, 252, 0.62);
  --border: rgba(255, 255, 255, 0.08);
  --surface: #181B24;
  --c-bg: var(--dark);
  --c-surface: var(--surface);
  --c-text: var(--white);
  --c-muted: var(--muted);
  --c-accent: var(--red);
  --c-accent-hover: #c40b00;
  --c-blue: var(--blue);
  --c-border: var(--border);
  --header-h: 72px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --radius: 12px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.site-body {
  margin: 0;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
}
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 24px); }
section, .section { padding-block: clamp(40px, 6vw, 72px); }
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 9999;
  background: var(--red); color: #fff; padding: 8px 16px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }
a { color: var(--blue); }
a:hover { color: #5c8aff; }
h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.12; font-weight: 800; margin: 0 0 var(--space-2); letter-spacing: -0.02em; }
h2, .section__title { font-size: clamp(22px, 3vw, 32px); line-height: 1.2; font-weight: 800; margin: 0 0 var(--space-2); }
h3 { font-size: clamp(17px, 2vw, 20px); line-height: 1.3; font-weight: 700; margin: 0 0 var(--space-1); }
p { margin: 0 0 var(--space-2); max-width: 62ch; color: var(--muted); }
.section__lead { font-size: 1rem; color: var(--muted); max-width: 56ch; margin-bottom: var(--space-3); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 8px; border: none;
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--c-accent-hover); color: #fff; text-decoration: none; }
.btn--ghost { background: transparent; border: 1px solid var(--border); color: var(--white); }
.btn--outline { background: transparent; border: 1px solid var(--red); color: var(--white); }

/* Header */
.site-chrome-header, .site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(16, 18, 24, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: var(--header-h);
}
.site-logo { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.site-logo__img { height: 36px; width: auto; max-width: min(220px, 46vw); }
.site-header__nav { display: none; flex: 1; justify-content: center; }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 0; justify-content: center; align-items: center; }
.site-nav a, .site-nav__trigger {
  color: rgba(250, 251, 252, 0.78); text-decoration: none;
  font-size: 13px; font-weight: 500; white-space: nowrap;
}
.site-nav a:hover, .site-nav a[aria-current="page"],
.site-nav__item.is-active > .site-nav__trigger,
.site-nav__item--dropdown:hover > .site-nav__trigger { color: var(--white); }
.site-nav a[aria-current="page"] { color: var(--red); }
.site-nav__trigger {
  display: inline-flex; align-items: center; gap: 6px; cursor: default; user-select: none;
}
.site-nav__trigger::after {
  content: ""; width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor;
  opacity: .7;
}
.site-nav__item--dropdown { position: relative; }
.site-nav__submenu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  min-width: 250px; margin: 0; padding: 10px; list-style: none;
  background: #181B24; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  display: none; z-index: 80;
}
.site-nav__submenu::before {
  content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px;
}
.site-nav__item--dropdown:hover > .site-nav__submenu,
.site-nav__item--dropdown:focus-within > .site-nav__submenu { display: grid; gap: 2px; }
.site-nav__submenu a {
  display: block; padding: 10px 12px; border-radius: 10px; white-space: normal; line-height: 1.35;
}
.site-nav__submenu a:hover,
.site-nav__submenu a[aria-current="page"] { background: rgba(227,12,0,.12); color: #fff; text-decoration: none; }
.site-header__right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.site-header__phone { color: var(--white); text-decoration: none; font-weight: 700; font-size: 14px; white-space: nowrap; }
.site-header__phone:hover { color: var(--red); text-decoration: none; }
.site-header__cta {
  display: none; background: var(--red); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 13px; padding: 9px 16px; border-radius: 8px;
}
.site-header__cta:hover { background: var(--c-accent-hover); color: #fff; text-decoration: none; }
.site-burger {
  display: inline-flex; width: 40px; height: 40px; background: transparent;
  border: 1px solid var(--border); border-radius: 8px; padding: 0; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.site-burger span { display: block; width: 16px; height: 1.5px; background: var(--white); border-radius: 1px; }

.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { display: block; }
.mobile-menu__overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 200; }
.mobile-menu__panel {
  position: fixed; top: 0; right: 0; width: min(320px, 88vw); height: 100%;
  background: var(--surface); z-index: 201; padding: 20px; overflow: auto;
  display: flex; flex-direction: column;
}
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.mobile-menu__close {
  width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 8px;
  background: transparent; color: var(--white); font-size: 24px; cursor: pointer;
}
.mobile-menu__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mobile-menu__list a {
  display: block; padding: 12px 0; color: var(--white); text-decoration: none;
  font-weight: 600; font-size: 15px; border-bottom: 1px solid var(--border);
}
.mobile-menu__bottom { margin-top: auto; padding-top: 20px; display: grid; gap: 12px; }

@media (min-width: 1181px) {
  .site-header__nav { display: flex; }
  .site-header__cta--desktop { display: inline-flex; }
  .site-burger { display: none; }
}
@media (max-width: 1180px) {
  .site-header__phone { display: none; }
}

/* Hero & blocks */
.hero { padding-block: clamp(40px, 7vw, 72px); }
.hero__badge {
  display: inline-block; background: rgba(227, 12, 0, 0.14); color: #ff6b63;
  border: 1px solid rgba(227, 12, 0, 0.28); border-radius: 999px;
  padding: 5px 12px; font-size: 12px; font-weight: 600; margin-bottom: 14px;
}
.hero__grid { display: grid; gap: var(--space-4); align-items: center; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--space-3); }
.hero__visual {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
  display: grid; gap: 18px;
}
.hero__person {
  display: grid; grid-template-columns: 88px 1fr; gap: 14px; align-items: center;
}
.hero__founder-photo {
  display: block; width: 88px; height: 88px;
  object-fit: cover; object-position: center 18%;
  border-radius: 50%; background: #0d0f14;
  border: 1px solid rgba(255,255,255,.08);
}
.hero__founder-caption {
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.hero__founder-caption strong {
  color: var(--white); font-size: 18px; font-weight: 800; line-height: 1.2;
}
.hero__founder-caption span {
  color: var(--muted); font-size: 13px; line-height: 1.35;
}
.hero__metrics {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px;
}
.hero__metrics li {
  margin: 0; padding: 12px 12px 11px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.hero__metrics strong {
  font-size: 22px; font-weight: 800; line-height: 1; color: var(--white);
  letter-spacing: -0.02em;
}
.hero__metrics span {
  color: var(--muted); font-size: 12px; line-height: 1.3;
  white-space: nowrap;
}
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2); }
.stat-card, .card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--space-3);
}
.stat-card strong { display: block; font-size: clamp(24px, 3vw, 32px); line-height: 1; color: var(--white); font-weight: 800; }
.stat-card span { color: var(--muted); font-size: 13px; line-height: 1.4; }
.cards-grid { display: grid; gap: var(--space-2); grid-template-columns: 1fr; }

.page-404__inner { text-align: left; max-width: 920px; }
.page-404__code {
  font-size: clamp(64px, 12vw, 120px); font-weight: 800; line-height: 1;
  color: rgba(227,12,0,.35); margin: 0 0 8px; letter-spacing: -0.04em;
}
.page-404 .hero__actions { margin-top: var(--space-3); display: flex; flex-wrap: wrap; gap: 12px; }

.reels-carousel { position: relative; }
.reels-carousel__hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 14px;
  color: rgba(250,251,252,.55);
  font-size: 13px;
  font-weight: 600;
}
.reels-carousel__hint-text {
  display: inline-flex; align-items: center; gap: 6px;
  letter-spacing: .02em;
}
.reels-carousel__hand { opacity: .85; }
.reels-carousel__arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(250,251,252,.08); border: 1px solid rgba(250,251,252,.12);
  color: #FAFBFC; cursor: pointer; user-select: none;
}
.reels-carousel__arrow--left { animation: reels-nudge-left 1.6s ease-in-out infinite; }
.reels-carousel__arrow--right { animation: reels-nudge-right 1.6s ease-in-out infinite; }
@keyframes reels-nudge-left {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-4px); }
}
@keyframes reels-nudge-right {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}
.reels-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-3);
}
.reel-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.reel-card__open {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer;
  text-align: left; color: inherit; font: inherit; text-decoration: none;
}
.reel-card__media {
  background: #0a0b0f; aspect-ratio: 9/16; position: relative; overflow: hidden;
}
.reel-card__video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.reel-card__play {
  position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%;
  background: rgba(227,12,0,.92); box-shadow: 0 8px 24px rgba(0,0,0,.35);
  pointer-events: none; transition: transform .2s ease;
}
.reel-card__play::before {
  content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
}
.reel-card__open:hover .reel-card__play { transform: scale(1.06); }
.reel-card__placeholder {
  display: flex; align-items: center; justify-content: center; text-align: center;
  width: 100%; height: 100%; padding: 20px; font-size: 14px; font-weight: 600; color: rgba(250,251,252,.75);
}
.reel-card__body { padding: 12px 14px; }
.reel-card__body .card__meta { margin: 6px 0 0; }
.reel-card__social {
  display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600;
  color: var(--accent, #E30C00); text-decoration: none;
}
.reel-card__social:hover { text-decoration: underline; }

.reel-lightbox[hidden] { display: none !important; }
.reel-lightbox {
  position: fixed; inset: 0; z-index: 10060; display: flex;
  align-items: center; justify-content: center; padding: 20px 12px;
}
.reel-lightbox__backdrop {
  position: absolute; inset: 0; background: rgba(8,9,12,.82); backdrop-filter: blur(6px);
  border: 0; cursor: pointer;
}
.reel-lightbox__dialog {
  position: relative; z-index: 1; width: min(420px, 100%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  animation: reel-pop .22s ease;
}
@keyframes reel-pop {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to { opacity: 1; transform: none; }
}
.reel-lightbox__frame {
  width: 100%; aspect-ratio: 9/16; max-height: min(82vh, 820px);
  border-radius: 18px; overflow: hidden; background: #000;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
}
.reel-lightbox__video {
  width: 100%; height: 100%; object-fit: contain; display: block; background: #000;
}
.reel-lightbox__close {
  position: absolute; top: -6px; right: -6px; z-index: 2;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(250,251,252,.12); color: #FAFBFC; font-size: 28px; line-height: 1;
  cursor: pointer;
}
.reel-lightbox__close:hover { background: #E30C00; }
.reel-lightbox__title {
  margin: 0; color: #FAFBFC; font-size: 15px; font-weight: 600; text-align: center;
}
.reel-lightbox__social {
  color: #FAFBFC; font-size: 13px; font-weight: 600; text-decoration: underline;
}
.reel-lightbox__social[hidden] { display: none !important; }
body.reel-lightbox-open { overflow: hidden; }

@media (max-width: 768px) {
  .reels-carousel__hint { display: flex; }
  .reels-carousel {
    margin-right: calc(-1 * clamp(16px, 4vw, 24px));
    margin-left: calc(-1 * clamp(16px, 4vw, 24px));
  }
  .reels-carousel__hint { padding: 0 clamp(16px, 4vw, 24px); }
  .reels-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding: 4px clamp(16px, 4vw, 24px) 12px;
    scroll-padding-inline: clamp(16px, 4vw, 24px);
  }
  .reels-grid::-webkit-scrollbar { display: none; }
  .reel-card {
    flex: 0 0 min(68vw, 240px);
    width: min(68vw, 240px);
    scroll-snap-align: start;
  }
  .reel-card.is-playing .reel-card__play { opacity: 0; }
  .reel-card.is-playing .reel-card__video { pointer-events: auto; }
}

@media (max-width: 520px) {
  .reel-lightbox { padding: 12px 8px; align-items: flex-end; }
  .reel-lightbox__dialog { width: min(100%, 420px); }
  .reel-lightbox__frame { max-height: 78vh; border-radius: 16px 16px 0 0; }
  .reel-lightbox__close { top: 8px; right: 8px; background: rgba(0,0,0,.45); }
}

/* Cards — без синих ссылок внутри */
a.card, .card-link {
  display: flex; flex-direction: column; gap: 8px; height: 100%;
  text-decoration: none; color: inherit; transition: border-color .2s, transform .2s;
}
a.card:hover, .card-link:hover { text-decoration: none; color: inherit; border-color: rgba(227,12,0,.35); transform: translateY(-2px); }
a.card h2, a.card h3, a.card p, .card-link h2, .card-link h3, .card-link p { color: inherit; text-decoration: none; }
a.card p, .card-link p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.card__title { font-size: 17px; font-weight: 700; color: var(--white); margin: 0; line-height: 1.35; }
.case-card img, .card__img {
  border-radius: 8px; aspect-ratio: 16/10; object-fit: cover; width: 100%; margin-bottom: 8px;
  background: #0d0f14;
}
.blog-card__meta, .card__meta { color: rgba(250,251,252,.45); font-size: 12px; margin-bottom: 6px; }
.service-card__price { color: var(--red); font-weight: 800; font-size: 14px; margin-top: auto; }

.projects-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--space-3);
}
.project-card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit;
  transition: border-color .2s, transform .2s;
}
.project-card:hover {
  border-color: rgba(227,12,0,.4); transform: translateY(-2px);
  text-decoration: none; color: inherit;
}
.project-card__media { position: relative; }
.project-card__img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover; background: #0d0f14; display: block;
}
.project-card__img--empty {
  background: linear-gradient(135deg, #181B24 0%, #2a1010 100%);
}
.project-card__badges {
  position: absolute; top: 12px; left: 12px; right: 12px;
  display: flex; flex-wrap: wrap; gap: 8px; pointer-events: none;
}
.project-card__badge {
  display: inline-flex; align-items: center;
  padding: 5px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 800; line-height: 1;
  letter-spacing: .01em;
  background: rgba(16, 18, 24, .88); color: var(--white);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(6px);
}
.project-card__badge--accent {
  background: #E30C00; border-color: #E30C00; color: #fff;
}
.project-card--sale {
  border-color: rgba(227,12,0,.35);
}
.project-card__body {
  display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1;
}
.project-card__title {
  margin: 0; font-size: 18px; font-weight: 800; color: var(--white);
}
.project-card__body p {
  margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; max-width: none;
}
.project-card__link {
  margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 700; color: var(--red);
}

.founder { display: grid; gap: var(--space-4); align-items: stretch; }
.founder__photo {
  border-radius: var(--radius); width: 100%; max-width: none;
  aspect-ratio: 4/5; min-height: 420px; object-fit: cover; object-position: center top;
  background: var(--surface); border: 1px solid var(--border);
}
.founder__body { display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.founder__body .btn { align-self: flex-start; margin-top: 8px; }
.social-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--space-2);
}
.social-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); color: var(--white); text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.social-card:hover {
  border-color: rgba(227,12,0,.4); text-decoration: none; color: var(--white);
  transform: translateY(-2px);
}
.social-card__icon {
  flex: 0 0 40px; width: 40px; height: 40px; display: inline-flex;
  align-items: center; justify-content: center;
}
.social-card__icon svg { width: 28px; height: 28px; display: block; }
.social-card__meta { display: grid; gap: 2px; min-width: 0; }
.social-card__name { font-weight: 700; font-size: 15px; color: var(--white); }
.social-card__handle { font-size: 13px; color: var(--muted); }
.social-card__banned {
  display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 700;
  letter-spacing: .02em; text-transform: uppercase; color: rgba(250,251,252,.55);
}
.social-card--blocked { opacity: .72; }
.social-card--blocked:hover { opacity: 1; }

.social-icons { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.social-icons__link {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; transition: border-color .2s, transform .2s;
}
.social-icons__link:hover { border-color: rgba(227,12,0,.4); transform: translateY(-1px); }
.social-icons__icon { width: 22px; height: 22px; display: block; }
.social-icons__icon svg { width: 100%; height: 100%; display: block; }
.social-icons__link--blocked { opacity: .65; }

.page-hero { padding-block: var(--space-5) var(--space-3); border-bottom: 1px solid var(--border); }
.page-hero h1 { margin-bottom: 10px; }
.breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 0 0 14px; font-size: 13px; color: var(--muted);
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs span[aria-hidden], .breadcrumbs > span:not(:last-child) { opacity: .55; }

.cta-section__inner {
  display: grid; gap: var(--space-4); align-items: start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px); padding: var(--space-4);
}
.lead-form { display: grid; gap: 12px; max-width: 100%; }
.lead-form label > span { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--white); }
.lead-form input, .lead-form textarea, .lead-form select {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--dark); color: var(--white); font: inherit; font-size: 15px;
}
.lead-form textarea { min-height: 96px; resize: vertical; }
.lead-form .checkbox {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; line-height: 1.45; color: var(--muted); cursor: pointer;
}
.lead-form .checkbox input {
  flex: 0 0 18px; width: 18px; height: 18px; margin: 2px 0 0; cursor: pointer;
}
.lead-form .checkbox__text { display: inline; font-weight: 400; margin: 0; color: var(--muted); }
.lead-form .checkbox a { color: var(--blue); white-space: nowrap; }

.article-content { max-width: 720px; }
.article-content h2 { margin-top: var(--space-4); font-size: 22px; }
.article-content h3 { margin-top: var(--space-3); font-size: 18px; }
.article-content p, .article-content li { font-size: 15px; }
.article-content figure {
  margin: var(--space-3) 0;
}
.article-content figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0c0e14;
}
.article-content figure.article-shot--phone img {
  max-width: 360px;
  margin-inline: auto;
}
.article-content figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}
.article-content pre {
  overflow: auto; padding: var(--space-2); border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border); font-size: 13px;
}
.blog-table { width: 100%; border-collapse: collapse; margin: var(--space-3) 0; font-size: 14px; }
.blog-table th, .blog-table td { border: 1px solid var(--border); padding: 10px; text-align: left; }
.blog-table th { background: var(--surface); color: var(--white); }

.landing-modules { display: grid; gap: var(--space-2); }
.landing-module { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-3); }
.landing-module__price { font-size: 1.25rem; font-weight: 800; color: var(--red); }

/* Footer */
.site-footer { background: var(--dark); color: var(--white); padding: var(--space-5) 0 var(--space-3); margin-top: var(--space-5); border-top: 1px solid var(--border); }
.site-footer a { color: rgba(250,251,252,.82); text-decoration: none; font-size: 14px; }
.site-footer a:hover { color: var(--red); }
.site-footer__grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
.site-footer__title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(250,251,252,.45); margin-bottom: 12px; }
.site-footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer__tagline { color: var(--muted); font-size: 13px; }
.site-footer__bottom { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between; }
.site-footer__requisites p { margin: 0 0 4px; font-size: 13px; color: rgba(250,251,252,.55); max-width: none; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 12px; }

/* Float & cookie */
.float-actions { position: fixed; right: 14px; bottom: 14px; z-index: 90; display: grid; gap: 8px; }
body.has-cookie-banner .float-actions { bottom: 88px; }
.float-actions__btn {
  width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; border: none; box-shadow: var(--shadow); cursor: pointer; text-decoration: none;
}
.float-actions__btn--wa { background: #25D366; }
.float-actions__btn--tg { background: #229ED9; }
.float-actions__btn--phone { background: var(--red); }
.float-actions__btn--top { background: var(--surface); border: 1px solid var(--border); color: var(--white); }
.float-actions__btn--top:not([hidden]) { display: inline-flex; }
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  background: var(--surface); border-top: 1px solid var(--border); padding: 14px 0;
}
.cookie-banner__inner { display: flex; flex-wrap: nowrap; gap: 12px; align-items: center; justify-content: space-between; }
.cookie-banner__inner p { margin: 0; font-size: 13px; flex: 1 1 auto; min-width: 0; color: var(--muted); }
.cookie-banner__actions { display: flex; gap: 10px; flex: 0 0 auto; margin-left: auto; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .5s; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (min-width: 768px) {
  .hero__grid { grid-template-columns: 1.15fr .85fr; align-items: stretch; }
  .hero__visual { padding: 22px; align-content: start; }
  .hero__person { grid-template-columns: 96px 1fr; gap: 16px; }
  .hero__founder-photo { width: 96px; height: 96px; }
  .hero__metrics { gap: 12px; }
  .hero__metrics li { padding: 14px; }
  .hero__metrics strong { font-size: 24px; }
  .hero__metrics span { font-size: 13px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .founder { grid-template-columns: .85fr 1.15fr; }
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .cta-section__inner { grid-template-columns: 1fr 1fr; }
  .social-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 380px) {
  .hero__metrics { grid-template-columns: 1fr; }
  .hero__metrics span { white-space: normal; }
}
@media (min-width: 768px) and (max-width: 1099px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .social-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  body.site-body { font-size: 15px; }
  .site-logo__img { height: 30px; }
  .cards-grid--3 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ===== Case study page ===== */
.case-detail__metrics {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); margin-top: var(--space-3);
}
.case-hero-media { margin: 0; }
.case-hero-media img {
  width: 100%; border-radius: var(--radius); display: block; background: #0d0f14;
  aspect-ratio: 16/10; object-fit: cover;
}
.case-hero-media figcaption {
  margin-top: 10px; font-size: 13px; color: var(--muted);
}
.case-lead {
  font-size: 18px; line-height: 1.55; color: rgba(250,251,252,.88); margin: 0 0 var(--space-4);
  max-width: 820px;
}
.case-two-col {
  display: grid; gap: var(--space-3);
}
.case-list { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.case-list li {
  position: relative; padding-left: 28px; color: rgba(250,251,252,.82); line-height: 1.45;
}
.case-list--pain li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%;
  background: rgba(227,12,0,.85);
}
.case-list--check li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: #E30C00; font-weight: 700;
}
.case-list--lg li { font-size: 16px; }
.case-timeline {
  display: grid; gap: 12px;
}
.case-timeline__step {
  display: grid; gap: 6px; padding: 16px 18px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.case-timeline__date {
  color: #E30C00; font-weight: 700; font-size: 13px; letter-spacing: .02em; text-transform: uppercase;
}
.case-timeline__step p { margin: 0; color: rgba(250,251,252,.85); }
.case-next { margin-top: var(--space-3); }
.case-next__note { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.case-evidence-note {
  margin-top: var(--space-3);
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.case-gallery { display: grid; gap: var(--space-3); }
.case-gallery__item {
  margin: 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.case-gallery__item img { width: 100%; display: block; background: #0d0f14; }
.case-gallery__item figcaption {
  padding: 12px 14px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--border);
}
.case-link-grid {
  display: grid; gap: 12px; grid-template-columns: 1fr;
}
.case-link-card {
  display: flex; flex-direction: column; gap: 6px; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; color: inherit; transition: border-color .2s, transform .2s;
}
.case-link-card:hover { border-color: rgba(227,12,0,.4); transform: translateY(-2px); text-decoration: none; color: inherit; }
.case-link-card__kind { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.case-link-card strong { font-size: 17px; color: var(--white); }
.case-link-card span:last-child { font-size: 13px; color: #E30C00; font-weight: 600; }
.case-before-after {
  display: grid; gap: var(--space-3); margin: 0 0 var(--space-4);
}
.case-before-after__item {
  margin: 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.case-before-after__label {
  padding: 10px 14px; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: #E30C00; border-bottom: 1px solid var(--border);
}
.case-before-after__item img {
  width: 100%; display: block; aspect-ratio: 16/10; object-fit: cover; object-position: top center; background: #0d0f14;
}
.case-before-after__item figcaption {
  padding: 12px 14px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--border);
}
@media (min-width: 768px) {
  .case-before-after { grid-template-columns: 1fr 1fr; }
  .case-detail__metrics { grid-template-columns: repeat(4, 1fr); }
  .case-two-col { grid-template-columns: 1fr 1fr; }
  .case-timeline { grid-template-columns: repeat(2, 1fr); }
  .case-link-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .case-link-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== Device mockup case cards ===== */
.device-cases {
  display: grid; gap: var(--space-3); grid-template-columns: 1fr;
}
.device-case {
  display: flex; flex-direction: column; height: 100%;
  text-decoration: none; color: inherit;
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color .2s, transform .2s;
}
.device-case:hover {
  text-decoration: none; color: inherit;
  border-color: rgba(227,12,0,.4); transform: translateY(-3px);
}
.device-case__stage {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(227,12,0,.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 15% 90%, rgba(255,140,60,.08), transparent 50%),
    linear-gradient(165deg, #14171f 0%, #0d0f14 100%);
  padding: 22px 18px 16px;
  min-height: 220px;
  overflow: hidden;
}
.device-case__stage::before {
  content: "";
  position: absolute; inset: -20% -10%;
  background:
    radial-gradient(circle at 20% 30%, transparent 0 38%, rgba(255,140,60,.07) 39% 40%, transparent 41%),
    radial-gradient(circle at 85% 70%, transparent 0 42%, rgba(227,12,0,.06) 43% 44%, transparent 45%);
  pointer-events: none;
}
.device-case__label {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(250,251,252,.88); margin-bottom: 14px;
}
.device-case__label::before {
  content: ""; width: 18px; height: 2px; background: #E30C00; border-radius: 2px;
}
.device-case__devices {
  position: relative; z-index: 1;
  height: 168px; margin: 0 auto 14px;
  max-width: 340px;
}
.device-case__laptop {
  position: absolute; left: 0; bottom: 8px; width: 78%;
}
.device-case__laptop-screen {
  background: #1a1d26; border: 2px solid #3a3f4c; border-bottom: 0;
  border-radius: 8px 8px 0 0; overflow: hidden;
  aspect-ratio: 16 / 10; box-shadow: 0 12px 28px rgba(0,0,0,.35);
}
.device-case__laptop-screen img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center;
}
.device-case__laptop-base {
  height: 8px; background: linear-gradient(180deg, #4a5160, #2c313c);
  border-radius: 0 0 6px 6px; position: relative;
}
.device-case__laptop-base::after {
  content: ""; position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%);
  width: 42%; height: 4px; background: #3a3f4c; border-radius: 0 0 4px 4px;
}
.device-case__phone {
  position: absolute; right: 2%; bottom: 0; width: 28%;
  background: #0a0b0e; border: 2px solid #3a3f4c; border-radius: 12px;
  overflow: hidden; aspect-ratio: 9 / 19;
  box-shadow: 0 10px 24px rgba(0,0,0,.45);
}
.device-case__phone-notch {
  position: absolute; top: 5px; left: 50%; transform: translateX(-50%);
  width: 36%; height: 5px; background: #1a1d26; border-radius: 999px; z-index: 2;
}
.device-case__phone img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center;
}
.device-case__bar {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.device-case__url {
  font-size: 13px; font-weight: 600; color: rgba(250,251,252,.8);
}
.device-case__arrow {
  flex: 0 0 auto; width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: #E30C00; color: #fff;
  font-size: 15px; font-weight: 700; line-height: 1;
  transition: transform .2s, background .2s;
}
.device-case:hover .device-case__arrow { background: #c40b00; transform: translate(1px, -1px); }
.device-case__body {
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px 18px 18px; flex: 1;
  background: #FAFBFC;
}
.device-case__title {
  margin: 0; font-size: 17px; font-weight: 800; color: #12141a; line-height: 1.3;
}
.device-case__text {
  margin: 0; font-size: 13px; line-height: 1.5; color: #5a6170;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
@media (min-width: 768px) {
  .device-cases { grid-template-columns: repeat(2, 1fr); }
  .device-case__devices { height: 190px; max-width: 380px; }
  .device-case__stage { min-height: 250px; padding: 24px 20px 18px; }
}
@media (min-width: 1100px) {
  .device-cases { grid-template-columns: repeat(3, 1fr); }
  .device-case__devices { height: 176px; }
}
@media (max-width: 480px) {
  .device-case__devices { height: 150px; }
  .device-case__phone { width: 30%; }
}

/* ===== Project showcase variants ===== */
.project-showcase__badges {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end;
  max-width: 55%;
}
.project-showcase .device-case__label { padding-right: 40%; }
.project-showcase .device-case__body .project-card__link {
  margin-top: auto; padding-top: 4px; font-size: 13px; font-weight: 700; color: #E30C00;
}
.project-showcase__phones {
  position: relative; z-index: 1;
  height: 188px; margin: 0 auto 14px;
  max-width: 320px;
}
.project-showcase__phone {
  position: absolute; bottom: 0;
  width: 34%; background: #0a0b0e; border: 2px solid #3a3f4c;
  border-radius: 14px; overflow: hidden; aspect-ratio: 9 / 19;
  box-shadow: 0 10px 24px rgba(0,0,0,.45);
}
.project-showcase__phone img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center;
}
.project-showcase__phone--0 { left: 4%; z-index: 1; transform: rotate(-6deg); }
.project-showcase__phone--1 { left: 33%; z-index: 3; transform: translateY(-6px); }
.project-showcase__phone--2 { right: 4%; z-index: 2; transform: rotate(6deg); }
.project-showcase--brand .project-showcase__wb-phone img {
  object-position: center 12%;
}
.project-showcase--sale .device-case__stage {
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(227,12,0,.16), transparent 55%),
    radial-gradient(ellipse 70% 50% at 15% 90%, rgba(255,140,60,.1), transparent 50%),
    linear-gradient(165deg, #14171f 0%, #0d0f14 100%);
}
@media (min-width: 768px) {
  .project-showcase__phones { height: 210px; max-width: 360px; }
}
@media (max-width: 480px) {
  .project-showcase__phones { height: 160px; }
  .project-showcase__badges { max-width: 70%; top: 10px; right: 10px; }
  .project-showcase .device-case__label { font-size: 10px; padding-right: 36%; }
}

