/* ==============================================================
   site_13 — Blueprint | Space Grotesk | #0C4A6E / #0EA5E9
   Light theme · Engineering precision · Blueprint aesthetic
   ============================================================== */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --primary:      #0C4A6E;
  --primary-dark: #083350;
  --accent:       #0EA5E9;
  --accent-dark:  #0284C7;
  --bg:           #FFFFFF;
  --bg-alt:       #F0F9FF;
  --bg-subtle:    #F8FAFC;
  --hero-bg:      #0C4A6E;
  --text:         #1e293b;
  --text-light:   #475569;
  --muted:        #64748b;
  --border:       #CBD5E1;
  --border-light: #E2E8F0;
  --dark:         #0C1221;
  --white:        #FFFFFF;
  --success:      #10b981;
  --danger:       #ef4444;

  --grid-line:    rgba(14,165,233,0.14);
  --dash:         rgba(14,165,233,0.55);

  --radius:       2px;
  --radius-md:    4px;
  --radius-lg:    8px;
  --shadow-sm:    0 1px 4px rgba(12,74,110,0.07);
  --shadow:       0 4px 20px rgba(12,74,110,0.10);
  --shadow-lg:    0 16px 48px rgba(12,74,110,0.15);
  --container:    1200px;
  --transition:   220ms cubic-bezier(0.4,0,0.2,1);
  --font:         'Space Grotesk', -apple-system, sans-serif;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.15;
  color: var(--dark);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(30px, 4.5vw, 52px); }
h2 { font-size: clamp(24px, 3.2vw, 40px); margin-bottom: 12px; }
h3 { font-size: clamp(17px, 1.8vw, 21px); }

p { color: var(--text); }

/* ── Container ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; position: relative; }

/* ── Blueprint section label ──────────────────────────────── */
.section-title {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 16px;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 48px; height: 2px;
  background: var(--accent);
}
.section-subtitle {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 48px;
  max-width: 640px;
  font-weight: 400;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(14,165,233,0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-block { width: 100%; }

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(8px);
  transition: box-shadow var(--transition);
}
.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(12,74,110,0.10);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  color: inherit;
}
.logo:hover { color: inherit; }
.logo__mark {
  width: 38px; height: 38px;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  flex-shrink: 0;
  position: relative;
}
.logo__mark::after {
  content: '';
  position: absolute;
  inset: -3px;
  border: 1.5px dashed var(--accent);
  border-radius: var(--radius-md);
  opacity: 0.6;
}
.logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.logo__name { font-weight: 700; font-size: 15px; color: var(--primary); }
.logo__tag { font-size: 11px; color: var(--muted); font-weight: 400; letter-spacing: 0.02em; }

/* Nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.header-nav a {
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  white-space: nowrap;
}
.header-nav a:hover {
  color: var(--primary);
  background: var(--bg-alt);
}

/* Header CTA */
.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.header-phone {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.2;
}
.header-phone__num {
  font-weight: 700;
  font-size: 15px;
  color: var(--primary);
}
.header-phone__hint {
  font-size: 11px;
  color: var(--muted);
}
.header-phone:hover .header-phone__num { color: var(--accent); }

/* Burger */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--primary);
  font-size: 20px;
  margin-left: auto;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  background-color: var(--hero-bg);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
}

/* Subtle vignette */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(14,165,233,0.08) 0%, transparent 65%);
  pointer-events: none;
}

/* Blueprint corner marks */
.hero::after {
  content: '';
  position: absolute;
  top: 20px; right: 20px;
  width: 80px; height: 80px;
  border-top: 1.5px solid rgba(14,165,233,0.4);
  border-right: 1.5px solid rgba(14,165,233,0.4);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(14,165,233,0.10);
  border: 1px solid rgba(14,165,233,0.30);
  padding: 5px 12px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}
.dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.hero__text h1 {
  color: var(--white);
  margin-bottom: 20px;
}
.hero__text h1 span {
  color: var(--accent);
}
.hero__sub {
  color: rgba(255,255,255,0.75);
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 520px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.hero__metrics {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero__metric-num {
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.hero__metric-label {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* Hero visual */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__visual-blob {
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse at center, rgba(14,165,233,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.hero__visual svg {
  width: 100%;
  max-width: 480px;
  height: auto;
  filter: drop-shadow(0 8px 32px rgba(14,165,233,0.2));
}

/* ── Pains ──────────────────────────────────────────────────── */
.pains {
  background: var(--bg-subtle);
  padding: 88px 0;
  position: relative;
}
.pains::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.pains__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pain {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--accent);
  padding: 24px;
  border-radius: var(--radius-md);
  transition: box-shadow var(--transition), transform var(--transition);
}
.pain:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.pain__icon {
  width: 44px; height: 44px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 18px;
  margin-bottom: 16px;
}
.pain h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary);
}
.pain p { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* ── Services ───────────────────────────────────────────────── */
.services {
  background: var(--bg);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Blueprint card */
.service {
  background: var(--bg);
  border: 1.5px dashed var(--border);
  padding: 28px;
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
/* Corner marks — blueprint callout */
.service::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 20px; height: 20px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}
.service::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 20px; height: 20px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}
.service:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(14,165,233,0.20), var(--shadow);
}

.service__visual {
  width: 64px; height: 64px;
  color: var(--accent);
  margin-bottom: 20px;
  flex-shrink: 0;
}
.service__visual svg {
  width: 64px; height: 64px;
}
.service__body { flex: 1; display: flex; flex-direction: column; }
.service__body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
.service__desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}
.service__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
  flex: 1;
}
.service__features li {
  font-size: 13px;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
  font-weight: 400;
}
.service__features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.service__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  margin-top: auto;
}
.service__price {
  font-size: 13px;
  color: var(--muted);
}
.service__price strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}
.service__btn {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  transition: color var(--transition);
}
.service__btn:hover { color: var(--accent-dark); }

/* ── Advantages ─────────────────────────────────────────────── */
.advantages {
  background: var(--primary);
  background-image:
    linear-gradient(rgba(14,165,233,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  position: relative;
}
.advantages .section-title { color: var(--white); }
.advantages .section-title::after { background: var(--accent); }
.advantages .section-subtitle { color: rgba(255,255,255,0.65); }

.advantages__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

.advantage {
  padding: 36px 28px;
  background: transparent;
  border: none;
  transition: background var(--transition);
  position: relative;
}
.advantage:hover { background: rgba(255,255,255,0.04); }
.advantage::before {
  content: '';
  position: absolute;
  top: 16px; right: 16px;
  width: 12px; height: 12px;
  border-top: 1.5px solid rgba(14,165,233,0.4);
  border-right: 1.5px solid rgba(14,165,233,0.4);
}

.advantage__num {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.advantage h3 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 8px;
}
.advantage p { color: rgba(255,255,255,0.60); font-size: 14px; line-height: 1.55; }

/* ── Steps ──────────────────────────────────────────────────── */
.steps { background: var(--bg-subtle); }

.steps__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}
.steps__list::after {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(10% + 14px);
  right: calc(10% + 14px);
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--accent) 0, var(--accent) 6px, transparent 6px, transparent 12px);
}

.step {
  padding: 0 16px 0;
  position: relative;
  text-align: center;
}
.step::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: 50%;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  font-family: var(--font);
}
.steps__list { counter-reset: step-counter; }
.step h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.step p { font-size: 13px; color: var(--text-light); line-height: 1.6; }

/* ── Portfolio ──────────────────────────────────────────────── */
.portfolio { background: var(--bg); }

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.portfolio-item {
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--bg);
}
.portfolio-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.portfolio-item__visual {
  height: 220px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  position: relative;
  overflow: hidden;
}
.portfolio-item__visual svg {
  width: 80px; height: 80px;
  opacity: 0.4;
}
.portfolio-item__label {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--primary);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: var(--radius-md);
}
.portfolio-item__body { padding: 20px 24px; }
.portfolio-item__body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}
.portfolio-item__meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.portfolio-item__result {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
  background: rgba(16,185,129,0.08);
  padding: 3px 10px;
  border-radius: var(--radius-md);
}
.portfolio-item__result::before { content: '✓'; }

/* ── Reviews ────────────────────────────────────────────────── */
.reviews { background: var(--bg-subtle); }

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.review {
  background: var(--bg);
  border: 1.5px dashed var(--border);
  padding: 28px;
  position: relative;
  transition: border-color var(--transition);
}
.review::before {
  content: '"';
  position: absolute;
  top: 20px; right: 24px;
  font-size: 64px;
  line-height: 1;
  color: var(--bg-alt);
  font-family: Georgia, serif;
}
.review:hover { border-color: var(--accent); }
.review__stars {
  color: #F59E0B;
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.review__text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 20px;
}
.review__author { display: flex; align-items: center; gap: 12px; }
.review__avatar {
  width: 40px; height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.review__meta { display: flex; flex-direction: column; line-height: 1.3; }
.review__meta strong { font-size: 14px; color: var(--primary); }
.review__meta span { font-size: 12px; color: var(--muted); }

/* ── Form section ───────────────────────────────────────────── */
.form-section {
  background: var(--hero-bg);
  background-image:
    linear-gradient(rgba(14,165,233,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,0.10) 1px, transparent 1px);
  background-size: 40px 40px;
  padding: 88px 0;
}

.form-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.form-section__text h2 {
  color: var(--white);
  margin-bottom: 16px;
}
.form-section__lead {
  color: rgba(255,255,255,0.75);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 28px;
}
.form-section__perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.form-section__perks li {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  padding-left: 22px;
  position: relative;
}
.form-section__perks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.form-card {
  background: var(--bg);
  border: 1.5px dashed var(--border);
  padding: 36px;
  position: relative;
}
.form-card::before {
  content: '';
  position: absolute;
  top: -1px; left: 20px;
  width: 60px; height: 3px;
  background: var(--accent);
}
.form-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.form-card__sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.12);
}
.form-policy {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}
.form-policy a { color: var(--accent); }

.form-success {
  text-align: center;
  padding: 24px 0;
}
.form-success__icon {
  width: 56px; height: 56px;
  background: rgba(16,185,129,0.10);
  border: 2px solid var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--success);
  margin: 0 auto 16px;
}
.form-success h3 { color: var(--primary); margin-bottom: 8px; }
.form-success p { font-size: 15px; color: var(--text-light); }

#form-error {
  color: var(--danger);
  font-size: 13px;
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(239,68,68,0.06);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--danger);
}

/* ── FAQ ────────────────────────────────────────────────────── */
.faq { background: var(--bg-subtle); }

.faq__list { display: flex; flex-direction: column; gap: 2px; max-width: 820px; }

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.is-open,
.faq-item:hover { border-color: var(--accent); }

.faq-item__q {
  width: 100%;
  text-align: left;
  padding: 18px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color var(--transition);
}
.faq-item__q::after {
  content: '+';
  font-size: 20px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item.is-open .faq-item__q::after {
  transform: rotate(45deg);
}

.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 320ms ease;
}
.faq-item__a-inner {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ── SEO text ───────────────────────────────────────────────── */
.seo-text {
  background: var(--bg);
  border-top: 1px solid var(--border-light);
  padding: 72px 0;
}
.seo-text__inner {
  max-width: 820px;
}
.seo-text__inner h2 {
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 20px;
}
.seo-text__inner p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-light);
  margin-bottom: 16px;
}
.seo-text__inner strong { color: var(--text); }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 8px;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--accent); }
.footer-contacts { list-style: none; }
.footer-contacts li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
}
.footer-contacts li i {
  color: var(--accent);
  width: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}
.footer-contacts a { display: inline; color: rgba(255,255,255,0.75); margin: 0; }
.footer-contacts a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: rgba(255,255,255,0.35); }
.footer-bottom a:hover { color: var(--accent); }

/* ── Popup ──────────────────────────────────────────────────── */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}
.popup-overlay.is-visible {
  opacity: 1;
  pointer-events: all;
}
.popup {
  background: var(--bg);
  border: 1.5px dashed var(--border);
  padding: 44px;
  max-width: 440px;
  width: 100%;
  position: relative;
  text-align: center;
}
.popup::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 24px; height: 24px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}
.popup::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 24px; height: 24px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}
.popup__close {
  position: absolute;
  top: 14px; right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: var(--muted);
  line-height: 1;
  padding: 4px;
  transition: color var(--transition);
}
.popup__close:hover { color: var(--danger); }
.popup__icon {
  width: 52px; height: 52px;
  background: var(--bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 20px;
  margin: 0 auto 16px;
}
.popup__title { color: var(--primary); margin-bottom: 10px; }
.popup__text {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 24px;
}
.popup__btn { width: 100%; }
.popup__note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}

/* ── Messenger buttons ──────────────────────────────────────── */
.messenger-buttons {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 90;
}
.messenger-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: transform var(--transition), box-shadow var(--transition);
  font-size: 13px;
  font-weight: 700;
}
.messenger-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(0,0,0,0.30);
  color: var(--white);
}
.messenger-btn svg { width: 24px; height: 24px; }
.messenger-btn--tg { background: #229ED9; }
.messenger-btn--max { background: var(--primary); }

/* ── Reveal animation ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .pains__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .steps__list { grid-template-columns: repeat(3, 1fr); }
  .steps__list::after { display: none; }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { display: none; }
  .advantages__grid { grid-template-columns: repeat(2, 1fr); }
  .form-section__grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }

  /* Mobile: hide CTA button in header */
  .header-cta .btn { display: none; }

  .header-nav {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border-light);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px;
    gap: 2px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  }
  .header-nav.is-open { display: flex; }
  .header-nav a { padding: 12px 16px; }

  .header-cta { gap: 10px; }
  .header-phone__hint { display: none; }
  .burger { display: flex; }

  .hero { padding: 100px 0 60px; }
  .hero__metrics { gap: 24px; }

  .pains__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .advantages__grid { grid-template-columns: 1fr; }
  .steps__list { grid-template-columns: 1fr 1fr; }
  .portfolio__grid { grid-template-columns: 1fr; }
  .reviews__grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .popup { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .steps__list { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}
