/* =====================================================
   Алмазное сверление — style.css  (Diamond Cut)
   Syne headings + Inter body · Graphite #1C1917 + Gold #D97706
   ===================================================== */

/* ===== TOKENS ===== */
:root {
  --primary: #1C1917;
  --primary-light: #292524;
  --primary-mid: #44403C;
  --gold: #D97706;
  --gold-light: #F59E0B;
  --gold-pale: #FEF3C7;
  --cta: #D97706;
  --cta-hover: #B45309;
  --text: #1C1917;
  --text-soft: #57534E;
  --text-muted: #78716C;
  --bg: #FAFAF9;
  --bg-alt: #F5F5F4;
  --border: #E7E5E4;
  --white: #FFFFFF;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);
  --font-head: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
  --header-h: 72px;
  --container: 1200px;
  --gap: 28px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
input, textarea { font: inherit; }
svg { display: inline-block; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.1rem; }

/* ===== CONTAINER ===== */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; font-size: .9375rem; font-weight: 600;
  font-family: var(--font-head); letter-spacing: .03em;
  border-radius: var(--radius); cursor: pointer; transition: all 200ms ease;
  text-decoration: none; border: 2px solid transparent; white-space: nowrap;
}
.btn-primary {
  background: var(--cta); color: var(--white); border-color: var(--cta);
}
.btn-primary:hover { background: var(--cta-hover); border-color: var(--cta-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(217,119,6,.3); }
.btn-ghost {
  background: transparent; color: var(--white); border-color: rgba(255,255,255,.45);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-outline {
  background: transparent; color: var(--cta); border-color: var(--cta);
}
.btn-outline:hover { background: var(--cta); color: var(--white); }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h); background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 200ms;
}
.site-header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.08); }
.site-header__inner {
  height: 100%; display: flex; align-items: center; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo__mark {
  width: 40px; height: 40px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-family: var(--font-head); font-weight: 800; font-size: 1.1rem;
  border: 1px solid rgba(217,119,6,.3);
}
.logo__name { display: block; font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--primary); line-height: 1.2; }
.logo__tag { display: block; font-size: .7rem; color: var(--text-muted); line-height: 1; }
.header-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.header-nav a {
  padding: 6px 12px; border-radius: var(--radius);
  font-size: .875rem; font-weight: 500; color: var(--text-soft);
  transition: color 150ms, background 150ms;
}
.header-nav a:hover { color: var(--text); background: var(--bg-alt); }
.header-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-phone { text-align: right; }
.header-phone__num { display: block; font-family: var(--font-head); font-weight: 700; font-size: .9375rem; color: var(--primary); line-height: 1.2; }
.header-phone__hint { display: block; font-size: .7rem; color: var(--text-muted); }
.burger {
  display: none; width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: var(--radius); color: var(--text);
  transition: background 150ms;
}
.burger:hover { background: var(--bg-alt); }
.burger svg { width: 22px; height: 22px; }

/* ===== SECTION TITLES ===== */
.section-title { text-align: center; margin-bottom: 12px; }
.section-subtitle { text-align: center; color: var(--text-soft); max-width: 600px; margin: 0 auto 48px; font-size: .9375rem; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(140deg, #0C0A09 0%, #1C1917 35%, #292524 65%, #1C1917 100%);
  padding: calc(var(--header-h) + 48px) 0 72px;
  position: relative; overflow: hidden;
}
/* Gold particle decorations */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle 1.5px at 12% 20%, rgba(217,119,6,.6) 0%, transparent 100%),
    radial-gradient(circle 2px at 25% 70%, rgba(245,158,11,.5) 0%, transparent 100%),
    radial-gradient(circle 1px at 40% 15%, rgba(217,119,6,.4) 0%, transparent 100%),
    radial-gradient(circle 2.5px at 60% 80%, rgba(245,158,11,.4) 0%, transparent 100%),
    radial-gradient(circle 1.5px at 78% 35%, rgba(217,119,6,.5) 0%, transparent 100%),
    radial-gradient(circle 1px at 85% 65%, rgba(245,158,11,.35) 0%, transparent 100%),
    radial-gradient(circle 1px at 92% 20%, rgba(217,119,6,.4) 0%, transparent 100%),
    radial-gradient(circle 1.5px at 5% 80%, rgba(245,158,11,.3) 0%, transparent 100%),
    radial-gradient(circle 1px at 68% 50%, rgba(217,119,6,.3) 0%, transparent 100%),
    radial-gradient(circle 1px at 35% 45%, rgba(245,158,11,.25) 0%, transparent 100%);
  pointer-events: none;
}
/* Subtle gold glow bottom */
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(217,119,6,.7), rgba(245,158,11,.5), rgba(217,119,6,.7), transparent);
  pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(217,119,6,.12); border: 1px solid rgba(217,119,6,.35);
  color: var(--gold-light); border-radius: 50px; padding: 6px 14px; font-size: .8rem; font-weight: 600;
  margin-bottom: 20px; font-family: var(--font-head);
}
.dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:.3;} }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 span { color: var(--gold-light); }
.hero__sub { color: rgba(255,255,255,.75); max-width: 500px; margin-bottom: 32px; line-height: 1.65; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero__metrics { display: flex; gap: 32px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); padding-top: 28px; }
.hero__metric-num { font-family: var(--font-head); font-size: 1.25rem; font-weight: 800; color: var(--gold-light); line-height: 1.2; }
.hero__metric-label { font-size: .75rem; color: rgba(255,255,255,.5); margin-top: 2px; }
.hero__visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero__visual-blob {
  position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,119,6,.12) 0%, rgba(217,119,6,.04) 60%, transparent 80%);
  pointer-events: none;
}
.hero__visual svg { width: 100%; max-width: 420px; height: auto; position: relative; z-index: 1; }

/* ===== PAINS ===== */
.pains { padding: 80px 0; background: var(--bg-alt); }
.pains__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.pain {
  background: var(--white); border-radius: var(--radius-lg);
  border-top: 3px solid var(--gold); border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  padding: 28px 24px; box-shadow: var(--shadow-sm);
  transition: transform 200ms, box-shadow 200ms;
}
.pain:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pain__icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--gold-pale); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.pain__icon svg { width: 24px; height: 24px; }
.pain h3 { font-family: var(--font-head); font-size: 1rem; margin-bottom: 8px; }
.pain p { font-size: .875rem; color: var(--text-soft); line-height: 1.6; }

/* ===== SERVICES ===== */
.services { padding: 80px 0; }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.service {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); border-top: 3px solid var(--gold);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform 200ms, box-shadow 200ms;
  display: flex; flex-direction: column;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service__visual {
  height: 120px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6); position: relative; overflow: hidden;
}
.service__visual svg { width: 52px; height: 52px; }
/* Gold shimmer on hover */
.service__visual::after {
  content: ''; position: absolute; top: -50%; left: -60%; width: 40%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(217,119,6,.15), transparent);
  transform: skewX(-15deg); transition: left 500ms ease; pointer-events: none;
}
.service:hover .service__visual::after { left: 120%; }
.service__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.service__body h3 { font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 8px; }
.service__desc { font-size: .875rem; color: var(--text-soft); margin-bottom: 14px; flex: 1; }
.service__features { margin-bottom: 16px; }
.service__features li {
  font-size: .8125rem; color: var(--text-soft); padding: 3px 0 3px 18px;
  position: relative;
}
.service__features li::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold); opacity: .5;
}
.service__footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.service__price { font-size: .8125rem; color: var(--text-soft); }
.service__price strong { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--primary); }
.service__btn {
  font-size: .8125rem; font-weight: 600; color: var(--gold);
  font-family: var(--font-head); transition: color 150ms;
  padding: 6px 0;
}
.service__btn:hover { color: var(--cta-hover); }

/* ===== ADVANTAGES ===== */
.advantages { padding: 80px 0; background: var(--primary); }
.advantages .section-title { color: var(--white); }
.advantages .section-subtitle { color: rgba(255,255,255,.6); }
.advantages__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.advantage {
  text-align: center; padding: 32px 24px;
  border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg);
  background: rgba(255,255,255,.04);
  transition: background 200ms, border-color 200ms;
}
.advantage:hover { background: rgba(255,255,255,.07); border-color: rgba(217,119,6,.4); }
.advantage__num {
  font-family: var(--font-head); font-size: 2.4rem; font-weight: 800;
  color: var(--gold-light); line-height: 1; margin-bottom: 8px;
}
.advantage h3 { font-family: var(--font-head); font-size: 1rem; color: var(--white); margin-bottom: 8px; }
.advantage p { font-size: .875rem; color: rgba(255,255,255,.55); }

/* ===== STEPS ===== */
.steps { padding: 80px 0; background: var(--bg-alt); }
.steps__list { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); counter-reset: step; }
.step {
  position: relative; padding: 28px 20px 28px 24px;
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  counter-increment: step;
}
.step::before {
  content: counter(step);
  position: absolute; top: 20px; right: 20px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gold-pale); color: var(--gold);
  font-family: var(--font-head); font-weight: 800; font-size: .8rem;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-family: var(--font-head); font-size: .95rem; margin-bottom: 8px; color: var(--primary); }
.step p { font-size: .8125rem; color: var(--text-soft); line-height: 1.55; }

/* ===== PORTFOLIO ===== */
.portfolio { padding: 80px 0; }
.portfolio__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.portfolio-item {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); background: var(--white);
  box-shadow: var(--shadow-sm); transition: transform 200ms, box-shadow 200ms;
}
.portfolio-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.portfolio-item__visual {
  position: relative; height: 180px; overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, #44403C 100%);
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.25);
}
.portfolio-item__visual img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-item__visual svg { width: 52px; height: 52px; }
.portfolio-item__label {
  position: absolute; top: 12px; left: 12px;
  background: rgba(0,0,0,.65); color: var(--white);
  padding: 4px 10px; border-radius: 4px; font-size: .75rem; font-weight: 600;
}
.portfolio-item__body { padding: 16px 20px 20px; }
.portfolio-item__body h3 { font-family: var(--font-head); font-size: .9375rem; margin-bottom: 4px; }
.portfolio-item__meta { font-size: .8125rem; color: var(--text-muted); margin-bottom: 10px; }
.portfolio-item__result {
  display: inline-block; font-size: .75rem; font-weight: 600;
  color: var(--gold); background: var(--gold-pale);
  padding: 4px 10px; border-radius: 4px;
}

/* ===== REVIEWS ===== */
.reviews { padding: 80px 0; background: var(--bg-alt); }
.reviews__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.review {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 24px;
  box-shadow: var(--shadow-sm); position: relative;
  transition: transform 200ms, box-shadow 200ms;
}
.review:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.review::before {
  content: '"'; position: absolute; top: 12px; right: 18px;
  font-family: var(--font-head); font-size: 4rem; line-height: 1;
  color: var(--gold); opacity: .2; pointer-events: none;
}
.review__stars { color: var(--gold); font-size: 1rem; margin-bottom: 12px; letter-spacing: 2px; }
.review__text { font-size: .8125rem; color: var(--text-soft); line-height: 1.65; margin-bottom: 16px; }
.review__author { display: flex; align-items: center; gap: 10px; }
.review__avatar {
  width: 36px; height: 36px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light); font-family: var(--font-head); font-weight: 700; font-size: .85rem;
  flex-shrink: 0;
}
.review__meta strong { display: block; font-size: .875rem; }
.review__meta span { font-size: .75rem; color: var(--text-muted); }

/* ===== FORM ===== */
.form-section { padding: 80px 0; background: var(--primary); }
.form-section__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.form-section__text h2 { color: var(--white); margin-bottom: 16px; }
.form-section__lead { color: rgba(255,255,255,.7); margin-bottom: 28px; }
.form-section__perks { display: flex; flex-direction: column; gap: 10px; }
.form-section__perks li {
  display: flex; align-items: center; gap: 10px;
  font-size: .9375rem; color: rgba(255,255,255,.85);
}
.form-section__perks li::before {
  content: '';
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  background: rgba(217,119,6,.2) url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='none' stroke='%23D97706' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='4 10 8 14 16 6'/%3E%3C/svg%3E") center/14px no-repeat;
}
.form-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 40px; box-shadow: var(--shadow-lg); border-top: 3px solid var(--gold);
}
.form-card h3 { font-family: var(--font-head); font-size: 1.25rem; margin-bottom: 4px; }
.form-card__sub { font-size: .875rem; color: var(--text-muted); margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .8125rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group input,
.form-group textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: .9375rem; background: var(--bg);
  transition: border-color 150ms, box-shadow 150ms; resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(217,119,6,.12);
}
.form-policy { font-size: .75rem; color: var(--text-muted); margin-top: 12px; text-align: center; }
.form-policy a { color: var(--text-soft); text-decoration: underline; }
#form-error { color: #DC2626; font-size: .8125rem; margin-top: 8px; }
.form-success { text-align: center; padding: 24px 0; }
.form-success__icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gold-pale); color: var(--gold);
  font-size: 1.5rem; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.form-success h3 { font-family: var(--font-head); margin-bottom: 8px; }
.form-success p { font-size: .875rem; color: var(--text-soft); }

/* ===== FAQ ===== */
.faq { padding: 80px 0; }
.faq__list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow 200ms;
}
.faq-item.is-open { box-shadow: var(--shadow-md); border-color: rgba(217,119,6,.35); }
.faq-item__q {
  width: 100%; text-align: left; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: var(--font-head); font-size: 1rem; font-weight: 600; color: var(--text);
  background: none; cursor: pointer;
  transition: color 150ms;
}
.faq-item__q:hover { color: var(--gold); }
.faq-item__q-icon {
  width: 20px; height: 20px; flex-shrink: 0; color: var(--text-muted);
  transition: transform 250ms ease, color 150ms;
}
.faq-item.is-open .faq-item__q-icon { transform: rotate(180deg); color: var(--gold); }
.faq-item__a { max-height: 0; overflow: hidden; transition: max-height 300ms ease; }
.faq-item__a-inner { padding: 0 24px 20px; font-size: .9rem; color: var(--text-soft); line-height: 1.65; }

/* ===== SEO TEXT ===== */
.seo-text { padding: 60px 0; background: var(--bg-alt); }
.seo-text__inner { max-width: 820px; margin: 0 auto; }
.seo-text__inner h2 { font-family: var(--font-head); font-size: 1.4rem; margin-bottom: 20px; }
.seo-text__inner p { font-size: .9375rem; color: var(--text-soft); line-height: 1.75; margin-bottom: 16px; }
.seo-text__inner strong { color: var(--text); }

/* ===== FOOTER ===== */
.site-footer { background: var(--primary); color: var(--white); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 48px; }
.footer-col h4 { font-family: var(--font-head); font-size: .9375rem; font-weight: 700; color: var(--white); margin-bottom: 16px; }
.footer-col > p { font-size: .8125rem; color: rgba(255,255,255,.5); line-height: 1.65; }
.footer-col a {
  display: block; font-size: .8125rem; color: rgba(255,255,255,.5);
  padding: 4px 0; transition: color 150ms;
}
.footer-col a:hover { color: var(--gold); }
.footer-contacts { display: flex; flex-direction: column; gap: 10px; }
.footer-contacts li { display: flex; align-items: center; gap: 8px; font-size: .8125rem; color: rgba(255,255,255,.55); }
.footer-contacts li svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--gold); opacity: .7; }
.footer-contacts a { color: rgba(255,255,255,.75); }
.footer-contacts a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .8125rem; color: rgba(255,255,255,.35);
}
.footer-bottom a { color: rgba(255,255,255,.35); transition: color 150ms; }
.footer-bottom a:hover { color: rgba(255,255,255,.7); }

/* ===== POPUP ===== */
.popup-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 250ms;
}
.popup-overlay.is-visible { opacity: 1; pointer-events: auto; }
.popup {
  background: var(--white); border-radius: var(--radius-lg);
  border-top: 3px solid var(--gold);
  padding: 44px 40px 36px; max-width: 440px; width: 90%;
  position: relative; text-align: center;
  transform: scale(.88) translateY(20px);
  transition: transform 300ms cubic-bezier(.34,1.56,.64,1);
  box-shadow: var(--shadow-lg);
}
.popup-overlay.is-visible .popup { transform: none; }
.popup__close {
  position: absolute; top: 14px; right: 16px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-alt); color: var(--text-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; line-height: 1; transition: background 150ms;
}
.popup__close:hover { background: var(--border); }
.popup__icon {
  width: 56px; height: 56px; border-radius: var(--radius);
  background: var(--gold-pale); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.popup__icon svg { width: 28px; height: 28px; }
.popup__title { font-family: var(--font-head); font-size: 1.35rem; margin-bottom: 10px; }
.popup__text { font-size: .9rem; color: var(--text-soft); line-height: 1.6; margin-bottom: 24px; }
.popup__btn { display: block; width: 100%; text-align: center; margin-bottom: 12px; }
.popup__note { font-size: .75rem; color: var(--text-muted); }

/* ===== MESSENGER BUTTONS ===== */
.messenger-buttons { position: fixed; bottom: 24px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.messenger-btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.25); transition: transform 200ms;
  font-weight: 700; font-size: .75rem; font-family: var(--font-head);
}
.messenger-btn:hover { transform: scale(1.1); }
.messenger-btn--tg { background: #29B6F6; color: #fff; }
.messenger-btn--max { background: var(--primary); color: var(--gold); border: 1px solid rgba(217,119,6,.4); }
.messenger-btn svg { width: 22px; height: 22px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .pains__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .reviews__grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
  .advantages__grid { grid-template-columns: repeat(3, 1fr); }
  .steps__list { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .header-cta { display: none; }
  .header-nav { gap: 2px; }
  .header-nav a { padding: 6px 8px; font-size: .8rem; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .form-section__grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .pains__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .advantages__grid { grid-template-columns: repeat(2, 1fr); }
  .steps__list { grid-template-columns: repeat(2, 1fr); }
  .portfolio__grid { grid-template-columns: 1fr; }
  .reviews__grid { grid-template-columns: 1fr; }
  .header-nav { display: none; }
  .header-nav.is-open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(255,255,255,.97); border-bottom: 1px solid var(--border);
    padding: 16px 24px; gap: 4px; box-shadow: var(--shadow-md);
  }
  .burger { display: flex; }
  .site-header { position: relative; }
  .site-header__inner { position: relative; }
}
@media (max-width: 480px) {
  .advantages__grid { grid-template-columns: 1fr; }
  .steps__list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .hero__metrics { gap: 20px; }
  .form-card { padding: 28px 20px; }
  .popup { padding: 32px 20px 28px; }
}
