@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  src: url("fonts/open-sans-cyrillic-wght-normal.woff2") format("woff2-variations"),
       url("fonts/open-sans-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  src: url("fonts/open-sans-latin-wght-normal.woff2") format("woff2-variations"),
       url("fonts/open-sans-latin-wght-normal.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: dark;
  /* Палитра исходного сайта */
  --bg: #222222;
  --bg-deep: #000000;
  --text: #ffffff;
  --text-soft: #d9d9d9;
  --text-muted: #9a9a9a;
  --accent: #60b8c9;
  --accent-deep: #43828c;
  --teal-overlay: 47, 84, 91;
  --rule: rgba(255, 255, 255, 0.14);
  --font: "Open Sans", Arial, sans-serif;
  --measure: 46rem;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-soft);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(96, 184, 201, 0.4);
  text-underline-offset: 0.18em;
  transition: color 0.15s, text-decoration-color 0.15s;
}
a:hover { color: #8fd3e0; text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Шапка */
.hero {
  position: relative;
  padding: clamp(4.5rem, 14vh, 8rem) 0 clamp(3.5rem, 10vh, 6rem);
  background-color: #2f545b;
  background-image:
    linear-gradient(180deg, rgba(var(--teal-overlay), 0.72) 0%, rgba(var(--teal-overlay), 0.55) 55%, var(--bg) 97%, var(--bg) 100%),
    url("hero.jpg");
  background-image:
    linear-gradient(180deg, rgba(var(--teal-overlay), 0.72) 0%, rgba(var(--teal-overlay), 0.55) 55%, var(--bg) 97%, var(--bg) 100%),
    image-set(url("hero.webp") type("image/webp"), url("hero.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center 40%;
  color: var(--text);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--bg);
}

.brand {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin: 0;
}
.brand img {
  width: clamp(3.5rem, 9vw, 4.75rem);
  height: auto;
  flex: none;
}
.brand-name {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--text);
}
.tagline {
  margin: 1.5rem 0 0;
  font-size: clamp(1.125rem, 2.6vw, 1.5rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  max-width: 28ch;
}

/* Разделы */
main { flex: 1 0 auto; }

section { padding: 2.75rem 0 0; }
section:last-child { padding-bottom: 3.5rem; }

h2 {
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.lead { font-size: 1.25rem; line-height: 1.55; color: var(--text); }

.note {
  margin-top: 1.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--accent-deep);
  font-size: 1rem;
  color: var(--text-muted);
}

/* Реквизиты */
.requisites {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(10rem, 15rem) 1fr;
  column-gap: 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
}
.requisites dt,
.requisites dd {
  margin: 0;
  padding: 0.7rem 0;
  border-top: 1px solid var(--rule);
}
.requisites dt { color: var(--text-muted); }
.requisites dd { color: var(--text); font-variant-numeric: tabular-nums; }

@media (max-width: 36rem) {
  body { font-size: 1.0625rem; }
  .lead { font-size: 1.125rem; }
  .requisites { grid-template-columns: 1fr; }
  .requisites dt { padding-bottom: 0.1rem; font-size: 0.875rem; }
  .requisites dd { border-top: 0; padding-top: 0; }
}

/* Подвал */
.site-footer {
  flex-shrink: 0;
  background: var(--bg-deep);
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 1.5rem 0;
}
.site-footer p { margin: 0; }

/* Страница 404 */
.notfound {
  padding-top: 3rem;
  padding-bottom: 4rem;
}
.notfound .code {
  font-size: clamp(3rem, 12vw, 5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  margin: 0 0 1rem;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
