/* =============================================================
   WEBPRIDE — светлая бело-голубая тема (стиль traffic-masters)
   Чистый минимализм: белый фон, голубые акценты, мягкие тени,
   скруглённые карточки, крупная типографика Manrope.
   ============================================================= */

/* Локальные шрифты вместо Google Fonts: обращение к fonts.gstatic.com
   раскрывало бы IP посетителя серверам в США (трансграничная передача). */
@import url("fonts.css");

/* ---------- Токены ---------- */
:root {
  --blue: #1f6bff;
  --blue-600: #1657d6;
  --blue-700: #114bc0;
  --blue-050: #eef4ff;
  --blue-100: #e0ebff;
  --sky: #4d9bff;

  --navy: #0f2148;
  --ink: #0f2148;
  --text: #3a4a68;
  --muted: #6b7a99;

  --bg: #ffffff;
  --soft: #f3f8ff;
  --soft-2: #eaf2ff;
  --line: #e4ecf7;

  --radius: 20px;
  --radius-sm: 14px;
  --radius-lg: 28px;

  --shadow-sm: 0 6px 18px rgba(22, 74, 168, 0.07);
  --shadow: 0 18px 44px rgba(22, 74, 168, 0.12);
  --shadow-lg: 0 30px 70px rgba(22, 74, 168, 0.16);

  --container: 1200px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { color: var(--navy); margin: 0 0 0.5em; line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

.section { padding-block: clamp(56px, 8vw, 104px); }
.section-soft { background: var(--soft); }
.section-tight { padding-block: clamp(40px, 5vw, 64px); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-weight: 700; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 12px 26px rgba(31, 107, 255, 0.32); }
.btn-primary:hover { background: var(--blue-600); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(31, 107, 255, 0.4); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--blue-700); box-shadow: 0 12px 26px rgba(9, 30, 66, 0.18); }
.btn-white:hover { background: #eef4ff; color: var(--blue-700); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(9, 30, 66, 0.24); }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-050);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 18px;
}

.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 76px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.logo-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--blue), var(--sky)); color: #fff;
  box-shadow: 0 8px 18px rgba(31, 107, 255, 0.35);
}
.logo-mark svg { width: 22px; height: 22px; }
.logo-word { font-size: 1.35rem; letter-spacing: -0.02em; color: var(--navy); }
.logo-word b { color: var(--blue); font-weight: 800; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 9px 15px; border-radius: 10px;
  font-weight: 600; font-size: 0.98rem; color: var(--text);
  transition: color 0.15s ease, background 0.15s ease;
}
.main-nav a:hover { color: var(--blue); background: var(--blue-050); }
.main-nav a.is-active { color: var(--blue); }

.header-socials { display: flex; gap: 8px; }
.header-cta { display: inline-flex; }
.social-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  background: var(--soft); color: var(--blue); transition: all 0.16s ease;
}
.social-btn svg { width: 19px; height: 19px; }
.social-btn:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }

.burger { display: none; flex-direction: column; gap: 5px; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.burger span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: 0.25s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Мобильное меню */
.mobile-menu {
  position: fixed; inset: 76px 0 auto 0; z-index: 99;
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 20px 24px 28px; transform: translateY(-120%); transition: transform 0.3s ease;
  box-shadow: var(--shadow);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 4px; }
.mobile-menu a { display: block; padding: 12px 14px; border-radius: 10px; font-weight: 600; color: var(--navy); }
.mobile-menu a:hover { background: var(--blue-050); color: var(--blue); }
.mobile-menu .btn { width: 100%; }
.mobile-socials { display: flex; gap: 10px; margin-top: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 88px); background: linear-gradient(180deg, #f4f9ff 0%, #ffffff 100%); }
.hero::before {
  content: ""; position: absolute; top: -180px; right: -160px; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(31, 107, 255, 0.18), transparent 68%); z-index: 0;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-text { max-width: 620px; }
.hero-text h1 { color: var(--navy); }
.hero-text h1 .accent { color: var(--blue); }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero-metrics { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-metric { flex: 1 1 150px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.hero-metric b { display: block; font-size: 2rem; color: var(--blue); font-weight: 800; letter-spacing: -0.02em; }
.hero-metric span { font-size: 0.94rem; color: var(--muted); }

/* Hero-иллюстрация: фигура специалиста и кольцо панелей с услугами.
   Сцена свёрстана в фиксированных px (680×720) и целиком масштабируется
   через --hero-scale — так пропорции кольца не разъезжаются на узких экранах. */
.hero-anim {
  --hero-scale: 1;
  --ring-radius: 232px;   /* читается скриптом, задаёт ширину кольца */
  position: relative; width: 100%;
  height: calc(780px * var(--hero-scale));
}
.hero-stage {
  position: absolute; top: 0; left: 50%;
  width: 680px; height: 780px;
  transform: translateX(-50%) scale(var(--hero-scale));
  transform-origin: top center;
  perspective: 1100px;
}
.hero-halo {
  position: absolute; left: 50%; top: 96px;
  width: 560px; height: 560px; margin-left: -280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 107, 255, 0.16), transparent 66%);
  z-index: 0;
}
.hero-figure, .hero-hands {
  position: absolute; left: 50%; bottom: 8px;
  width: 306px; height: 760px;
  transform: translateX(-50%);
  pointer-events: none; user-select: none;
  animation: charBob 3.6s ease-in-out infinite;
}
.hero-figure { z-index: 50; }   /* тень нарисована внутри SVG, фильтр не нужен */
/* кисти рисуются поверх ближних панелей — кольцо выглядит обхваченным руками */
.hero-hands { z-index: 95; }
@keyframes charBob { 0%, 100% { transform: translateX(-50%) translateY(0); } 45% { transform: translateX(-50%) translateY(-5px); } }

/* Кольцо не должно быть отдельным слоем: иначе панели не смогут
   перекрывать фигуру по z-index. Позиции панелей расставляет скрипт. */
.hero-ring { display: contents; }
.hero-panel {
  position: absolute; left: 50%; top: 273px;   /* центр кольца — в обхвате рук */
  width: 176px; height: 136px; margin: -68px 0 0 -88px;
  display: flex; flex-direction: column; gap: 7px;
  padding: 14px 16px 12px;
  background: linear-gradient(158deg, #ffffff 0%, #eef4ff 100%);
  border: 1px solid var(--blue-100); border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  text-decoration: none; backface-visibility: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  will-change: transform, opacity;
}
.hero-panel:hover, .hero-panel:focus-visible { border-color: var(--blue); box-shadow: var(--shadow-lg); outline: none; }
.hp-head { display: flex; align-items: center; gap: 10px; }
.hp-head img { flex: none; width: 30px; height: 30px; object-fit: contain; border-radius: 8px; }
.hp-head b {
  font-size: 0.95rem; font-weight: 800; line-height: 1.15;
  letter-spacing: -0.02em; color: var(--navy);
  min-width: 0;                               /* иначе flex не даёт длинному слову переноситься */
  overflow-wrap: break-word; hyphens: auto;   /* «Нейрокомментинг» не должен вылезать */
}
.hp-desc { font-size: 0.8rem; line-height: 1.35; color: var(--muted); }
.hp-more { margin-top: auto; font-size: 0.78rem; font-weight: 700; color: var(--blue); }
.hp-more::after { content: " →"; }

@media (max-width: 1180px) { .hero-anim { --hero-scale: 0.86; } }
@media (max-width: 900px)  { .hero-anim { --hero-scale: 1; } }
@media (max-width: 760px)  { .hero-anim { --hero-scale: 0.82; } }

/* На узких экранах кольцо сжимаем, а не масштабируем целиком:
   иначе подписи услуг становятся нечитаемо мелкими. */
@media (max-width: 620px) {
  .hero-anim { --hero-scale: 0.74; --ring-radius: 150px; }
  /* описание в узкую панель не помещается — оставляем иконку и название */
  .hero-panel {
    width: 160px; height: 104px; margin: -52px 0 0 -80px;
    justify-content: center; padding: 12px 14px;
  }
  /* stretch, а не flex-start: иначе длинное слово задаёт ширину блока и вылезает */
  .hp-head { flex-direction: column; align-items: stretch; gap: 8px; }
  .hp-head b { font-size: 0.95rem; overflow-wrap: anywhere; }
  .hp-desc, .hp-more { display: none; }
}
@media (max-width: 420px) {
  .hero-anim { --hero-scale: 0.62; --ring-radius: 130px; }
}

/* ---------- Карусель «Клиенты» (лента логотипов) ---------- */
.clients { background: var(--soft); overflow: hidden; }
.clients-marquee {
  position: relative; display: grid; gap: 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-row { display: flex; gap: 20px; width: max-content; }
.marquee-row.row1 { animation: marqueeLeft 46s linear infinite; }
.marquee-row.row2 { animation: marqueeRight 46s linear infinite; }
.clients-marquee:hover .marquee-row { animation-play-state: paused; }
.logo-plate {
  flex: none; display: grid; place-items: center;
  width: 200px; height: 104px; padding: 22px 26px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.logo-plate:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.logo-plate img {
  max-width: 100%; max-height: 56px; width: auto; height: auto;
  object-fit: contain; transition: transform 0.2s ease;
}
.logo-plate:hover img { transform: scale(1.04); }
@keyframes marqueeLeft { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marqueeRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (max-width: 680px) {
  .logo-plate { width: 150px; height: 84px; padding: 18px 20px; }
  .logo-plate img { max-height: 42px; }
}

/* ---------- О компании: 3 колонки ---------- */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.about-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.about-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-icon, .service-icon {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px;
  background: var(--blue-050); color: var(--blue); margin-bottom: 20px;
}
.feature-icon svg, .service-icon svg { width: 28px; height: 28px; }
.feature-icon img, .service-icon img { width: 34px; height: 34px; object-fit: contain; display: block; }
/* иконки услуг — без квадратной плашки, одного размера */
.service-icon:has(img) { background: none; border-radius: 0; width: auto; height: auto; margin-bottom: 16px; }
.service-icon img { width: 66px; height: 66px; }
.about-card h3 { margin-bottom: 10px; }
.about-card p { color: var(--muted); margin: 0; }

/* ---------- Сетка услуг ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.service-card h3 { margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: 0.98rem; margin-bottom: 16px; }
.service-price { font-weight: 800; color: var(--navy); margin: 0 0 16px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 700; font-size: 0.95rem; margin-top: auto; }
.link-more svg { width: 17px; height: 17px; transition: transform 0.18s ease; }
.link-more:hover svg { transform: translateX(4px); }
.center-link { text-align: center; margin-top: 40px; }

/* ---------- Кейсы: фильтр + карточки ---------- */
.case-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.case-tab {
  font-family: inherit; font-weight: 600; font-size: 0.96rem; cursor: pointer;
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--text); transition: all 0.16s ease;
}
.case-tab:hover { border-color: var(--blue); color: var(--blue); }
.case-tab.is-active { background: var(--blue); color: #fff; border-color: var(--blue); }
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.case-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.case-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.case-card:hover .case-media img { transform: scale(1.05); }
.case-badge { position: absolute; top: 14px; left: 14px; background: rgba(15, 33, 72, 0.82); color: #fff; font-size: 0.8rem; font-weight: 600; padding: 6px 13px; border-radius: 999px; backdrop-filter: blur(4px); }
.case-body { padding: 22px 24px 26px; }
.case-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.case-body p { color: var(--muted); font-size: 0.96rem; margin-bottom: 16px; }
.case-result { display: flex; gap: 22px; }
.case-result div b { display: block; font-size: 1.4rem; color: var(--blue); font-weight: 800; }
.case-result div span { font-size: 0.85rem; color: var(--muted); }
.is-hidden { display: none !important; }

/* ---------- Тарифы ---------- */
.tariffs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: start; }
.tariff {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 28px; box-shadow: var(--shadow-sm); position: relative;
  display: flex; flex-direction: column; height: 100%;
}
.tariff.is-featured { border-color: var(--blue); box-shadow: var(--shadow); background: linear-gradient(180deg, #f6faff, #fff); }
.tariff-badge { position: absolute; top: -13px; left: 28px; background: var(--blue); color: #fff; font-size: 0.78rem; font-weight: 700; padding: 6px 15px; border-radius: 999px; }
.tariff h3 { font-size: 1.25rem; margin-bottom: 6px; }
.tariff .tariff-sub { color: var(--muted); font-size: 0.94rem; margin-bottom: 18px; }
.tariff-price { font-size: 1.9rem; font-weight: 800; color: var(--navy); margin-bottom: 20px; letter-spacing: -0.02em; }
.tariff-price small { display: block; font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.tariff ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 11px; }
.tariff ul li { position: relative; padding-left: 28px; font-size: 0.96rem; color: var(--text); }
.tariff ul li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue-050) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f6bff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.tariff .btn { width: 100%; margin-top: auto; }

/* ---------- Команда ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.team-photo { aspect-ratio: 1 / 1; overflow: hidden; background: var(--soft-2); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-body { padding: 18px 20px 22px; }
.team-body h3 { font-size: 1.1rem; margin-bottom: 3px; }
.team-body span { color: var(--blue); font-weight: 600; font-size: 0.9rem; }

/* ---- Переворачивающиеся карточки команды ---- */
.team-flip { height: 474px; perspective: 1600px; outline: none; }
.team-flip-inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d; -webkit-transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}
.team-flip:hover .team-flip-inner,
.team-flip:focus-within .team-flip-inner { transform: rotateY(180deg); }

.team-face {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: var(--radius); overflow: hidden;
}

/* Лицевая сторона: фото + должность */
.team-front {
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: box-shadow 0.25s ease;
}
.team-flip:hover .team-front { box-shadow: var(--shadow); }
/* фиксированная высота фотоблока -> все фото одинакового размера */
.team-frame { flex: none; height: 356px; padding: 12px 12px 0; }
.team-frame-inner {
  position: relative; height: 100%; border-radius: 14px; padding: 2px;
  background: linear-gradient(140deg, var(--blue), var(--sky) 55%, var(--blue-700));
}
.team-pic {
  position: relative; height: 100%; border-radius: 12px; overflow: hidden;
  background: var(--soft-2);
}
.team-pic img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.team-ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(180deg, #eef2f8, #dbe4f1); color: #aebbd0;
}
.team-ph svg { width: 42%; height: 42%; }
.team-num {
  position: absolute; left: 10px; top: 10px; width: 26px; height: 26px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(15, 33, 72, 0.72); color: #fff; font-size: 12px; font-weight: 700;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.team-cap { padding: 14px 16px 18px; text-align: center; }
/* имя резервирует высоту 2 строк -> должность у всех на одном уровне */
.team-cap h3 { font-size: 1.02rem; line-height: 1.2; margin: 0 0 5px; color: var(--navy); font-weight: 700; min-height: 2.4em; display: grid; align-content: end; }
.team-cap span { display: block; color: var(--blue); font-weight: 600; font-size: 0.86rem; line-height: 1.25; }
/* Длинную должность (класс ставит js/content.js) ужимаем, чтобы карточки
   в сетке оставались одной высоты */
.team-cap span.role-1line { font-size: 0.78rem; letter-spacing: -0.01em; }

/* Обратная сторона: описание (белый фон, чёрный + голубой текст) */
.team-back {
  transform: rotateY(180deg);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; justify-content: center;
  text-align: center; padding: 26px 22px; color: #14213d;
}
.team-back .bar { width: 40px; height: 3px; border-radius: 3px; margin: 0 auto 14px; background: linear-gradient(90deg, var(--blue), var(--sky)); }
.team-back h3 { color: #111827; font-size: 1.02rem; line-height: 1.2; margin: 0 0 4px; font-weight: 700; }
.team-back .role { color: var(--blue); font-weight: 600; font-size: 0.88rem; }
.team-back p { font-size: 0.9rem; line-height: 1.5; margin: 14px 0 0; color: #1f2937; }
.team-back .since { margin-top: 14px; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

/* Компактные карточки (главная страница) — увеличенные фото и должности */
.team-mini { height: 430px; }
.team-mini .team-frame { height: 288px; padding: 10px 10px 0; }
.team-mini .team-frame-inner { border-radius: 12px; }
.team-mini .team-pic { border-radius: 10px; }
.team-mini .team-cap { padding: 12px 12px 16px; }
.team-mini .team-cap h3 { font-size: 0.95rem; }
.team-mini .team-cap span { font-size: 0.86rem; }
.team-mini .team-back { padding: 18px 16px; }
.team-mini .team-back p { font-size: 0.8rem; margin-top: 10px; }
.team-mini .team-num { width: 22px; height: 22px; font-size: 11px; }

@media (prefers-reduced-motion: reduce) { .team-flip-inner { transition: none; } }

/* ---------- FAQ ---------- */
.faq { max-width: 840px; margin-inline: auto; display: grid; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: box-shadow 0.2s ease, border-color 0.2s ease; }
.faq-item.is-open { box-shadow: var(--shadow-sm); border-color: var(--blue-100); }
.faq-q { width: 100%; text-align: left; font-family: inherit; font-size: 1.08rem; font-weight: 700; color: var(--navy); background: none; border: none; cursor: pointer; padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-q .faq-ico { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-050); color: var(--blue); transition: transform 0.25s ease; font-size: 1.3rem; line-height: 1; }
.faq-item.is-open .faq-ico { transform: rotate(45deg); background: var(--blue); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { padding: 0 26px 24px; margin: 0; color: var(--muted); }

/* ---------- CTA-форма ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(130deg, var(--blue-700), var(--blue) 70%);
  color: #fff; padding: clamp(34px, 5vw, 60px);
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center;
}
.cta-band::before { content: ""; position: absolute; top: -120px; right: -80px; width: 380px; height: 380px; background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%); }
.cta-text { position: relative; z-index: 1; }
.cta-text h2 { color: #fff; }
.cta-text p { color: rgba(255, 255, 255, 0.88); font-size: 1.08rem; margin: 0; }
.form-card { position: relative; z-index: 1; background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-lg); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--navy);
  padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.field-error input, .field-error textarea { border-color: #e5484d; background: #fff5f5; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; color: var(--muted); margin-bottom: 18px; cursor: pointer; }
.checkbox input { margin-top: 3px; accent-color: var(--blue); }
.checkbox a { color: var(--blue); }
.form-msg { margin-top: 14px; font-size: 0.95rem; font-weight: 600; color: #1b9e5a; opacity: 0; transition: opacity 0.2s ease; }
.form-msg.is-visible { opacity: 1; }
/* Сообщение об ошибке отправки — красным, а не «успешным» зелёным */
.form-msg.is-error { color: #e5484d; }

/* ---------- Способ связи в форме заявки ---------- */
.contact-methods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.contact-methods .contact-method { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; margin: 0; padding: 8px 4px; border: 1.5px solid var(--line); border-radius: 11px; cursor: pointer; text-align: center; transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease; }
.contact-method:hover { border-color: var(--blue); }
.contact-method input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.cm-badge { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--soft); color: var(--blue); flex-shrink: 0; transition: background 0.18s ease, color 0.18s ease; }
.cm-badge svg { width: 16px; height: 16px; display: block; }
.cm-text { font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.1; }
.contact-method.is-active, .contact-method:has(input:checked) { border-color: var(--blue); background: var(--soft); box-shadow: inset 0 0 0 1px var(--blue); }
.contact-method.is-active .cm-text, .contact-method:has(input:checked) .cm-text { color: var(--blue-700); }
.contact-method.is-active .cm-badge, .contact-method:has(input:checked) .cm-badge { background: var(--blue); color: #fff; }

/* ---------- Общие компоненты страниц ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); text-align: center; }
.stat-num { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 800; color: var(--blue); letter-spacing: -0.02em; }
.stat-label { color: var(--muted); font-size: 0.98rem; }

.feature-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.feature-col h3 { margin-bottom: 16px; }
.feature-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.feature-col li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: 0.98rem; }
.bullet { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--blue-050); color: var(--blue); }
.bullet svg { width: 13px; height: 13px; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.75); padding-block: 60px 30px; }
.site-footer .logo-word { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 34px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer-brand p { margin: 16px 0 20px; max-width: 320px; font-size: 0.96rem; }
.footer-brand .social-btn { background: rgba(255, 255, 255, 0.08); color: #fff; }
.footer-brand .social-btn:hover { background: var(--blue); }
.footer-socials { display: flex; gap: 10px; }
.footer-col h4 { color: #fff; font-size: 1.02rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a, .footer-col li { font-size: 0.96rem; color: rgba(255, 255, 255, 0.72); }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-top: 24px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); }
.footer-bottom a { color: rgba(255, 255, 255, 0.75); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Модалка ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(15, 33, 72, 0.5); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.is-open { display: flex; }
.modal { position: relative; background: #fff; border-radius: var(--radius-lg); padding: 40px 36px; max-width: 460px; width: 100%; box-shadow: var(--shadow-lg); max-height: 92vh; overflow-y: auto; }
.modal-lg { max-width: 720px; }
.modal h3 { margin-bottom: 8px; }
.modal > p { color: var(--muted); margin-bottom: 22px; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border: none; background: var(--soft); border-radius: 12px; color: var(--navy); cursor: pointer; display: grid; place-items: center; }
.modal-close:hover { background: var(--blue-050); color: var(--blue); }

/* ---------- Анимация появления ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .cards-grid, .team-grid, .tariffs-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .main-nav, .header-socials, .header-cta { display: none; }
  .burger { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-grid, .feature-cols, .stats { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .cards-grid, .team-grid, .tariffs-grid, .cases-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .case-result { gap: 18px; }
}
@media (max-width: 460px) {
  .footer-top { grid-template-columns: 1fr; }
  .hero-metric { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* =============================================================
   Внутренние страницы (about, services, clients, contacts, articles)
   ============================================================= */

/* Акцент в заголовках */
.script { color: var(--blue); font-weight: 800; }
.head-badge { display: inline-grid; place-items: center; width: 34px; height: 34px; vertical-align: middle; margin-left: 8px; border-radius: 10px; background: var(--blue-050); color: var(--blue); }
.head-badge svg { width: 18px; height: 18px; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.82rem; letter-spacing: 0.02em; color: var(--muted); }

/* Хедер внутренних страниц */
.page-hero { background: linear-gradient(180deg, #eef5ff, #ffffff); padding-block: clamp(38px, 6vw, 68px); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin: 14px 0 14px; }
.page-hero p { max-width: 720px; font-size: 1.12rem; color: var(--muted); }
.breadcrumbs { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.breadcrumbs a { color: var(--blue); }
.breadcrumbs svg { width: 15px; height: 15px; }

/* Коллаж из фото */
.hero-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero-collage img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-sm); object-fit: cover; }
.img-tall { aspect-ratio: 3 / 4; grid-row: span 2; }
.img-short { aspect-ratio: 3 / 2; align-self: end; }

/* Ценности / принципы */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-card { display: flex; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow-sm); }
.value-card h3 { margin-bottom: 6px; }
.value-card p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.value-num { flex: none; font-size: 1.6rem; font-weight: 800; color: var(--blue); line-height: 1; }

/* Клиенты */
.clients-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.client-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.client-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.client-logo { display: grid; place-items: center; height: 72px; margin-bottom: 16px; background: var(--soft); border-radius: var(--radius-sm); font-weight: 800; font-size: 1.1rem; color: var(--navy); }
.client-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* Кликабельные карточки-логотипы клиентов */
.client-logo-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-decoration: none; color: inherit; }
.client-logo-card img { height: 72px; max-width: 100%; width: auto; object-fit: contain; transition: transform 0.2s ease; }
.client-logo-card:hover img { transform: scale(1.05); }
.client-logo-card .client-name { color: var(--muted); font-size: 0.88rem; font-weight: 600; text-align: center; word-break: break-word; }

/* Кнопка «Подробнее» в карточке кейса */
.case-body .link-more { margin-top: 16px; }

/* Детальная страница кейса */
.case-detail { max-width: 840px; margin: 0 auto; }
.case-detail-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 26px; background: var(--soft); }
.case-detail-media img { width: 100%; display: block; object-fit: cover; max-height: 460px; }
.case-detail-result { margin: 0 0 30px; }
.case-longtext { color: var(--text); font-size: 1.06rem; line-height: 1.75; }
.case-longtext p { margin: 0 0 16px; }
.case-longtext p:last-child { margin-bottom: 0; }
.case-detail-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Детальная страница статьи блога */
.article-metaline { color: var(--muted); font-weight: 600; font-size: 0.98rem; margin: 0; }
.article-detail { max-width: 840px; margin: 0 auto; }
.article-cover { margin: 0 0 26px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--soft); }
.article-cover img { width: 100%; display: block; object-fit: cover; max-height: 460px; }
.article-lead { font-size: 1.2rem; line-height: 1.6; color: var(--navy); font-weight: 600; margin: 0 0 26px; }
.article-longtext { color: var(--text); font-size: 1.06rem; line-height: 1.75; }
.article-longtext p { margin: 0 0 16px; }
.article-longtext p:last-child { margin-bottom: 0; }
.article-figure { margin: 30px 0 4px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--soft); }
.article-figure img { width: 100%; display: block; object-fit: cover; max-height: 440px; }
.article-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* График внутри статьи */
.article-chart { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px 24px; margin: 30px 0; }
.article-chart h3 { font-size: 1.12rem; margin: 0 0 24px; }
.chart-bars { display: flex; align-items: stretch; gap: 16px; height: 240px; }
.chart-bar { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.bar-track { flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.bar-val { font-weight: 800; font-size: 0.95rem; color: var(--navy); margin-bottom: 8px; }
.bar-fill { width: 100%; max-width: 62px; border-radius: 10px 10px 0 0; background: linear-gradient(180deg, var(--sky), var(--blue)); box-shadow: 0 6px 16px rgba(31, 107, 255, 0.28); transition: height 0.6s ease; }
.bar-label { margin-top: 12px; font-size: 0.86rem; color: var(--muted); text-align: center; line-height: 1.2; }
@media (max-width: 560px) {
  .chart-bars { height: 200px; gap: 10px; }
  .bar-val { font-size: 0.82rem; }
  .bar-label { font-size: 0.76rem; }
}

/* Статьи / блог */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.article-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.article-thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--soft-2); }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.article-card:hover .article-thumb img { transform: scale(1.05); }
.article-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.article-tag { align-self: flex-start; font-size: 0.78rem; font-weight: 700; color: var(--blue); background: var(--blue-050); padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }
.article-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.article-body p { color: var(--muted); font-size: 0.96rem; }
.article-date { margin-top: auto; padding-top: 14px; font-size: 0.86rem; color: var(--muted); }

/* Контакты */
.contacts-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 34px; align-items: start; }
.contact-list { display: grid; gap: 16px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.contact-ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--blue-050); color: var(--blue); }
.contact-ico svg { width: 22px; height: 22px; }
.contact-item strong { display: block; color: var(--navy); font-size: 0.9rem; margin-bottom: 3px; }
.contact-val { color: var(--text); font-weight: 600; }
.map-placeholder { min-height: 260px; border-radius: var(--radius); background: linear-gradient(135deg, var(--soft-2), var(--blue-050)); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); font-weight: 600; }

/* Детальные услуги */
.service-detail { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.svc-head { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; flex-wrap: wrap; }
.svc-title h3 { margin: 0 0 4px; font-size: clamp(1.5rem, 2.6vw, 1.95rem); }
.svc-platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.svc-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.svc-logo { width: 36px; height: 36px; object-fit: contain; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-sm); }
.plat, .chip { display: inline-flex; align-items: center; font-size: 0.82rem; font-weight: 600; padding: 6px 13px; border-radius: 999px; background: var(--blue-050); color: var(--blue-700); }
.service-features { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.service-features .chip { background: var(--soft); color: var(--text); border: 1px solid var(--line); }
.svc-price-note { color: var(--muted); font-size: 0.92rem; }
.svc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* Аватары команды */
.team-avatar { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

/* ---------- Модалка «Подробнее об услуге» ---------- */
.svc-modal-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; padding-right: 30px; }
.svc-modal-head .service-icon { margin: 0; flex: none; }
.svc-modal-head h3 { margin: 0 0 2px; font-size: clamp(1.35rem, 3vw, 1.7rem); }
.svc-modal-sub { margin: 0; color: var(--blue); font-weight: 700; font-size: 1.02rem; line-height: 1.35; }
.svc-intro { color: var(--text); margin-bottom: 26px; }
.svc-block { margin-bottom: 26px; }
.svc-block h4 { display: flex; align-items: center; gap: 9px; font-size: 1.08rem; color: var(--navy); margin-bottom: 14px; }
.svc-block h4 svg { flex: none; color: var(--blue); }

.svc-tasklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.svc-tasklist li { position: relative; padding-left: 26px; color: var(--text); }
.svc-tasklist li::before { content: ""; position: absolute; left: 3px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); }

.svc-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.svc-steps li { display: flex; gap: 14px; align-items: flex-start; color: var(--text); }
.svc-step-num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 0.95rem; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(31, 107, 255, 0.3); }

.svc-do { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 11px 24px; }
.svc-do li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: 0.97rem; }

.svc-callout { display: flex; gap: 15px; align-items: flex-start; background: var(--blue-050); border: 1px solid var(--blue-100); border-left: 4px solid var(--blue); border-radius: var(--radius-sm); padding: 18px 20px; color: var(--text); margin-bottom: 26px; }
.svc-callout svg { flex: none; color: var(--blue); margin-top: 2px; }
.svc-callout b { color: var(--navy); }

.svc-info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.svc-info-card { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 22px; }
.svc-info-card h4 { font-size: 1rem; margin-bottom: 9px; color: var(--navy); }
.svc-info-card p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.svc-price-card { background: linear-gradient(160deg, var(--blue-050), #fff); border-color: var(--blue-100); }
.svc-price-tag { font-size: 1.55rem; font-weight: 800; color: var(--blue); letter-spacing: -0.02em; margin-bottom: 8px; }

.svc-modal-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.svc-modal-cta .btn { flex: 1 1 auto; }

@media (max-width: 560px) {
  .svc-do, .svc-info-cards { grid-template-columns: 1fr; }
  .modal { padding: 28px 22px; }
}

/* ---------- Отдельная страница услуги ---------- */
.svc-page-head { display: flex; align-items: center; gap: 20px; margin: 16px 0 22px; }
.svc-page-head .service-icon { width: 74px; height: 74px; flex: none; margin: 0; border-radius: 20px; }
.svc-page-head .service-icon svg { width: 34px; height: 34px; }
.svc-page-head .service-icon:has(img) { width: auto; height: auto; border-radius: 0; }
.svc-page-head .service-icon img { width: 82px; height: 82px; }
.svc-page-head h1 { margin: 0 0 6px; }
.svc-page-tagline { margin: 0; color: var(--blue); font-weight: 700; font-size: clamp(1.05rem, 2.2vw, 1.25rem); }
.svc-page-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.svc-page-price { font-size: 1.5rem; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.svc-lead { max-width: 820px; }
.svc-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.svc-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px; box-shadow: var(--shadow-sm); }
.svc-panel h2 { font-size: 1.3rem; margin-bottom: 20px; }
.svc-do-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px; box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.svc-do-card h2 { font-size: 1.3rem; margin-bottom: 20px; }
.svc-page-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.svc-page-nav a { font-size: 0.92rem; font-weight: 600; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text); transition: all 0.16s ease; }
.svc-page-nav a:hover { border-color: var(--blue); color: var(--blue); }
.svc-page-nav a.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* шапка услуги: текст слева, иллюстрация справа */
.svc-hero-inner { display: grid; grid-template-columns: 1fr minmax(300px, 440px); gap: 48px; align-items: center; }
.svc-hero-text { min-width: 0; }
.svc-hero-art { position: relative; }
.svc-hero-art svg { width: 100%; height: auto; display: block; }

@media (max-width: 900px) {
  .svc-hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .svc-hero-art { max-width: 400px; margin: 4px auto 0; }
}
@media (max-width: 800px) {
  .svc-two-col { grid-template-columns: 1fr; }
  .svc-page-head { flex-direction: column; align-items: flex-start; gap: 14px; }
}
@media (max-width: 520px) {
  .svc-hero-art { display: none; }
}

@media (max-width: 1080px) {
  .clients-grid, .articles-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-collage { grid-template-columns: 1fr 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .clients-grid, .articles-grid, .values-grid { grid-template-columns: 1fr; }
  .value-card { flex-direction: column; gap: 10px; }
}

/* ============================================================
   ПРАВОВОЙ БЛОК: реквизиты в подвале, документы, cookie-баннер
   ============================================================ */

/* --- Реквизиты оператора в подвале --- */
.footer-legal { padding-top: 18px; font-size: 0.8rem; line-height: 1.65; color: rgba(255, 255, 255, 0.5); }
.footer-legal p { margin: 0 0 8px; }
.footer-legal p:last-child { margin-bottom: 0; }
.footer-legal a { color: rgba(255, 255, 255, 0.7); text-decoration: underline; }
.footer-legal a:hover { color: #fff; }

/* --- Страницы политики и согласия --- */
.legal-doc { max-width: 820px; margin: 0 auto; color: var(--text); line-height: 1.75; }
.legal-doc h2 { margin: 44px 0 14px; font-size: 1.45rem; color: var(--ink); }
.legal-doc h2:first-of-type { margin-top: 0; }
.legal-doc h3 { margin: 30px 0 10px; font-size: 1.1rem; color: var(--ink); }
.legal-doc p { margin: 0 0 14px; }
.legal-doc ul, .legal-doc ol { margin: 0 0 16px; padding-left: 22px; }
.legal-doc ul { list-style: disc; }
.legal-doc ol { list-style: decimal; }
.legal-doc li { margin-bottom: 8px; }
.legal-doc strong { color: var(--ink); font-weight: 700; }
.legal-doc a { color: var(--blue); text-decoration: underline; }
.legal-doc blockquote {
  margin: 20px 0; padding: 16px 20px;
  background: var(--soft); border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.legal-doc blockquote p:last-child { margin-bottom: 0; }
.legal-meta { font-size: 0.86rem; color: var(--muted); margin-bottom: 28px !important; }
.legal-requisites {
  padding: 16px 20px; background: var(--soft);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.legal-note {
  margin-top: 36px !important; padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem; color: var(--muted);
}

/* --- Баннер cookie --- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 900;
  display: none; gap: 20px; align-items: center; justify-content: space-between;
  max-width: 1000px; margin: 0 auto; padding: 18px 22px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner p { margin: 0; font-size: 0.86rem; line-height: 1.6; color: var(--text); }
.cookie-banner p strong { display: block; margin-bottom: 4px; color: var(--ink); }
.cookie-banner a { color: var(--blue); text-decoration: underline; }
/* Кнопка отказа не менее заметна, чем кнопка согласия — требование
   к оформлению согласия на обработку cookie. */
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-actions .btn { white-space: nowrap; }

@media (max-width: 680px) {
  .cookie-banner { flex-direction: column; align-items: stretch; padding: 16px; }
  .cookie-actions { flex-direction: column; }
  .cookie-actions .btn { width: 100%; }
  .legal-doc h2 { font-size: 1.25rem; }
}
