/* Astralis Group — стили: светлая/тёмная тема, адаптив, инженерный тон */

:root,
[data-theme="light"] {
  color-scheme: light;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", monospace;

  /* Светлая тема — основная палитра (product / AI, нейтрально) */
  --color-bg: #f7f8fa;
  --color-surface: #ffffff;
  --color-surface-soft: #f1f4f6;
  --color-surface-muted: #e8edf1;
  --color-text: #1e252b;
  --color-text-muted: #66737d;
  --color-accent: #5f9ea8;
  --color-accent-dark: #4b848d;
  --color-border: #d8e0e6;

  --bg: var(--color-bg);
  --bg-elevated: var(--color-surface);
  --bg-alt: var(--color-surface-soft);
  --bg-muted: var(--color-surface-muted);
  --text: var(--color-text);
  --text-muted: var(--color-text-muted);
  --border: var(--color-border);
  --border-strong: #c5ced6;
  --accent: var(--color-accent);
  --accent-hover: var(--color-accent-dark);
  --accent-fg: #ffffff;
  --focus: var(--color-accent);
  --danger: #b42318;

  --header-bg: var(--color-surface);
  --shadow: 0 1px 3px rgba(30, 37, 43, 0.03);
  --shadow-lg: 0 12px 32px rgba(30, 37, 43, 0.05);

  --radius-sm: 6px;
  --radius-md: 10px;
  --container: min(1120px, 100% - 2rem);
  --header-h: 4rem;
}

/* Тёмная тема — вторичный режим, мягкий graphite (без cyber/navy) */
[data-theme="dark"] {
  color-scheme: dark;
  --color-bg: #161b20;
  --color-surface: #1c2329;
  --color-surface-soft: #222b32;
  --color-surface-muted: #2a343d;
  --color-text: #e7edf2;
  --color-text-muted: #a5b1ba;
  --color-accent: #78aeb5;
  --color-accent-dark: #679ca3;
  --color-border: #33414c;

  --bg: var(--color-bg);
  --bg-elevated: var(--color-surface);
  --bg-alt: var(--color-surface-soft);
  --bg-muted: var(--color-surface-muted);
  --text: var(--color-text);
  --text-muted: var(--color-text-muted);
  --border: var(--color-border);
  --border-strong: #3f4d59;
  --accent: var(--color-accent);
  --accent-hover: var(--color-accent-dark);
  --accent-fg: #f7f8fa;
  --focus: var(--color-accent);
  --danger: #f87171;

  --header-bg: var(--color-surface);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  --shadow-lg: 0 10px 28px rgba(0, 0, 0, 0.24);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--color-bg);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Grain отключён — без затемняющего оверлея на странице */
.grain-overlay {
  display: none !important;
}

main {
  background-color: var(--color-bg);
}


img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--border-strong);
}

a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.container--narrow {
  width: min(720px, 100% - 2rem);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section__intro code,
.gallery__note code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.15em 0.35em;
  border-radius: 4px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
}

.site-header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
  min-height: 2.5rem;
}

.logo:hover {
  color: var(--text);
}

.logo__image {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  border-radius: 0;
  background: transparent;
}

.logo__media {
  width: 2rem;
  height: 2rem;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
}

.logo__media .logo__image {
  width: 100%;
  height: 100%;
}

.logo--footer .logo__media {
  width: 1.6rem;
  height: 1.6rem;
}

.logo__text {
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
}

/* Header: только текстовый бренд */
.site-header .logo {
  gap: 0;
  align-items: center;
  align-self: stretch;
  min-height: var(--header-h);
  padding: 0;
}

.site-header .logo__text {
  font-size: 1.0625rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

@media (min-width: 900px) {
  .site-header .logo__text {
    font-size: 1.125rem;
  }
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle__bar {
  display: block;
  width: 1.125rem;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  justify-content: center;
}

.site-nav__list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
}

@media (min-width: 1100px) {
  .site-nav__list a {
    font-size: 0.875rem;
  }
}

.site-nav__list a:hover {
  color: var(--text);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--color-surface-soft);
  cursor: pointer;
  display: grid;
  place-items: center;
  position: relative;
  color: var(--text);
}

.theme-toggle__icon {
  width: 1.125rem;
  height: 1.125rem;
  position: absolute;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.theme-toggle__icon--sun {
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--bg-elevated);
}

.theme-toggle__icon--moon {
  border-radius: 50%;
  box-shadow: inset -5px -2px 0 0 currentColor;
  opacity: 0;
  transform: rotate(-20deg) scale(0.6);
}

[data-theme="dark"] .theme-toggle__icon--sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
}

[data-theme="dark"] .theme-toggle__icon--moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.header-cta {
  white-space: nowrap;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--accent-fg);
}

.btn--primary:active {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--text);
  background: var(--bg-alt);
}

.btn--sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
}

.btn--block {
  width: 100%;
}

/* Hero */

.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.5rem, 7vw, 4rem);
  border-bottom: 1px solid var(--border);
  background: var(--color-surface);
}

[data-theme="dark"] .hero {
  background: var(--color-bg);
}

.hero::after,
.hero-bottom-fade {
  display: none;
}

.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr minmax(260px, 340px);
  }
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.hero__title {
  font-size: clamp(1.65rem, 3.6vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 1.125rem;
  font-weight: 700;
}

.hero__subtitle {
  margin: 0 0 1.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--text);
  max-width: 34rem;
}

.hero__lead {
  margin: 0 0 1.125rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 36rem;
}

.hero__geo {
  margin: 0 0 1.35rem;
  max-width: 34rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.channel-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  list-style: none;
  margin: 0.3rem 0 0;
  padding: 0;
}

.channel-strip__item {
  display: inline-block;
  padding: 0.28rem 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}

a.channel-strip__item {
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

a.channel-strip__item:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--color-surface-soft);
}

a.channel-strip__item:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.channel-strip--contact {
  margin-top: 0.45rem;
}

.hero__stats {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 1.35rem 0 0;
  border-top: 1px solid var(--border);
}

@media (min-width: 600px) {
  .hero__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.hero__stat {
  margin: 0;
}

.hero__stat-term {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
}

.hero__stat-desc {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
}

.hero__panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

main section[id] {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.hero__diagram {
  display: block;
}

.hero__diagram-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 1rem;
}

.hero__diagram-nodes {
  display: grid;
  gap: 0.5rem;
}

.hero__diagram-nodes--5,
.hero__diagram-nodes--6 {
  grid-template-columns: 1fr;
}

@media (min-width: 380px) {
  .hero__diagram-nodes--5,
  .hero__diagram-nodes--6 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .hero__diagram-nodes--5,
  .hero__diagram-nodes--6 {
    grid-template-columns: 1fr;
  }
}

.skud-block + .skud-block {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.hero__node {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--color-surface-soft);
  text-align: center;
}

a.hero__nav-link {
  color: inherit;
  text-decoration: none;
  display: block;
  transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

a.hero__nav-link:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

a.hero__nav-link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

a.hero__nav-link.is-active {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
  background: var(--color-surface);
}

[data-theme="dark"] a.hero__nav-link.is-active {
  color: var(--accent);
  background: var(--color-surface-muted);
}

/* Sections */

.section {
  padding: clamp(3rem, 7vw, 4.5rem) 0;
  background-color: var(--color-surface);
}

.section--alt {
  background-color: var(--color-surface-soft);
}

.section__header {
  max-width: 42rem;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.section__intro {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* О компании */

.about__layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .about__layout {
    grid-template-columns: 1.15fr 1fr;
    gap: 3rem;
  }
}

.about__text p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.about__text p:last-child {
  margin-bottom: 0;
}

.about__text .trust-card__title:not(:first-child) {
  margin-top: 1.35rem;
}

.about__aside {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  background: var(--color-surface);
  box-shadow: var(--shadow);
}

.section--alt .about__aside {
  background: var(--color-surface);
}

.about__list-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.about__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.about__list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.85rem;
  font-size: 0.9375rem;
  color: var(--text);
}

.about__list li:last-child {
  margin-bottom: 0;
}

.about__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 1px;
}

/* Почему доверяют */

.trust-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-card {
  height: 100%;
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow);
}

.trust-card__term {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

[data-theme="dark"] .trust-card__term {
  color: var(--accent);
}

.trust-card__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.trust-card__text {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Сценарии ЖК */

.scenarios {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.scenarios__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.scenarios__item:first-child {
  padding-top: 0;
}

.scenarios__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.scenarios__code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  padding-top: 0.15rem;
}

.scenarios__title {
  margin: 0 0 0.4rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.scenarios__text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Фото на странице: единая сетка (без карусели) */

.media-grid {
  --media-gap: 0.75rem;
  --media-radius: var(--radius-md);
  --media-ratio: 4 / 3;

  display: grid;
  gap: var(--media-gap);
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
  grid-template-columns: repeat(2, 1fr);
}

.media-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.media-grid--3 {
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .media-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.media-grid__cell {
  margin: 0;
  overflow: hidden;
  aspect-ratio: var(--media-ratio);
  border: 1px solid var(--border);
  border-radius: var(--media-radius);
  background: var(--color-surface-muted);
  box-shadow: var(--shadow);
}

.media-grid__cell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Галерея */

.gallery__note {
  margin: 0 0 1.5rem;
  max-width: 40rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.gallery__grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.gallery__item {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--color-surface-muted);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--color-surface-muted);
}

.gallery__item-inner {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  margin: 0;
  padding: 0.45rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  line-height: 1.4;
  background: color-mix(in srgb, var(--color-surface) 94%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
}

/* Инфраструктурный визуальный блок */

.infrastructure-visuals {
  border-top: 1px solid var(--border);
}

.infra-visual-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

.infra-visual-grid__item {
  aspect-ratio: 16 / 10;
}

@media (min-width: 720px) {
  .infra-visual-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

/* Cards */

.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 700px) {
  .card-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  height: 100%;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow);
}

.section--alt .card {
  background: var(--color-surface);
}

.card__title {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.card__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Feature list */

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.feature-list__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}

.feature-list__item:first-child {
  padding-top: 0;
}

.feature-list__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.feature-list__index {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding-top: 0.2rem;
}

.feature-list__title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.feature-list__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Направления работ — service-scope */

.service-scope {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.service-scope__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.service-scope__item:first-child {
  padding-top: 0;
}

.service-scope__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.service-scope__link {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s ease;
}

.service-scope__link:hover {
  color: var(--accent);
}

.service-scope__desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.service-scope__desc::before {
  content: "— ";
}

/* Process */

.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.process-steps__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow);
}

.process-steps__num {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--color-surface-soft);
  color: var(--text);
}

.process-steps__title {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.process-steps__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* FAQ */

.faq {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq__item + .faq__item {
  border-top: 1px solid var(--border);
}

.faq__question {
  margin: 0;
}

.faq__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border: none;
  background: transparent;
  font: inherit;
  font-weight: 600;
  text-align: left;
  color: var(--text);
  cursor: pointer;
}

.faq__trigger:hover {
  background: var(--color-surface-soft);
}

.faq__trigger[aria-expanded="true"] {
  background: var(--color-surface-soft);
}

.faq__chevron {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq__trigger[aria-expanded="true"] .faq__chevron {
  transform: rotate(-135deg);
}

.faq__panel {
  padding: 0 1.25rem 1.1rem;
}

.faq__answer {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.faq__region-note {
  margin: -0.25rem 0 0;
  max-width: 40rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Contact */

.section--contact {
  background-color: var(--color-surface);
  border-top: 1px solid var(--border);
}

.contact-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }
}

.contact-layout__lead {
  margin-bottom: 1.5rem;
}

.contact-layout__region {
  margin: -0.75rem 0 1.25rem;
  max-width: 32rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.contact-meta {
  font-style: normal;
  margin: 0;
}

.contact-meta__row {
  margin: 0 0 1rem;
}

.contact-meta__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-meta a {
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}

.contact-meta a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.contact-channels {
  margin: 0.25rem 0 0;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}

.form {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow);
}

.form__status {
  min-height: 1.5rem;
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.form__status--ok {
  color: var(--accent);
}

.form__status--err {
  color: var(--danger);
}

.form__row {
  margin-bottom: 1.1rem;
}

.form__row--half {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 500px) {
  .form__row--half {
    grid-template-columns: 1fr 1fr;
  }
}

.form__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.form__input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--color-surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease;
}

.form__input::placeholder {
  color: var(--text-muted);
  opacity: 0.75;
}

.form__input:hover {
  border-color: var(--border-strong);
}

.form__input:focus {
  outline: none;
  border-color: var(--accent);
}

.form__textarea {
  resize: vertical;
  min-height: 6rem;
}

.form__input[aria-invalid="true"] {
  border-color: var(--danger);
}

.form__error {
  display: block;
  min-height: 1.25rem;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--danger);
}

.form__row--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.form__row--checkbox input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--accent);
}

/* Footer */

.site-footer {
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--border);
  background-color: var(--color-surface-soft);
}

[data-theme="dark"] .site-footer {
  background-color: var(--color-surface-soft);
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 700px) {
  .site-footer__grid {
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: auto auto;
  }

  .site-footer__legal {
    grid-column: 1 / -1;
  }
}

.site-footer__tagline {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  max-width: 22rem;
}

.site-footer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.site-footer__nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.site-footer__nav a:hover {
  color: var(--text);
}

.site-footer__legal p {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Mobile nav */

@media (max-width: 899px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__list li {
    border-bottom: 1px solid var(--border);
  }

  .site-nav__list li:last-child {
    border-bottom: none;
  }

  .site-nav__list a {
    display: block;
    padding: 0.85rem 0;
    font-size: 0.9375rem;
  }

  .site-header__actions .header-cta {
    display: none;
  }

  .site-nav__cta-item {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
  }

  .site-nav__cta {
    width: 100%;
    justify-content: center;
  }

  .site-header__inner .site-nav {
    order: 3;
    width: 100%;
    flex-basis: 100%;
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
  }

  .site-header__inner {
    flex-wrap: wrap;
  }
}

@media (min-width: 900px) {
  .site-header__inner .site-nav {
    order: 0;
    flex-basis: auto;
    width: auto;
  }

  .site-nav__cta-item {
    display: none;
  }
}
