/* Лира Устюжанина — one motif: the arch (опора) */
:root {
  --ground: #F4EBE1;
  --paper: #FBF7F2;
  --ink: #2E1E17;
  --soft: #6A5548;
  --clay: #A44F37;
  --clay-deep: #8F4129;
  --clay-pale: #E9C9B6;
  --clay-mid: #C47A5C;
  --night: #3B2219;
  --on-dark: #F6ECE3;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Golos Text", system-ui, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.5rem, 1.6rem + 3vw, 4.25rem);
  --step-hero: clamp(2.75rem, 1.4rem + 4.2vw, 5rem);

  --m: clamp(16px, 2.2vw, 32px);
  --gap: clamp(104px, 12vw, 192px);
  --arch: 999px 999px 0 0;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-feature-settings: "lnum" 1; caret-color: var(--clay); scrollbar-color: var(--clay-pale) var(--ground); }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 var(--step-body)/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--clay-pale); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: var(--step-head); line-height: 1.02; }
h3 { font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem); line-height: 1.08; letter-spacing: -.01em; }
section { scroll-margin-top: 72px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 4px; }

/* buttons: one shape, fully round */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px; border-radius: 999px; border: 0;
  background: var(--clay); color: #fff; text-decoration: none;
  font: 500 16px/1 var(--sans); cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--clay-deep); }
.btn:active { transform: scale(.96); }
.btn--small { min-height: 44px; padding: 0 22px; font-size: 15px; }
.btn--light { background: var(--paper); color: var(--clay-deep); }
.btn--light:hover { background: #fff; color: var(--clay-deep); }
.btn--ink { background: var(--night); color: var(--on-dark); }
.btn--ink:hover { background: #24140f; }

/* bar */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 12px var(--m); padding-top: max(12px, env(safe-area-inset-top));
  transition: background-color .4s var(--ease);
}
.bar.is-solid { background: var(--ground); }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 clamp(19px, 1.2rem + .3vw, 22px)/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.mark__arch { width: 18px; height: 23px; fill: var(--clay); }
.bar__nav { display: none; }
.bar__nav a { text-decoration: none; font-size: 15px; color: var(--ink); padding: 10px 0; position: relative; transition: color .2s; }
.bar__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--clay); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.bar__nav a:hover::after, .bar__nav a[aria-current]::after { transform: scaleX(1); }
.bar__nav a[aria-current] { color: var(--clay-deep); }

/* hero: printed card beside the portrait */
.hero { padding: 72px 12px 0; display: grid; gap: 12px; }
.hero__photo { order: -1; height: 54svh; min-height: 340px; border-radius: var(--arch); overflow: hidden; background: var(--clay-pale); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; will-change: transform; }
.hero__card {
  position: relative; z-index: 1; margin-top: -40px;
  background: var(--paper); display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 20px 28px;
}
.arcade { display: flex; gap: 6px; width: 100%; height: 40px; align-items: flex-end; margin-bottom: 44px; }
.arcade i { flex: 1; height: 100%; background: var(--clay); border-radius: var(--arch); transform-origin: bottom; }
.arcade i:nth-child(even) { background: var(--clay-pale); }
.hero__body { display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 9.6vw, 3.5rem); line-height: 1; }
.hero__lead { margin-top: 24px; max-width: 34ch; }
.hero__body .btn { margin-top: 32px; width: 100%; max-width: 360px; }
.hero__foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 36px; font-size: 15px; color: var(--soft); }
.hero__foot a { color: var(--clay-deep); text-underline-offset: 4px; }

/* about in short: one large figure beside three plain facts */
.said {
  margin: var(--gap) var(--m); padding: clamp(36px, 5vw, 80px) clamp(24px, 4vw, 72px);
  background: var(--paper); display: grid; gap: 40px;
}
.said__big { font: 500 clamp(6.5rem, 3rem + 12vw, 13rem)/.82 var(--serif); letter-spacing: -.04em; color: var(--clay); }
.said__big span { font-size: .5em; vertical-align: .62em; margin-left: .04em; }
.said__cap { margin-top: 20px; font: 500 var(--step-lead)/1.3 var(--serif); max-width: 22ch; }
.said__title { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); margin-bottom: 26px; }
.said dl { margin: 0; display: grid; gap: 26px; }
.said dl div { position: relative; padding-left: 36px; }
.said dl div::before { content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 20px; border-radius: var(--arch); background: var(--clay); }
.said dt { font: 500 clamp(1.375rem, 1.2rem + .6vw, 1.75rem)/1.15 var(--serif); }
.said dd { margin: 6px 0 0; color: var(--soft); }

/* requests: heading left, list pushed right */
.requests { padding: 0 var(--m) var(--gap); display: grid; gap: 40px; max-width: 1440px; margin: 0 auto; }
.requests__note { margin-top: 20px; max-width: 30ch; }
.req { list-style: none; margin: 0; padding: 0; display: grid; gap: 34px; }
.req li { position: relative; padding-left: 40px; }
.req li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 23px;
  background: var(--clay-pale); border-radius: var(--arch);
  transition: background-color .35s var(--ease), transform .35s var(--ease);
}
.req li:hover::before { background: var(--clay); transform: translateY(-3px); }
.req p { margin-top: 8px; color: var(--soft); max-width: 44ch; }

/* approach: inset panel */
.approach { padding: 0 10px; }
.approach__panel {
  background: var(--night); color: var(--on-dark); overflow: hidden;
  display: grid; padding: 48px 22px 0; gap: 48px;
}
.approach h2 { color: var(--clay-pale); max-width: 12ch; }
.approach__right { display: grid; gap: 36px; align-content: start; }
.approach__right h3 { color: var(--on-dark); }
.approach__right p { margin-top: 10px; color: rgba(246, 236, 227, .86); font-size: 16px; line-height: 1.6; max-width: 46ch; }
.approach__right .btn { justify-self: start; }
.approach__pic {
  order: 3; position: relative; width: 86%; margin: 0 auto -18%; aspect-ratio: 4 / 5;
  border-radius: var(--arch); background: var(--clay);
}
.approach__pic i { position: absolute; left: 16%; right: 16%; bottom: 0; top: 16%; border-radius: var(--arch); background: var(--clay-deep); }
.approach__pic i + i { left: 32%; right: 32%; top: 34%; background: var(--clay-pale); }
.approach__left { display: contents; }

/* pricing: two fields that meet */
.price { margin-top: var(--gap); display: grid; }
.plan {
  min-height: 70svh; padding: clamp(24px, 3vw, 48px) var(--m) clamp(24px, 3vw, 44px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
}
.plan h3 { font-size: clamp(2.25rem, 1.4rem + 3vw, 3.75rem); line-height: 1; max-width: 12ch; }
.plan__for { margin-top: 18px; font-size: var(--step-lead); line-height: 1.35; max-width: 26ch; }
.plan__inc { max-width: 40ch; }
.plan__foot { display: flex; flex-direction: column; gap: 22px; }
.plan__price { font: 500 clamp(4.5rem, 2rem + 8vw, 8.5rem)/.9 var(--serif); letter-spacing: -.03em; }
.plan__price { white-space: nowrap; }
.plan--second .plan__price { font-size: clamp(4.5rem, 1.6rem + 5.6vw, 7rem); }
.plan__price span { font: 400 .32em/1 var(--sans); vertical-align: .55em; margin-left: .08em; }
.plan .btn { width: 100%; }
.plan--main { background: var(--clay); color: #fff; }
.plan--main .plan__inc, .plan--main .plan__for { color: #FFF4EC; }
.plan--second { background: var(--paper); color: var(--ink); }
.plan--second .plan__price { color: var(--clay); }

/* education: tiles, documents only behind a button */
.edu { padding: var(--gap) var(--m); max-width: 1440px; margin: 0 auto; }
.tiles { display: grid; gap: 8px; }
.tile { padding: 26px 24px; min-height: 220px; display: flex; flex-direction: column; gap: 10px; }
.tile--head { background: var(--clay); color: #fff; }
.tile--head p { margin-top: auto; max-width: 30ch; color: #FFF4EC; }
.tile--doc {
  all: unset; box-sizing: border-box; cursor: pointer;
  padding: 26px 24px; min-height: 220px; display: flex; flex-direction: column; gap: 8px;
  background: var(--paper); color: var(--ink);
  transition: background-color .35s var(--ease), transform .25s var(--ease);
}
.tile--doc:hover { background: #F1E1D4; }
.tile--doc:active { transform: scale(.985); }
.tile--doc:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
.tile__name { font: 500 clamp(1.75rem, 1.4rem + 1vw, 2.25rem)/1.05 var(--serif); letter-spacing: -.01em; }
.tile__org { color: var(--soft); }
.tile__go { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 10px; color: var(--clay-deep); font-weight: 500; }
.tile__go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .35s var(--ease); }
.tile--doc:hover .tile__go svg { transform: translateX(6px); }

/* contact: coupon over the steppe */
.contact { position: relative; overflow: hidden; padding: var(--gap) 12px; background: var(--clay-pale); }
.coupon {
  position: relative; max-width: 1120px; margin: 0 auto;
  background: var(--clay-deep); color: #fff;
  display: grid;
  /* notches cut where the perforation meets the edges (mask, not a visible gradient) taste-skill-ignore */
  -webkit-mask: radial-gradient(circle 15px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 15px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat; /* taste-skill-ignore: notch mask */
  mask: radial-gradient(circle 15px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 15px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat; /* taste-skill-ignore: notch mask */
}
.coupon__left, .coupon__right { padding: 32px 24px; }
.coupon__left { display: flex; flex-direction: column; gap: 18px; border-bottom: 5px dotted rgba(244, 235, 225, .55); }
.coupon h2 { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem); max-width: 15ch; }
.coupon__left p { color: #FFF1E8; max-width: 36ch; }
.coupon__right { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.coupon__right .btn { width: 100%; }
.coupon__line { font-size: 17px; color: #FFF1E8; text-decoration: none; }
a.coupon__line { font: 500 26px/1.2 var(--serif); color: #fff; margin-top: 6px; }
.coupon__map { color: #fff; font-weight: 500; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }

/* footer: the arch built large */
.foot { background: var(--night); color: var(--on-dark); padding: 56px var(--m) calc(24px + env(safe-area-inset-bottom)); }
.foot__arcade { display: flex; gap: 4px; height: 22svh; min-height: 150px; align-items: flex-end; }
.foot__arcade i { flex: 1; height: var(--h); border-radius: var(--arch); background: var(--clay); transform-origin: bottom; }
.foot__arcade i:nth-child(4n+2) { background: var(--clay-deep); }
.foot__arcade i:nth-child(4n+3) { background: var(--clay-mid); }
.foot__arcade i:nth-child(4n) { background: var(--clay-pale); }
.foot__row { display: grid; gap: 22px; margin-top: 48px; }
.foot__name { font: 500 30px/1.1 var(--serif); }
.foot__links { display: flex; flex-wrap: wrap; gap: 0 22px; }
.foot__links a, .foot__contact a { color: var(--on-dark); text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; }
.foot__contact { font-size: 15px; color: rgba(246, 236, 227, .82); }
.foot__row--last { margin-top: 40px; align-items: center; }
.foot__credits { font-size: var(--step-small); color: rgba(246, 236, 227, .72); max-width: 70ch; }
.foot .btn--small { justify-self: start; }

/* phone dock */
.dock {
  position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 15;
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; border-radius: 999px;
  background: var(--clay); color: #fff; text-decoration: none; font-weight: 500;
  box-shadow: 0 12px 30px rgba(59, 34, 25, .3); /* taste-skill-ignore: floating dock */
  transform: translateY(140%); transition: transform .5s var(--ease);
}
.dock.is-on { transform: none; }
.dock svg { width: 22px; height: 22px; fill: currentColor; }
.dock-on .bar .btn--small { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.bar .btn--small { transition: opacity .3s var(--ease), transform .3s var(--ease), background-color .3s var(--ease); }

/* document viewer */
.viewer { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(30, 18, 13, .95); color: #fff; }
.viewer[open] { display: flex; flex-direction: column; animation: fade .35s var(--ease); }
.viewer::backdrop { background: transparent; }
.viewer__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--m); padding-top: max(14px, env(safe-area-inset-top)); }
.viewer__bar p { font: 500 22px/1.2 var(--serif); }
.viewer__close { all: unset; cursor: pointer; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); flex: none; transition: background-color .2s; }
.viewer__close:hover { background: rgba(255,255,255,.22); }
.viewer__close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.viewer__close svg { width: 20px; height: 20px; stroke: #fff; stroke-width: 1.8; }
.viewer__stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 8px 12px max(24px, env(safe-area-inset-bottom)); overflow: auto; }
.viewer__stage img { max-width: 100%; max-height: 100%; object-fit: contain; animation: pop .5s var(--ease); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.98); } }

/* ---------- motion (content stays visible without script) ---------- */
.js .rise { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .in .rise, .js .rise.in { opacity: 1; transform: none; }
.js .arcade i, .js .foot__arcade i { transform: scaleY(0); transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 55ms); }
.js .in .arcade i, .js .in.foot__arcade i { transform: scaleY(1); }
.js .hero__photo img { transform: scale(1.12); transition: transform 2.2s var(--ease); }
.js .hero.in .hero__photo img { transform: scale(1.02); }
.js .approach__pic { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease) .2s; }
.js .approach.in .approach__pic { clip-path: inset(0 0 0 0); }
.js .coupon.rise { transform: translateY(48px) rotate(-1.2deg); }
.js .coupon.rise.in { transform: none; }

/* ---------- tablet ---------- */
@media (min-width: 640px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile--head { grid-column: 1 / -1; }
  .coupon { grid-template-columns: 46fr 54fr;
    -webkit-mask: radial-gradient(circle 15px at 46% 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 15px at 46% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; /* taste-skill-ignore: notch mask */
    mask: radial-gradient(circle 15px at 46% 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 15px at 46% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; } /* taste-skill-ignore: notch mask */
  .coupon__left { border-bottom: 0; border-right: 5px dotted rgba(244, 235, 225, .55); justify-content: space-between; }
  .coupon__left, .coupon__right { padding: 48px; }
  .foot__row { grid-template-columns: 1.2fr 1fr 1fr; align-items: start; }
  .foot__row--last { grid-template-columns: 1fr auto; }
}

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  .bar__nav { display: flex; gap: 30px; }
  .hero { grid-template-columns: 1fr 1fr; height: 100svh; min-height: 680px; padding: 72px 12px 12px; }
  .hero__photo { order: 0; height: 100%; min-height: 0; }
  .hero__card { margin-top: 0; padding: 0 40px 28px; justify-content: space-between; }
  .arcade { height: 56px; margin-bottom: 0; }
  .hero h1 { font-size: var(--step-hero); }
  .hero__lead { font-size: 19px; }
  .hero__body .btn { width: auto; }
  .said { grid-template-columns: 5fr 6fr; align-items: center; column-gap: 6vw; margin: var(--gap) auto; width: calc(100% - 2 * var(--m)); }
  .requests { grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
  .requests__head { grid-column: 1 / 6; align-self: start; position: sticky; top: 120px; }
  .req { grid-column: 7 / 13; gap: 44px; }
  .approach { padding: 0 20px; }
  .approach__panel { grid-template-columns: 1fr 1fr; padding: 64px 56px 0; gap: 0 6vw; min-height: 110svh; }
  .approach__left { display: flex; flex-direction: column; justify-content: space-between; gap: 56px; }
  .approach__pic { order: 0; width: min(38vw, 560px); margin: 0 0 -12%; }
  .approach__right { padding-bottom: 64px; max-width: 460px; }
  .price { grid-template-columns: 7fr 5fr; }
  .plan { min-height: 90svh; padding: 48px; }
  .plan__foot { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .plan .btn { width: auto; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .tile--head { grid-column: span 2; }
  .tile, .tile--doc { min-height: 300px; padding: 32px; }
  .contact { padding: var(--gap) var(--m); }
  .foot { padding-top: 72px; }
  .foot__arcade { height: 34svh; }
  .foot__row { grid-template-columns: 2fr 1.4fr 1fr; }
  .dock { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .rise, .js .coupon.rise { opacity: 1; transform: none; }
  .js .arcade i, .js .foot__arcade i, .js .hero__photo img { transform: none; }
  .js .approach__pic { clip-path: none; }
}
