:root {
  color-scheme: light;
  /* Светлая тема — основа (как оборот визитки) */
  --bg: #EDE6DD;
  --bg-elevated: #FBF9F5;
  --bg-elevated-2: #F2ECE2;
  --text: #201F1D;
  --text-muted: #6b645c;
  --accent: #E67E22;
  --accent-dark: #c8691a;
  --line: #ddd4c5;
  --grey: #746F6C;
  --max-width: 1100px;
  --font-heading: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Тёмная секция — как лицевая сторона визитки. Навешивается классом .section-dark */
.section-dark {
  --bg: #232220;
  --bg-elevated: #2b2a27;
  --bg-elevated-2: #322f2b;
  --text: #EDE6DD;
  --text-muted: #b9b2a6;
  --line: #3d3a35;
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(237, 230, 221, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo-img { height: 54px; width: auto; }

nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.15s;
}

nav a:hover { opacity: 1; color: var(--accent); }

.header-right { display: flex; align-items: center; gap: 20px; }

.lang-switch {
  display: flex;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 3px;
}

.lang-switch button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.15s;
}

.lang-switch button.active {
  background: var(--accent);
  color: #1a1918;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 26px;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  padding: 96px 0 80px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(230, 126, 34, 0.12), transparent 42%),
    radial-gradient(circle at 80% 0%, rgba(230, 126, 34, 0.09), transparent 48%),
    var(--bg);
}

/* Архитектурная иллюстрация — здание + кран, как фоновая картинка Hero */
.hero-illustration {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-illustration img {
  position: absolute;
  right: -5%;
  bottom: -8%;
  width: 60%;
  min-width: 480px;
  max-width: 820px;
  height: auto;
}

/* Чертёжная сетка — тонкие линии на фоне, намёк на строительство/чертежи */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: none;
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 40%, transparent 85%);
  pointer-events: none;
}

/* Диагональная "строительная" полоса-акцент в углу */
.hero::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 420px;
  height: 420px;
  background: conic-gradient(from 45deg, rgba(230, 126, 34, 0.18), transparent 35%);
  border-radius: 50%;
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

/* Процесс 1-2-3 — визуальная линия-таймлайн */
.process {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.process::before {
  content: "";
  position: absolute;
  top: 17px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 14px);
  opacity: 0.5;
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  flex: 1;
  text-align: center;
}

.process-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 14px;
  box-shadow: 0 0 0 6px var(--bg);
}

.process-step h4 { margin: 0 0 6px; font-size: 16px; font-family: var(--font-heading); }
.process-step p { margin: 0; font-size: 14px; color: var(--text-muted); }

@media (max-width: 640px) {
  .process { flex-direction: column; align-items: flex-start; gap: 28px; max-width: none; }
  .process::before { top: 0; bottom: 0; left: 17px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--accent) 0 8px, transparent 8px 14px); }
  .process-step { text-align: left; padding-left: 54px; }
  .process-dot { position: absolute; left: 0; top: 0; margin-bottom: 0; }
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.15;
  margin: 0 0 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.hero h1 .accent { color: var(--accent); }

.hero p.lead {
  max-width: 620px;
  margin: 0 auto 36px;
  color: var(--text-muted);
  font-size: 18px;
}

.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s, background 0.15s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--accent); color: #1a1918; }
.btn-primary:hover { background: var(--accent-dark); }

.btn-outline {
  border-color: var(--line);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* Section generic */
section { padding: 80px 0; border-bottom: 1px solid var(--line); }

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 10px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 14px;
  font-weight: 700;
}

.section-intro {
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 0 48px;
  font-size: 16px;
}

/* Leistungen cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Направления — крупные блоки с картинкой */
.direction-blocks {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.direction-block {
  display: flex;
  align-items: center;
  gap: 48px;
}

.direction-block.reverse { flex-direction: row-reverse; }

.direction-photo {
  flex: 0 0 44%;
  aspect-ratio: 4/3;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(45deg, var(--bg-elevated-2), var(--bg-elevated-2) 12px, var(--bg-elevated) 12px, var(--bg-elevated) 24px);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.direction-icon {
  width: 72px;
  height: 72px;
  color: var(--accent);
  opacity: 0.55;
}

.direction-photo-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
}

.direction-content { flex: 1; }
.direction-content h3 { font-family: var(--font-heading); font-size: 26px; font-weight: 700; margin: 0 0 14px; }
.direction-content p { color: var(--text-muted); font-size: 16px; margin: 0 0 20px; max-width: 480px; }
.direction-content .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(230, 126, 34, 0.15);
  color: var(--accent);
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 16px;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 26px;
  scroll-margin-top: 90px;
}

.card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(230, 126, 34, 0.15);
  color: var(--accent);
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 18px;
}

.card h3 { font-family: var(--font-heading); margin: 0 0 12px; font-size: 20px; font-weight: 700; }
.card p { color: var(--text-muted); font-size: 15px; margin: 0 0 18px; }
.card a.card-link { color: var(--accent); font-weight: 600; font-size: 14px; text-decoration: none; }
.card a.card-link:hover { text-decoration: underline; }

/* Why us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 8px;
}

.why-item h4 { margin: 0 0 8px; font-size: 17px; color: var(--accent); }
.why-item p { margin: 0; color: var(--text-muted); font-size: 15px; }

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.portfolio-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.portfolio-photo {
  aspect-ratio: 16/10;
  background:
    repeating-linear-gradient(45deg, var(--bg-elevated-2), var(--bg-elevated-2) 12px, var(--bg-elevated) 12px, var(--bg-elevated) 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  padding: 20px;
}

.portfolio-body { padding: 22px 24px; }
.portfolio-body h3 { font-family: var(--font-heading); margin: 0 0 6px; font-size: 19px; font-weight: 700; }
.portfolio-body .tag { color: var(--accent); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.portfolio-body p { color: var(--text-muted); font-size: 15px; margin: 10px 0 0; }

/* Kontakt */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.kontakt-info dt { color: var(--text-muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 20px; }
.kontakt-info dt:first-child { margin-top: 0; }
.kontakt-info dd { margin: 4px 0 0; font-size: 17px; }
.kontakt-info a { color: var(--accent); text-decoration: none; }
.kontakt-info a:hover { text-decoration: underline; }

.kontakt-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
}

.kontakt-card p { color: var(--text-muted); font-size: 15px; margin: 0 0 20px; }

/* Footer */
footer {
  padding: 40px 0 30px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

/* Legal pages (Impressum / Datenschutz) shown as modal-like sections */
.legal-section { display: none; padding: 60px 0; }
.legal-section.open { display: block; }
.legal-section h2 { font-family: var(--font-heading); font-size: 24px; font-weight: 700; margin-bottom: 20px; }
.legal-section h3 { font-size: 16px; color: var(--accent); margin: 24px 0 6px; }
.legal-section p { color: var(--text-muted); font-size: 15px; margin: 0 0 8px; }
.legal-close { margin-top: 30px; }

@media (max-width: 860px) {
  .cards-grid, .why-grid, .portfolio-grid, .kontakt-grid { grid-template-columns: 1fr; }
  .direction-block, .direction-block.reverse { flex-direction: column; align-items: stretch; gap: 24px; }
  .direction-photo { flex: none; aspect-ratio: 16/10; }
  nav { display: none; }
  .nav-toggle { display: block; }
  header.nav-open nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 10px 24px 20px;
  }
  header.nav-open nav ul { flex-direction: column; gap: 16px; }
}

.direction-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Мозаика из нескольких фото в блоке направления */
.direction-photo .photo-collage {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
}
.direction-photo .photo-collage img:first-child { grid-row: 1 / 3; }

/* Карусель фото в блоках направлений */
.carousel { position: relative; width: 100%; height: 100%; }
.carousel-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(32, 31, 29, 0.55);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 3px;
  transition: background 0.15s;
}
.carousel-btn:hover { background: var(--accent); }
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.carousel-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}
.carousel-dots button.active { background: var(--accent); }

/* Hero: текст слева, фото справа */
.hero { text-align: left; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}
.hero-text h1 { margin-bottom: 20px; }
.hero-text .lead { margin: 0 0 32px; max-width: 520px; }
.hero-text .cta-row { justify-content: flex-start; }
.hero-photo {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 24px 60px rgba(32, 31, 29, 0.22);
  border: 1px solid var(--line);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero .process { margin-bottom: 0; }

@media (max-width: 860px) {
  .hero { text-align: center; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; margin-bottom: 48px; }
  .hero-text .lead { margin: 0 auto 28px; }
  .hero-text .cta-row { justify-content: center; }
  .hero-photo { order: -1; aspect-ratio: 16/10; }
}

/* ===== Чертёжная стилистика ===== */

/* Размерная линия после номера раздела */
.eyebrow { display: flex; align-items: center; gap: 14px; }
.eyebrow::after {
  content: "";
  width: 90px;
  height: 9px;
  border-left: 1px solid currentColor;
  border-right: 1px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
  opacity: 0.55;
}

/* Уголки-метки (как рамка листа/кадрирование чертежа) на фото */
.hero-photo, .direction-photo { position: relative; overflow: visible; }
.hero-photo > img, .direction-photo > img, .direction-photo .carousel { border-radius: inherit; }
.direction-photo .carousel-track { border-radius: 16px; }
.hero-photo { border-radius: 18px; }
.hero-photo > img { border-radius: 18px; }
.hero-photo::before, .hero-photo::after,
.direction-photo::before, .direction-photo::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border: 0 solid var(--accent);
  pointer-events: none;
  z-index: 2;
}
.hero-photo::before, .direction-photo::before { top: -10px; left: -10px; border-top-width: 2px; border-left-width: 2px; }
.hero-photo::after, .direction-photo::after { bottom: -10px; right: -10px; border-bottom-width: 2px; border-right-width: 2px; }

/* Тонкая чертёжная сетка на тёмной секции */
.section-dark {
  background-image:
    linear-gradient(rgba(237, 230, 221, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 230, 221, 0.045) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Пунктирный «осевой» разделитель между секциями */
section { border-bottom: 1px dashed var(--line); }
.hero { border-bottom-style: solid; }

/* Номера направлений — как маркеры на плане */
.direction-content .num, .card .num {
  border-radius: 4px;
  background: transparent;
  border: 1.5px solid var(--accent);
}

/* Hero без фото: текст по центру */
.hero { text-align: center; }
.hero-grid { grid-template-columns: 1fr; margin-bottom: 48px; }
.hero-text .lead { margin: 0 auto 32px; }
.hero-text .cta-row { justify-content: center; }

/* ===== Едва заметный узор из строительных значков («25-й кадр») ===== */
body {
  background-image: url("assets/pattern-tools.svg");
  background-size: 560px 560px;
}

.hero {
  background-image:
    radial-gradient(circle at 20% 20%, rgba(230, 126, 34, 0.12), transparent 42%),
    radial-gradient(circle at 80% 0%, rgba(230, 126, 34, 0.09), transparent 48%),
    url("assets/pattern-tools.svg");
  background-size: auto, auto, 560px 560px;
  background-color: var(--bg);
}

.section-dark {
  background-image:
    linear-gradient(rgba(237, 230, 221, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 230, 221, 0.04) 1px, transparent 1px),
    url("assets/pattern-tools-light.svg");
  background-size: 40px 40px, 40px 40px, 560px 560px;
}

/* ===== Упрощение: меньше декора, больше воздуха ===== */
body { background-image: none; }
.hero {
  background-image: radial-gradient(circle at 50% 0%, rgba(230, 126, 34, 0.08), transparent 55%);
  background-size: auto;
  background-color: var(--bg);
}
.hero::after { display: none; }
.section-dark {
  background-image: url("assets/pattern-tools-light.svg");
  background-size: 560px 560px;
}

/* ===== Правки по аудиту ===== */
.lang-switch[hidden] { display: none; }

.header-phone {
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}
.header-phone:hover { color: var(--accent); }
@media (max-width: 520px) { .header-phone { font-size: 14px; } }

.mid-cta {
  margin-top: 56px;
  padding: 28px 32px;
  border: 1px dashed var(--accent);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--bg-elevated);
}
.mid-cta p { margin: 0; font-size: 17px; max-width: 560px; }
@media (max-width: 860px) { .mid-cta { flex-direction: column; align-items: flex-start; } }

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s;
}
.wa-float:hover { transform: scale(1.06); }

/* Компактнее блок направлений */
.direction-blocks { gap: 40px; }
.direction-photo { flex: 0 0 38%; aspect-ratio: 3/2; }
section { padding: 64px 0; }
.hero { padding: 80px 0 64px; }

/* ===== Блок «1-2-3»: выделенная карточка ===== */
.hero .process {
  max-width: 980px;
  margin: 0 auto;
  padding: 36px 32px 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(32, 31, 29, 0.10);
  gap: 28px;
}
.hero .process::before {
  top: 60px;
  left: calc(100% / 6 + 20px);
  right: calc(100% / 6 + 20px);
  opacity: 0.7;
}
.process-dot {
  width: 48px;
  height: 48px;
  font-size: 22px;
  margin-bottom: 14px;
  box-shadow: 0 0 0 8px var(--bg-elevated);
}
.process-label {
  display: block;
  font-size: 12px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 6px;
}
.process-time {
  display: block;
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.process-step p { font-size: 14px; line-height: 1.45; }

@media (max-width: 640px) {
  .hero .process { padding: 28px 20px; align-items: flex-start; }
  .hero .process::before { top: 20px; bottom: 20px; left: 44px; right: auto; }
  .process-step { padding-left: 72px; }
  .process-dot { position: absolute; left: 0; top: 0; }
  .process-time { font-size: 20px; }
}

/* ===== «Почему DBD»: полоса реальных фото проектов с тёмным фильтром ===== */
#warum { position: relative; overflow: hidden; background-image: none; }
#warum .container { position: relative; z-index: 2; }
.photo-strip {
  position: absolute;
  inset: 0;
  display: flex;
  z-index: 0;
}
.photo-strip img {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.25) contrast(1.05);
}
.photo-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(32, 31, 29, 0.84), rgba(32, 31, 29, 0.78));
}
@media (max-width: 640px) {
  .photo-strip img:nth-child(n+4) { display: none; }
}

/* ===== Как мы работаем ===== */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 28px;
}
.steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.step-n {
  flex: 0 0 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps h4 { margin: 2px 0 6px; font-family: var(--font-heading); font-size: 17px; }
.steps p { margin: 0; color: var(--text-muted); font-size: 14.5px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ===== Вопросы и ответы ===== */
.faq { max-width: 820px; margin-top: 8px; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--text-muted); max-width: 680px; }

/* ===== Лестница «Как мы работаем» (6 ступеней, первые три — обещания) ===== */
.stairs {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  align-items: end;
}
.stair {
  position: relative;
  min-height: calc(170px + var(--i) * 34px);
  padding: 18px 16px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-top: 4px solid var(--line);
  border-radius: 12px 12px 4px 4px;
  display: flex;
  flex-direction: column;
}
.stair.promise { border-top-color: var(--accent); }
.stair.finish { background: var(--text); border-color: var(--text); border-top-color: var(--accent); }
.stair.finish h4, .stair.finish p { color: var(--bg); }
.stair.finish p { opacity: 0.8; }
.stair-n {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--bg-elevated-2);
  color: var(--text);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.stair.promise .stair-n, .stair.finish .stair-n { background: var(--accent); color: #fff; }
.stair-time {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.25;
  color: var(--accent);
  margin-bottom: 6px;
}
.stair h4 { margin: 0 0 6px; font-family: var(--font-heading); font-size: 16px; }
.stair p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--text-muted); }

@media (max-width: 980px) {
  .stairs { grid-template-columns: 1fr; gap: 12px; align-items: stretch; }
  .stair { min-height: 0; margin-left: calc((var(--i) - 1) * 14px); border-radius: 12px; border-top-width: 1px; border-left: 4px solid var(--line); }
  .stair.promise { border-left-color: var(--accent); border-top-color: var(--line); }
  .stair.finish { border-left-color: var(--accent); border-top-color: var(--text); }
  .stair-time { font-size: 15px; }
}

/* ===== Переключатель языков (ссылки) ===== */
.lang-switch a {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.15s;
}
.lang-switch a.active { background: var(--accent); color: #1a1918; }
.lang-switch a:not(.active):hover { color: var(--accent); }
@media (max-width: 520px) {
  .header-phone { display: none; }
  .lang-switch a { padding: 4px 7px; font-size: 12px; }
  .logo-img { height: 44px; }
}

/* ===== Структура лендинга: микротекст под CTA, CTA в шапке, финальный призыв ===== */
.cta-note { margin: 14px 0 0; font-size: 13.5px; color: var(--text-muted); }
.header-cta { padding: 9px 16px; font-size: 14px; white-space: nowrap; }
@media (max-width: 1180px) { .header-cta { display: none; } }

.final-cta { text-align: center; }
.final-cta .section-title { color: var(--text); }
.final-cta .section-intro { margin: 0 auto 28px; }
.final-cta .cta-row { justify-content: center; }
.final-cta .btn-outline { border-color: rgba(237, 230, 221, 0.35); color: var(--text); }
.final-cta .btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ===== Направления: сначала название, потом карусель, потом текст ===== */
.direction-block {
  display: grid;
  grid-template-columns: 42% 1fr;
  grid-template-areas: "head head" "photo content";
  column-gap: 48px;
  row-gap: 18px;
  align-items: start;
}
.direction-block.reverse {
  grid-template-columns: 1fr 42%;
  grid-template-areas: "head head" "content photo";
}
.direction-head { grid-area: head; display: flex; align-items: center; gap: 14px; }
.direction-head h3 { margin: 0; font-family: var(--font-heading); font-size: 28px; font-weight: 700; }
.direction-head .num { margin: 0; }
.direction-block .direction-photo { grid-area: photo; flex: none; width: 100%; }
.direction-block .direction-content { grid-area: content; align-self: center; }
@media (max-width: 860px) {
  .direction-block, .direction-block.reverse {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: "head" "photo" "content";
    gap: 16px;
  }
  .direction-head h3 { font-size: 24px; }
}

/* номер направления в новой шапке блока */
.direction-head .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 4px;
  border: 1.5px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-weight: 800;
  font-size: 14px;
  flex: none;
}

/* шапка: ссылки не переносятся, кнопка показывается только на широких экранах */
nav a { white-space: nowrap; }
nav ul { gap: 22px; }
@media (max-width: 1320px) { .header-cta { display: none; } }

/* Карточка «1-2-3» полегче: значки вместо цифр */
.process-dot svg {
  width: 24px; height: 24px;
  fill: none; stroke: #fff; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.hero .process-dot { width: 52px; height: 52px; }
.hero .process-label { font-size: 13px; letter-spacing: 1.2px; margin-bottom: 8px; }
.hero .process-time { font-size: 21px; }
.hero .process-step p { font-size: 13.5px; color: var(--text-muted); }


/* ===== Лента фото проектов: квадратные кадры нормальных пропорций, плавно едет ===== */
.photo-strip { overflow: hidden; }
.strip-track {
  display: flex;
  height: 100%;
  width: max-content;
  animation: strip-move 140s linear infinite;
}
.strip-track img {
  flex: none;
  height: 100%;
  width: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.photo-strip img { flex: none; }
@keyframes strip-move { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip-track { animation: none; } }
@media (max-width: 640px) { .photo-strip img:nth-child(n+4) { display: block; } }
.strip-track img { max-width: none; min-width: 0; }

/* ===== Главная кнопка «БЕСПЛАТНО» (вариант E) ===== */
.btn-cta {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 38px 18px;
  margin-top: 14px;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 8px 20px rgba(32, 31, 29, 0.22);
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn-cta em {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #1a1918;
  font-style: normal;
  font-size: 13px;
  letter-spacing: 1.2px;
  padding: 5px 14px;
  border-radius: 20px;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.btn-cta small { font-size: 14px; font-weight: 600; opacity: .8; margin-top: 4px; }
.btn-cta:hover {
  transform: translateY(-3px);
  background: var(--accent);
  color: #1a1918;
  box-shadow: 0 14px 30px rgba(230, 126, 34, 0.45);
}
.btn-cta:hover em { background: #201F1D; color: #EDE6DD; }
.btn-cta:active { transform: translateY(0) scale(.98); }
.btn-cta:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
/* на тёмном фоне кнопка светлая (--text/--bg переопределены в .section-dark) */
.section-dark .btn-cta { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35); }
.section-dark .btn-cta:hover { background: var(--accent); color: #1a1918; }
.cta-row .btn-outline, .final-cta .btn-outline { align-self: center; padding: 18px 24px; border-radius: 12px; }
@media (max-width: 640px) {
  .btn-cta { width: 100%; padding: 26px 20px 18px; }
  .cta-row .btn-outline, .final-cta .btn-outline { width: 100%; text-align: center; }
}

.why-note { margin: 28px 0 0; font-size: 13px; color: var(--text-muted); max-width: 720px; }

/* ===== Пояснения со звёздочками под сроками ===== */
.promise-notes { max-width: 980px; margin: 14px auto 0; text-align: left; }
.promise-notes p { margin: 0 0 4px; font-size: 12.5px; line-height: 1.45; color: var(--text-muted); }
.hero .promise-notes { padding: 0 8px; }

/* ===== Шапка: шире, без налезания, элементы убираются по приоритету ===== */
.header-inner { max-width: 1360px; gap: 24px; }
.header-inner > a { flex: none; display: block; }
.logo-img { flex: none; max-width: none; }
nav { flex: 1 1 auto; min-width: 0; justify-content: center; }
@media (min-width: 861px) { nav { display: flex; } }
nav ul { gap: 22px; }
.header-right { flex: none; gap: 16px; }
.header-cta { margin: 0; }
@media (max-width: 1440px) { .header-cta { display: none; } }
@media (max-width: 1100px) { .header-phone { display: none; } nav ul { gap: 16px; } }


/* крупнее зона нажатия у ссылок в блоках направлений */
.card-link { display: inline-flex; align-items: center; min-height: 44px; }
.faq summary { min-height: 44px; align-items: center; }
.faq details { padding: 6px 0; }
.faq details[open] > p { padding-bottom: 14px; }

/* «Готовы начать?»: чистый тёмный фон без значков */
.final-cta { background-image: none; }

/* ===== Раздел «Наши работы» ===== */
.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin: 8px 0 20px; }
.work-card { display: block; text-decoration: none; color: inherit; background: var(--bg-elevated); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.work-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(32, 31, 29, 0.14); }
.work-thumb { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-elevated-2); }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.work-card:hover .work-thumb img { transform: scale(1.04); }
.ba-badge { position: absolute; left: 10px; top: 10px; background: var(--accent); color: #1a1918; font: 700 12px var(--font-heading); letter-spacing: .6px; padding: 5px 10px; border-radius: 20px; }
.work-body { display: block; padding: 14px 16px 18px; }
.work-place { display: block; font-size: 12px; letter-spacing: .5px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.work-body h3 { margin: 0; font-family: var(--font-heading); font-size: 17px; line-height: 1.3; }
.works-note { margin: 10px 0 18px; font-size: 13px; color: var(--text-muted); max-width: 760px; }

.work-head { padding: 56px 0 18px; }
.work-head h1 { font-family: var(--font-heading); font-size: clamp(28px, 4vw, 42px); line-height: 1.15; margin: 4px 0 14px; max-width: 900px; }
.work-head .lead { color: var(--text-muted); font-size: 18px; max-width: 760px; margin: 0 0 20px; }
.work-back { display: inline-block; margin-bottom: 18px; font-weight: 600; text-decoration: none; color: var(--accent); }
.work-meta { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; }
.work-meta b { display: block; font-size: 12px; letter-spacing: .6px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px; }
.work-body-sec { padding: 28px 0 56px; }
.work-body-sec .section-title { margin-top: 36px; }

.ba-list { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); margin-bottom: 8px; }
.ba { position: relative; aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; margin: 0; background: var(--bg-elevated-2); user-select: none; }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-clip { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25); pointer-events: none; }
.ba-handle::after { content: "\2194"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 42px; height: 42px; border-radius: 50%; background: #fff; color: #201F1D; display: flex; align-items: center; justify-content: center; font-size: 20px; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba-tag { position: absolute; top: 12px; padding: 5px 12px; border-radius: 20px; font: 700 12px var(--font-heading); letter-spacing: .8px; text-transform: uppercase; background: rgba(32,31,29,.78); color: #EDE6DD; pointer-events: none; }
.ba-tag-before { left: 12px; }
.ba-tag-after { right: 12px; background: var(--accent); color: #1a1918; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 16px 0 10px; }
.g-item { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; background: var(--bg-elevated-2); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.g-item:hover img { transform: scale(1.05); }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20,19,18,.94); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lb-img { max-width: 92vw; max-height: 88vh; border-radius: 6px; }
.lb-close, .lb-prev, .lb-next { position: absolute; background: rgba(255,255,255,.14); color: #fff; border: none; width: 48px; height: 48px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; }
.lb-close { top: 18px; right: 18px; } .lb-prev { left: 18px; } .lb-next { right: 18px; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--accent); }

.map-sec { padding: 56px 0; }
.map-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.map-box { max-width: 420px; justify-self: center; width: 100%; }
.work-map { width: 100%; height: auto; display: block; }
.m-land { fill: var(--bg-elevated-2); stroke: var(--line); stroke-width: 2; stroke-linejoin: round; }
.m-dot { fill: var(--accent); }
.m-ring { fill: none; stroke: var(--accent); opacity: .45; }
.m-label { font: 600 15px var(--font-heading); fill: var(--text); paint-order: stroke; stroke: var(--bg); stroke-width: 4px; }
@media (max-width: 860px) { .map-wrap { grid-template-columns: 1fr; } .work-head { padding-top: 36px; } }
#arbeiten .card-link { margin-top: 6px; }

/* видео проектов */
.videos { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0 28px; }
.videos video { height: min(520px, 70vh); max-width: 100%; aspect-ratio: 9 / 16; background: #232220; border-radius: 12px; object-fit: cover; }

/* звёздочки сносок: небольшие, надстрочные */
.ast { font-size: 0.62em; line-height: 0; vertical-align: super; font-weight: 400; margin: 0 1px; }

/* полоса «в команду» перед подвалом */
.team-strip { background: var(--bg); border-top: 1px dashed var(--line); padding: 28px 0 32px; }
.team-strip .container { display: grid; gap: 14px; }
.team-head h2 { font-size: 20px; margin: 0 0 4px; }
.team-head p { margin: 0; color: var(--text-muted); font-size: 14.5px; }
.team-form { display: grid; grid-template-columns: 1fr; gap: 10px; }
.team-form input[type=text], .team-form input[type=email] { width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 15px; min-height: 44px; }
.team-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.team-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--text-muted); line-height: 1.45; }
.team-consent input { margin-top: 2px; width: 18px; height: 18px; flex: none; }
.team-consent a { color: inherit; text-decoration: underline; }
.team-form .btn { min-height: 44px; }
@media (min-width: 861px) {
  .team-strip .container { grid-template-columns: 1fr; }
  .team-form { grid-template-columns: 1fr 1fr 1.3fr 2fr; align-items: center; }
  .team-consent { grid-column: 1 / 4; }
  .team-form .btn { grid-column: 4; justify-self: end; }
}
.team-strip.section-dark { background-image: none; border-top: 0; }
.team-strip.section-dark .team-form input[type=text],
.team-strip.section-dark .team-form input[type=email] { background: var(--bg-elevated); color: var(--text); }
.team-strip.section-dark .team-form input::placeholder { color: var(--text-muted); }
.team-strip.section-dark .team-head h2 { color: var(--text); }

/* сообщение после отправки формы */
.form-msg { margin: 10px 0 0; font-size: 14px; line-height: 1.4; }
.form-msg.ok { color: #2e7d32; }
.form-msg.err { color: #b3261e; }
.section-dark .form-msg.ok { color: #7fd18b; }
.section-dark .form-msg.err { color: #ff9c92; }
.team-form .form-msg { grid-column: 1 / -1; }
.kontakt-card .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* якоря: заголовок раздела не прячется под липкой шапкой */
section[id] { scroll-margin-top: 15px; }
.direction-block[id] { scroll-margin-top: 100px; }
.kontakt-card[id] { scroll-margin-top: 100px; }

/* защита фото: нельзя перетащить, выделить, сохранить долгим нажатием */
img, video { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.lightbox .lb-img { pointer-events: none; }

/* кнопка «Наверх» над кнопкой WhatsApp */
.to-top {
  position: fixed; right: 26px; bottom: 90px; z-index: 59;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: #232220; color: #EDE6DD;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22); transition: transform 0.15s, background 0.15s;
}
.to-top[hidden] { display: none; }
.to-top:hover { background: #E67E22; color: #201F1D; transform: translateY(-2px); }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* нижняя панель на телефоне: позвонить / WhatsApp / заявка */
.mobile-bar { display: none; }
@media (max-width: 860px) {
  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; background: #232220; border-top: 1px solid #3d3a35; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); gap: 6px; }
  .mobile-bar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 48px; color: #EDE6DD; font-size: 12px; font-weight: 600; border-radius: 10px; text-decoration: none; }
  .mobile-bar a.primary { background: #E67E22; color: #201F1D; }
  .mobile-bar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .wa-float { display: none; }
  .to-top { bottom: 76px; right: 14px; }
  body { padding-bottom: 66px; }
}
/* статус «сейчас отвечаем» */
.status-line { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 13.5px; color: var(--text-muted); }
.status-line[hidden] { display: none; }
.status-line .dot { width: 9px; height: 9px; border-radius: 50%; background: #9a948b; flex: none; }
.status-line.on .dot { background: #2e9e57; box-shadow: 0 0 0 3px rgba(46, 158, 87, 0.18); }
@media (max-width: 860px) { .hero .status-line { justify-content: center; text-align: center; } }

/* видео в блоке «DBD Service» */
.svc-videos { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 18px 0 8px; padding-bottom: 6px; }
.svc-videos figure { margin: 0; flex: none; scroll-snap-align: start; max-width: 165px; }
.svc-videos video { display: block; height: 280px; width: auto; aspect-ratio: 9 / 16; border-radius: 12px; background: #232220; object-fit: cover; }
.svc-videos figcaption { margin-top: 6px; font-size: 12.5px; line-height: 1.35; color: var(--text-muted); }
.direction-content, .direction-block { min-width: 0; }
.svc-videos { max-width: 100%; }
