/* ==========================================================================
   Кузнецкая Энергия — прототип главного сайта холдинга
   Один файл стилей. Без фреймворков и внешних зависимостей.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Шрифты
   V4 TEPLOID — только для текста в ВЕРХНЕМ РЕГИСТРЕ (в шрифте нет строчных).
   Open Sans — основной текстовый шрифт (локальные woff2, кириллица + латиница).
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "V4 TEPLOID";
  src: url("../fonts/V4TEPLOID-BoldCond.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "V4 TEPLOID";
  src: url("../fonts/V4TEPLOID-MediumCond.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "V4 TEPLOID";
  src: url("../fonts/V4TEPLOID-LightCond.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

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

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

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

@font-face {
  font-family: "Open Sans";
  src: url("../fonts/opensans-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  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;
}

@font-face {
  font-family: "Open Sans";
  src: url("../fonts/opensans-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  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;
}

@font-face {
  font-family: "Open Sans";
  src: url("../fonts/opensans-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  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;
}

/* --------------------------------------------------------------------------
   2. Переменные и база
   -------------------------------------------------------------------------- */

:root {
  --navy: #283f65;
  --navy-dark: #1d304e;
  --navy-ink: #16243b;
  --orange: #b06e00;
  --orange-dark: #935c00;
  --red: #ed1b2d;
  --white: #ffffff;
  --bg-light: #f2f4f7;
  --border: #dce1ea;
  --text: #283f65;
  --muted: #5d6c82;
  --muted-light: #8a97a9;

  --font-display: "V4 TEPLOID", "Arial Narrow", Impact, sans-serif;
  --font-body: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --container: 1280px;
  --gutter: 24px;
  --section-y: clamp(56px, 7vw, 96px);
  --radius: 4px;
  --shadow-card: 0 12px 30px rgba(24, 40, 66, 0.1);
  --transition: 0.2s ease;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

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

button {
  cursor: pointer;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top var(--transition);
}

.skip-link:focus {
  top: 0;
}

/* --------------------------------------------------------------------------
   3. Шапка и навигация
   -------------------------------------------------------------------------- */

.site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  padding-top: 28px;
  color: var(--white);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  flex: 0 0 auto;
  line-height: 0;
  border-radius: 2px;
}

.site-logo img {
  width: 190px;
  height: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: var(--navy);
  background: var(--white);
  border: 0;
  border-radius: 50%;
  transition: background var(--transition), transform var(--transition);
}

.icon-btn:hover {
  background: var(--bg-light);
  transform: translateY(-1px);
}

.icon-btn svg {
  width: 22px;
  height: 22px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--navy);
  background: var(--white);
  border: 0;
  border-radius: 50%;
  transition: background var(--transition);
}

.nav-toggle:hover {
  background: var(--bg-light);
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

.site-nav {
  margin-top: 26px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  width: fit-content;
  max-width: 100%;
  padding: 7px 14px;
  background: var(--navy);
  border-radius: 999px;
}

.site-nav a {
  display: block;
  padding: 12px 18px;
  font-size: 15px;
  line-height: 1.2;
  color: var(--white);
  white-space: nowrap;
  border-radius: 999px;
  opacity: 0.85;
  transition: opacity var(--transition), background var(--transition);
}

.site-nav a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}

.site-nav a[aria-current="page"] {
  font-weight: 600;
  opacity: 1;
}

/* --------------------------------------------------------------------------
   4. Обложка (hero)
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 640px;
  height: 86vh;
  max-height: 1000px;
  padding-bottom: clamp(48px, 7vw, 96px);
  color: var(--white);
  background-image: linear-gradient(rgba(10, 15, 30, 0.45), rgba(10, 15, 30, 0.45)),
    url("../img/hero-city.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 55%;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 40%;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, rgba(10, 15, 30, 0), rgba(10, 15, 30, 0.4));
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-title {
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 8.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.22);
}

.hero-subtitle {
  max-width: 600px;
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.55;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

/* Внутренние страницы */
.hero--inner {
  min-height: 520px;
  height: 52vh;
  max-height: 680px;
}

.hero--inner .hero-title {
  font-size: clamp(2.75rem, 8vw, 7.5rem);
}

/* --------------------------------------------------------------------------
   5. Секции и типографика
   -------------------------------------------------------------------------- */

.section {
  padding: var(--section-y) 0;
}

.section--light {
  background: var(--bg-light);
}

.section-title {
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}

.link-arrow {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  transition: color var(--transition);
}

.link-arrow:hover {
  color: var(--orange);
}

.prose p {
  margin-bottom: 16px;
}

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

/* --------------------------------------------------------------------------
   6. Главная: о компании
   -------------------------------------------------------------------------- */

.block-about {
  position: relative;
  z-index: 2;
  padding: var(--section-y) 0;
}

.block-about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.block-about-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.block-about-body .section-title {
  margin-bottom: 22px;
}

.block-about-body p {
  margin-bottom: 18px;
  font-size: 1.02rem;
  line-height: 1.75;
  color: #3f4f67;
}

.cta-extremism {
  display: block;
  width: 100%;
  margin-top: 30px;
  padding: 26px 30px;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--orange);
  border-radius: 2px;
  transition: background var(--transition);
}

.cta-extremism:hover {
  background: var(--orange-dark);
}

/* --------------------------------------------------------------------------
   7. Показатели
   -------------------------------------------------------------------------- */

.stats {
  padding: clamp(40px, 5vw, 64px) 0;
  background: var(--bg-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
}

.stat-number {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--navy);
  text-transform: uppercase;
}

.stat-slash {
  font-family: var(--font-body);
  font-size: 0.72em;
  font-weight: 700;
  vertical-align: 0.08em;
}

.stat-label {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   8. Новости
   -------------------------------------------------------------------------- */

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.news-card {
  display: flex;
  flex-direction: column;
  padding: 28px 26px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow var(--transition), transform var(--transition);
}

.news-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.news-date {
  margin-bottom: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.news-card h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--navy);
}

.news-card p {
  flex: 1;
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.65;
  color: #4c5c73;
}

.news-more {
  margin-top: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}

.news-more:hover {
  color: var(--orange);
}

/* --------------------------------------------------------------------------
   9. Система компаний
   -------------------------------------------------------------------------- */

.companies-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.company-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow var(--transition), transform var(--transition),
    border-color var(--transition);
}

.company-card:hover {
  border-color: #c4cddb;
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.company-card-top {
  display: flex;
  gap: 14px;
  align-items: center;
}

.company-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
}

.company-mono {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  background: var(--navy);
  border-radius: 50%;
}

.company-name {
  font-size: 1.03rem;
  font-weight: 700;
  line-height: 1.3;
}

.company-desc {
  flex: 1;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #4c5c73;
}

.company-domain {
  margin-top: 2px;
  padding-top: 12px;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   10. Внутренние страницы: общие блоки
   -------------------------------------------------------------------------- */

.page-section {
  padding: var(--section-y) 0;
}

.page-section + .page-section {
  padding-top: 0;
}

.page-section--light {
  background: var(--bg-light);
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.page-lead {
  max-width: 820px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #3f4f67;
}

.page-lead p + p {
  margin-top: 16px;
}

/* О компании */
.values {
  padding: var(--section-y) 0;
  background: var(--bg-light);
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 36px;
}

.value-card {
  padding: 30px 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.value-card h3 {
  margin-bottom: 10px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.value-card p {
  font-size: 0.96rem;
  line-height: 1.65;
  color: #4c5c73;
}

.about-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.facts-list li {
  position: relative;
  margin-bottom: 14px;
  padding-left: 22px;
  font-size: 1rem;
  line-height: 1.6;
  color: #3f4f67;
}

.facts-list li:last-child {
  margin-bottom: 0;
}

.facts-list li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--orange);
  border-radius: 50%;
}

.legal-box {
  margin-top: 32px;
  padding: clamp(24px, 4vw, 36px);
  background: var(--bg-light);
  border-radius: var(--radius);
}

.legal-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0;
}

.legal-list dt {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.legal-list dd {
  margin: 4px 0 0;
  font-size: 0.97rem;
  line-height: 1.55;
  color: var(--navy);
}

.legal-note {
  margin-top: 26px;
  font-size: 0.85rem;
  color: var(--muted);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 18px;
}

.legal-links a {
  font-size: 0.88rem;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-links a:hover {
  color: var(--orange);
}

/* Страница «Система компаний» */
.companies-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 36px;
}

.company-full {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.company-full-head {
  display: flex;
  gap: 16px;
  align-items: center;
}

.company-full .company-icon {
  width: 54px;
  height: 54px;
}

.company-full .company-mono {
  width: 54px;
  height: 54px;
  font-size: 1.3rem;
}

.company-full h2 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
}

.company-full p {
  flex: 1;
  font-size: 0.97rem;
  line-height: 1.7;
  color: #4c5c73;
}

.btn-outline {
  display: inline-block;
  align-self: flex-start;
  padding: 11px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 999px;
  transition: color var(--transition), background var(--transition);
}

.btn-outline:hover {
  color: var(--white);
  background: var(--navy);
}

.btn-outline[aria-disabled="true"] {
  color: var(--muted);
  border-color: var(--border);
  pointer-events: none;
}

.companies-note {
  margin-top: 28px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   11. Контакты, форма, карта
   -------------------------------------------------------------------------- */

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.contacts-intro {
  margin-bottom: 32px;
  font-size: 1rem;
  line-height: 1.7;
  color: #3f4f67;
}

.contact-list li {
  margin-bottom: 26px;
}

.contact-list li:last-child {
  margin-bottom: 0;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-item svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  color: var(--navy);
}

.contact-label {
  margin-bottom: 3px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-value {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--navy);
}

a.contact-value:hover,
.contact-value a:hover {
  color: var(--orange);
}

.contact-note {
  margin-top: 30px;
  padding-top: 20px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.form-card {
  padding: clamp(24px, 4vw, 36px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.form-title {
  margin-bottom: 6px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}

.form-hint {
  margin-bottom: 28px;
  font-size: 0.82rem;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 24px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 22px;
}

.form-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-field .required {
  color: var(--red);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 9px 2px;
  font-size: 1rem;
  color: var(--navy);
  background: transparent;
  border: 0;
  border-bottom: 1px solid #b9c2d0;
  border-radius: 0;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-field input:focus,
.form-field textarea:focus {
  border-bottom-color: var(--navy);
  outline: none;
  box-shadow: 0 1px 0 0 var(--navy);
}

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

.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 24px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #4c5c73;
}

.checkbox input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--navy);
}

.checkbox a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-submit {
  padding: 15px 42px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--navy);
  border: 0;
  border-radius: 999px;
  transition: background var(--transition);
}

.form-submit:hover {
  background: var(--navy-dark);
}

.form-note {
  display: none;
  margin-top: 18px;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--bg-light);
  border-left: 3px solid var(--orange);
}

.form-note.is-visible {
  display: block;
}

.map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  margin-top: clamp(40px, 6vw, 64px);
  padding: 24px;
  font-size: 0.95rem;
  color: var(--muted);
  text-align: center;
  background: var(--bg-light);
  border-radius: var(--radius);
}

/* --------------------------------------------------------------------------
   12. Подвал
   -------------------------------------------------------------------------- */

.site-footer {
  padding: 64px 0 28px;
  color: var(--white);
  background: var(--navy);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.footer-logo img {
  width: 180px;
  height: auto;
}

.footer-brand p {
  max-width: 300px;
  margin: 18px 0 22px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.socials {
  display: flex;
  gap: 10px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transition: background var(--transition), border-color var(--transition);
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.social-link svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.footer-title {
  margin-bottom: 18px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.footer-nav li {
  margin-bottom: 2px;
}

.footer-nav a {
  font-size: 0.95rem;
  line-height: 2.1;
  color: rgba(255, 255, 255, 0.85);
}

.footer-nav a:hover,
.footer-contacts a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-contacts address {
  font-size: 0.95rem;
  font-style: normal;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.85);
}

.footer-contacts address p {
  margin-bottom: 6px;
}

.footer-contacts a {
  color: rgba(255, 255, 255, 0.85);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-legal a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------------------------
   13. Cookie-баннер
   -------------------------------------------------------------------------- */

.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 120;
  width: min(420px, calc(100vw - 32px));
  padding: 22px 22px 20px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--navy);
  background: var(--white);
  border-radius: 6px;
  box-shadow: 0 18px 50px rgba(16, 28, 48, 0.28);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin-bottom: 16px;
}

.cookie-banner a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner a:hover {
  color: var(--orange);
}

.cookie-accept {
  padding: 10px 32px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--navy);
  border: 0;
  border-radius: 999px;
  transition: background var(--transition);
}

.cookie-accept:hover {
  background: var(--navy-dark);
}

/* --------------------------------------------------------------------------
   14. Адаптив
   -------------------------------------------------------------------------- */

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .stat {
    padding-left: 24px;
    border-left: 1px solid #d5dbe5;
  }

  .stat:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .companies-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .split {
    grid-template-columns: 300px 1fr;
    gap: 48px;
  }

  .about-facts {
    grid-template-columns: 300px 1fr;
    gap: 48px;
  }

  .legal-list {
    grid-template-columns: 230px 1fr;
    gap: 12px 24px;
    align-items: baseline;
  }

  .legal-list dd {
    margin-top: 0;
  }

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

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

  .footer-top {
    grid-template-columns: 1.2fr 1fr 1.3fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .block-about-grid {
    grid-template-columns: 45% 1fr;
    gap: clamp(40px, 5vw, 64px);
    align-items: start;
  }

  .block-about-media {
    margin-top: -160px;
  }

  .block-about-body {
    padding-top: 8px;
  }

  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .companies-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .companies-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-section .split {
    grid-template-columns: 320px 1fr;
    gap: 64px;
  }

  .contacts-grid {
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    gap: 64px;
  }

  .footer-top {
    grid-template-columns: 1.4fr 1fr 1.4fr;
    gap: 48px;
  }

  .footer-brand {
    grid-column: auto;
  }
}

@media (max-width: 1023px) {
  .site-nav a {
    padding: 11px 14px;
    font-size: 14px;
  }

  .icon-btn {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding-top: 16px;
  }

  .header-bar {
    gap: 16px;
  }

  .site-logo img {
    width: 140px;
  }

  .header-actions {
    gap: 8px;
  }

  .icon-btn,
  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .icon-btn svg {
    width: 20px;
    height: 20px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    margin-top: 14px;
    padding: 8px;
    background: var(--navy);
    border-radius: 18px;
  }

  .site-header.nav-open .site-nav {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 0;
    background: transparent;
    border-radius: 0;
  }

  .site-nav li {
    width: 100%;
  }

  .site-nav a {
    padding: 14px 16px;
    font-size: 16px;
    white-space: normal;
    border-radius: 12px;
    opacity: 1;
  }

  .site-nav a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.08);
  }

  .hero {
    min-height: 600px;
    height: 88vh;
    padding-bottom: 48px;
  }

  .hero--inner {
    min-height: 420px;
    height: 52vh;
    padding-bottom: 36px;
  }

  .hero-title {
    font-size: clamp(3rem, 13vw, 5rem);
  }

  .hero--inner .hero-title {
    font-size: clamp(2.75rem, 11vw, 4.5rem);
  }

  .header-actions {
    gap: 6px;
  }

  .cookie-banner {
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: auto;
  }

  .news-card {
    padding: 24px 22px 22px;
  }

  .company-full {
    padding: 24px;
  }

  .companies-list {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .site-logo img {
    width: 120px;
  }

  .icon-btn,
  .nav-toggle {
    width: 36px;
    height: 36px;
  }

  .icon-btn svg {
    width: 18px;
    height: 18px;
  }

  .header-bar {
    gap: 10px;
  }

  .header-actions {
    gap: 5px;
  }

  .hero-title {
    font-size: clamp(2.6rem, 15vw, 4rem);
  }

  .cta-extremism {
    padding: 22px 20px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
