/* ============================================================
   ANDREEV.ONE — hi-tech дизайн-система v3
   Тёмная стеклянная тема, неоновое свечение, микродинамика.
   Не перегружено: воздух, читаемость, один акцентный цвет.
   ============================================================ */

:root {
  /* фон и поверхности */
  --bg:        #070b14;
  --bg-2:      #0b1120;
  --section:   rgba(7,11,20,.74);
  --section-2: rgba(10,16,30,.80);
  --surface:   rgba(255,255,255,.04);
  --surface-2: rgba(255,255,255,.06);
  --glass:     rgba(13,20,38,.55);

  /* текст */
  --ink:       #e8ecf5;
  --ink-2:     #b6c0d4;
  --muted:     #7c869c;

  /* акцент — hi-tech синий+бирюза */
  --accent:    #3d7bff;
  --accent-2:  #00d4ff;
  --accent-line: rgba(61,123,255,.35);
  --ok:        #22d3a5;

  /* геометрия */
  --r:      16px;
  --r-sm:   10px;
  --ring:     1px solid rgba(255,255,255,.08);
  --ring-2:   1px solid rgba(255,255,255,.14);
  --maxw:   1180px;
  --gutter: 24px;

  --glow: 0 0 0 1px var(--accent-line), 0 0 22px -6px rgba(61,123,255,.35);
  --shadow-2: 0 20px 50px -20px rgba(0,0,0,.7);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Inter', 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* "Технологичный" фон: световые блики + редкие перекрестия (сама "сетка" заменена PCB-дорожками) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    /* угловые световые блики */
    radial-gradient(900px 520px at 82% -12%, rgba(61,123,255,.16), transparent 60%),
    radial-gradient(820px 500px at 8% 112%, rgba(0,212,255,.12), transparent 55%);
  background-size: auto, auto;
  background-position: 0 0;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 80%);
}

/* редкие перекрестия-маркеры (HUD-метки) в углах фона */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 72%);
  opacity: .5;
  background-image:
    radial-gradient(circle at 6% 12%, transparent 0 2px, rgba(0,212,255,.9) 2.5px, transparent 4px),
    radial-gradient(circle at 94% 8%, transparent 0 2px, rgba(0,212,255,.7) 2.5px, transparent 4px),
    radial-gradient(circle at 12% 88%, transparent 0 2px, rgba(61,123,255,.7) 2.5px, transparent 4px),
    radial-gradient(circle at 88% 92%, transparent 0 2px, rgba(0,212,255,.55) 2.5px, transparent 4px);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
a { color: var(--accent-2); text-decoration: none; transition: color .18s; }
a:hover { color: #66e6ff; }
img { max-width: 100%; display: block; }
code { background: var(--surface-2); padding: .15em .45em; border-radius: 6px; font-size: .9em; color: var(--accent-2); }

h1,h2,h3,h4 { font-family: 'Manrope','Inter',system-ui,sans-serif; letter-spacing: -.02em; line-height: 1.12; font-weight: 700; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font, 'Inter'); font-weight: 600; font-size: .95rem;
  padding: 13px 26px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s;
  white-space: nowrap; position: relative;
}
.btn-primary {
  background: linear-gradient(120deg, var(--accent), #6366f1);
  color: #fff; box-shadow: 0 8px 30px -10px rgba(61,123,255,.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(61,123,255,.9); color:#fff; }
.btn-outline { background: rgba(255,255,255,.03); color: var(--ink); border-color: var(--ring-2); backdrop-filter: blur(6px); }
.btn-outline:hover { border-color: var(--accent-line); color: var(--accent-2); box-shadow: var(--glow); }
.btn-ghost { background: transparent; color: var(--accent-2); padding: 13px 10px; }
.btn-lg { padding: 16px 34px; font-size: 1rem; border-radius: 14px; }

/* ---------- Топбар ---------- */
.topbar { border-bottom: 1px solid rgba(255,255,255,.06); background: rgba(7,11,20,.7); backdrop-filter: blur(10px); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 9px var(--gutter); font-size: .8rem; color: var(--muted); }
.topbar-phone { color: var(--ink); font-weight: 600; }
.topbar-phone a { color: var(--ink); }
.topbar-phone a:hover { color: var(--accent-2); }

/* ---------- Шапка ---------- */
.header { background: rgba(7,11,20,.6); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid rgba(255,255,255,.06); position: sticky; top: 0; z-index: 60; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 13px var(--gutter); }
.logo { display: flex; align-items: center; gap: 11px; }
.logo img { height: 34px; width: auto; border-radius: 9px; box-shadow: 0 0 14px -4px var(--accent); }
.logo-text { font-family: 'Manrope'; font-weight: 700; font-size: 1.04rem; color: var(--ink); letter-spacing: -.01em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink-2); font-weight: 500; font-size: .9rem; padding: 9px 14px; border-radius: 10px; transition: background .15s, color .15s; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.nav-cta { background: linear-gradient(120deg,var(--accent),#6366f1); color:#fff; padding: 10px 18px; box-shadow: 0 6px 20px -8px rgba(61,123,255,.8); }
.nav a.nav-cta:hover { color:#fff; filter:brightness(1.1); }

/* Выпадающее меню "Решения" */
.nav-drop { position: relative; }
.nav-drop-toggle { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-weight: 500; font-size: .9rem; padding: 9px 14px; border-radius: 10px; cursor: default; transition: background .15s, color .15s; }
.nav-drop-toggle:hover { background: var(--surface-2); color: var(--ink); }
.nav-drop .caret { font-size: .7rem; opacity: .7; transition: transform .2s; }
.nav-drop:hover .caret { transform: rotate(180deg); }
.nav-drop-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 210px; padding: 8px; border-radius: 12px; background: var(--surface-2); box-shadow: var(--shadow-2); backdrop-filter: blur(12px); z-index: 80; }
.nav-drop:hover .nav-drop-menu { display: flex; flex-direction: column; gap: 2px; }
.nav-drop-menu a { padding: 9px 12px; border-radius: 8px; white-space: nowrap; }

.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--ink); }

/* ============================================================
   ГЛАВНАЯ
   ============================================================ */

/* ---------- HERO ---------- */
.hero-premium { position: relative; padding: 110px 0 90px; border-bottom: 1px solid rgba(255,255,255,.06); overflow: hidden; }
/* линии-орбиты (лайт) */
.hero-premium::before { content:""; position:absolute; top:50%; left:50%; width:1300px; height:1300px; transform:translate(-50%,-50%); border-radius:50%; border:1px solid rgba(61,123,255,.14); }
.hero-premium::after { content:""; position:absolute; top:50%; left:50%; width:900px; height:900px; transform:translate(-50%,-50%); border-radius:50%; border:1px solid rgba(0,212,255,.10); }
.hero-premium .container { position: relative; z-index: 1; max-width: 980px; text-align: left; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2);
  border: 1px solid var(--accent-line); background: rgba(61,123,255,.06);
  padding: 7px 16px; border-radius: 40px; margin-bottom: 26px; backdrop-filter: blur(6px);
  box-shadow: 0 0 18px -8px rgba(0,212,255,.5);
}
.hero-title { font-size: clamp(2.5rem, 5.6vw, 4.2rem); font-weight: 800; line-height: 1.03; color: var(--ink); margin-bottom: 22px; }
.hero-title .accent {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.26rem); color: var(--muted); max-width: 640px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.trustline { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.trustline span { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--ink-2); }
.trustline svg { color: var(--ok); flex: none; filter: drop-shadow(0 0 6px rgba(34,211,165,.5)); }

/* Ключевые клиенты в hero (соцдоказательство в первом экране) */
.hero-clients { margin-top: 30px; }
.hero-clients-label { display: block; font-size: .72rem; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.hero-clients-row { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hero-client-logo {
  background: #fff; border-radius: 12px; padding: 10px 16px;
  display: flex; align-items: center; justify-content: center; min-height: 46px;
  transition: transform .25s, box-shadow .25s;
}
.hero-client-logo:hover { transform: translateY(-3px); box-shadow: var(--glow); }
.hero-client-logo img { max-height: 26px; width: auto; filter: grayscale(1); opacity: .8; transition: filter .25s, opacity .25s; }
.hero-client-logo:hover img { filter: grayscale(0); opacity: 1; }

/* метрики */
.hero-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 48px; }
.hero-metric {
  background: var(--glass); border: 1px solid rgba(255,255,255,.07); border-radius: 16px;
  padding: 22px 18px; text-align: center; backdrop-filter: blur(10px);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.hero-metric:hover { transform: translateY(-4px); border-color: var(--accent-line); box-shadow: var(--glow); }
.hero-metric .n { font-family:'Manrope'; font-weight: 800; font-size: 2rem; color: var(--ink); line-height: 1; }
.hero-metric .n small { font-size: 1rem; color: var(--accent-2); }
.hero-metric .l { font-size: .72rem; color: var(--muted); margin-top: 7px; text-transform: uppercase; letter-spacing: .07em; }

/* ---------- Секции ---------- */
.section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); color: var(--ink); }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.02rem; }

/* ---------- Клиенты ---------- */
.clients-bar { background: rgba(255,255,255,.02); border-top: 1px solid rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.05); padding: 52px 0; }
.clients-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; align-items: center; }
.client-logo {
  display: flex; align-items: center; justify-content: center;
  padding: 20px 12px; border-radius: 14px;
  background: #fff; border: 1px solid rgba(255,255,255,.16);
  min-height: 84px;
  box-shadow: 0 6px 20px -12px rgba(0,0,0,.6);
  transition: transform .3s, box-shadow .3s, border-color .3s, background .3s;
}
.client-logo:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--glow); }
.client-logo img {
  max-height: 40px; width: auto; max-width: 90%;
  filter: grayscale(1); opacity: 1;
  transition: filter .3s, opacity .3s, transform .3s;
}
.client-logo:hover img { filter: grayscale(0); opacity: 1; transform: scale(1.08); }

/* ---------- Боль/решение ---------- */
.pain-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.pain-panel, .solution-panel { padding: 34px; border-radius: 18px; backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.07); }
.pain-panel { background: rgba(255,255,255,.03); }
.solution-panel { background: linear-gradient(150deg, rgba(61,123,255,.18), rgba(0,212,255,.06)); border-color: var(--accent-line); box-shadow: var(--glow); }
.pain-panel h3, .solution-panel h3 { font-size: 1.25rem; margin-bottom: 18px; }
.pain-list, .solution-list { list-style: none; }
.pain-list li, .solution-list li { position: relative; padding-left: 28px; margin-bottom: 13px; color: var(--muted); }
.solution-list li { color: var(--ink-2); }
.pain-panel li::before, .solution-list li::before { position: absolute; left: 0; top: 1px; font-weight: 700; }
.pain-list li::before { content: "\2715"; color: #f04e4e; }
.solution-list li::before { content: "\2713"; color: var(--ok); filter: drop-shadow(0 0 5px rgba(34,211,165,.6)); }

/* ---------- Услуги (флип) ---------- */
.services-section { background: var(--section-2); }

/* варианты карточек услуг (используются на странице "Услуги": features-grid/feature) */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 20px; align-items: stretch; }
.feature { display: flex; flex-direction: column; padding: 28px 22px; border-radius: 16px; border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.03); backdrop-filter: blur(8px); transition: transform .25s, box-shadow .25s, border-color .25s; text-align:center; }
.feature:hover { transform: translateY(-4px); border-color: var(--accent-line); box-shadow: var(--glow); }
.feature .icon { margin-bottom: 14px; color: var(--accent); filter: drop-shadow(0 0 10px rgba(61,123,255,.35)); display:flex; align-items:center; justify-content:center; }
.feature .icon svg { width: 44px; height: 44px; }
.feature h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .9rem; line-height: 1.55; flex-grow: 1; }
.feature .calc-open-btn { margin-top: 18px; }
.flip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 20px; perspective: 1400px; }
.flip-card { height: 260px; }
.flip-inner { position: relative; width: 100%; height: 100%; transition: transform .55s cubic-bezier(.4,.2,.2,1); transform-style: preserve-3d; }
.flip-card:hover .flip-inner { transform: rotateY(180deg); }
.flip-front, .flip-back { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 16px; padding: 30px 22px; border: 1px solid rgba(255,255,255,.07); }
.flip-front { background: rgba(255,255,255,.04); backdrop-filter: blur(10px); display: flex; flex-direction: column; justify-content: center; }
.flip-icon { margin-bottom: 16px; color: var(--accent); filter: drop-shadow(0 0 10px rgba(61,123,255,.4)); display:flex; align-items:center; justify-content:center; }
.flip-icon svg { width: 44px; height: 44px; }
.flip-grid.bento .flip-card:nth-child(1) .flip-icon svg { width: 52px; height: 52px; margin-bottom: 14px; }
.flip-front h3 { font-size: 1.08rem; color: var(--ink); }
.flip-front .flip-hint { font-size: .68rem; color: var(--muted); margin-top: 10px; letter-spacing: .1em; text-transform: uppercase; }
.flip-back { background: linear-gradient(150deg, #101b33, #0b1220); transform: rotateY(180deg); display: flex; flex-direction: column; justify-content: center; border-color: var(--accent-line); }
.flip-back p { color: var(--ink-2); font-size: .9rem; line-height: 1.55; }

/* Бенто-компоновка: главная карточка крупнее (слева, 2 ряда), 4 карточки справа 2×2 */
.flip-grid.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 150px;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.flip-grid.bento .flip-card,
.flip-grid.bento .flip-inner { height: 100%; }
/* 1-я карточка — флагман «Видеонаблюдение»: левая колонка, 2 ряда */
.flip-grid.bento .flip-card:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
/* карточки 2..5 — правая часть, по 2 на ряд (колонки 2 и 3) */
.flip-grid.bento .flip-card:nth-child(2) { grid-column: 2; grid-row: 1; }
.flip-grid.bento .flip-card:nth-child(3) { grid-column: 3; grid-row: 1; }
.flip-grid.bento .flip-card:nth-child(4) { grid-column: 2; grid-row: 2; }
.flip-grid.bento .flip-card:nth-child(5) { grid-column: 3; grid-row: 2; }
.flip-grid.bento .flip-lg-text { margin-top: 12px; color: var(--muted); font-size: .9rem; line-height: 1.5; }
/* компактные карточки справа: горизонтальная компоновка, чтобы влезал текст */
.flip-grid.bento .flip-card:not(:nth-child(1)) .flip-inner { display: flex; }
.flip-grid.bento .flip-card:not(:nth-child(1)) .flip-front,
.flip-grid.bento .flip-card:not(:nth-child(1)) .flip-back { padding: 12px 16px; }
.flip-grid.bento .flip-card:not(:nth-child(1)) .flip-icon { margin-bottom: 0; margin-right: 14px; flex: none; }
.flip-grid.bento .flip-card:not(:nth-child(1)) .flip-icon svg { width: 36px; height: 36px; }
.flip-grid.bento .flip-card:not(:nth-child(1)) .flip-front { flex-direction: row; align-items: center; text-align: left; }
.flip-grid.bento .flip-card:not(:nth-child(1)) h3 { font-size: .95rem; }
.flip-grid.bento .flip-card:not(:nth-child(1)) .flip-hint { display: none; }

/* ---------- Процесс ---------- */
.process-section { background: var(--section); }
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.process-step { position: relative; padding: 26px 18px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 14px; backdrop-filter: blur(8px); transition: transform .25s, border-color .25s; }
.process-step:hover { transform: translateY(-4px); border-color: var(--accent-line); }
.process-num { font-family:'Manrope'; font-size: .74rem; font-weight: 800; color: var(--accent-2); letter-spacing: .12em; margin-bottom: 9px; }
.process-step h3 { font-size: .98rem; margin-bottom: 8px; }
.process-step p { color: var(--muted); font-size: .85rem; line-height: 1.5; }

/* ---------- Цифры ---------- */
.stats { background: var(--section-2); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); border-radius: 16px; padding: 28px 20px 24px; text-align: center; backdrop-filter: blur(8px); transition: transform .3s, box-shadow .3s, border-color .3s; }
.stat:hover { transform: translateY(-4px); border-color: var(--accent-line); box-shadow: var(--glow); }
.stat-icon { margin-bottom: 12px; display:flex; align-items:center; justify-content:center; }
.stat-icon svg { width: 40px; height: 40px; filter: drop-shadow(0 0 8px rgba(61,123,255,.35)); }
.stat-num { font-family:'Manrope'; font-weight: 800; font-size: 2.4rem; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; }
.stat-num .suffix { color: var(--accent-2); }
.stat-label { color: var(--muted); font-size: .85rem; margin-top: 8px; }

/* ---------- Почему я ---------- */
.whyme-section { background: var(--section); }
.whyme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.whyme-item { padding: 28px 24px; border-radius: 16px; border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.03); backdrop-filter: blur(8px); transition: border-color .25s, box-shadow .25s, transform .25s; }
.whyme-item:hover { border-color: var(--accent-line); box-shadow: var(--glow); transform: translateY(-3px); }
.whyme-icon { margin-bottom: 16px; filter: drop-shadow(0 0 10px rgba(61,123,255,.4)); display:flex; align-items:center; justify-content:center; }
.whyme-icon svg { width: 44px; height: 44px; }
.whyme-item h3 { font-size: 1.04rem; margin-bottom: 8px; }
.whyme-item p { color: var(--muted); font-size: .9rem; line-height: 1.55; }

/* ---------- Кейсы ---------- */
.cases-section { background: var(--section-2); }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); border-radius: 16px; overflow: hidden; transition: transform .3s, box-shadow .3s, border-color .3s; }
.card:hover { transform: translateY(-5px); border-color: var(--accent-line); box-shadow: var(--glow); }
.card img { width: 100%; height: 210px; object-fit: cover; }
.card-body { padding: 22px 22px 24px; }
.card-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tag { background: rgba(61,123,255,.1); color: var(--accent-2); padding: 4px 11px; border-radius: 30px; font-size: .72rem; font-weight: 600; border: 1px solid var(--accent-line); }
.card-body h3 { font-size: 1.04rem; margin-bottom: 8px; }
.card-body p { color: var(--muted); font-size: .9rem; }
.cases-more { text-align: center; margin-top: 40px; }

/* ---------- Отзывы ---------- */
.testimonials-section { background: var(--section); }
.testimonials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.testimonial-card {
  padding: 26px 26px 22px; border-radius: 16px; background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07); backdrop-filter: blur(8px);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.testimonial-card:hover { border-color: var(--accent-line); box-shadow: var(--glow); transform: translateY(-3px); }
.testimonial-quote { font-size: .98rem; line-height: 1.6; color: var(--ink-2); margin-bottom: 18px; }
.testimonial-author strong { display: block; color: var(--ink); font-size: .92rem; }
.testimonial-author span { color: var(--muted); font-size: .8rem; }

/* ---------- FAQ ---------- */
.faq-section { background: var(--section-2); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); border-radius: 14px;
  overflow: hidden; transition: border-color .2s;
}
.faq-item:hover { border-color: var(--accent-line); }
.faq-item summary {
  cursor: pointer; padding: 17px 22px; font-weight: 600; color: var(--ink); font-size: .98rem;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none;
}
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--accent-2); font-weight: 500; transition: transform .2s; flex: none; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-answer { padding: 0 22px 18px; color: var(--muted); font-size: .92rem; line-height: 1.6; }
.faq-more { text-align: center; margin-top: 32px; }
.faq-hint { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }

/* ---------- CTA ---------- */
.cta-final { background: linear-gradient(150deg, #0d1428, var(--bg)); color: var(--ink); padding: 96px 0; position: relative; overflow: hidden; border-top: 1px solid rgba(255,255,255,.06); }
.cta-final::before { content:""; position:absolute; top:-100px; right:-80px; width:480px; height:480px; background: radial-gradient(circle, rgba(61,123,255,.35), transparent 65%); }
.cta-final .container { position: relative; z-index: 1; text-align: center; max-width: 620px; }
.cta-final h2 { font-size: clamp(2rem, 4vw, 2.7rem); margin-bottom: 16px; }
.cta-final p { color: var(--muted); font-size: 1.08rem; margin-bottom: 30px; }
.cta-final .btn-primary { background: linear-gradient(120deg,var(--accent),#6366f1); }
.cta-phone { margin-top: 24px; }
.cta-phone a { color: var(--ink); font-size: 1.3rem; font-weight: 700; }
.cta-phone a:hover { color: var(--accent-2); }

/* ---------- Подвал ---------- */
.footer { background: #050810; color: var(--muted); border-top: 1px solid rgba(255,255,255,.06); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 60px var(--gutter) 40px; }
.footer h4 { color: var(--ink); font-size: .95rem; margin-bottom: 16px; }
.footer a { color: var(--muted); display: block; margin-bottom: 10px; font-size: .92rem; }
.footer a:hover { color: var(--accent-2); }
.footer p { color: #5a6275; font-size: .9rem; line-height: 1.6; }
.footer .logo-text { color: var(--ink); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding: 20px var(--gutter); font-size: .82rem; color: #4a5164; }

/* ---------- Внутренние страницы ---------- */
.page { padding: 72px 0; }
.page h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 20px; }
.page-head { max-width: 720px; margin-bottom: 44px; color: var(--muted); }
.section-block { margin-bottom: 44px; }
.section-block h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 18px; }

/* Таймлайн */
.timeline { border-left: 1px solid rgba(255,255,255,.12); padding-left: 26px; margin-left: 6px; }
.timeline-item { margin-bottom: 26px; position: relative; }
.timeline-item::before { content:""; position:absolute; left:-32px; top:3px; width:13px; height:13px; border-radius:50%; background:var(--bg); border:2px solid var(--accent); box-shadow:0 0 10px -2px var(--accent); }
.timeline-period { font-weight: 700; color: var(--accent-2); font-size: .9rem; }
.timeline-text { color: var(--ink-2); margin-top: 2px; }

/* Сертификаты */
.certs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 20px; }
.cert-card { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); border-radius: 14px; overflow: hidden; }
.cert-card img { width: 100%; height: 340px; object-fit: contain; background: #0e1420; }
.cert-card .cert-title { padding: 13px 16px; font-weight: 600; font-size: .9rem; text-align: center; border-top: 1px solid rgba(255,255,255,.07); }

/* Защита периметра */
.perim-intro { color: var(--muted); font-size: 1.05rem; max-width: 860px; margin-bottom: 22px; }
.perim-card { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); border-radius: 14px; padding: 28px; margin-bottom: 18px; }
.perim-card h3 { margin-bottom: 14px; }
.perim-card ul { padding-left: 20px; }
.perim-card li { color: var(--muted); margin-bottom: 8px; }

/* ---------- Форма / контакты (2 колонки) ---------- */
.contact-wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start; }
.contact-about .section-kicker { margin-bottom: 12px; }
.contact-about h1 { font-size: 2.1rem; font-weight: 800; margin-bottom: 16px; }
.contact-lead { color: var(--muted); font-size: 1.05rem; max-width: 480px; margin-bottom: 28px; }

.contact-trust { display: flex; flex-direction: column; gap: 14px; margin-bottom: 30px; }
.trust-badge {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border-radius: 14px; border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.03);
  transition: border-color .2s, box-shadow .2s;
}
.trust-badge:hover { border-color: var(--accent-line); box-shadow: var(--glow); }
.trust-badge-icon { flex: none; filter: drop-shadow(0 0 12px rgba(61,123,255,.45)); display:flex; align-items:center; justify-content:center; width:52px; height:52px; background: rgba(61,123,255,.12); border-radius: 12px; }
.trust-badge-icon svg { width: 34px; height: 34px; }
.trust-badge-text strong { display: block; color: var(--ink); font-size: .95rem; }
.trust-badge-text span { color: var(--muted); font-size: .82rem; }

.contact-channels .channels-label { display: block; color: var(--muted); font-size: .82rem; margin-bottom: 10px; }
.channels-btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.contact-form-panel {
  background: var(--glass); border: 1px solid rgba(255,255,255,.08); border-radius: 18px;
  padding: 32px; backdrop-filter: blur(14px); box-shadow: var(--shadow-2);
}
.contact-form .form-field { margin-bottom: 16px; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .88rem; color: var(--ink-2); }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px;
  font-family:'Inter'; font-size: .95rem; background: rgba(255,255,255,.04); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #4a5164; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(61,123,255,.2); }
.btn-block { width: 100%; text-align: center; }
.form-note { margin-top: 12px; font-size: .78rem; color: var(--muted); text-align: center; }

/* Резервная капча (появляется только при подозрении на бота) */
.cap-reserve { margin: 14px 0 16px; padding: 14px 16px; border: 1px solid rgba(61,123,255,.3); border-radius: 12px; background: rgba(61,123,255,.06); }
.cap-reserve label { margin-bottom: 8px; font-size: .9rem; color: var(--ink); }
.cap-reserve input { width: 100%; }
.cap-hint { margin-top: 8px; font-size: .78rem; color: var(--muted); }

/* Блок контактов без формы */
.contact-card .section-kicker { margin-bottom: 10px; }
.contact-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.contact-card .contact-lead { color: var(--muted); font-size: .95rem; margin-bottom: 24px; }
.contact-rows { display: grid; gap: 12px; }
.contact-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 12px;
  background: var(--surface); border: 1px solid rgba(255,255,255,.08);
  color: var(--ink); text-decoration: none;
  transition: border-color .2s, transform .2s, background .2s;
}
.contact-row:hover { border-color: var(--accent-line); transform: translateY(-2px); background: rgba(61,123,255,.08); }
.contact-row-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border-radius: 10px; background: rgba(61,123,255,.12); color: var(--accent-2); }
.contact-row-icon svg { width: 20px; height: 20px; }
.contact-row-body { display: flex; flex-direction: column; }
.contact-row-body strong { font-size: .92rem; color: var(--ink); }
.contact-row-body span { font-size: .85rem; color: var(--ink-2); }

.form-status { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-weight: 500; }
.form-status.success { background: rgba(34,211,165,.1); color: var(--ok); border: 1px solid rgba(34,211,165,.3); }
.form-status.error { background: rgba(240,78,78,.1); color:#ff7a7a; border: 1px solid rgba(240,78,78,.3); }

/* ---------- Защита периметра ---------- */
.perim-hero { margin-bottom: 52px; max-width: 820px; }
.perim-hero h1 { font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: 20px; }
.perim-sub { color: var(--muted); font-size: 1rem; margin: -12px 0 24px; }
.section-block h2 { font-size: 1.45rem; margin-bottom: 20px; }

/* Проблемы традиционной защиты */
.problem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 18px; }
.problem-card { padding: 26px 22px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); transition: border-color .25s, transform .25s; }
.problem-card:hover { border-color: rgba(240,78,78,.4); transform: translateY(-3px); }
.problem-icon { width: 42px; height: 42px; border-radius: 10px; background: rgba(240,78,78,.12); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.problem-icon svg { width: 22px; height: 22px; color: #ff7a7a; }
.problem-card h3 { font-size: 1rem; margin-bottom: 8px; color: #ffd0d0; }
.problem-card p { color: var(--muted); font-size: .9rem; line-height: 1.55; }

/* Преимущества (3 шага) */
.advantage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 18px; }
.advantage-card { padding: 28px 24px; border-radius: 16px; background: linear-gradient(150deg, rgba(61,123,255,.12), rgba(0,212,255,.04)); border: 1px solid var(--accent-line); transition: transform .25s, box-shadow .25s; }
.advantage-card:hover { transform: translateY(-4px); box-shadow: var(--glow); }
.advantage-icon { margin-bottom: 16px; display:flex; }
.advantage-icon svg, .advantage-icon svg * { width: 42px; height: 42px; max-width: 42px; max-height: 42px; flex: 0 0 auto; }
.advantage-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.advantage-card p { color: var(--ink-2); font-size: .92rem; line-height: 1.55; }

/* Табы (IP-камеры / Тепловизоры) */
.perim-tabs { margin-top: 8px; }
.tabs-nav { display: flex; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.tab-btn {
  padding: 11px 22px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03); color: var(--ink-2); font-family: 'Inter'; font-size: .92rem; font-weight: 600;
  cursor: pointer; transition: all .25s;
}
.tab-btn:hover { border-color: var(--accent-line); color: var(--ink); }
.tab-btn.is-active { background: linear-gradient(120deg,var(--accent),#6366f1); color:#fff; border-color: transparent; box-shadow: 0 6px 20px -8px rgba(61,123,255,.8); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: tabFade .4s ease; }
@keyframes tabFade { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }

.sol-topology, .sol-strengths, .sol-cameras, .sol-workflow, .sol-shots { margin-bottom: 22px; }
.sol-desc { color: var(--ink-2); font-size: 1rem; line-height: 1.6; margin-bottom: 20px; max-width: 800px; }
/* SVG-диаграммы */
.parking-svg { width: 100%; height: auto; max-width: 720px; border-radius: 14px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02); }
/* Изображения в статье */
.sol-figure { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); background: #fff; }
.sol-figure img { width: 100%; height: auto; display: block; object-fit: contain; }
.problem-card { position: relative; padding-top: 0; }
.prob-figure { margin: 0 0 18px; border-radius: 12px; overflow: hidden; }
.prob-figure img { width: 100%; height: 150px; object-fit: cover; display: block; }
.shot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 12px; }
.shot-grid img { width: 100%; border-radius: 12px; border: 1px solid rgba(255,255,255,.08); object-fit: cover; aspect-ratio: 4/3; }
.sol-label { display: block; font-size: .72rem; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.topology-flow { display: flex; gap: 10px; flex-wrap: wrap; }
.topo-chip { padding: 9px 16px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); font-size: .86rem; color: var(--ink-2); }
.sol-strengths { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 16px; }
.sol-card { padding: 20px 18px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); }
.sol-card h4 { font-size: .98rem; margin-bottom: 10px; color: var(--accent-2); }
.sol-card ul { margin:0; padding-left: 18px; }
.sol-card li { color: var(--muted); font-size: .88rem; margin-bottom: 6px; }
.cam-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.cam-chip { padding: 8px 14px; border-radius: 8px; background: linear-gradient(120deg, rgba(61,123,255,.15), rgba(0,212,255,.08)); border: 1px solid var(--accent-line); font-family: 'Menlo',monospace; font-size: .8rem; color: var(--accent-2); }

/* Сравнение дальности */
.compare-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 16px; }
.compare-card { padding: 22px 18px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); text-align: center; transition: transform .25s, box-shadow .25s; }
.compare-card:hover { transform: translateY(-4px); box-shadow: var(--glow); }
.compare-level { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px; border-radius: 30px; margin-bottom: 12px; }
.compare-level.is-lite { color: var(--muted); border: 1px solid rgba(255,255,255,.14); }
.compare-level.is-pro { color: var(--accent-2); border: 1px solid var(--accent-line); background: rgba(61,123,255,.1); }
.compare-camera { font-weight: 700; font-size: .98rem; margin-bottom: 12px; }
.compare-range { margin-bottom: 10px; }
.compare-range-num { font-family: 'Manrope'; font-size: 2.6rem; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.compare-card p { color: var(--muted); font-size: .82rem; line-height: 1.5; }

/* Установка */
.install-list { display: flex; flex-direction: column; gap: 12px; max-width: 800px; }
.install-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); }
.install-bullet { width: 28px; height: 28px; border-radius: 50%; background: rgba(34,211,165,.15); display: flex; align-items: center; justify-content: center; flex: none; }
.install-bullet svg { width: 16px; height: 16px; color: var(--ok); }
.install-item p { color: var(--ink-2); font-size: .95rem; line-height: 1.55; }

/* Продукция (аккордеон) */
.product-accordion { display: flex; flex-direction: column; gap: 10px; }
.product-item { border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(255,255,255,.03); overflow: hidden; }
.product-item summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--ink); font-size: .98rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.product-item summary::after { content: "+"; font-size: 1.3rem; color: var(--accent-2); transition: transform .2s; }
.product-item[open] summary::after { transform: rotate(45deg); }
.product-item summary::-webkit-details-marker { display: none; }
.product-body { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 4px 20px 18px; }
.product-figure { margin: 0 0 12px; border-radius: 12px; overflow: hidden; background: #fff; padding: 8px; }
.product-figure img { width: 100%; max-height: 160px; height: auto; display: block; object-fit: contain; }
.product-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.product-col { }
.product-col .product-level { display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border: 1px solid rgba(255,255,255,.14); padding: 3px 10px; border-radius: 20px; margin-bottom: 8px; }
.product-col .product-level.is-pro { color: var(--accent-2); border-color: var(--accent-line); background: rgba(61,123,255,.1); }
.product-col p { color: var(--muted); font-size: .88rem; line-height: 1.55; }

/* Истории успеха */
.cases-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 16px; }
.case-card { padding: 26px 22px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); transition: transform .25s, box-shadow .25s; }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--glow); }
.case-icon { margin-bottom: 12px; display:flex; }
.case-icon svg { width: 34px; height: 34px; }
.case-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.case-card p { color: var(--muted); font-size: .88rem; line-height: 1.55; }

/* CTA внизу статьи */
.perim-cta { margin-top: 40px; padding: 40px; border-radius: 18px; background: linear-gradient(150deg, rgba(61,123,255,.16), rgba(0,212,255,.05)); border: 1px solid var(--accent-line); text-align: center; }
.perim-cta h3 { font-size: 1.4rem; margin-bottom: 10px; }
.perim-cta p { color: var(--muted); margin-bottom: 20px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.25,.4,.25,1), transform .7s cubic-bezier(.25,.4,.25,1); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal[style*="--d"] { transition-delay: var(--d); }

/* ============================================================
   АНИМАЦИИ (hi-tech микродинамика)
   ============================================================ */

/* Плавное появление содержимого hero */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
.hero-eyebrow { animation: fadeUp .6s ease both; }
.hero-title   { animation: fadeUp .7s .08s ease both; }
.hero-lead    { animation: fadeUp .7s .16s ease both; }
.hero-cta     { animation: fadeUp .7s .24s ease both; }
.trustline    { animation: fadeUp .7s .32s ease both; }
.hero-metrics { animation: fadeUp .8s .4s ease both; }

/* «Дыхание» неонового свечения на интерактивных карточках */
@keyframes breathe {
  0%,100% { box-shadow: 0 0 12px -4px rgba(61,123,255,.35); }
  50%     { box-shadow: 0 0 24px -2px rgba(0,212,255,.55); }
}
.hero-metric, .feature, .process-step, .stat, .whyme-item, .card {
  animation: breathe 5s ease-in-out infinite;
}
.hero-metric:hover, .feature:hover, .process-step:hover, .stat:hover, .whyme-item:hover, .card:hover { animation-play-state: paused; }

/* Мягкое «парящее» покачивание геро-орбит отключено — оставляем статичные, чтобы не отвлекать. */

/* Плавный градиентный сдвиг на CTA */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.btn-primary { background-size: 200% auto; animation: gradientShift 6s ease infinite; }
.cta-final .btn-primary { animation: none; }

/* Плавная пульсация точки-индикатора (декоративная, не используется в разметке — резерв). */

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: opacity .2s !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
  .process-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .whyme-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-metrics { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; gap: 36px; }
  .flip-grid.bento { grid-template-columns: 1fr; grid-template-rows: auto; max-width: 560px; }
  .flip-grid.bento .flip-card { height: 200px; grid-column: 1; grid-row: auto !important; }
  .flip-grid.bento .flip-card:not(:nth-child(1)) .flip-inner { display: block; }
  .flip-grid.bento .flip-card:nth-child(6) { height: 260px; }
  .flip-grid.bento .flip-card:nth-child(6) .flip-front { flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px 18px; }
  .flip-grid.bento .flip-card:nth-child(6) .flip-icon { margin: 0 0 14px; }
}
@media (max-width: 820px) {
  .nav {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    flex-direction: column; align-items: stretch; background: rgba(7,11,20,.95); backdrop-filter: blur(16px);
    padding: 90px 20px 30px; gap: 4px; transition: right .3s; box-shadow: var(--shadow-2); z-index: 70;
  }
  .nav.open { right: 0; }
  .nav a { padding: 12px 14px; }
  .nav-drop { width: 100%; }
  .nav-drop-menu { display: flex; position: static; flex-direction: column; gap: 2px; min-width: 0; padding: 4px 4px 4px 16px; background: none; box-shadow: none; backdrop-filter: none; }
  .nav-drop:hover .nav-drop-menu { display: flex; }
  .nav-drop .caret { display: none; }
  .nav-toggle { display: block; }
  .hero-premium { padding: 78px 0 66px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pain-wrap { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .whyme-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .section { padding: 66px 0; }
}

/* ---------- Мои проекты ---------- */
.myprojects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 22px; }
.myproject-card { padding: 26px 24px; border-radius: 18px; background: linear-gradient(155deg, rgba(61,123,255,.1), rgba(0,212,255,.03)); border: 1px solid var(--accent-line); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.myproject-card:hover { transform: translateY(-4px); box-shadow: var(--glow); }
.myproject-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.myproject-icon { display: flex; align-items: center; }
.myproject-icon svg, .myproject-icon svg * { width: 40px; height: 40px; max-width: 40px; max-height: 40px; flex: 0 0 auto; }
.myproject-badge { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 12px; border-radius: 20px; background: rgba(0,212,255,.14); color: var(--accent-2); border: 1px solid var(--accent-line); }
.myproject-badge.is-in-progress { background: rgba(240,196,80,.14); color: #ffd97a; border-color: rgba(240,196,80,.3); }
.myproject-badge.is-done { background: rgba(80,210,120,.14); color: #7ee2a0; border-color: rgba(80,210,120,.3); }
.myproject-title { font-size: 1.15rem; margin-bottom: 6px; }
.myproject-sub { color: var(--muted); font-size: .9rem; line-height: 1.5; margin-bottom: 18px; }
.myproject-summary { color: var(--ink-2); font-size: .92rem; line-height: 1.55; margin: 18px 0 16px; }
.myproject-benefits { margin: 0 0 22px; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.myproject-benefits li { position: relative; padding-left: 22px; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.myproject-benefits li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--accent-2); font-weight: 700; }

/* Прогресс готовности */
.progress { width: 100%; height: 10px; border-radius: 20px; background: rgba(255,255,255,.07); overflow: hidden; }
.progress.progress-lg { height: 16px; margin-bottom: 12px; }
.progress-bar { height: 100%; border-radius: 20px; background: linear-gradient(90deg, var(--accent), #00d4ff); transition: width .6s ease; }
.progress-meta { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .82rem; margin-top: 8px; }
.progress-meta strong { color: var(--accent-2); font-size: 1rem; }

/* Страница отдельного проекта */
.backlink { margin-bottom: 10px; }
.backlink a { color: var(--accent-2); font-size: .9rem; }
.proj-note { color: var(--muted); font-size: .86rem; margin-top: 12px; }
.proj-lead { color: var(--ink-2); font-size: 1.05rem; line-height: 1.65; }
.btn-sm { padding: 8px 16px; font-size: .85rem; }

/* ---------- Декоративный PCB-фон (дорожки печатной платы) ---------- */
.pcb-bg {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: .8;
  /* затемняем к низу и оставляем читабельным центр контента */
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.7) 34%, transparent 62%);
}
/* импульсы "тока" по магистралям — длинные светящиеся протуберанцы */
.pulse {
  stroke-width: 2.6; stroke-linecap: round;
  filter: drop-shadow(0 0 4px currentColor) drop-shadow(0 0 12px currentColor);
  stroke-dasharray: 46 340; stroke-dashoffset: 0;
  animation: flow 3.4s linear infinite;
}
.pulse.p2 { animation-duration: 4.2s; animation-delay: .7s; stroke-width: 3; }
.pulse.p3 { animation-duration: 3.9s; animation-delay: 1.4s; }
.pulse.p4 { animation-duration: 4.6s; animation-delay: 2s; stroke-width: 3; }
.pulse.p5 { animation-duration: 4.1s; animation-delay: .3s; }
.pulse.p6 { animation-duration: 3.7s; animation-delay: 1s; }
.pulse.p7 { animation-duration: 4.4s; animation-delay: .4s; }
.pulse.p8 { animation-duration: 3.5s; animation-delay: 1.8s; stroke-width: 3; }
.pulse.p9 { animation-duration: 4.8s; animation-delay: 2.4s; }
@keyframes flow { to { stroke-dashoffset: -386; } }

/* Слой PCB не должен перехватывать клики */
.pcb-bg { pointer-events: none; }
/* на устройствах с preference reduce отключаем анимацию импульсов */
@media (prefers-reduced-motion: reduce) {
  .pulse { animation: none; opacity: .6; }
}

/* PCB-слой должен лежать ПОД контентом: main и topbar поднимаем над ним (header/footer уже выше по z-index) */
main, .topbar { position: relative; z-index: 1; }

/* ---------- Согласие на обработку ПД (форма) ---------- */
.consent-check { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 18px; cursor: pointer; font-size: .82rem; color: var(--muted); line-height: 1.5; }
.consent-check input[type="checkbox"] { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--accent); cursor: pointer; }
.consent-check a { color: var(--accent-2); text-decoration: underline; }

/* ---------- Юридические страницы (согласие / политика) ---------- */
.legal-block { max-width: 820px; padding: 30px 0 60px; }
.legal-block h1 { font-size: 1.8rem; margin-bottom: 22px; }
.legal-block h2 { font-size: 1.2rem; margin: 26px 0 12px; color: var(--accent-2); }
.legal-block p { color: var(--ink-2); margin-bottom: 14px; line-height: 1.7; }
.legal-block ol, .legal-block ul { margin: 0 0 16px 20px; color: var(--ink-2); line-height: 1.7; }
.legal-block li { margin-bottom: 10px; }
.legal-block a { color: var(--accent-2); text-decoration: underline; }

/* ---------- Скрытая страница "Команды агента" (tool-tools) ---------- */
.tool-list { display: flex; flex-direction: column; gap: 14px; }
.tool-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); transition: border-color .2s, box-shadow .2s; }
.tool-card:hover { border-color: var(--accent-line); box-shadow: var(--glow); }
.tool-info { display: flex; flex-direction: column; gap: 4px; }
.tool-label { font-weight: 600; font-size: .98rem; color: var(--ink); }
.tool-note { color: var(--muted); font-size: .84rem; line-height: 1.5; }
.tool-copy { flex: none; }
/* ---------- Калькулятор ИТ-сопровождения ---------- */
.calc-wrap {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 34px;
  max-width: 920px;
  margin: 0 auto;
}
.calc-tariffs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 30px;
}
.calc-tariff {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  text-align: left;
  padding: 20px 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.10);
  color: var(--ink);
  cursor: pointer;
  transition: transform .25s, border-color .25s, box-shadow .25s, background .25s;
  font: inherit;
}
.calc-tariff:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.calc-tariff.active {
  border-color: var(--accent);
  background: rgba(61,123,255,.12);
  box-shadow: var(--glow);
}
.calc-tariff-name { font-weight: 600; font-size: 1.02rem; }
.calc-tariff-tag { font-size: .76rem; color: var(--accent-2); text-transform: uppercase; letter-spacing: .06em; }
.calc-tariff-price { font-size: .88rem; color: var(--ink-2); }
.calc-tariff-price b { font-size: 1.12rem; color: var(--ink); }
.calc-badge {
  position: absolute; top: -10px; right: 12px;
  background: linear-gradient(120deg, var(--accent), #6366f1);
  color: #fff; font-size: .68rem; font-weight: 600;
  padding: 4px 10px; border-radius: 20px;
}
.calc-sliders { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 28px; }
.calc-field label { display: block; font-size: .88rem; color: var(--ink-2); margin-bottom: 8px; }
.calc-range-row { display: flex; align-items: center; gap: 12px; }
.calc-range { flex: 1; accent-color: var(--accent); height: 6px; cursor: pointer; }
.calc-range-val { min-width: 36px; text-align: right; font-weight: 600; color: var(--accent-2); font-size: 1.05rem; }
.calc-range-unit { color: var(--muted); font-size: .82rem; }
.calc-result {
  text-align: center;
  padding: 26px 20px;
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(61,123,255,.14), rgba(99,102,241,.12));
  border: 1px solid var(--accent-line);
}
.calc-result-label { font-size: .82rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .08em; }
.calc-result-price { font-size: 2.6rem; font-weight: 700; color: var(--ink); line-height: 1.1; margin: 6px 0 2px; }
.calc-result-price small { font-size: 1rem; color: var(--muted); font-weight: 400; }
.calc-result-note { color: var(--muted); font-size: .86rem; margin-bottom: 20px; min-height: 1.2em; }
.calc-cta { margin-top: 4px; }
.calc-disclaimer { max-width: 720px; margin: 22px auto 0; text-align: center; color: var(--muted); font-size: .78rem; }

@media (max-width: 720px) {
  .calc-tariffs { grid-template-columns: 1fr; }
  .calc-wrap { padding: 22px; }
}

/* ---------- Модальное окно: калькулятор ---------- */
.calc-open-btn { margin-top: 18px; width: auto; }
.calc-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.calc-modal.open { display: flex; }
.calc-modal-overlay {
  position: absolute; inset: 0;
  background: rgba(4, 8, 16, .72);
  backdrop-filter: blur(4px);
}
.calc-modal-dialog {
  position: relative;
  width: 100%; max-width: 760px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--bg-2);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px;
  padding: 34px 30px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.9);
}
.calc-modal-close {
  position: absolute; top: 14px; right: 18px;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; line-height: 1; color: var(--muted);
  background: var(--surface); border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; cursor: pointer;
  transition: color .2s, border-color .2s, transform .2s;
}
.calc-modal-close:hover { color: var(--ink); border-color: var(--accent-line); transform: rotate(90deg); }
.calc-modal-body h2 { font-size: 1.6rem; color: var(--ink); margin: 8px 0 6px; }
.calc-modal-sub { color: var(--muted); margin-bottom: 24px; }
.calc-modal .calc-wrap { background: var(--surface); border-color: rgba(255,255,255,.08); }
body.no-scroll { overflow: hidden; }

@media (max-width: 720px) {
  .calc-modal-dialog { padding: 26px 16px; }
  .calc-modal-body h2 { font-size: 1.3rem; }
}

/* ---------- Hero: переключатель направлений ---------- */
.hero-tabs {
  display: flex; flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 8px;
  margin: 0 0 40px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.hero-tabs::-webkit-scrollbar { height: 4px; }
.hero-tabs::-webkit-scrollbar-thumb { background: var(--accent-line); border-radius: 4px; }
.hero-tab {
  flex: 0 0 auto;
  display: inline-flex; align-items: center;
  padding: 10px 18px;
  font: inherit; font-size: .9rem; font-weight: 500;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .25s, border-color .25s, background .25s, transform .25s, box-shadow .25s;
}
.hero-tab:hover { color: var(--ink); border-color: var(--accent-line); transform: translateY(-1px); }
.hero-tab.active {
  color: #fff;
  background: rgba(61,123,255,.16);
  border-color: var(--accent);
  box-shadow: var(--glow);
}
.hero-pane[hidden] { display: none; }

/* Контентная часть: текст слева + иконка-бейдж справа */
.hero-content {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 48px;
  align-items: center;
  text-align: left;
  max-width: 960px;
  margin: 0 auto;
}
.hero-copy .hero-title { margin-bottom: 20px; }
.hero-copy .hero-lead { margin: 0 0 32px; }
.hero-emblem {
  display: flex; align-items: center; justify-content: center;
  width: 200px; height: 200px;
  border-radius: 28px;
  background: radial-gradient(circle at 30% 20%, rgba(61,123,255,.25), rgba(0,212,255,.08) 60%, transparent);
  border: 1px solid var(--accent-line);
  box-shadow: var(--glow), inset 0 0 40px rgba(0,212,255,.05);
}
.hero-emblem-icon { color: var(--accent-2); display: flex; align-items: center; justify-content: center; }
.hero-emblem-icon svg { width: 96px; height: 96px; filter: drop-shadow(0 0 14px rgba(0,212,255,.5)); }

.hero-pane.active .hero-title { animation: fadeUp .6s ease both; }
.hero-pane.active .hero-lead  { animation: fadeUp .6s .08s ease both; }
.hero-pane.active .hero-cta   { animation: fadeUp .6s .16s ease both; }

@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .hero-emblem { margin: 0 auto; }
}
@media (max-width: 720px) {
  .hero-tabs { margin-bottom: 26px; }
  .hero-tab { padding: 8px 14px; font-size: .82rem; }
  .hero-emblem { width: 140px; height: 140px; border-radius: 22px; }
  .hero-emblem-icon svg { width: 64px; height: 64px; }
}

/* ---------- Кнопка «Подробнее» в услугах ---------- */
.flip-back .flip-back-btn { margin-top: 16px; align-self: flex-start; }
/* Карточка «Телефония AIVA» (6-я): крупнее, весь низ сетки, чтобы влезал текст */
.flip-grid.bento .flip-card:nth-child(6) { grid-column: 1 / span 3; grid-row: 3 / span 2; }
.flip-grid.bento .flip-card:nth-child(6) .flip-front { text-align: left; }
.flip-grid.bento .flip-card:nth-child(6) .flip-front { flex-direction: column; align-items: flex-start; justify-content: center; padding: 28px 34px; }
.flip-grid.bento .flip-card:nth-child(6) .flip-icon { margin: 0 0 18px; }
.flip-grid.bento .flip-card:nth-child(6) .flip-icon svg { width: 44px; height: 44px; }
.flip-grid.bento .flip-card:nth-child(6) h3 { font-size: 1.3rem; }
.flip-grid.bento .flip-card:nth-child(6) .flip-hint { display: block; margin-top: 12px; }
.flip-grid.bento .flip-card:nth-child(6) .flip-back { justify-content: flex-start; padding: 30px 34px; }
.flip-grid.bento .flip-card:nth-child(6) .flip-back p { font-size: .92rem; max-width: 720px; }
.flip-grid.bento .flip-card:nth-child(6) .flip-back-btn { margin-top: 22px; }
.svc-more-btn { align-self: center; }
