@font-face {
  font-family: Literata;
  src: url("/fonts/Literata-h.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}
@font-face {
  font-family: "Golos Text";
  src: url("/fonts/GolosText.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
:root {
  --cream: #f4efe6;
  --terra: #c4502e;
  --terra-dark: #a03e20;
  --ink: #2e1f17;
  --line: rgba(46, 31, 23, 0.2);
  --gutter: 48px;
  --header-h: 72px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-x: calc(env(safe-area-inset-left, 0px) + env(safe-area-inset-right, 0px));
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--safe-top) + 16px);
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font:
    400 17px/1.65 "Golos Text",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
button,
input {
  font: inherit;
}
button,
a,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--terra-dark);
  outline-offset: 5px;
}
::selection {
  background: var(--terra);
  color: var(--cream);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-family: Literata, serif;
  line-height: 1.13; /* h1/h2 ниже: при 1.13 выделение следующей строки закрашивает буквы */
  letter-spacing: -0.045em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(3.5rem, 6.3vw, 6.5rem);
  font-weight: 650;
  line-height: 1.28;
  margin-bottom: 24px;
}
h2 {
  font-size: clamp(2.4rem, 4.3vw, 4.3rem);
  font-weight: 600;
  line-height: 1.24;
  margin-bottom: 28px;
}
h3 {
  font-size: 1.7rem;
  font-weight: 650;
  letter-spacing: -0.025em;
}
p {
  max-width: 68ch;
}
.wrap {
  width: min(1240px, calc(100% - 2 * var(--gutter) - var(--safe-x)));
  margin-inline: auto;
}
main {
  overflow-x: clip;
}
.narrow {
  max-width: 820px;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 16px;
  padding: 12px;
  background: var(--cream);
  z-index: 100;
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: none;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: var(--safe-top);
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
}
.logo img,
.logo svg {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
}
.logo-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.logo-text strong {
  font: 650 1.25rem/1.2 Literata, serif;
  letter-spacing: -0.025em;
  white-space: nowrap;
}
.logo-text small {
  font: 500 0.625rem/1.3 "Golos Text", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra-dark);
  white-space: nowrap;
}
.site-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
}
.site-nav a,
.header-link {
  text-decoration: none;
}
.site-nav a:hover,
.header-link:hover {
  color: var(--terra-dark);
  text-decoration: underline;
}
.header-link {
  font-size: 14px;
  border-bottom: 1px solid var(--ink);
}
.menu-toggle,
.site-menu .menu-cta {
  display: none;
}
.menu-toggle {
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s, background-color 0.2s;
}
.menu-toggle span {
  position: relative;
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-toggle span::before {
  top: -6px;
}
.menu-toggle span::after {
  top: 6px;
}
.menu-toggle[aria-expanded="true"] span {
  background-color: transparent;
}
.menu-toggle[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}
.hero {
  padding: 100px 0 110px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 6%;
  align-items: center;
}
.hero-subtitle {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 500;
  margin-bottom: 20px;
}
.lead {
  font-size: 17px;
  line-height: 1.7;
  max-width: 49ch;
}
.hero-offer {
  font-size: 14px;
  margin: 26px 0 18px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 13px 24px;
  background: var(--terra-dark);
  color: var(--cream);
  border: 1px solid transparent;
  border-radius: 5px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition:
    transform 0.18s,
    background-color 0.18s;
}
.btn:hover {
  background: var(--ink);
  transform: translateY(-2px);
}
.text-link {
  font-size: 14px;
}
.section {
  padding: 94px 0;
  border-top: 1px solid var(--line);
}
.section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 9%;
  margin-bottom: 46px;
}
.section-heading h2 {
  margin-bottom: 0;
}
.section-heading p {
  max-width: 38ch;
  margin-bottom: 4px;
}
.brand-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.specimen {
  border: 1px solid var(--line);
  padding: 30px;
  display: flex;
  flex-direction: column;
  min-height: 390px;
  border-radius: 4px;
}
.specimen-label {
  font-size: 12px;
}
.specimen-type {
  background: var(--ink);
  color: var(--cream);
}
.specimen-type > p {
  font: 500 clamp(2.5rem, 4.2vw, 4rem) / 1.24 Literata;
  letter-spacing: -0.05em;
  margin: 55px 0;
}
.specimen-post {
  background: var(--cream);
  transform: rotate(2deg);
}
.specimen-post h3 {
  font-size: clamp(1.8rem, 3vw, 2.9rem);
  line-height: 1.24;
  margin: 58px 0 20px;
}
.specimen-post > p {
  font-size: 14px;
  max-width: 30ch;
}
.specimen-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  font-size: 12px;
}
.specimen-bottom img {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
}
.palette {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.swatch {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  line-height: 1.35;
}
.swatch-color {
  height: 56px;
  border-radius: 4px;
}
.swatch-cream .swatch-color {
  background: var(--cream);
  border: 1px solid var(--line);
}
.swatch-terra .swatch-color {
  background: var(--terra);
}
.swatch-terra-dark .swatch-color {
  background: var(--terra-dark);
}
.swatch-ink .swatch-color {
  background: var(--ink);
}
.showcase-note {
  font-size: 13px;
  margin: 30px 0 0;
  max-width: 70ch;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
  counter-reset: steps;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 25px;
}
.steps li {
  border-top: 1px solid var(--ink);
  padding-top: 20px;
  counter-increment: steps;
}
.steps li:before {
  content: "0" counter(steps);
  font-size: 13px;
  color: var(--terra-dark);
  display: block;
  margin-bottom: 30px;
}
.steps h3 {
  font-size: 1.25rem;
}
.steps p {
  font-size: 14px;
  line-height: 1.65;
}
.section-lead {
  max-width: 72ch;
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 0;
  list-style: none;
  margin: 48px 0 24px;
}
.plan {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 38px 28px 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.plan h3 {
  font-size: 1.6rem;
  margin-bottom: 20px;
}
.plan > p:not(.plan-count):not(.plan-price):not(.badge) {
  font-size: 14px;
}
.plan-featured {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.badge {
  position: absolute;
  top: -15px;
  left: 24px;
  background: var(--terra-dark);
  color: var(--cream);
  padding: 4px 13px;
  border-radius: 3px;
  font-size: 11px;
}
.plan-count {
  font-size: 14px;
  margin: 0 0 8px;
}
.plan-count span {
  font-weight: 600;
}
.plan-price {
  font-size: clamp(1.5rem, 2.6vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  margin-bottom: 24px;
}
.plan-price small {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
}
.plan-link {
  margin-top: auto;
  padding-top: 22px;
  text-decoration: none;
  font-size: 14px;
  border-top: 1px solid var(--line);
}
.plan-featured .plan-link {
  border-color: rgba(244, 239, 230, 0.3);
}
.plan-link:hover {
  text-decoration: underline;
}
.plan-scope,
.plan-help,
.package-detail {
  font-size: 14px;
}
.package-detail {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
  margin: 22px 0;
}
.package-detail p {
  margin: 16px 0 0;
}
summary {
  cursor: pointer;
  min-height: 26px;
}
.extras {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 70px;
}
.extras li {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.extras h3 {
  font-size: 1.45rem;
}
.extras p {
  font-size: 15px;
  margin-bottom: 0;
}
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 9%;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq details:first-child {
  border-top: 1px solid var(--line);
}
.faq summary {
  font-size: 18px;
  font-weight: 500;
}
.faq details p {
  font-size: 15px;
  margin: 18px 0 0;
}
.contact {
  background: var(--ink);
  color: var(--cream);
  padding: 94px 0 calc(30px + env(safe-area-inset-bottom, 0px));
}
.contact h2 {
  font-size: clamp(2.8rem, 5.5vw, 5rem);
}
.contact-lead {
  max-width: 48ch;
}
.btn-light {
  background: var(--cream);
  color: var(--ink);
}
.btn-light:hover {
  background: var(--terra);
  color: var(--cream);
}
.contact-hint {
  font-size: 13px;
  margin: 22px 0 50px;
}
.footer-meta {
  display: flex;
  gap: 12px 30px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(244, 239, 230, 0.25);
  padding-top: 24px;
  font-size: 11px;
}
.footer-meta p {
  margin: 0;
}
.mail-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 25px;
  font-size: 13px;
}
.copy-mail {
  border: 1px solid currentColor;
  border-radius: 4px;
  color: inherit;
  background: transparent;
  min-height: 44px;
  padding: 8px 14px;
}
.copy-mail:hover {
  background: var(--cream);
  color: var(--ink);
}
[data-mail-field] {
  width: 100%;
  max-width: 320px;
  padding: 10px;
}
/* Ролики: окно-телефон рядом с текстом. Видео грузит studio.js, когда блок рядом. */
.with-phone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 64px;
  align-items: start;
}
.with-phone .narrow {
  max-width: 820px;
}
.phone {
  margin: 0;
  position: sticky;
  top: calc(var(--header-h) + var(--safe-top) + 24px);
}
.phone video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border: 1px solid var(--ink);
  border-radius: 24px;
  background: var(--cream);
}
.phone figcaption {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
}
.sound-btn {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--terra-dark);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.sound-btn:focus-visible {
  outline: 3px solid var(--terra-dark);
  outline-offset: 3px;
}
/* Шаги рядом с роликом — столбиком; выбранный шаг подсвечен, ролик показывает его. */
.with-phone .steps {
  grid-template-columns: 1fr;
  gap: 0;
}
.with-phone .steps li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 0 18px;
  padding: 20px 0;
}
.with-phone .steps li:before {
  grid-row: 1/3;
  margin: 4px 0 0;
}
.with-phone .steps p {
  margin-bottom: 0;
  max-width: 60ch;
}
.steps li[tabindex] {
  cursor: pointer;
}
.steps li[tabindex]:focus-visible {
  outline: 3px solid var(--terra-dark);
  outline-offset: 4px;
}
.steps li.is-active h3 {
  color: var(--terra-dark);
}
/* Пакеты: месяц, посты по дням недели */
.plan-cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  max-width: 168px;
  margin: 4px 0 18px;
}
.plan-cal i {
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--line);
}
.plan-featured .plan-cal i {
  background: rgba(244, 239, 230, 0.18);
}
.plan-cal i.b,
.plan-featured .plan-cal i.b {
  background: var(--terra);
}
/* «Как это устроено»: 5 сцен кодом вместо видео. Координаты — как в ролике GgOrder
   (кадр 1080×1920): --u = 1 пиксель исходника, считается от ширины окна (container query). */
.screen {
  position: relative;
  aspect-ratio: 9 / 16;
  container-type: inline-size;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 24px;
  background: var(--cream);
}
.scene {
  --u: calc(100cqw / 1080);
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  font: 500 calc(44 * var(--u)) / 1.25 "Golos Text", system-ui, sans-serif;
  color: var(--ink);
}
.scene.on {
  opacity: 1;
  visibility: visible;
}
.scene p {
  max-width: none;
  margin: 0;
}
.scene .t {
  position: absolute;
  left: calc(70 * var(--u));
  right: calc(70 * var(--u));
  top: calc(200 * var(--u));
  text-align: center;
  font: 650 calc(84 * var(--u)) / 1.1 Literata, serif;
  letter-spacing: -0.03em;
}
.scene em {
  font-style: normal;
  color: var(--terra);
}
.scene .card {
  position: absolute;
  left: calc(90 * var(--u));
  width: calc(900 * var(--u));
  top: calc(500 * var(--u));
  box-sizing: border-box;
  padding: calc(44 * var(--u));
  border-radius: calc(36 * var(--u));
  background: #fffcf7;
  box-shadow: 0 calc(30 * var(--u)) calc(80 * var(--u)) rgba(46, 31, 23, 0.13);
}
.scene .h,
.scene .row b {
  font: 700 calc(46 * var(--u)) / 1.2 Literata, serif;
}
.scene .ok,
.scene .no {
  flex: none;
  position: relative;
  width: calc(44 * var(--u));
  height: calc(44 * var(--u));
  border-radius: 50%;
  background: var(--terra);
}
.scene .ok::after {
  content: "";
  position: absolute;
  left: 32%;
  top: 22%;
  width: 26%;
  height: 44%;
  border: solid #fffcf7;
  border-width: 0 calc(5 * var(--u)) calc(5 * var(--u)) 0;
  transform: rotate(45deg);
}
.scene .no {
  background: #8a7a6e;
}
.scene .no::after {
  content: "×";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fffcf7;
  font-size: calc(40 * var(--u));
  line-height: 1;
}
.scene .type {
  display: inline-block;
}
/* анкета */
.sc-form .card {
  height: calc(640 * var(--u));
}
.sc-form .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
@property --n {
  syntax: "<integer>";
  inherits: false;
  initial-value: 30;
}
.sc-form .count::before {
  counter-reset: n var(--n);
  content: counter(n) " / 30";
  font-weight: 600;
  font-size: calc(40 * var(--u));
  color: var(--terra);
}
.sc-form .progress,
.sc-form .field {
  display: block;
  border-radius: calc(18 * var(--u));
  background: #e6ddd0;
}
.sc-form .progress {
  height: calc(10 * var(--u));
  margin-top: calc(24 * var(--u));
}
.sc-form .progress i,
.sc-form .field i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--terra);
  transform-origin: left;
}
.sc-form .q {
  margin-top: calc(34 * var(--u));
}
.sc-form .field {
  margin-top: calc(14 * var(--u));
  padding: calc(20 * var(--u)) calc(22 * var(--u));
  background: #f6f0e7;
}
.sc-form .field i {
  width: 86%;
  height: calc(20 * var(--u));
  background: #d9cdbe;
}
.scene .quote {
  position: absolute;
  left: calc(90 * var(--u));
  width: calc(900 * var(--u));
  height: calc(150 * var(--u));
  top: calc(1200 * var(--u));
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: calc(26 * var(--u));
  padding-left: calc(40 * var(--u));
  border-radius: calc(36 * var(--u));
  background: #fffcf7;
  box-shadow: 0 calc(30 * var(--u)) calc(80 * var(--u)) rgba(46, 31, 23, 0.13);
  font-weight: 600;
}
.scene .quote.bad {
  top: calc(1380 * var(--u));
  background: #efe8dd;
  box-shadow: none;
  font-weight: 400;
  color: #8a7a6e;
}
.scene s {
  position: relative;
  text-decoration: none;
}
.scene s::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 54%;
  height: calc(5 * var(--u));
  border-radius: calc(3 * var(--u));
  background: #8a7a6e;
  transform-origin: left;
}
/* бриф */
.sc-brief .card {
  height: calc(940 * var(--u));
}
.sc-brief .r {
  display: flex;
  align-items: center;
  gap: calc(28 * var(--u));
  margin-top: calc(40 * var(--u));
  padding-top: calc(34 * var(--u));
  border-top: calc(2 * var(--u)) solid #e6ddd0;
  font-weight: 600;
  font-size: calc(46 * var(--u));
}
.sc-brief small {
  display: block;
  font-size: calc(32 * var(--u));
  font-weight: 500;
  color: #8a7a6e;
}
/* план и согласование */
.scene .cal {
  left: calc(60 * var(--u));
  width: calc(960 * var(--u));
  height: calc(850 * var(--u));
  padding: calc(40 * var(--u)) calc(36 * var(--u));
}
.scene .cal .h {
  margin-left: calc(4 * var(--u));
}
.scene .tag {
  position: absolute;
  right: calc(40 * var(--u));
  top: calc(42 * var(--u));
  padding: calc(8 * var(--u)) calc(22 * var(--u));
  border-radius: calc(30 * var(--u));
  background: #f3d9cc;
  color: var(--terra-dark);
  font-size: calc(32 * var(--u));
  font-weight: 600;
}
.scene .days,
.scene .grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.scene .days {
  margin-top: calc(40 * var(--u));
  text-align: center;
  font-size: calc(30 * var(--u));
  font-weight: 600;
  color: #8a7a6e;
}
.scene .days .p {
  color: var(--terra);
}
.scene .grid {
  margin-top: calc(26 * var(--u));
  row-gap: calc(8 * var(--u));
  column-gap: calc(8 * var(--u));
}
.scene .grid i {
  position: relative;
  height: calc(142 * var(--u));
  border-radius: calc(18 * var(--u));
  background: #f8f3ec;
}
.scene .grid small {
  position: absolute;
  left: calc(12 * var(--u));
  top: calc(8 * var(--u));
  font-size: calc(24 * var(--u));
  color: #8a7a6e;
}
.scene .grid b {
  position: absolute;
  left: calc(6 * var(--u));
  right: calc(6 * var(--u));
  bottom: calc(8 * var(--u));
  min-height: calc(74 * var(--u));
  display: grid;
  place-items: center;
  padding: calc(6 * var(--u));
  box-sizing: border-box;
  border-radius: calc(14 * var(--u));
  background: #f3d9cc;
  color: var(--terra-dark);
  font-size: calc(23 * var(--u));
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
}
.scene .swap span {
  grid-area: 1 / 1;
}
.scene .swap {
  background: var(--terra);
  color: var(--cream);
}
.scene .swap span:first-child {
  opacity: 0;
}
.scene .note {
  position: absolute;
  left: calc(60 * var(--u));
  width: calc(960 * var(--u));
  top: calc(1390 * var(--u));
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: calc(24 * var(--u));
  padding: calc(34 * var(--u));
  border-radius: calc(36 * var(--u));
  background: #fffcf7;
  box-shadow: 0 calc(30 * var(--u)) calc(80 * var(--u)) rgba(46, 31, 23, 0.13);
  font-size: calc(40 * var(--u));
}
.scene .cursor {
  position: absolute;
  left: calc(528 * var(--u));
  top: calc(950 * var(--u));
  width: calc(64 * var(--u));
  fill: var(--ink);
  stroke: #fffcf7;
  stroke-width: 2.2;
  stroke-linejoin: round;
  filter: drop-shadow(0 calc(6 * var(--u)) calc(10 * var(--u)) rgba(46, 31, 23, 0.25));
}
/* тексты и визуал */
.sc-text .card {
  top: calc(480 * var(--u));
  padding: calc(36 * var(--u));
}
.sc-text .pic {
  position: relative;
  overflow: hidden;
  height: calc(400 * var(--u));
  border-radius: calc(26 * var(--u));
  background: linear-gradient(135deg, var(--terra), var(--terra-dark));
}
.sc-text .pic::before {
  content: "";
  position: absolute;
  right: calc(-80 * var(--u));
  top: calc(-80 * var(--u));
  width: calc(360 * var(--u));
  height: calc(360 * var(--u));
  border-radius: 50%;
  background: rgba(244, 239, 230, 0.14);
}
.sc-text .pic b {
  position: absolute;
  left: calc(40 * var(--u));
  bottom: calc(40 * var(--u));
  font: 700 calc(66 * var(--u)) / 1.05 Literata, serif;
  color: var(--cream);
}
.sc-text .bar {
  display: block;
  height: calc(22 * var(--u));
  margin-top: calc(18 * var(--u));
  border-radius: calc(22 * var(--u));
  background: #e6ddd0;
}
.sc-text .bar:first-of-type {
  margin-top: calc(40 * var(--u));
}
.sc-text .body {
  margin: calc(34 * var(--u)) 0 calc(12 * var(--u));
  line-height: 1.3;
}
.sc-text .body s {
  color: #8a7a6e;
}
.sc-text .body s::after {
  background: var(--terra);
}
.sc-text .body .type {
  color: var(--terra);
  font-weight: 600;
}
.sc-text .badges {
  position: absolute;
  left: calc(90 * var(--u));
  top: calc(1420 * var(--u));
  display: flex;
  gap: calc(24 * var(--u));
}
.sc-text .badges > span {
  display: flex;
  align-items: center;
  gap: calc(16 * var(--u));
  padding: calc(18 * var(--u)) calc(30 * var(--u)) calc(18 * var(--u)) calc(18 * var(--u));
  border-radius: calc(40 * var(--u));
  background: #fffcf7;
  box-shadow: 0 calc(16 * var(--u)) calc(40 * var(--u)) rgba(46, 31, 23, 0.12);
  font-size: calc(38 * var(--u));
  font-weight: 600;
}
[hidden] {
  display: none !important;
}
@media (prefers-reduced-motion: no-preference) {
  /* Сцены «Как это устроено» играют, только когда окно на экране (.run ставит studio.js).
     Без .run видна готовая картинка шага. */
  .scene {
    transition: opacity 0.3s, visibility 0.3s;
  }
  .run .on .t {
    animation: gg-rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  .run .on .card,
  .run .on .quote,
  .run .on .note {
    animation: gg-up 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.1) both var(--d, 0.2s);
  }
  .run .on .q,
  .run .on.sc-brief .r {
    animation: gg-slide 0.5s ease-out both var(--d);
  }
  .run .on.sc-form .count {
    animation: gg-count 2.6s linear both 0.4s;
  }
  .run .on.sc-form .progress i {
    animation: gg-grow 2.6s linear both 0.4s;
  }
  .run .on.sc-form .q .field i {
    animation: gg-grow 0.8s ease-out both calc(var(--d) + 0.2s);
  }
  .run .on .quote.bad s::after {
    animation: gg-grow 0.35s ease-out both 5s;
  }
  .run .on.sc-brief .ok,
  .run .on .note .ok,
  .run .on .badges .ok {
    animation: gg-pop 0.4s cubic-bezier(0.3, 1.6, 0.5, 1) both calc(var(--d, 3s) + 0.3s);
  }
  .run .on.sc-brief .type {
    animation: gg-type 0.6s steps(18) both calc(var(--d) + 0.15s);
  }
  .run .on.sc-plan .grid b {
    animation: gg-pop 0.4s cubic-bezier(0.3, 1.6, 0.5, 1) both var(--d);
  }
  .run .on.sc-approve .cursor {
    animation: gg-cursor 1.6s cubic-bezier(0.4, 0, 0.2, 1) both 0.8s;
  }
  .run .on.sc-approve .swap {
    animation: gg-swap 0.3s both 2.5s;
  }
  .run .on.sc-approve .swap span:first-child {
    animation: gg-hide 0.2s both 2.5s;
  }
  .run .on.sc-approve .swap span:last-child {
    animation: gg-fade 0.25s both 2.6s;
  }
  .run .on.sc-text .body s::after {
    animation: gg-grow 0.35s ease-out both 1.8s;
  }
  .run .on.sc-text .body .type {
    animation: gg-type 0.9s steps(27) both 2.3s;
  }
  .run .on .badges > span {
    animation: gg-pop 0.4s cubic-bezier(0.3, 1.6, 0.5, 1) both var(--d);
  }
  @keyframes gg-rise {
    from { opacity: 0; transform: translateY(calc(40 * var(--u))); filter: blur(3px); }
  }
  @keyframes gg-up {
    from { opacity: 0; transform: translateY(calc(120 * var(--u))) scale(0.94); }
  }
  @keyframes gg-slide {
    from { opacity: 0; transform: translateX(calc(60 * var(--u))); }
  }
  @keyframes gg-grow {
    from { transform: scaleX(0); }
  }
  @keyframes gg-pop {
    from { transform: scale(0); }
  }
  @keyframes gg-count {
    from { --n: 1; }
  }
  @keyframes gg-type {
    from { clip-path: inset(0 100% 0 0); }
  }
  @keyframes gg-fade {
    from { opacity: 0; }
  }
  @keyframes gg-hide {
    from { opacity: 1; }
    to { opacity: 0; }
  }
  /* до клика тема ещё старая: светлая заливка */
  @keyframes gg-swap {
    from { background: #f3d9cc; color: var(--terra-dark); outline: calc(4 * var(--u)) solid var(--terra); }
  }
  @keyframes gg-cursor {
    from { transform: translate(calc(232 * var(--u)), calc(550 * var(--u))); }
    85% { transform: none; }
    92% { transform: scale(0.88); }
  }
  /* Знак в шапке собирается один раз: дуги доворачиваются, буквы въезжают. */
  .gg-mark path {
    transform-box: view-box;
    transform-origin: 627px 621px;
    animation: gg-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  .gg-mark .gg-a1 { --from: rotate(-100deg); }
  .gg-mark .gg-l1 { --from: translate(-90px, 90px); animation-delay: 0.12s; }
  .gg-mark .gg-l2 { --from: translate(90px, -90px); animation-delay: 0.2s; }
  .gg-mark .gg-a2 { --from: rotate(-100deg); animation-delay: 0.08s; }
  @keyframes gg-in {
    from {
      opacity: 0;
      transform: var(--from);
    }
  }
  .cal-ready .plan-cal i.b {
    transform: scale(0);
  }
  .cal-ready.is-in .plan-cal i.b {
    transform: none;
    transition: transform 0.35s cubic-bezier(0.3, 1.5, 0.5, 1) calc(var(--k) * 45ms);
  }
  .hero-text {
    animation: arrival 0.7s both;
  }
  @keyframes arrival {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
@media (min-width: 1600px) {
  .hero {
    padding-block: 130px;
  }
}
@media (max-width: 1000px) {
  :root {
    --gutter: 24px;
  }
  .header-link {
    display: none;
  }
  .hero {
    padding-block: 75px;
  }
  .hero-grid {
    gap: 40px;
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .plan {
    padding: 30px 18px 22px;
  }
  .brand-showcase {
    gap: 12px;
  }
  .specimen {
    padding: 24px;
    min-height: 330px;
  }
}
@media (max-width: 700px) {
  :root {
    --gutter: 18px;
    --header-h: 60px;
  }
  .header-row {
    flex-wrap: wrap;
    gap: 4px 16px;
  }
  .logo {
    gap: 0.625rem;
  }
  .logo img,
  .logo svg {
    width: 40px;
    height: 40px;
  }
  .logo-text strong {
    font-size: 1.0625rem;
  }
  .logo-text small {
    font-size: 0.5625rem;
    letter-spacing: 0.08em;
  }
  /* Без JS: ссылки строкой под логотипом. С JS: кнопка «три черты» и выпадающая панель. */
  .site-menu {
    width: 100%;
    padding-bottom: 10px;
  }
  .site-nav {
    flex-wrap: wrap;
    gap: 6px 18px;
  }
  .menu-ready .header-row {
    flex-wrap: nowrap;
  }
  .menu-ready .menu-toggle {
    display: grid;
  }
  .menu-ready .site-menu {
    position: fixed;
    left: 0;
    right: 0;
    top: calc(var(--header-h) + var(--safe-top) + 1px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - var(--header-h) - var(--safe-top));
    max-height: calc(100dvh - var(--header-h) - var(--safe-top));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px calc(var(--gutter) + env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) calc(var(--gutter) + env(safe-area-inset-left, 0px));
    background: var(--cream);
    border-bottom: 1px solid var(--line);
  }
  .menu-ready.menu-open .site-menu {
    display: flex;
  }
  .menu-ready.menu-open::after {
    content: "";
    position: fixed;
    inset: calc(var(--header-h) + var(--safe-top) + 1px) 0 0;
    z-index: -1;
    background: rgba(46, 31, 23, 0.35);
  }
  .menu-ready .site-nav {
    flex-direction: column;
    gap: 0;
    font-size: 18px;
  }
  .menu-ready .site-nav a,
  .menu-ready .header-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
  }
  .menu-ready .menu-cta {
    display: inline-flex;
    margin-top: 20px;
    max-width: none;
  }
  .hero {
    padding: 52px 0 50px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr); /* 1fr растягивался по h1 и давал скролл на 360 */
    gap: 35px;
  }
  h1 {
    font-size: clamp(3.15rem, 11.5vw, 5rem);
  }
  .hero-subtitle {
    font-size: 22px;
  }
  .lead {
    font-size: 16px;
  }
  .section {
    padding: 58px 0;
  }
  .section-heading,
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .section-heading {
    margin-bottom: 30px;
  }
  .brand-showcase {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .specimen {
    min-height: 0;
    padding: 22px;
  }
  .specimen-post {
    transform: none;
  }
  .specimen-type > p {
    font-size: clamp(2.2rem, 10vw, 3rem);
    margin: 36px 0;
  }
  .specimen-post h3 {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    margin: 36px 0 16px;
  }
  .specimen-bottom {
    gap: 12px;
  }
  .specimen-bottom img {
    width: 32px;
    height: 32px;
  }
  .palette {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
  }
  .swatch-color {
    height: 44px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 30px;
  }
  .steps li {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 0 18px;
    padding: 22px 0;
  }
  .steps li:before {
    grid-row: 1/3;
    margin-top: 4px;
  }
  .steps h3 {
    margin-bottom: 9px;
    font-size: 1.4rem;
  }
  .steps p {
    margin-bottom: 0;
  }
  .plans {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 35px;
  }
  .plan {
    padding: 30px 25px 24px;
  }
  .plan-price {
    font-size: 2.25rem;
  }
  .plan h3 {
    margin-bottom: 15px;
  }
  .plan > p:not(.plan-count):not(.plan-price):not(.badge) {
    max-width: 36ch;
  }
  .extras {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .contact {
    padding: 62px 0 28px;
  }
  .actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .btn {
    width: 100%;
    max-width: 340px;
  }
  .contact .btn {
    max-width: none;
  }
  .footer-meta {
    flex-direction: column;
  }
}
@media (max-width: 1000px) {
  .with-phone {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 36px;
  }
}
@media (max-width: 700px) {
  .with-phone {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .phone {
    position: static;
    width: min(240px, 70vw);
    margin-inline: auto;
  }
  /* на телефоне окно с роликом — сразу под заголовком, шаги ниже */
  .how-phone {
    grid-row: 1;
  }
}
@media (max-width: 380px) {
  .logo-text small {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  .site-header,
  .actions,
  .mail-tools {
    display: none;
  }
  .section,
  .hero,
  .contact {
    padding: 20px 0;
    background: transparent;
    color: var(--ink);
  }
  .wrap {
    width: 100%;
  }
  .hero-grid {
    display: block;
  }
  .plans {
    break-inside: avoid;
  }
}

/* ---------- Тема оформления и знак на первом экране (22.10.2026) ---------- */
:root {
  --muted: #6e5e52;
  --glass: rgba(255, 252, 247, 0.82);
}
/* Тёмная тема: data-theme ставит /app/theme.js (авто - как в системе). Токены меняются местами:
   страница чернильная, текст кремовый. Акцент светлее, чтобы читался на тёмном. */
:root[data-theme="dark"] {
  --cream: #2e1f17;
  --ink: #f4efe6;
  --terra: #d9633f;
  --terra-dark: #e98a66;
  --line: rgba(244, 239, 230, 0.16);
  --muted: #bba996;
  --glass: rgba(58, 42, 32, 0.86);
  color-scheme: dark;
}
/* Образцы бренда и экраны в телефонах - иллюстрации: в тёмной теме они остаются в настоящих цветах ГГ. */
:root[data-theme="dark"] :is(.specimen, .swatch-color, .phone, .screen, .plan-cal) {
  --cream: #f4efe6;
  --ink: #2e1f17;
  --terra: #c4502e;
  --terra-dark: #a03e20;
  --line: rgba(46, 31, 23, 0.2);
  color-scheme: light;
}
/* Тёмные плашки светлой темы (контакты, выделенный пакет) в тёмной теме чуть светлее страницы,
   а внутри - те же сочетания, что в светлой: светлая кнопка, светлый текст. */
:root[data-theme="dark"] :is(.contact, .plan-featured) {
  --ink: #3a2a20;
  --cream: #f4efe6;
}
/* Пустые дни в календаре пакетов - светлые на тёмной карточке, как у выделенного пакета */
:root[data-theme="dark"] .plan-cal i:not(.b) {
  background: rgba(244, 239, 230, 0.18);
}
:root[data-theme="dark"] .specimen-post {
  color: var(--ink);
}
:root[data-theme="dark"] .specimen,
:root[data-theme="dark"] .swatch-color {
  box-shadow: 0 0 0 1px rgba(244, 239, 230, 0.18);
}
body {
  transition: background-color 0.25s ease, color 0.25s ease;
}
.gg-mark .gg-a1,
.gg-mark .gg-l1 {
  fill: var(--ink);
}
.gg-mark .gg-l2,
.gg-mark .gg-a2 {
  fill: var(--terra);
}

/* переключатель темы: авто -> светлая -> тёмная */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  order: 3;
}
.theme-toggle:hover {
  border-color: var(--terra-dark);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.theme-toggle .fill {
  fill: currentColor;
  stroke: none;
}
.theme-toggle g {
  display: none;
}
:root[data-theme-choice="auto"] .ti-auto,
:root[data-theme-choice="light"] .ti-light,
:root[data-theme-choice="dark"] .ti-dark {
  display: inline;
}

/* знак из четырёх частей = четыре шага работы */
.mark-stage {
  position: relative;
  min-height: 480px;
}
.stage-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(290px, 60%);
  height: auto;
  translate: -50% -50%;
  overflow: visible;
}
/* --open: 1 - знак раздвинут, 0 - собран. Его ведёт прокрутка (studio.js), наведение на шаг раздвигает */
.mark-stage {
  --open: 0;
  --fold: 0;
}
.mark-stage.focus .stage-mark {
  --open: 1;
}
.stage-mark path {
  transform-box: view-box;
  transform: translate(calc(var(--dx) * var(--open)), calc(var(--dy) * var(--open)));
  transition:
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s;
}
.mark-stage.scrolling .stage-mark path {
  transition: transform 0.25s ease-out, opacity 0.3s;
}
.stage-mark .gg-a1 { --dx: -170px; --dy: -140px; }
.stage-mark .gg-l1 { --dx: -190px; --dy: 150px; }
.stage-mark .gg-l2 { --dx: 190px; --dy: -150px; }
.stage-mark .gg-a2 { --dx: 170px; --dy: 140px; }
.mark-stage.focus .stage-mark path:not(.hot) {
  opacity: 0.22;
}
.mark-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mark-steps li {
  position: absolute;
  z-index: 1;
}
.mark-steps li:nth-child(1) { top: 0; left: 0; }
.mark-steps li:nth-child(2) { bottom: 0; left: 0; }
.mark-steps li:nth-child(3) { top: 0; right: 0; }
.mark-steps li:nth-child(4) { bottom: 0; right: 0; }
.mark-stage.focus .mark-steps {
  --fold: 0;
}
.mark-stage.closed .mark-steps li {
  pointer-events: none;
}
.mark-steps li {
  opacity: calc(1 - var(--fold));
  transition: opacity 0.25s, transform 0.25s ease-out;
}
.mark-steps li:nth-child(1) { transform: translate(calc(var(--fold) * 60px), calc(var(--fold) * 50px)); }
.mark-steps li:nth-child(2) { transform: translate(calc(var(--fold) * 60px), calc(var(--fold) * -50px)); }
.mark-steps li:nth-child(3) { transform: translate(calc(var(--fold) * -60px), calc(var(--fold) * 50px)); }
.mark-steps li:nth-child(4) { transform: translate(calc(var(--fold) * -60px), calc(var(--fold) * -50px)); }
.mark-steps a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 9px 16px 9px 9px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 28px -18px rgba(46, 31, 23, 0.45);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.mark-steps i {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--cream);
  font: normal 700 12px/1 "Golos Text", sans-serif;
}
.mark-steps li:nth-child(n + 3) i {
  background: var(--terra-dark);
}
.mark-steps b {
  display: block;
  font-size: 14px;
  line-height: 1.25;
}
.mark-steps small {
  display: block;
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
}
.mark-steps li.hot a,
.mark-steps a:hover {
  border-color: var(--terra);
  box-shadow: 0 14px 30px -16px rgba(196, 80, 46, 0.6);
}
@media (prefers-reduced-motion: no-preference) {
  .mark-stage .stage-mark path {
    animation: mark-gather 1s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .mark-stage .gg-a1 { --from: translate(-260px, -200px); }
  .mark-stage .gg-l1 { --from: translate(-240px, 260px); animation-delay: 0.12s; }
  .mark-stage .gg-l2 { --from: translate(260px, -240px); animation-delay: 0.24s; }
  .mark-stage .gg-a2 { --from: translate(260px, 220px); animation-delay: 0.36s; }
  @keyframes mark-gather {
    from {
      opacity: 0;
      transform: var(--from);
    }
  }
  .mark-stage.gathered .stage-mark path {
    animation: none;
  }
  .mark-stage {
    animation: arrival 1s 0.1s both;
  }
}
@media (max-width: 1000px) {
  .mark-steps small {
    display: none;
  }
}
@media (max-width: 700px) {
  .theme-toggle {
    order: 0;
    margin-left: auto;
    width: 44px;
    padding: 0;
    justify-content: center;
  }
  .theme-name {
    display: none;
  }
  /* на узком экране шаги лежат сеткой под знаком */
  .mark-stage {
    min-height: 0;
    display: grid;
    gap: 22px;
  }
  .stage-mark {
    position: relative;
    left: auto;
    top: auto;
    translate: none;
    display: block;
    width: 190px;
    margin: 18px auto 26px;
  }
  .mark-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .mark-steps li {
    position: static;
    transform: none !important;
    opacity: 1;
  }
  .mark-steps a {
    height: 100%;
    padding-right: 10px;
  }
  .mark-steps small {
    display: block;
  }
}
