/* intotum — план разработки нового продукта */

:root {
  /* фирменная палитра */
  --navy: #000033;
  --navy-2: #0b1450;
  --orange: #ff4b00;
  --orange-ink: #d23c00;       /* оранжевый для текста и кнопок — контраст ≥ 4.5:1 на белом */
  --sky: #d1ecff;
  --sky-2: #5bb8ff;
  --steel: #7a91a6;

  --bg: #ffffff;
  --bg-tint: #f3f7fb;
  --text: #1c2130;             /* графит */
  --text-2: #4f5b6b;
  --line: #dbe3ec;

  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 72px;
  --container: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t: .2s;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); text-underline-offset: 3px; }
a:hover { color: var(--orange-ink); }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.12; color: var(--navy); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

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

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.sr-only {
  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; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top var(--t);
}
.skip-link:focus { top: 12px; color: #fff; }

.muted { color: var(--text-2); font-style: italic; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 16px/1 inherit; font-family: inherit;
  text-decoration: none; cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t), box-shadow var(--t);
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #f05010 0%, var(--orange-ink) 100%);
  box-shadow: 0 8px 24px -10px rgba(210, 60, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn--primary:hover { color: #fff; background: #b83500; }
.btn--ghost {
  color: var(--navy);
  background: rgba(255, 255, 255, .7);
  border-color: rgba(0, 0, 51, .15);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 6px 20px -12px rgba(0, 0, 51, .35);
}
.btn--ghost:hover { color: var(--navy); background: #fff; border-color: var(--navy); }
.btn--outline { color: var(--navy); background: #fff; border-color: var(--line); }
.btn--outline:hover { color: var(--navy); border-color: var(--navy); }
.btn--small { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 16px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange-ink);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--orange); }
.eyebrow--light { color: #fff; }

/* ---------- шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t);
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0, 0, 51, .5); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.header__logo { flex: none; display: block; padding: 6px 0; }
.header__logo img { width: 112px; height: auto; }
.header__phone { display: none; margin-left: auto; font-weight: 600; text-decoration: none; color: var(--navy); white-space: nowrap; }

.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; gap: 4px; }
.nav__link {
  position: relative; display: block; padding: 10px 14px;
  font-size: 15px; font-weight: 500; color: var(--text); text-decoration: none; border-radius: 999px;
  transition: background var(--t), color var(--t);
}
.nav__link:hover { color: var(--navy); background: var(--bg-tint); }
.nav__link.is-active { color: var(--navy); background: var(--sky); }
.nav__contacts { display: none; }

.burger { display: none; }

@media (min-width: 1200px) {
  .header__phone { display: inline; margin-left: 8px; }
  .nav { margin-left: auto; }
}

@media (max-width: 1023px) {
  .burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 46px; height: 46px; margin-left: auto; padding: 0 12px;
    background: var(--bg-tint); border: 0; border-radius: 12px; cursor: pointer;
  }
  .burger span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform var(--t), opacity var(--t); }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: fixed; left: 0; right: 0; top: var(--header-h);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 51, .4);
    padding: 12px 16px 24px;
    display: none;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; gap: 2px; }
  .nav__link { padding: 14px 16px; font-size: 18px; border-radius: 12px; }
  .nav__contacts { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; padding: 16px; border-top: 1px solid var(--line); }
  .nav__contacts a { font-weight: 600; text-decoration: none; }
}

/* ---------- первый экран ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(820px, calc(100vh - var(--header-h)));
  display: flex; align-items: center;
  padding: 72px 0 88px;
  overflow: hidden;
  background: #eef4fa;
}
.hero__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.9) 34%, rgba(255,255,255,.35) 58%, rgba(255,255,255,0) 72%);
}
/* фирменный «уголок» */
.hero::after {
  content: ""; position: absolute; right: 32px; bottom: 32px; width: 64px; height: 64px;
  border-right: 10px solid var(--orange); border-bottom: 10px solid var(--orange);
}
/* компьютер: картинка привязана к контейнеру, а не к краю окна — на широких экранах не уезжает вправо */
@media (min-width: 1024px) {
  .hero { background: #f4f8fc; }
  .hero::before { content: none; }
  .hero::after { right: max(32px, calc(50% - var(--container) / 2)); }
  .hero__img {
    left: auto; right: max(0px, calc(50% - var(--container) / 2 - 200px));
    width: min(66%, 1150px); object-position: 40% 50%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.2) 10%, #000 36%);
            mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.2) 10%, #000 36%);
  }
}
@media (min-width: 1500px) {
  .hero__img {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.2) 10%, #000 36%, #000 86%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.2) 10%, #000 36%, #000 86%, transparent 100%);
  }
}
.hero__content { max-width: var(--container); }
.hero__title {
  max-width: 12.5em;
  font-size: clamp(34px, 4.6vw, 60px);
  margin-bottom: 24px;
}
.hero__subtitle {
  max-width: 27em;
  font-size: clamp(18px, 1.7vw, 22px); line-height: 1.45; font-weight: 500;
  color: var(--navy-2);
  margin-bottom: 18px;
}
.hero__note {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 36px; padding: 8px 18px 8px 8px;
  background: rgba(255, 255, 255, .8); border: 1px solid var(--line); border-radius: 999px;
  font-size: 16px; color: var(--text);
}
.hero__note-num {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700;
}

@media (max-width: 767px) {
  .hero { min-height: 0; align-items: flex-end; padding: 220px 0 48px; }
  .hero__img { height: 300px; object-position: 75% 50%; }
  .hero::before { background: linear-gradient(180deg, rgba(255,255,255,0) 0, rgba(255,255,255,0) 150px, #fff 290px); }
  .hero::after { display: none; }
  .hero__note { border-radius: 16px; }
  .btn-row .btn { flex: 1 1 100%; }
}

/* ---------- секции ---------- */
.section { position: relative; padding: 96px 0; }
.section--tint { background: var(--bg-tint); }
.section__head {
  display: grid; gap: 20px 64px; align-items: end;
  margin-bottom: 48px;
}
@media (min-width: 900px) { .section__head { grid-template-columns: 1.2fr 1fr; } }
.section__title { font-size: clamp(30px, 3.8vw, 48px); }
.section__lead { margin: 0; color: var(--text-2); font-size: 17px; max-width: 34em; }

@media (max-width: 767px) {
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 32px; }
}

/* ---------- схема маршрута ---------- */
.route {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px;
  counter-reset: none;
}
.route__item { position: relative; }
.route__card {
  position: relative; width: 100%; height: 100%;
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; gap: 4px 16px;
  padding: 20px; text-align: left;
  background: #fff; color: var(--text);
  border: 1.5px solid var(--line); border-radius: var(--radius);
  font: inherit; cursor: pointer;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.route__card:hover { border-color: var(--navy); box-shadow: 0 14px 30px -18px rgba(0, 0, 51, .45); transform: translateY(-2px); }
.route__num {
  font-size: 15px; font-weight: 700; letter-spacing: .04em;
  color: var(--orange-ink);
}
.route__icon {
  width: 36px; height: 36px; justify-self: end;
  fill: none; stroke: var(--navy); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.route__name { grid-column: 1 / -1; font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--navy); }
.route__more {
  grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--navy-2);
}
.route__more::after { content: "→"; transition: transform var(--t); }
.route__card:hover .route__more::after { transform: translateX(4px); }
.route__card--final { background: var(--navy); border-color: var(--navy); }
.route__card--final .route__name, .route__card--final .route__more { color: #fff; }
.route__card--final .route__num { color: #ff8a5c; }
.route__card--final .route__icon { stroke: var(--sky); }

/* мобильная вертикальная последовательность */
@media (max-width: 899px) {
  .route { padding-left: 28px; }
  .route::before {
    content: ""; position: absolute; left: 7px; top: 24px; bottom: 24px; width: 2px;
    background: linear-gradient(var(--sky-2), var(--navy));
  }
  .route { position: relative; }
  .route__item::before {
    content: ""; position: absolute; left: -28px; top: 26px; width: 16px; height: 16px;
    border-radius: 50%; background: #fff; border: 3px solid var(--orange);
  }
}

/* компьютер: «змейка» 4 + 4, порядок чтения 1→4, затем вниз и 5→8 справа налево */
@media (min-width: 900px) {
  .route { grid-template-columns: repeat(4, 1fr); column-gap: 48px; row-gap: 64px; }
  .route__card { min-height: 200px; grid-template-rows: auto 1fr auto; align-items: start; padding: 24px; }
  .route__icon { align-self: center; }
  .route__num { font-size: 40px; letter-spacing: -.02em; line-height: 1; }
  .route__icon { width: 44px; height: 44px; }
  .route__name { margin-top: 14px; font-size: 19px; }
  .route__more { align-self: end; padding-top: 12px; }

  .route__item:nth-child(5) { grid-column: 4; grid-row: 2; }
  .route__item:nth-child(6) { grid-column: 3; grid-row: 2; }
  .route__item:nth-child(7) { grid-column: 2; grid-row: 2; }
  .route__item:nth-child(8) { grid-column: 1; grid-row: 2; }

  /* соединители: линия + наконечник стрелки в зазоре между карточками */
  .route__item::before, .route__item::after { content: ""; position: absolute; z-index: 1; }
  .route__item::after { background: var(--orange); }
  .route__item::before { width: 0; height: 0; border: 7px solid transparent; }

  /* вправо: 1→2, 2→3, 3→4 */
  .route__item:nth-child(-n+3)::after { top: 50%; left: calc(100% + 4px); width: 30px; height: 2px; }
  .route__item:nth-child(-n+3)::before { top: calc(50% - 6px); left: calc(100% + 34px); border-left: 10px solid var(--orange); border-right: 0; }

  /* вниз: 4→5 */
  .route__item:nth-child(4)::after { top: calc(100% + 4px); left: calc(50% - 1px); width: 2px; height: 48px; }
  .route__item:nth-child(4)::before { top: calc(100% + 52px); left: calc(50% - 7px); border-top: 10px solid var(--orange); border-bottom: 0; }

  /* влево: 5→6, 6→7, 7→8 */
  .route__item:nth-child(n+5):nth-child(-n+7)::after { top: 50%; right: calc(100% + 14px); width: 30px; height: 2px; }
  .route__item:nth-child(n+5):nth-child(-n+7)::before { top: calc(50% - 6px); right: calc(100% + 4px); border-right: 10px solid var(--orange); border-left: 0; }

  .route__item:nth-child(8)::before, .route__item:nth-child(8)::after { content: none; }
}

/* ---------- аккордеоны ---------- */
.acc { display: grid; gap: 12px; }
.acc__item {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  transition: border-color var(--t), box-shadow var(--t);
}
.acc__item[open] { border-color: var(--navy); box-shadow: 0 18px 40px -28px rgba(0, 0, 51, .5); }
.acc__item.is-highlight { animation: flash 1.2s var(--ease); }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(255, 75, 0, .55); } 100% { box-shadow: 0 0 0 14px rgba(255, 75, 0, 0); } }

.acc__head {
  display: flex; align-items: center; gap: 18px;
  padding: 20px 22px; cursor: pointer; list-style: none;
  border-radius: var(--radius);
}
.acc__head::-webkit-details-marker { display: none; }
.acc__head:hover .acc__title { color: var(--orange-ink); }
.acc__num {
  flex: none; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--sky); color: var(--navy); font-weight: 700; font-size: 15px;
}
.acc__item[open] .acc__num { background: var(--navy); color: #fff; }
.acc__title { flex: 1; font-size: 19px; font-weight: 600; color: var(--navy); line-height: 1.3; transition: color var(--t); }
.acc__icon {
  position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--line); transition: transform var(--t) var(--ease), background var(--t);
}
.acc__icon::before, .acc__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px;
  margin: -1px 0 0 -6px; background: var(--navy); border-radius: 2px;
}
.acc__icon::after { transform: rotate(90deg); transition: transform var(--t); }
.acc__item[open] .acc__icon { background: var(--orange); border-color: var(--orange); }
.acc__item[open] .acc__icon::before, .acc__item[open] .acc__icon::after { background: #fff; }
.acc__item[open] .acc__icon::after { transform: rotate(0deg); }

.acc__body { padding: 0 22px 24px 84px; animation: reveal .22s var(--ease); }
@keyframes reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

@media (max-width: 599px) {
  .acc__head { gap: 12px; padding: 16px; }
  .acc__num { width: 38px; height: 38px; font-size: 14px; }
  .acc__title { font-size: 17px; }
  .acc__body { padding: 0 16px 20px; }
}

/* поля этапа */
.fields { margin: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
/* flex, чтобы поля растягивались, если в этапе их меньше трёх */
@media (min-width: 900px) { .fields { display: flex; flex-wrap: wrap; } .field { flex: 1 1 0; min-width: 0; } .field--wide { flex-basis: 100%; } }
.field { background: #fff; padding: 16px 18px; }
.field dt {
  margin-bottom: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--steel);
}
.field dt { color: #5d7389; }
.field dd { margin: 0; font-size: 16px; }
.field dd ul { list-style: none; display: grid; gap: 6px; }
.field dd li { position: relative; padding-left: 18px; }
.field dd li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 2px; background: var(--orange); }
.field strong { color: var(--navy); font-weight: 600; }
.note { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--bg-tint); font-size: 15px; color: var(--text-2); }
.result {
  display: inline-block; margin: 12px 0 0; padding: 8px 14px; border-radius: 999px;
  background: var(--navy); color: #fff; font-weight: 600; font-size: 15px;
}

.back { margin-top: 40px; display: flex; justify-content: center; }

/* ---------- сроки ---------- */
.timing__grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1100px) { .timing__grid { grid-template-columns: 1fr 340px; } }

.table-wrap { border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ttable { width: 100%; border-collapse: collapse; font-size: 16px; }
.ttable th, .ttable td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.ttable thead th {
  background: var(--navy); color: #fff; font-size: 13px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
}
.ttable tbody th { font-weight: 600; color: var(--navy); width: 32%; }
@media (min-width: 768px) { .ttable td:nth-of-type(1) { width: 34%; } }
.ttable tbody tr:last-child > * { border-bottom: 0; }
.ttable tbody tr:nth-child(even) { background: #fafcfe; }
.ttable__n { display: inline-block; min-width: 28px; color: var(--orange-ink); font-weight: 700; }

@media (max-width: 767px) {
  .table-wrap { border: 0; border-radius: 0; overflow: visible; }
  .ttable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ttable, .ttable tbody, .ttable tr, .ttable th, .ttable td { display: block; width: auto; }
  .ttable tbody { display: grid; gap: 12px; }
  .ttable tr { border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff !important; overflow: hidden; }
  .ttable tbody th { width: auto; background: var(--bg-tint); }
  .ttable td { border-bottom: 1px solid var(--line); }
  .ttable td::before {
    content: attr(data-label); display: block; margin-bottom: 4px;
    font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #5d7389; font-style: normal;
  }
}

.callouts {
  position: relative; padding: 28px; border-radius: var(--radius);
  background: var(--navy); color: #fff; overflow: hidden;
}
.callouts::after {
  content: ""; position: absolute; right: -24px; top: -24px; width: 96px; height: 96px;
  border: 12px solid var(--sky-2); border-radius: 0; transform: rotate(0); opacity: .35;
}
.callouts__title { color: #fff; font-size: 22px; margin-bottom: 18px; }
.callouts__list { list-style: none; display: grid; gap: 14px; }
.callouts__list li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.5; }
.callouts__list li::before {
  content: "!"; position: absolute; left: 0; top: 1px;
  display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--orange); color: #fff; font-size: 13px; font-weight: 700;
}

/* ---------- ТЗ ---------- */
.tz { padding-top: 0; }
.tz__banner { position: relative; isolation: isolate; padding: 96px 0 72px; margin-bottom: 40px; overflow: hidden; }
.tz__banner img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.tz__banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,51,.86) 0%, rgba(0,0,51,.6) 55%, rgba(0,0,51,.25) 100%); }
.tz__title { color: #fff; max-width: 14em; }
.tz__subtitle { margin: 16px 0 0; font-size: clamp(18px, 1.8vw, 22px); color: var(--sky); font-weight: 500; }

.tz__toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.tz__hint { margin: 0; color: var(--text-2); font-size: 15px; }
.tz__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* две независимые колонки (01–07 и 08–13): раскрытый пункт не растягивает соседний */
.tz__list { display: grid; gap: 12px; }
@media (min-width: 1000px) {
  .tz__list { grid-template-columns: 1fr 1fr; align-items: start; }
}

.req { list-style: none; display: grid; gap: 8px; }
.req li { position: relative; padding-left: 26px; }
.req li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 12px;
  border: 2px solid var(--orange); border-radius: 3px;
}

@media (max-width: 767px) {
  .tz__banner { padding: 64px 0 48px; }
  .tz__actions { width: 100%; }
  .tz__actions .btn { flex: 1; }
}

/* ---------- производство и контакты ---------- */
.factory { display: grid; gap: 32px; align-items: center; margin-bottom: 48px; }
@media (min-width: 1000px) { .factory { grid-template-columns: 1.1fr 1fr; gap: 64px; } }
.factory__text .section__title { margin-bottom: 24px; }
.factory__text p { color: var(--text-2); }
.factory__fact { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.factory__fact-num { font-size: clamp(36px, 4vw, 52px); font-weight: 700; color: var(--navy); letter-spacing: -.03em; line-height: 1; }
.factory__fact-label { color: var(--text-2); }
.factory__img { position: relative; margin: 0; }
.factory__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.factory__img::before {
  content: ""; position: absolute; left: -14px; top: -14px; width: 72px; height: 72px;
  border-left: 10px solid var(--sky-2); border-top: 10px solid var(--sky-2);
}

.dirs { list-style: none; display: grid; gap: 16px; margin-bottom: 48px; }
@media (min-width: 900px) { .dirs { grid-template-columns: repeat(3, 1fr); } }
.dir { padding: 28px; border-radius: var(--radius); background: var(--bg-tint); }
.dir__num { display: block; margin-bottom: 18px; font-size: 14px; font-weight: 700; color: var(--orange-ink); }
.dir__title { font-size: 20px; margin-bottom: 12px; }
.dir p { margin: 0; color: var(--text-2); font-size: 16px; }

.contact-card { padding: 32px; border-radius: var(--radius); background: var(--navy); color: #fff; }
.contact-card__title { color: #fff; font-size: 24px; margin-bottom: 24px; }
.contact-card__list { margin: 0; display: grid; gap: 20px; }
@media (min-width: 900px) { .contact-card__list { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.contact-card dt { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sky-2); margin-bottom: 6px; }
.contact-card dd { margin: 0; font-size: 17px; }
.contact-card a { color: #fff; }
.contact-card a:hover { color: var(--sky); }
.contact-card :focus-visible { outline-color: var(--sky-2); }

@media (max-width: 599px) { .contact-card, .dir { padding: 22px; } }

/* ---------- подвал ---------- */
.footer { background: #00001f; color: rgba(255, 255, 255, .72); font-size: 15px; line-height: 1.5; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: var(--sky); }
.footer :focus-visible { outline-color: var(--sky-2); }

.footer__grid { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 40px; }
@media (min-width: 900px) {
  .footer__grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; padding-top: 64px; }
}
.footer__brand img { width: 120px; margin-bottom: 14px; }
.footer__brand p { margin: 0; max-width: 22em; }

.footer__nav ul { list-style: none; display: grid; gap: 10px; }
.footer__contacts { display: grid; gap: 10px; align-content: start; }
.footer__contacts a { font-weight: 600; }

.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 20px; padding-bottom: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 14px;
}
.footer__top {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; font-weight: 600;
}
.footer__top:hover { border-color: var(--sky); }

@media (max-width: 899px) {
  .footer__nav ul { grid-template-columns: 1fr 1fr; gap: 12px 16px; }
}

/* ---------- движение ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
