/* MS Construction — Variant B: Warm Swiss Minimalism */
/* Design tokens */
:root {
  --bg-primary: #F5F0EB;
  --bg-white: #FFFFFF;
  --bg-warm-light: #FAF7F3;
  --bg-warm-dark: #3B2E24;
  --bg-section-alt: #F0EAE3;

  --text-primary: #2D2A26;
  --text-secondary: #5C5650;
  --text-muted: #8A837B;
  --text-inverse: #FFFFFF;

  --accent: #C4572A;
  --accent-hover: #A84A23;
  --accent-light: rgba(196, 87, 42, 0.08);
  --accent-lighter: rgba(196, 87, 42, 0.04);

  --whatsapp: #25D366;
  --whatsapp-hover: #1EBF5A;

  --border: rgba(59, 46, 36, 0.12);
  --border-strong: rgba(59, 46, 36, 0.2);

  --shadow-sm: 0 1px 3px rgba(59, 46, 36, 0.08);
  --shadow-md: 0 4px 12px rgba(59, 46, 36, 0.1);
  --shadow-lg: 0 8px 24px rgba(59, 46, 36, 0.12);
  --shadow-card: 0 2px 8px rgba(59, 46, 36, 0.06);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --font-heading: 'Archivo', 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1200px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

.section-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.65;
}

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

/* Section spacing */
.section {
  padding: 80px 0;
}
.section--alt {
  background: var(--bg-section-alt);
}
.section--white {
  background: var(--bg-white);
}
.section--dark {
  background: var(--bg-warm-dark);
  color: var(--text-inverse);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(245, 240, 235, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow 0.3s;
}
.header.scrolled {
  box-shadow: var(--shadow-md);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.header__logo {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.header__logo-mark {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 0.75rem;
}

/* Nav */
.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  padding: 8px 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  position: relative;
}
.nav__link:hover, .nav__link.active {
  color: var(--text-primary);
  background: var(--accent-light);
}

/* Dropdown */
.nav__dropdown {
  position: relative;
}
.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.nav__dropdown:hover .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__dropdown-item {
  display: block;
  padding: 10px 14px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}
.nav__dropdown-item:hover {
  background: var(--accent-light);
  color: var(--text-primary);
}
.nav__dropdown-item small {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Language switcher */
.lang-wrapper {
  position: relative;
}
.lang-switch {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: transparent;
}
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  z-index: 1000;
  min-width: 56px;
  overflow: hidden;
}
.lang-dropdown.open {
  display: flex;
  flex-direction: column;
}
.lang-option {
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: background .15s;
}
.lang-option:hover {
  background: var(--bg-muted, #f5f5f5);
}
.lang-option.active {
  color: var(--primary, #d4380d);
}

/* CTA buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.2s;
}
.btn--primary {
  background: var(--accent);
  color: white;
}
.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn--whatsapp {
  background: var(--whatsapp);
  color: white;
}
.btn--whatsapp:hover {
  background: var(--whatsapp-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-strong);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-lighter);
}
.btn--sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}
.btn--lg {
  padding: 16px 32px;
  font-size: 1rem;
}
.btn__icon {
  width: 20px;
  height: 20px;
}

/* Header CTA */
.header__cta {
  padding: 10px 20px;
  font-size: 0.875rem;
}

/* Mobile menu extras (lang + WhatsApp), shown only in open burger menu */
.nav__mobile-extras { display: none; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s;
}

/* ===== HERO ===== */
.hero {
  margin-top: var(--header-height);
  padding: 80px 0 100px;
  background: linear-gradient(135deg, var(--bg-warm-light) 0%, var(--bg-primary) 50%, var(--bg-section-alt) 100%);
  position: relative;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero__eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.hero h1 {
  margin-bottom: 20px;
}
.hero__subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 520px;
}
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.hero__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.hero__phone a {
  color: var(--text-primary);
  font-weight: 600;
}
.hero__image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #D4C4B0, #B8A898);
  position: relative;
}
.hero__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ===== TRUST BAR ===== */
.trust-bar {
  padding: 40px 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}
.trust-bar__inner {
  display: flex;
  justify-content: center;
  gap: 64px;
}
.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}
.trust-bar__icon {
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.25rem;
}

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  gap: 24px;
}
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow 0.3s, transform 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card__icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}
.card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.card__text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}
.card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}
.card__link:hover { gap: 8px; }

/* Service card with image */
.card--service {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card--service .card__image {
  height: 180px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #D4C4B0, #B8A898);
  position: relative;
}
.card--service .card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card--service .card__link { margin-top: auto; }

/* Audience card */
.card--audience {
  text-align: center;
  padding: 40px 32px;
}
.card--audience .card__icon {
  margin: 0 auto 20px;
  width: 56px;
  height: 56px;
  font-size: 1.75rem;
}

/* ===== PROCESS / TIMELINE ===== */
.process {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  counter-reset: step;
}
.process__step {
  text-align: center;
  position: relative;
  counter-increment: step;
}
.process__step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  margin: 0 auto 16px;
  font-weight: 700;
  font-size: 1rem;
}
.process__step::after {
  content: '';
  position: absolute;
  top: 22px;
  left: calc(50% + 28px);
  right: calc(-50% + 28px);
  height: 2px;
  background: var(--border);
}
.process__step:last-child::after { display: none; }
.process__step h4 {
  font-family: var(--font-heading);
  margin-bottom: 6px;
}
.process__step p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== SCALE BLOCK ===== */
.scale-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* задача 80: все карточки одного размера — ряды 2x2 на мобиле растягиваются до самой высокой */
  grid-auto-rows: 1fr;
  gap: 24px;
}
.scale-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  position: relative;
}
.scale-item__bar {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 20px;
  overflow: hidden;
}
.scale-item__bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
}
.faq-item__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.3s;
  color: var(--accent);
}
.faq-item.open .faq-item__icon {
  transform: rotate(45deg);
}
.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item__answer-inner {
  padding-bottom: 20px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== WHY US ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.why-item__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.125rem;
}
.why-item__text h4 {
  font-family: var(--font-heading);
  margin-bottom: 4px;
}
.why-item__text p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== FINAL CTA ===== */
.final-cta {
  text-align: center;
  padding: 80px 0;
  background: var(--bg-warm-dark);
  color: white;
}
.final-cta h2 {
  margin-bottom: 16px;
}
.final-cta p {
  font-size: 1.125rem;
  opacity: 0.85;
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.final-cta .btn--whatsapp { font-size: 1rem; padding: 16px 32px; }
.final-cta__phone {
  margin-top: 16px;
  font-size: 1rem;
  opacity: 0.7;
}
.final-cta__phone a { color: white; text-decoration: underline; }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-warm-dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer__brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: white;
  margin-bottom: 12px;
}
.footer__desc {
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 280px;
}
.footer__heading {
  font-family: var(--font-heading);
  color: white;
  font-size: 1rem;
  margin-bottom: 16px;
}
.footer__links a {
  display: block;
  font-size: 0.875rem;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer__links a:hover { color: white; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
}
.footer__legal a {
  margin-left: 24px;
  transition: color 0.2s;
}
.footer__legal a:hover { color: white; }

/* ===== QUIZ MODAL ===== */
.quiz-overlay {
  position: fixed;
  inset: 0;
  background: rgba(59, 46, 36, 0.5);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}
.quiz-overlay.active { display: flex; }
.quiz-panel {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.quiz-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.quiz-panel__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
}
.quiz-panel__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-section-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-secondary);
  transition: background 0.2s;
}
.quiz-panel__close:hover { background: var(--border); }

/* Progress */
.quiz-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 32px;
}
.quiz-progress__step {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  transition: background 0.3s;
}
.quiz-progress__step.done { background: var(--accent); }
.quiz-progress__step.current { background: var(--accent); opacity: 0.5; }

/* Form fields */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.form-label span { color: var(--accent); }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.9375rem;
  font-family: var(--font-body);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-white);
  color: var(--text-primary);
  transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.form-textarea { resize: vertical; min-height: 100px; }

/* Radio/option cards */
.option-cards {
  display: grid;
  gap: 10px;
}
.option-card {
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.9375rem;
  transition: border-color 0.2s, background 0.2s;
}
.option-card:hover {
  border-color: var(--accent);
  background: var(--accent-lighter);
}
.option-card.selected {
  border-color: var(--accent);
  background: var(--accent-light);
}

/* Upload area */
.upload-area {
  display: block;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.upload-area:hover,
.upload-area.dragover {
  border-color: var(--accent);
  background: var(--accent-lighter);
}
.upload-area.has-files {
  border-style: solid;
  border-color: var(--accent);
}
.upload-area__files {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.upload-area.has-files .upload-area__files { margin-top: 12px; }
.upload-chip {
  display: inline-block;
  max-width: 100%;
  padding: 4px 10px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-count {
  width: 100%;
  margin-top: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
}

/* Quiz actions */
.quiz-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  gap: 12px;
}
.quiz-actions .btn { white-space: nowrap; }

@media (max-width: 600px) {
  .quiz-overlay { align-items: flex-end; }
  .quiz-panel {
    width: 100%;
    max-width: none;
    max-height: 92vh;
    padding: 24px 20px 28px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
  .quiz-panel__header { margin-bottom: 20px; }
  .quiz-panel__title { font-size: 1.25rem; }
  .quiz-progress { margin-bottom: 20px; }
  .quiz-actions { margin-top: 24px; flex-wrap: wrap; }
  .quiz-actions .btn { flex: 1; justify-content: center; }
  .quiz-actions .btn.btn--lg { min-width: 100%; white-space: normal; }
}

/* ===== SERVICE PAGE ===== */
.page-hero {
  margin-top: var(--header-height);
  padding: 60px 0 80px;
  background: linear-gradient(135deg, var(--bg-warm-light) 0%, var(--bg-primary) 100%);
}
.page-hero__breadcrumb {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.page-hero__breadcrumb a { color: var(--accent); }
.page-hero h1 { margin-bottom: 16px; }
.page-hero__text {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
}

/* Work list */
.work-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.work-list__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
}
.work-list__item::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
}

/* Related services */
.related-services {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.related-chip {
  padding: 10px 20px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  font-size: 0.875rem;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
}
.related-chip:hover {
  border-color: var(--accent);
  background: var(--accent-lighter);
}

/* ===== MAP PLACEHOLDER ===== */
.map-placeholder {
  background: var(--bg-section-alt);
  border-radius: var(--radius-lg);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ===== IMPRESSUM ===== */
.legal-block {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
}
.legal-block strong { color: var(--text-primary); }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  :root { --header-height: 56px; }
  .nav { display: none; }
  .burger { display: flex; }
  .lang-wrapper { display: none; }

  /* Compact header */
  .header__inner { padding: 0 16px; }
  .header__logo { font-size: 1.0625rem; white-space: nowrap; gap: 6px; }
  .header__logo-mark { width: 26px; height: 26px; font-size: 0.6875rem; flex-shrink: 0; }
  .header__cta { display: none; }

  /* NB: .header has backdrop-filter => it is the containing block for
     fixed descendants, so bottom:0 would collapse the menu to zero height.
     Position the menu relative to the header box with an explicit height. */
  .nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--bg-white);
    padding: 24px 24px 96px;
    gap: 4px;
    z-index: 1001;
  }
  .nav.open .nav__link {
    padding: 14px 16px;
    font-size: 1.0625rem;
    /* задача 95: все пункты одним левым краем — центрирование давало «лесенку»,
       и «Для кого» читался как подпункт «Услуг» */
    display: block;
    text-align: left;
  }
  .nav.open { align-items: stretch; }
  .nav.open .nav__dropdown { width: 100%; }
  .nav.open .nav__mobile-extras {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: auto;
    padding: 20px 16px 8px;
    border-top: 1px solid var(--border);
  }
  .nav.open .nav__mobile-lang {
    display: flex;
    gap: 8px;
  }
  .nav.open .nav__mobile-lang-option {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
  }
  .nav.open .nav__mobile-lang-option.active {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-lighter, var(--accent-light));
  }
  .nav.open .nav__mobile-wa {
    justify-content: center;
  }
  /* задача 95: аккордеон — подпункты закрыты, открываются тапом по «Услуги»/«Для кого»
     (JS вешает .open на .nav__dropdown); display вместо opacity, иначе скрытые пункты
     занимают место и «Для кого» выглядит вложенным в «Услуги» */
  .nav.open .nav__dropdown-menu {
    display: none;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 16px;
  }
  .nav.open .nav__dropdown.open .nav__dropdown-menu {
    display: block;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero { padding: 48px 0 60px; }

  .trust-bar__inner {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .card-grid--3, .card-grid--4 { grid-template-columns: 1fr; }
  .card-grid--2 { grid-template-columns: 1fr; }

  .process {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .process__step { text-align: left; display: flex; gap: 16px; align-items: flex-start; }
  .process__step::before { flex-shrink: 0; margin: 0; }
  .process__step::after { display: none; }

  .scale-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .work-list { grid-template-columns: 1fr; }

  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }

  .section { padding: 56px 0; }

  /* Sticky mobile CTA */
  .mobile-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    z-index: 999;
    gap: 10px;
  }
  .mobile-cta .btn { flex: 1; justify-content: center; font-size: 0.875rem; padding: 12px; }
  body { padding-bottom: 72px; }
}
@media (min-width: 769px) {
  .mobile-cta { display: none; }
}

/* Animations */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .hero__img {
    animation: kenburns 24s ease-in-out infinite alternate;
  }
  @keyframes kenburns {
    from { transform: scale(1) translateX(0); }
    to { transform: scale(1.08) translateX(-1.5%); }
  }
  .btn { transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s; }
  .btn:hover { transform: translateY(-1px); }
  .card--service:hover .card__image { filter: brightness(1.04); }
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: transform;
}
.card__image { transition: filter 0.3s; }
