:root {
  --bg: #f4efe4;
  --bg-accent: #efe1cf;
  --surface: rgba(255, 251, 245, 0.72);
  --surface-strong: rgba(255, 247, 237, 0.94);
  --border: rgba(98, 79, 55, 0.14);
  --text: #211910;
  --muted: #685543;
  --accent: #cb6f43;
  --accent-dark: #8f4d30;
  --leaf: #657b50;
  --gold: #dfbb6c;
  --shadow: 0 18px 50px rgba(84, 56, 25, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 999px;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(236, 168, 118, 0.35), transparent 34%),
    radial-gradient(circle at top right, rgba(117, 150, 110, 0.2), transparent 22%),
    linear-gradient(180deg, #f7f2e9 0%, #f2ede3 45%, #efe5d5 100%);
}

body::before {
  position: fixed;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 85%);
  pointer-events: none;
}

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

.page-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(255, 248, 239, 0.78);
  border: 1px solid rgba(101, 74, 47, 0.12);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(80, 58, 26, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 251, 244, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 6px 18px rgba(80, 58, 26, 0.08);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  font-size: 1.05rem;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-weight: 600;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  content: "";
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(101, 74, 47, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 252, 247, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.lang-button,
.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  border: 0;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.lang-button:hover,
.lang-button:focus-visible,
.lang-link:hover,
.lang-link:focus-visible {
  color: var(--text);
  transform: translateY(-1px);
}

.lang-button.is-active,
.lang-link.is-active {
  background: rgba(203, 111, 67, 0.14);
  color: var(--accent-dark);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), #d98a57);
  color: #fff9f3;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(200, 111, 67, 0.24);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(200, 111, 67, 0.32);
}

.button-small {
  padding: 11px 18px;
}

.button-secondary {
  background: rgba(255, 251, 246, 0.7);
  color: var(--text);
  border-color: rgba(98, 79, 55, 0.12);
  box-shadow: none;
}

.section {
  padding: 72px 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 140px);
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.04em;
}

h2 {
  font-family: "Fraunces", serif;
  line-height: 0.98;
}

h1 {
  max-width: 11ch;
  font-family: "Manrope", sans-serif;
  font-size: clamp(3.3rem, 7vw, 6.4rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.06em;
}

html[lang="ru"] h1,
html[lang="uk"] h1 {
  max-width: 9.6ch;
  font-size: clamp(3.3rem, 6.8vw, 6rem);
  line-height: 0.95;
}

h2 {
  max-width: 12ch;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

h3 {
  font-size: 1.35rem;
}

.hero-text,
.cta-text,
.benefit-card p,
.step-card p,
.persona-card p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 60ch;
  margin: 22px 0 0;
  font-size: 1.08rem;
}

html[lang="ru"] .hero-text,
html[lang="uk"] .hero-text {
  max-width: 52ch;
}

html[lang="ru"] .site-nav,
html[lang="uk"] .site-nav {
  gap: 20px;
  font-size: 0.96rem;
}

html[lang="ru"] .header-actions,
html[lang="uk"] .header-actions {
  gap: 10px;
}

html[lang="ru"] .button-small,
html[lang="uk"] .button-small {
  padding-inline: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 24px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-points li {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 248, 240, 0.72);
  font-weight: 600;
  color: #453528;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 640px;
}

.screenshot-stage {
  position: relative;
  width: min(100%, 520px);
  min-height: 640px;
}

.phone-mockup {
  position: absolute;
  top: -18px;
  right: 18px;
  width: min(100%, 320px);
  transform: rotate(2deg);
}

.phone-frame {
  position: relative;
  padding: 14px;
  border-radius: 42px;
  background:
    linear-gradient(180deg, rgba(61, 41, 30, 0.95), rgba(18, 16, 15, 0.98));
  box-shadow:
    0 35px 80px rgba(57, 35, 15, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.phone-notch {
  position: absolute;
  left: 50%;
  top: 10px;
  z-index: 2;
  width: 126px;
  height: 28px;
  border-radius: 0 0 18px 18px;
  background: rgba(12, 12, 12, 0.9);
  transform: translateX(-50%);
}

.phone-screen {
  position: relative;
  overflow: hidden;
  padding: 18px 12px 12px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top, rgba(248, 199, 118, 0.14), transparent 28%),
    linear-gradient(180deg, #f8f1e6 0%, #efe3cf 100%);
}

.phone-screen img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
}

.device-shot {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(91, 70, 48, 0.12);
  border-radius: 38px;
  background: rgba(255, 249, 241, 0.8);
  box-shadow:
    0 30px 60px rgba(74, 46, 18, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
}

.device-shot img,
.preview-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
}

.card-kicker,
.benefit-number,
.step-badge {
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-kicker,
.benefit-number {
  font-size: 0.72rem;
  color: var(--accent-dark);
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

.section-soft .section-heading h2,
.cta-panel h2 {
  max-width: 13ch;
}

.preview-grid,
.benefit-grid,
.persona-grid,
.steps {
  display: grid;
  gap: 18px;
}

.preview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.benefit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.preview-card,
.benefit-card,
.step-card,
.persona-card,
.cta-panel {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.preview-card {
  display: grid;
  gap: 18px;
  background: rgba(255, 248, 239, 0.78);
}

.preview-card figure {
  margin: 0;
  display: flex;
  justify-content: center;
  padding: 12px;
  border-radius: 30px;
  background: rgba(255, 253, 250, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.preview-phone {
  width: min(100%, 260px);
}

.preview-phone-frame {
  position: relative;
  padding: 10px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(61, 41, 30, 0.95), rgba(18, 16, 15, 0.98));
  box-shadow:
    0 20px 40px rgba(57, 35, 15, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.preview-phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 2;
  width: 92px;
  height: 20px;
  border-radius: 0 0 14px 14px;
  background: rgba(12, 12, 12, 0.92);
  transform: translateX(-50%);
}

.preview-phone-screen {
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(180deg, #f8f1e6 0%, #efe3cf 100%);
}

.preview-phone-screen img {
  display: block;
  width: 100%;
  height: auto;
}

.preview-meta {
  display: grid;
  gap: 10px;
}

.preview-meta h3 {
  font-family: "Fraunces", serif;
  font-size: 1.7rem;
  line-height: 1.05;
}

.step-card {
  position: relative;
}

.step-badge {
  display: inline-grid;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 12px;
  background: rgba(203, 111, 67, 0.12);
  color: var(--accent-dark);
}

.section-soft {
  padding-inline: 28px;
  border: 1px solid rgba(104, 85, 67, 0.12);
  border-radius: calc(var(--radius-xl) + 6px);
  background:
    radial-gradient(circle at top right, rgba(255, 205, 138, 0.18), transparent 18%),
    rgba(255, 247, 237, 0.48);
}

.steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.persona-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.persona-card {
  background: var(--surface-strong);
}

.cta-section {
  padding-bottom: 24px;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background:
    radial-gradient(circle at top left, rgba(255, 197, 121, 0.2), transparent 26%),
    linear-gradient(135deg, rgba(255, 247, 239, 0.94), rgba(240, 231, 211, 0.92));
}

.cta-actions {
  flex-shrink: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 30px 0 12px;
  color: var(--muted);
  font-weight: 600;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.footer-settings-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.policy-main {
  padding: 72px 0 24px;
}

.policy-card {
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-xl) + 6px);
  background: rgba(255, 249, 241, 0.82);
  box-shadow: var(--shadow);
}

.policy-title {
  max-width: none;
  margin-bottom: 10px;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
}

.policy-updated,
.policy-intro,
.policy-section p,
.policy-list {
  color: var(--muted);
  line-height: 1.75;
}

.policy-updated {
  margin: 0 0 16px;
  font-weight: 700;
}

.policy-intro {
  max-width: 68ch;
  margin: 0;
  font-size: 1.05rem;
}

.policy-sections {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}

.policy-section {
  padding-top: 22px;
  border-top: 1px solid rgba(98, 79, 55, 0.12);
}

.policy-section h2 {
  max-width: none;
  margin-bottom: 12px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.policy-list {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  margin: 12px 0 0;
}

.consent-banner[hidden] {
  display: none;
}

.consent-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: min(calc(100% - 24px), 720px);
  max-height: calc(100vh - 24px);
}

.consent-shell {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(101, 74, 47, 0.14);
  border-radius: 28px;
  background: rgba(255, 248, 239, 0.94);
  box-shadow:
    0 24px 64px rgba(67, 46, 20, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(18px);
  max-height: inherit;
  overflow: auto;
}

.consent-eyebrow {
  margin-bottom: 8px;
}

.consent-title {
  max-width: none;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
}

.consent-text {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.consent-links,
.consent-actions,
.consent-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.consent-links a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.consent-panel {
  display: grid;
  gap: 14px;
  padding-top: 6px;
}

.consent-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(98, 79, 55, 0.12);
  border-radius: 22px;
  background: rgba(255, 252, 247, 0.84);
}

.consent-option h3 {
  margin-bottom: 6px;
}

.consent-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.consent-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.consent-toggle-ui {
  position: relative;
  display: inline-flex;
  width: 56px;
  height: 32px;
  border-radius: 999px;
  background: rgba(101, 74, 47, 0.18);
  transition: background 180ms ease;
}

.consent-toggle-ui::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  content: "";
  background: #fffaf2;
  box-shadow: 0 4px 12px rgba(49, 35, 16, 0.16);
  transition: transform 180ms ease;
}

.consent-toggle input:checked + .consent-toggle-ui {
  background: rgba(203, 111, 67, 0.92);
}

.consent-toggle input:checked + .consent-toggle-ui::after {
  transform: translateX(24px);
}

.consent-toggle input:disabled + .consent-toggle-ui {
  background: rgba(101, 123, 80, 0.72);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero,
  .preview-grid,
  .benefit-grid,
  .steps,
  .persona-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    order: 1;
  }

  .hero-visual {
    order: 2;
  }

  .site-header {
    flex-wrap: wrap;
    justify-content: center;
  }

  .header-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--content-width));
    padding-top: 12px;
  }

  .site-header,
  .site-nav,
  .hero-actions,
  .hero-points,
  .preview-grid,
  .benefit-grid,
  .steps,
  .persona-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-header,
  .site-footer {
    flex-direction: column;
  }

  .site-header {
    position: relative;
    top: 0;
    gap: 14px;
    padding: 14px;
    border-radius: 28px;
  }

  .site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
  }

  .header-actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .lang-switcher {
    width: 100%;
    justify-content: space-between;
  }

  .lang-button {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 8px;
    font-size: 0.74rem;
  }

  .button-small {
    width: 100%;
    padding: 10px 16px;
    font-size: 0.95rem;
  }

  .footer-links,
  .consent-links,
  .consent-panel-actions {
    justify-content: center;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }

  .footer-settings-button {
    width: 100%;
  }

  .section {
    padding: 48px 0;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-visual {
    min-height: auto;
  }

  .screenshot-stage {
    min-height: 540px;
  }

  .section-soft {
    padding-inline: 18px;
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(2.4rem, 10.8vw, 3.8rem);
  }

  h2 {
    max-width: none;
    font-size: clamp(1.7rem, 7vw, 2.5rem);
  }

  h3 {
    font-size: 1.18rem;
  }

  .eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
  }

  .hero-text,
  .cta-text,
  .benefit-card p,
  .step-card p,
  .persona-card p,
  .preview-meta p,
  .policy-updated,
  .policy-intro,
  .policy-section p,
  .policy-list,
  .consent-text {
    font-size: 0.96rem;
    line-height: 1.6;
  }

  .hero-actions .button,
  .consent-panel-actions .button {
    padding: 12px 16px;
    font-size: 0.98rem;
  }

  .consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1.15fr;
    gap: 8px;
  }

  .consent-actions .button {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    font-size: 0.88rem;
    line-height: 1.2;
  }

  .hero-points li {
    padding: 8px 12px;
    font-size: 0.94rem;
  }

  .phone-mockup {
    position: relative;
    inset: auto;
    transform: none;
    width: 100%;
  }

  .policy-card {
    padding: 20px;
  }

  .consent-banner {
    right: 10px;
    bottom: 10px;
    width: calc(100% - 20px);
    max-height: calc(100vh - 20px);
  }

  .consent-shell {
    gap: 14px;
    padding: 16px;
    border-radius: 22px;
    max-width: 360px;
    margin-left: auto;
  }

  .consent-option {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
  }

  .consent-title,
  .policy-title {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  .consent-copy {
    display: grid;
    gap: 10px;
  }

  .consent-copy .consent-links {
    gap: 10px 14px;
  }

  .consent-panel {
    gap: 12px;
    padding-top: 2px;
  }

  .consent-option p {
    margin: 0;
  }

  .consent-option {
    padding: 12px;
  }

  .consent-option h3 {
    font-size: 0.95rem;
    margin-bottom: 4px;
  }

  .consent-option p {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .consent-toggle-ui {
    width: 46px;
    height: 26px;
  }

  .consent-toggle-ui::after {
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
  }

  .consent-toggle input:checked + .consent-toggle-ui::after {
    transform: translateX(20px);
  }

  .consent-toggle {
    align-self: flex-end;
  }

  .consent-panel-actions .button {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
