@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/inter-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/inter-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Общие размеры, цвет и типографика */
:root {
  color-scheme: only light;
  --ink: #102e4c;
  --muted: #436178;
  --line: #b5d1e3;
  --pale: #eaf5fc;
  --accent: #075f94;
  --paper: #ffffff;
  --header-bg: #f4faff;
  --band-bg: #dbedfa;
  --button-bg: #075d92;
  --button-ink: #ffffff;
  --link: #075e92;
  --focus: #074f7d;
  --bright: #a7dbfa;
  --hero-sky: #e5f4ff;
  --grid-line: rgb(54 125 166 / 10%);
  --gutter: clamp(1.15rem, 5vw, 4rem);
  --space: clamp(2.6rem, 5.5vw, 5rem);
  font: 100%/1.55 "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body, h1, :is(h2,.former-h2), :is(h3,.former-h3), p, figure, dl, dd {
  margin: 0;
}

main {
  flex: 1;
}

[hidden] {
  display: none !important;
}

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

a {
  color: var(--link);
  text-underline-offset: .25em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

main:focus {
  outline: none;
}

h1, :is(h2,.former-h2), :is(h3,.former-h3) {
  line-height: 1.14;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2.9rem, 6.2vw, 5.75rem);
  font-weight: 780;
  letter-spacing: -.05em;
}

:is(h2,.former-h2) {
  font-size: clamp(1.85rem, 3.6vw, 3.5rem);
  font-weight: 760;
  letter-spacing: -.035em;
}

:is(h3,.former-h3) {
  font-size: clamp(1.15rem, 1.8vw, 1.48rem);
  letter-spacing: -.016em;
}

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

.band {
  padding-block: var(--space);
}

.skip-link {
  position: absolute;
  top: .5rem;
  left: .5rem;
  transform: translateY(-160%);
  z-index: 40;
  padding: .8rem;
  background: var(--header-bg);
}

.skip-link:focus {
  transform: none;
}

.error-page p {
  margin-top: .75rem;
}

.error-page section {
  margin-top: 2rem;
}

/* Шапка и языки */
:root {
  scroll-padding-top: 5.4rem;
}

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgb(246 251 255 / 97%);
}

.header-inner, .brand, .navigation {
  display: flex;
  align-items: center;
}

.header-inner {
  min-height: 4.6rem;
  gap: clamp(1rem, 3vw, 3.2rem);
  justify-content: space-between;
}

.brand {
  flex: none;
  gap: .55rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.36rem;
  font-weight: 830;
  letter-spacing: -.055em;
  white-space: nowrap;
}

.brand-mark {
  flex: none;
  width: 3.45rem;
  aspect-ratio: 10 / 7;
  background: url("images/brand-icon.png") center / contain no-repeat;
  mix-blend-mode: multiply;
}

.navigation {
  gap: clamp(.5rem, 1.35vw, 1.4rem);
}

.navigation > * {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .45rem 0;
  border-bottom: 2px solid transparent;
  color: var(--ink);
  text-decoration: none;
  font-size: .93rem;
  font-weight: 610;
}

.navigation [aria-current], .navigation a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
}

.language-switch > * {
  display: grid;
  place-items: center;
  min-height: 2.55rem;
  padding-inline: .55rem;
  border-radius: 3px;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 650;
  text-decoration: none;
}

.language-switch [aria-current] {
  background: #d5ecfb;
  color: #104d72;
}

.language-switch a:hover { text-decoration: underline; }

.menu-toggle {
  display: none;
  justify-content: center;
  align-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span {
  width: 1.05rem;
  height: .58rem;
  border-block: 2px solid currentColor;
}

.menu-toggle[aria-expanded="true"] {
  background: var(--button-bg);
  color: white;
}

.language-short {
  display: none;
}

.site-footer {
  background: var(--band-bg);
  color: var(--ink);
  padding-block: 1.5rem;
  font-size: .94rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
}

.back-to-top {
  display: inline-block;
  min-height: 44px;
  padding: .55rem 1rem;
  border: 1px solid var(--line);
  border-radius: .25rem;
  color: var(--link);
  font-weight: 600;
  text-decoration: none;
}

.back-to-top:hover, .back-to-top:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: underline;
}

/* Главная: фото станции, заголовок и показатели */
.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--ink);
  background: var(--hero-sky);
}

.hero-scene {
  position: absolute;
  inset: 0 0 0 36%;
  z-index: -2;
}

.hero-scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% center;
  filter: saturate(.82);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #e7f5ff 7%, #e7f5ff 33%, rgb(231 245 255 / 96%) 41%, rgb(231 245 255 / 81%) 48%, rgb(231 245 255 / 10%) 68%, transparent 86%);
}

.hero-content {
  padding-block: clamp(3.6rem, 6.5vw, 6.2rem) clamp(2.7rem, 4.6vw, 4.5rem);
}

.location {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1.2rem;
  color: #225375;
  font: 650 .82rem/1.4 "Consolas", monospace;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.location::before {
  content: "";
  width: 2.25rem;
  height: .65rem;
  flex: none;
  background: radial-gradient(circle at .32rem center, var(--accent) 0 3px, transparent 4px),
              linear-gradient(var(--accent), var(--accent)) left center / 100% 1px no-repeat;
}

.home-hero h1 {
  max-width: 58%;
  font-size: clamp(3.2rem, 4.9vw, 4.75rem);
  line-height: 1.025;
  letter-spacing: -.06em;
  text-wrap: balance;
}

.home-hero h1 span {
  display: block;
  color: var(--accent);
}

.home-hero h1 + p {
  max-width: min(52%, 37.5rem);
  margin-top: 1.35rem;
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  color: #304f68;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.7rem;
}

.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: .7rem 1.15rem;
  border: 1px solid var(--button-bg);
  border-radius: 4px;
  font-size: .97rem;
  font-weight: 690;
  text-decoration: none;
}

.primary-action {
  background: var(--button-bg);
  color: var(--button-ink);
}

.hero-actions .phone-action {
  background: rgb(245 251 255 / 92%);
  border-color: #9abbd0;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.hero-actions a:hover { text-decoration: underline; }

.hero-facts {
  background: rgb(238 248 255 / 97%);
  border-block: 1px solid var(--line);
}

.hero-facts ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0;
  margin-block: 0;
  list-style: none;
}

.hero-facts li {
  min-width: 0;
  padding: 1.2rem clamp(.75rem, 1.8vw, 2rem);
  border-inline-start: 1px solid var(--line);
}

.hero-facts li:first-child { padding-inline-start: 0; border-inline-start: 0; }
.hero-facts strong, .hero-facts span { display: block; }
.hero-facts strong {
  font-size: clamp(1.7rem, 2.7vw, 2.6rem);
  color: var(--ink);
  font-weight: 740;
  letter-spacing: -.055em;
  line-height: 1.1;
}
.hero-facts span { margin-top: .45rem; color: var(--muted); font-size: .92rem; }

.section-lead {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 2rem;
  align-items: start;
}

.section-lead > p {
  color: var(--muted);
  max-width: 65ch;
  font-size: 1.075rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.8rem, 2vw, 1.7rem);
  margin-top: 2.2rem;
}

.photo-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--pale);
}

figcaption {
  margin-top: .55rem;
  font-weight: 600;
  line-height: 1.4;
}

.region-band, .plan-band {
  padding-block: var(--space);
  background-color: var(--pale);
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 3rem 3rem;
}

/* Быстрая связь в конце главной */
.home-contact {
  background: #eaf6ff;
  color: var(--ink);
}

.home-contact-inner {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 1.3rem 2rem;
  padding-block: clamp(2rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}

.home-contact-inner p {
  max-width: 48ch;
  margin-top: .65rem;
  color: var(--muted);
}

.contact-methods {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem clamp(1.5rem, 4vw, 3.75rem);
}

.contact-methods dt {
  color: var(--muted);
  font-size: .94rem;
}

.contact-methods a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--link);
  font-size: clamp(1.1rem, 1.7vw, 1.5rem);
  font-weight: 600;
  text-decoration-color: var(--line);
}

.contact-methods a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.contact-methods a:focus-visible {
  outline-color: var(--focus);
}

/* Внутренние страницы */
/* Светлая координатная сетка объединяет внутренние страницы. */
.page-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(2.6rem, 5.8vw, 5.8rem);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background-color: var(--pale);
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
                    linear-gradient(105deg, #f5fbff, #d9eefb);
  background-size: 3rem 3rem, 3rem 3rem, cover;
}

.page-intro .wrap::before {
  content: "";
  display: block;
  width: 3.25rem;
  height: 3px;
  margin-bottom: 1rem;
  background: var(--accent);
}

.page-intro p {
  max-width: 60ch;
  margin-top: 1rem;
  color: #355670;
  font-size: clamp(1rem, 1.3vw, 1.17rem);
}

.meta, .document-list .meta {
  margin: 0 0 .6rem;
  color: var(--muted);
  font-size: .92rem;
}

.services-list, .documents-body, .contact-grid {
  padding-block: var(--space);
}

/* Каталог услуг: одно раскрытие показывает все работы направления. */
.services-list {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.6rem, 4vw, 4rem);
}

.service-group {
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 1rem;
}

.service-group:first-child {
  border-top: 1px solid var(--line);
}

.service-group summary {
  position: relative;
  padding: 1.05rem 2.4rem 1.05rem 0;
  cursor: pointer;
  list-style: none;
}

.service-group summary::-webkit-details-marker {
  display: none;
}

.service-group summary::after {
  content: "";
  position: absolute;
  right: .55rem;
  top: 1.65rem;
  width: .55rem;
  height: .55rem;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
}

.service-group[open] summary::after {
  transform: rotate(225deg);
}

.service-group summary:hover :is(h2,.former-h2), .service-group[open] :is(h2,.former-h2) {
  color: var(--accent);
}

.service-group :is(h2,.former-h2) {
  font-size: clamp(1.18rem, 2vw, 1.6rem);
}

.service-scope {
  display: block;
  margin-top: .4rem;
  color: var(--muted);
  font: 400 1rem/1.5 "Inter", "Segoe UI", Arial, sans-serif;
  letter-spacing: normal;
}

.service-rows {
  padding: .15rem 0 1.35rem clamp(.7rem, 2vw, 1.6rem);
}

.service-rows section {
  padding: .8rem 0 .8rem 1rem;
  border-left: 2px solid var(--line);
  scroll-margin-top: 1rem;
}

.service-rows :is(h3,.former-h3) {
  font-size: 1.07rem;
}

.service-rows p {
  max-width: 65ch;
  margin-top: .3rem;
  color: var(--muted);
}

.service-rows figure {
  margin-top: .7rem;
  max-width: 19rem;
}

.service-rows img, .services-crew img {
  width: 100%;
  height: auto;
}

.service-rows figcaption {
  font-size: .92rem;
  font-weight: 400;
  color: var(--muted);
}

.plan-copy li + li {
  margin-top: .45rem;
}

/* О компании */
.readiness-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem clamp(1.2rem, 3.5vw, 3.5rem);
  padding: 0;
  margin: 1.75rem 0 var(--space);
  list-style: none;
}

.readiness-facts li {
  border-top: 2px solid var(--line);
  padding-top: .85rem;
  color: var(--muted);
  font-size: 1rem;
}

.readiness-facts strong {
  display: block;
  margin-bottom: .4rem;
  color: var(--accent);
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  font-weight: 650;
  letter-spacing: -.045em;
  line-height: 1.15;
}

.about-team, .about-production {
  display: grid;
  align-items: start;
  gap: clamp(1.3rem, 4vw, 4rem);
}

.about-team {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
}

.about-production {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
}

.about-copy p {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.075rem;
  line-height: 1.65;
}

.about-copy :is(h2,.former-h2) + p, .about-copy p + p {
  margin-top: .85rem;
}

.about-copy :is(h3,.former-h3) + p {
  margin-top: .45rem;
}

.about-copy p + :is(h3,.former-h3) {
  margin-top: 1.45rem;
}

.about-photo img {
  width: 100%;
  height: auto;
}

.about-photo figcaption {
  color: var(--muted);
  font-size: .95rem;
}

.about-quality {
  row-gap: 1rem;
}

.about-quality .about-copy {
  grid-row: span 2;
}

.about-quality figure {
  max-width: 26rem;
}

.about-details {
  margin-top: 1.2rem;
  border-block: 1px solid var(--line);
}

.about-details + .about-details {
  margin-top: 0;
  border-top: 0;
}

.about-details summary {
  padding-block: .8rem;
  cursor: pointer;
  font-weight: 650;
}

.about-details summary::marker {
  color: var(--accent);
}

.about-details ul {
  margin: 0 0 1rem;
  padding-inline-start: 1.3rem;
  color: var(--muted);
}

.about-details li + li {
  margin-top: .35rem;
}

.about-details p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.inventory-list {
  margin: 0 0 1rem;
}

.inventory-list dt {
  font-weight: 650;
}

.inventory-list dd {
  margin-top: .15rem;
  color: var(--muted);
}

.inventory-list dd + dt {
  margin-top: .65rem;
}

.fleet-section {
  border-bottom: 1px solid var(--line);
}

.fleet-section > p {
  max-width: 65ch;
  margin-top: .8rem;
  color: var(--muted);
}

.fleet-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.fleet-gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: var(--pale);
}

.fleet-gallery figcaption {
  color: var(--muted);
  font-weight: 400;
  line-height: 1.5;
}

.fleet-gallery strong {
  display: block;
  color: var(--ink);
  font-size: 1.12rem;
}

/* Проекты и оригиналы документов */
.project-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.35rem;
  text-align: left;
}

.project-table th, .project-table td {
  padding: 1.05rem clamp(.8rem, 2vw, 1.8rem) 1.05rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.project-table thead th {
  padding-block: .6rem;
  color: var(--link);
  background: var(--pale);
  font-size: .95rem;
}

.project-table thead th:first-child {
  width: 24%;
}

.project-table thead th:nth-child(2) {
  width: 23%;
}

.project-table tbody th {
  color: var(--ink);
  font-size: 1.06rem;
  line-height: 1.4;
}

.project-table td:last-child {
  padding-right: 0;
  color: var(--muted);
}

.project-table td p + p {
  margin-top: .55rem;
}

.project-period {
  display: block;
  margin-top: .25rem;
  color: var(--accent);
  font-size: .95rem;
  font-weight: 600;
}

.project-table .mobile-label {
  display: none;
}

.project-subtitle {
  margin-block: 2rem .8rem;
}

.project-notes > div {
  padding-block: .8rem;
  border-bottom: 1px solid var(--line);
}

.project-notes > div:first-child {
  padding-top: 0;
}

.project-notes dt {
  font-weight: 700;
}

.project-notes dd {
  max-width: 70ch;
  margin-top: .25rem;
  color: var(--muted);
}

.annual-totals > div {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  column-gap: 1rem;
}

.annual-totals dt {
  color: var(--accent);
}

.annual-totals dd {
  margin: 0;
}

.plan-copy ul {
  max-width: 70ch;
  margin: .75rem 0 0;
  padding-inline-start: 1.25rem;
  color: var(--muted);
}

.plan-copy li::marker {
  color: var(--accent);
}

.plan-copy p {
  max-width: 62ch;
}

.documents-group + .documents-group {
  margin-top: var(--space);
}

.reference-summary p {
  margin-top: .8rem;
  max-width: 65ch;
  color: var(--muted);
}

.reference-summary a {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  font-weight: 650;
}

.document-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 3vw, 2.5rem);
  margin-top: 1.5rem;
}

.document-list article {
  background: #f3f9fd;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.3rem;
  border-top: 2px solid var(--accent);
}

.document-list :is(h3,.former-h3) {
  line-height: 1.3;
}

.document-list .meta {
  margin: .45rem 0 0;
  overflow-wrap: anywhere;
}

.document-list article > p:not(.meta) {
  margin-block: .65rem .9rem;
  color: var(--muted);
}

.file-size {
  white-space: nowrap;
  font-weight: 500;
  font-size: .9rem;
  color: var(--muted);
}

.document-list a, .contact-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.document-list a {
  flex-wrap: wrap;
  gap: .15rem .65rem;
  margin-top: auto;
  font-weight: 650;
}

.scan-list .scan-link {
  display: block;
  width: 100%;
}

.scan-link img {
  width: 100%;
  height: auto;
  aspect-ratio: 2.4;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--line);
  background: var(--pale);
}

.scan-link img[src$="profile-statement-preview.webp"] {
  object-position: center 48%;
}

.scan-link img[src$="vat-registration-preview.webp"] {
  object-position: center 38%;
}

.scan-link > span {
  display: inline-block;
  padding-block: .6rem;
}

/* Контакты */
.contact-grid {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.75rem;
}

.company-details {
  background: var(--pale);
  padding: clamp(1.1rem, 3vw, 2rem);
}

.company-details > p {
  margin-top: .5rem;
}

.contact-grid section:first-child {
  padding-block: clamp(.25rem, 2vw, 1.2rem);
}

.contact-grid section:first-child .contact-list a[href^="tel:"] {
  font-size: clamp(1.2rem, 2.1vw, 1.55rem);
  font-weight: 600;
}

.contact-grid :is(h2,.former-h2) {
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
}

.contact-list dt {
  margin-top: 1.35rem;
  color: var(--muted);
  font-size: .95rem;
}

.contact-list dd {
  font-size: clamp(1.06rem, 1.5vw, 1.25rem);
}

.contact-list dt + dd {
  margin-top: .15rem;
}

.contact-list a {
  overflow-wrap: anywhere;
}

/* Письмо открывает кнопка. Под ней — выделяемый адрес. */
.contact-methods .inquiry-email, .contact-list .inquiry-email {
  width: fit-content;
  max-width: 100%;
  margin-top: .25rem;
  padding: .6rem .9rem;
  background: var(--button-bg);
  color: var(--button-ink);
  border-radius: .25rem;
  font-size: 1rem;
  font-weight: 650;
  text-decoration: none;
}

.home-contact .inquiry-email, .home-contact .inquiry-email:hover {
  background: var(--button-bg);
  color: var(--button-ink);
}

.inquiry-address {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: .35rem;
  font-size: 1rem;
  font-weight: 400;
  overflow-wrap: anywhere;
  cursor: text;
  -webkit-user-select: all;
  user-select: all;
}

.inquiry-email:is(:hover, :focus-visible) {
  text-decoration: underline;
}

/* Телефоны и планшеты */
@media (max-width: 68rem) {
  .site-header .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: .15rem .4rem;
    padding-block: .45rem .2rem;
  }
  .header-inner .navigation {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
  }
  .language-switch {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 27rem) {
  .brand {
    gap: .35rem;
    font-size: 1.1rem;
    white-space: nowrap;
  }
  .brand-mark {
    width: 2.65rem;
  }
  .language-switch > * {
    min-width: 2.75rem;
    padding-inline: .3rem;
  }
  .language-full {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .language-short {
    display: inline;
  }
}

@media (max-width: 23rem) {
  .brand {
    gap: .35rem;
    font-size: 1.04rem;
    white-space: nowrap;
  }
  .brand-mark {
    width: 2.6rem;
  }
  .navigation > * {
    text-align: center;
  }
}

@media (max-width: 50rem) {
  .about-quality .about-copy {
    grid-row: auto;
  }
  .about-team, .about-production {
    grid-template-columns: 1fr;
  }
  .about-photo {
    max-width: 30rem;
  }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: .1rem;
    padding-top: .6rem;
  }
  .navigation {
    justify-content: space-between;
    align-self: stretch;
    gap: .3rem;
  }
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1.35rem;
  }
  .document-list {
    grid-template-columns: 1fr;
  }
  .section-lead, .home-contact-inner {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
  .services-list {
    grid-template-columns: 1fr;
  }
  .services-crew {
    max-width: 31rem;
  }

}

@media (max-width: 45rem) {
  .project-table, .project-table tbody, .project-table tbody th, .project-table td {
    display: block;
  }
  .project-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .project-table tr {
    display: grid;
    gap: .65rem;
    padding-block: 1.15rem;
    border-top: 1px solid var(--line);
  }
  .project-table tbody th, .project-table td {
    padding: 0;
    border: none;
  }
  .project-table .mobile-label {
    display: block;
    margin-bottom: .1rem;
    color: var(--muted);
    font-size: .88rem;
    font-weight: 500;
  }
  .project-period {
    display: inline-block;
    margin-left: .55rem;
  }
}

@media (max-width: 35rem) {
  .fleet-gallery {
    grid-template-columns: 1fr;
  }
  .fleet-gallery img {
    aspect-ratio: auto;
  }
  .readiness-facts {
    grid-template-columns: 1fr;
    gap: 0;
    margin-block: 1rem 2rem;
  }
  .readiness-facts li {
    display: grid;
    grid-template-columns: 7.7rem 1fr;
    align-items: center;
    gap: .7rem;
    padding-block: .85rem;
    border-width: 1px;
  }
  .readiness-facts strong {
    margin: 0;
    font-size: 1.6rem;
  }
  .contact-methods {
    flex-direction: column;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .services-list, .documents-body, .contact-grid {
    padding-block: 1.75rem;
  }
  .contact-grid {
    gap: 1.5rem;
  }
  .navigation {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 .25rem;
    padding-block: .25rem;
  }
  .navigation > * {
    font-size: .93rem;
  }
  .photo-grid {
    gap: 1.1rem .75rem;
  }
  figcaption {
    font-size: .94rem;
  }
}

/* Раскрывающееся меню и компоновка обложки на узком экране. */
@media (max-width: 68rem) {
  .menu-ready .header-inner {
    min-height: 4.25rem;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: .55rem;
    padding-block: .35rem;
  }

  .menu-ready .brand { grid-column: 1; grid-row: 1; justify-self: start; }
  .menu-ready .menu-toggle { display: inline-flex; grid-column: 2; grid-row: 1; }
  .menu-ready .language-switch { grid-column: 3; grid-row: 1; }
  .menu-ready .navigation { display: none; }
  .menu-ready.menu-open .navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-row: 2;
    grid-column: 1 / -1;
    gap: .1rem 1rem;
    padding: .6rem 0;
    border-top: 1px solid var(--line);
  }
  .menu-ready .navigation > * { justify-content: start; }
}

@media (max-width: 55rem) {
  .home-hero h1 { max-width: 66%; font-size: clamp(2.75rem, 6.3vw, 3.8rem); }
  .home-hero h1 + p { max-width: 60%; }
  .home-hero::before {
    background: linear-gradient(90deg, var(--hero-sky) 0 36%, rgb(229 244 255 / 94%) 53%, rgb(229 244 255 / 26%) 82%, transparent);
  }
}

@media (max-width: 44rem) {
  .home-hero { display: flex; flex-direction: column; }
  .hero-content { order: 0; padding-block: 2.65rem 1.15rem; }
  .hero-scene {
    position: relative;
    order: 1;
    inset: auto;
    z-index: 0;
    height: clamp(9rem, 34vw, 14rem);
    margin-top: -.25rem;
  }
  .hero-scene img { object-position: center 57%; }
  .hero-scene::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(var(--hero-sky), transparent 40%);
  }
  .home-hero::before { display: none; }
  .home-hero h1 { max-width: 100%; font-size: clamp(2.25rem, 7.4vw, 3.65rem); text-wrap: auto; }
  .home-hero h1 + p { max-width: 60ch; margin-top: 1.05rem; }
  .hero-actions { gap: .5rem; margin-top: 1.15rem; }
  .hero-actions a { padding-inline: .85rem; min-height: 2.9rem; }
  .hero-facts { order: 2; background: #eef8ff; }
  .hero-facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-facts li { padding: 1rem; }
  .hero-facts li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .hero-facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero-facts strong { font-size: clamp(1.4rem, 5.4vw, 2rem); }
  .hero-facts span { font-size: .9rem; }
  .location { margin-bottom: 1rem; font-size: .75rem; }
  .page-intro { background-size: 2.25rem 2.25rem, 2.25rem 2.25rem, cover; }
}

@media (max-width: 23rem) {
  .menu-ready .header-inner { gap: .25rem; }
  .menu-ready .brand-mark { width: 2rem; }
  .menu-ready .brand { gap: .25rem; font-size: .97rem; }
}

@media (prefers-reduced-motion: no-preference) {
  html:has(#top:target) {
    scroll-behavior: smooth;
  }
  .entered-view {
    animation: enter .42s ease-out;
  }
  @keyframes enter {
    from {
      opacity: .8;
      transform: translateY(6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Узкий экран с увеличенным пользовательским шрифтом. */
@media (max-width: 18em) {
  :root {
    --gutter: 5vw;
  }
  .wrap, h1, :is(h2,.former-h2), :is(h3,.former-h3) {
    overflow-wrap: anywhere;
  }
  .wrap *, .wrap {
    min-width: 0;
  }
  .site-header .header-inner, .menu-ready .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .25rem;
  }
  .brand {
    white-space: normal;
  }
  .language-switch {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }
  .header-inner .navigation {
    grid-row: 3;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .menu-ready .brand { grid-column: 1 / -1; }
  .menu-ready .menu-toggle { grid-column: 2; grid-row: 2; }
  .menu-ready .language-switch { grid-column: 1; grid-row: 2; }
  .menu-ready.menu-open .navigation { grid-row: 3; }
  .photo-grid, .readiness-facts li, .annual-totals > div {
    grid-template-columns: 1fr;
  }
  .readiness-facts li {
    gap: .15rem;
  }
  .file-size {
    white-space: normal;
  }
}

@media print {
  .site-header, .site-footer, .skip-link {
    display: none;
  }
  .hero-scene, .hero-actions, .home-hero::before { display: none; }
  .home-hero h1, .home-hero h1 + p { max-width: none; }
  .home-hero h1 span { color: black; }
  .home-hero, .region-band, .page-intro, .plan-band, .home-contact {
    color: black;
    background: white;
  }
  .contact-methods dt, .contact-methods a, .home-contact-inner p {
    color: black;
  }
  .contact-list .inquiry-email, .contact-methods .inquiry-email {
    color: black;
    background: transparent;
    padding: 0;
  }
  .location, .page-intro p {
    color: black;
  }
  .band, .hero-content, .services-list, .documents-body, .contact-grid {
    padding-block: 1rem;
  }
  body, .services-list, .documents-body .document-list {
    display: block;
  }
  .services-crew, .service-group summary::after {
    display: none;
  }
  details::details-content {
    content-visibility: visible;
  }
  :is(h2,.former-h2), :is(h3,.former-h3), summary {
    break-after: avoid;
  }
  .service-rows section, .document-list article, .project-table tr, figure {
    break-inside: avoid;
  }
}

/* Completed work within a service description. */
.work-example { border-inline-start: 3px solid #548399; padding-inline-start: 1rem; }
.work-example strong { display: block; }
