/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Public Sans', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  padding-top: 68px; /* compensates for fixed header, which no longer occupies flow space */
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

/* Inline prose links (FAQ answers, body copy) — coral + underline, per V3 spec.
   Nav links, buttons, and card links keep their own explicit styling and aren't affected. */
.faq__a a,
.step__text a,
.ed-item__text a,
.trust-point__text a,
.package__desc a,
.cta-section__text a,
.dsu__text a {
  color: var(--coral);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Visible focus for any interactive element without its own explicit focus style */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

/* ===== SELECTION & SCROLLBAR ===== */
::selection { background: var(--coral); color: var(--paper); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--coral); border-radius: 3px; }

/* ===== TOKENS — MANÓVIA Guidelines V3 (tempered brutalism) ===== */
:root {
  --ink:         #0F0F0F;  /* текст, инверсия, футер */
  --paper:       #FFFFFF;  /* основной фон — true white, без тепла */
  --coral:       #E2725B;  /* ЕДИНСТВЕННЫЙ акцент: кнопки, цены, разделители, буллиты */
  --coral-deep:  #C25940;  /* только hover кнопки, больше нигде */
  --stone:       #6E6E6E;  /* приглушённый текст на светлом */
  --stone-ink:   #9A9A9A;  /* приглушённый текст на тёмном */
  --warm:        #F7F3EC;  /* фон ТОЛЬКО в тёплых модулях: кейсы, финальный CTA */

  --font-display: 'Archivo', system-ui, sans-serif;
  --font-serif: 'Piazzolla', Georgia, serif;
  --font-body: 'Public Sans', system-ui, sans-serif;

  --rule: #E5E5E5;
  --rule-on-ink: rgba(255,255,255,.18);
  --rule-terra: rgba(226,114,91,.5);

  --container: 1180px;
  --px-mob: 20px;
  --px-desk: 48px;
  --section-py: clamp(80px, 11vw, 140px);
  --r-btn: 0px;
}

/* ===== CONTAINER ===== */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--px-mob);
}
@media (min-width: 768px) {
  .container { padding-inline: var(--px-desk); }
}

/* ===== TYPOGRAPHY ===== */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--stone);
  display: block;
  margin-bottom: 14px;
}
.section--ink .eyebrow { color: var(--stone-ink); }

/* ===== SCROLL REVEAL ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
}
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 54px;
  padding: 0 32px;
  border-radius: var(--r-btn);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: background .15s ease, color .15s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }

.btn--primary { background: var(--coral); color: var(--paper); }
.btn--primary:hover { background: var(--coral-deep); }

.btn--outline-ink { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn--outline-ink:hover { background: var(--ink); color: var(--paper); }

.btn--outline-paper { background: transparent; color: var(--paper); border: 1.5px solid var(--paper); }
.btn--outline-paper:hover { background: var(--paper); color: var(--ink); }

/* ===== SECTION BASE ===== */
.section { padding-block: var(--section-py); }
.section--paper { background: var(--paper); color: var(--ink); }
.section--ink { background: var(--ink); color: var(--paper); }
/* Warm register — V3 exception. Reserved for exactly two modules: cases (#stories)
   and the final CTA. Everywhere else stays true white/black. Text stays ink (dark),
   not white, since --warm is a light background. */
.section--warm { background: var(--warm); color: var(--ink); }

.section__h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 40px;
  max-width: 16ch;
  text-wrap: balance;
}
.section--ink .section__h2 { color: var(--paper); }

.section__lead {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--stone);
  max-width: 56ch;
  margin-top: -20px;
  margin-bottom: 48px;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.header__inner {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 24px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.header__logo-svg {
  width: 30px;
  height: 30px;
  color: var(--ink);
  flex-shrink: 0;
}
.header__logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.header__nav {
  display: none;
  align-items: center;
  gap: 2px;
  margin-inline: auto;
}
.header__nav-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  padding: 8px 12px;
  transition: color .15s;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.header__nav-link:hover { color: var(--coral); }

.header__cta {
  display: none;
  font-size: 14px;
  height: 42px;
  padding: 0 18px;
  flex-shrink: 0;
}

.header__burger {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
}
.header__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform .25s, opacity .25s;
}
.header__burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.header__burger.active span:nth-child(2) { opacity: 0; }
.header__burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (min-width: 768px) {
  .header__nav { display: flex; }
  .header__cta { display: inline-flex; }
  .header__burger { display: none; }
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
  position: fixed;
  inset: 68px 0 0 0;
  z-index: 99;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  padding: 24px var(--px-mob) 32px;
  transform: translateX(100%);
  transition: transform .3s ease;
}
.mobile-nav.open { transform: translateX(0); }

.mobile-nav__link {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.mobile-nav__cta {
  margin-top: 28px;
  width: 100%;
  justify-content: center;
  font-size: 16px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 96vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-block: clamp(64px, 10vw, 120px);
}
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: grayscale(1) contrast(1.15);
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(0deg, rgba(15,15,15,.96) 0%, rgba(15,15,15,.8) 45%, rgba(15,15,15,.45) 100%);
}
.hero__inner { position: relative; z-index: 1; max-width: 900px; }

.hero__h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(44px, 8vw, 96px);
  line-height: .98;
  letter-spacing: -0.03em;
  color: var(--paper);
  margin-bottom: 32px;
  text-wrap: balance;
}
.hero__h1 em {
  font-style: normal;
  color: var(--coral);
}
.hero__sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.6;
  color: var(--stone-ink);
  margin-bottom: 40px;
  max-width: 56ch;
}
.hero__cta { font-size: 16px; }

/* ===== TRUST STRIP ===== */
.trust-strip {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.trust-strip__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  padding-block: 18px;
}
.trust-strip__item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ink);
}
.trust-strip__item svg { color: var(--coral); flex-shrink: 0; }

/* ===== EDITORIAL LIST (why-italy, replaces card grid) ===== */
.ed-list {
  display: flex;
  flex-direction: column;
}
.ed-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding-block: 32px;
  border-top: 1px solid var(--rule);
}
.ed-item:last-child { border-bottom: 1px solid var(--rule); }
.section--ink .ed-item { border-top-color: var(--rule-on-ink); }
.section--ink .ed-item:last-child { border-bottom-color: var(--rule-on-ink); }
@media (min-width: 800px) {
  .ed-item { grid-template-columns: 1fr 2fr; gap: 40px; align-items: baseline; }
}
.ed-item__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ink);
}
.section--ink .ed-item__title { color: var(--paper); }
.ed-item__text {
  font-size: 16px;
  color: var(--stone);
  line-height: 1.6;
  max-width: 55ch;
}
.section--ink .ed-item__text { color: var(--stone-ink); }

/* Manifesto/filter: muted until hover — only on devices that actually support hover.
   Touch devices have no hover state, so they'd otherwise be stuck at .5 opacity with no way
   to reveal it; those get full opacity by default instead. */
@media (hover: hover) and (pointer: fine) {
  #filter .ed-item { transition: opacity .25s ease; opacity: .5; }
  #filter .ed-item:hover,
  #filter .ed-item:focus-within { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  #filter .ed-item { opacity: 1; transition: none; }
}

/* ===== STEPS (massive outline numerals) ===== */
.steps {
  display: flex;
  flex-direction: column;
  max-width: 900px;
}
.step {
  position: relative;
  min-height: clamp(90px, 11vw, 130px);
  display: flex;
  align-items: center;
  padding-block: 24px;
  border-top: 1px solid var(--rule-on-ink);
  overflow: hidden;
}
.section--paper .step { border-top-color: var(--rule); }
.step:last-child { border-bottom: 1px solid var(--rule-on-ink); }
.section--paper .step:last-child { border-bottom-color: var(--rule); }

.step__num {
  position: absolute;
  left: -0.05em;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(60px, 9vw, 100px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--coral);
  z-index: 0;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.step__body {
  position: relative;
  z-index: 1;
  margin-left: clamp(140px, 16vw, 210px);
  max-width: 640px;
}
.step__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  line-height: 1.3;
}
.step__text { font-size: 15px; color: var(--stone-ink); line-height: 1.6; max-width: 55ch; }
.section--paper .step__text { color: var(--stone); }

/* ===== PACKAGES (strict 3-column grid, hover-invert) ===== */
.packages {
  display: flex;
  flex-direction: column;
  margin-bottom: 40px;
}

.package {
  background-color: transparent;
  border-bottom: 1px solid rgba(226, 114, 91, 0.3);
  padding: 32px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  transition: background-color .3s ease, border-color .3s ease;
}
@media (min-width: 900px) {
  .package {
    grid-template-columns: 300px 1fr 250px;
    align-items: center;
    gap: 40px;
    padding: 32px 40px;
  }
}
.package:hover {
  background-color: var(--ink);
  border-color: transparent;
}
.package:hover .package__label,
.package:hover .package__desc,
.package:hover .package__list li { color: var(--paper); }

/* Explicit column wrappers: grid auto-placement can never scramble content again */
.package__col--info { min-width: 0; }
.package__col--list { min-width: 0; }
.package__col--cta { min-width: 0; }
@media (min-width: 900px) {
  .package__col--cta { justify-self: end; }
}

.package__badge {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  color: var(--coral);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.package__label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
  transition: color .3s ease;
}
.package__price {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 44px;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 10px;
}
.package:hover .package__price { color: var(--coral); }
.package__price .currency {
  font-size: 0.55em;
  vertical-align: 0.2em;
  margin-right: 2px;
  color: var(--coral);
}
.package__desc { font-size: 15px; color: var(--ink); line-height: 1.5; transition: color .3s ease; }

.package__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.package__list li {
  font-size: 14px;
  color: var(--ink);
  padding-left: 22px;
  position: relative;
  line-height: 1.4;
  transition: color .3s ease;
}
.package__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E2725B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.package__highlight {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--coral);
  line-height: 1.4;
  margin-top: 12px;
}

.packages__cta { text-align: center; margin-bottom: 20px; }
.packages__note { font-size: 13px; color: var(--stone); line-height: 1.5; }

/* ===== DSU (huge editorial stat) ===== */
.dsu { padding-block: var(--section-py); }
.dsu__number {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(64px, 14vw, 160px);
  line-height: .9;
  letter-spacing: -0.01em;
  color: var(--coral);
}
.dsu__text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.6;
  color: var(--stone-ink);
  max-width: 62ch;
  margin-top: 40px;
}
.dsu__caption {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: .6;
  margin-top: 12px;
  margin-bottom: 0;
}

/* ===== TRUST GROUPS (plain, no cards) ===== */
.trust-groups { display: flex; flex-direction: column; gap: 56px; }
.trust-group__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 28px;
}
.trust-grid {
  display: grid;
  gap: 28px 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
}
.trust-point {
  border-top: 1px solid var(--rule);
  padding-top: 18px;
}
.trust-point__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}
.trust-point__text { font-size: 14px; color: var(--stone); line-height: 1.6; }

/* ===== STORIES / CASES — warm module (V3 exception) ===== */
.stories { display: grid; gap: 16px; }
@media (min-width: 768px) { .stories { grid-template-columns: repeat(3, 1fr); } }
.story {
  background: var(--paper);
  border: 1px dashed var(--stone);
  padding: 28px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.story__placeholder-text { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink); margin-bottom: 6px; }
.story__placeholder-hint { font-size: 13px; color: var(--stone); line-height: 1.5; }

/* ===== FAQ ===== */
.faq { max-width: 760px; }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__q {
  width: 100%;
  background: none;
  border: none;
  padding: 24px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  transition: color .15s;
  line-height: 1.3;
}
.faq__q:hover,
.faq__q[aria-expanded="true"] { color: var(--coral); }

.faq__arrow { flex-shrink: 0; transition: transform .25s; color: var(--stone); }
.faq__q[aria-expanded="true"] .faq__arrow { transform: rotate(180deg); color: var(--coral); }

.faq__a { overflow: hidden; max-height: 0; transition: max-height .3s ease; }
.faq__a.open { max-height: 400px; }
.faq__a p {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--stone);
  line-height: 1.65;
  padding-bottom: 24px;
}

/* ===== FINAL CTA ===== */
.cta-section { text-align: left; }
.cta-section__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.cta-section__h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 14ch;
}
.cta-section__text {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--stone);
  max-width: 52ch;
  line-height: 1.6;
}
.cta-section__price-note {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--stone);
  font-weight: 600;
}
.cta-section__btn { font-size: 16px; }
.card__sub { font-family: var(--font-body); font-size: 13px; color: var(--stone); margin-top: 4px; line-height: 1.5; }

/* ===== FOOTER ===== */
.footer { background: var(--ink); color: var(--paper); }
.footer__inner {
  display: grid;
  gap: 36px;
  padding-block: 56px;
}
@media (min-width: 768px) {
  .footer__inner { grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
}

.footer__logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; text-decoration: none; }
.footer__logo-svg { width: 34px; height: 34px; flex-shrink: 0; opacity: .9; }
.footer__logo-text { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--paper); }
.footer__slogan { font-family: var(--font-body); font-weight: 400; font-size: 14px; color: var(--paper); opacity: .6; }

.footer__col-title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--paper);
  opacity: .45;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 14px;
}
.footer__link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--paper);
  opacity: .82;
  margin-bottom: 10px;
  transition: opacity .15s;
}
.footer__link:hover { opacity: 1; }
.footer__legal-text { font-family: var(--font-body); font-size: 13px; color: var(--paper); opacity: .55; line-height: 1.8; }

.footer__bottom { border-top: 1px solid var(--rule-on-ink); padding-block: 18px; }
.footer__bottom p { font-family: var(--font-body); font-size: 12px; color: var(--paper); opacity: .4; }

/* ===== MOBILE STICKY CTA ===== */
.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--paper);
  padding: 12px var(--px-mob);
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule);
  transform: translateY(100%);
  transition: transform .3s ease;
}
.mobile-cta.visible { transform: none; }
.mobile-cta__btn { width: 100%; justify-content: center; }

@media (min-width: 768px) { .mobile-cta { display: none; } }

/* ===== RESPONSIVE BODY PADDING ===== */
@media (max-width: 767px) {
  .footer__bottom { padding-bottom: 88px; }
}
