/* ============================================================
   БоксПринтер — лендинг
   Токены дизайнера. Нормальный поток, без transform: scale().
   ============================================================ */

@font-face {
  font-family: "Inter Tight"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/landing-assets/fonts/inter-tight-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter Tight"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/landing-assets/fonts/inter-tight-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/landing-assets/fonts/inter-tight-cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter Tight"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/landing-assets/fonts/inter-tight-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

:root {
  --pink: #FD219A;
  --purple: #6F14CA;
  --gradient: linear-gradient(135deg, #FD219A 0%, #6F14CA 100%);

  --text: #000000;
  --muted: #6B6B6B;
  --bg: #FFFFFF;
  --panel: #F4F4F4;
  --pay-border: #F8F8F8;
  --map-border: #F2F2F2;
  --hairline: #E6E6E6;
  --numeral: #DADADA;

  --radius: 5px;
  --pad: 20px;
  --maxw: 402px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter Tight", system-ui, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }

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

/* Контейнер: на мобиле 402px, на десктопе шире */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 44px;               /* комфортная зона нажатия */
  padding: 10px 20px;
  border: 0;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:active { transform: scale(.985); }

.btn-gradient {
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 6px 18px rgba(146, 26, 178, .22);
}
.btn-gradient:hover { box-shadow: 0 8px 24px rgba(146, 26, 178, .3); }

.btn-outline {
  color: var(--text);
  background: #fff;
  border: 1px solid var(--text);
  font-weight: 400;
}
.btn-outline strong { font-weight: 700; }

.btn-white {
  color: var(--text);
  background: #fff;
}

.btn-map {
  color: var(--text);
  background: rgba(252, 252, 252, .10);
  border: 1px solid var(--text);
  backdrop-filter: blur(2px);
}
.btn-map:hover { background: rgba(255, 255, 255, .85); }

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.logo {
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: -.01em;
}
.logo-accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--pink);
}
.nav-desktop { display: none; }

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  align-items: flex-end;
}
.burger span {
  display: block;
  height: 3px;
  border-radius: 3px;
  background: #C9C9C9;
  transition: width .18s ease;
}
.burger span:nth-child(1) { width: 15px; }
.burger span:nth-child(2) { width: 23px; }
.burger span:nth-child(3) { width: 15px; }
.burger:hover span { width: 23px; }

/* ---------- Общая типографика секций ---------- */
h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
}

/* Списки с точками */
.ticks li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.9;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .85em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #C9C9C9;
}

/* ---------- Герой ---------- */
.hero { padding-top: 24px; }
.hero-grid { position: relative; }
.hero h1 {
  position: relative;
  z-index: 2;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.02em;
}
.hero .ticks {
  position: relative;
  z-index: 2;
  margin-top: 18px;
}
.hero .btn { margin-top: 26px; }

.hero-media {
  position: absolute;
  right: -18px;
  top: 34px;
  z-index: 1;
  width: 208px;
  pointer-events: none;
}
.hero-media img { width: 100%; }

/* ---------- Оплата ---------- */
.payment { margin-top: 47px; }             /* отступ из макета */
.payment-copy h2 { font-size: 16px; }
.payment-copy p {
  margin-top: 6px;
  max-width: 30ch;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.pay-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--panel);
}
.pay-chip {
  padding: 8px 14px;
  border: 1px solid var(--pay-border);
  border-radius: var(--radius);
  background: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

/* ---------- Шаги ---------- */
.steps { margin-top: 56px; }
.step-list { margin-top: 20px; }
.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: start;
  padding: 14px 0;
}
.step-num {
  color: var(--numeral);
  font-size: 46px;
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.03em;
}
.step-body h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}
.step-body p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.ready {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-left: 52px;
  font-size: 20px;
  line-height: 1.2;
}
.ready img { flex: none; }

/* ---------- О продукте ---------- */
.about { margin-top: 56px; }
.about-grid { position: relative; }
.about-copy { position: relative; z-index: 2; }
.about .ticks { margin-top: 14px; max-width: 250px; }
.about .ticks li { line-height: 2; }
.price-btn { margin-top: 22px; }

.about-media {
  position: absolute;
  right: 6px;
  bottom: 44px;
  z-index: 1;
  width: 124px;
  pointer-events: none;
}

/* ---------- Карта ---------- */
.map-section { margin-top: 60px; }
.map-lead {
  margin-top: 6px;
  max-width: 26ch;
  font-size: 15px;
  line-height: 1.35;
}
.map-card {
  position: relative;
  margin-top: 18px;
  aspect-ratio: 365 / 162;
  overflow: hidden;
  border: 1px solid var(--map-border);
  border-radius: var(--radius);
  background: #FAFAFA;
}
.map-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Пины — градиентные, из токенов, а не картинкой */
.map-pin {
  position: absolute;
  z-index: 2;
  width: 18px;
  height: 18px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--gradient);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}
.map-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}
.p1 { left: 19%; top: 11%; }
.p2 { left: 73%; top: 11%; }
.p3 { left: 59%; top: 41%; }
.p4 { left: 9%;  top: 56%; }
.p5 { left: 86%; top: 78%; }

.map-card .btn-map {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  min-height: 40px;
  white-space: nowrap;
}
.map-card .btn-map:active { transform: translate(-50%, -50%) scale(.985); }

/* ---------- Партнёрам ---------- */
.partner-section { margin-top: 42px; }     /* отступ из макета */
.partner {
  padding: 26px 20px 28px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--gradient);
}
.partner h2 { font-size: 24px; line-height: 1.2; }
.partner > .partner-copy > p {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.45;
  opacity: .95;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}
.tags li {
  padding: 6px 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .26);
  font-size: 12px;
  line-height: 1.2;
}
.partner .btn-white { margin-top: 22px; width: 100%; }

/* ---------- Подвал ---------- */
.footer {
  margin-top: 56px;
  padding: 26px 0 32px;
  border-top: 1px solid var(--hairline);
  background: #F5F5F5;
}
.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer-legal p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
}
.footer-links a { text-decoration: underline; text-underline-offset: 2px; }
.footer-links a:hover { color: var(--purple); }

/* ---------- Мобильное меню ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, .3);
}
.menu {
  position: fixed;
  z-index: 95;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: min(84vw, 320px);
  height: 100dvh;
  padding: 76px 24px 28px;
  background: #fff;
  box-shadow: -16px 0 48px rgba(0, 0, 0, .16);
  transform: translateX(102%);
  transition: transform .24s ease;
}
.menu.is-open { transform: translateX(0); }
.menu > a:not(.menu-cta) {
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 17px;
  font-weight: 700;
}
.menu-cta { margin-top: auto; }
.menu-close {
  position: absolute;
  top: 16px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 30px;
  line-height: 1;
}
body.is-locked { overflow: hidden; }

/* ---------- Форма заявки ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
}
.modal-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  max-height: 92dvh;
  overflow-y: auto;
  padding: 28px 22px 24px;
  border-radius: var(--radius);
  background: #fff;
}
.modal-card h2 { font-size: 21px; padding-right: 32px; }
.modal-lead {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
}

.field { margin-top: 16px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
}
.field input,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;                 /* 16px и меньше не даёт iOS зумить, 15 безопасно с -webkit-text-size-adjust */
  -webkit-text-size-adjust: 100%;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(111, 20, 202, .12);
}
.field input.is-invalid { border-color: var(--pink); }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
.consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--purple);
}
.consent a {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-error {
  margin-top: 14px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 700;
}
.btn-submit { width: 100%; margin-top: 18px; }
.btn-submit[disabled] { opacity: .6; pointer-events: none; }

.form-done {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--panel);
  font-size: 14px;
  line-height: 1.4;
}
.form-done img { flex: none; }

/* ============================================================
   ДЕСКТОП
   ============================================================ */
@media (min-width: 900px) {
  :root { --maxw: 1120px; --pad: 40px; }

  body { font-size: 16px; }

  .header-inner { min-height: 76px; }
  .logo { font-size: 24px; }
  .burger { display: none; }

  .nav-desktop {
    display: flex;
    gap: 30px;
    font-size: 15px;
  }
  .nav-desktop a { padding: 6px 0; border-bottom: 2px solid transparent; }
  .nav-desktop a:hover { border-bottom-color: var(--pink); }

  h2 { font-size: 38px; }

  /* Герой */
  .hero { padding-top: 60px; }
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 440px;
    align-items: center;
    gap: 40px;
  }
  .hero h1 { font-size: 66px; letter-spacing: -.03em; }
  .hero .ticks { margin-top: 28px; }
  .ticks li { font-size: 18px; }
  .hero .btn { margin-top: 36px; min-height: 54px; font-size: 16px; padding: 14px 34px; }

  .hero-media {
    position: static;
    width: auto;
  }
  .hero-media img { width: 100%; max-width: 440px; margin-left: auto; }

  /* Оплата */
  .payment { margin-top: 90px; }
  .payment-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    align-items: center;
    gap: 48px;
  }
  .payment-copy h2 { font-size: 26px; }
  .payment-copy p { font-size: 14px; margin-top: 10px; }
  .pay-list { margin-top: 0; padding: 18px; gap: 12px; }
  .pay-chip { padding: 12px 22px; font-size: 15px; }

  /* Шаги */
  .steps { margin-top: 110px; }
  .step-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 44px;
  }
  .step {
    display: block;
    padding: 28px 26px;
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
  }
  .step-num { display: block; font-size: 60px; }
  .step-body { margin-top: 14px; }
  .step-body h3 { font-size: 22px; }
  .step-body p { font-size: 15px; margin-top: 8px; }
  .ready {
    justify-content: center;
    margin-top: 44px;
    padding-left: 0;
    font-size: 30px;
  }
  .ready img { width: 32px; height: 32px; }

  /* О продукте */
  .about { margin-top: 110px; }
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    align-items: center;
    gap: 60px;
  }
  .about .ticks { margin-top: 26px; max-width: none; }
  .about .ticks li { line-height: 2.1; }
  .price-btn { margin-top: 32px; min-height: 52px; font-size: 16px; }
  .about-media {
    position: static;
    width: auto;
    justify-self: end;
  }
  .about-media img { width: 100%; max-width: 300px; }

  /* Карта */
  .map-section { margin-top: 110px; }
  .map-lead { font-size: 18px; margin-top: 12px; }
  .map-card {
    margin-top: 32px;
    aspect-ratio: 1120 / 420;
  }
  .map-card .btn-map {
    min-height: 52px;
    padding: 14px 32px;
    font-size: 16px;
  }
  .map-pin { width: 26px; height: 26px; }
  .map-pin::after { width: 9px; height: 9px; }

  /* Партнёрам */
  .partner-section { margin-top: 90px; }
  .partner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 48px;
    padding: 56px 52px;
  }
  .partner h2 { font-size: 42px; }
  .partner > .partner-copy > p { font-size: 17px; margin-top: 18px; }
  .tags { margin-top: 28px; gap: 10px; }
  .tags li { padding: 9px 18px; font-size: 14px; }
  .partner .btn-white {
    width: auto;
    margin-top: 0;
    min-height: 58px;
    padding: 16px 32px;
    font-size: 16px;
  }

  /* Подвал */
  .footer { margin-top: 110px; padding: 40px 0 46px; }
  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
  .footer-legal p { font-size: 13px; }
  .footer-links {
    align-items: flex-end;
    font-size: 13px;
    gap: 9px;
  }

  /* Форма */
  .modal-card { max-width: 460px; padding: 36px 32px 32px; }
}

/* ---------- Уважение к настройкам системы ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* hidden должен перебивать display у флекс-контейнеров */
[hidden] { display: none !important; }
