/* ============================================================
   ОкноБьюти - премиальный лендинг
   Цвета: фон #FAF6F2 · розовый #B06D81 · #C98A9B · подложка #F3E3E8
   золото #C9A86A (точечно) · текст #3D3237
   ============================================================ */

:root {
  --bg: #FAF6F2;
  --pink: #B06D81;
  --pink-2: #C98A9B;
  --blush: #F3E3E8;
  --gold: #C9A86A;
  --gold-light: #E9D9B4;
  --ink: #3D3237;
  --ink-soft: rgba(61, 50, 55, 0.68);
  --ink-faint: rgba(61, 50, 55, 0.45);
  --white: #FFFFFF;

  --font-display: 'Oranienbaum', 'Times New Roman', Georgia, serif;
  --font-body: 'MiSans', 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;

  --shadow-soft: 0 18px 50px -22px rgba(176, 109, 129, 0.28);
  --shadow-card: 0 10px 34px -16px rgba(61, 50, 55, 0.14);

  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--blush); color: var(--ink); }

/* ---------- Layout helpers ---------- */
.container {
  width: min(1160px, 100% - 48px);
  margin-inline: auto;
}

.section { padding: clamp(72px, 10vw, 130px) 0; }

.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.12;
  letter-spacing: 0.01em;
  text-align: center;
  margin-bottom: clamp(16px, 2.5vw, 26px);
}

.section__subtitle {
  text-align: center;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.6vw, 19px);
  max-width: 640px;
  margin: 0 auto clamp(36px, 5vw, 56px);
}

/* ---------- Buttons & badges ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16.5px;
  line-height: 1.2;
  cursor: pointer;
  border: 0;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background-color 0.35s;
  will-change: transform;
}

.btn--primary {
  color: var(--white);
  background: linear-gradient(120deg, var(--pink) 0%, var(--pink-2) 100%);
  box-shadow: 0 14px 34px -12px rgba(176, 109, 129, 0.55);
}

.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 20px 42px -14px rgba(176, 109, 129, 0.6); }

.btn--ghost {
  color: var(--pink);
  background: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(176, 109, 129, 0.4);
}

.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--pink); transform: translateY(-3px); }

.btn--light {
  color: var(--pink);
  background: var(--white);
  box-shadow: 0 14px 34px -12px rgba(61, 50, 55, 0.35);
}

.btn--light:hover { transform: translateY(-3px); }

.btn--small { padding: 11px 22px; font-size: 14.5px; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}

.badge--gold {
  color: #8a6d33;
  background: linear-gradient(120deg, #F3E7CB, #EAD9B4);
  box-shadow: inset 0 0 0 1px rgba(201, 168, 106, 0.45);
}

.badge--soon {
  color: #8a6d33;
  background: linear-gradient(120deg, #F3E7CB, #EAD9B4);
  box-shadow: inset 0 0 0 1px rgba(201, 168, 106, 0.5);
  text-transform: uppercase;
  font-size: 11.5px;
  letter-spacing: 0.12em;
}

.badge--mini {
  margin-left: 6px;
  padding: 3px 9px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: 2px;
  color: #8a6d33;
  background: #F3E7CB;
  border-radius: 999px;
  font-weight: 600;
}

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo__mark {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

.logo__pane { border-radius: 7px; background: var(--pink-2); }
.logo__pane--gold { background: linear-gradient(135deg, #D9BC82, var(--gold)); }
.logo__pane--deep { background: var(--pink); }

.logo__word {
  font-family: var(--font-display);
  font-size: 25px;
  letter-spacing: 0.02em;
  color: var(--ink);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 14px 0;
  transition: background-color 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}

.header.is-scrolled {
  background: rgba(250, 246, 242, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(61, 50, 55, 0.07);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav { display: flex; gap: clamp(18px, 3vw, 38px); }

.nav__link {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.3s;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1.5px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); }

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 130px 0 90px;
  overflow: hidden;
}

.hero__blobs { position: absolute; inset: 0; pointer-events: none; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.75;
  will-change: transform;
}

.blob--1 {
  width: 46vw; height: 46vw; min-width: 380px; min-height: 380px;
  top: -14%; right: -8%;
  background: radial-gradient(circle, var(--blush) 0%, rgba(243, 227, 232, 0) 68%);
}

.blob--2 {
  width: 34vw; height: 34vw; min-width: 300px; min-height: 300px;
  bottom: -12%; left: -10%;
  background: radial-gradient(circle, rgba(201, 138, 155, 0.22) 0%, rgba(201, 138, 155, 0) 68%);
}

.blob--3 {
  width: 24vw; height: 24vw; min-width: 220px; min-height: 220px;
  top: 36%; left: 34%;
  background: radial-gradient(circle, rgba(201, 168, 106, 0.16) 0%, rgba(201, 168, 106, 0) 70%);
}

.hero__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.webgl-on .hero__canvas { opacity: 1; }
.webgl-on [data-window-fallback] { opacity: 0; visibility: hidden; }

/* CSS-версия знака окна (fallback) */
.window-mark--hero {
  position: absolute;
  top: 50%;
  right: clamp(4%, 9vw, 13%);
  transform: translateY(-50%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: clamp(200px, 26vw, 340px);
  aspect-ratio: 1;
  transition: opacity 0.8s, visibility 0.8s;
}

.window-mark__pane {
  border-radius: 26%;
  background: linear-gradient(150deg, rgba(201, 138, 155, 0.5), rgba(201, 138, 155, 0.28));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 16px 40px -18px rgba(176, 109, 129, 0.4);
}

.window-mark__pane--deep {
  background: linear-gradient(150deg, rgba(176, 109, 129, 0.62), rgba(176, 109, 129, 0.38));
}

.window-mark__pane--gold {
  position: relative;
  background: linear-gradient(140deg, #E3C68E, var(--gold) 60%, #B89453);
  box-shadow: inset 0 1px 0 rgba(255, 246, 227, 0.7), 0 16px 40px -14px rgba(201, 168, 106, 0.55);
}

.window-mark__sparkle {
  position: absolute;
  top: 14%;
  right: 12%;
  animation: twinkle 2.6s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { transform: scale(0.7) rotate(0deg); opacity: 0.55; }
  50% { transform: scale(1.15) rotate(20deg); opacity: 1; }
}

.hero__content {
  position: relative;
  z-index: 1;
  /* Прижимаем колонку влево (отступ как у .container) и не пускаем текст в зону 3D-знака */
  width: auto;
  max-width: min(620px, 54vw);
  margin-left: max(24px, calc((100vw - 1160px) / 2));
  margin-right: 24px;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--pink);
  margin-bottom: 22px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(243, 227, 232, 0.7);
  box-shadow: inset 0 0 0 1px rgba(201, 138, 155, 0.25);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(42px, 6.4vw, 76px);
  line-height: 1.06;
  letter-spacing: 0.005em;
  margin-bottom: 26px;
}

.hero__accent {
  font-style: italic;
  color: var(--pink);
}

.hero__subtitle {
  font-size: clamp(17px, 1.8vw, 20px);
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 38px;
}

.hero__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }

.hero__note { font-size: 14px; color: var(--ink-faint); }

/* Золотые блёстки */
.sparkle {
  position: absolute;
  width: var(--s, 10px);
  height: var(--s, 10px);
  pointer-events: none;
  background: linear-gradient(135deg, #F1E2BC, var(--gold));
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  opacity: 0;
  animation: sparkle 3.4s ease-in-out var(--delay, 0s) infinite;
  z-index: 2;
}

@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0.4) rotate(0deg); }
  50% { opacity: 0.95; transform: scale(1) rotate(35deg); }
}

/* ---------- Pains ---------- */
.pains__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.6vw, 30px);
  margin-top: clamp(36px, 5vw, 56px);
}

.pain-card {
  position: relative;
  padding: 38px 32px 34px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.pain-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--pink-2), var(--gold-light));
  opacity: 0.8;
}

.pain-card__num {
  font-family: var(--font-display);
  font-size: 46px;
  line-height: 1;
  color: var(--pink-2);
  opacity: 0.5;
  display: block;
  margin-bottom: 18px;
}

.pain-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 25px;
  margin-bottom: 12px;
}

.pain-card__text { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- How ---------- */
.how { background: linear-gradient(180deg, var(--bg) 0%, var(--blush) 50%, var(--bg) 100%); }

.how__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(22px, 3vw, 40px);
  margin-top: clamp(36px, 5vw, 56px);
  counter-reset: steps;
}

.step { text-align: center; padding: 0 8px; }

.step__num {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 22px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--pink);
  background: var(--white);
  box-shadow: var(--shadow-card), inset 0 0 0 1.5px rgba(201, 138, 155, 0.35);
}

.step__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  margin-bottom: 10px;
}

.step__text { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- Features ---------- */
.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.2vw, 26px);
  margin-top: clamp(36px, 5vw, 56px);
}

.feature {
  padding: 30px 26px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: var(--pink);
  background: var(--blush);
  margin-bottom: 18px;
}

.feature__icon svg { width: 26px; height: 26px; }

.feature__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 21px;
  margin-bottom: 8px;
}

.feature__text { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Soon ---------- */
.soon {
  background:
    radial-gradient(60% 90% at 85% 10%, rgba(201, 168, 106, 0.12), transparent 70%),
    var(--blush);
}

.soon__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(18px, 2.6vw, 30px);
  margin-top: clamp(36px, 5vw, 56px);
}

.soon-card {
  padding: 32px 30px;
  border-radius: var(--radius-lg);
  background: rgba(250, 246, 242, 0.75);
  box-shadow: inset 0 0 0 1.5px rgba(201, 168, 106, 0.4), var(--shadow-card);
}

.soon-card .badge { margin-bottom: 18px; }

.soon-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 23px;
  margin-bottom: 10px;
}

.soon-card__text { color: var(--ink-soft); font-size: 15px; }

.soon__note {
  text-align: center;
  margin-top: 34px;
  color: var(--ink-soft);
  font-size: 15px;
  font-style: italic;
}

/* ---------- Pricing ---------- */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.6vw, 30px);
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 38px 34px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.plan--featured {
  background: linear-gradient(160deg, #FFFFFF 0%, #FBF0F3 100%);
  box-shadow: var(--shadow-soft), inset 0 0 0 2px var(--pink-2);
  transform: translateY(-10px);
}

.plan__tag {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--white);
  background: linear-gradient(120deg, var(--pink), var(--pink-2));
  box-shadow: 0 8px 22px -8px rgba(176, 109, 129, 0.6);
  white-space: nowrap;
}

.plan__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  margin-bottom: 8px;
}

.plan__price { margin-bottom: 26px; }

.plan__amount {
  font-family: var(--font-display);
  font-size: 46px;
  line-height: 1;
  color: var(--ink);
}

.plan__period { font-size: 15px; color: var(--ink-faint); margin-left: 4px; }

.plan__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex: 1;
}

.plan__list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  color: var(--ink-soft);
}

.plan__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--pink-2);
  border-bottom: 2px solid var(--pink-2);
  transform: rotate(-48deg);
  border-radius: 1px;
}

.plan__list li.plan__off {
  color: var(--ink-faint);
  text-decoration: line-through;
  text-decoration-color: rgba(201, 138, 155, 0.55);
}

.plan__list li.plan__off::before {
  content: "×";
  border: 0;
  top: 0;
  font-size: 17px;
  line-height: 1.4;
  color: var(--pink-2);
  transform: none;
}

.plan .btn { width: 100%; }

/* ---------- Beta offer ---------- */
.beta { position: relative; }

.beta__card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(48px, 7vw, 84px) clamp(24px, 6vw, 90px);
  border-radius: clamp(28px, 4vw, 44px);
  color: var(--white);
  background:
    radial-gradient(80% 120% at 85% 0%, rgba(201, 168, 106, 0.35), transparent 55%),
    linear-gradient(130deg, #A3607483 0%, transparent 0%),
    linear-gradient(130deg, #9E5F72 0%, var(--pink) 45%, var(--pink-2) 100%);
  box-shadow: 0 34px 80px -30px rgba(176, 109, 129, 0.65);
}

.beta__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.15;
  margin-bottom: 34px;
}

.beta__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 34px;
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: left;
}

.beta__list li {
  position: relative;
  padding-left: 28px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.92);
}

.beta__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #F1E2BC, var(--gold));
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.beta__note {
  margin-top: 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Footer ---------- */
.footer {
  padding: 56px 0 34px;
  border-top: 1px solid rgba(61, 50, 55, 0.08);
  background: var(--bg);
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.footer__tagline {
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--ink-soft);
  max-width: 380px;
}

.footer__links {
  display: flex;
  gap: clamp(18px, 3vw, 34px);
  flex-wrap: wrap;
}

.footer__links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.3s;
}

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

.footer__copy {
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-faint);
}

/* ---------- Reveal animations ---------- */
[data-reveal], [data-reveal-group] > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0ms);
}

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .pains__grid, .how__steps, .soon__grid, .pricing__grid { grid-template-columns: 1fr; }
  .plan--featured { transform: none; }
  .plan { order: 2; }
  .plan--featured { order: 1; }

  /* Hero: колонка - текст сверху, 3D-знак отдельным блоком снизу, без наложений */
  .hero {
    flex-direction: column;
    justify-content: flex-start;
    min-height: 0;
    padding: 116px 0 64px;
    gap: 28px;
  }

  .hero__content {
    width: min(640px, 100% - 48px);
    max-width: none;
    margin-inline: auto;
    text-align: center;
    order: 1;
  }

  .hero__visual {
    position: relative;
    inset: auto;
    order: 2;
    width: 100%;
    height: clamp(300px, 72vw, 420px);
    flex: 0 0 auto;
  }

  .window-mark--hero {
    right: 50%;
    transform: translate(50%, -50%);
    opacity: 1;
    width: clamp(200px, 56vw, 300px);
  }

  .hero__subtitle { margin-inline: auto; }
  .hero__actions { align-items: center; }
}

@media (max-width: 720px) {
  .header__cta .badge { display: none; }
  .nav { display: none; }
  .features__grid { grid-template-columns: 1fr; }
  .beta__list { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}

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

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

  [data-reveal], [data-reveal-group] > * {
    opacity: 1;
    transform: none;
  }

  .sparkle { display: none; }
}
