/* ============================================================
   IVPOL.RU — дизайн-система: токены, база, шапка, hero, футер
   Индустриальная палитра: бетон + сигнальный жёлтый + чёрный
   #101315 (чернила) · #FFD100 (сигнальный) · #E9E7E2 (бетон)
   Заголовки: Oswald · Текст: Manrope (assets/css/fonts.css)
   ============================================================ */

:root {
  --dark: #101315;
  --dark-2: #1A1E21;
  --dark-3: #07090A;
  --accent: #FFD100;
  --accent-h: #E6BC00;
  --accent-soft: #FFF7CC;
  --white: #FFFFFF;
  --grey: #E9E7E2;
  --text: #16191B;
  --muted: #5F6367;
  --line: #C6C1B8;
  --font-display: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --hazard: repeating-linear-gradient(-45deg, #FFD100 0 14px, #101315 14px 28px);
  --radius: 0px;
  --radius-sm: 0px;
  --shadow: 4px 4px 0 rgba(16, 19, 21, .10);
  --shadow-h: 8px 8px 0 #101315;
  --pad-x: clamp(20px, 4vw, 80px);
  --pad-y: clamp(48px, 7vw, 96px);
  --hd: 68px;
}

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

html, body { width: 100%; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hd) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

h1, h2, h3, h4 {
  margin: 0 0 .55em;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.08;
  letter-spacing: .01em;
  color: var(--text);
  text-wrap: balance;
}
/* Длинные заголовки внутри текста — без капса */
.prose h2,
.prose h3 {
  text-transform: none;
  line-height: 1.2;
  letter-spacing: 0;
}

p { margin: 0 0 1em; text-wrap: pretty; }

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

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
/* На светлом фоне — контур чернильного цвета, на тёмном — сигнальный */
.site-header :focus-visible,
.hero :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible,
.ribbon :focus-visible,
.page-hero :focus-visible,
.equip-card :focus-visible,
.cta-line :focus-visible,
.modal :focus-visible { outline-color: var(--accent); }
body :focus-visible { outline-color: var(--dark); }
.site-header :focus-visible,
.hero :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible,
.ribbon :focus-visible,
.page-hero :focus-visible,
.equip-card :focus-visible,
.cta-line :focus-visible { outline-color: var(--accent); }

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 300;
  background: var(--accent);
  color: var(--dark);
  font-weight: 700;
  padding: 10px 18px;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ---------- Полноширинная раскладка ---------- */
.section {
  width: 100%;
  padding: var(--pad-y) var(--pad-x);
}

.container {
  width: 100%;
  max-width: none;
  margin-inline: auto;
}

.section--grey { background: var(--grey); }
.section--dark { background: var(--dark); color: #fff; }
.section--white { background: var(--white); }

/* Секция с полноширинной лентой внутри: контент по краям, лента без полей */
.section--flush { padding-inline: 0; }
.section--flush > .container { padding-inline: var(--pad-x); }

/* Заголовок секции */
.section-head {
  max-width: 780px;
  margin-bottom: clamp(28px, 4vw, 52px);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(28px, 3.2vw, 46px);
  margin-bottom: .4em;
}
.section-head p {
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 18px);
  margin: 0;
}
.section-head h2::after {
  content: "";
  display: block;
  width: 76px;
  height: 8px;
  background: var(--hazard);
  margin-top: 18px;
}
.section-head--center h2::after { margin-inline: auto; }
.section-head h2 .accent {
  background: var(--accent);
  color: var(--dark);
  padding: 0 .14em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 0;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: background .2s, transform .15s, box-shadow .15s, border-color .2s, color .2s;
}
.btn svg { flex: none; }

.btn-accent {
  background: var(--accent);
  color: var(--dark);
  box-shadow: 5px 5px 0 var(--dark);
}
.btn-accent:hover {
  background: var(--accent-h);
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--dark);
}
.btn-accent:active {
  transform: translate(5px, 5px);
  box-shadow: 0 0 0 var(--dark);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .8);
  box-shadow: none;
}
.btn-ghost:hover {
  background: var(--accent);
  color: var(--dark);
  border-color: var(--accent);
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .45);
}

.btn-dark {
  background: var(--dark);
  color: #fff;
  box-shadow: 5px 5px 0 rgba(16, 19, 21, .25);
}
.btn-dark:hover {
  background: var(--accent);
  color: var(--dark);
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 rgba(16, 19, 21, .25);
}

.btn-block { width: 100%; }

/* Кнопка-стрелка (квадратная, индустриальная) */
.arrow-btn {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--accent);
  color: var(--dark);
  flex: none;
  transition: background .2s, transform .15s;
}
.arrow-btn:hover {
  background: var(--dark);
  color: var(--accent);
  transform: translate(2px, -2px);
}

/* ============================================================
   ШАПКА
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark);
  border-bottom: 3px solid var(--accent);
  transition: box-shadow .3s;
}
.site-header.is-scrolled {
  box-shadow: 0 12px 30px rgba(7, 9, 10, .45);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  min-height: var(--hd);
  padding: 8px var(--pad-x);
}

.brand {
  flex: none;
  display: flex;
  align-items: center;
}
.brand img {
  height: 44px;
  width: auto;
}

/* Навигация */
.main-nav { margin-left: auto; }
.main-nav > ul {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.3vw, 22px);
  list-style: none;
}

.nav-item { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 22px 2px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #EDEDEA;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: 0;
  transition: color .2s;
}
.nav-link:hover,
.nav-item.is-open > .nav-link,
.nav-link.active { color: var(--accent); }

.nav-caret {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .25s;
}
.nav-item.is-open .nav-caret { transform: rotate(225deg) translateY(-2px); }

/* Выпадающие меню */
.sub-menu {
  position: absolute;
  top: 100%;
  left: -14px;
  min-width: 264px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--dark);
  box-shadow: 8px 8px 0 rgba(16, 19, 21, .16);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .22s, transform .22s, visibility .22s;
}
.nav-item.is-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sub-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--text);
  transition: background .2s, color .2s;
}
.sub-menu a::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  flex: none;
}
.sub-menu a:hover {
  background: var(--accent);
  color: var(--dark);
}
.sub-menu a:hover::before { background: var(--dark); }

/* Контакты в шапке */
.header-contacts {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 20px);
  flex: none;
}
.header-phone {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .03em;
  color: #fff;
  white-space: nowrap;
  transition: color .2s;
}
.header-phone svg { color: var(--accent); flex: none; }
.header-phone:hover { color: var(--accent); }

.btn-call {
  padding: 12px 22px;
  font-size: 14.5px;
  border-radius: var(--radius-sm);
}

/* Бургер */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 10px;
  background: rgba(255, 255, 255, .08);
  border: 1.5px solid rgba(255, 255, 255, .35);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2.5px;
  background: var(--accent);
  transition: transform .3s, opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   ПЕРВЫЙ ЭКРАН
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(88vh, 880px);
  padding: clamp(56px, 9vh, 110px) var(--pad-x);
  background-color: var(--dark-3);
  color: #fff;
  overflow: hidden;
}
.hero-background {
  position: absolute;
  z-index: 0;
  inset: -8% 0;
  background: url("../img/hero-floor.webp") center 62% / cover no-repeat;
  transform: translate3d(
    var(--hero-parallax-x, 0px),
    var(--hero-parallax-y, 0px),
    0
  ) scale(1.06);
  will-change: transform;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(7, 9, 10, .96) 0%,
      rgba(7, 9, 10, .9) 36%,
      rgba(7, 9, 10, .6) 64%,
      rgba(7, 9, 10, .35) 100%);
}
/* Сигнальная полоса по низу hero */
.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  background: var(--hazard);
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 940px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(34px, 4.8vw, 66px);
  margin-bottom: .3em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .45);
}
.hero h1 .hero-line {
  display: block;
}
.hero h1 .hero-line--accent { color: var(--accent); }

.hero-sub {
  font-size: clamp(16px, 1.7vw, 23px);
  font-weight: 600;
  color: #DDDDD8;
  margin: 0 0 clamp(16px, 2.4vh, 26px);
  max-width: 640px;
}

.hero-price {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  margin-bottom: clamp(18px, 2.6vh, 28px);
  background: var(--accent);
  color: var(--dark);
  font-family: var(--font-display);
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, .55);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: clamp(26px, 4.5vh, 48px);
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 46px);
  list-style: none;
}
.hero-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 250px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  color: #E9E9E5;
}
.hero-feature svg {
  flex: none;
  width: 34px;
  height: 34px;
  color: var(--accent);
}

/* ============================================================
   ФИНАЛЬНЫЙ БЛОК (CTA)
   ============================================================ */
.cta-band {
  position: relative;
  width: 100%;
  padding: clamp(44px, 6vw, 78px) var(--pad-x);
  background: var(--dark) url("../img/cta-bg.webp") center 55% / cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 9, 10, .97) 0%, rgba(7, 9, 10, .9) 45%, rgba(7, 9, 10, .55) 100%);
}
/* Хазард-полоса по верхнему краю */
.cta-band::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: var(--hazard);
  z-index: 3;
}
.cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 48px);
}
.cta-text { max-width: 640px; }
.cta-text h2 {
  color: #fff;
  font-size: clamp(28px, 3.2vw, 46px);
  margin-bottom: .35em;
}
.cta-text p {
  color: #C9C9C4;
  font-size: clamp(15px, 1.3vw, 18px);
  margin: 0;
}

/* ============================================================
   ПОДВАЛ
   ============================================================ */
.site-footer {
  width: 100%;
  padding: clamp(34px, 4vw, 52px) var(--pad-x);
  background:
    var(--hazard) top left / 100% 8px no-repeat,
    var(--dark);
  color: #B8B8B4;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 2.6vw, 40px);
}
.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(16px, 2.4vw, 38px);
}
.f-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.4;
}
.f-contact svg { flex: none; color: var(--accent); }
.f-contact a:hover { color: var(--accent); }
.footer-brand {
  font-weight: 800;
  color: #fff;
  font-size: 15px;
}
.footer-tagline { font-size: 13px; color: #8E8E89; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.footer-nav a { color: #B8B8B4; transition: color .2s; }
.footer-nav a:hover { color: var(--accent); }

.vk-badge {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: #fff;
  color: var(--dark);
  flex: none;
  transition: background .2s, color .2s, transform .2s;
}
.vk-badge:hover {
  background: var(--accent);
  color: var(--dark);
  transform: translate(-2px, -2px);
}

.footer-bottom {
  margin-top: clamp(22px, 3vw, 36px);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: space-between;
  font-size: 13px;
  color: #8E8E89;
}

/* ============================================================
   МОДАЛЬНОЕ ОКНО
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(7, 9, 10, .72);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  position: relative;
  width: min(470px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border: 3px solid var(--dark);
  padding: clamp(26px, 4vw, 40px);
  box-shadow: 14px 14px 0 rgba(255, 209, 0, .9);
  transform: translateY(16px);
  transition: transform .3s;
}
.modal.open .modal-card { transform: none; }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  background: var(--grey);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.modal-close:hover { background: var(--accent); color: var(--dark); }

.modal-title {
  font-size: clamp(22px, 2.4vw, 28px);
  margin-bottom: .3em;
  padding-right: 34px;
}
.modal-sub {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 1.4em;
}

/* ============================================================
   АНИМАЦИИ ПОЯВЛЕНИЯ
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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