:root {
  --color-red: #e31e24;
  --color-red-dark: #c91820;
  --color-red-soft: rgba(227, 30, 36, 0.08);
  --color-black: #15161a;
  --color-text: #545862;
  --color-muted: #7a7e88;
  --color-line: rgba(21, 22, 26, 0.12);
  --color-white: #ffffff;
  --color-off: #f6f4f3;
  --color-paper: #fff8f6;
  --shadow-soft: 0 18px 42px rgba(21, 22, 26, 0.08);
  --shadow-lift: 0 24px 54px rgba(21, 22, 26, 0.12);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --max-width: 1240px;
  --gutter: clamp(16px, 3vw, 32px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-black);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.5em;
  line-height: 1.12;
  font-family: var(--font-sans);
  font-weight: 800;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

.shell {
  width: min(var(--max-width), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.shell--header {
  width: min(1520px, calc(100% - (var(--gutter) * 2)));
}

.section {
  padding: clamp(40px, 6vw, 84px) 0;
}

.section--soft {
  background:
    radial-gradient(circle at 85% 10%, rgba(227, 30, 36, 0.08), transparent 32%),
    radial-gradient(circle at 5% 90%, rgba(21, 22, 26, 0.04), transparent 24%),
    var(--color-off);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-red);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  max-width: 16ch;
}

.section-lead,
.section-copy {
  color: var(--color-text);
  max-width: 62ch;
  font-size: 1rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease);
  cursor: pointer;
}

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

.btn--primary {
  color: var(--color-white);
  background: var(--color-red);
  box-shadow: 0 14px 34px rgba(227, 30, 36, 0.25);
}

.btn--primary:hover {
  background: var(--color-red-dark);
}

.btn--outline {
  color: var(--color-red);
  border-color: var(--color-red);
  background: transparent;
}

.btn--outline:hover {
  background: var(--color-red-soft);
}

.hero .btn--outline {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.hero .btn--outline:hover {
  color: var(--color-white);
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.2);
}

.btn--block {
  width: 100%;
}

.skip-link,
.sr-only {
  position: absolute;
}

.skip-link {
  left: 16px;
  top: -48px;
  z-index: 2000;
  background: var(--color-red);
  color: var(--color-white);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 16px;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 2px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.65s var(--ease),
    transform 0.65s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid transparent;
  transition:
    box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease),
    background-color 0.3s var(--ease);
}

.site-header.is-scrolled,
.site-header.is-menu-open {
  border-bottom-color: var(--color-line);
  box-shadow: 0 12px 36px rgba(21, 22, 26, 0.08);
}

.header-top {
  background: var(--color-black);
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
}

.header-top__inner,
.header-main__inner {
  display: grid;
  align-items: center;
}

.header-top__inner {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 20px;
  min-height: 42px;
  padding: 6px 0;
}

.header-top__left,
.header-top__right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.header-top__item,
.header-top__link {
  color: inherit;
  white-space: nowrap;
}

.header-top__item--phone {
  color: var(--color-white);
  font-weight: 700;
}

.header-top__phone-btn {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--color-red);
  color: var(--color-white);
  font-weight: 700;
}

.header-main {
  min-height: 76px;
  container-type: inline-size;
  container-name: site-header;
}

.header-main__inner {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px clamp(12px, 1.6vw, 24px);
  min-height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.logo__mark {
  display: inline-flex;
  flex-shrink: 0;
}

.logo__img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(227, 30, 36, 0.2);
  flex-shrink: 0;
}

.logo__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.logo__text strong {
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.1;
}

.logo__text span {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

.logo--footer .logo__text strong {
  color: var(--color-white);
}

.logo--footer .logo__text span {
  color: rgba(255, 255, 255, 0.58);
}

.site-nav {
  display: none;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0;
  min-width: 0;
}

.site-nav__item {
  position: relative;
  flex: none;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-black);
  border-radius: 10px;
  transition: color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.site-nav__link:hover,
.site-nav__link.is-active,
.site-nav__item:hover > .site-nav__link {
  color: var(--color-red);
  background: var(--color-red-soft);
}

.site-nav__dropdown {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  min-width: 290px;
  padding: 14px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.22s var(--ease),
    transform 0.22s var(--ease),
    visibility 0.22s;
}

.site-nav__dropdown--mega {
  left: 50%;
  min-width: min(760px, calc(100vw - 32px));
  transform: translate(-50%, 8px);
}

.site-nav__item:hover > .site-nav__dropdown,
.site-nav__item:focus-within > .site-nav__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.site-nav__item:hover > .site-nav__dropdown--mega,
.site-nav__item:focus-within > .site-nav__dropdown--mega {
  transform: translate(-50%, 0);
}

.site-nav__dropdown-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.site-nav__dropdown--mega .site-nav__dropdown-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-nav__dropdown-all,
.site-nav__dropdown-link {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.site-nav__dropdown-all {
  background: var(--color-paper);
  color: var(--color-red);
  font-weight: 800;
}

.site-nav__dropdown-link strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.site-nav__dropdown-link span {
  color: var(--color-muted);
  font-size: 0.78rem;
}

.site-nav__dropdown-all:hover,
.site-nav__dropdown-link:hover {
  background: var(--color-red-soft);
  transform: translateX(2px);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.header-cta {
  white-space: nowrap;
  padding-inline: 16px;
  min-height: 44px;
}

.burger,
.mobile-nav,
.mobile-nav-overlay {
  display: none;
}

.burger {
  display: inline-flex;
  width: 46px;
  height: 46px;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: transparent;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Header bar is full-bleed; show desktop nav only when there is real room */
@container site-header (min-width: 1280px) {
  .header-main__inner {
    grid-template-columns: minmax(180px, auto) minmax(0, 1fr) auto;
  }

  .site-nav {
    display: flex;
  }

  .burger {
    display: none;
  }
}

.mobile-nav:not([hidden]),
.mobile-nav-overlay:not([hidden]) {
  display: block;
}

.burger > span:first-child {
  position: relative;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.burger > span:first-child::before,
.burger > span:first-child::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.burger > span:first-child::before {
  top: -6px;
}

.burger > span:first-child::after {
  top: 6px;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(21, 22, 26, 0.48);
  z-index: 1180;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100dvh;
  background: var(--color-white);
  z-index: 1190;
  overflow-y: auto;
  padding: 16px var(--gutter) 24px;
  box-shadow: -18px 0 44px rgba(21, 22, 26, 0.16);
}

.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-line);
}

.mobile-nav__close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: transparent;
  font-size: 1.6rem;
}

.mobile-nav__contacts {
  display: grid;
  gap: 8px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-text);
}

.mobile-nav__contacts a {
  font-weight: 700;
  color: var(--color-black);
}

.mobile-nav__groups {
  padding: 8px 0;
}

.mobile-nav__group {
  border-bottom: 1px solid var(--color-line);
}

.mobile-nav__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.mobile-nav__link {
  display: block;
  padding: 15px 0;
  font-weight: 700;
}

.mobile-nav__toggle {
  border: none;
  background: transparent;
  color: var(--color-red);
  width: 48px;
  font-size: 1.3rem;
  font-weight: 800;
}

.mobile-nav__sub {
  display: grid;
  gap: 4px;
  padding: 0 0 14px 14px;
}

.mobile-nav__sub a {
  color: var(--color-text);
  padding: 8px 0;
}

.mobile-nav__cta {
  display: grid;
  gap: 10px;
  padding-top: 20px;
}

.is-nav-open {
  overflow: hidden;
}

.breadcrumbs {
  padding: 12px 0 0;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  list-style: none;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs__sep {
  margin: 0 8px;
}

.breadcrumbs__link:hover {
  color: var(--color-red);
}

.breadcrumbs__current {
  color: var(--color-black);
  font-weight: 700;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 36px;
  border-bottom: 1px solid var(--color-line);
  background:
    radial-gradient(circle at 92% 10%, rgba(227, 30, 36, 0.08), transparent 24%),
    radial-gradient(circle at 0% 100%, rgba(21, 22, 26, 0.04), transparent 18%),
    linear-gradient(180deg, #fff, var(--color-paper));
}

.page-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 400px);
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
}

.page-hero__content h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  max-width: 16ch;
}

.page-hero__content p {
  max-width: 62ch;
  color: var(--color-text);
}

.page-hero__eyebrow,
.legal-meta {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--color-red-soft);
  color: var(--color-red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-hero__media,
.media-card,
.map-card,
.video-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-soft);
  background: var(--color-off);
}

.page-hero__media img,
.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__media {
  aspect-ratio: 16 / 10;
}

.media-card {
  aspect-ratio: 4 / 3;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--color-white);
  background: var(--color-black);
}

.hero__slides {
  position: relative;
  height: clamp(520px, 70vh, 740px);
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.8s var(--ease),
    visibility 0.8s var(--ease);
}

.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero__image,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  background:
    linear-gradient(100deg, rgba(21, 22, 26, 0.88) 0%, rgba(21, 22, 26, 0.58) 34%, rgba(21, 22, 26, 0.22) 100%),
    linear-gradient(180deg, transparent 30%, rgba(21, 22, 26, 0.48));
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: clamp(56px, 8vw, 110px) 0 clamp(88px, 9vw, 120px);
  box-sizing: border-box;
}

.hero__tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(2.2rem, 7vw, 4.4rem);
}

.hero p {
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.14rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__controls {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero__dots {
  display: flex;
  gap: 8px;
}

.hero__dot,
.hero__arrow {
  border: none;
  cursor: pointer;
}

.hero__dot {
  width: 34px;
  height: 4px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.hero__dot.is-active {
  background: var(--color-white);
}

.hero__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: var(--color-white);
  font-size: 1.35rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px 40px;
  align-items: start;
}

.split--media,
.split--map {
  align-items: center;
}

.split > .facts-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
  align-self: stretch;
}

.stat-grid,
.facts-grid,
.content-grid,
.service-grid,
.process-grid,
.team-grid {
  display: grid;
  gap: 18px;
}

.stat-grid,
.content-grid,
.process-grid,
.team-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.service-grid--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
}

.facts-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
}

.process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.team-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.stat-card,
.fact-card,
.content-card,
.include-card,
.service-card,
.process-card,
.team-card,
.portfolio-card,
.meta-card,
.contact-item,
.faq-item,
.empty-state {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(21, 22, 26, 0.04);
}

.stat-card,
.fact-card,
.content-card,
.include-card,
.process-card,
.contact-item {
  padding: 22px;
  min-width: 0;
}

.fact-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
}

.stat-card:hover,
.fact-card:hover,
.content-card:hover,
.include-card:hover,
.service-card:hover,
.process-card:hover,
.portfolio-card:hover,
.team-card:hover,
.meta-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.stat-card,
.fact-card,
.content-card,
.include-card,
.service-card,
.process-card,
.portfolio-card,
.team-card,
.meta-card {
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.stat-card__num,
.process-card__num {
  display: inline-flex;
  margin-bottom: 12px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-red);
}

.stat-card p,
.fact-card span,
.content-card p,
.include-card p,
.process-card p,
.team-card p,
.portfolio-card p,
.contact-item span,
.contact-item a {
  color: var(--color-text);
}

.fact-card strong {
  display: block;
  margin-bottom: 0;
  color: var(--color-red);
  font-size: clamp(1.15rem, 1.8vw, 1.7rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.fact-card span {
  display: block;
  line-height: 1.35;
}

.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.service-card__media,
.portfolio-card__media,
.team-card__media {
  background: var(--color-off);
}

.service-card__media {
  aspect-ratio: 16 / 10;
}

.portfolio-card__media,
.team-card__media {
  aspect-ratio: 4 / 3;
}

.team-card__media {
  aspect-ratio: 4 / 5;
}

.service-card__media img,
.portfolio-card__media img,
.team-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card__body,
.portfolio-card__body,
.team-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  flex: 1;
}

.service-card__more {
  margin-top: auto;
  color: var(--color-red);
  font-weight: 700;
}

.chip-row,
.format-list,
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-row {
  margin-top: 24px;
}

.client-chip,
.format-chip,
.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.client-chip,
.format-chip {
  background: var(--color-paper);
  color: var(--color-red);
}

.filter-chip {
  border: 1px solid var(--color-line);
  background: var(--color-white);
  color: var(--color-text);
  cursor: pointer;
}

.filter-chip.is-active,
.filter-chip:hover {
  background: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
}

.portfolio-block__intro,
.faq-block__intro {
  margin-bottom: 22px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.portfolio-card__category {
  color: var(--color-red);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item__trigger {
  width: 100%;
  border: none;
  background: transparent;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  padding: 18px 20px;
  align-items: center;
  text-align: left;
  cursor: pointer;
}

.faq-item__num {
  color: var(--color-red);
  font-size: 0.74rem;
  font-weight: 800;
}

.faq-item__icon {
  width: 24px;
  height: 24px;
  border: 1px solid var(--color-red);
  border-radius: 50%;
  position: relative;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  background: var(--color-red);
}

.faq-item__icon::before {
  left: 6px;
  right: 6px;
  top: 11px;
  height: 2px;
}

.faq-item__icon::after {
  top: 6px;
  bottom: 6px;
  left: 11px;
  width: 2px;
}

.faq-item.is-open .faq-item__icon::after {
  display: none;
}

.faq-item__panel {
  padding: 0 20px 20px 54px;
}

.faq-item__panel p:last-child {
  margin-bottom: 0;
}

.faq-item.is-open {
  border-color: rgba(227, 30, 36, 0.28);
}

.order-section {
  padding: clamp(40px, 6vw, 84px) 0;
  background:
    linear-gradient(145deg, #17181c 0%, #231518 50%, #2f1014 100%);
  color: var(--color-white);
}

.order-section--light {
  background: var(--color-white);
  color: var(--color-black);
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px 42px;
  align-items: start;
}

.order-section__aside .section-lead,
.order-section__aside li {
  color: rgba(255, 255, 255, 0.82);
}

.order-section--light .order-section__aside .section-lead,
.order-section--light .order-section__aside li {
  color: var(--color-text);
}

.order-section__list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  list-style: none;
}

.order-section__list li {
  position: relative;
  padding-left: 16px;
}

.order-section__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-red);
}

.order-panel {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.24);
}

.order-section--light .order-panel {
  background: var(--color-white);
  border-color: var(--color-line);
  box-shadow: var(--shadow-soft);
}

.order-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.order-form--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
}

.order-section--light .form-field label {
  color: var(--color-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-white);
  padding: 13px 14px;
}

.order-section--light .form-field input,
.order-section--light .form-field select,
.order-section--light .form-field textarea {
  border-color: var(--color-line);
  background: var(--color-off);
  color: var(--color-black);
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.order-section--light .form-field input::placeholder,
.order-section--light .form-field textarea::placeholder {
  color: var(--color-muted);
}

.form-hint,
.form-note {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
}

.order-section--light .form-hint,
.order-section--light .form-note {
  color: var(--color-muted);
}

.form-consents {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.order-section--light .form-consents {
  background: var(--color-paper);
  border-color: var(--color-line);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

.order-section--light .form-check {
  color: var(--color-text);
}

.form-check input {
  margin-top: 3px;
}

.form-check a {
  color: var(--color-red);
  text-decoration: underline;
}

.form-error {
  display: block;
  min-height: 1.15em;
  margin-top: 6px;
  font-size: 0.8rem;
  color: #ffb5b7;
}

.order-section--light .form-error {
  color: #c91820;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
}

.form-status {
  padding: 0;
}

.form-status[hidden] {
  display: none;
}

.form-status.is-success,
.form-status.is-error {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
}

.form-status.is-success {
  background: rgba(46, 173, 92, 0.18);
  border: 1px solid rgba(91, 198, 130, 0.42);
}

.form-status.is-error {
  background: rgba(227, 30, 36, 0.18);
  border: 1px solid rgba(255, 145, 149, 0.4);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 26px 0;
}

.meta-card {
  padding: 18px;
}

.meta-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-red);
}

.meta-card span {
  color: var(--color-text);
}

.meta-card--full {
  grid-column: 1 / -1;
}

.contact-list {
  display: grid;
  gap: 16px;
}

.contact-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--color-red);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-item a {
  display: block;
}

.map-card iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
}

.video-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.page-hero--legal .legal-hero {
  padding-top: 12px;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.legal-layout--toc {
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
}

.legal-toc,
.legal-content {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(21, 22, 26, 0.04);
}

.legal-toc {
  position: sticky;
  top: 120px;
  padding: 20px;
}

.legal-toc__title {
  margin-bottom: 12px;
  color: var(--color-muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.legal-toc ol {
  display: grid;
  gap: 8px;
  list-style: none;
}

.legal-toc a {
  color: var(--color-text);
}

.legal-toc a:hover {
  color: var(--color-red);
}

.legal-content {
  padding: clamp(18px, 3vw, 34px);
}

.legal-content h2 {
  margin-top: 30px;
  margin-bottom: 12px;
  font-size: 1.24rem;
}

.legal-content p,
.legal-content li {
  color: var(--color-text);
}

.legal-content ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.legal-content li {
  position: relative;
  padding-left: 18px;
}

.legal-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-red);
}

.legal-callout {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--color-paper);
  border: 1px solid rgba(227, 30, 36, 0.14);
  margin-bottom: 24px;
}

.requisites-list {
  display: grid;
  gap: 12px;
}

.requisites-list li {
  display: grid;
  grid-template-columns: minmax(130px, 0.4fr) minmax(0, 1fr);
  gap: 10px 14px;
  padding: 14px 16px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
}

.requisites-list li::before {
  display: none;
}

.requisites-list span {
  color: var(--color-red);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.requisites-list strong {
  overflow-wrap: anywhere;
}

.site-footer {
  background:
    linear-gradient(180deg, rgba(227, 30, 36, 0.16), transparent 36%),
    var(--color-black);
  color: var(--color-white);
  padding: clamp(42px, 6vw, 72px) 0 26px;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(4, minmax(0, 1fr));
  gap: 28px 22px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__brand p,
.footer__contacts span,
.footer__col a,
.footer__bottom {
  color: rgba(255, 255, 255, 0.7);
}

.footer__contacts {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.footer__contacts a:hover,
.footer__col a:hover,
.footer__legal a:hover {
  color: var(--color-white);
}

.footer__cta {
  margin-top: 20px;
}

.footer__col h3 {
  margin-bottom: 14px;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer__col a {
  display: block;
  padding: 5px 0;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding-top: 22px;
  font-size: 0.84rem;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.empty-state {
  padding: 28px;
}

@media (max-width: 1080px) {
  .service-grid,
  .service-grid--compact,
  .portfolio-grid,
  .team-grid,
  .facts-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-hero__layout,
  .split,
  .order-layout,
  .legal-layout--toc,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .header-top__inner {
    grid-template-columns: 1fr;
  }

  .header-top__right {
    justify-content: space-between;
  }

  .stat-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero__slides {
    height: clamp(460px, 68vh, 620px);
  }

  .hero__controls {
    gap: 8px;
  }

  .hero__arrow {
    width: 38px;
    height: 38px;
  }

  .header-top__item--address,
  .header-top__item--hours,
  .header-top__link {
    display: none;
  }

  .service-grid,
  .service-grid--compact,
  .portfolio-grid,
  .team-grid,
  .facts-grid,
  .process-grid,
  .meta-grid,
  .order-form,
  .requisites-list li {
    grid-template-columns: 1fr;
  }

  .button-row,
  .hero__actions,
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn,
  .button-row .btn,
  .form-actions .btn {
    width: 100%;
  }

  .logo__text span {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .map-card iframe {
    min-height: 320px;
  }
}

@media (max-width: 560px) {
  .header-top__phone-btn {
    display: none;
  }

  .mobile-nav {
    width: 100vw;
  }

  .section-title {
    max-width: none;
  }

  .page-hero__content h1,
  .hero h1 {
    max-width: none;
  }

  .breadcrumbs__list {
    font-size: 0.76rem;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
