/* Официально-деловая стилистика, бордовая палитра */
:root {
  --bg: #f7f4f2;
  --bg-alt: #efe8e4;
  --surface: #ffffff;
  --surface-muted: #faf7f5;
  --text: #1c1216;
  --muted: #5a4d52;
  --muted-2: #7a6b70;
  --brand: #6b1c32;
  --brand-dark: #4a0f22;
  --brand-light: #8f2d45;
  --accent: #9a7b4f;
  --border: #ddd2d6;
  --border-strong: #c4b0b8;
  --shadow: 0 8px 28px rgba(74, 15, 34, 0.08);
  --shadow-lg: 0 20px 50px rgba(74, 15, 34, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --gradient-hero: linear-gradient(135deg, rgba(107, 28, 50, 0.04) 0%, rgba(154, 123, 79, 0.06) 50%, rgba(247, 244, 242, 0) 100%);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-weight: 700;
  color: var(--brand-dark);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  z-index: 9999;
}

.skip-link:focus { left: 10px; }

.container {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Шапка */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 2px solid var(--brand);
  box-shadow: 0 2px 12px rgba(74, 15, 34, 0.06);
  padding: 0px 10px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 220px;
}

.brand img {
  width: 150px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--brand);
  border: 1px solid var(--brand-dark);
}

.brand-text { display: flex; flex-direction: column; }

.brand-name {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--brand-dark);
  letter-spacing: 0.01em;
}

.brand-tag {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav a:hover { color: var(--brand); }

.nav-cta {
  color: #fff !important;
  background: var(--brand);
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--brand-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 13px;
}

.nav-cta:hover {
  background: var(--brand-dark);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span[aria-hidden="true"] {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--brand-dark);
  margin: 0 auto;
  position: relative;
}

.nav-toggle span[aria-hidden="true"]::before,
.nav-toggle span[aria-hidden="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--brand-dark);
}

.nav-toggle span[aria-hidden="true"]::before { top: -6px; }
.nav-toggle span[aria-hidden="true"]::after { top: 6px; }

body.nav-open .nav { display: flex; }

/* Герой */
.hero {
  position: relative;
  padding: 72px 0 48px;
  background: var(--gradient-hero);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(107, 28, 50, 0.07), transparent),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(154, 123, 79, 0.08), transparent);
  pointer-events: none;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-copy { padding: 8px 0; }

.kicker {
  display: inline-block;
  padding: 6px 0;
  color: var(--brand);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-bottom: 2px solid var(--accent);
}

h1 {
  margin: 18px 0 16px;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.lead {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 17px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn:hover {
  border-color: var(--brand);
  background: var(--surface-muted);
}

.btn-primary {
  border-color: var(--brand-dark);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(74, 15, 34, 0.25);
}

.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
  box-shadow: 0 6px 20px rgba(74, 15, 34, 0.35);
}

.btn-ghost {
  background: transparent;
  border-color: var(--brand);
  color: var(--brand);
}

.btn-block { width: 100%; }

.btn-small {
  padding: 9px 16px;
  font-size: 13px;
}

.hero-bullets {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
  max-width: 480px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}

.hero-bullets li {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

.hero-bullets li:last-child { border-bottom: none; }

.hero-bullets li::before {
  content: "✓ ";
  color: var(--brand);
  font-weight: 700;
}

.hero-card {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(74, 15, 34, 0.14);
}

.hero-card-top {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  padding: 6px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-muted);
  font-weight: 700;
  color: var(--brand-dark);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.chip-alt {
  background: rgba(107, 28, 50, 0.06);
  border-color: rgba(107, 28, 50, 0.2);
  color: var(--brand);
}

.hero-stats {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  padding: 16px 12px;
  background: var(--surface-muted);
  text-align: center;
}

.stat-num {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--brand);
}

.stat-label {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-card-bottom { margin-top: 20px; }

.muted { color: var(--muted); }

.hero-card-links {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border-bottom: 1px solid transparent;
}

.link:hover { border-bottom-color: var(--brand); }

.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

/* Полоса метрик */
.metrics-bar {
  padding: 28px 0;
  background: var(--brand-dark);
  color: #fff;
}

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

.metric {
  text-align: center;
  padding: 8px 12px;
}

.metric-num {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  font-size: clamp(28px, 3vw, 36px);
  color: #fff;
  line-height: 1.1;
}

.metric-label {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.4;
}

/* Секции */
.section { padding: 72px 0; }

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

h2 {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 30px);
  letter-spacing: -0.01em;
}

.section-head p { margin: 10px 0 0; max-width: 640px; }

.section-head-center {
  text-align: center;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 40px;
}

.section-head-center p { margin-left: auto; margin-right: auto; }

.section-kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(107, 28, 50, 0.08);
  border: 1px solid rgba(107, 28, 50, 0.15);
  color: var(--brand);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Карточки услуг */
.cards-grid-services {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-service {
  position: relative;
  padding: 26px 24px 22px;
  border-top: 3px solid transparent;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.card-service:hover {
  transform: translateY(-6px);
  border-top-color: var(--brand);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  font-size: 28px;
  color: rgba(107, 28, 50, 0.15);
  line-height: 1;
  margin-bottom: 8px;
}

.card-list {
  margin: 14px 0 0;
  padding: 0 0 0 18px;
  list-style: none;
}

.card-list li {
  position: relative;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.card-list li::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Направления */
.directions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.direction-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.direction-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-light);
  box-shadow: var(--shadow);
}

.direction-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.direction-card a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(107, 28, 50, 0.25);
}

.direction-card a:hover { border-bottom-color: var(--brand); }

/* Стек технологий */
.stack-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stack-item {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 13px;
  color: var(--brand-dark);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.stack-item:hover {
  background: rgba(107, 28, 50, 0.08);
  border-color: rgba(107, 28, 50, 0.25);
  transform: translateY(-2px);
}

/* Mobile-секция */
.mobile-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.mobile-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.mobile-features li {
  padding: 16px 18px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}

.mobile-features strong {
  display: block;
  color: var(--brand-dark);
  margin-bottom: 4px;
  font-size: 15px;
}

.mobile-showcase-phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 420px;
  padding: 20px 0;
}

.phone-frame {
  margin: 0;
  width: 200px;
  border-radius: 28px;
  overflow: hidden;
  border: 3px solid var(--brand-dark);
  box-shadow: var(--shadow-lg);
  background: #111;
}

.phone-frame img {
  width: 100%;
  display: block;
  vertical-align: top;
}

.phone-frame-left {
  transform: rotate(-8deg) translateX(24px);
  z-index: 1;
  opacity: 0.92;
}

.phone-frame-center {
  width: 220px;
  z-index: 3;
  transform: translateY(-12px);
}

.phone-frame-right {
  transform: rotate(8deg) translateX(-24px);
  z-index: 2;
  opacity: 0.92;
}

/* Преимущества */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.benefit-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.25s, box-shadow 0.25s;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.benefit-num {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  font-size: 32px;
  color: rgba(107, 28, 50, 0.2);
  line-height: 1;
  margin-bottom: 12px;
}

.benefit-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

/* Шаги расширенные */
.steps-enhanced {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 auto 40px;
}

.step-enhanced {
  transition: transform 0.25s, box-shadow 0.25s;
}

.step-enhanced:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow);
}

/* Форматы работы */
.formats-block {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-muted);
}

.formats-title {
  margin: 0 0 20px;
  font-size: 18px;
  text-align: center;
}

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

.format-item {
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.format-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-dark);
  font-size: 15px;
}

.format-item p { margin: 0; font-size: 14px; }

/* CTA-баннер */
.cta-banner {
  padding: 56px 0;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
}

.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-banner-copy h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(22px, 2.5vw, 28px);
}

.cta-banner-copy .muted {
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  max-width: 480px;
}

.cta-banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

/* Команда улучшенная */
.person-enhanced {
  transition: transform 0.25s, box-shadow 0.25s;
  border-top: 3px solid transparent;
}

.person-enhanced:hover {
  transform: translateY(-6px);
  border-top-color: var(--brand);
  box-shadow: var(--shadow-lg);
}

/* Появление при скролле */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Карточки услуг */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.tags {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  padding: 4px 10px;
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand);
  background: rgba(107, 28, 50, 0.06);
  border: 1px solid rgba(107, 28, 50, 0.15);
}

/* Команда */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.person {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: var(--brand);
  border: 2px solid var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: #fff;
}

.person-name {
  margin-top: 16px;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--brand-dark);
}

.person-role {
  margin-top: 4px;
  color: var(--brand);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.person-links {
  margin-top: 16px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.small-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}

.small-link:hover { border-bottom-color: var(--brand); }

/* Карусель портфолио */
.portfolio-carousel {
  position: relative;
  margin-bottom: 48px;
  padding: 36px 28px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 8px;
  pointer-events: none;
  z-index: 3;
}

.carousel-btn {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--brand-dark);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.carousel-btn:hover {
  background: var(--brand);
  border-color: var(--brand-dark);
  color: #fff;
}

.carousel-viewport {
  overflow: hidden;
  padding: 12px 0 50px;
  min-height: 420px;
}

.carousel-track {
  display: flex;
  align-items: stretch;
  gap: 20px;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 min(600px, calc(100% - 48px));
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-muted);
  overflow: hidden;
  opacity: 0.45;
  transform: scale(0.92);
  transition: opacity 0.45s, transform 0.45s, box-shadow 0.45s, border-color 0.45s;
  scroll-snap-align: center;
}

.carousel-slide.is-active {
  opacity: 1;
  transform: scale(1);
  border-color: var(--brand);
  box-shadow: 0 16px 40px rgba(74, 15, 34, 0.14);
}

.carousel-slide:hover.is-active {
  border-color: var(--brand-light);
}

.carousel-slide-frame {
  aspect-ratio: 16 / 11;
  min-height: 360px;
  overflow: hidden;
  background: #1a1216;
  border-bottom: 1px solid var(--border);
}

.carousel-slide-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.5s;
}

.carousel-slide.is-active:hover .carousel-slide-frame img {
  transform: scale(1.03);
}

.carousel-slide-info {
  padding: 16px 18px 18px;
}

.carousel-slide-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(107, 28, 50, 0.1);
  border: 1px solid rgba(107, 28, 50, 0.2);
  color: var(--brand);
  margin-bottom: 8px;
}

.carousel-slide-badge-alt {
  background: rgba(154, 123, 79, 0.12);
  border-color: rgba(154, 123, 79, 0.3);
  color: #7a5f2e;
}

.carousel-slide-badge-bot {
  background: rgba(36, 129, 204, 0.1);
  border-color: rgba(36, 129, 204, 0.25);
  color: #1a6fa8;
}

.carousel-slide-info h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.carousel-slide-info p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.carousel-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.carousel-dots {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.carousel-dot-btn {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--border-strong);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.carousel-dot-btn.is-active {
  background: var(--brand);
  transform: scale(1.25);
}

.carousel-hint {
  margin: 0;
  font-size: 12px;
  text-align: center;
}

/* Описания проектов */
.projects-details {
  display: grid;
  gap: 28px;
}

.project-detail {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  scroll-margin-top: 96px;
  transition: box-shadow 0.4s, border-color 0.4s;
}

.project-detail.is-highlight {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(107, 28, 50, 0.12);
}

.project-detail-head h3 {
  margin: 10px 0 12px;
  font-size: 24px;
}

.project-detail-head p {
  margin: 0;
  max-width: 720px;
}

.project-features {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.project-features li {
  padding: 10px 14px;
  border-left: 3px solid var(--brand);
  background: var(--surface-muted);
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

.project-link {
  margin: 16px 0 0;
  font-size: 15px;
}

.project-link a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.project-link a:hover {
  border-bottom-color: var(--brand);
}

.project-gallery {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.project-gallery figure {
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface-muted);
}

.project-gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  display: block;
  cursor: zoom-in;
  transition: transform 0.3s;
}

.project-gallery figure:hover img {
  transform: scale(1.02);
}

.project-gallery figcaption {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.work-badge {
  font-weight: 700;
  font-size: 10px;
  padding: 5px 10px;
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid rgba(107, 28, 50, 0.25);
  background: rgba(107, 28, 50, 0.08);
  color: var(--brand);
}

.work-badge-alt {
  background: rgba(154, 123, 79, 0.12);
  border-color: rgba(154, 123, 79, 0.35);
  color: #7a5f2e;
}

/* Страница проекта */
.project-page {
  padding: 40px 0 64px;
}

.project-back {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.project-back:hover {
  border-bottom-color: var(--brand);
}

.project-detail-page {
  scroll-margin-top: 96px;
}

.project-detail-page h1 {
  margin: 10px 0 12px;
  font-size: clamp(28px, 3vw, 36px);
}

.brand-home-link {
  color: inherit;
  text-decoration: none;
}

.brand-home-link:hover {
  color: var(--brand);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 16px 0 28px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-muted);
  font-size: 14px;
}

.project-meta strong {
  color: var(--brand-dark);
}

.project-section {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.project-section:last-of-type {
  border-bottom: none;
}

.project-section h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-skills {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.project-skills li {
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

.project-skills li::before {
  content: "✓ ";
  color: var(--brand);
  font-weight: 800;
}

.project-cta {
  margin-top: 36px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: linear-gradient(135deg, rgba(107, 28, 50, 0.06), rgba(154, 123, 79, 0.08));
  border-left: 4px solid var(--brand);
}

.project-cta h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.project-cta p {
  margin: 0 0 16px;
  color: var(--muted);
}

.project-nav {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.project-nav a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.project-nav a:hover {
  border-bottom-color: var(--brand);
}

/* Карусель скриншотов на странице проекта */
.project-screens-carousel {
  position: relative;
  margin-bottom: 36px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #141018;
  box-shadow: var(--shadow);
}

.project-screens-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 12px;
  pointer-events: none;
  z-index: 2;
}

.project-screens-controls .carousel-btn {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--border);
}

.project-screens-viewport {
  overflow: hidden;
  background: #141018;
}

.project-screens-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.project-screen-slide {
  flex: 0 0 100%;
  margin: 0;
  min-height: min(72vh, 680px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #141018;
}

.project-screen-slide img {
  width: 100%;
  max-height: min(72vh, 680px);
  object-fit: contain;
  object-position: center center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.project-screen-slide figcaption {
  display: none;
}

.project-screens-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.project-screens-caption {
  margin: 0;
  font-weight: 700;
  color: var(--brand-dark);
  font-size: 15px;
}

.project-screens-counter {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

.project-screens-dots {
  flex: 1;
  justify-content: center;
}

.project-section-lead {
  margin: 0 0 20px;
}

.project-platform-title {
  margin: 24px 0 14px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 18px;
  color: var(--brand-dark);
}

.project-platform-title:first-of-type {
  margin-top: 0;
}

.project-screen-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.project-screen-card {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-muted);
}

.project-screen-card h4 {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--brand-dark);
}

.project-screen-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 680px) {
  .project-screen-slide {
    min-height: min(56vh, 480px);
  }

  .project-screen-slide img {
    max-height: min(56vh, 480px);
  }

  .project-screens-footer {
    flex-direction: column;
    text-align: center;
  }

  .project-screens-controls .carousel-btn {
    width: 38px;
    height: 38px;
  }

  .mobile-showcase {
    display: block;
  }

  .project-screen-cards {
    grid-template-columns: 1fr;
  }
}

/* Шаги */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  background: var(--brand);
  flex-shrink: 0;
}

.step-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  margin-top: 2px;
  color: var(--brand-dark);
}

/* Контакты */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.contact-card,
.contact-aside {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

.form { display: grid; gap: 16px; }

.field { display: grid; gap: 6px; }

.field-label {
  font-weight: 700;
  color: var(--brand-dark);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

input, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface-muted);
  color: var(--text);
  outline: none;
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

textarea { resize: vertical; min-height: 130px; }

input:focus, textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(107, 28, 50, 0.12);
  background: var(--surface);
}

.field-error {
  min-height: 18px;
  color: #a32020;
  font-size: 12px;
  font-weight: 600;
}

.form-hint { margin: 4px 0 0; font-size: 13px; }

.form-status {
  margin: 8px 0 0;
  font-weight: 700;
  color: var(--brand);
  min-height: 20px;
}

.aside-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.aside-row:last-of-type { border-bottom: none; }

.aside-label {
  color: var(--muted);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.aside-value { font-weight: 700; color: var(--brand-dark); }

.contact-aside a {
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.contact-aside a:hover { border-bottom-color: var(--brand); }

.aside-note {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-muted);
  padding: 14px;
  margin-top: 8px;
}

.aside-note-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 6px;
}

/* Подвал */
.footer {
  padding: 32px 0 48px;
  background: var(--brand-dark);
  color: rgba(255, 255, 255, 0.85);
  border-top: 3px solid var(--accent);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  font-size: 17px;
  color: #fff;
}

.footer .muted { color: rgba(255, 255, 255, 0.65); }

.footer-right {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-right a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.footer-right a:hover { color: #fff; }

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-contacts a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.footer-contacts a:hover { color: #fff; }

.footer-hours {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

/* Адаптив */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-grid,
  .cards-grid-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefits-grid { grid-template-columns: 1fr; }
  .formats-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .carousel-slide { flex-basis: calc(100% - 40px); }
  .cta-banner-inner { flex-direction: column; align-items: flex-start; }
  .mobile-showcase { grid-template-columns: 1fr; }
  .mobile-showcase-phones { min-height: 340px; }
  .phone-frame { width: 160px; }
  .phone-frame-center { width: 180px; }
}

@media (max-width: 680px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  body.nav-open .nav {
    position: absolute;
    left: 24px;
    right: 24px;
    top: 76px;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  body.nav-open .nav a { font-size: 14px; }

  .cards-grid,
  .cards-grid-services,
  .team-grid,
  .directions-grid { grid-template-columns: 1fr; }

  .metrics-grid { grid-template-columns: 1fr 1fr; }

  .carousel-controls { padding: 0 4px; }
  .carousel-btn { width: 38px; height: 38px; font-size: 16px; }
  .carousel-slide { flex-basis: 100%; max-width: none; }
  .project-detail { padding: 20px; }
  .project-gallery { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
