/* ============================================================
   SEG SCA SYSTEMS — Премиальная тема
   Люкс-резиденция: антрацит + тёплое золото + Cormorant
   ============================================================ */

:root {
  --bg-base:       #080807;
  --bg-surface:    #121210;
  --bg-card:       #1A1A17;
  --bg-alt:        #0F0F0D;

  --accent:        #C8A45E;
  --accent-light:  #DDB97A;
  --accent-dim:    #7A6438;

  --text-primary:  #F0EBE0;
  --text-secondary:#A09888;
  --text-muted:    #6A6460;
  --text-dim:      #3E3C38;
  --white:         #F0EBE0;

  --border:        #252420;
  --border-light:  #323028;

  --danger:        #A04838;
  --success:       #507060;

  --font-heading: 'Cormorant Garant', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius:     2px;
  --radius-lg:  2px;
  --shadow:     0 12px 56px rgba(0,0,0,.7);
  --shadow-sm:  0 4px 24px rgba(0,0,0,.45);
  --glow:       0 0 40px rgba(200,164,94,.08);
  --transition: .25s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-base);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Контейнер ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .14em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  text-transform: uppercase;
}
.btn-accent {
  background: var(--accent);
  color: #07060A;
  border-color: var(--accent);
  font-weight: 600;
}
.btn-accent:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  box-shadow: 0 4px 28px rgba(200,164,94,.25);
}
.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-light);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-lg { padding: 16px 44px; font-size: .82rem; letter-spacing: .16em; }
.w-full { width: 100%; justify-content: center; }

/* ---------- Заголовки секций ---------- */
.section-header { text-align: center; margin-bottom: 64px; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-size: .7rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-label::before,
.section-label::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--accent-dim);
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: .01em;
}
.section-sub {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: .95rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(8,8,7,.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 72px;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-img {
  height: 48px;
  width: 48px;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-name {
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.logo-sub {
  font-family: var(--font-body);
  font-size: .58rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.logo-sub em {
  color: var(--accent);
  font-style: normal;
}
.logo-icon-fallback {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-light);
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 300;
  font-family: var(--font-heading);
  flex-shrink: 0;
}
.logo-img.error + .logo-icon-fallback { display: flex; }

.main-nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.main-nav a {
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
  white-space: nowrap;
}
.main-nav a:hover { color: var(--accent); }
.header-cta { margin-left: 8px; padding: 8px 20px; font-size: .72rem; }
.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--text-secondary);
  transition: all var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
  background: var(--bg-base);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 72% 48%, rgba(200,164,94,.07) 0%, transparent 55%),
    radial-gradient(ellipse at 18% 82%, rgba(200,164,94,.04) 0%, transparent 40%);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(200,164,94,.016) 80px),
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(200,164,94,.016) 80px);
}
.hero-overlay { display: none; }
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0px 24px 120px;
}
.hero-pretitle {
  font-family: var(--font-body);
  font-size: .68rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.hero-pretitle::before {
  content: '';
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--accent-dim);
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7.5vw, 5.8rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.06;
  margin-bottom: 36px;
  letter-spacing: -.01em;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
}
.hero-subtitle {
  font-size: clamp(.9rem, 1.8vw, 1.05rem);
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 52px;
  font-weight: 300;
  line-height: 1.85;
  letter-spacing: .01em;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-dim);
  font-size: .65rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  z-index: 2;
}
.scroll-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-dim), transparent);
  animation: scrollBounce 1.8s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: .15; }
}

/* ============================================================
   ПРЕИМУЩЕСТВА
   ============================================================ */
.advantages {
  background: var(--bg-surface);
  padding: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.advantage-item {
  text-align: center;
  padding: 48px 24px;
  border-right: 1px solid var(--border);
  color: var(--text-primary);
}
.advantage-item:last-child { border-right: none; }
.adv-icon {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: .75;
}
.advantage-item h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--white);
  letter-spacing: .02em;
}
.advantage-item p {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ============================================================
   УСЛУГИ
   ============================================================ */
.services {
  padding: 110px 0;
  background: var(--bg-alt);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}
.service-card {
  background: var(--bg-base);
  padding: 44px 36px;
  position: relative;
  transition: background var(--transition);
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .45s ease;
}
.service-card:hover { background: var(--bg-surface); }
.service-card:hover::before { transform: scaleY(1); }
.service-num { display: none; }
.service-icon {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: .65;
}
.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: .02em;
  margin-bottom: 12px;
}
.service-card p {
  color: var(--text-muted);
  font-size: .85rem;
  line-height: 1.75;
}

/* ============================================================
   ПОРТФОЛИО
   ============================================================ */
.portfolio {
  padding: 110px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.portfolio-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
  display: block;
}
.portfolio-item:hover img { transform: scale(1.06); }
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,7,.8) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .35s ease;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay span {
  color: var(--text-primary);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.portfolio-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-dim);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  border: 1px solid var(--border);
}
.portfolio-placeholder .ph-icon {
  font-size: 2.5rem;
  opacity: .2;
  color: var(--accent);
}
.portfolio-item--featured {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
}

/* Лайтбокс */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(8,8,7,.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox img {
  max-width: 90vw;
  max-height: 86vh;
  object-fit: contain;
  border: 1px solid var(--border-light);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 36px;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  transition: color .2s;
  font-weight: 300;
  font-family: var(--font-heading);
}
.lightbox-close:hover { color: var(--text-primary); }

/* ============================================================
   ЭТАПЫ (TIMELINE)
   ============================================================ */
.process {
  padding: 110px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 28px;
  right: 28px;
  height: 1px;
  background: var(--accent-dim);
  z-index: 0;
  opacity: .6;
}
.timeline-item {
  position: relative;
  padding: 0 16px;
  padding-top: 64px;
  text-align: center;
}
.tl-num {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  background: var(--bg-alt);
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 400;
  z-index: 1;
}
.tl-content h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: .02em;
  margin-bottom: 8px;
}
.tl-content p {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================================
   ОПРОСНИК
   ============================================================ */
.questionnaire {
  padding: 110px 0;
  background: var(--bg-base);
}
.quiz-wrapper {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-surface);
  box-shadow: var(--shadow);
  padding: 56px;
  border: 1px solid var(--border);
}

/* Прогресс */
.quiz-progress { margin-bottom: 48px; }
.progress-bar {
  height: 1px;
  background: var(--border-light);
  overflow: hidden;
  margin-bottom: 20px;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width .45s ease;
  width: 25%;
}
.progress-steps {
  display: flex;
  gap: 0;
  justify-content: space-between;
  margin-bottom: 12px;
}
.step-dot {
  width: 28px;
  height: 28px;
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 500;
  transition: all var(--transition);
}
.step-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #07060A;
}
.step-dot.done {
  background: transparent;
  border-color: var(--accent-dim);
  color: var(--accent-dim);
}
.progress-label {
  font-size: .7rem;
  color: var(--text-muted);
  text-align: center;
  font-family: var(--font-body);
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* Шаги */
.quiz-step { display: none; }
.quiz-step.active { display: block; animation: fadeSlide .3s ease; }
@keyframes fadeSlide {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}
.step-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: .02em;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

/* Группы полей */
.field-group { margin-bottom: 32px; }
.field-label {
  display: block;
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.req { color: var(--accent); }
.field-hint {
  display: block;
  font-size: .78rem;
  color: var(--text-dim);
  margin-top: 8px;
}
.field-error {
  display: none;
  font-size: .78rem;
  color: var(--danger);
  margin-top: 8px;
}
.field-group.has-error .field-error { display: block; }

/* Инпуты */
.text-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--text-primary);
  background: var(--bg-card);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.text-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,164,94,.07);
}
.text-input::placeholder { color: var(--text-dim); }
.textarea-input { resize: vertical; min-height: 100px; }

/* Кнопки-выборы */
.btn-choice-group {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
}
.btn-choice-group.wrap { flex-wrap: wrap; }
.btn-choice {
  flex: 1;
  min-width: 96px;
  padding: 12px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: .82rem;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  letter-spacing: .02em;
}
.btn-choice:hover { border-color: var(--accent-dim); color: var(--text-primary); }
.btn-choice.selected {
  border-color: var(--accent);
  background: transparent;
  color: var(--accent);
  font-weight: 500;
}

/* Тогл */
.toggle-group {
  display: flex;
  gap: 0;
  width: fit-content;
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.toggle-btn {
  padding: 10px 36px;
  border: none;
  background: var(--bg-card);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: .88rem;
  cursor: pointer;
  transition: all var(--transition);
}
.toggle-btn:not(:last-child) { border-right: 1px solid var(--border-light); }
.toggle-btn.selected {
  background: transparent;
  color: var(--accent);
  font-weight: 500;
}

/* Карточки защиты */
.protection-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.prot-card {
  border: 1px solid var(--border-light);
  padding: 24px;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
}
.prot-card:hover { border-color: var(--accent-dim); }
.prot-card.selected {
  border-color: var(--accent);
  background: rgba(200,164,94,.03);
}
.prot-badge {
  display: inline-block;
  padding: 3px 10px;
  font-family: var(--font-body);
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  margin-bottom: 16px;
}
.badge-standard { color: var(--accent);       border-color: var(--accent-dim); }
.badge-premium  { color: var(--accent-light);  border-color: var(--accent); }
.prot-list { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prot-list li { font-size: .8rem; color: var(--text-muted); }
.prot-list li.prot-na { color: var(--text-dim); opacity: .5; }

/* Чекбоксы */
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.check-item input[type="checkbox"] { display: none; }
.check-box {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  transition: all var(--transition);
  position: relative;
  margin-top: 2px;
}
.check-item input:checked + .check-box {
  background: var(--accent);
  border-color: var(--accent);
}
.check-item input:checked + .check-box::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #07060A;
  font-size: .68rem;
  font-weight: 700;
}
.check-item input:checked ~ span:last-child { color: var(--text-primary); }

/* Поля в ряд */
.fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Согласие */
.consent-group .check-item { align-items: flex-start; }
.link { color: var(--accent); text-decoration: underline; }

/* Навигация формы */
.quiz-nav {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

/* Дополнительное поле */
.extra-field { margin-top: 10px; }
.extra-field input { max-width: 260px; }

/* Экран успеха */
.quiz-success {
  text-align: center;
  padding: 48px 0;
}
.success-icon {
  width: 72px;
  height: 72px;
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
}
.quiz-success h3 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: .02em;
}
.quiz-success p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: .95rem;
  line-height: 1.8;
}
.success-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 24px;
  text-align: left;
  margin-bottom: 32px;
  font-size: .875rem;
}
.success-summary strong {
  display: block;
  font-family: var(--font-body);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--accent);
  margin-bottom: 16px;
}
.success-row { margin-bottom: 8px; color: var(--text-primary); }
.success-row span:first-child { color: var(--text-muted); font-size: .82rem; }

/* ============================================================
   КОНТАКТЫ
   ============================================================ */
.contacts {
  padding: 110px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}
.contacts-layout {
  display: flex;
  justify-content: center;
}
.contacts-info {
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 520px;
  width: 100%;
}
.contact-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.contact-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--accent);
}
.contact-item div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-item strong {
  font-family: var(--font-body);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--text-muted);
}
.contact-item a {
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 400;
  transition: color var(--transition);
}
.contact-item a:hover { color: var(--accent); }
.contact-item span { color: var(--text-muted); font-size: .85rem; }
.messengers {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.messengers span {
  color: var(--text-muted);
  font-size: .7rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .12em;
}
.msg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border: 1px solid var(--border-light);
  font-size: .78rem;
  font-weight: 400;
  color: var(--text-muted);
  background: transparent;
  transition: all var(--transition);
  letter-spacing: .06em;
}
.msg-btn:hover { border-color: var(--accent-dim); color: var(--text-primary); }
.msg-btn.tg:hover   { border-color: #2AABEE; color: #2AABEE; }
.msg-btn.max-m:hover { border-color: #8B5CF6; color: #8B5CF6; }
.msg-btn .m-icon { width: 18px; height: 18px; flex-shrink: 0; display: block; }

.contacts-confidential {
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-base);
  padding: 40px 0;
  border-top: 1px solid var(--accent-dim);
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-logo-img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  mix-blend-mode: screen;
}
.footer-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.footer-logo-name {
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.footer-logo-sub {
  font-family: var(--font-body);
  font-size: .56rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer-copy {
  color: var(--text-muted);
  font-size: .75rem;
  letter-spacing: .01em;
}
.footer-nav {
  display: flex;
  gap: 28px;
}
.footer-nav a {
  font-family: var(--font-body);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--accent); }

/* ============================================================
   МОДАЛ ПОЛИТИКИ КОНФИДЕНЦИАЛЬНОСТИ
   ============================================================ */
.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(8,8,7,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  padding: 24px;
}
.privacy-modal.open {
  opacity: 1;
  pointer-events: all;
}
.privacy-modal__inner {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}
.privacy-modal__header {
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.privacy-modal__header h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: .02em;
}
.privacy-modal__close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  transition: color .2s;
  font-family: var(--font-heading);
  font-weight: 300;
}
.privacy-modal__close:hover { color: var(--text-primary); }
.privacy-modal__body {
  padding: 24px 32px 32px;
  overflow-y: auto;
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.privacy-modal__body h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--white);
  margin: 20px 0 8px;
  letter-spacing: .02em;
}
.privacy-modal__body h3:first-child { margin-top: 0; }
.privacy-modal__body p { margin-bottom: 10px; }

/* ============================================================
   АНИМАЦИЯ ПОЯВЛЕНИЯ
   ============================================================ */
.visible { opacity: 1 !important; transform: translateY(0) !important; }

/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .advantage-item:nth-child(2) { border-right: none; }
  .advantage-item:nth-child(3) { border-top: 1px solid var(--border); border-right: 1px solid var(--border); }
  .advantage-item:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { display: none; }
  .protection-cards { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-nav, .header-cta { display: none; }
  .burger { display: flex; }
  .logo-sub { display: none; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    background: rgba(8,8,7,.98);
    padding: 28px 24px;
    gap: 20px;
    z-index: 999;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
  }

  .services-grid { grid-template-columns: 1fr; }
  .advantages-grid { grid-template-columns: 1fr; }
  .advantage-item { border-right: none !important; border-top: 1px solid var(--border); }
  .advantage-item:first-child { border-top: none; }
  .timeline { grid-template-columns: 1fr; }
  .contacts-layout { flex-direction: column; }
  .contacts-info { max-width: 100%; }
  .fields-row { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .btn-choice-group { flex-wrap: wrap; }
  .quiz-wrapper { padding: 28px 20px; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-nav { justify-content: center; }
  .hero-actions { flex-direction: column; align-items: flex-start; margin-bottom: 32px; }
  .protection-cards { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .hero-scroll-hint { display: none; }
}

@media (max-width: 480px) {
  .section-title { font-size: 1.9rem; }
  .btn-lg { padding: 14px 28px; font-size: .78rem; }
  .container { padding: 0 16px; }
  .logo-name { font-size: .85rem; }
}
