/* DOM — studio site. Palette and type taken from the DOM wordmark. */

:root {
  --ink: #131728;
  --ink-soft: #242a45;
  --paper: #ffffff;
  --sand: #f4f0e9;
  --sand-deep: #ebe5db;
  --line: #e2ddd3;
  --line-dark: rgba(255, 255, 255, 0.14);
  --acc: #c4615a;
  --acc-deep: #a84e48;
  --muted: #6a7086;
  --muted-dark: #a8adc0;
  --live: #3f8f65;

  --display: "Onest", "Golos Text", system-ui, sans-serif;
  --body: "Golos Text", "Onest", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

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

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ---------- header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.top__row {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  margin-right: auto;
}

.brand svg { width: 22px; height: 22px; flex: none; }

.brand small {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  align-self: flex-end;
  padding-bottom: 3px;
}

.nav {
  display: flex;
  gap: 26px;
  font-size: 15px;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.nav a:hover { border-bottom-color: var(--ink); }

.top__side {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang {
  display: flex;
  gap: 2px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lang a,
.lang span {
  padding: 3px 8px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
}

.lang .on {
  background: var(--ink);
  color: #fff;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

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

.btn--solid:hover {
  background: var(--acc);
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: var(--line-dark);
  color: #fff;
}

.btn--ghost:hover {
  border-color: #fff;
  transform: translateY(-1px);
}

.btn--outline {
  border-color: #cfc8bc;
  color: var(--ink);
}

.btn--outline:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.btn--sm { padding: 10px 16px; font-size: 14px; }

/* ---------- hero ---------- */

.hero {
  background: var(--ink);
  color: #fff;
  padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8vw, 104px);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -45% 40%;
  height: 90%;
  background: radial-gradient(closest-side, rgba(196, 97, 90, 0.28), transparent 70%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__copy { min-width: 0; }

.hero h1 {
  font-size: clamp(2.5rem, 4.9vw, 4.35rem);
  margin: 18px 0 0;
  color: #fff;
}

.hero h1 em {
  font-style: normal;
  color: var(--acc);
}

.hero__lead {
  margin-top: 22px;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.6;
  color: #d3d7e4;
  max-width: 46ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 40px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted-dark);
  text-transform: uppercase;
}

.hero__facts span { display: inline-flex; align-items: center; gap: 8px; }

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
  flex: none;
}

/* browser frame used for live screenshots */

.frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.55), 0 2px 0 rgba(255, 255, 255, 0.06) inset;
}

.frame__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  background: #f2efe9;
  border-bottom: 1px solid var(--line);
}

.frame__bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cfc8bc;
  flex: none;
}

.frame__url {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: #7b8095;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.frame img { width: 100%; height: auto; }

.hero__deck {
  position: relative;
  min-width: 0;
}

.hero__deck .frame + .frame {
  position: absolute;
  right: -18px;
  bottom: -42px;
  width: 44%;
  display: none;
}

.hero__caption {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted-dark);
  text-transform: uppercase;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ---------- sections ---------- */

.section { padding: clamp(56px, 7vw, 96px) 0; }

.section--sand { background: var(--sand); }

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

#how { padding-bottom: 0; }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section h2 {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  max-width: 22ch;
}

.section__lead {
  margin-top: 16px;
  max-width: 56ch;
  color: var(--muted);
  font-size: 17px;
}

.section--ink .section__lead { color: #c3c8d8; }

/* ---------- work ---------- */

.work {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 34px);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.card__shot {
  display: block;
  text-decoration: none;
  border-radius: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover .card__shot {
  transform: translateY(-4px);
  box-shadow: 0 26px 50px -28px rgba(19, 23, 40, 0.45);
}

.card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.card h3 {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
  background: #fff;
}

.card__link {
  font-family: var(--mono);
  font-size: 12px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  white-space: nowrap;
}

.card__link:hover { border-bottom-color: var(--acc); color: var(--acc-deep); }

/* ---------- offer ---------- */

.offer {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}

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

.checklist li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
}

.checklist li:last-child { border-bottom: 1px solid var(--line); }

.checklist svg { flex: none; margin-top: 4px; color: var(--acc); }

.spec {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.spec__head {
  padding: 22px 24px;
  background: var(--ink);
  color: #fff;
}

.spec__price {
  font-family: var(--display);
  font-weight: 800;
  font-size: 44px;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-top: 12px;
}

.spec__price small {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted-dark);
  margin-left: 6px;
}

.spec dl {
  margin: 0;
  padding: 6px 24px 20px;
}

.spec dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.spec dl > div:last-child { border-bottom: 0; }

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

.spec dd { margin: 0; font-weight: 600; text-align: right; }

.spec__foot {
  padding: 0 24px 24px;
}

.spec__foot .btn { width: 100%; }

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

.step {
  background: var(--ink);
  padding: 30px 24px 34px;
  min-width: 0;
}

.step__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--acc);
}

.step h3 {
  font-size: 19px;
  margin: 14px 0 10px;
  color: #fff;
}

.step p {
  font-size: 15px;
  color: #b9bfd1;
  line-height: 1.55;
}

.step__when {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-dark);
  letter-spacing: 0.04em;
}

/* ---------- scope ---------- */

.scope {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}

.scope h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

.scope p.note {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 18px;
}

.plain {
  list-style: none;
  margin: 0;
  padding: 0;
}

.plain li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
}

.plain li::before {
  content: "—";
  color: var(--muted);
  flex: none;
}

/* ---------- pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
}

.plan {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.plan--hero { border-color: var(--ink); box-shadow: 0 22px 44px -32px rgba(19, 23, 40, 0.5); }

.plan__name {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.plan__price {
  font-family: var(--display);
  font-weight: 800;
  font-size: 38px;
  letter-spacing: -0.04em;
  margin: 12px 0 4px;
}

.plan__price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }

.plan__for {
  font-size: 15px;
  color: var(--muted);
  min-height: 44px;
}

.plan ul {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 15px;
}

.plan ul li { display: flex; gap: 10px; }

.plan ul li::before {
  content: "·";
  color: var(--acc);
  font-weight: 700;
}

.plan .btn { margin-top: auto; }

.plan__cta { margin-top: 24px; }

.extras {
  margin-top: clamp(24px, 3vw, 36px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 56px);
  max-width: 880px;
}

.extra {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.extra b { font-weight: 600; white-space: nowrap; }

/* ---------- contact ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.mail {
  display: inline-block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.7rem);
  letter-spacing: -0.03em;
  text-decoration: none;
  color: #fff;
  border-bottom: 2px solid var(--acc);
  padding-bottom: 4px;
  overflow-wrap: anywhere;
}

.mail:hover { color: var(--acc); }

.contact__list {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  font-size: 16px;
  color: #c3c8d8;
}

.contact__list a { color: #fff; text-decoration: none; border-bottom: 1px solid var(--line-dark); }

.contact__list a:hover { border-bottom-color: var(--acc); }

.brief {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 26px;
  background: rgba(255, 255, 255, 0.03);
}

.brief ol {
  margin: 14px 0 0;
  padding-left: 20px;
  color: #c3c8d8;
  font-size: 15.5px;
  display: grid;
  gap: 9px;
}

/* ---------- footer ---------- */

.foot {
  background: var(--ink);
  color: var(--muted-dark);
  border-top: 1px solid var(--line-dark);
  padding: 30px 0 40px;
  font-size: 14px;
}

.foot__row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  align-items: center;
  justify-content: space-between;
}

.foot__row span { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; }

.foot a { text-decoration: none; border-bottom: 1px solid transparent; }

.foot a:hover { border-bottom-color: var(--muted-dark); }

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover .card__shot,
  .btn:hover { transform: none; }
}

/* Russian runs longer: tighten the display sizes a notch. */
:lang(ru) .hero h1 { font-size: clamp(2rem, 4.2vw, 3.7rem); }
:lang(ru) .section h2 { font-size: clamp(1.75rem, 3.1vw, 2.7rem); }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__deck { order: 2; }
  .offer,
  .contact { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: 1fr; }
  .plan__for { min-height: 0; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .top__row { gap: 16px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .top__row { height: 60px; gap: 14px; }
  .brand small { display: none; }
  .work { grid-template-columns: 1fr; }
  .scope { grid-template-columns: 1fr; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: clamp(2.1rem, 8.4vw, 3rem); }
  .mail { font-size: clamp(1.35rem, 6.4vw, 2rem); }
  .card__meta { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (max-width: 420px) {
  .steps { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; }
}
