/* =========================================================
   ZeroIn — in0.ru
   Warm, editorial palette: cream paper, ink text, coral accent.
   No framework, no runtime JS for layout.
   ========================================================= */

:root {
  --bg:          #faf9f5;
  --bg-alt:      #f0eee6;
  --bg-deep:     #1c1b18;
  --ink:         #141413;
  --ink-soft:    #56544d;
  --ink-faint:   #85827a;
  --accent:      #c15f3c;
  --accent-hi:   #d97757;
  --accent-deep: #9c4526;
  --line:        #e3e0d6;
  --line-soft:   #eeebe2;
  --white:       #fffefb;

  --radius:    14px;
  --radius-sm: 9px;
  --maxw:      1160px;
  --gutter:    24px;

  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --shadow-sm: 0 1px 2px rgba(20,20,19,.05), 0 2px 8px rgba(20,20,19,.04);
  --shadow-md: 0 2px 6px rgba(20,20,19,.06), 0 12px 32px rgba(20,20,19,.07);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(60px, 8vw, 108px); }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 660px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__title { font-size: clamp(28px, 4.2vw, 44px); }
.section__lead { margin-top: 16px; color: var(--ink-soft); font-size: clamp(16px, 1.6vw, 19px); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--white);
  padding: 12px 18px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,249,245,.86);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.header--stuck { border-bottom-color: var(--line); box-shadow: 0 1px 12px rgba(20,20,19,.04); }
.header__inner { display: flex; align-items: center; gap: 20px; min-height: 70px; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand__mark { width: 30px; height: 30px; color: var(--accent); flex-shrink: 0; }
.brand__name { font-family: var(--font-serif); font-size: 22px; font-weight: 600; letter-spacing: -.015em; }
.brand__tag { font-size: 13px; color: var(--ink-faint); border-left: 1px solid var(--line); padding-left: 11px; margin-left: 2px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav__link { color: var(--ink-soft); text-decoration: none; font-size: 15px; white-space: nowrap; transition: color .15s ease; }
.nav__link:hover { color: var(--ink); }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
  width: 42px; height: 42px; cursor: pointer; color: var(--ink);
  align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: currentColor;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-sans); font-size: 16px; font-weight: 500; line-height: 1;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-deep); color: var(--white); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--white); border-color: var(--ink-faint); color: var(--ink); }
.btn--sm { padding: 11px 20px; font-size: 15px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(56px, 8vw, 104px) clamp(48px, 6vw, 88px); position: relative; overflow: hidden; }
.hero::after {
  /* soft coral wash, purely decorative */
  content: ""; position: absolute; inset: auto -180px -320px auto;
  width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,119,87,.14) 0%, rgba(217,119,87,0) 68%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 800px; }
.hero__title { font-size: clamp(36px, 6.2vw, 66px); margin-top: 18px; letter-spacing: -.025em; }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__lead { margin-top: 22px; font-size: clamp(17px, 2vw, 21px); color: var(--ink-soft); max-width: 640px; }
.hero__actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__note { margin-top: 16px; font-size: 14.5px; color: var(--ink-faint); }

.stats { margin-top: clamp(44px, 6vw, 68px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg); padding: 24px 22px; }
.stat__value { font-family: var(--font-serif); font-size: clamp(22px, 2.6vw, 29px); color: var(--accent); line-height: 1.1; }
.stat__label { margin-top: 7px; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- cards grid ---------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; display: flex; flex-direction: column;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.card:hover { border-color: #d6d1c2; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__num { font-family: var(--font-serif); font-size: 15px; color: var(--accent); margin-bottom: 14px; }
.card__title { font-size: 21px; }
.card__text { margin-top: 11px; color: var(--ink-soft); font-size: 16px; }
.card__meta { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: 14.5px; color: var(--ink-faint); }

/* ---------- process ---------- */
.steps { display: grid; gap: 0; border-top: 1px solid var(--line); }
.step {
  display: grid; grid-template-columns: 58px 1fr 130px; gap: 26px; align-items: start;
  padding: 28px 4px; border-bottom: 1px solid var(--line);
}
.step__num { font-family: var(--font-serif); font-size: 30px; color: var(--accent); line-height: 1; padding-top: 2px; }
.step__title { font-size: 21px; }
.step__text { margin-top: 8px; color: var(--ink-soft); font-size: 16px; max-width: 62ch; }
.step__term { font-size: 14.5px; color: var(--ink-faint); text-align: right; padding-top: 6px; white-space: nowrap; }

/* ---------- pricing ---------- */
.plan { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; display: flex; flex-direction: column; }
.plan--featured { border-color: var(--accent); box-shadow: var(--shadow-md); position: relative; }
.plan__badge {
  position: absolute; top: -12px; left: 28px;
  background: var(--accent); color: var(--white);
  font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  padding: 5px 13px; border-radius: 999px;
}
.plan__name { font-size: 23px; }
.plan__price { font-family: var(--font-serif); font-size: 31px; color: var(--accent); margin-top: 10px; line-height: 1.1; }
.plan__note { margin-top: 9px; color: var(--ink-faint); font-size: 15px; }
.plan__list { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-soft); display: grid; gap: 11px; flex: 1; }
.plan__list li { position: relative; padding-left: 26px; font-size: 15.5px; color: var(--ink-soft); }
.plan__list li::before {
  content: ""; position: absolute; left: 2px; top: 8px;
  width: 11px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.plan__cta { margin-top: 26px; }
.plan__cta .btn { width: 100%; }

/* ---------- cases ---------- */
.case { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; display: flex; flex-direction: column; }
.case__tag {
  align-self: flex-start; font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--accent); background: rgba(193,95,60,.09); padding: 5px 11px; border-radius: 999px;
}
.case__title { font-size: 20px; margin-top: 16px; }
.case__text { margin-top: 10px; color: var(--ink-soft); font-size: 15.5px; flex: 1; }
.case__result { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-soft); font-weight: 600; color: var(--ink); font-size: 16px; }

/* ---------- faq ---------- */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-family: var(--font-serif); font-size: 19px; font-weight: 600; color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; position: absolute; right: 8px; top: 30px;
  width: 10px; height: 10px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: rotate(-135deg); top: 34px; }
.faq__answer { padding: 0 44px 24px 0; color: var(--ink-soft); font-size: 16.5px; }

/* ---------- contact / form ---------- */
.contact { background: var(--bg-deep); color: #f2f0e9; }
.contact .section__title { color: #fffdf7; }
.contact .section__lead { color: #b9b5a8; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact__aside p { color: #b9b5a8; font-size: 16px; }
.contact__links { margin-top: 26px; display: grid; gap: 12px; }
.contact__link { display: inline-flex; align-items: center; gap: 10px; color: #f2f0e9; text-decoration: none; font-size: 16px; }
.contact__link:hover { color: var(--accent-hi); }

.form { background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.11); border-radius: var(--radius); padding: clamp(24px, 3vw, 34px); }
.field { margin-bottom: 18px; }
.field__label { display: block; font-size: 14.5px; color: #cfcbbe; margin-bottom: 7px; }
.field__req { color: var(--accent-hi); }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 16px; color: #fffdf7;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-sm); padding: 13px 15px;
  transition: border-color .15s ease, background .15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #85827a; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-hi); background: rgba(255,255,255,.08); }
.field textarea { resize: vertical; min-height: 108px; }
.field--invalid input, .field--invalid textarea { border-color: #e0785c; }
.field__error { display: none; margin-top: 6px; font-size: 14px; color: #f0a68e; }
.field--invalid .field__error { display: block; }

.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; gap: 11px; align-items: flex-start; margin: 22px 0 24px; }
.consent input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--accent); flex-shrink: 0; }
.consent label { font-size: 14px; color: #b9b5a8; line-height: 1.55; }
.consent a { color: #e2dfd4; }

.form__submit { width: 100%; }
.form__status { margin-top: 16px; font-size: 15px; display: none; }
.form__status--ok    { display: block; color: #9fd6a8; }
.form__status--error { display: block; color: #f0a68e; }

.form--sent .form__body { display: none; }
.form__done { display: none; text-align: center; padding: 26px 10px; }
.form--sent .form__done { display: block; }
.form__done-mark {
  width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 50%;
  background: rgba(159,214,168,.16); display: grid; place-items: center;
}
.form__done-mark::after {
  content: ""; width: 17px; height: 9px; border-left: 2.5px solid #9fd6a8; border-bottom: 2.5px solid #9fd6a8;
  transform: rotate(-45deg) translate(2px, -3px);
}
.form__done p { color: #d5d1c5; font-size: 16.5px; }

/* ---------- footer ---------- */
.footer { background: var(--bg-alt); padding-block: 54px 34px; border-top: 1px solid var(--line); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__about { margin-top: 16px; color: var(--ink-soft); font-size: 15.5px; max-width: 42ch; }
.footer__hd { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); font-family: var(--font-sans); margin-bottom: 14px; }
.footer__list { display: grid; gap: 10px; }
.footer__list a, .footer__list span { color: var(--ink-soft); text-decoration: none; font-size: 15.5px; }
.footer__list a:hover { color: var(--accent-deep); }
/* ярус «Портфолио» — отдельная полоса под основными столбцами подвала */
.footer__tier { margin-top: 38px; padding-top: 30px; border-top: 1px solid var(--line); }
.footer__tier-hd {
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-faint); font-family: var(--font-sans); margin-bottom: 20px;
}
.footer__tier-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }

.footer__bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between;
  font-size: 14px; color: var(--ink-faint);
}

/* ---------- legal page ---------- */
.legal { padding-block: clamp(48px, 6vw, 84px); }
.legal__body { max-width: 760px; }
.legal__body h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 10px; }
.legal__body h2 { font-size: 21px; margin-top: 36px; }
.legal__body p, .legal__body li { color: var(--ink-soft); font-size: 16.5px; margin-top: 13px; }
.legal__body ul { list-style: disc; padding-left: 22px; margin-top: 8px; }
.legal__body li { margin-top: 8px; }
.legal__meta { color: var(--ink-faint); font-size: 15px; }

/* ---------- 404 ---------- */
.nf { min-height: 62vh; display: grid; place-items: center; text-align: center; padding-block: 80px; }
.nf__code { font-family: var(--font-serif); font-size: clamp(64px, 12vw, 120px); color: var(--accent); line-height: 1; }
.nf__text { margin-top: 14px; color: var(--ink-soft); font-size: 18px; }
.nf__actions { margin-top: 28px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__top,
  .footer__tier-cols { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav {
    position: fixed; inset: 70px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px; display: none; box-shadow: var(--shadow-md);
  }
  .nav[data-open="true"] { display: flex; }
  .nav__link { padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 16.5px; }
  .nav .btn { margin-top: 16px; width: 100%; }
  .nav-toggle { display: inline-flex; }
  .brand__tag { display: none; }

  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .step { grid-template-columns: 40px 1fr; gap: 16px; padding: 22px 2px; }
  .step__term { grid-column: 2; text-align: left; padding-top: 10px; }
  .footer__top,
  .footer__tier-cols { grid-template-columns: 1fr; gap: 30px; }
  .hero::after { display: none; }
}

@media (max-width: 420px) {
  :root { --gutter: 18px; }
  .stats { grid-template-columns: 1fr; }
}

/* ---------- print ---------- */
@media print {
  .header, .nav, .contact, .footer { display: none; }
  body { background: #fff; }
}
