/* ==========================================================
   Borweld — страница «Профессионалы»
   Референс подачи: Daylight Computer (basement.studio, Awwwards SOTD)
   Мотив: размерные линии и Ø из логотипа
   ========================================================== */

:root {
  --ink: #0e0f11;
  --ink-2: #17191c;
  --ink-3: #23262a;
  --paper: #f3f1ec;
  --paper-2: #e9e6df;
  --white: #ffffff;
  --muted: #6b6f75;
  --muted-light: rgba(255, 255, 255, .62);
  --line: rgba(14, 15, 17, .12);
  --line-light: rgba(255, 255, 255, .16);
  --accent: #2f63d6;          /* синий корпуса Borweld */
  --accent-hover: #4277ea;

  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }

.wrap { width: 100%; padding: 0 var(--gutter); }
@media (min-width: 1000px) { :root { --gutter: 60px; } }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 56px; padding: 0 28px;
  border: 0; border-radius: 4px;
  font: 600 16px/1 var(--font);
  color: var(--white); background: var(--ink);
  cursor: pointer;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--accent); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--small { height: 40px; padding: 0 20px; font-size: 14px; white-space: nowrap; background: rgba(255,255,255,.08); color: var(--white); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.btn--small:hover { background: rgba(255,255,255,.16); }
@media (max-width: 400px) { .btn--small { padding: 0 14px; font-size: 13px; } }
.btn--wide { width: 100%; }
.btn__arrow { transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
/* Кнопка с иконкой Enter: текст слева, иконка справа */
.btn--enter { justify-content: space-between; gap: 24px; padding: 0 20px 0 24px; background: var(--white); color: var(--ink); }
.btn--enter:hover { background: #e9e7e2; }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--ink-3); }
.btn__enter { flex: none; transition: transform .3s var(--ease); }
.btn--enter:hover .btn__enter { transform: translateX(3px); }

/* ---------- Подписи разделов ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--light { color: var(--muted-light); }
.eyebrow .idx {
  display: inline-grid; place-items: center;
  min-width: 34px; height: 22px; padding: 0 6px;
  border: 1px solid currentColor; border-radius: 4px;
}
.eyebrow .eu-flag { flex: none; height: .73em; width: auto; aspect-ratio: 3 / 2; } /* высота = высота прописных подписи */
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(47, 99, 214, .25); }

.h2 {
  font-size: clamp(32px, 5.2vw, 72px);
  line-height: 1.02; letter-spacing: -.035em; font-weight: 600;
  max-width: 20ch;
  text-wrap: balance;
}

/* ---------- Шапка ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  height: 72px; padding: 0 var(--gutter);
  color: var(--white);
  transition: background .4s var(--ease), backdrop-filter .4s, height .4s var(--ease);
}
.header.is-solid { background: rgba(14, 15, 17, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); height: 64px; }
.logo { display: block; aspect-ratio: 1167 / 298; overflow: visible; }
.header__logo .logo { height: 36px; width: auto; transition: height .4s var(--ease); }
.header.is-solid .header__logo .logo { height: 28px; }
@media (min-width: 1100px) { .header__logo .logo { height: 46px; } .header.is-solid .header__logo .logo { height: 32px; } }
.header__nav { display: none; gap: 28px; margin-left: auto; font-size: 14px; }
.header__nav a { opacity: .78; transition: opacity .2s; }
.header__nav a:hover { opacity: 1; }
.header__phone { display: none; font-size: 14px; font-weight: 500; }
.header__phone span { opacity: .55; margin-left: 4px; }
.header .btn--small { margin-left: auto; }

@media (min-width: 1240px) {
  .header__nav { display: flex; }
  .header__phone { display: block; }
  .header .btn--small { margin-left: 0; }
}

/* ---------- 1. Первый экран ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--white); background: var(--ink);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; will-change: transform; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(14,15,17,.5) 0%, rgba(14,15,17,0) 60%),
    linear-gradient(180deg, rgba(14,15,17,.55) 0%, rgba(14,15,17,0) 22%),
    linear-gradient(0deg, rgba(14,15,17,.92) 0%, rgba(14,15,17,.55) 38%, rgba(14,15,17,.08) 70%);
}
.hero__content {
  --hero-title: clamp(32px, min(4.2vw, 8vh), 64px);
  display: grid; gap: 28px; align-items: end;
  padding-top: 104px; padding-bottom: clamp(32px, 6vh, 64px);
}
.hero__title {
  margin-top: 18px; margin-left: -.075em; /* компенсация пустого поля слева у «М»: буква встаёт на линию логотипа */
  font-size: var(--hero-title);
  line-height: 1; letter-spacing: -.02em; font-weight: 600; text-transform: uppercase;
  max-width: 14em;
  text-wrap: balance;
}
.hero__lead {
  font-size: clamp(15px, 1.2vw, 17px); line-height: 1.45;
  color: rgba(255,255,255,.78);
}
.hero__cta { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 16px; }
.hero__cta-note { font: 400 12px/1.3 var(--mono); color: var(--muted-light); }
.hero__scroll { display: none; }

/* Две колонки: на десктопе и на телефоне в горизонтальном положении.
   Низ кнопки стоит на базовой линии последней строки заголовка. */
@media (min-width: 1000px), (orientation: landscape) and (min-width: 640px) {
  .hero__content { grid-template-columns: 1fr minmax(280px, 400px); gap: clamp(32px, 5vw, 64px); }
  .hero__side { padding-bottom: calc(var(--hero-title) * .18); } /* высота нижнего выносного элемента шрифта */
  /* Правая колонка шире, чтобы подзаголовок встал в две строки; верх правого блока тянется к подписи слева, левая часть не двигается */
  .hero__content { grid-template-columns: 1fr minmax(280px, 480px); align-items: stretch; }
  .hero__main { display: flex; flex-direction: column; justify-content: flex-end; }
  .hero__side { display: flex; flex-direction: column; justify-content: space-between; }
  .hero__lead { margin-top: -.3em; } /* убирает межстрочный воздух над первой строкой */
  .hero__cta { align-items: stretch; }
  .hero__cta .btn { width: 100%; }
}

/* ---------- Преимущества ---------- */
.advantages { padding: clamp(16px, 2vw, 24px) 0 0; }
.adv { display: grid; gap: 12px; }
.adv__item {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 20px;
  padding: 20px;
  border-radius: 8px;
  background: linear-gradient(160deg, #ffffff 0%, #f7f5f1 100%);
  border: 1px solid rgba(14, 15, 17, .06);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 24px 48px -32px rgba(14, 15, 17, .35);
}
.adv__icon {
  grid-row: span 3;
  display: grid; place-items: center;
  width: 88px; height: 88px; border-radius: 8px;
  background: linear-gradient(145deg, #f4f2ee 0%, #e2ded6 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 6px rgba(14,15,17,.06), 0 10px 20px -12px rgba(14,15,17,.35);
}
.adv__icon img { width: 72px; height: 72px; transition: transform .8s var(--ease); }
.adv__item:hover .adv__icon img { transform: translateY(-4px) rotate(-4deg); }
.adv__label { color: var(--muted); font-size: 11px; }
.adv__value {
  font-size: clamp(30px, 3.2vw, 48px); font-weight: 600; letter-spacing: -.035em; line-height: 1;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.adv__value small { font-size: .45em; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.adv__text { color: var(--muted); font-size: 15px; line-height: 1.45; }

@media (min-width: 900px) {
  .adv { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .adv__item { grid-template-columns: 1fr; align-items: start; align-content: start; gap: 8px; padding: 28px; }
  .adv__icon { grid-row: auto; width: 112px; height: 112px; margin-bottom: 28px; }
  .adv__icon img { width: 88px; height: 88px; }
  .adv__text { margin-top: 8px; max-width: 34ch; }
}

/* ---------- Разделы ---------- */
.section { padding: clamp(80px, 12vw, 168px) 0; }
.section--tight { padding-top: 0; }
.section--dark { background: var(--ink); color: var(--white); }
.section--paper { background: var(--paper-2); }
.section__head { display: grid; gap: 20px; justify-items: start; margin-bottom: clamp(36px, 5vw, 72px); }

/* ---------- 2. Видео ---------- */
.film {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  aspect-ratio: 4 / 5;
}
@media (min-width: 700px) { .film { aspect-ratio: 16 / 9; } }
.film__video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease); }
.film.is-in .film__video { transform: scale(1); }
.film__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 8px;
  padding: 72px 24px 22px;
  font-size: clamp(16px, 1.6vw, 20px); font-weight: 500; color: var(--white);
  background: linear-gradient(0deg, rgba(14,15,17,.75), transparent);
}
.film__caption .mono { color: #ff6b5a; display: inline-flex; align-items: center; gap: 8px; }
.film__caption .mono::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.film__sound {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 44px; height: 44px; border-radius: 4px;
  display: grid; place-items: center;
  color: var(--white); background: rgba(14,15,17,.45); border: 1px solid var(--line-light);
  backdrop-filter: blur(8px); cursor: pointer;
}

/* ---------- 3. Производство ---------- */
.gallery { display: grid; gap: 12px; }
.gallery figure { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption {
  position: absolute; left: 14px; bottom: 14px;
  padding: 7px 12px; border-radius: 4px;
  font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--white); background: rgba(14,15,17,.55); backdrop-filter: blur(8px);
}
.gallery__main { aspect-ratio: 4 / 3; }
.gallery__side { aspect-ratio: 16 / 10; }

@media (min-width: 900px) {
  .gallery { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; }
  .gallery__main { grid-row: span 2; aspect-ratio: auto; min-height: 560px; }
  .gallery__side { aspect-ratio: auto; }
}

.steps { display: grid; gap: 0; margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.step { display: grid; align-content: start; grid-template-columns: 48px 1fr; gap: 6px 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.step__num { color: var(--accent); padding-top: 6px; }
.step__title { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.step p { grid-column: 2; color: var(--muted); max-width: 36ch; }

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
  .step { grid-template-columns: 1fr; padding: 28px 32px 32px 0; border-bottom: 0; }
  .step + .step { padding-left: 32px; border-left: 1px solid var(--line); }
  .step p { grid-column: 1; }
  .step__num { padding-top: 0; margin-bottom: 28px; }
}

/* ---------- 4. Гарантия ---------- */
.warranty { display: grid; gap: 40px; }
.warranty__big { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 0 20px; }
.warranty__num {
  font-size: clamp(160px, 26vw, 360px); line-height: .78; font-weight: 600; letter-spacing: -.07em;
  color: var(--white);
}
.warranty__unit { font-size: clamp(22px, 2.6vw, 34px); line-height: 1.05; font-weight: 600; letter-spacing: -.02em; padding-bottom: .4em; }
.warranty__for {
  grid-column: 1 / -1; margin-top: 24px; padding-top: 14px;
  color: var(--muted-light); border-top: 1px solid var(--line-light);
}

.cards { display: grid; gap: 12px; }
.card {
  padding: 26px 24px 28px;
  border-radius: var(--radius);
  background: var(--ink-2); border: 1px solid var(--line-light);
  transition: background .4s var(--ease), border-color .4s;
}
.card:hover { background: var(--ink-3); border-color: rgba(255,255,255,.28); }
.card__title { font-size: 20px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 10px; }
.card p { color: var(--muted-light); }

@media (min-width: 700px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) {
  .warranty { grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
  .card { min-height: 200px; }
}

.footnote { margin-top: 40px; color: var(--muted); line-height: 1.6; text-transform: none; letter-spacing: 0; font-size: 13px; }
.section--dark .footnote { color: var(--muted-light); }

/* ---------- 5. Модели ---------- */
.models { display: grid; gap: 12px; }
.model {
  position: relative; display: flex; flex-direction: column;
  padding: 28px 24px;
  border-radius: var(--radius); background: var(--white);
  border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.model:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(14,15,17,.25); }
.model--featured { background: var(--ink); color: var(--white); border-color: var(--ink); }
.model__badge {
  position: absolute; top: 24px; right: 24px;
  padding: 6px 10px; border-radius: 4px;
  background: var(--accent); color: var(--white); font-size: 11px;
}
.model__name { font-size: clamp(30px, 3vw, 40px); font-weight: 600; letter-spacing: -.035em; line-height: 1; }
.model__price { margin-top: 14px; font: 400 13px/1 var(--mono); color: var(--muted); }
.model__price span { font: 600 24px/1 var(--font); letter-spacing: -.02em; color: var(--ink); margin-right: 4px; }
.model--featured .model__price { color: var(--muted-light); }
.model--featured .model__price span { color: var(--white); }
.model__specs { margin: 28px 0 32px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.model--featured .model__specs { border-color: var(--line-light); }
.model__specs dt { font: 500 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
.model__specs dt:first-child { margin-top: 0; }
.model--featured .model__specs dt { color: var(--muted-light); }
.model__specs dd { font-size: 16px; line-height: 1.45; }
.model__link { margin-top: auto; font-weight: 600; font-size: 15px; color: var(--accent); }
.model--featured .model__link { color: #8fb0ff; }

@media (min-width: 900px) { .models { grid-template-columns: repeat(3, 1fr); gap: 16px; } .model { padding: 36px 32px; } }

.kit { display: grid; gap: 0; margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.kit__col { padding: 24px 0; border-bottom: 1px solid var(--line); }
.kit__title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.kit__col p { color: var(--muted); }
@media (min-width: 900px) {
  .kit { grid-template-columns: repeat(3, 1fr); }
  .kit__col { padding: 28px 32px 28px 0; }
  .kit__col + .kit__col { padding-left: 32px; border-left: 1px solid var(--line); }
}

/* ---------- 6. Заявка ---------- */
.request { display: grid; gap: 40px; }
.form { display: grid; gap: 12px; }
.field { display: grid; gap: 8px; }
.field__label { font: 500 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field__label em { font-style: normal; text-transform: none; letter-spacing: 0; opacity: .8; }
.field input, .field textarea {
  width: 100%; padding: 16px 18px;
  font: 400 17px/1.4 var(--font); color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 4px;
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(47,99,214,.15); }
.field.is-error input { border-color: #d6452f; }
.field--file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.field__file-ui {
  display: flex; align-items: center; gap: 12px;
  padding: 18px; border: 1px dashed rgba(14,15,17,.3); border-radius: 4px;
  color: var(--muted); cursor: pointer; transition: border-color .2s, color .2s;
}
.field__file-ui:hover, .field--file input:focus + .field__file-ui { border-color: var(--accent); color: var(--accent); }
.form .btn { margin-top: 8px; }
.form__status { min-height: 1.4em; font-size: 14px; color: var(--muted); }

.get { padding: 32px 28px; border-radius: var(--radius); background: var(--ink); color: var(--white); align-self: start; }
.get__title { font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 24px; }
.get__list { counter-reset: g; display: grid; gap: 20px; }
.get__list li { counter-increment: g; display: grid; grid-template-columns: 36px 1fr; gap: 2px 12px; }
.get__list li::before { content: "0" counter(g); grid-row: span 2; font: 500 12px/1.9 var(--mono); color: #8fb0ff; }
.get__list strong { font-size: 18px; font-weight: 600; }
.get__list span { color: var(--muted-light); font-size: 15px; }
.get__note { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-light); font-size: 14px; color: var(--muted-light); }

@media (min-width: 1000px) { .request { grid-template-columns: 1.3fr 1fr; gap: 64px; } .get { padding: 40px; } }

/* ---------- Подвал ---------- */
.footer { background: var(--ink); color: var(--white); padding: 72px 0 32px; }
.footer__grid { display: grid; gap: 32px; }
.footer__logo { width: 180px; height: auto; }
.footer__col { display: grid; gap: 6px; align-content: start; color: rgba(255,255,255,.82); }
.footer__col a:hover { color: var(--white); }
.footer__label { color: var(--muted-light); margin-bottom: 6px; }
.footer__bottom { position: relative; display: flex; justify-content: space-between; margin-top: 64px; padding-top: 20px; color: var(--muted-light); }
.footer__bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--line-light); }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- Липкая кнопка (телефон) ---------- */
.sticky-cta {
  position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; border-radius: 4px;
  font-weight: 600; color: var(--white); background: var(--accent);
  box-shadow: 0 16px 32px -12px rgba(47,99,214,.6);
  transform: translateY(140%); transition: transform .5s var(--ease);
}
.sticky-cta.is-visible { transform: none; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* ---------- Появление при скролле ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll span, .film__caption .mono::before { animation: none; }
}
