/* ============================================================
   СтройТехЭкспертиза — индустриальный минимализм
   ============================================================ */

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/golos-text-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/golos-text-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #14181c;
  --ink-2: #1b2228;
  --ink-3: #242c33;
  --steel: #2f4a5e;
  --steel-2: #466578;
  --accent: #c2410c;
  --accent-dark: #9a340a;
  --paper: #f4f3ef;
  --paper-2: #eae8e1;
  --white: #fff;
  --muted: #626a70;
  --muted-light: rgba(255, 255, 255, 0.64);
  --line: #d9d7d0;
  --line-dark: rgba(255, 255, 255, 0.14);
  --container: 1240px;
  --gutter: 24px;
  --radius: 2px;
  --shadow: 0 24px 70px rgba(20, 24, 28, 0.1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  font-family: "Golos Text", "Arial", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.menu-open,
body.modal-open { overflow: hidden; }

img,
svg { display: block; }
img { max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
address { font-style: normal; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }

::selection { background: var(--accent); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

.section { padding-block: clamp(64px, 8vw, 120px); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  transform: translateY(-160%);
  transition: transform 0.2s;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 3rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }

p { text-wrap: pretty; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  flex: 0 0 auto;
}
.eyebrow--light { color: #f6a07a; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.section-head h2 { margin-top: 14px; max-width: 760px; }
.section-head__text {
  max-width: 360px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.link-arrow span { transition: transform 0.2s var(--ease); }
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-dark); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--steel); }
.btn--ghost { border-color: var(--line); background: transparent; color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--outline-light { border-color: rgba(255, 255, 255, 0.32); color: var(--white); background: transparent; }
.btn--outline-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--sm { min-height: 40px; padding: 10px 16px; font-size: 13px; }

.link-button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}
.link-button:hover { color: var(--accent); }

/* ---------- Top bar ---------- */

.topbar {
  background: #0f1316;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.4;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 38px;
}
.topbar__group { display: flex; align-items: center; gap: 20px; }
.topbar__group a { transition: color 0.2s; }
.topbar__group a:hover { color: var(--white); }
.topbar__group--offices a span { color: rgba(255, 255, 255, 0.64); }
.topbar__label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}
.topbar__hours { padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, 0.14); }

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s, background 0.25s;
}
.header.is-scrolled { box-shadow: 0 10px 30px rgba(20, 24, 28, 0.08); }
.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 84px;
}
.logo { flex: 0 0 auto; width: 224px; }
.logo img { width: 100%; height: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}
.nav__item { position: relative; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav__link:hover,
.nav__link.is-active { color: var(--accent); }
.nav__link.is-active { position: relative; }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--accent);
}
.nav__chevron { transition: transform 0.2s; }
.nav__item:hover .nav__chevron,
.nav__item:focus-within .nav__chevron { transform: rotate(180deg); }
.nav__dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: -18px;
  min-width: 318px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0.2s;
}
.nav__dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
}
.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__dropdown a {
  display: block;
  padding: 11px 14px;
  border-left: 2px solid transparent;
  font-size: 13.5px;
  line-height: 1.35;
  transition: background 0.18s, border-color 0.18s;
}
.nav__dropdown a:hover { background: var(--paper); border-left-color: var(--accent); }

.header__actions { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }
.header__phone { font-size: 14px; font-weight: 600; white-space: nowrap; }
.header__phone:hover { color: var(--accent); }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 1.5px;
  margin: 5px 0;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.2s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 84px 0 0;
  z-index: 55;
  overflow-y: auto;
  background: var(--white);
  border-top: 1px solid var(--line);
}
.mobile-menu.is-open { display: block; }
.mobile-menu__inner { padding-block: 32px 48px; }
.mobile-menu__nav { display: grid; }
.mobile-menu__nav > a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.mobile-menu__nav > a:hover { color: var(--accent); }
.mobile-menu__sublink {
  padding: 11px 0 11px 18px !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: var(--muted);
}
.mobile-menu__contacts {
  display: grid;
  gap: 20px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.mobile-menu__contacts div { display: grid; gap: 2px; }
.mobile-menu__contacts span {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.mobile-menu__contacts a { font-size: 15px; font-weight: 600; }
.mobile-menu__contacts a:hover { color: var(--accent); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}
.hero__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.55) 65%, transparent 100%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  top: -360px;
  right: -220px;
  width: 760px;
  height: 760px;
  background: radial-gradient(circle, rgba(232, 85, 30, 0.2), transparent 65%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(48px, 6vw, 84px);
}
.hero__content { position: relative; z-index: 2; }
.hero__title {
  max-width: 700px;
  margin-top: 22px;
  font-size: clamp(2.4rem, 4.3vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.hero__lead {
  max-width: 610px;
  margin-top: 26px;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.65;
  color: var(--muted-light);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(32px, 4vw, 52px);
  padding-top: 26px;
  border-top: 1px solid var(--line-dark);
}
.stat dt {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}
.stat dd {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.62);
}
.hero__media {
  position: relative;
  align-self: center;
  padding: 0 18px 18px 0;
}
.hero__media::before {
  content: "";
  position: absolute;
  inset: 18px 0 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  pointer-events: none;
}
.hero__media::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 76px;
  background: var(--accent);
}
.hero__photo {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
}
.hero__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.04);
  transition: transform 0.7s var(--ease);
}
.hero__photo:hover img { transform: scale(1.025); }
.hero__photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(10, 14, 17, 0.9), rgba(10, 14, 17, 0));
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.82);
}
.hero__photo figcaption span {
  flex: 0 0 auto;
  color: #f6a07a;
  font-size: 10px;
  letter-spacing: 0.12em;
}
.hero__badge {
  position: absolute;
  top: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  z-index: 2;
}
.hero__badge span {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}
.hero__badge small { font-size: 10px; line-height: 1.35; }

/* ---------- Section heads / services ---------- */

.services-section { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
}
.service-card:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.service-card__link { display: flex; flex-direction: column; height: 100%; }
.service-card__media { position: relative; overflow: hidden; background: var(--paper); }
.service-card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.88);
  transition: transform 0.6s var(--ease), filter 0.3s;
}
.service-card:hover .service-card__media img { transform: scale(1.035); filter: saturate(1); }
.service-card__num {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.service-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 24px 22px;
}
.service-card__body h2,
.service-card__body h3 { font-size: clamp(1.15rem, 1.6vw, 1.42rem); line-height: 1.16; }
.service-card__body p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}
.service-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.service-card__tags span,
.tag-list span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.service-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
  font-size: 13px;
  font-weight: 600;
}
.service-card__more span { transition: transform 0.2s var(--ease); }
.service-card:hover .service-card__more { color: var(--accent); }
.service-card:hover .service-card__more span { transform: translateX(4px); }

.services-more {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.services-more__label {
  flex: 0 0 auto;
  padding-top: 2px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.services-more__links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.services-more__links a {
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.2s;
}
.services-more__links a span { color: var(--accent); }
.services-more__links a:hover { color: var(--accent); }

/* На странице «Услуги» последняя карточка занимает всю ширину */
.services-grid--all .service-card:last-child { grid-column: 1 / -1; }
.services-grid--all .service-card:last-child .service-card__link {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.95fr);
  align-items: stretch;
}
.services-grid--all .service-card:last-child .service-card__media img {
  height: 100%;
  aspect-ratio: auto;
  min-height: 280px;
}
.services-grid--all .service-card:last-child .service-card__body {
  justify-content: center;
  padding: clamp(24px, 3vw, 40px);
}
.services-grid--all .service-card:last-child .service-card__more {
  margin-top: 24px;
  padding-top: 0;
}

/* ---------- About ---------- */

.about-section { background: var(--paper); }
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(40px, 7vw, 92px);
  align-items: center;
}
.about__content h2 { margin-top: 16px; max-width: 620px; }
.about__content > p {
  max-width: 610px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.about__list {
  list-style: none;
  max-width: 610px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
}
.about__list li {
  display: flex;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
}
.about__list span {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.about__content .btn { margin-top: 32px; }
.about__media { position: relative; }
.about__media::before {
  content: "";
  position: absolute;
  top: 22px;
  right: -18px;
  bottom: -18px;
  left: 22px;
  border: 1px solid var(--ink);
  pointer-events: none;
}
.about__media figure { position: relative; overflow: hidden; background: var(--paper-2); }
.about__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.85);
}
.about__media figcaption {
  position: absolute;
  top: 0;
  right: 0;
  padding: 10px 14px;
  background: rgba(20, 24, 28, 0.78);
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  letter-spacing: 0.04em;
}
.about__stamp {
  position: absolute;
  right: -22px;
  bottom: 28px;
  display: grid;
  gap: 2px;
  padding: 18px 20px;
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 18px 40px rgba(20, 24, 28, 0.18);
}
.about__stamp strong { font-size: 24px; line-height: 1; letter-spacing: -0.04em; }
.about__stamp span { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Features ---------- */

.features-section {
  padding-block: clamp(64px, 8vw, 110px);
  background: var(--white);
}
.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 2px solid var(--ink);
}
.feature {
  padding: 26px 26px 6px 0;
  border-right: 1px solid var(--line);
}
.feature + .feature { padding-left: 26px; }
.feature:last-child { border-right: 0; }
.feature__icon { color: var(--accent); margin-bottom: 28px; }
.feature h3 { font-size: 1.05rem; line-height: 1.3; }
.feature p { margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.6; }

/* ---------- Clients ---------- */

.clients-section { background: var(--paper); }
.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--white);
}
.client {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 118px;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.client img {
  max-width: 100%;
  max-height: 54px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.55;
  transition: filter 0.25s, opacity 0.25s;
}
.client:hover img { filter: grayscale(0); opacity: 1; }

/* ---------- Docs teaser ---------- */

.docs-section { background: var(--white); }
.docs-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.docs-teaser__content h2 { margin-top: 16px; max-width: 560px; }
.docs-teaser__content p {
  max-width: 540px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.docs-teaser__content .btn { margin-top: 30px; }
.docs-teaser__scans {
  position: relative;
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scan-teaser {
  position: relative;
  display: block;
  width: 31%;
  max-width: 190px;
  padding: 8px 8px 40px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(20, 24, 28, 0.16);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.scan-teaser img { width: 100%; height: auto; }
.scan-teaser span {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 12px;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.scan-teaser--1 { transform: rotate(-6deg) translateX(24%); z-index: 1; }
.scan-teaser--2 { transform: translateY(-10px); z-index: 3; }
.scan-teaser--3 { transform: rotate(6deg) translateX(-24%); z-index: 2; }
.scan-teaser:hover { transform: rotate(0) translateY(-6px); z-index: 5; box-shadow: 0 24px 50px rgba(20, 24, 28, 0.24); }
.scan-teaser:focus-visible { transform: rotate(0) translateY(-6px); z-index: 5; }

/* ---------- Contacts section ---------- */

.contacts-section {
  padding-block: clamp(64px, 8vw, 112px);
  background: var(--ink);
  color: var(--white);
}
.contacts-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.contacts-section__head h2 { margin-top: 14px; }
.contacts-section__head > p {
  max-width: 370px;
  color: var(--muted-light);
  font-size: 14px;
  line-height: 1.65;
}
.office-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.office-card {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.25s, background 0.25s;
}
.office-card:hover { border-color: rgba(255, 255, 255, 0.34); background: rgba(255, 255, 255, 0.04); }
.office-card__label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f6a07a;
}
.office-card h2,
.office-card h3 {
  margin-top: 10px;
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
}
.office-card address {
  max-width: 460px;
  margin-top: 14px;
  color: var(--muted-light);
  font-size: 14px;
  line-height: 1.65;
}
.office-card__contacts {
  display: grid;
  gap: 5px;
  margin-top: 22px;
}
.office-card__contacts a {
  width: fit-content;
  font-size: 16px;
  font-weight: 600;
  transition: color 0.2s;
}
.office-card__contacts a:hover { color: #f6a07a; }
.office-card__contacts a[href^="mailto"] { font-weight: 400; font-size: 14px; color: var(--muted-light); }
.office-card__contacts a[href^="mailto"]:hover { color: var(--white); }
.office-card__map {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f6a07a;
}
.office-card__map span { transition: transform 0.2s; }
.office-card__map:hover span { transform: translateX(4px); }
.contacts-section__note {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

/* ---------- Footer ---------- */

.footer {
  padding-block: clamp(48px, 6vw, 76px) 24px;
  background: #0e1215;
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr) minmax(0, 0.65fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
.footer__logo { display: block; width: 230px; margin-bottom: 22px; }
.footer__brand p {
  max-width: 360px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1.65;
}
.footer__mail {
  display: inline-block;
  margin-top: 18px;
  color: #f6a07a;
  font-size: 14px;
  font-weight: 600;
}
.footer__mail:hover { color: var(--white); }
.footer__col h2 {
  margin-bottom: 18px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}
.footer__col ul { list-style: none; display: grid; gap: 9px; }
.footer__col a { font-size: 13px; color: rgba(255, 255, 255, 0.72); transition: color 0.2s; }
.footer__col a:hover { color: #f6a07a; }
.footer__office { display: grid; gap: 3px; margin-bottom: 20px; }
.footer__office:last-child { margin-bottom: 0; }
.footer__office span {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}
.footer__office strong { font-size: 14px; font-weight: 600; }
.footer__office a { display: inline-flex; align-items: center; min-height: 24px; font-size: 13px; line-height: 1.4; }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.footer__legal a { color: rgba(255, 255, 255, 0.62); }
.footer__legal a:hover { color: var(--white); }

/* ---------- Page hero ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(44px, 6vw, 76px);
  background: var(--ink);
  color: var(--white);
}
.page-hero::after {
  content: "";
  position: absolute;
  top: -260px;
  right: -160px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(232, 85, 30, 0.16), transparent 68%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(28px, 4vw, 44px);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.62);
}
.breadcrumbs a { transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs span[aria-hidden] { color: rgba(255, 255, 255, 0.42); }
.page-hero__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}
.page-hero__row h1 { max-width: 900px; margin-top: 16px; }
.page-hero__lead {
  max-width: 760px;
  margin-top: 20px;
  color: var(--muted-light);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.65;
}
.page-hero__aside {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  padding-bottom: 6px;
}
.page-hero__aside strong {
  font-size: clamp(3.4rem, 6vw, 5.4rem);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: var(--accent);
}
.page-hero__aside span {
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.page-hero__split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.78fr);
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
}
.page-hero__content h1 { margin-top: 16px; }
.page-hero__image {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: var(--ink-2);
}
.page-hero__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.85);
}
.page-hero__num {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 26px; }
.tag-list span {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- CTA panel ---------- */

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(28px, 4vw, 48px);
  background: var(--ink);
  color: var(--white);
}
.cta-panel h2 { margin-top: 12px; max-width: 700px; font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
.cta-panel__actions { display: flex; flex-wrap: wrap; gap: 10px; flex: 0 0 auto; }

/* ---------- Service page ---------- */

.service-section { background: var(--white); }
.service-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.service-sidebar {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 18px;
}
.sidebar-card {
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--white);
}
.sidebar-card__label {
  display: block;
  margin-bottom: 14px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.sidebar-card--nav nav { display: grid; }
.sidebar-card--nav a {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
  transition: color 0.2s, padding-left 0.2s;
}
.sidebar-card--nav a:last-child { border-bottom: 0; }
.sidebar-card--nav a:hover { color: var(--ink); padding-left: 4px; }
.sidebar-card--nav a.is-active { color: var(--accent); font-weight: 600; }
.sidebar-card--contacts { background: var(--ink); border-color: var(--ink); color: var(--white); }
.sidebar-card--contacts .sidebar-card__label { color: rgba(255, 255, 255, 0.6); }
.sidebar-card--contacts a { display: block; font-size: 13px; color: rgba(255, 255, 255, 0.72); }
.sidebar-card--contacts a:hover { color: var(--white); }
.sidebar-card__phone {
  font-size: 17px !important;
  font-weight: 600;
  color: var(--white) !important;
  margin-bottom: 4px;
}
.sidebar-card--contacts .btn { margin-top: 16px; color: var(--white); }
.sidebar-card--contacts .btn:hover { color: var(--white); }

.service-content { max-width: 840px; }
.intro {
  padding-left: 24px;
  border-left: 3px solid var(--accent);
  color: var(--ink);
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  line-height: 1.65;
}
.content-section {
  margin-top: 52px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 110px;
}
.content-section:first-of-type { margin-top: 44px; }
.content-section__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
}
.content-section__num {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.content-section__head h2 { font-size: clamp(1.55rem, 2.4vw, 2.1rem); }
.content-section h3 {
  margin: 30px 0 12px;
  font-size: 1.08rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
}
.content-section h3:first-child { margin-top: 0; }
.content-section p { margin-top: 14px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.content-section > p:first-of-type { margin-top: 0; }

.checklist { list-style: none; display: grid; gap: 10px; }
.checklist li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}
.checklist li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--accent);
}
.checklist ul { list-style: none; display: grid; gap: 6px; margin-top: 8px; }
.checklist ul li { padding-left: 18px; font-size: 14px; }
.checklist ul li::before {
  width: 10px;
  height: 1px;
  top: 0.9em;
  background: var(--line);
}
.checklist--columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 28px;
}
.checklist--columns li { font-size: 13.5px; }

.steps { list-style: none; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.steps li {
  display: flex;
  gap: 20px;
  padding: 18px 20px;
  background: var(--white);
}
.steps__num {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding-top: 3px;
}
.steps h3 { margin: 0; font-size: 14px; line-height: 1.4; }
.steps p { margin-top: 4px; font-size: 13px; line-height: 1.55; }

.mini-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.mini-card { padding: 22px; background: var(--paper); }
.mini-card > span { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; color: var(--accent); }
.mini-card h3 { margin: 12px 0 6px; font-size: 1rem; }
.mini-card p { margin: 0; font-size: 13px; line-height: 1.55; }
.section-note { margin-top: 18px; font-size: 13px !important; color: var(--muted) !important; }

.content-photo { margin: 44px 0; }
.content-photo img {
  width: 100%;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
  filter: saturate(0.9);
}
.content-photo figcaption {
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.content-photo--inset { max-width: 88%; }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.9);
}
.photo-grid--two { margin-top: 28px; }
.photo-grid figcaption { margin-top: 8px; font-size: 11px; color: var(--muted); }
.info-note {
  margin: 38px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--accent);
  background: var(--paper);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
}
.info-note strong { color: var(--ink); }
.doc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.doc-card {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 540px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.doc-card:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.doc-card img { width: 76px; height: auto; flex: 0 0 auto; border: 1px solid var(--line); }
.doc-card > div { display: grid; gap: 4px; }
.doc-card__label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.doc-card strong { font-size: 14px; line-height: 1.35; }
.doc-card small { margin-top: 4px; font-size: 11px; color: var(--muted); }
.doc-card:hover small { color: var(--accent); }

/* ---------- Licenses page ---------- */

.docs-section-page { background: var(--white); }
.docs-layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.docs-nav {
  position: sticky;
  top: 108px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.docs-nav__label {
  display: block;
  margin-bottom: 14px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.docs-nav nav { display: grid; }
.docs-nav a {
  display: flex;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
  transition: color 0.2s, padding-left 0.2s;
}
.docs-nav a span {
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding-top: 2px;
}
.docs-nav a:hover { color: var(--ink); padding-left: 4px; }

.docs-content { min-width: 0; }
.doc-group {
  padding-bottom: clamp(44px, 5vw, 64px);
  margin-bottom: clamp(44px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 110px;
}
.doc-group:last-child { border-bottom: 0; margin-bottom: 0; }
.doc-group__head {
  display: flex;
  gap: 18px;
  margin-bottom: 28px;
}
.doc-group__num {
  flex: 0 0 auto;
  padding-top: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.doc-group__head h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.doc-group__head p { margin-top: 8px; color: var(--muted); font-size: 13.5px; }
.doc-group__body {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.doc-group__body--scans-only { grid-template-columns: 1fr; }
.scan-list { display: grid; gap: 14px; }
.doc-group__body--scans-only .scan-list { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); max-width: 800px; }
.scan-card {
  display: block;
  width: 100%;
  padding: 8px 8px 6px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: zoom-in;
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}
.scan-card:hover { border-color: var(--ink); box-shadow: 0 14px 34px rgba(20, 24, 28, 0.12); transform: translateY(-2px); }
.scan-card img { width: 100%; height: auto; border: 1px solid var(--paper-2); }
.scan-card__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 2px 3px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.scan-card__action span { color: var(--accent); font-size: 11px; }
.scan-card:hover .scan-card__action { color: var(--ink); }

/* ---------- Prose (documents, policy) ---------- */

.prose { color: var(--muted); font-size: 14.5px; line-height: 1.72; }
.prose > * + * { margin-top: 14px; }
.prose h2,
.prose h3 {
  margin-top: 34px;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
}
.prose h2:first-child,
.prose h3:first-child { margin-top: 0; }
.prose ul,
.prose ol { padding-left: 0; list-style: none; display: grid; gap: 7px; }
.prose li { position: relative; padding-left: 20px; }
.prose ul > li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--accent);
}
.prose ol { counter-reset: item; }
.prose ol > li { counter-increment: item; }
.prose ol > li::before {
  content: counter(item) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
}
.prose li > ul { margin-top: 6px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.prose a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.prose code {
  padding: 1px 5px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.88em;
  color: var(--ink);
}
.prose .policy-date {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.table-wrap { overflow-x: auto; margin-top: 20px; border: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: 12.5px; line-height: 1.5; }
.prose th,
.prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: var(--paper); color: var(--ink); font-weight: 600; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.prose tr:last-child td { border-bottom: 0; }
.prose--columns { column-count: 2; column-gap: 34px; }
.prose--columns > p { margin-top: 0; margin-bottom: 9px; break-inside: avoid; }
.prose--columns > p > strong { font-weight: 500; }

.policy-page { background: var(--white); }
.policy-layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 820px);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.policy-content { font-size: 15px; }

/* ---------- Contacts page ---------- */

.contacts-page { background: var(--white); }
.office-grid--page { margin-bottom: clamp(48px, 6vw, 72px); }
.office-card--page {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}
.office-card--page:hover { border-color: var(--ink); background: var(--paper); }
.office-card--page .office-card__label { color: var(--accent); }
.office-card--page address { color: var(--muted); }
.office-card--page .office-card__contacts a { color: var(--ink); }
.office-card--page .office-card__contacts a:hover { color: var(--accent); }
.office-card--page .office-card__contacts a[href^="mailto"] { color: var(--muted); }
.office-card__phone { font-size: 20px !important; }
.office-card--page .btn { margin-top: 24px; }

.map-panel {
  border: 1px solid var(--line);
  background: var(--white);
}
.map-panel__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}
.map-panel__head h2 { margin-top: 10px; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.map-tabs { display: flex; gap: 6px; }
.map-tab {
  padding: 9px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.map-tab:hover { border-color: var(--ink); }
.map-tab.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.map-frame {
  position: relative;
  min-height: 430px;
  background:
    linear-gradient(rgba(20, 24, 28, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 24, 28, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 36px 36px;
}
.map-frame iframe { width: 100%; height: 430px; border: 0; display: block; }
.map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
}
.map-placeholder__pin { margin-bottom: 12px; }
.map-placeholder h3 { font-size: 1.4rem; }
.map-placeholder p { margin-top: 6px; color: var(--muted); font-size: 13px; }
.map-placeholder__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 22px;
}
.map-placeholder__link { font-size: 12px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.map-placeholder__link:hover { color: var(--accent); border-color: var(--accent); }
.map-placeholder small {
  max-width: 440px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}
.map-placeholder small a { text-decoration: underline; text-underline-offset: 2px; }

.contacts-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 5vw, 72px);
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: clamp(36px, 4vw, 52px);
  border-top: 1px solid var(--line);
}
.contacts-details__block h2 { margin-top: 12px; font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
.contacts-details__block dl { margin-top: 24px; display: grid; gap: 16px; }
.contacts-details__block dt {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contacts-details__block dd { margin-top: 3px; font-size: 14px; line-height: 1.55; }
.contacts-details__block dd a:hover { color: var(--accent); }
.director { padding: 16px 0; border-bottom: 1px solid var(--line); }
.director:first-of-type { margin-top: 12px; border-top: 1px solid var(--line); }
.director span { display: block; font-size: 9px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.director strong { display: block; margin-top: 4px; font-size: 15px; font-weight: 600; }
.director--note { border-bottom: 0; }

/* ---------- 404 ---------- */

.error-page {
  display: flex;
  align-items: center;
  min-height: 70vh;
  padding-block: clamp(64px, 10vw, 120px);
  background: var(--ink);
  color: var(--white);
}
.error-page__code {
  display: block;
  font-size: clamp(7rem, 18vw, 15rem);
  font-weight: 700;
  line-height: 0.75;
  letter-spacing: -0.07em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.22);
  margin-bottom: 28px;
}
.error-page h1 { margin-top: 16px; }
.error-page p { max-width: 560px; margin-top: 18px; color: var(--muted-light); font-size: 15px; }
.error-page__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

/* ---------- Cookie banner ---------- */

.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  width: min(460px, calc(100% - 40px));
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(20, 24, 28, 0.2);
  animation: cookieIn 0.35s var(--ease) both;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--paper);
  color: var(--accent);
}
.cookie-banner__body h2 { font-size: 15px; line-height: 1.3; letter-spacing: -0.01em; }
.cookie-banner__body p { margin-top: 7px; font-size: 12px; line-height: 1.55; color: var(--muted); }
.cookie-banner__body a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line); }
.cookie-banner__body a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.cookie-banner__actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}
.cookie-banner__link { font-size: 11px; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__link:hover { color: var(--ink); }
@keyframes cookieIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Modals ---------- */

.modal {
  width: min(900px, calc(100% - 32px));
  max-height: min(88vh, 900px);
  padding: 0;
  border: 0;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.35);
}
.modal::backdrop { background: rgba(10, 14, 17, 0.72); backdrop-filter: blur(3px); }
.modal[open] { animation: modalIn 0.25s var(--ease) both; }
.modal__inner { display: flex; flex-direction: column; max-height: min(88vh, 900px); }
.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.modal__head h2 { font-size: 1.05rem; line-height: 1.3; }
.modal__close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.modal__close:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.modal__body { padding: 24px; overflow-y: auto; }
.modal__body--image { display: grid; place-items: center; padding: 20px; background: var(--paper); }
.modal__body--image img { max-height: 68vh; width: auto; max-width: 100%; border: 1px solid var(--line); background: var(--white); }
.modal__body .prose { max-width: 760px; }
.modal__body .prose h2 { margin-top: 26px; }
.modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Reveal animations ---------- */

.will-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.is-revealed { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .nav { gap: 18px; }
  .header__phone { display: none; }
  .services-grid { gap: 18px; }
  .footer__top { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 0.7fr) minmax(0, 1fr); }
}

@media (max-width: 1020px) {
  .nav { display: none; }
  .burger { display: block; }
  .header__actions { margin-left: auto; }
  .header__inner { min-height: 74px; }
  .mobile-menu { inset-block-start: 74px; }
  .logo { width: 200px; }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__media { max-width: 640px; width: 100%; }
  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 640px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature:nth-child(2) { border-right: 0; }
  .feature:nth-child(1),
  .feature:nth-child(2) { padding-bottom: 26px; }
  .feature:nth-child(3),
  .feature:nth-child(4) { padding-top: 26px; border-top: 1px solid var(--line); }
  .feature:nth-child(3) { padding-left: 0; }
  .clients-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .docs-teaser { grid-template-columns: 1fr; }
  .docs-teaser__scans { max-width: 560px; width: 100%; margin-inline: auto; }
  .service-layout { grid-template-columns: 1fr; }
  .service-sidebar { position: static; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr); order: 2; }
  .service-content { order: 1; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-nav { position: static; padding: 0 0 20px; }
  .docs-nav nav { display: flex; flex-wrap: wrap; gap: 8px; }
  .docs-nav a { border: 1px solid var(--line); padding: 8px 10px; }
  .docs-nav a:hover { padding-left: 10px; border-color: var(--ink); }
  .policy-layout { grid-template-columns: 1fr; }
  .policy-layout .docs-nav { display: none; }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
  .footer__brand p { max-width: 520px; }
}

@media (max-width: 780px) {
  :root { --gutter: 18px; }
  .topbar__group--meta { display: none; }
  .topbar__inner { justify-content: center; }
  .topbar__group--offices { gap: 14px; }
  .topbar__group--offices a span { display: none; }
  .header__cta { display: none; }
  .logo { width: 178px; }
  .header__inner { min-height: 68px; }
  .mobile-menu { inset-block-start: 68px; }

  .hero__title { font-size: clamp(2.2rem, 8vw, 3.2rem); }
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .hero__badge { top: 12px; left: 12px; padding: 12px 14px; }
  .hero__badge span { font-size: 22px; }
  .hero__media { padding: 0 12px 12px 0; }
  .hero__media::before { inset: 12px 0 0 12px; }

  .section-head,
  .contacts-section__head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .section-head__text { max-width: 520px; }
  .services-grid { grid-template-columns: 1fr; }
  .services-more { flex-direction: column; gap: 12px; }
  .services-more__links { gap: 8px 20px; }
  .about__stamp { right: 12px; bottom: 12px; }
  .about__media::before { right: -10px; bottom: -10px; }
  .features { grid-template-columns: 1fr; }
  .feature,
  .feature + .feature { padding: 22px 0; border-right: 0; border-top: 1px solid var(--line); }
  .feature:first-child { border-top: 0; padding-top: 0; }
  .feature__icon { margin-bottom: 18px; }
  .clients-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client { min-height: 96px; }
  .office-grid { grid-template-columns: 1fr; }
  .contacts-section__head > p { max-width: 100%; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .page-hero__row,
  .page-hero__split { display: block; }
  .page-hero__aside { margin-top: 24px; }
  .page-hero__image { margin-top: 32px; }
  .page-hero__image img { aspect-ratio: 16 / 10; }
  .cta-panel { flex-direction: column; align-items: flex-start; }
  .service-sidebar { grid-template-columns: 1fr; }
  .doc-group__body { grid-template-columns: 1fr; }
  .doc-group__body .scan-list { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .doc-group__body--scans-only .scan-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scan-card { max-width: 220px; }
  .doc-group__body .scan-list .scan-card { max-width: none; }
  .prose--columns { column-count: 1; }
  .services-grid--all .service-card:last-child { grid-column: auto; }
  .services-grid--all .service-card:last-child .service-card__link { display: flex; }
  .services-grid--all .service-card:last-child .service-card__media img {
    height: auto;
    aspect-ratio: 4 / 3;
    min-height: 0;
  }
  .services-grid--all .service-card:last-child .service-card__body { padding: 24px; }
  .map-panel__head { flex-direction: column; align-items: flex-start; }
  .map-frame,
  .map-frame iframe { min-height: 380px; height: 380px; }
  .contacts-details { grid-template-columns: 1fr; }
  .checklist--columns { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
  .content-photo--inset { max-width: 100%; }
  .cookie-banner {
    right: 0;
    bottom: 0;
    width: 100%;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 520px) {
  .topbar { font-size: 11px; }
  .topbar__label { display: none; }
  .topbar__group--offices a:last-child { display: none; }
  .header__inner { gap: 12px; }
  .logo { width: 158px; }
  .hero__actions .btn { width: 100%; }
  .hero__stats { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat dt { font-size: 1.45rem; }
  .page-hero { padding-block: 36px 44px; }
  .page-hero__aside { display: none; }
  .services-more__links { display: grid; gap: 8px; }
  .clients-grid { grid-template-columns: 1fr 1fr; }
  .client { padding: 14px; min-height: 84px; }
  .client img { max-height: 42px; }
  .docs-teaser__scans { min-height: 260px; }
  .scan-teaser { width: 34%; padding: 5px 5px 28px; }
  .scan-teaser span { font-size: 7px; bottom: 8px; left: 5px; right: 5px; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__col--contacts { grid-column: auto; }
  .footer__logo { width: 200px; }
  .footer__legal { flex-direction: column; align-items: flex-start; gap: 6px; }
  .modal { width: calc(100% - 16px); max-height: 92vh; }
  .modal__inner { max-height: 92vh; }
  .modal__body { padding: 18px; }
  .modal__head { padding: 14px 18px; }
  .modal__foot { padding: 12px 18px; flex-wrap: wrap; }
  .modal__foot .btn { flex: 1; }
  .map-frame,
  .map-frame iframe { min-height: 340px; height: 340px; }
  .map-placeholder { padding: 24px 18px; }
  .map-placeholder__actions { flex-direction: column; gap: 12px; }
  .map-placeholder__actions .btn { width: 100%; }
  .cookie-banner { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
  .cookie-banner__icon { width: 40px; height: 40px; }
  .cookie-banner__icon svg { width: 24px; height: 24px; }
  .cookie-banner__actions { gap: 12px; }
  .cookie-banner__actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .will-reveal { opacity: 1; transform: none; }
}
