@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/golos-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/golos-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/unbounded-cyr-600.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/unbounded-lat-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/unbounded-cyr-700.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/unbounded-lat-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f3f1ec;
  --bay: #e4e2dc;
  --ink: #1a1c1e;
  --concrete: #9aa0a6;
  --stand: #c45c26;
  --stand-deep: #9a4318;
  --rule: rgba(26, 28, 30, 0.14);
  --shadow: rgba(26, 28, 30, 0.08);
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Golos Text", system-ui, sans-serif;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --max: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #ebe8e1 0%, var(--paper) 18%, var(--paper) 100%);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--stand);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

/* —— Top meta bar (document header) —— */
.doc-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.85rem var(--pad);
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 88%, white);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.doc-bar__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  color: var(--concrete);
}

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

.doc-bar__actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.doc-bar a {
  text-decoration: none;
  font-weight: 500;
}

.doc-bar a:hover {
  color: var(--stand);
}

/* —— Hero: full-bleed protocol cover —— */
.hero {
  position: relative;
  min-height: min(100svh, 54rem);
  display: grid;
  align-items: end;
  color: var(--paper);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 28, 30, 0.28) 0%, rgba(26, 28, 30, 0.18) 35%, rgba(26, 28, 30, 0.78) 100%),
    linear-gradient(90deg, rgba(26, 28, 30, 0.45) 0%, transparent 55%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(5rem, 12vw, 8rem) var(--pad) clamp(2.5rem, 6vw, 4rem);
}

.hero__brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.5rem;
}

.hero__brand img {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--paper);
  object-fit: cover;
}

.hero__brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.2vw, 2.15rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}

.hero__brand-place {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 72%, var(--concrete));
}

.hero h1 {
  margin: 0 0 0.85rem;
  max-width: 16ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero__lead {
  margin: 0 0 1.75rem;
  max-width: 34ch;
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: color-mix(in srgb, var(--paper) 88%, var(--concrete));
  text-wrap: pretty;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.875rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

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

.btn--stand:hover {
  background: var(--stand-deep);
}

.btn--ghost {
  background: transparent;
  border-color: color-mix(in srgb, var(--paper) 45%, transparent);
  color: var(--paper);
}

.btn--ghost:hover {
  border-color: var(--paper);
  background: color-mix(in srgb, var(--paper) 10%, transparent);
}

.btn--ink {
  background: var(--ink);
  color: var(--paper);
}

.btn--ink:hover {
  background: color-mix(in srgb, var(--ink) 88%, var(--stand));
}

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

.btn--line:hover {
  border-color: var(--stand);
  color: var(--stand);
}

/* —— Protocol sheet —— */
.sheet {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--pad) 4rem;
}

.sheet__head {
  display: grid;
  gap: 0.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 2rem;
}

.sheet__label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stand);
}

.sheet__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

.sheet__note {
  margin: 0;
  max-width: 48ch;
  color: color-mix(in srgb, var(--ink) 72%, var(--concrete));
  text-wrap: pretty;
}

/* Protocol steps — numbered rows, not cards */
.protocol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.protocol__row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem 1.5rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--rule);
  opacity: 0;
  transform: translateY(0.6rem);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}

.protocol__row.is-in {
  opacity: 1;
  transform: none;
}

.protocol__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--stand);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.protocol__body h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.protocol__body p {
  margin: 0;
  max-width: 52ch;
  color: color-mix(in srgb, var(--ink) 70%, var(--concrete));
  text-wrap: pretty;
}

/* Spec / works — table-like, asymmetric image strip */
.works {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.work {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 0;
  border-bottom: 1px solid var(--rule);
  opacity: 0;
  transform: translateY(0.6rem);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}

.work.is-in {
  opacity: 1;
  transform: none;
}

.work:nth-child(even) {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.work:nth-child(even) .work__copy {
  order: 2;
}

.work:nth-child(even) .work__media {
  order: 1;
}

.work__copy {
  padding: clamp(1.25rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.65rem;
  background: color-mix(in srgb, var(--bay) 55%, transparent);
}

.work__code {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--concrete);
}

.work__copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.work__copy p {
  margin: 0;
  max-width: 40ch;
  color: color-mix(in srgb, var(--ink) 68%, var(--concrete));
  text-wrap: pretty;
}

.work__media {
  min-height: 14rem;
  overflow: hidden;
  background: var(--bay);
}

.work__media img {
  width: 100%;
  height: 100%;
  min-height: 14rem;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}

.work:hover .work__media img {
  transform: scale(1.03);
}

/* Tariffs */
.tariffs {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.tariffs caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--concrete);
}

.tariffs th,
.tariffs td {
  padding: 1rem 0.5rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: baseline;
}

.tariffs th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}

.tariffs td:last-child,
.tariffs th:last-child {
  text-align: right;
  white-space: nowrap;
}

.tariffs tbody tr {
  opacity: 0;
  transform: translateY(0.4rem);
  transition: opacity 450ms var(--ease), transform 450ms var(--ease);
}

.tariffs tbody tr.is-in {
  opacity: 1;
  transform: none;
}

.tariffs .muted {
  color: var(--concrete);
  font-weight: 400;
  font-size: 0.875rem;
}

.assure {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.assure h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}

.assure p,
.assure ul {
  margin: 0;
  color: color-mix(in srgb, var(--ink) 70%, var(--concrete));
  text-wrap: pretty;
}

.assure ul {
  padding-left: 1.1rem;
}

.assure li + li {
  margin-top: 0.35rem;
}

/* Booking */
.booking {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  margin-top: 1rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--bay);
  border: 1px solid var(--rule);
}

.booking__info h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
}

.booking__lines {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.booking__lines li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.75rem;
  font-size: 0.9375rem;
}

.booking__lines span {
  color: var(--concrete);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.booking__lines a {
  text-decoration: none;
  font-weight: 500;
}

.booking__lines a:hover {
  color: var(--stand);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.form {
  display: grid;
  gap: 0.85rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.form textarea {
  min-height: 6.5rem;
  resize: vertical;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--stand);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--stand) 22%, transparent);
}

.form__hint {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--concrete);
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.map-wrap {
  margin-top: 1.5rem;
  border: 1px solid var(--rule);
  overflow: hidden;
  background: var(--bay);
  aspect-ratio: 16 / 9;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.35) contrast(1.05);
}

.footer {
  padding: 2rem var(--pad) 2.5rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  color: var(--concrete);
  font-size: 0.8125rem;
}

.footer a {
  text-decoration: none;
  font-weight: 500;
  color: var(--ink);
}

.footer a:hover {
  color: var(--stand);
}

@media (max-width: 860px) {
  .work,
  .work:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .work:nth-child(even) .work__copy,
  .work:nth-child(even) .work__media {
    order: initial;
  }

  .assure,
  .booking {
    grid-template-columns: 1fr;
  }

  .booking__lines li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .protocol__row {
    grid-template-columns: 3rem 1fr;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 92svh;
  }

  .doc-bar__meta {
    display: none;
  }

  .tariffs thead {
    display: none;
  }

  .tariffs tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.25rem 1rem;
    padding: 0.85rem 0;
  }

  .tariffs th,
  .tariffs td {
    border: 0;
    padding: 0;
  }

  .tariffs td:last-child,
  .tariffs th:last-child {
    text-align: right;
  }
}

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

  .protocol__row,
  .work,
  .tariffs tbody tr,
  .work__media img {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
