/* ==========================================================================
   RAFFA — corp.raffa.ru
   Corporate supply landing page. One type family, document-like structure.
   ========================================================================== */

:root {
  --ink: #1b2114;
  --green: #444c31;
  --green-deep: #2c331f;
  --orange: #e56946;
  --orange-deep: #c24b28;
  --paper: #f6f4ef;
  --white: #ffffff;
  --line: #ddd8cc;
  --line-soft: #ece8de;
  --muted: #6b7260;
  --muted-dark: #aeb6a2;
  --body: #39402f;
  --error: #a3311d;
  --ok: #3f6b3a;
  --radius: 2px;
  --container: 1240px;
  --header-h: 88px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Golos Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

table {
  border-collapse: collapse;
}

::selection {
  background: var(--green);
  color: #fff;
}

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px -26px rgba(27, 33, 20, 0.55);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  flex: none;
  text-decoration: none;
}

.brand img {
  width: 198px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.nav__link {
  position: relative;
  padding: 6px 0;
  color: var(--body);
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.nav__link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease);
}

.nav__link:hover::after,
.nav__link:focus-visible::after {
  transform: scaleX(1);
}

.header-contact {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-left: 8px;
  text-align: right;
  white-space: nowrap;
}

.header-contact__mail {
  color: var(--green);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.header-contact__mail:hover {
  text-decoration: underline;
}

.header-contact__phone {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.header-contact__phone:hover {
  color: var(--orange-deep);
}

.site-header .btn {
  min-height: 46px;
  padding: 11px 18px;
  font-size: 15px;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.menu-toggle .icon {
  width: 22px;
  height: 22px;
}

.menu-toggle__close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__close {
  display: block;
}

.mobile-nav {
  display: none;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.18s var(--ease),
    border-color 0.18s var(--ease),
    color 0.18s var(--ease);
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.btn--primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}

.btn--primary:hover {
  background: #ed7a58;
  border-color: #ed7a58;
}

.btn--primary:active {
  background: var(--orange-deep);
  border-color: var(--orange-deep);
}

.btn--outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn--outline:hover {
  border-color: var(--green);
}

.btn--dark {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.btn--dark:hover {
  background: var(--green);
  border-color: var(--green);
}

.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.65;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: clip;
  background: linear-gradient(90deg, #fff 0 54%, var(--paper) 54% 100%);
  border-bottom: 1px solid var(--line);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(420px, 0.94fr);
  gap: 56px;
  align-items: start;
  padding: 76px 0 72px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--green);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--orange);
}

.hero__title {
  max-width: 15ch;
  margin: 20px 0 24px;
  font-size: clamp(44px, 5.15vw, 72px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.042em;
  text-wrap: balance;
}

.hero__lead {
  max-width: 47ch;
  margin: 0;
  color: var(--body);
  font-size: 18px;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 34px;
}

.hero__mail {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--green);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
}

.hero__mail:hover {
  border-bottom-color: var(--green);
}

.hero__note {
  max-width: 44ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

/* Specification panel — the scene-setting artefact. */

.spec {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--orange);
  box-shadow: 0 28px 70px -48px rgba(27, 33, 20, 0.45);
}

.spec__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px 14px;
  border-bottom: 1px solid var(--line);
}

.spec__label {
  color: var(--green);
  font-size: 13px;
  font-weight: 500;
}

.spec__num {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.spec__file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.spec__file .icon {
  width: 24px;
  height: 24px;
  color: var(--green);
}

.spec__file-name {
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spec__file-meta {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.spec__table {
  width: 100%;
  table-layout: fixed;
  font-size: 14px;
}

.spec__table th {
  padding: 10px 22px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.spec__table th:nth-child(2),
.spec__table td:nth-child(2) {
  width: 92px;
  text-align: right;
}

.spec__table th:nth-child(3),
.spec__table td:nth-child(3) {
  width: 122px;
  text-align: right;
}

.spec__table td {
  overflow: hidden;
  padding: 11px 22px;
  border-bottom: 1px solid var(--line-soft);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spec__table td:first-child {
  white-space: normal;
  line-height: 1.3;
}

.spec__table td:nth-child(2) {
  font-variant-numeric: tabular-nums;
}

.spec__table tr:last-child td {
  border-bottom: 0;
}

.spec__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  white-space: nowrap;
}

.spec__status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.spec__status--ok {
  color: var(--ok);
}

.spec__status--order {
  color: var(--orange-deep);
}

.spec__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  background: var(--ink);
  color: #fff;
}

.spec__time {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.spec__time b {
  color: var(--orange);
  font-size: 46px;
  font-weight: 600;
  line-height: 0.82;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.spec__time span {
  font-size: 14px;
  line-height: 1.2;
}

.spec__foot-note {
  max-width: 14ch;
  color: var(--muted-dark);
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
}

.spec__caption {
  padding: 10px 22px 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  background: #fff;
}

/* One orchestrated entrance, only when JS is available. */

.js .hero__copy > *,
.js .spec {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.7s var(--ease) forwards;
}

.js .hero__copy > :nth-child(2) {
  animation-delay: 0.06s;
}

.js .hero__copy > :nth-child(3) {
  animation-delay: 0.12s;
}

.js .hero__copy > :nth-child(4) {
  animation-delay: 0.18s;
}

.js .hero__copy > :nth-child(5) {
  animation-delay: 0.24s;
}

.js .spec {
  animation-delay: 0.1s;
}

.js .spec__row {
  opacity: 0;
  transform: translateY(6px);
  animation: rise 0.45s var(--ease) forwards;
  animation-delay: calc(0.32s + var(--i, 0) * 0.05s);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .hero__copy > *,
  .js .spec,
  .js .spec__row {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   Fact strip
   -------------------------------------------------------------------------- */

.facts {
  background: #fff;
}

.facts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid transparent;
}

.fact {
  padding: 22px 24px 24px;
  border-left: 1px solid var(--line);
}

.fact:first-child {
  padding-left: 0;
  border-left: 0;
}

.fact b {
  display: block;
  margin-bottom: 2px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

.fact span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: 104px 0;
}

.section--paper {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section--dark {
  background: var(--ink);
  color: #fff;
}

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: 32px 64px;
  align-items: end;
  margin-bottom: 56px;
}

.section__title {
  max-width: 19ch;
  margin: 0;
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.section__lead {
  max-width: 54ch;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.section--dark .section__title {
  color: #fff;
}

.section--dark .section__lead {
  color: var(--muted-dark);
}

/* Advantages */

.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--green);
}

.adv {
  padding: 28px 34px 0 0;
  border-right: 1px solid var(--line);
}

.adv + .adv {
  padding-left: 34px;
}

.adv:last-child {
  padding-right: 0;
  border-right: 0;
}

.adv__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  color: var(--green);
}

.adv__icon .icon {
  width: 22px;
  height: 22px;
}

.adv h3 {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.adv p {
  margin: 0;
  color: var(--body);
  font-size: 16px;
  line-height: 1.55;
}

/* About */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 64px;
  align-items: start;
}

.about__text p {
  max-width: 62ch;
  margin: 0 0 18px;
  color: #d8ddcf;
  font-size: 17px;
  line-height: 1.62;
}

.about__text p:last-child {
  margin-bottom: 0;
}

.about__aside {
  padding-left: 32px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.about__aside h3 {
  margin: 0 0 16px;
  color: var(--muted-dark);
  font-size: 14px;
  font-weight: 500;
}

.about__list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #e7eae1;
  font-size: 15px;
  line-height: 1.45;
}

.about__list .icon {
  width: 17px;
  height: 17px;
  margin-top: 3px;
  color: var(--orange);
}

.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 26px;
  margin-top: 68px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.step__num {
  color: var(--orange);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.step h4 {
  margin: 9px 0 6px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.step p {
  margin: 0;
  color: var(--muted-dark);
  font-size: 14px;
  line-height: 1.45;
}

/* Products */

.cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.cat {
  padding: 24px 26px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cat h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.012em;
}

.cat p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* RHT */

.rht {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  margin-top: 64px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.rht__brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
  padding: 38px 40px;
  border-right: 1px solid var(--line);
}

.rht__logo {
  display: block;
  width: min(320px, 100%);
  height: auto;
}

.rht__brand span {
  max-width: 24ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.rht__body {
  padding: 38px 40px;
}

.rht__body h3 {
  margin: 0 0 12px;
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.rht__body p {
  max-width: 58ch;
  margin: 0 0 22px;
  color: var(--body);
  font-size: 16px;
  line-height: 1.55;
}

.rht__list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rht__list li {
  position: relative;
  padding-left: 16px;
  color: var(--green);
  font-size: 14px;
  line-height: 1.4;
}

.rht__list li::before {
  content: "";
  position: absolute;
  top: 0.52em;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--orange);
}

/* Payment terms */

.terms__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 64px;
  align-items: start;
}

.terms__intro p {
  max-width: 40ch;
  margin: 0 0 20px;
  color: var(--body);
  font-size: 16px;
  line-height: 1.55;
}

.terms__note {
  padding: 16px 18px;
  background: var(--paper);
  border-left: 3px solid var(--orange);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.terms-list {
  margin: 0;
  border-top: 2px solid var(--green);
}

.term {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.term dt {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.term dd {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Contact / form
   -------------------------------------------------------------------------- */

.contact {
  padding: 104px 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
  gap: 56px;
  align-items: start;
}

.form-panel {
  padding: 38px 40px 40px;
  background: #fff;
  border: 1px solid var(--line);
}

.form-panel__head {
  margin-bottom: 26px;
}

.form-panel__head h3 {
  margin: 0 0 8px;
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.form-panel__head p {
  max-width: 52ch;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.form-panel__head a {
  color: var(--green);
  font-weight: 500;
}

.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 18px;
}

.field {
  display: grid;
  gap: 7px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.field .req {
  color: var(--orange-deep);
}

.field .opt {
  color: var(--muted);
  font-weight: 400;
}

.input,
.textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #cfc9bc;
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
  transition:
    border-color 0.15s var(--ease),
    box-shadow 0.15s var(--ease);
}

.textarea {
  min-height: 112px;
  resize: vertical;
}

.input:hover,
.textarea:hover {
  border-color: #b6ae9c;
}

.input:focus,
.textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(68, 76, 49, 0.13);
}

.input[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: var(--error);
}

.input::placeholder,
.textarea::placeholder {
  color: #9a9f90;
}

.field__error {
  display: none;
  color: var(--error);
  font-size: 12.5px;
  line-height: 1.35;
}

.field.has-error .field__error {
  display: block;
}

/* File upload */

.file-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 66px;
  padding: 12px 14px;
  background: #fff;
  border: 1px dashed #b9b3a4;
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    border-color 0.15s var(--ease),
    background-color 0.15s var(--ease);
}

.file-field:hover,
.file-field.is-dragover {
  border-color: var(--green);
  background: #fbfaf6;
}

.file-field:focus-within {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.file-field__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  background: var(--paper);
  color: var(--green);
}

.file-field__text {
  min-width: 0;
}

.file-field__text b {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.file-field__text span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.file-field input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.file-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.file-list:empty {
  display: none;
}

.file-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  font-size: 13px;
  line-height: 1.35;
}

.file-list__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-list__size {
  margin-left: auto;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.file-list button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
}

.file-list button:hover {
  color: var(--error);
}

.file-list button .icon {
  width: 15px;
  height: 15px;
}

/* Consent and submit */

.consent {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.consent input {
  width: 19px;
  height: 19px;
  flex: none;
  margin: 2px 0 0;
  accent-color: var(--green);
  cursor: pointer;
}

.consent a {
  color: var(--green);
  text-decoration: underline;
}

.consent.has-error {
  color: var(--error);
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 22px;
}

.form__actions .btn {
  min-width: 220px;
}

.form__hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.form__status {
  display: none;
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 15px;
  line-height: 1.5;
}

.form__status.is-visible {
  display: block;
}

.form__status--ok {
  background: #eef2e8;
  border-color: #b9c8a8;
}

.form__status--error {
  background: #fbeeea;
  border-color: #e2b6a8;
  color: #6d2417;
}

.form__status h4 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
}

.form__status p {
  margin: 0;
}

.form__status button {
  margin-top: 10px;
  padding: 0;
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.form.is-sent .form__grid,
.form.is-sent .consent,
.form.is-sent .form__actions {
  display: none;
}

/* Contact column */

.contact-card__label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
}

.contact-card__email {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--green);
  font-size: clamp(24px, 2.7vw, 32px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-decoration: none;
  word-break: break-word;
}

.contact-card__email:hover {
  color: var(--orange-deep);
}

.contact-rows {
  display: grid;
  border-top: 1px solid var(--line);
}

.contact-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.contact-row .icon {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--green);
}

.contact-row__body {
  display: grid;
  gap: 1px;
}

.contact-row__body a {
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.contact-row__body a:hover {
  color: var(--orange-deep);
}

.contact-row__body span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.req {
  margin-top: 22px;
  border: 1px solid var(--line);
  background: #fff;
}

.req summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.req summary::-webkit-details-marker {
  display: none;
}

.req summary::after {
  content: "+";
  color: var(--green);
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
}

.req[open] summary::after {
  content: "−";
}

.req__body {
  padding: 0 16px 16px;
}

.req dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.req__row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  font-size: 13px;
  line-height: 1.4;
}

.req dt {
  color: var(--muted);
}

.req dd {
  margin: 0;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.req dd.todo {
  color: var(--orange-deep);
  border-bottom: 1px dotted currentColor;
}

.req__note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  padding: 64px 0 28px;
  background: var(--ink);
  color: #e7eae1;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.7fr 1fr;
  gap: 40px 48px;
}

.footer__brand img {
  width: 200px;
  height: auto;
}

.footer__brand p {
  max-width: 30ch;
  margin: 16px 0 0;
  color: var(--muted-dark);
  font-size: 13px;
  line-height: 1.5;
}

.footer__title {
  margin: 0 0 14px;
  color: var(--muted-dark);
  font-size: 13px;
  font-weight: 400;
}

.footer__list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__list a {
  color: #e7eae1;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}

.footer__list a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer__list span {
  color: var(--muted-dark);
  font-size: 13px;
  line-height: 1.45;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 32px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--muted-dark);
  font-size: 12.5px;
  line-height: 1.5;
}

.footer__bottom p {
  margin: 0;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.footer__legal a {
  color: #d8ddcf;
  text-decoration: none;
}

.footer__legal a:hover {
  color: #fff;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Privacy / consent pages
   -------------------------------------------------------------------------- */

.doc-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.doc-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.doc-header .brand img {
  width: 180px;
}

.doc-header__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 14px;
  text-decoration: none;
}

.doc-header__back:hover {
  text-decoration: underline;
}

.doc-header__back .icon,
.doc__back .icon {
  transform: scaleX(-1);
}

.doc-hero {
  padding: 60px 0 40px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.doc-hero h1 {
  max-width: 22ch;
  margin: 14px 0 10px;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.doc-hero p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.doc-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  padding: 48px 0 96px;
}

.doc-toc {
  position: sticky;
  top: 104px;
  align-self: start;
  padding-right: 20px;
  border-right: 1px solid var(--line);
}

.doc-toc h2 {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

.doc-toc ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.doc-toc li {
  counter-increment: toc;
}

.doc-toc a {
  display: flex;
  gap: 9px;
  color: var(--body);
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
}

.doc-toc a::before {
  content: counter(toc) ".";
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.doc-toc a:hover {
  color: var(--green);
  text-decoration: underline;
}

.doc {
  max-width: 76ch;
}

.doc h2 {
  margin: 44px 0 14px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  scroll-margin-top: 100px;
}

.doc h2:first-child {
  margin-top: 0;
}

.doc h3 {
  margin: 26px 0 10px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.doc p {
  margin: 0 0 14px;
  color: var(--body);
  font-size: 16px;
  line-height: 1.65;
}

.doc ul,
.doc ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--body);
  font-size: 16px;
  line-height: 1.6;
}

.doc li {
  margin-bottom: 7px;
}

.doc li::marker {
  color: var(--green);
}

.doc a {
  color: var(--green);
}

.doc strong {
  font-weight: 600;
  color: var(--ink);
}

.doc table {
  width: 100%;
  margin: 0 0 18px;
  font-size: 14px;
}

.doc th,
.doc td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.45;
}

.doc th {
  background: var(--paper);
  font-weight: 600;
}

.doc__meta {
  display: grid;
  gap: 6px;
  margin: 28px 0 0;
  padding: 16px 18px;
  background: var(--paper);
  border-left: 3px solid var(--green);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.doc__meta p {
  margin: 0;
  color: inherit;
  font-size: inherit;
}

.doc__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  color: var(--green);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.doc__back:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Thanks page
   -------------------------------------------------------------------------- */

.thanks {
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
  padding: 64px 0;
  background: var(--paper);
}

.thanks__inner {
  max-width: 680px;
  padding: 48px;
  background: #fff;
  border: 1px solid var(--line);
}

.thanks__inner h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.thanks__inner p {
  max-width: 52ch;
  margin: 0 0 12px;
  color: var(--body);
}

.thanks__inner a {
  color: var(--green);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .header-contact {
    display: none;
  }

  .nav {
    gap: 20px;
  }
}

@media (max-width: 1080px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: 0;
  }

  .site-header .btn--header {
    margin-left: auto;
  }

  .site-header__inner {
    gap: 16px;
  }

  .mobile-nav {
    display: none;
    border-top: 1px solid var(--line);
    background: #fff;
  }

  .mobile-nav.is-open {
    display: block;
  }

  .mobile-nav__inner {
    display: grid;
    gap: 0;
    padding: 12px 0 24px;
  }

  .mobile-nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line-soft);
    color: var(--ink);
    font-size: 17px;
    text-decoration: none;
  }

  .mobile-nav a:last-of-type {
    border-bottom: 0;
  }

  .mobile-nav__contacts {
    display: grid;
    gap: 4px;
    padding-top: 16px;
    color: var(--muted);
    font-size: 14px;
  }

  .mobile-nav__contacts a {
    padding: 0;
    border: 0;
    color: var(--green);
    font-size: 15px;
    font-weight: 500;
  }

  .hero {
    background: #fff;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
    padding: 56px 0 56px;
  }

  .hero__title {
    max-width: 17ch;
  }

  .spec {
    max-width: 620px;
  }
}

@media (max-width: 900px) {
  .section,
  .contact {
    padding: 76px 0;
  }

  .section__head {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 40px;
  }

  .section__title {
    max-width: 22ch;
  }

  .adv-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .adv,
  .adv + .adv {
    padding: 24px 0 26px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .adv:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .adv__icon {
    margin-bottom: 14px;
  }

  .about__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .about__aside {
    padding: 28px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 0;
  }

  .process {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 32px;
  }

  .cats {
    grid-template-columns: repeat(2, 1fr);
  }

  .rht {
    grid-template-columns: minmax(0, 1fr);
  }

  .rht__brand {
    min-height: 0;
    padding: 30px 32px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rht__mark {
    margin-bottom: 18px;
  }

  .rht__body {
    padding: 30px 32px;
  }

  .terms__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .terms__intro p {
    max-width: 56ch;
  }

  .contact__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .form-panel {
    padding: 30px 28px 32px;
  }

  .contact-card__email {
    font-size: 28px;
  }

  .footer__grid {
    grid-template-columns: 1.4fr 1fr;
  }

  .doc-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 36px;
  }

  .doc-toc {
    position: static;
    padding: 0 0 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .doc-toc ol {
    grid-template-columns: 1fr 1fr;
    gap: 6px 20px;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(100% - 32px, var(--container));
  }

  .site-header__inner {
    min-height: 74px;
  }

  .brand img {
    width: 180px;
  }

  .site-header .btn--header {
    display: none;
  }

  .menu-toggle {
    margin-left: auto;
  }

  .hero__grid {
    padding: 40px 0 44px;
  }

  .hero__title {
    margin-top: 16px;
    font-size: clamp(38px, 10.5vw, 54px);
  }

  .hero__lead {
    font-size: 17px;
  }

  .hero__actions {
    margin-top: 26px;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__mail {
    font-size: 15px;
  }

  .spec__table th {
    padding: 9px 16px;
  }

  .spec__table td {
    padding: 10px 16px;
  }

  .spec__table th:nth-child(2),
  .spec__table td:nth-child(2) {
    width: 80px;
  }

  .spec__table th:nth-child(3),
  .spec__table td:nth-child(3) {
    width: 112px;
  }

  .spec__status {
    font-size: 11.5px;
    gap: 5px;
  }

  .spec__top,
  .spec__file {
    padding-right: 16px;
    padding-left: 16px;
  }

  .spec__foot {
    padding: 18px 16px;
  }

  .spec__time b {
    font-size: 40px;
  }

  .spec__caption {
    padding-right: 16px;
    padding-left: 16px;
  }

  .facts__grid {
    grid-template-columns: 1fr 1fr;
  }

  .fact {
    padding: 18px 16px;
    border-top: 1px solid var(--line);
  }

  .fact:first-child,
  .fact:nth-child(2) {
    border-top: 0;
  }

  .fact:nth-child(2) {
    border-left: 1px solid var(--line);
  }

  .fact:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .fact b {
    font-size: 22px;
  }

  .section,
  .contact {
    padding: 60px 0;
  }

  .section__head {
    margin-bottom: 32px;
  }

  .section__title {
    font-size: clamp(29px, 8vw, 38px);
  }

  .adv {
    padding: 22px 0 24px;
  }

  .process {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 40px;
  }

  .cats {
    grid-template-columns: 1fr;
  }

  .rht__brand,
  .rht__body {
    padding: 24px;
  }

  .term {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 13px 0;
  }

  .term dt {
    font-size: 12.5px;
  }

  .term dd {
    font-size: 15px;
  }

  .form-panel {
    padding: 24px 20px 26px;
  }

  .form__grid {
    grid-template-columns: 1fr;
  }

  .form__actions {
    display: grid;
    gap: 12px;
  }

  .form__actions .btn {
    width: 100%;
    min-width: 0;
  }

  .footer {
    padding-top: 48px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px 24px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__grid > div:last-child {
    grid-column: 1 / -1;
  }

  .footer__bottom {
    display: grid;
    gap: 8px;
    margin-top: 34px;
  }

  .doc-hero {
    padding: 40px 0 28px;
  }

  .doc-header .brand img {
    width: 180px;
  }

  .doc-header__back {
    font-size: 13px;
  }

  .doc-toc ol {
    grid-template-columns: 1fr;
  }

  .doc {
    font-size: 15.5px;
  }

  .doc p,
  .doc ul,
  .doc ol {
    font-size: 15.5px;
  }

  .doc h2 {
    font-size: 21px;
  }

  .thanks__inner {
    padding: 28px 22px;
  }
}

@media (max-width: 420px) {
  .doc-header__back span {
    display: none;
  }
}



/* Print: keep the essentials. */

@media print {
  .site-header,
  .menu-toggle,
  .mobile-nav,
  .hero__actions,
  .form-panel,
  .footer,
  .doc-header__back {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .hero,
  .section,
  .contact,
  .doc-hero,
  .doc-layout {
    padding: 0 !important;
    background: #fff !important;
    border: 0 !important;
  }

  .spec {
    box-shadow: none;
  }

  .doc-layout {
    grid-template-columns: 1fr;
  }

  .doc-toc {
    display: none;
  }
}
