/* ================= Tokens ================= */
:root {
  --blue: #2438c9;          /* фирменное поле и чернила штампа */
  --blue-deep: #1a2a9c;
  --blue-soft: #e9ecfb;
  --on-blue: #ffffff;
  --on-blue-2: #c9d0f7;
  --paper: #ffffff;
  --ink: #0f1115;
  --ink-2: #4b4f5c;
  --ink-3: #8a8fa0;
  --rule: #dcdee6;
  --wip: #b8620a;
  --wip-soft: #fbf0e3;
  --err: #c0262d;

  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --text: "Golos Text", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(20px, 4vw, 56px);
  --measure: 60ch;
}

/* ================= Base ================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, dl, dd, figure { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
h3 { font-weight: 600; font-size: 1.15rem; line-height: 1.3; }

/* Каждый крупный блок сам держит боковые поля */
.top, .hero, .sec, .contact, .foot { padding-inline: var(--gutter); }

/* ================= Header ================= */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 32px;
  height: 60px;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
}
.logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 600;
  font-size: 1.3rem; letter-spacing: 0.04em; line-height: 1;
  color: var(--ink);
}
.logo__it {
  background: var(--blue); color: var(--on-blue);
  padding: 4px 6px 5px;
  letter-spacing: 0.06em;
}
.top__nav { display: flex; gap: 24px; margin-left: auto; }
.top__nav a { color: var(--ink-2); }
.top__nav a:hover { color: var(--blue); }
.top__cta { font-weight: 600; border-bottom: 1.5px solid var(--ink); padding-bottom: 1px; }
.top__cta:hover { color: var(--blue); border-color: var(--blue); }

/* ================= Blue field ================= */
.field { background: var(--blue); color: var(--on-blue); }

/* ================= Hero ================= */
/* Цвета hero собраны здесь: чтобы сделать блок чёрным, поменяйте местами --hero-bg и --hero-fg */
.hero {
  --hero-bg: var(--paper);
  --hero-fg: var(--ink);
  --hero-fg-2: var(--ink-2);
  --hero-accent: var(--blue);
  background: var(--hero-bg);
  color: var(--hero-fg);
  padding-block: 40px 0;
}
.wordmark { line-height: 0; }
.wordmark svg { width: 100%; height: auto; display: block; overflow: visible; }
.wordmark text {
  font-family: var(--display);
  font-weight: 600;
  font-size: 200px;
  fill: var(--hero-fg);
}
.wordmark__it { fill: var(--hero-accent); }
.hero__row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 2px solid var(--hero-fg);
}
.hero__thesis {
  font-size: clamp(1.45rem, 2.7vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 500;
  text-wrap: balance;
}
.hero__aside { display: grid; gap: 18px; color: var(--hero-fg-2); max-width: 36ch; padding-top: 6px; }
.link-arrow { color: var(--hero-fg); font-weight: 600; justify-self: start; border-bottom: 1.5px solid var(--hero-fg); padding-bottom: 2px; }
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { color: var(--hero-accent); border-color: var(--hero-accent); }

.done {
  display: flex; flex-wrap: wrap;
  margin-top: 56px;
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  background: var(--ink);
  font-family: var(--mono); font-size: 0.8rem;
  color: #a9adba;
}
.done li { padding: 14px 28px 14px 0; white-space: nowrap; }
.done b {
  font-weight: 500; color: var(--on-blue);
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.7rem;
  border: 1px solid #a9adba; border-radius: 2px;
  padding: 1px 5px; margin-left: 6px;
}

/* ================= Sections ================= */
.sec { padding-block: 64px 80px; border-top: 1px solid var(--ink); }
.hero + .sec { border-top: 0; }
.sec__title {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 5.2vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0.005em;
  margin-bottom: 40px;
  text-wrap: balance;
}
.sec__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
  gap: 32px 56px;
  align-items: start;
}
.sec__grid--price { grid-template-columns: 1fr; }
.sec__lead { color: var(--ink-2); max-width: 46ch; font-size: 1.05rem; }
.sec__grid--price .sec__lead { max-width: var(--measure); }

/* ---- Work log ---- */
.log { font-family: var(--mono); font-size: 0.85rem; min-width: 0; }
.log__cap {
  display: flex; flex-wrap: wrap; gap: 6px 28px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink-2);
  text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.72rem;
}
.log__cap span:first-child { color: var(--ink); font-weight: 500; }
.log__table { width: 100%; border-collapse: collapse; }
.log__table td {
  padding: 11px 16px 11px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  line-height: 1.45;
}
.log__table td:nth-child(1) { width: 6ch; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.log__table td:nth-child(2) { width: 11ch; color: var(--ink-2); white-space: nowrap; }
.log__table td:nth-child(4) { width: 10ch; padding-right: 0; text-align: right; }
.stamp {
  display: inline-block;
  padding: 2px 7px 1px;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  font-weight: 500;
  white-space: nowrap;
  transform: rotate(-3deg);
}
.stamp--wip { border-color: var(--wip); color: var(--wip); background: var(--wip-soft); border-style: dashed; transform: none; }

/* ---- Modes ---- */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.mode {
  display: grid; gap: 20px; align-content: start;
  grid-template-rows: auto auto 1fr auto;
  padding: 28px 36px 0 0;
}
.mode + .mode { padding-left: 36px; border-left: 1px solid var(--rule); }
.mode h3 {
  font-family: var(--display); font-weight: 500; text-transform: uppercase;
  font-size: 2rem; line-height: 1; color: var(--blue);
}
.mode__what { font-size: 1.08rem; line-height: 1.45; }
.mode ul { display: grid; gap: 8px; color: var(--ink-2); font-size: 0.97rem; }
.mode li { padding-left: 18px; position: relative; }
.mode li::before { content: "—"; position: absolute; left: 0; color: var(--ink-3); }
.mode__pay {
  font-family: var(--mono); font-size: 0.78rem; color: var(--ink-2);
  border-top: 1px solid var(--rule); padding-top: 12px;
}

/* ---- Rows ---- */
.rows { border-top: 1px solid var(--ink); }
.row {
  display: grid;
  grid-template-columns: 16ch minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 8px 40px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.row__t { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.01em; }
.row__x { color: var(--ink-2); }
.row:hover .row__t { color: var(--blue); }

/* ---- Who ---- */
.who { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px 72px; align-items: start; }
.who__yes { display: grid; gap: 24px; }
.who__yes p { color: var(--ink-2); max-width: var(--measure); }
.who__yes .big {
  color: var(--ink);
  font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.22; font-weight: 500;
  letter-spacing: -0.015em; max-width: 26em; text-wrap: balance;
}
.who__no { border-top: 1px solid var(--ink); padding-top: 18px; display: grid; gap: 14px; }
.who__no h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); font-weight: 500; }
.who__no ul { display: grid; gap: 10px; color: var(--ink-2); font-size: 0.97rem; }

/* ---- Steps ---- */
.steps { border-top: 1px solid var(--ink); }
.steps li {
  display: grid;
  grid-template-columns: 16ch 18ch minmax(0, 1fr);
  gap: 6px 40px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.steps__when { font-family: var(--mono); font-size: 0.82rem; color: var(--ink-3); }
.steps h3 { font-size: 1.3rem; font-weight: 500; }
.steps p { color: var(--ink-2); max-width: var(--measure); }

/* ---- Price ---- */
.table-wrap { overflow-x: auto; min-width: 0; }
.price { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 0.98rem; }
.price th, .price td {
  padding: 14px 24px 14px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  text-align: left;
}
.price thead th {
  font-family: var(--display);
  font-size: 1.8rem; font-weight: 500;
  text-transform: uppercase; line-height: 1;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink);
}
.price thead th:nth-child(3) { color: var(--blue); }
.price tbody th { font-weight: 500; color: var(--ink-2); width: 22%; }
.price td { width: 26%; }
.price td.num { font-family: var(--mono); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.price__main td.num { font-size: 1.2rem; font-weight: 500; }
.extra { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 56px; max-width: 1000px; }
.extra > div { border-top: 1px solid var(--ink); padding-top: 14px; display: grid; gap: 6px; }
.extra dt { font-weight: 600; }
.extra dd { color: var(--ink-2); }

/* ---- FAQ ---- */
.faq { border-top: 1px solid var(--ink); max-width: 84ch; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 18px 40px 18px 0;
  font-weight: 500; font-size: 1.1rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 4px; top: 15px;
  font-family: var(--mono); font-size: 1.3rem; color: var(--blue);
}
.faq details[open] summary::after { content: "\2013"; }
.faq summary:hover { color: var(--blue); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: var(--measure); }

/* ================= Contact (blue) ================= */
.contact { padding-block: 64px 80px; display: grid; gap: 36px; }
.contact__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.contact .sec__title { margin-bottom: 0; }
.contact__lead { font-size: clamp(1.3rem, 2.2vw, 1.8rem); line-height: 1.25; font-weight: 500; max-width: 30em; text-wrap: balance; }
.bigstamp {
  flex-shrink: 0;
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: 1.7rem; line-height: 1; letter-spacing: 0.06em;
  text-align: center;
  padding: 14px 20px 12px;
  border: 3px double var(--on-blue);
  outline: 2px solid var(--on-blue); outline-offset: 4px;
  border-radius: 6px;
  transform: rotate(-7deg);
  margin: 10px 16px 0 0;
  opacity: .92;
}
.bigstamp small { display: block; margin-top: 8px; font-family: var(--mono); font-weight: 400; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: lowercase; }
.contacts { display: flex; flex-wrap: wrap; gap: 12px 56px; }
.contacts__big {
  font-family: var(--display); font-weight: 500; text-transform: uppercase;
  font-size: clamp(2.2rem, 5.4vw, 4.4rem);
  line-height: 1.05;
  border-bottom: 3px solid var(--on-blue);
  overflow-wrap: anywhere;
}
.contacts__big:hover { background: var(--on-blue); color: var(--blue); }

.form { display: grid; gap: 24px; max-width: 900px; margin-top: 12px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; }
.field-in { display: grid; gap: 6px; }
.field-in--wide { grid-column: 1 / -1; }
.field-in span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--on-blue-2); }
.field-in input, .field-in textarea {
  width: 100%;
  font: inherit;
  color: var(--on-blue);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--on-blue-2);
  border-radius: 0;
  padding: 8px 0;
}
.field-in textarea { resize: vertical; }
.field-in ::placeholder { color: var(--on-blue-2); opacity: .75; }
.field-in input:focus, .field-in textarea:focus { outline: none; border-bottom: 2px solid var(--on-blue); padding-bottom: 7px; }
.field-in input.is-invalid { border-bottom: 2px dashed var(--on-blue); }
.form__foot { display: grid; grid-template-columns: auto 1fr; gap: 8px 32px; align-items: center; }
.button {
  font: inherit; font-weight: 600;
  background: var(--on-blue); color: var(--blue);
  border: 0; border-radius: 0;
  padding: 14px 36px;
  cursor: pointer;
}
.button:hover { background: var(--ink); color: var(--on-blue); }
.button:disabled { opacity: .6; cursor: default; }
.form__status { font-size: 0.95rem; font-weight: 500; min-height: 1.4em; }
.form__note { grid-column: 1 / -1; font-size: 0.8rem; color: var(--on-blue-2); }
.form__note a { text-decoration: underline; }

/* ================= Footer ================= */
.foot {
  background: var(--ink); color: #a9adba;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 40px;
  padding-block: 28px;
  font-size: 0.88rem;
}
.logo--foot { color: #fff; font-size: 1.15rem; }
.foot__by { color: #fff; }
.foot__by a { border-bottom: 1px solid #a9adba; }
.foot__by a:hover { border-color: #fff; }

/* ================= Responsive ================= */
@media (max-width: 1000px) {
  .sec__grid { grid-template-columns: 1fr; }
  .modes { grid-template-columns: 1fr; border-top: 0; }
  .mode, .mode + .mode { padding: 28px 0; border-left: 0; border-top: 1px solid var(--ink); grid-template-rows: none; }
  .who { grid-template-columns: 1fr; }
  .row { grid-template-columns: 14ch minmax(0, 1fr); }
  .row__x { grid-column: 2; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .top { gap: 20px; }
  .top__nav { display: none; }
  .top__cta { margin-left: auto; }
  .hero { padding-top: 28px; }
  .hero__row { grid-template-columns: 1fr; gap: 24px; margin-top: 24px; }
  .done { margin-top: 40px; }
  .done li { padding-block: 8px; }
  .done li:first-child { padding-top: 14px; }
  .done li:last-child { padding-bottom: 14px; }
  .sec, .contact { padding-block: 44px 56px; }
  .sec__title { margin-bottom: 28px; }
  .log { font-size: 0.78rem; }
  .log__table td:nth-child(2) { display: none; }
  .row { grid-template-columns: 1fr; gap: 6px; }
  .row__x { grid-column: auto; }
  .steps li { grid-template-columns: 1fr; gap: 4px; }
  .extra { grid-template-columns: 1fr; }
  .contact__head { flex-direction: column-reverse; align-items: flex-start; gap: 24px; }
  .bigstamp { font-size: 1.3rem; margin: 6px 0 0 6px; }
  .form__grid { grid-template-columns: 1fr; }
  .form__foot { grid-template-columns: 1fr; }
  .button { width: 100%; }
  .foot { flex-direction: column; align-items: flex-start; }
}
