:root {
  --linen: #F2EDE6;
  --brown: #231F20;
  --green: #495D3F;
  --linen-rgb: 242 237 230;
  --brown-rgb: 35 31 32;
  --green-rgb: 73 93 63;
  --header-h: 76px;
  --maxw: 1200px;
  --radius: 8px;
  --radius-sm: 4px;
  --space-x: clamp(18px, 4vw, 56px);
  --section-y: clamp(48px, 5vw, 80px);
}

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

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

body {
  margin: 0;
  background: var(--linen);
  color: var(--brown);
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: rgb(var(--green-rgb) / 0.2);
}

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

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 2px);
}

.shell {
  width: 100%;
  max-width: calc(var(--maxw) + var(--space-x) + var(--space-x));
  margin-inline: auto;
  padding-inline: var(--space-x);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  min-height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--linen);
  transition: background 200ms ease, border-color 200ms ease;
}

.site-header.is-solid,
body.nav-open .site-header {
  border-bottom-color: rgb(var(--linen-rgb) / 0.18);
  background: var(--brown);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
  line-height: 1;
}

.brand img {
  width: 54px;
  height: 46px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand span {
  display: block;
  font-size: 15px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand__dot {
  color: var(--green);
  font-weight: 800;
  margin-inline: 0.38em;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  margin-left: auto;
}

.site-nav a {
  color: rgb(var(--linen-rgb) / 0.72);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--linen);
}

.button.header__cta {
  flex: 0 0 auto;
  min-height: 41px;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid rgb(var(--linen-rgb) / 0.32);
  border-radius: var(--radius-sm);
  background: rgb(var(--linen-rgb) / 0);
  color: var(--linen);
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid currentColor;
  border-radius: var(--radius-sm);
  padding: 13px 18px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--light {
  background: var(--linen);
  color: var(--brown);
}

.button--ghost-light {
  background: rgb(var(--linen-rgb) / 0);
  color: var(--linen);
}

.button--dark {
  background: var(--brown);
  color: var(--linen);
}

.button--small {
  min-height: 40px;
  padding: 10px 14px;
  font-size: 12px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero {
  min-height: 100svh;
  padding: calc(var(--header-h) + 32px) 0 32px;
  background: linear-gradient(125deg, #231F20 0%, #231F20 58%, #495D3F 100%);
  color: var(--linen);
  display: flex;
  align-items: center;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.74fr);
  column-gap: 64px;
  row-gap: 0;
  align-items: center;
  min-width: 0;
}

.hero__copy {
  grid-column: 1;
  grid-row: 1;
  max-width: 760px;
  min-width: 0;
}

.hero__stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

.hero__mark {
  width: min(300px, 56vw);
  height: auto;
}

.hero__stack h1 {
  max-width: 16ch;
  margin-top: 26px;
}

@media (min-width: 981px) {
  .hero__stack h1 {
    max-width: none;
    font-size: min(50px, 4vw);
    white-space: nowrap;
  }

  .hero__stack .hero__lead {
    max-width: none;
    white-space: nowrap;
  }

}

.hero__stack .hero__lead {
  max-width: 44ch;
  margin-top: 20px;
  font-size: 24px;
}

.hl {
  border-radius: 999px;
  background: var(--linen);
  padding: 3px 12px;
  color: var(--brown);
  font-weight: 700;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.button.hero__cta {
  margin-top: 34px;
  border-radius: 999px;
  padding: 15px 30px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0;
}

.section--brown .eyebrow,
.section--green .eyebrow,
.hero .eyebrow,
.contact .eyebrow {
  color: var(--linen);
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  max-width: 12ch;
  font-size: 68px;
  line-height: 0.95;
  text-transform: uppercase;
  text-wrap: balance;
}

h2 {
  max-width: 13ch;
  font-size: 44px;
  line-height: 1;
  text-transform: uppercase;
  text-wrap: balance;
}

h3 {
  font-size: 20px;
  line-height: 1.15;
}

.hero__lead {
  max-width: 680px;
  margin: 28px 0 0;
  color: rgb(var(--linen-rgb) / 0.78);
  font-size: 19px;
  min-width: 0;
}

.hero .actions {
  margin-top: 34px;
}

.hero__facts {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 44px 0 0;
  border: 1px solid rgb(var(--linen-rgb) / 0.2);
  background: rgb(var(--linen-rgb) / 0.2);
}

.hero__facts div {
  min-height: 112px;
  padding: 18px;
  background: rgb(var(--brown-rgb) / 0.84);
}

.hero__facts dt {
  margin: 0;
  color: var(--linen);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.hero__facts dd {
  margin: 10px 0 0;
  color: rgb(var(--linen-rgb) / 0.66);
  font-size: 13px;
  line-height: 1.35;
}

.hero__visual {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: stretch;
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 560px;
  border: 1px solid rgb(var(--linen-rgb) / 0.26);
  border-radius: var(--radius);
  background: rgb(var(--brown-rgb) / 0.38);
  overflow: hidden;
}

.hero__visual::before,
.hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__visual::before {
  background:
    linear-gradient(90deg, rgb(var(--linen-rgb) / 0.09) 1px, rgb(var(--linen-rgb) / 0) 1px),
    linear-gradient(180deg, rgb(var(--linen-rgb) / 0.09) 1px, rgb(var(--linen-rgb) / 0) 1px);
  background-size: 42px 42px;
}

.hero__visual::after {
  border: 18px solid rgb(var(--linen-rgb) / 0.06);
}

.hero__logo {
  position: absolute;
  width: 76%;
  max-width: 520px;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 28px 48px rgb(var(--brown-rgb) / 0.34));
}

.hero__signal {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgb(var(--linen-rgb) / 0.24);
  padding-top: 16px;
  color: rgb(var(--linen-rgb) / 0.7);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.section {
  padding: var(--section-y) 0;
}

.section--linen {
  background: var(--linen);
  color: var(--brown);
}

.section--brown {
  background: var(--brown);
  color: var(--linen);
}

.section--green {
  background: var(--green);
  color: var(--linen);
}

.section--tight {
  padding-top: 36px;
}

.section__intro p {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgb(var(--brown-rgb) / 0.7);
}

.section--brown .section__intro p,
.section--green .section__intro p {
  color: rgb(var(--linen-rgb) / 0.72);
}

.section__intro--wide {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 16px;
  margin-bottom: 44px;
}

.section__intro--wide p {
  margin: 0;
}

@media (min-width: 981px) {
  .section__intro--wide h2 {
    max-width: none;
    font-size: min(44px, 3.7vw);
    white-space: nowrap;
  }

  .section__intro--wide p {
    max-width: none;
    white-space: nowrap;
  }

  #process,
  #packages,
  #work,
  #about {
    padding: calc(var(--section-y) * 0.6) 0;
  }
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1fr);
  gap: 64px;
  align-items: start;
}

.split--reverse {
  grid-template-columns: minmax(320px, 1fr) minmax(0, 0.82fr);
}

.split--reverse .section__intro {
  order: 2;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.about-card {
  border: 1px solid rgb(var(--linen-rgb) / 0.18);
  border-radius: 18px;
  padding: 22px;
  background: rgb(var(--linen-rgb) / 0.04);
}

.about-card p {
  margin: 0;
  color: rgb(var(--linen-rgb) / 0.72);
}

.about-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 72px;
  text-align: center;
}

.about-cta p {
  margin: 0;
  color: rgb(var(--linen-rgb) / 0.72);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
}

.button--round {
  border-radius: 999px;
  padding: 14px 28px;
}

.copy-block {
  border-left: 4px solid var(--green);
  padding-left: 28px;
}

.copy-block p {
  margin: 0 0 18px;
  color: rgb(var(--brown-rgb) / 0.74);
}

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

.copy-block--ruled {
  border-top: 1px solid rgb(var(--brown-rgb) / 0.22);
  padding-top: 26px;
}

.inline-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.inline-steps li {
  border: 1px solid var(--green);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-item {
  position: relative;
  min-height: 240px;
  border: 1px solid rgb(var(--linen-rgb) / 0.18);
  border-radius: 18px;
  padding: 26px;
  background: rgb(var(--linen-rgb) / 0.04);
}

.number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border: 1px solid rgb(var(--linen-rgb) / 0.3);
  border-radius: 999px;
  background: var(--brown);
  color: var(--linen);
  font-size: 13px;
  font-weight: 800;
}

.number--light {
  border-color: #00A94F;
  background: #00A94F;
  color: var(--brown);
  box-shadow: 0 0 0 5px rgb(0 169 79 / 0.16), 0 0 22px rgb(0 169 79 / 0.5);
}

.number--wait {
  border-color: #FFC20E;
  background: #FFC20E;
  color: var(--brown);
  box-shadow: 0 0 0 5px rgb(255 194 14 / 0.16), 0 0 22px rgb(255 194 14 / 0.5);
}

.process-item h3 {
  max-width: none;
  white-space: nowrap;
}

.process-item p,
.result-item p {
  margin: 18px 0 0;
  color: rgb(var(--linen-rgb) / 0.68);
}

#work {
  min-height: calc(100svh - var(--header-h));
  background: linear-gradient(125deg, #231F20 0%, #231F20 58%, #495D3F 100%);
}

.work-grid {
  --edge: 20px;
  display: flex;
  gap: 24px;
  padding: 8px 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--edge), #000 calc(100% - var(--edge)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--edge), #000 calc(100% - var(--edge)), transparent 100%);
}

.work-grid.at-start {
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - var(--edge)), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - var(--edge)), transparent 100%);
}

.work-grid.at-end {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--edge), #000 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--edge), #000 100%);
}

.work-grid.at-start.at-end {
  -webkit-mask-image: none;
  mask-image: none;
}

.work-grid::-webkit-scrollbar {
  display: none;
}

.work-card {
  flex: 0 0 calc((100% - 48px) / 3);
  height: 510px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgb(var(--brown-rgb) / 0.22);
  border-radius: 18px;
  padding: 22px;
  background: var(--linen);
  color: var(--brown);
  box-shadow: 0 1px 3px rgb(var(--brown-rgb) / 0.06);
  transition: box-shadow 200ms ease;
}

.work-card:hover {
  box-shadow: 0 2px 5px rgb(var(--brown-rgb) / 0.09);
}

.work-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.work-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgb(var(--linen-rgb) / 0.3);
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.work-dot:hover {
  background: rgb(var(--linen-rgb) / 0.6);
}

.work-dot.is-active {
  background: var(--linen);
  transform: scale(1.3);
}

.work-card__domain,
.modal__link {
  position: relative;
  flex: 0 0 auto;
  align-self: center;
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  border-radius: 999px;
  padding: 8px 16px;
  background: var(--green);
  color: var(--linen);
  font-size: 15px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.work-card__domain::after,
.modal__link::after {
  content: "↗";
  flex: 0 0 auto;
  margin-left: 8px;
  font-size: 14px;
  line-height: 1;
}

.work-card__domain::before {
  content: "Перейти на сайт";
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  border-radius: 8px;
  padding: 6px 10px;
  background: var(--brown);
  color: var(--linen);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
}

.work-card__domain:hover::before,
.work-card__domain:focus-visible::before {
  opacity: 1;
}

.work-card__feedback {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  border-top: 1px solid rgb(var(--brown-rgb) / 0.18);
  padding: 16px 0;
}

.work-card__feedback p {
  margin: 0 0 12px;
  color: rgb(var(--brown-rgb) / 0.74);
}

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

.work-card.has-more .work-card__feedback::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 48px;
  background: linear-gradient(180deg, rgb(var(--linen-rgb) / 0), var(--linen));
  pointer-events: none;
}

.work-card__toggle {
  display: none;
  flex: 0 0 auto;
  align-self: flex-end;
  margin: 10px 0 0;
  border: 0;
  padding: 0;
  background: none;
  color: var(--green);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.work-card__toggle:hover {
  color: var(--brown);
}

.work-card.has-more .work-card__toggle {
  display: inline-block;
}

.modal {
  width: min(720px, calc(100vw - 32px));
  max-height: 82svh;
  margin: auto;
  flex-direction: column;
  border: 1px solid rgb(var(--brown-rgb) / 0.2);
  border-radius: 18px;
  padding: 0;
  background: var(--linen);
  color: var(--brown);
  overflow: hidden;
}

.modal[open] {
  display: flex;
}

.modal::backdrop {
  background: rgb(var(--brown-rgb) / 0.62);
}

.modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 24px 22px;
}

.modal__body p {
  margin: 0 0 14px;
  color: rgb(var(--brown-rgb) / 0.78);
  font-size: 17px;
}

.modal__foot {
  flex: 0 0 auto;
  border-top: 1px solid rgb(var(--brown-rgb) / 0.16);
  padding: 16px 24px 20px;
}

.modal__foot h3 {
  font-size: 18px;
}

.modal__foot br {
  display: none;
}

.modal__foot p {
  margin: 4px 0 0;
  color: rgb(var(--brown-rgb) / 0.62);
  font-size: 13px;
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgb(var(--brown-rgb) / 0.16);
  padding: 18px 20px 18px 24px;
}

.modal__link {
  align-self: auto;
  margin: 0;
}

.modal__close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgb(var(--brown-rgb) / 0.08);
  color: var(--brown);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.modal__close:hover {
  background: rgb(var(--brown-rgb) / 0.16);
}

.work-card__person {
  flex: 0 0 auto;
  border-top: 1px solid rgb(var(--brown-rgb) / 0.18);
  padding-top: 16px;
}

.work-card__person h3 {
  font-size: 18px;
}

.work-card__person p {
  margin: 4px 0 0;
  color: rgb(var(--brown-rgb) / 0.62);
  font-size: 13px;
  line-height: 1.45;
}

.quote {
  margin: 0;
  border: 1px solid rgb(var(--linen-rgb) / 0.28);
  border-radius: var(--radius);
  padding: 34px;
  background: rgb(var(--brown-rgb) / 0.18);
}

.quote blockquote {
  margin: 0;
  color: var(--linen);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.45;
}

.quote figcaption {
  margin-top: 28px;
  border-top: 1px solid rgb(var(--linen-rgb) / 0.26);
  padding-top: 18px;
}

.quote strong,
.quote span {
  display: block;
}

.quote span {
  margin-top: 4px;
  color: rgb(var(--linen-rgb) / 0.68);
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid rgb(var(--brown-rgb) / 0.22);
  border-radius: 18px;
  padding: 22px;
  background: var(--linen);
}

.package-card--featured {
  border-color: var(--green);
  box-shadow: 0 22px 56px rgb(var(--brown-rgb) / 0.12);
}

.package-card__badge {
  position: absolute;
  top: -13px;
  left: 22px;
  margin: 0;
  border-radius: 999px;
  padding: 6px 14px;
  background: var(--green);
  color: var(--linen);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.package-card__includes {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  border: 1px solid rgb(var(--green-rgb) / 0.35);
  border-radius: 12px;
  padding: 11px 14px;
  background: rgb(var(--green-rgb) / 0.08);
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}

.package-card__includes::before {
  content: "+";
  flex: 0 0 auto;
  font-size: 16px;
  font-weight: 800;
}

.package-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 76px;
  border-bottom: 1px solid rgb(var(--brown-rgb) / 0.2);
  padding-bottom: 16px;
}

.package-card__head h3 {
  min-width: 0;
}

.price {
  display: flex;
  align-items: center;
  align-self: stretch;
  flex: 0 0 auto;
  margin: -22px -22px -16px 0;
  justify-content: center;
  border-radius: 0 17px 0 0;
  padding: 0 22px;
  background: var(--brown);
  color: var(--linen);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.package-card > p:not([class]) {
  min-height: 72px;
  margin: 16px 0 0;
  color: rgb(var(--brown-rgb) / 0.74);
}

.package-card ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 20px;
  padding: 0;
  list-style: none;
}

.package-card li {
  position: relative;
  padding-left: 18px;
  color: rgb(var(--brown-rgb) / 0.76);
}

.package-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
}

.package-card .button {
  width: 100%;
  margin-top: auto;
  border-radius: 999px;
}

.payment-note {
  margin: 26px 0 0;
  color: rgb(var(--brown-rgb) / 0.66);
  font-size: 14px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgb(var(--linen-rgb) / 0.2);
  border: 1px solid rgb(var(--linen-rgb) / 0.2);
}

.result-item {
  min-height: 210px;
  padding: 26px;
  background: var(--brown);
}

.faq-list {
  border-top: 1px solid rgb(var(--brown-rgb) / 0.24);
}

.faq-list details {
  border-bottom: 1px solid rgb(var(--brown-rgb) / 0.24);
}

.faq-list summary {
  cursor: pointer;
  padding: 24px 0;
  color: var(--brown);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  list-style: none;
  position: relative;
}

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

.faq-list p {
  max-width: 760px;
  margin: 0;
  padding: 0 0 24px;
  color: rgb(var(--brown-rgb) / 0.72);
}

.contact {
  padding: var(--section-y) 0;
  background:
    linear-gradient(90deg, rgb(var(--linen-rgb) / 0.08) 1px, rgb(var(--linen-rgb) / 0) 1px),
    linear-gradient(180deg, rgb(var(--linen-rgb) / 0.08) 1px, rgb(var(--linen-rgb) / 0) 1px),
    var(--brown);
  background-size: 82px 82px, 82px 82px, auto;
  color: var(--linen);
}

.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.48fr);
  gap: 44px;
  align-items: end;
}

.contact h2 {
  max-width: 14ch;
}

.contact p:not(.eyebrow) {
  margin: 0 0 26px;
  color: rgb(var(--linen-rgb) / 0.72);
}

.site-footer {
  border-top: 1px solid rgb(var(--linen-rgb) / 0.18);
  background: var(--brown);
  color: var(--linen);
  padding: 34px 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  max-width: 100%;
}

.footer__brand img {
  width: 62px;
  height: 52px;
  object-fit: contain;
  flex: 0 0 auto;
}

.footer__brand-text {
  display: block;
  min-width: 0;
}

.footer__brand strong {
  display: block;
  font-size: 16px;
  line-height: 1.2;
  text-transform: uppercase;
}

.footer__brand-text span {
  display: block;
  margin-top: 4px;
  color: rgb(var(--linen-rgb) / 0.58);
  font-size: 14px;
  line-height: 1.4;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px 34px;
}

.footer__links a {
  color: rgb(var(--linen-rgb) / 0.72);
  font-size: 15px;
  font-weight: 500;
}

.footer__links a:hover {
  color: var(--linen);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 26px;
  border-top: 1px solid rgb(var(--linen-rgb) / 0.14);
  padding-top: 16px;
}

.footer__bottom p,
.footer__bottom a {
  margin: 0;
  color: rgb(var(--linen-rgb) / 0.5);
  font-size: 12px;
}

.footer__bottom a:hover {
  color: var(--linen);
}

/* Sub-pages have no hero, so the fixed header sits on linen with nothing behind
   it — it needs its solid fill from the start, and the content needs clearance. */
.page-doc .site-header {
  border-bottom-color: rgb(var(--linen-rgb) / 0.18);
  background: var(--brown);
}

.page-doc #main {
  padding-top: var(--header-h);
}

.policy__body {
  max-width: 760px;
}

.policy__meta {
  margin: 0 0 28px;
  color: rgb(var(--brown-rgb) / 0.55);
  font-size: 13px;
}

.policy__body h3 {
  margin: 32px 0 10px;
}

.policy__body p {
  margin: 0 0 14px;
  color: rgb(var(--brown-rgb) / 0.74);
}

.policy__body a {
  color: var(--green);
  font-weight: 700;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease, transform 420ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .scheme {
    display: none;
  }
}

@media (max-width: 980px) {
  :root {
    --header-h: 68px;
  }

  .header__inner {
    gap: 14px;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: grid;
    gap: 0;
    border-bottom: 1px solid rgb(var(--linen-rgb) / 0.2);
    background: var(--brown);
    padding: 0 var(--space-x) 22px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    border-top: 1px solid rgb(var(--linen-rgb) / 0.16);
    padding: 20px 0;
    font-size: 16px;
  }

  .header__cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 54px);
  }

  .hero__grid,
  .split,
  .split--reverse,
  .section__intro--wide,
  .contact__inner {
    grid-template-columns: 1fr;
  }

  .hero__grid {
    row-gap: 28px;
  }

  .hero__copy,
  .hero__visual,
  .hero__facts {
    grid-column: auto;
    grid-row: auto;
  }

  .split--reverse .section__intro {
    grid-column: auto;
    order: initial;
  }

  h1 {
    max-width: 13ch;
    font-size: 52px;
  }

  h2 {
    max-width: 16ch;
    font-size: 38px;
  }

  .hero__visual {
    min-height: 440px;
  }

  .hero__facts {
    margin-top: 0;
  }

  .process-list,
  .package-grid,
  .about-grid,
  .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hero__facts,
  .process-list,
  .package-grid,
  .about-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .work-card {
    flex-basis: 82%;
  }

  .package-card {
    min-height: 0;
  }

  .package-card__head,
  .package-card > p:not([class]) {
    min-height: 0;
  }

  .footer__inner {
    display: grid;
  }

  .footer__links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  /* Six links on one line: the type scales with the viewport so even a 320px
     screen fits them without wrapping. */
  .footer__links {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .footer__links a {
    font-size: clamp(10px, 3vw, 13px);
    white-space: nowrap;
  }

  body {
    font-size: 15px;
  }

  .brand span {
    font-size: 12px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 31px;
  }

  h3 {
    font-size: 18px;
  }

  .hero__lead {
    font-size: 17px;
    max-width: 28ch;
  }

  .hero__visual {
    justify-self: start;
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
    min-height: 330px;
  }

  .hero__logo {
    width: 64%;
    max-width: 220px;
  }

  .hero__signal {
    font-size: 10px;
  }

  .hero__signal span:last-child {
    display: none;
  }

  .quote {
    padding: 24px;
  }

  .quote blockquote {
    font-size: 18px;
  }

  .copy-block {
    padding-left: 18px;
  }

  .process-item,
  .package-card,
  .result-item,
  .work-card {
    padding: 22px;
  }

  .process-item {
    min-height: 0;
  }

  .button {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
