:root {
  --cream: #fff6e9;
  --ink: #1a1033;
  --ink-soft: #5d5470;
  --ink-mute: #8c8499;
  --pink: #ff4fa3;
  --yellow: #ffd23f;
  --blue: #3d5afe;
  --mint: #2ee6a8;
  --orange: #ff7a1a;
  --red: #f43f5e;
  --lilac: #c9b6ff;
  --white: #ffffff;

  --font-display: "Ultra", Georgia, "Times New Roman", serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --hairline: 1px solid rgba(26, 16, 51, 0.1);
  --shadow-sm: 0 1px 2px rgba(26, 16, 51, 0.06), 0 2px 8px rgba(26, 16, 51, 0.05);
  --shadow: 0 2px 4px rgba(26, 16, 51, 0.04), 0 12px 32px -8px rgba(26, 16, 51, 0.16);
  --shadow-lg: 0 4px 8px rgba(26, 16, 51, 0.04), 0 32px 80px -16px rgba(26, 16, 51, 0.32);
  --glow-pink: 0 4px 12px -6px rgba(255, 79, 163, 0.35);

  --radius: 28px;
  --radius-sm: 16px;
  --gutter: clamp(16px, 3vw, 32px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-hover: cubic-bezier(0.25, 1, 0.5, 1);
  --hover: 0.5s;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.006em;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body:has(.modal[open]) { overflow: hidden; }

img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; }
strong { font-weight: 600; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  font-weight: 500;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 16px; }

.bg-pink { background: var(--pink); }
.bg-yellow { background: var(--yellow); }
.bg-mint { background: var(--mint); }
.bg-lilac { background: var(--lilac); }
.bg-orange { background: var(--orange); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  background: var(--white);
  border: 0;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--hover) var(--ease-hover), box-shadow var(--hover) var(--ease-hover), background-color var(--hover) var(--ease-hover);
  will-change: transform;
  backface-visibility: hidden;
}

.btn:hover { transform: scale(1.03); box-shadow: 0 2px 4px rgba(26, 16, 51, 0.05), 0 14px 28px -14px rgba(26, 16, 51, 0.25); }
.btn:active { transform: scale(1.01); }
.btn:disabled { opacity: 0.7; cursor: progress; }
.btn--primary { color: var(--white); background: var(--pink); box-shadow: var(--glow-pink); }
.btn--primary:hover { box-shadow: 0 2px 4px rgba(255, 79, 163, 0.12), 0 14px 28px -14px rgba(255, 79, 163, 0.45); }
.btn--lg { padding: 17px 30px; font-size: 1.02rem; }
.btn--block { width: 100%; }

.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100svh;
  min-height: 580px;
  overflow: hidden;
}

.topbar { padding: 22px var(--gutter); text-align: center; }

.brand {
  display: inline-grid;
  justify-items: center;
  gap: 4px;
  text-decoration: none;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: -0.02em;
}
.brand__role {
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 6vh, 72px) var(--gutter) 0;
  text-align: center;
}
.hero:has(> .hero__portrait[hidden]) { padding-bottom: clamp(56px, 10vh, 120px); }

.hero__copy { display: flex; flex-direction: column; align-items: center; max-width: 980px; }

.hero h1 { font-size: clamp(2.1rem, 0.85rem + 4.6vw, 4.8rem); line-height: 1.3; }

@media (max-width: 560px) { .hero h1 { font-size: 7.4vw; } }
.hero__lead {
  max-width: 460px;
  margin: 22px 0 30px;
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.125rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

.actions ul { display: flex; justify-content: center; gap: clamp(18px, 3vw, 28px); }

.action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
}
.action__circle {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform var(--hover) var(--ease-hover), box-shadow var(--hover) var(--ease-hover);
}
.action__circle .icon { width: 20px; height: 20px; }
.action__label { font-size: 0.8rem; font-weight: 500; letter-spacing: -0.01em; }
.action--red .action__circle { color: var(--red); }
.action--blue .action__circle { color: var(--blue); }
.action--primary .action__circle { color: var(--white); background: var(--pink); box-shadow: var(--glow-pink); }
.action:hover .action__circle { transform: scale(1.06); box-shadow: var(--shadow); }
.action--primary:hover .action__circle { box-shadow: 0 2px 4px rgba(255, 79, 163, 0.12), 0 14px 28px -14px rgba(255, 79, 163, 0.45); }
.action:active .action__circle { transform: scale(1.02); }
.icon {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 560px) {
  .action__circle { width: 48px; height: 48px; }
  .action__label { font-size: 0.75rem; }
}

.rotator {
  --rot-bg: var(--pink);
  display: inline-grid;
  vertical-align: baseline;
  overflow: hidden;
  background: var(--rot-bg);
  border-radius: 0.22em;
  transition: background-color 0.6s cubic-bezier(0.7, 0, 0.2, 1);
}
.rotator__word {
  --bg: var(--pink);
  --fg: var(--white);
  grid-area: 1 / 1;
  padding: 0 0.14em;
  line-height: 1.3;
  color: var(--fg);
  transform: translateY(110%);
  transition: transform 0.6s cubic-bezier(0.7, 0, 0.2, 1);
}
.rotator__word:nth-child(2) { --bg: var(--blue); }
.rotator__word:nth-child(3) { --bg: var(--orange); }
.rotator__word:nth-child(4) { --bg: var(--mint); --fg: var(--ink); }
.rotator__word:nth-child(5) { --bg: var(--yellow); --fg: var(--ink); }
.rotator__word:nth-child(6) { --bg: var(--lilac); --fg: var(--ink); }
.rotator__word.is-active { transform: translateY(0); }
.rotator__word.is-leaving { transform: translateY(-110%); }
.rotator__word:not(.is-active):not(.is-leaving) { transition: none; }

.hero__portrait {
  flex: 1 1 0;
  min-height: 180px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: clamp(20px, 3vh, 40px) 0 0;
}
.hero__portrait img {
  width: auto;
  height: 100%;
  max-height: 600px;
}

.site-footer {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--gutter) max(18px, env(safe-area-inset-bottom));
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  pointer-events: none;
}
.site-footer p { margin: 0; }
.site-footer small { font-size: inherit; }

@media (max-width: 720px) {
  .site-footer {
    left: 0;
    right: 0;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: max-content;
    max-width: calc(100% - 24px);
    margin-inline: auto;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.68rem;
    white-space: nowrap;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    border-radius: 999px;
  }
  .site-footer p + p::before { content: "· "; }
}

.modal {
  width: min(100% - 32px, 720px);
  max-height: min(88svh, 880px);
  padding: 0;
  color: var(--ink);
  background: var(--cream);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: auto;
  overscroll-behavior: contain;
}
.modal:focus, .modal:focus-visible { outline: none; }
.modal[open] {
  position: fixed;
  inset: 0;
  z-index: 100;
  margin: auto;
  height: fit-content;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(26, 16, 51, 0.35);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  animation: fade-in 0.35s var(--ease);
}

html:not(.has-js) .modal:target:not([open]) {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 90;
  margin: auto;
  height: fit-content;
}

.modal__head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(22px, 4vw, 40px) 18px;
  background: rgba(255, 246, 233, 0.86);
  backdrop-filter: blur(12px);
}
.modal__head h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); }

.modal__tools { flex: none; display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  font: 400 1.4rem/1 var(--font-body);
  text-decoration: none;
  color: var(--ink-soft);
  background: rgba(26, 16, 51, 0.05);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color var(--hover) var(--ease-hover), color var(--hover) var(--ease-hover), scale var(--hover) var(--ease-hover);
}
.icon-btn .icon { width: 18px; height: 18px; }
.icon-btn:hover { color: var(--ink); background: rgba(26, 16, 51, 0.1); scale: 1.08; }
.icon-btn[aria-pressed="true"] { color: var(--white); background: var(--ink); }

.icon-btn[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  translate: -50% -4px;
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--hover) var(--ease-hover), translate var(--hover) var(--ease-hover);
}
.icon-btn:hover::after,
.icon-btn:focus-visible::after { opacity: 1; translate: -50% 0; }
@media (hover: none) { .icon-btn[data-tip]::after { display: none; } }

.modal__body { padding: 4px clamp(22px, 4vw, 40px) clamp(22px, 4vw, 32px); }
.modal__foot {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  padding: 18px clamp(22px, 4vw, 40px) 24px;
  background: linear-gradient(rgba(255, 246, 233, 0), var(--cream) 35%);
}

@media (max-width: 720px) {
  .modal__foot .btn { width: 100%; padding: 17px 30px; font-size: 1.02rem; }
}

@media (max-width: 720px) {
  .modal,
  .modal[open] {
    width: 100%;
    max-width: none;
    max-height: 92svh;
    margin: auto 0 0;
    border-radius: var(--radius) var(--radius) 0 0;
  }
  .modal__head { flex-wrap: wrap; row-gap: 14px; padding-top: 30px; }

  .modal__tools { order: -1; width: 100%; justify-content: flex-end; }
  .modal__head h2 { flex-basis: 100%; }
  .icon-btn { width: 36px; height: 36px; }
  .modal__head::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    width: 40px;
    height: 4px;
    translate: -50% 0;
    background: rgba(26, 16, 51, 0.15);
    border-radius: 4px;
  }
  html:not(.has-js) .modal:target:not([open]) { inset: auto 0 0; }
}

.modal__lead { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); font-weight: 500; letter-spacing: -0.015em; }
.modal__lead a { color: var(--pink); text-decoration: none; }
.modal__lead a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size var(--hover) var(--ease-hover);
}
.modal__lead a:hover { background-size: 100% 1.5px; }
.modal__body > p:not(.modal__lead) { color: var(--ink-soft); }

.view[hidden] { display: none; }
.has-js .view { animation: view-in 0.5s var(--ease-hover); }
.has-js .view__title { display: none; }
.view + .view { margin-top: 32px; }
.has-js .view + .view { margin-top: 0; }
.view__title { margin-bottom: 10px; font-size: 1.3rem; }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } }

.rows { display: grid; gap: 4px; margin-top: 8px; }
.row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  margin-inline: -16px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background-color var(--hover) var(--ease-hover);
}
.row:not(.row--static):hover { background: rgba(26, 16, 51, 0.04); }
.row--static { grid-template-columns: 1fr; }
.row--text { grid-template-columns: 1fr auto; }

.rows li { position: relative; }
.rows li + li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(26, 16, 51, 0.07);
  transition: opacity var(--hover) var(--ease-hover);
}
.rows li:hover:has(.row:not(.row--static))::before,
.rows li:hover + li:has(.row:not(.row--static))::before { opacity: 0; }
.row__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.row__icon .icon { width: 20px; height: 20px; }
.row__text { display: grid; gap: 2px; min-width: 0; }
.row__text strong { font-weight: 600; letter-spacing: -0.01em; }
.row__text span { font-size: 0.88rem; color: var(--ink-mute); }
.row__arrow { color: var(--ink-mute); transition: color var(--hover) var(--ease-hover), translate var(--hover) var(--ease-hover); }
.row:hover .row__arrow { color: var(--pink); translate: 2px -2px; }

.services { display: grid; gap: 4px; margin-top: 8px; }
.service {
  position: relative;
  padding: 20px 18px 18px;
  margin-inline: -18px;
  border-radius: var(--radius-sm);
  transition: background-color var(--hover) var(--ease-hover), box-shadow var(--hover) var(--ease-hover);
}
.service:hover { background: rgba(26, 16, 51, 0.04); }

.service + .service::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 1px;
  background: rgba(26, 16, 51, 0.07);
}
.service h3 { margin-bottom: 6px; font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem); letter-spacing: -0.01em; }
.service p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
.service p.service__hook { margin-bottom: 2px; font-weight: 500; color: var(--ink); }

.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

.field { display: grid; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 500; color: var(--ink-soft); }
.req { color: var(--pink); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  color: var(--ink);
  background: #fbf9fc;
  border: var(--hairline);
  border-radius: 12px;
  transition: border-color var(--hover) var(--ease-hover), box-shadow var(--hover) var(--ease-hover), background-color var(--hover) var(--ease-hover);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(26, 16, 51, 0.2); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 79, 163, 0.15);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #e0245e; box-shadow: 0 0 0 4px rgba(224, 36, 94, 0.12); }
.field__error { display: none; margin: 0; font-size: 0.82rem; font-weight: 500; color: #d6004c; }
.field.has-error .field__error { display: block; }

.hp { position: absolute; left: -9999px; }
.field--captcha { justify-items: center; min-height: 78px; }
.field--captcha .field__error { text-align: center; }
.form__error { margin: 0; padding: 12px 16px; font-size: 0.9rem; color: #b0003a; background: rgba(224, 36, 94, 0.08); border-radius: 12px; }
.form__error a { color: inherit; font-weight: 600; }
.form-success { padding-block: 24px; text-align: center; }
.form-success h3 { margin-bottom: 12px; font-size: 1.8rem; }
.form-success p { color: var(--ink-soft); }

.modal[open] { animation: modal-in 0.35s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(20px) scale(0.98); } }
@keyframes fade-in { from { opacity: 0; } }
.modal[open].is-closing { animation: modal-out 0.3s var(--ease) forwards; }
.modal-backdrop.is-closing { animation: fade-out 0.3s var(--ease) forwards; }
@keyframes modal-out { to { opacity: 0; transform: translateY(20px) scale(0.98); } }
@keyframes fade-out { to { opacity: 0; } }
@media (max-width: 720px) {
  @keyframes modal-in { from { transform: translateY(100%); } }
  @keyframes modal-out { to { transform: translateY(100%); } }
}

.hero__copy > * { animation: rise 0.8s var(--ease) backwards; }
.hero__copy > :nth-child(2) { animation-delay: 0.08s; }
.hero__copy > :nth-child(3) { animation-delay: 0.16s; }
.hero__portrait { animation: rise 1s 0.2s var(--ease) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .has-js .view { animation: none; }
}
