:root {
  --color-cotton: #EDEBDD;
  --color-cherry: #810100;
  --color-maroon: #630000;
  --color-noir: #1B1717;
  --color-surface: #F7F5ED;
  --color-muted: #655F5A;
  --color-line: #C9C5B9;
  --bg: var(--color-cotton);
  --bg-rgb: 237, 235, 221;
  --surface: var(--color-surface);
  --surface-2: #e6e3d5;
  --deep: var(--color-noir);
  --deep-2: #302727;

  --ink: var(--color-noir);
  --text-2: #35302d;
  --text-3: var(--color-muted);
  --text-4: #736c65;

  --ink-rgb: 27, 23, 23;

  --on-deep: var(--color-cotton);
  --on-deep-2: #e2dcd0;
  --on-deep-3: #c7bcb0;
  --on-deep-4: #b2a699;
  --on-deep-5: #a6988d;

  --line: rgba(var(--ink-rgb), .08);
  --line-2: rgba(var(--ink-rgb), .18);
  --line-deep: rgba(237, 235, 221, .13);
  --line-deep-2: rgba(237, 235, 221, .26);

  --accent: var(--color-cherry);
  --accent-rgb: 129, 1, 0;
  --accent-deep: var(--color-maroon);
  --accent-2: var(--color-cherry);
  --accent-ink: var(--color-surface);

  /* Алиасы под старые имена — чтобы не переписывать каждое использование ниже */
  --cream: var(--bg);
  --white: var(--surface);
  --sand: var(--surface-2);
  --text: var(--ink);
  --d-text: var(--on-deep);
  --d-text-2: var(--on-deep-2);
  --d-text-3: var(--on-deep-3);
  --d-text-4: var(--on-deep-4);
  --d-text-5: var(--on-deep-5);
  --d-line: var(--line-deep);
  --d-line-2: var(--line-deep-2);

  /* Типографика */
  --f-display: "Golos Text", system-ui, sans-serif;
  --f-body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: ui-monospace, SFMono-Regular, Consolas, monospace;

  /* Раскладка */
  --wrap: 1360px;
  --pad: 28px;
  --rhythm: 96px;

  /* Движение */
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* --- Сброс -------------------------------------------------------------- */

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

/* Bebas Neue из Google Fonts грузится только в одном начертании (400) —
   без этого браузер начал бы «дорисовывать» жирность искусственно
   там, где в CSS стоит font-weight:500/600 (а таких мест много). Свойство
   наследуется, ставим один раз на html. */
html { font-synthesis: none; }

html { scroll-behavior: smooth; }

body {
  position: relative;
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--accent-deep); }
.section--dark a:not([class]),
.on-dark a:not([class]) { color: var(--accent); }
::selection { background: var(--deep); color: var(--on-deep); }

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

/* --- Служебное ---------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 0 0 12px 12px;
  background: var(--deep);
  color: var(--on-deep);
  font-weight: 700;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: var(--on-deep); }

/* --- Раскладка ---------------------------------------------------------- */

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.section { padding-top: var(--rhythm); }

.section--dark {
  margin-top: var(--rhythm);
  padding: 84px 0;
  background: var(--deep);
  color: var(--d-text);
}

.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.grid--cards { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* --- Типографика -------------------------------------------------------- */

.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.section--dark .eyebrow,
.on-dark .eyebrow { color: var(--accent); }

.label {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-4);
}
.section--dark .label,
.on-dark .label { color: var(--d-text-5); }

/* Bebas Neue — узкий плакатный шрифт с одним начертанием, так что здесь
   логика противоположна прежней (Unbounded): не сжимаем трекинг, а слегка
   раскрываем его, и даём межстрочью чуть больше воздуха под высокие капы. */
.h1 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(46px, 6vw, 92px);
  line-height: .94;
  letter-spacing: .01em;
  text-wrap: balance;
}

.h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(32px, 3.8vw, 54px);
  line-height: 1;
  letter-spacing: .01em;
  text-wrap: balance;
}

.h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.02;
  letter-spacing: .01em;
}

.h4 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: .01em;
}

.dim { color: var(--text-4); }
.section--dark .dim,
.on-dark .dim { color: var(--on-deep-4); }
.accent { color: var(--accent-2); }
.section--dark .accent,
.on-dark .accent,
.on-dark .accent { color: #e8aa9d; }
.mono { font-family: var(--f-mono); }

.lead {
  font-size: 18px;
  line-height: 1.62;
  color: var(--text-3);
  text-wrap: pretty;
}
.section--dark .lead,
.on-dark .lead { color: var(--d-text-3); }

.body-text {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-3);
  text-wrap: pretty;
}
.section--dark .body-text { color: var(--d-text-3); }

.small { font-size: 14px; line-height: 1.6; color: var(--text-3); }
.section--dark .small { color: var(--d-text-4); }

/* Шапка секции: заголовок слева, ссылка/текст справа */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.section-head__text { max-width: 640px; }
.section-head__aside {
  max-width: 340px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-3);
}

/* --- Кнопки ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 17px 28px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .3s var(--ease), background .25s, color .25s,
              border-color .25s, box-shadow .3s, filter .25s, gap .25s;
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 16px 40px -18px rgba(var(--accent-rgb), .9);
}
.btn--primary:hover {
  color: var(--accent-ink);
  transform: translateY(-3px);
  filter: brightness(1.06);
  box-shadow: 0 26px 54px -18px rgba(var(--accent-rgb), .95);
}

.btn--ink {
  background: var(--deep);
  color: var(--on-deep);
}
.btn--ink:hover {
  background: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: var(--line-2);
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--deep);
  color: var(--on-deep);
  border-color: var(--deep);
  gap: 15px;
}

.btn--ghost-light {
  border-color: var(--d-line-2);
  color: var(--d-text);
}
.btn--ghost-light:hover {
  background: rgba(246, 242, 236, .1);
  color: var(--d-text);
  transform: translateY(-3px);
  gap: 15px;
}

.btn--sm { padding: 15px 24px; font-size: 14.5px; }
.btn--xs { padding: 12px 20px; font-size: 14px; }
.btn--block { display: flex; width: 100%; padding: 14px; }

.btn--phone {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 14.5px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  transition: gap .25s var(--ease), color .25s;
}
.link-arrow:hover { gap: 14px; color: var(--accent-2); }
.link-arrow .mono { font-family: var(--f-mono); }
.on-dark .link-arrow { color: var(--d-text); }
.on-dark .link-arrow:hover { color: var(--accent); }

/* --- Карточки ----------------------------------------------------------- */

.card {
  padding: 26px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 50px -34px rgba(18, 16, 14, .5);
  border-color: rgba(var(--accent-rgb), .4);
}

.card--ink {
  background: var(--deep);
  color: var(--d-text);
  border-color: var(--deep);
}
.card--ink:hover {
  border-color: var(--deep);
  box-shadow: 0 30px 50px -30px rgba(18, 16, 14, .8);
}
.card--ink p { color: var(--d-text-3); }

.card--flat { padding: 30px; border-radius: 20px; }
.card--flat:hover { transform: none; box-shadow: none; border-color: var(--line); }

.card__num { font-family: var(--f-mono); font-size: 11px; color: var(--accent-2); }
.card--ink .card__num { color: var(--accent); }
.card__title { margin-top: 22px; }
.card__text { margin-top: 10px; font-size: 14.5px; line-height: 1.6; color: var(--text-3); }

/* Карточка-услуга с фото */
.svc-card {
  display: block;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--d-line);
  color: var(--d-text);
  transition: transform .35s var(--ease), border-color .35s;
}
.svc-card:hover { transform: translateY(-6px); color: var(--d-text); border-color: rgba(var(--accent-rgb), .45); }
.svc-card figure { margin: 0; height: 210px; overflow: hidden; }
.svc-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.svc-card:hover img { transform: scale(1.06); }
.svc-card__body { padding: 24px; }
.svc-card__price { font-family: var(--f-mono); font-size: 11px; color: var(--accent-2); }
.svc-card__title {
  margin-top: 12px;
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 500;
}
.svc-card__text { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--d-text-4); }

/* Карточка-призыв в сетке услуг */
.svc-card--cta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
  background: rgba(var(--accent-rgb), .16);
  border-color: rgba(var(--accent-rgb), .35);
}
.svc-card--cta .svc-card__title { font-size: 22px; letter-spacing: .01em; line-height: 1.15; margin-top: 14px; }
.svc-card--cta p { margin-top: 12px; font-size: 14.5px; line-height: 1.6; color: var(--d-text-2); }

/* --- Тарифы ------------------------------------------------------------- */

.plan {
  padding: 28px;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.plan:hover { transform: translateY(-8px); box-shadow: 0 36px 60px -40px rgba(18, 16, 14, .55); }

.plan--featured {
  position: relative;
  background: var(--deep);
  color: var(--d-text);
  border-color: var(--deep);
  box-shadow: 0 40px 70px -44px rgba(18, 16, 14, .7);
}
.plan--sand { background: var(--sand); }

.plan__badge {
  position: absolute;
  top: 22px; right: 22px;
  padding: 5px 11px;
  border-radius: 100px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.plan__name {
  font-family: var(--f-display);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: .01em;
}
.plan__desc {
  margin-top: 10px;
  min-height: 66px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-3);
}
.plan--featured .plan__desc { color: var(--d-text-3); }

.plan__price { margin-top: 14px; display: flex; align-items: baseline; gap: 7px; }
.plan__price b {
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: .015em;
}
.plan__price span { font-size: 13px; color: var(--text-4); }
.plan--featured .plan__price span { color: var(--d-text-4); }
.plan--featured .plan__price b { color: var(--on-deep); }

.plan__list {
  margin-top: 22px;
  display: grid;
  gap: 9px;
  font-size: 14px;
  color: var(--text-2);
}
.plan--featured .plan__list { color: var(--d-text-2); }
.plan__list li { display: flex; gap: 9px; }
.plan__list li::before { content: "—"; color: var(--accent-2); }

.plan .btn { margin-top: 24px; }

/* --- Работы ------------------------------------------------------------ */

.work-showcase__head .h2 { margin-top: 12px; }

.work-showcase__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.work-showcase__picker { min-width: 0; }
.work-showcase__label {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
}
.work-showcase__tabs {
  display: grid;
  gap: 10px;
}

.work-tab {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 12px 8px 8px;
  text-align: left;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  transition: background .22s, border-color .22s, color .22s;
}
.work-tab img {
  width: 68px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
}
.work-tab__text { display: grid; gap: 4px; }
.work-tab__title { font-size: 14px; line-height: 1.35; font-weight: 600; }
.work-tab__kind { font-size: 12px; color: var(--text-3); }
.work-tab__arrow {
  color: var(--accent);
  transition: transform .24s var(--ease);
}
.work-tab:hover { border-color: var(--accent); }
.work-tab:hover .work-tab__arrow { transform: translate(2px, -2px); }
.work-tab[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.work-tab[aria-selected="true"] :is(.work-tab__arrow, .work-tab__kind) { color: var(--accent-ink); }

.work-panel__visual { --split: 50%; }
.ba__frame {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: clamp(12px, 2vw, 22px);
  overflow: hidden;
  isolation: isolate;
  background: var(--sand);
}
.ba__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba__before { clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.ba__divider {
  position: absolute;
  inset-block: 0;
  left: var(--split);
  width: 2px;
  background: var(--surface);
  translate: -50% 0;
  pointer-events: none;
}
.ba__handle {
  position: absolute;
  top: 50%;
  left: clamp(24px, var(--split), calc(100% - 24px));
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .3);
  font-size: 21px;
  line-height: 1;
  pointer-events: none;
}
.is-interactive .ba__handle { display: grid; }
.ba__tag {
  position: absolute;
  top: 12px;
  padding: 5px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
  transition: opacity .18s ease;
}
.ba__tag--before { left: 12px; background: var(--deep); color: var(--on-deep); }
.ba__tag--after { right: 12px; background: var(--surface); color: var(--ink); }
[data-ba-view="before"] .ba__tag--after,
[data-ba-view="after"] .ba__tag--before { opacity: 0; }

.is-interactive:not(.is-dragging) .ba__before { transition: clip-path .34s var(--ease); }
.is-interactive:not(.is-dragging) :is(.ba__divider, .ba__handle) { transition: left .34s var(--ease); }

.ba__range {
  --thumb-size: 44px;
  position: absolute;
  inset-block: 0;
  left: calc(var(--thumb-size) / -2);
  width: calc(100% + var(--thumb-size));
  height: 100%;
  margin: 0;
  appearance: none;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}
.ba__range::-webkit-slider-thumb {
  appearance: none;
  width: var(--thumb-size);
  height: var(--thumb-size);
}
.ba__range::-moz-range-thumb {
  width: var(--thumb-size);
  height: var(--thumb-size);
  border: 0;
}
.ba__frame:has(.ba__range:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.ba__tools {
  display: flex;
  width: fit-content;
  max-width: 100%;
  gap: 2px;
  margin: 12px auto 0;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  background: var(--surface);
}
.ba__tools[hidden] { display: none; }
.ba__view {
  padding: 6px clamp(12px, 2vw, 18px);
  min-height: 36px;
  border: 0;
  border-radius: 100px;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.ba__view:hover { color: var(--accent); }
.ba__view[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

.work-panel__info {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}
.work-panel__kind { margin-bottom: 5px; font-size: 13px; color: var(--accent); }
.work-panel__title {
  font-size: clamp(21px, 2.3vw, 31px);
  font-weight: 500;
  line-height: 1.13;
}
.work-panel__specs {
  display: grid;
  grid-template-columns: repeat(3, auto);
  width: fit-content;
  gap: 10px clamp(14px, 2.2vw, 30px);
}
.work-panel__specs dt { margin-bottom: 5px; font-size: 12px; color: var(--text-3); }
.work-panel__specs dd { font-size: clamp(14px, 1.5vw, 19px); font-weight: 600; }

.work-panel.is-entering .work-panel__visual { animation: work-panel-in .38s var(--ease) both; }
.work-panel.is-entering .work-panel__info { animation: work-panel-in .36s var(--ease) .045s both; }
@keyframes work-panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 850px) {
  .work-showcase__layout:has(.work-showcase__picker:not([hidden])) {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 30%);
    gap: clamp(24px, 3vw, 44px);
    align-items: start;
  }
  .work-showcase__picker { grid-row: 1; grid-column: 2; }
  .work-showcase__panels { grid-row: 1; grid-column: 1; }
  .work-panel__info {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
}

@media (max-width: 849px) {
  .work-showcase__tabs {
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px, 1fr);
    overflow-x: auto;
    padding: 6px;
    margin: -6px;
    scrollbar-width: thin;
  }
}

@media (max-width: 500px) {
  .work-showcase__head { align-items: start; gap: 14px; }
  .work-showcase__head .h2 { margin-top: 6px; }
  .ba__frame { aspect-ratio: 4 / 3; }
}

/* Фото-плитка */
.shot {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
}
.shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.shot:hover img { transform: scale(1.06); }
.shot figcaption {
  position: absolute;
  left: 16px; bottom: 16px;
  padding: 8px 14px;
  border-radius: 100px;
  background: rgba(18, 16, 14, .72);
  color: var(--on-deep);
  font-size: 13px;
}

/* --- Этапы -------------------------------------------------------------- */

.steps { margin-top: 52px; display: grid; gap: 14px; }

.step {
  display: grid;
  grid-template-columns: 66px minmax(240px, 1fr) minmax(180px, 280px);
  gap: 26px;
  align-items: center;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--d-line);
  background: rgba(246, 242, 236, .03);
  transition: background .35s, transform .35s var(--ease);
}
.step:hover { background: rgba(246, 242, 236, .07); transform: translateX(8px); }

.step__num {
  font-family: var(--f-display);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: .02em;
  color: rgba(246, 242, 236, .22);
}
.step__meta {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent);
}
.step__title {
  margin-top: 9px;
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: .01em;
}
.step__text {
  margin-top: 9px;
  max-width: 620px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--d-text-3);
}
.step img { width: 100%; height: 150px; object-fit: cover; border-radius: 14px; }

@media (max-width: 900px) {
  .step { grid-template-columns: 52px 1fr; gap: 16px; }
  .step img { grid-column: 1 / -1; height: 190px; }
  .step:hover { transform: none; }
}

/* --- Полоса-призыв ------------------------------------------------------ */

.callout {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
  border-radius: 20px;
  background: rgba(var(--accent-rgb), .14);
  border: 1px solid rgba(var(--accent-rgb), .35);
}
.callout__title {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: .01em;
}

/* --- Формы -------------------------------------------------------------- */

.form { margin-top: 20px; display: grid; gap: 10px; }

.form input {
  padding: 15px 16px;
  border-radius: 12px;
  border: 1px solid rgba(246, 242, 236, .22);
  background: rgba(246, 242, 236, .06);
  color: var(--d-text);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .25s, background .25s;
}
.form input::placeholder { color: var(--d-text-5); }
.form input:focus { border-color: var(--accent); background: rgba(246, 242, 236, .1); }
.form input[type="tel"] { font-family: var(--f-mono); }

.form button {
  padding: 16px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .25s, filter .25s;
}
.form button:hover { transform: translateY(-2px); filter: brightness(1.08); }

.form__consent { font-size: 11.5px; line-height: 1.5; color: var(--d-text-5); }

.form-done {
  margin-top: 20px;
  padding: 18px;
  border-radius: 14px;
  background: rgba(47, 159, 157, .14);
  border: 1px solid rgba(47, 159, 157, .5);
}
.form-done__title {
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--teal-light);
}
.form-done p { margin-top: 8px; font-size: 13.5px; line-height: 1.55; color: #c8c0b5; }

[hidden] { display: none !important; }

/* --- Гарантии ----------------------------------------------------------- */

.fear__title {
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--text-4);
}
.fear__text { margin-top: 14px; font-size: 15.5px; line-height: 1.65; color: var(--text-2); }
.chip {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border-radius: 100px;
  background: rgba(47, 159, 157, .12);
  color: var(--teal-deep);
  font-size: 13px;
  font-weight: 600;
}

/* --- Команда ------------------------------------------------------------ */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 34px;
  align-items: center;
}
.split__media { margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }

.people { margin-top: 26px; display: grid; gap: 10px; }
.people li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform .3s, border-color .3s;
}
.people li:hover { transform: translateX(6px); border-color: rgba(var(--accent-rgb), .45); }
.people__avatar {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--deep);
  color: var(--on-deep);
  font-family: var(--f-display);
  font-size: 16px;
}
.people__body { flex: 1; }
.people__body b { font-size: 15.5px; }
.people__role { color: var(--text-4); font-size: 14px; }
.people__note { font-size: 13.5px; color: var(--text-3); }

/* --- Отзывы ------------------------------------------------------------- */

.quote {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
  padding: 30px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.quote:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -36px rgba(18, 16, 14, .5); }
.quote--ink { background: var(--deep); color: var(--d-text); border-color: var(--deep); }
.quote--ink:hover { box-shadow: 0 30px 50px -30px rgba(18, 16, 14, .8); }

.quote__mark {
  font-family: var(--f-display);
  font-size: 34px;
  line-height: .6;
  color: var(--accent-2);
}
.quote__text { flex: 1; font-size: 15.5px; line-height: 1.68; color: var(--text-2); }
.quote--ink .quote__mark { color: var(--accent); }
.quote--ink .quote__text { color: var(--d-text-2); }

.quote footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.quote--ink footer { border-top-color: rgba(246, 242, 236, .14); }
.quote__avatar {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--sand);
  font-family: var(--f-display);
  font-size: 15px;
}
.quote--ink .quote__avatar { background: rgba(246, 242, 236, .12); }
.quote__name { font-size: 14.5px; }
.quote__meta { font-size: 13px; color: var(--text-4); }
.quote--ink .quote__meta { color: var(--d-text-4); }

/* --- FAQ ---------------------------------------------------------------- */

.faq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 56px;
  align-items: start;
}
.faq__aside { position: sticky; top: 110px; }
.faq__list { display: grid; gap: 10px; }

.faq__item {
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
}
.faq__q {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 22px 24px;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}
.faq__q > span:first-child {
  flex: 1;
  font-family: var(--f-display);
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: .01em;
}
.faq__icon {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(var(--ink-rgb), .06);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 17px;
  transition: transform .4s var(--ease), background .3s, color .3s;
}
.faq__q[aria-expanded="true"] .faq__icon {
  background: var(--accent);
  color: var(--accent-ink);
  transform: rotate(135deg);
}
.faq__a {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .5s var(--ease), opacity .35s ease;
}
.faq__item.is-open .faq__a { max-height: 420px; opacity: 1; }
.faq__a p { padding: 0 24px 24px; font-size: 15px; line-height: 1.68; color: var(--text-3); }

/* --- Контакты ----------------------------------------------------------- */

.contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 22px;
  padding: 44px;
  border-radius: 26px;
  background: var(--sand);
  border: 1px solid var(--line);
}
@media (max-width: 620px) { .contacts { padding: 28px 22px; } }

.contacts__list { margin-top: 28px; display: grid; gap: 12px; font-size: 15px; }
.contacts__list li { display: flex; gap: 12px; }
.contacts__list li > span:first-child { font-family: var(--f-mono); color: var(--text-4); }
.contacts__list a { color: var(--ink); }
.contacts__list a:hover { color: var(--accent-2); }

.contacts__messengers { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }

.contacts__form {
  padding: 32px;
  border-radius: 20px;
  background: var(--deep);
  color: var(--d-text);
  align-self: start;
}
.contacts__form h3 {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: .01em;
}
.contacts__form > p { margin-top: 9px; font-size: 14px; color: var(--d-text-4); }

/* --- Подвал ------------------------------------------------------------- */

.site-footer {
  margin-top: var(--rhythm);
  padding: 72px 0 32px;
  background: var(--deep);
  color: var(--d-text);
}

.site-footer__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(246, 242, 236, .14);
}
.site-footer__cta h2 {
  max-width: 640px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1.04;
  letter-spacing: .015em;
}
.site-footer__cta div { display: flex; flex-wrap: wrap; gap: 12px; }

.site-footer__cols {
  padding-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 32px;
}
.site-footer__brand {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .01em;
}
.site-footer__brand .brand__logo { height: 22px; color: var(--accent); }
.site-footer__about {
  margin-top: 14px;
  max-width: 320px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--d-text-4);
}
.site-footer__col-title {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--d-text-5);
}
.site-footer ul { margin-top: 16px; display: grid; gap: 9px; font-size: 14px; }
.site-footer ul a { color: var(--d-text-2); }
.site-footer ul a:hover { color: var(--accent); }
.site-footer ul li.is-plain { color: var(--d-text-4); }

.site-footer__legal {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(246, 242, 236, .1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  font-size: 12.5px;
  color: var(--d-text-5);
}
.site-footer__legal a { color: var(--d-text-5); }
.site-footer__legal a:hover { color: var(--accent); }

/* --- Внутренние страницы ------------------------------------------------ */

.page-hero {
  position: relative;
  padding: 76px 0 64px;
  background: var(--deep);
  color: var(--d-text);
  overflow: hidden;
}
.page-hero__inner { position: relative; max-width: 860px; }
.page-hero .h2 { margin-top: 18px; }
.page-hero__lead { margin-top: 22px; max-width: 640px; font-size: 17.5px; line-height: 1.62; color: var(--d-text-3); }
.page-hero__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--d-text-5);
}
.crumbs a { color: var(--d-text-5); }
.crumbs a:hover { color: var(--accent); }

.stat-strip {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
  padding-top: 26px;
  border-top: 1px solid rgba(246, 242, 236, .14);
}
.stat-strip b {
  display: block;
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: .015em;
}
.stat-strip span { display: block; margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--d-text-4); }

/* Таблица цен */
.price-table {
  margin-top: 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--white);
  overflow: hidden;
}
.price-table__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  background: var(--sand);
}
.price-table__head h3 { font-family: var(--f-display); font-size: 18px; font-weight: 500; letter-spacing: .01em; }
.price-table__head span { font-family: var(--f-mono); font-size: 12px; color: var(--text-4); }

.price-table table { width: 100%; border-collapse: collapse; }
.price-table th,
.price-table td {
  padding: 14px 26px;
  text-align: left;
  font-size: 14.5px;
  border-top: 1px solid var(--line);
}
.price-table th {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--text-4);
}
.price-table td:last-child,
.price-table th:last-child { text-align: right; white-space: nowrap; font-family: var(--f-mono); }
.price-table tbody tr:hover { background: rgba(var(--accent-rgb), .05); }
.price-table__scroll { overflow-x: auto; }

/* На узком экране цена важнее воздуха — поджимаем поля, чтобы
   таблица помещалась целиком и колонку с ценой не приходилось искать */
@media (max-width: 620px) {
  .price-table__head { flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 16px; }
  .price-table th,
  .price-table td { padding: 12px 16px; font-size: 13.5px; }
  .price-table td:nth-child(2) { font-size: 12.5px; color: var(--text-4); }
}

/* Компактная тройка цифр внутри блока */
.mini-stats {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.mini-stats b {
  display: block;
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: .015em;
}
.mini-stats span { display: block; margin-top: 6px; font-size: 13.5px; color: var(--text-3); }

/* Цифры под карточкой кейса */
.case-figures {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--d-line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.case-figures b {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .01em;
}
.case-figures span { font-family: var(--f-mono); font-size: 12px; color: var(--accent-2); }

/* Фильтр портфолио */
.filters { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  padding: 11px 20px;
  border-radius: 100px;
  border: 1px solid var(--d-line-2);
  background: transparent;
  color: var(--d-text-2);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.filter:hover { background: rgba(246, 242, 236, .1); }
.filter[aria-pressed="true"] {
  background: var(--on-deep);
  color: var(--deep);
  border-color: var(--on-deep);
}
.filters__count {
  margin-top: 16px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--d-text-5);
}

/* Кейс в портфолио */
.cases { display: grid; gap: 20px; }

.case {
  display: grid;
  grid-template-columns: minmax(280px, 460px) 1fr;
  border-radius: 24px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.case:hover { transform: translateY(-5px); box-shadow: 0 40px 70px -46px rgba(18, 16, 14, .55); }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; } }

.case__media { position: relative; margin: 0; min-height: 280px; }
.case__media img { width: 100%; height: 100%; object-fit: cover; }
.case__media figcaption {
  position: absolute;
  left: 16px; top: 16px;
  padding: 6px 13px;
  border-radius: 100px;
  background: rgba(18, 16, 14, .78);
  color: var(--on-deep);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.case__body { display: flex; flex-direction: column; gap: 16px; padding: 34px; }
.case__code {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.case__title {
  font-family: var(--f-display);
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.14;
}
.case__text { font-size: 15px; line-height: 1.65; color: var(--text-3); }

.case__specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.case__specs dt {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-4);
}
.case__specs dd {
  margin: 6px 0 0;
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .01em;
}
.case__specs dd.is-good { color: var(--teal-deep); }

.case__chips { display: flex; flex-wrap: wrap; gap: 7px; }
.case__chips li {
  padding: 6px 12px;
  border-radius: 100px;
  background: var(--sand);
  font-size: 12.5px;
  color: var(--text-2);
}

.case__body .link-arrow { margin-top: auto; }

/* Карточка сметы */
.estimate {
  padding: 30px;
  border-radius: 22px;
  background: var(--deep);
  color: var(--d-text);
}
.estimate__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--d-line);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--d-text-4);
}
.estimate__rows { margin-top: 18px; display: grid; gap: 11px; font-size: 14.5px; }
.estimate__rows li { display: flex; justify-content: space-between; gap: 16px; }
.estimate__rows span { color: var(--d-text-3); }
.estimate__rows b { font-family: var(--f-mono); font-weight: 400; white-space: nowrap; }
.estimate__total {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--d-line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.estimate__total span { font-size: 14px; color: var(--d-text-4); }
.estimate__total b {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: .015em;
  color: var(--on-deep);
}
.estimate__aux {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13.5px;
  color: var(--d-text-4);
}
.estimate__aux b { font-family: var(--f-mono); font-weight: 400; color: var(--d-text-2); }

/* Материалы / список фактов */
.facts { display: grid; gap: 10px; }
.facts li {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
}
.facts li > span:first-child { font-family: var(--f-mono); font-size: 12px; color: var(--accent-2); flex-shrink: 0; }
.on-dark .facts li { background: rgba(246, 242, 236, .04); border-color: var(--d-line); color: var(--d-text-2); }

/* Карточки статей блога */
.post {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.post:hover {
  color: var(--ink);
  transform: translateY(-6px);
  box-shadow: 0 30px 50px -34px rgba(18, 16, 14, .5);
  border-color: rgba(var(--accent-rgb), .4);
}
.post figure { margin: 0; height: 200px; overflow: hidden; }
.post img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post:hover img { transform: scale(1.06); }
.post__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 24px; }
.post__meta { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }
.post__title { font-family: var(--f-display); font-size: 18px; font-weight: 500; letter-spacing: .01em; line-height: 1.25; }
.post__excerpt { flex: 1; font-size: 14.5px; line-height: 1.6; color: var(--text-3); }
.post__more { font-size: 14px; font-weight: 700; color: var(--accent-2); }

/* Вакансии */
.vacancy {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(180px, 260px) auto;
  gap: 24px;
  align-items: center;
  padding: 24px 26px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.vacancy:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb), .4);
  box-shadow: 0 26px 44px -34px rgba(18, 16, 14, .5);
}
.vacancy__title { font-family: var(--f-display); font-size: 19px; font-weight: 500; letter-spacing: .01em; }
.vacancy__text { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: var(--text-3); }
.vacancy__pay { font-family: var(--f-mono); font-size: 16px; color: var(--ink); }
.vacancy__pay span { display: block; margin-top: 6px; font-family: var(--f-body); font-size: 13px; color: var(--text-4); }
@media (max-width: 860px) {
  .vacancy { grid-template-columns: 1fr; gap: 16px; }
}

/* Документы */
.docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.doc {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform .3s var(--ease), border-color .3s;
}
.doc:hover { transform: translateY(-4px); border-color: rgba(var(--accent-rgb), .4); }
.doc__num { font-family: var(--f-mono); font-size: 11px; color: var(--accent-2); }
.on-dark .doc__num { color: var(--accent); }
.doc__title { font-family: var(--f-display); font-size: 16px; font-weight: 500; letter-spacing: .01em; }
.doc__text { font-size: 14px; line-height: 1.6; color: var(--text-3); }

/* Таймлайн «о компании» */
.timeline { display: grid; gap: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 26px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline__year {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: .015em;
  color: var(--accent-2);
}
.timeline__title { font-family: var(--f-display); font-size: 18px; font-weight: 500; letter-spacing: .01em; }
.timeline__text { margin-top: 8px; font-size: 15px; line-height: 1.65; color: var(--text-3); max-width: 720px; }
@media (max-width: 620px) {
  .timeline li { grid-template-columns: 1fr; gap: 10px; }
}

/* --- Появление при скролле ---------------------------------------------- */

.reveal-ready [data-reveal] {
  transition: opacity .56s var(--ease), transform .56s var(--ease);
}
.reveal-ready [data-reveal]:not(.is-visible, :focus-within) {
  opacity: 0;
  transform: translateY(16px);
}

/* --- Уважение к настройкам движения ------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal-ready [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* --- Печать ------------------------------------------------------------- */

@media print {
  .site-header { display: none; }
  .reveal-ready [data-reveal] { opacity: 1 !important; transform: none !important; }
  body { background: #fff; }
}

/* Интерфейс по макету курсового проекта. */
.site-header {
  position: relative;
  z-index: 10;
}
.site-header__inner {
  width: min(90%, 1440px);
  margin-inline: auto;
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--color-line);
}
.brand { color: var(--ink); flex-shrink: 0; }
.editorial-brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  line-height: 1;
}
.editorial-brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--color-cherry);
  color: var(--color-surface);
  font-size: 33px;
  font-weight: 750;
  line-height: 1;
  padding-block-end: 5px;
}
.editorial-brand__mark small {
  position: absolute;
  top: 3px;
  right: 4px;
  font-size: 14px;
  line-height: 1;
}
.editorial-brand__name {
  display: block;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -.065em;
}
.editorial-brand__tag {
  display: block;
  margin-top: 7px;
  font-size: 8px;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.site-nav {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.7vw, 28px);
}
.site-nav a, .mobile-nav a {
  font-size: 13px;
  font-weight: 550;
  color: var(--ink);
}
.site-nav a:hover, .site-nav a[aria-current="page"], .mobile-nav a:hover { color: var(--color-cherry); }
.site-header__cta { white-space: nowrap; padding-inline: 20px; font-size: 13px; }
.site-header__cta span, .editorial-hero__actions a span { font-size: 19px; line-height: 1; }
.site-header__cta, .editorial-hero__actions .btn { border-radius: 40px; box-shadow: none; }
.burger, .mobile-nav { display: none; }

.editorial-hero.wrap {
  width: min(90%, 1440px);
  max-width: none;
  padding: 40px 0 0;
}
.editorial-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(36px, 4.9vw, 80px);
  align-items: start;
}
.editorial-hero__copy { padding-top: 15px; min-width: 0; container-type: inline-size; }
.editorial-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.editorial-hero__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--color-cherry);
  border-radius: 50%;
}
.editorial-hero__title {
  margin: 23px 0 0;
  font-family: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  font-weight: 1000;
  font-size: clamp(54px, 17.1cqw, 130px);
  text-transform: uppercase;
  line-height: 1.04;
  letter-spacing: -.028em;
  word-spacing: .09em;
}
.editorial-hero__title > span { display: block; }
.editorial-hero__title .editorial-hero__title-line { font-size: .88em; }
.editorial-hero__title .editorial-hero__script {
  margin-top: .19em;
  color: var(--color-cherry);
  font-family: "Great Vibes", Georgia, cursive;
  text-transform: none;
  font-size: .72em;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0;
}
.editorial-hero__script b {
  font: 700 .65em/1 var(--f-body);
  display: inline-block;
  vertical-align: 12%;
  transform: rotate(-14deg);
}
.editorial-hero__lead {
  max-width: 445px;
  margin-top: clamp(22px, 2.6vw, 38px);
  color: var(--color-muted);
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.65;
}
.editorial-hero__actions {
  margin-top: clamp(23px, 2.5vw, 36px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 30px;
}
.editorial-hero__actions .btn { padding-inline: 27px; gap: 28px; font-size: 14px; }
.editorial-hero__secondary {
  align-items: center;
  display: inline-flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 45px;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
}
.editorial-hero__secondary:hover { color: var(--color-cherry); }
.editorial-hero__contents {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 35px;
  padding-top: 15px;
  border-top: 1px solid var(--color-line);
}
.editorial-hero__contents a {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 550;
}
.editorial-hero__contents a:hover { color: var(--color-cherry); }
.editorial-hero__contents a span {
  color: var(--color-muted);
  font-size: 10px;
  letter-spacing: .18em;
}
.editorial-hero__figure { margin: 0; }
.editorial-hero__photo {
  position: relative;
  aspect-ratio: .94;
}
.editorial-hero__photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 28% 28px 28px 28px;
}
.editorial-hero__tag {
  position: absolute;
  top: 28px;
  right: 24px;
  padding: 11px 16px;
  border-radius: 100px;
  background: var(--color-surface);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}
.editorial-hero__callout {
  position: absolute;
  bottom: 6.3%;
  left: -4.5%;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  padding: 25px;
  width: min(240px, 72%);
  min-height: 110px;
  border-radius: 32px 13px 32px 13px;
  background: var(--color-cherry);
  color: var(--color-surface);
  text-transform: uppercase;
  font-weight: 550;
  line-height: 1.25;
}
.editorial-hero__callout:hover { background: var(--color-maroon); color: var(--color-surface); }
.editorial-hero__callout > span:last-child { font-size: 30px; line-height: 1; }
.editorial-hero__figure figcaption {
  text-align: end;
  margin-top: 12px;
  color: var(--color-muted);
  font-size: 10px;
}
.editorial-hero__demo {
  margin-top: clamp(28px, 3.05vw, 50px);
  border-block: 1px solid var(--color-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  padding-block: 17px;
  font-size: 12px;
  color: var(--color-muted);
}
.editorial-hero__demo strong {
  color: var(--color-cherry);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.editorial-hero + .section { padding-top: clamp(100px, 10vw, 155px); }

@media (max-width: 1000px) {
  .site-header__inner { flex-wrap: wrap; justify-content: space-between; gap: 0 16px; }
  .site-nav, .site-header__cta { display: none; }
  .burger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    border-radius: 99px;
    border: 1px solid var(--color-line);
    padding: 0 15px;
    background: transparent;
    color: var(--ink);
    font: 600 13px var(--f-body);
    cursor: pointer;
  }
  .burger span { width: 18px; height: 10px; border-block: 2px solid currentColor; }
  .site-header.is-open .mobile-nav {
    width: 100%;
    display: grid;
    padding: 0 0 14px;
    gap: 1px;
  }
  .mobile-nav a { padding: 11px 0; }
}
@media (max-width: 720px) {
  .site-header__inner { width: calc(100% - 36px); min-height: 73px; }
  .editorial-brand__mark { width: 34px; height: 34px; border-radius: 8px; font-size: 28px; }
  .editorial-brand__name { font-size: 19px; }
  .editorial-brand__tag { margin-top: 6px; font-size: 7px; }
  .editorial-hero.wrap { width: calc(100% - 36px); padding-top: 24px; }
  .editorial-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 29px; }
  .editorial-hero__copy { padding-top: 0; }
  .editorial-hero__eyebrow { font-size: 10px; }
  .editorial-hero__title { font-size: clamp(43px, 18.75cqw, 113px); margin-top: 21px; line-height: 1.18; }
  .editorial-hero__title .editorial-hero__script { margin-top: .25em; font-size: 1em; }
  .editorial-hero__lead { margin-top: 26px; max-width: 500px; }
  .editorial-hero__actions { display: grid; gap: 2px; }
  .editorial-hero__actions .btn { justify-content: space-between; width: 100%; padding: 16px 24px; text-align: left; }
  .editorial-hero__secondary { border-bottom: 1px solid var(--color-line); }
  .editorial-hero__contents { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 14px; border-top: 0; margin-top: 27px; padding-top: 0; }
  .editorial-hero__contents a { border-top: 1px solid var(--color-line); padding-top: 13px; }
  .editorial-hero__photo img { border-radius: 28% 22px 22px 22px; }
  .editorial-hero__tag { top: 18px; right: 14px; padding: 9px 12px; font-size: 10px; }
  .editorial-hero__callout { left: 0; min-height: 84px; width: auto; padding: 15px 20px; font-size: 13px; }
  .editorial-hero__demo { align-items: flex-start; flex-direction: column; }
  .editorial-hero + .section { padding-top: 80px; }
}

.editorial-estimate {
  background: var(--color-cherry);
  color: var(--color-surface);
  padding: clamp(50px, 7vw, 105px) 0;
  margin-top: var(--rhythm);
}
.editorial-estimate__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(30px, 5.5vw, 88px);
}
.editorial-estimate__title {
  margin: 14px 0 23px;
  font-size: clamp(48px, 5.8vw, 90px);
  font-weight: 650;
  line-height: .95;
  letter-spacing: -.07em;
  text-transform: uppercase;
}
.editorial-estimate__title span { color: #e2bdb3; }
.editorial-estimate__intro p { max-width: 385px; }
.editorial-estimate__eyebrow, .editorial-estimate__result-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.editorial-estimate__note {
  color: #f2d2ca;
  margin-top: clamp(24px, 6.5vw, 88px);
  padding: 20px 0;
  border-top: 1px solid #b76055;
  font-size: 13px;
}
.estimate-form {
  display: grid;
  gap: 19px;
  background: var(--color-surface);
  color: var(--ink);
  padding: clamp(17px, 3vw, 40px);
  border-radius: 24px;
}
.estimate-form label:not(.estimate-form__row, .estimate-form__consent) {
  display: grid;
  gap: 6px;
  font-weight: 550;
  font-size: 14px;
}
.estimate-form input:not([type="checkbox"]), .estimate-form select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--color-line);
  border-radius: 11px;
  background: transparent;
  color: var(--ink);
  font: inherit;
}
.estimate-form select { padding-inline-end: 23px; }
.estimate-form__included { font-size: 14px; }
.estimate-form__included p { color: var(--color-muted); margin: 6px 0; }
.estimate-form__included ul { list-style: none; padding: 0; }
.estimate-form__included li { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.estimate-form__included li::before { content: "✓"; color: var(--color-cherry); }
.estimate-form__works { border: 0; min-width: 0; padding: 0; }
.estimate-form__works legend { font-size: 12px; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; }
.estimate-form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 98px;
  align-items: center;
  gap: 14px;
  padding-block: 11px;
  border-bottom: 1px solid var(--color-line);
  font-size: 14px;
}
.estimate-form__row[hidden] { display: none; }
.estimate-form__row small { display: block; color: var(--color-muted); margin-top: 4px; }
.estimate-form__row input { text-align: center; }
.editorial-estimate__result { border-radius: 16px; background: var(--bg); padding: 20px 24px; }
.editorial-estimate__result output {
  display: block;
  font-size: clamp(27px, 3vw, 40px);
  font-weight: 750;
  line-height: 1.3;
  margin: 2px 0 7px;
  font-variant-numeric: tabular-nums;
}
.editorial-estimate__result p { color: var(--color-muted); font-size: 12px; }
.estimate-form__lead { display: grid; gap: 13px; }
.estimate-form__consent { display: flex; gap: 8px; align-items: start; font-size: 13px; }
.estimate-form__consent input { margin: 4px 0 0; }
.estimate-form__error { color: var(--color-maroon); font-size: 13px; }
.estimate-form__error:empty { display: none; }
@media (max-width: 850px) {
  .editorial-estimate__grid { grid-template-columns: minmax(0, 1fr); }
}

.estimate-form__included li[hidden] { display: none; }
.form .form__consent { display: flex; align-items: start; gap: 8px; }
.form .form__consent input[type="checkbox"] { width: auto; margin: 2px 0 0; }
.estimate-form__details summary { cursor: pointer; font-size: 14px; min-height: 36px; }
.estimate-form__details label { margin-top: 10px; }
.estimate-form__details textarea { padding: 10px 12px; background: transparent; color: var(--ink); border: 1px solid var(--color-line); border-radius: 11px; font: inherit; }
