/* ============================================================
   Личный сайт — директор по маркетингу
   Референс: dribbble.com/shots/24978876 (Wolfpixel) — светлый
   редакционный минимализм, крупная лёгкая гротеска, вырезанное
   фото, гигантское призрачное слово на фоне.
   Акцент #314E6A взят пипеткой из джинсов на самой фотографии.
   ============================================================ */

:root {
  --paper:        #EDEDEA;
  --surface:      #FFFFFF;
  --ink:          #15181B;
  --ink-2:        #565C63;
  --ink-3:        #63696F;
  --rule:         #D5D5D0;
  --accent:       #314E6A;
  --accent-hover: #223A50;
  --ghost:        rgba(21, 24, 27, .052);

  --font-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --font-body:    "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gut:   clamp(20px, 4.5vw, 72px);
  --stack: clamp(64px, 11vh, 140px);
  --ease:  cubic-bezier(.22, .61, .36, 1);
}

/* ── база ─────────────────────────────────────────────────── */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ── общие примитивы ──────────────────────────────────────── */

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 30px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), transform .22s var(--ease);
}

.btn--primary {
  background: var(--accent);
  color: #FFFFFF;
}
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  border-color: var(--rule);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--ink); }

.btn--wide { width: 100%; }

/* ── шапка ────────────────────────────────────────────────── */

.topbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: clamp(16px, 4vw, 48px);
  padding: 26px var(--gut);
}

.topbar__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 0;
}

.topbar__nav {
  display: flex;
  gap: clamp(16px, 2.6vw, 34px);
  margin-left: auto;
}

.topbar__nav a {
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  padding: 11px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.topbar__nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }

.topbar__cta {
  min-height: 44px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.topbar__cta:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ── герой ────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 5vh, 56px) var(--gut) 0;
}

.hero__ghost {
  position: absolute;
  left: 50%;
  bottom: -.2em;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(56px, 11.4vw, 176px);
  font-weight: 200;
  letter-spacing: -.02em;
  line-height: 1;
  white-space: nowrap;
  color: var(--ghost);
  pointer-events: none;
  user-select: none;
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) minmax(0, .82fr);
  align-items: end;
  gap: clamp(16px, 3vw, 48px);
  max-width: 1420px;
  margin: 0 auto;
  min-height: min(70vh, 680px);
}

.hero__side {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--rule);
}

.hero__vertical {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

.hero__copy { padding-bottom: clamp(28px, 6vh, 72px); }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 56px);
  margin: 0 0 clamp(28px, 5vh, 54px);
  padding: 0 0 20px;
  border-bottom: 1px solid var(--rule);
  list-style: none;
}

.facts__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}

.facts__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(13px, 1.25vw, 16px);
  font-weight: 300;
  letter-spacing: -.01em;
  color: var(--ink);
}

.hero__title {
  margin: 0 0 clamp(20px, 3.5vh, 34px);
  font-family: var(--font-display);
  font-size: clamp(38px, 6.6vw, 104px);
  font-weight: 200;
  line-height: .98;
  letter-spacing: -.035em;
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__sub {
  max-width: 46ch;
  margin: 0 0 clamp(26px, 4.5vh, 42px);
  font-size: clamp(15px, 1.35vw, 17px);
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-2);
}

.hero__photo {
  position: relative;
  align-self: end;
  justify-self: end;
  width: auto;
  max-width: 100%;
}

.hero__photo img {
  width: auto;
  height: min(70vh, 680px);
  max-width: 100%;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 26px 46px rgba(21, 24, 27, .13));
}

.hero__scroll {
  position: relative;
  z-index: 2;
  display: inline-block;
  padding: 22px 0 30px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.hero__scroll:hover { color: var(--ink); }

/* ── секции ───────────────────────────────────────────────── */

.section {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 90px);
  max-width: 1420px;
  margin: 0 auto;
  padding: var(--stack) var(--gut);
  border-top: 1px solid var(--rule);
}

.section__head { position: relative; }

.section__title {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 54px);
  font-weight: 200;
  line-height: 1.06;
  letter-spacing: -.03em;
}

.lead {
  max-width: 58ch;
  margin: 0 0 clamp(32px, 5vh, 54px);
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink);
}

/* спец-таблица «ключ → значение», как в техническом паспорте */
.spec { margin: 0; }

.spec__row {
  display: grid;
  grid-template-columns: minmax(110px, 150px) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 40px);
  padding: 26px 0;
  border-top: 1px solid var(--rule);
}
.spec__row:last-child { border-bottom: 1px solid var(--rule); }

.spec__key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.5;
}

.spec__val {
  margin: 0;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-2);
}

.spec__val strong {
  font-weight: 500;
  color: var(--ink);
}

/* ── ниши ─────────────────────────────────────────────────── */

.niches {
  margin: 0;
  padding: 0;
  list-style: none;
}

.niche {
  display: grid;
  grid-template-columns: minmax(150px, 260px) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 40px);
  align-items: baseline;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}
.niche:last-child { border-bottom: 1px solid var(--rule); }

.niche__name {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 300;
  letter-spacing: -.02em;
  color: var(--ink);
}

.niche__note {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-2);
}

/* ── консультация ─────────────────────────────────────────── */

.consult {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 4vw, 56px);
}

@media (min-width: 1080px) {
  .consult { grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); }
}

.benefits {
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefit {
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}
.benefit:last-child { border-bottom: 1px solid var(--rule); }

.benefit__title {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}

.benefit__text {
  display: block;
  max-width: 54ch;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-2);
}

.cta-card {
  align-self: start;
  padding: clamp(26px, 3vw, 36px);
  background: var(--surface);
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(21, 24, 27, .05), 0 18px 40px rgba(21, 24, 27, .07);
}

.cta-card__text {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -.02em;
}

.cta-card__note {
  margin: 14px 0 0;
  font-size: 13px;
  font-weight: 300;
  color: var(--ink-3);
}

/* ── подвал ───────────────────────────────────────────────── */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  max-width: 1420px;
  margin: 0 auto;
  padding: 34px var(--gut) 46px;
  border-top: 1px solid var(--rule);
}

.footer__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
}

.footer__role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ── модальная форма ──────────────────────────────────────── */

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 24, 27, .45);
  backdrop-filter: blur(3px);
  animation: fade .22s var(--ease);
}

.modal__dialog {
  position: relative;
  width: min(100%, 440px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: clamp(28px, 4vw, 40px);
  background: var(--surface);
  border-radius: 4px;
  box-shadow: 0 24px 70px rgba(21, 24, 27, .28);
  animation: rise .28s var(--ease);
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: var(--ink-3);
  cursor: pointer;
  transition: color .2s var(--ease);
}
.modal__close:hover { color: var(--ink); }

.modal__title {
  margin: 14px 0 26px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.field { margin-bottom: 20px; }

.field__label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.field__input {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field__input:hover { border-color: var(--ink-3); }
.field__input:focus {
  border-color: var(--accent);
  background: var(--surface);
  outline: 2px solid rgba(49, 78, 106, .22);
  outline-offset: 0;
}
.field__input[aria-invalid="true"] { border-color: #B3261E; }

.field__error {
  margin: 8px 0 0;
  font-size: 13px;
  color: #B3261E;
}
.field__error[hidden] { display: none; }

.form__consent {
  margin: 16px 0 0;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink-3);
}
.form__consent a { color: var(--ink-2); }

.form-done { text-align: center; padding: 12px 0; }
.form-done[hidden] { display: none; }

.form-done svg { margin: 0 auto 18px; color: var(--accent); }

.form-done__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 300;
  letter-spacing: -.02em;
}

.form-done__text {
  margin: 0 0 24px;
  font-size: 14px;
  font-weight: 300;
  color: var(--ink-2);
}

@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ── адаптив ──────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, .78fr);
    min-height: 0;
  }
  .hero__side { display: none; }
  .hero__photo img { height: min(58vh, 540px); }
  .section { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; row-gap: 12px; }
  .topbar__nav { order: 3; width: 100%; margin-left: 0; }
  .topbar__cta { margin-left: auto; }

  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__copy { order: 1; padding-bottom: 0; }
  .hero__photo {
    order: 2;
    justify-self: center;
    margin-top: 30px;
  }
  .hero__photo img { height: min(52vh, 430px); }
  .hero__ghost { font-size: clamp(64px, 23vw, 170px); }

  .spec__row,
  .niche {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .niche { align-items: start; }
}

/* ── меньше движения ──────────────────────────────────────── */

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