﻿/* =========================================================
   Поздравуша — landing styles
   Mobile-first, warm palette, system fonts only
   ========================================================= */

:root {
  --bg: #FBF3E9;
  --bg-soft: #F6E9DA;
  --surface: #FFFFFF;
  --ink: #241610;
  --ink-soft: #4A3529;
  --muted: #6B5548;
  --line: #E7D3BF;
  --accent: #C93E28;
  --accent-dark: #B33420;
  --accent-soft: #FBE3DB;
  --gold: #F2C14E;
  --dark: #2A1A13;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(60, 30, 15, .06);
  --shadow: 0 14px 40px rgba(60, 30, 15, .10);
  --container: 1180px;
  --header-h: 64px;
  --font-sans: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", "PT Serif", serif;
}

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

[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a { color: inherit; }

h1, h2, h3, p, figure, ul, ol { margin: 0; }

h1, h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 7.2vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 4.6vw, 2.6rem); }
h3 { font-size: 1.06rem; line-height: 1.3; }

::selection { background: var(--accent); color: #fff; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 18px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

.ico {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 8px 0;
  background: rgba(251, 243, 233, .94);
  border-bottom: 1px solid rgba(231, 211, 191, .75);
  backdrop-filter: blur(10px);
}

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

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.14rem;
  letter-spacing: -.01em;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
}
.brand__mark svg { width: 20px; height: 20px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.btn:active { transform: scale(.98); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 22px rgba(201, 62, 40, .28);
}
.btn--primary:hover { background: var(--accent-dark); }

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

.btn--sm {
  min-height: 44px;
  padding: 0 18px;
  font-size: .95rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

/* download button variations */

.btn--lg {
  min-height: 60px;
  padding: 0 32px;
  font-size: 1.06rem;
}

.btn__icon {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn--light {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(80, 20, 10, .18);
}
.btn--light:hover { background: #FFF3E8; }

.cta-hint {
  margin-top: 10px;
  font-size: .86rem;
  color: var(--muted);
}
.cta-hint--light { color: #FFD5C7; }

.cta-row--single { margin-top: 26px; }

/* ---------- burger + mobile menu ---------- */

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: transparent;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

body.menu-open { overflow: hidden; }

.menu {
  position: fixed;
  inset: 0;
  z-index: 70;
}
.menu__scrim {
  position: absolute;
  inset: 0;
  background: rgba(36, 22, 16, .52);
  opacity: 0;
  transition: opacity .25s ease;
}
.menu.is-open .menu__scrim { opacity: 1; }

.menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(330px, 88vw);
  height: 100%;
  padding: 12px 20px calc(24px + env(safe-area-inset-bottom));
  background: var(--bg);
  box-shadow: -20px 0 60px rgba(36, 22, 16, .22);
  transform: translateX(100%);
  transition: transform .28s ease;
  overflow-y: auto;
}
.menu.is-open .menu__panel { transform: translateX(0); }

.menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}
.menu__close {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.menu__close svg { width: 20px; height: 20px; }

.menu__link {
  display: flex;
  align-items: center;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.02rem;
}
.menu__link:hover { color: var(--accent-dark); }

.menu__cta { margin-top: auto; }
.menu__hint {
  margin-top: 10px;
  font-size: .84rem;
  color: var(--muted);
  text-align: center;
}

@media (min-width: 900px) {
  .burger { display: inline-flex; }
}@media (max-width: 899px) {
  .site-header .btn--ghost { display: none; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 26px 0 42px;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  width: 460px;
  height: 460px;
  right: -180px;
  top: -120px;
  background: radial-gradient(circle, #F7DFC8 0%, rgba(247, 223, 200, 0) 68%);
}
.hero::after {
  width: 380px;
  height: 380px;
  left: -170px;
  bottom: -120px;
  background: radial-gradient(circle, #F5D9C5 0%, rgba(245, 217, 197, 0) 70%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 38px;
}

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}

.hero h1 { max-width: none; }

.lead {
  margin-top: 18px;
  font-size: 1.06rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero__ai {
  margin-top: 14px;
  padding-left: 15px;
  border-left: 3px solid var(--gold);
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero__ai strong { color: var(--ink); }

.hero__note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 18px;
  font-size: .9rem;
  color: var(--muted);
}
.hero__note .ico { color: #2E7D4F; margin-top: 2px; }

/* phone mockup */

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 0 8px;
}

.phone {
  position: relative;
  z-index: 2;
  width: min(272px, 76vw);
  aspect-ratio: 272 / 552;
  background: var(--ink);
  border-radius: 42px;
  padding: 9px;
  box-shadow: 0 30px 60px rgba(60, 30, 15, .24);
}

.phone__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 12px 11px 10px;
  border-radius: 34px;
  background: #FFF9F2;
  overflow: hidden;
}

.app-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 2px 3px 0;
}
.app-bar__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.app-bar__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: .84rem;
}
.app-bar__spark {
  margin-left: auto;
  color: var(--accent);
  font-size: .9rem;
}

.app-chips {
  display: flex;
  gap: 5px;
  overflow: hidden;
}
.app-chip {
  flex: none;
  padding: 4px 9px;
  border-radius: 999px;
  background: #F3E3D3;
  font-size: .56rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
.app-chip.is-active { background: var(--ink); color: #fff; }

.app-card {
  position: relative;
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  background: #F3E3D3;
}
.app-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.app-card figcaption {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(36, 22, 16, .74);
  color: #fff;
  font-size: .55rem;
  text-align: center;
  backdrop-filter: blur(4px);
}

.app-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 2px 0;
}
.app-action__meta { font-size: .58rem; color: var(--muted); }
.app-action__btn {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: .66rem;
  font-weight: 700;
}

.float-card {
  display: none;
  position: absolute;
  z-index: 1;
  width: 132px;
  padding: 6px 6px 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}
.float-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 11px;
}
.float-card figcaption {
  padding: 6px 2px 7px;
  font-size: .68rem;
  color: var(--muted);
  text-align: center;
}
.float-card--left { left: 0; top: 24%; transform: rotate(-7deg); }
.float-card--right { right: 0; bottom: 14%; transform: rotate(6deg); }

/* ---------- sections ---------- */

.section { padding: 56px 0; }

.section--soft {
  background: var(--bg-soft);
  border-top: 1px solid rgba(231, 211, 191, .7);
  border-bottom: 1px solid rgba(231, 211, 191, .7);
}

.section--dark {
  background: var(--dark);
  color: #FBF3E9;
}

.section-head { max-width: 640px; margin-bottom: 30px; }
.section-head__text {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 1rem;
}
.section-head--light .section-head__text { color: #D9C4B3; }
.section-head--light .eyebrow { color: var(--gold); }
.section-head--light h2 { color: #FFF8EF; }

/* ---------- steps ---------- */

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px 22px;
  box-shadow: var(--shadow-sm);
}
.step__num {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--font-serif);
  font-size: 1.9rem;
  line-height: 1;
  color: #E8CDB5;
}
.step__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.step__icon svg { width: 24px; height: 24px; }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---------- catalog ---------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cat {
  display: block;
  text-decoration: none;
  background: var(--surface);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease;
}
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat:active { transform: scale(.985); }

.cat__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #EAD4BF; }
.cat__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.cat:hover .cat__media img { transform: scale(1.04); }

.cat__body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 10px 12px 12px;
}
.cat__name { font-weight: 700; font-size: .95rem; line-height: 1.25; }
.cat__count { font-size: .78rem; color: var(--muted); }

.catalog-note {
  margin: 18px 0 30px;
  font-size: .92rem;
  color: var(--muted);
  max-width: 62ch;
}

.swipe-note {
  display: none;
  margin: 10px 0 0;
  font-size: .8rem;
  color: var(--muted);
}

.tpl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tpl {
  text-decoration: none;
  color: inherit;
  display: block;
}
.tpl img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  background: #EAD4BF;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.tpl:hover img { transform: translateY(-3px); box-shadow: var(--shadow); }
.tpl:active img { transform: scale(.985); }

.tpl__caption {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 4px 0;
}
.tpl__caption span { font-weight: 700; font-size: .92rem; }
.tpl__caption em {
  font-style: normal;
  font-size: .78rem;
  color: var(--muted);
}

/* ---------- AI ---------- */

.ai-grid {
  display: grid;
  gap: 14px;
}

.ai-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: #36231B;
  border: 1px solid rgba(255, 243, 232, .12);
}

.ai-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #452C21;
}
.ai-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(36, 22, 16, .82);
  color: #FFF3E8;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.ai-card__body {
  padding: 14px 16px 18px;
}
.ai-card__prompt {
  font-size: .92rem;
  color: #EBD9C8;
}
.ai-card__result {
  margin-top: 6px;
  font-size: .82rem;
  color: var(--gold);
}

.ai-card__media--text { padding: 0; }
.text-demo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  height: 100%;
  padding: 46px 18px 22px;
  background: linear-gradient(160deg, #4A2C20, #331F18);
}
.text-demo > p:first-child {
  font-size: .86rem;
  color: #D9C4B3;
  font-style: italic;
}
.text-demo__arrow { color: var(--gold); font-size: 1rem; }
.text-demo__result {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.4;
  color: #FFF8EF;
}

.ai-card__media--voice {
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #4A2C20, #33201A);
  padding: 20px;
}
.voice-demo {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 999px;
  background: rgba(255, 243, 232, .07);
  border: 1px solid rgba(255, 243, 232, .12);
}
.voice-demo__play {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: .7rem;
}
.voice-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 32px;
  flex: 1;
  overflow: hidden;
}
.voice-bars i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: #F0C9A9;
  height: 30%;
}
.voice-bars i:nth-child(2n) { height: 62%; }
.voice-bars i:nth-child(3n) { height: 92%; }
.voice-bars i:nth-child(5n) { height: 44%; }
.voice-bars i:nth-child(7n) { height: 76%; }
.voice-demo__time {
  flex: none;
  font-size: .72rem;
  color: #D9C4B3;
  font-variant-numeric: tabular-nums;
}

.ai-note {
  margin-top: 20px;
  font-size: .82rem;
  color: #B9A08D;
  max-width: 68ch;
}

/* ---------- benefits ---------- */

.benefits {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

.benefit {
  display: flex;
  gap: 14px;
  padding: 18px 18px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.benefit__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  background: #F7E8D8;
  color: var(--accent-dark);
}
.benefit__icon svg { width: 22px; height: 22px; }
.benefit h3 { margin-bottom: 3px; font-size: 1rem; }
.benefit p { color: var(--muted); font-size: .92rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 28px;
  padding: 22px 12px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #FFF8EF;
  text-align: center;
}
.stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 5vw, 2rem);
  color: var(--gold);
  line-height: 1.1;
}
.stat span { font-size: .78rem; color: #D9C4B3; }

.stats__note {
  margin-top: 10px;
  font-size: .82rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- final cta ---------- */

.final {
  border-radius: var(--radius-lg);
  padding: 34px 22px;
  background:
    radial-gradient(120% 130% at 100% 0%, #DE6A50 0%, rgba(222, 106, 80, 0) 55%),
    linear-gradient(150deg, #C93E28 0%, #A3301D 100%);
  color: #fff;
  box-shadow: 0 20px 50px rgba(163, 48, 29, .28);
}
.final h2 { color: #fff; }
.final p {
  margin-top: 12px;
  max-width: 46ch;
  color: #FFE7DC;
}
.cta-row--final { margin-top: 24px; }

.final__art { display: none; }

@media (min-width: 900px) {
  .final__art {
    display: block;
    position: relative;
    width: 330px;
    height: 360px;
    flex: none;
  }
  .final__art-img {
    position: absolute;
    object-fit: cover;
    border-radius: 18px;
    border: 7px solid #FFF8EF;
    box-shadow: 0 18px 40px rgba(80, 20, 10, .35);
  }
  .final__art-img--back {
    width: 200px;
    height: 200px;
    top: 6px;
    right: 0;
    transform: rotate(8deg);
  }
  .final__art-img--front {
    width: 200px;
    height: 200px;
    bottom: 0;
    left: 0;
    transform: rotate(-7deg);
  }
}

/* ---------- FAQ ---------- */

.faq { margin-top: 44px; }
.faq h2 { margin-bottom: 18px; }

.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 16px 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus {
  position: relative;
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 50%;
  background: #F7E8D8;
}
.faq__plus::before,
.faq__plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-dark);
  transform: translate(-50%, -50%);
  transition: transform .2s ease;
}
.faq__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__body { padding: 0 18px 18px; color: var(--muted); font-size: .95rem; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: #EFE2D4;
  padding: 40px 0 100px;
}
.site-footer__inner {
  display: grid;
  gap: 26px;
}
.brand--footer { color: #FFF8EF; font-size: 1.16rem; }
.brand--footer .brand__mark { background: var(--accent); }
.site-footer__brand p {
  margin-top: 10px;
  font-size: .9rem;
  color: #BFA894;
  max-width: 34ch;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: .92rem;
}
.site-footer__links a {
  color: #EFE2D4;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.site-footer__links a:hover { border-bottom-color: #8A7261; }

.site-footer__req { font-size: .86rem; color: #BFA894; }
.site-footer__req p { margin: 0 0 5px; }
.site-footer__req a {
  color: #EFE2D4;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.site-footer__req a:hover { border-bottom-color: #8A7261; }
.site-footer__h {
  margin-bottom: 8px !important;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #EFE2D4;
}

.site-footer__bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(239, 226, 212, .14);
  display: grid;
  gap: 8px;
  font-size: .78rem;
  color: #A78E7B;
}
.site-footer__small { max-width: 70ch; }
.site-footer__ad {
  grid-column: 1 / -1;
  margin-top: 4px;
  color: #D9C4B3;
  font-size: .74rem;
}

/* ---------- sticky mobile cta ---------- */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(251, 243, 233, .94);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(60, 30, 15, .08);
  backdrop-filter: blur(10px);
  transform: translateY(115%);
  transition: transform .25s ease;
  pointer-events: none;
}
.sticky-cta.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}
.sticky-cta__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}
.sticky-cta__text strong { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sticky-cta__text span {
  font-size: .74rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-cta .btn {
  margin-left: auto;
  min-height: 46px;
  padding: 0 22px;
  font-size: .95rem;
  flex: none;
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 80;
  transform: translate(-50%, 12px);
  max-width: min(92vw, 420px);
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: #FFF8EF;
  font-size: .88rem;
  text-align: center;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- legal pages ---------- */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 0 80px;
}
.legal h1 { margin-bottom: 18px; font-size: clamp(1.9rem, 5.4vw, 2.6rem); }
.legal h2 { margin: 30px 0 10px; font-size: 1.35rem; }
.legal p, .legal li { color: var(--ink-soft); margin-bottom: 10px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--accent-dark); }
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: .92rem;
  text-decoration: none;
  color: var(--muted);
}
.legal__date { font-size: .85rem; color: var(--muted); margin-bottom: 24px; }

.legal__box {
  margin: 18px 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: #F8ECDD;
  border: 1px solid var(--line);
}
.legal__box p:last-child { margin-bottom: 0; }

.legal__tablewrap { overflow-x: auto; margin: 8px 0 14px; }
.legal__table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.legal__table th,
.legal__table td {
  padding: 9px 11px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.legal__table th { background: #F6E9DA; font-weight: 700; }
.legal__table td { color: var(--ink-soft); }

.legal__req {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #F8ECDD;
  border: 1px solid var(--line);
  font-size: .9rem;
}
.legal__req p { margin-bottom: 4px; }
.legal__req p:last-child { margin-bottom: 0; }

.legal-page .site-footer { padding-bottom: 40px; }

/* ---------- breakpoints ---------- */

@media (min-width: 560px) {
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ai-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .final { padding: 44px 38px; }
}

@media (min-width: 640px) {
  body { font-size: 18px; }
  .container { padding: 0 26px; }
  .steps { gap: 16px; }
  .tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefit:last-child { grid-column: span 2; }
  .final { text-align: center; }
  .final p { margin-left: auto; margin-right: auto; }
  .cta-row--final { justify-content: center; }
  .site-footer__inner { grid-template-columns: 1.2fr .8fr; align-items: start; }
  .site-footer__req { grid-column: 1 / -1; }
  .site-footer__bottom { grid-template-columns: 1fr auto; align-items: center; }
  .site-footer__small { text-align: right; }
}

@media (min-width: 900px) {
  .hero { padding: 46px 0 66px; }
  .hero__inner {
    grid-template-columns: 1.02fr .98fr;
    align-items: center;
    gap: 24px;
  }
  .hero h1 { max-width: 15ch; }
  .lead { font-size: 1.12rem; }
  .float-card { display: block; }
  .phone { width: 292px; }
  .hero__visual { min-height: 600px; }
  .float-card--left { left: -4px; top: 21%; }
  .float-card--right { right: -4px; bottom: 16%; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .tpl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .ai-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .benefits { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
  .benefit { grid-column: span 2; }
  .benefit:nth-child(4),
  .benefit:nth-child(5) { grid-column: span 3; }
  .final {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 54px 56px;
    text-align: left;
  }
  .final__copy { max-width: 540px; }
  .final p { margin-left: 0; margin-right: 0; }
  .cta-row--final { margin-top: 28px; justify-content: flex-start; }
  .faq { max-width: 820px; margin-top: 56px; }
  .site-footer { padding-bottom: 48px; }
  .sticky-cta { display: none; }
  .site-footer__inner { grid-template-columns: 1.3fr 1fr 1fr; }
  .site-footer__req { grid-column: auto; }
}

@media (min-width: 1100px) {
  .phone { width: 310px; }
  .float-card { width: 148px; }
  .float-card--left { left: -14px; }
  .float-card--right { right: -14px; }
}

@media (max-width: 899px) {
  .hero__visual { order: 2; }
  .hero__copy { order: 1; }
  .site-footer { padding-bottom: 150px; }
}

@media (max-width: 560px) {
  .cta-row--single .btn { width: 100%; }
}

@media (max-width: 420px) {
  .section { padding: 48px 0; }
  .menu__panel { width: 92vw; }
}

@media (min-width: 720px) and (max-width: 899px) {
  .tpl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
}

@media (min-width: 1000px) {
  .cat-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 639px) {
  .cat-grid,
  .tpl-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .cat-grid::-webkit-scrollbar,
  .tpl-grid::-webkit-scrollbar { display: none; }

  .cat { flex: 0 0 44%; scroll-snap-align: start; }
  .tpl { flex: 0 0 64%; scroll-snap-align: start; }
  .swipe-note { display: block; }
}

/* ---------- support chat ---------- */

.support {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 65;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.support__launcher {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(120, 40, 20, .35);
  transition: transform .16s ease, background-color .16s ease;
}
.support__launcher:hover { background: var(--accent-dark); transform: translateY(-2px); }
.support__icon {
  position: absolute;
  width: 25px;
  height: 25px;
  transition: opacity .16s ease, transform .16s ease;
}
.support__icon--close { opacity: 0; transform: rotate(-40deg) scale(.7); }
.support.is-open .support__icon--chat { opacity: 0; transform: rotate(30deg) scale(.7); }
.support.is-open .support__icon--close { opacity: 1; transform: rotate(0) scale(1); }

.support__badge {
  position: absolute;
  top: -3px;
  right: -3px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--ink);
  font-size: .7rem;
  font-weight: 700;
  border: 2px solid var(--bg);
}

.support__panel {
  display: flex;
  flex-direction: column;
  width: min(360px, calc(100vw - 36px));
  height: auto;
  max-height: min(560px, calc(100dvh - 110px));
  background: #FFFDF9;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(36, 22, 16, .28);
}
.support.is-chat .support__panel {
  height: min(560px, calc(100dvh - 110px));
}

.support__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  background: var(--ink);
  color: #FFF8EF;
}
.support__who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.support__avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}
.support__avatar svg { width: 19px; height: 19px; }
.support__who b { display: block; font-size: .95rem; line-height: 1.2; }
.support__who > div > span { display: block; font-size: .71rem; color: #D9C4B3; }
.support__close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 248, 239, .12);
  color: #fff;
  cursor: pointer;
}
.support__close:hover { background: rgba(255, 248, 239, .2); }
.support__close svg { width: 18px; height: 18px; }

.support__messages {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  overflow-y: auto;
  background: #FFF9F2;
}

.support__body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.support__intro {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 14px;
  overflow-y: auto;
}
.support__hello {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.25;
}
.support__sub {
  font-size: .82rem;
  line-height: 1.5;
  color: var(--muted);
}
.support__chips { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.support__chips button {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #FFF9F2;
  color: var(--ink);
  font: inherit;
  font-size: .84rem;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.support__chips button:hover { border-color: var(--accent); background: #FFF1E7; color: var(--accent-dark); }

.support__namefield { display: flex; flex-direction: column; gap: 5px; margin-top: 2px; }
.support__namefield span { font-size: .74rem; color: var(--muted); }
.support__namefield input {
  width: 100%;
  min-height: 38px;
  padding: 8px 11px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #FFF9F2;
  color: var(--ink);
  font: inherit;
  font-size: .86rem;
}
.support__namefield input:focus { border-color: var(--accent); outline: none; }
.support__namefield input::placeholder { color: #A9917F; }

.support__start {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .16s ease;
}
.support__start:hover { background: var(--accent-dark); }
.support__legal { font-size: .68rem; line-height: 1.5; color: var(--muted); }
.support__legal a { color: var(--accent-dark); text-underline-offset: 2px; }

.support__msg {
  max-width: 86%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: .9rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}
.support__msg--staff {
  align-self: flex-start;
  background: #F3E3D3;
  color: var(--ink);
  border-bottom-left-radius: 5px;
}
.support__msg--user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 5px;
}
.support__time {
  display: block;
  margin-top: 3px;
  font-size: .66rem;
  opacity: .7;
}
.support__note {
  align-self: center;
  margin: auto 0;
  color: var(--muted);
  font-size: .8rem;
  text-align: center;
  max-width: 26ch;
}

.support__form {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px;
  border-top: 1px solid var(--line);
  background: #FFFDF9;
}
.support__row input {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  background: #FFF9F2;
  color: var(--ink);
  font: inherit;
  font-size: .9rem;
}
.support__row input:focus { border-color: var(--accent); outline: none; }
.support__row input::placeholder { color: #A9917F; }

.support__row { display: flex; align-items: center; gap: 8px; }
.support__row input { flex: 1; min-width: 0; min-height: 44px; }
.support__row button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}
.support__row button:hover { background: var(--accent-dark); }
.support__row button:disabled { opacity: .5; cursor: not-allowed; }
.support__row button svg { width: 20px; height: 20px; }

body.support-open .sticky-cta { transform: translateY(115%); }

@media (max-width: 899px) {
  .support { right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); }
  .support.is-open { bottom: calc(12px + env(safe-area-inset-bottom)); }
  .support__panel {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 100px);
  }
  .support.is-chat .support__panel {
    height: min(78dvh, 620px);
    max-height: calc(100dvh - 100px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
