/* Собрано deploy/server/sites/_shared/build.mjs из apps/firstaidkit/firstaidkit.css. Не править здесь: правьте шаблон и пересоберите. */
/* My First Aid Kit (myfirstaidkit.life) — «большая капсула»: светлый лавандовый
   фон, крупная двухцветная капсула с иконки, вокруг неё карточки лекарств со
   сроками; фиолетовый акцент #5546C8. Системные шрифты (Manrope — если стоит),
   ни ссылок на файлы, ни импортов (CSP 'self'). Раскладка общая для сайтов
   приложений, здесь — только облик. */

:root {
  --bg: #f6f4fd;
  --ink: #1e1a3a;
  --muted: #4a4570;
  --muted2: #5c5780;
  --violet: #5546c8;
  --deep: #2f2585;
  --iris: #4234b0;
  --lilac: #8b7deb;
  --lav: #d5cef3;
  --lav2: #e7e3fa;
  --line: #e2ddf6;
  --amber: #f0a24e;
  --cream: #ffe7c7;
  --ok: #1f6b3a;
  --ok-bg: #e2f3e7;
  --soon: #8a4a00;
  --soon-bg: #fff0d9;
  --bad: #9e2f27;
  --bad-bg: #fde6e3;
  --accent: #5546c8;
  --wrap: 1160px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
html.modal-open {
  overflow: hidden;
}
body {
  font: 16px/1.55 Manrope, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a {
  color: var(--violet);
}
img {
  display: block;
}
:focus-visible {
  outline: 3px solid var(--iris);
  outline-offset: 3px;
  border-radius: 10px;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--violet);
  color: #fff;
  font-weight: 700;
  transition: top 0.2s;
}
.skip:focus {
  top: 12px;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
h1,
h2,
h3 {
  font-weight: 800;
  text-wrap: balance;
}

/* --- Шапка --- */
.top {
  position: sticky;
  top: 12px;
  z-index: 10;
  padding-bottom: 12px;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 62px;
  padding: 0 10px 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -20px rgba(30, 26, 58, 0.35);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 19px;
}
.brand__mark,
.foot__mark {
  border-radius: 11px;
}
.foot__mark {
  border-radius: 8px;
}
.nav__links {
  display: flex;
  gap: 2px;
  font-size: 15px;
  font-weight: 600;
}
.nav__links a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.nav__links a:hover,
.nav__links a[aria-current='page'] {
  background: var(--lav2);
  color: var(--violet);
}

/* --- Кнопки --- */
.btn,
.premium-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 0;
  background: var(--violet);
  color: #fff;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 10px 24px -12px rgba(85, 70, 200, 0.8);
}
.btn:hover,
.premium-btn:hover {
  transform: translateY(-2px);
  background: #4638b5;
  box-shadow: 0 16px 30px -12px rgba(85, 70, 200, 0.8);
}
.btn.apr {
  background: var(--amber);
  color: #3a2410;
  box-shadow: 0 10px 24px -12px rgba(240, 162, 78, 0.9);
}
.btn.apr:hover {
  background: #f5b46a;
}
.btn.soft,
.btn.ghost,
.premium-btn.ghost {
  background: #fff;
  color: var(--violet);
  box-shadow: 0 10px 24px -16px rgba(30, 26, 58, 0.4);
}
.btn.soft:hover,
.btn.ghost:hover,
.premium-btn.ghost:hover {
  background: var(--lav2);
}
.btn.sm {
  padding: 9px 18px;
  font-size: 14px;
}
.premium-btn:disabled {
  opacity: 0.5;
  cursor: progress;
  transform: none;
}

/* --- Бейджи --- */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px 9px 14px;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  line-height: 1.05;
  transition: transform 0.2s, background 0.2s;
}
a.badge:hover {
  transform: translateY(-2px);
  background: var(--violet);
}
.badge__icon {
  width: 24px;
  height: 24px;
  flex: none;
}
.badge__text small {
  display: block;
  font-size: 10px;
  opacity: 0.8;
}
.badge__text b {
  font-size: 16px;
  font-weight: 700;
}
.badge.is-soon {
  opacity: 0.92;
}

.btn.light {
  background: #fff;
  color: var(--deep);
  box-shadow: 0 10px 24px -14px rgba(20, 14, 70, 0.6);
}
.btn.light:hover {
  background: var(--lav2);
}
.btn.glass {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}
.btn.glass:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* --- Фон --- */
.orbs {
  position: absolute;
  inset: 0 0 auto;
  height: 1200px;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}
.o1 {
  width: 520px;
  height: 520px;
  right: -140px;
  top: 40px;
  background: #ddd6fb;
}
.o2 {
  width: 380px;
  height: 380px;
  left: -160px;
  top: 520px;
  background: #ece8fd;
}

/* --- Статусы срока --- */
.st {
  display: inline-block;
  font-weight: 800;
  white-space: nowrap;
}
.st--ok {
  color: var(--ok);
}
.st--soon {
  color: var(--soon);
}
.st--bad {
  color: var(--bad);
}

/* --- Герой: большая капсула --- */
.hero {
  padding: 40px 0 48px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 24px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(42px, 5.6vw, 66px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}
.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 32em;
  margin-bottom: 26px;
}
.soon {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--iris);
}
.soon__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 4px var(--lav2);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 7px rgba(85, 70, 200, 0.12);
  }
}
.price-line {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted2);
}
.stage {
  --mx: 0;
  --my: 0;
  position: relative;
  height: 520px;
}
.capsule {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.capsule__pill {
  transform-origin: 280px 260px;
  animation: float 7s ease-in-out 1.4s infinite;
}
@keyframes float {
  50% {
    transform: translateY(-10px) rotate(-1.5deg);
  }
}
.med {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px -26px rgba(30, 26, 58, 0.45);
  transition: margin 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.med b {
  font-size: 15px;
  font-weight: 800;
}
.med .st {
  font-size: 13px;
}
.med1 {
  left: 0;
  top: 54px;
}
.med2 {
  right: 0;
  top: 190px;
}
.med3 {
  left: 36px;
  bottom: 30px;
}
.dp1 {
  margin: calc(var(--my) * 8px) 0 0 calc(var(--mx) * -12px);
}
.dp2 {
  margin: calc(var(--my) * 12px) 0 0 calc(var(--mx) * 16px);
}

/* --- Внутри приложения: телефон --- */
.tour__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.tour__copy h2 {
  font-size: clamp(30px, 3.8vw, 44px);
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.tour__copy .sub {
  margin: 0 0 22px;
}
.legend {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}
.legend li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 600;
}
.legend .st {
  min-width: 84px;
  padding: 5px 12px;
  border-radius: 999px;
  text-align: center;
  font-size: 13px;
}
.legend .st--ok {
  background: var(--ok-bg);
}
.legend .st--soon {
  background: var(--soon-bg);
}
.legend .st--bad {
  background: var(--bad-bg);
}
.tour__stage {
  position: relative;
  height: 660px;
}
.phone {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 290px;
  height: 600px;
  border-radius: 50px;
  background: var(--ink);
  padding: 11px;
  box-shadow: 0 50px 80px -40px rgba(30, 26, 58, 0.6);
}
.screen {
  width: 100%;
  height: 100%;
  border-radius: 40px;
  background: var(--bg);
  overflow: hidden;
  position: relative;
  font-size: 12px;
}
.island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 24px;
  border-radius: 14px;
  background: #000;
  z-index: 4;
}
.scr {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(34px) scale(0.96);
  transition: opacity 0.45s, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s 0.6s;
}
.scr.is-before {
  transform: translateX(-34px) scale(0.96);
}
.scr.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.scr .it {
  opacity: 0;
  transform: translateY(14px) scale(0.97);
}
.scr.is-on .it {
  animation: itemIn 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.scr.is-on .it:nth-child(1) { animation-delay: 0.05s; }
.scr.is-on .it:nth-child(2) { animation-delay: 0.15s; }
.scr.is-on .it:nth-child(3) { animation-delay: 0.25s; }
.scr.is-on .it:nth-child(4) { animation-delay: 0.35s; }
.scr.is-on .it:nth-child(5) { animation-delay: 0.45s; }
.scr.is-on .it:nth-child(6) { animation-delay: 0.55s; }
@keyframes itemIn {
  to {
    opacity: 1;
    transform: none;
  }
}
.s-title {
  padding: 50px 16px 10px;
}
.s-title b {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.s-title span {
  color: var(--muted2);
  font-size: 11px;
  font-weight: 600;
}
.kits {
  display: flex;
  gap: 6px;
  margin: 0 14px 8px;
}
.kits span {
  padding: 6px 11px;
  border-radius: 999px;
  background: #fff;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
}
.kits .on {
  background: var(--violet);
  color: #fff;
}
.sum {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 0 14px 8px;
}
.sum div {
  padding: 8px 10px;
  border-radius: 14px;
  background: #fff;
}
.sum b {
  display: block;
  font-size: 18px;
  font-weight: 800;
}
.sum div:nth-child(1) b {
  color: var(--bad);
}
.sum div:nth-child(2) b {
  color: var(--soon);
}
.sum div:nth-child(3) b {
  color: var(--ok);
}
.sum span {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted2);
}
.row,
.lot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 14px 6px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #fff;
}
.row b,
.lot b {
  display: block;
  font-size: 12px;
  font-weight: 800;
}
.row span,
.lot span {
  color: var(--muted2);
  font-size: 10.5px;
  font-weight: 600;
}
.row > div,
.lot > div {
  flex: 1;
  min-width: 0;
}
.row b,
.lot b,
.row div span,
.lot div span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row > .st,
.lot > .st {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 800;
}
.row > .st--ok,
.lot > .st--ok {
  color: var(--ok);
}
.row > .st--soon,
.lot > .st--soon {
  color: var(--soon);
}
.row > .st--bad {
  color: var(--bad);
}
.pk {
  flex: none;
  width: 30px;
  height: 14px;
  border-radius: 7px;
  transform: rotate(-38deg);
  background: linear-gradient(90deg, var(--violet) 50%, var(--lav) 50%);
}
.pk--c {
  background: linear-gradient(90deg, var(--lilac) 50%, #fff 50%);
  box-shadow: inset 0 0 0 1px var(--lav);
}
.tick {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 2px solid var(--lav);
}
.tick.on {
  border-color: var(--violet);
  background: var(--violet);
}
.lbl {
  margin: 8px 18px 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted2);
}
.note {
  margin: 10px 14px 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--lav2);
  color: var(--iris);
  font-size: 10.5px;
  font-weight: 700;
}
.acts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin: 4px 14px 8px;
}
.acts span {
  padding: 8px 0;
  border-radius: 12px;
  background: var(--violet);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}
.hist {
  margin: 0 14px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #fff;
}
.hist b {
  display: block;
  font-size: 11px;
  margin-bottom: 2px;
}
.hist span {
  display: block;
  color: var(--muted2);
  font-size: 10.5px;
  font-weight: 600;
}
.fab {
  position: absolute;
  right: 18px;
  bottom: 80px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 600;
  box-shadow: 0 12px 24px -10px rgba(85, 70, 200, 0.8);
}
.tabs {
  position: absolute;
  bottom: 10px;
  left: 14px;
  right: 14px;
  height: 56px;
  border-radius: 999px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #fff;
  font-size: 9px;
  font-weight: 700;
  color: var(--muted2);
  box-shadow: 0 10px 20px -14px rgba(30, 26, 58, 0.4);
  z-index: 3;
}
.tabs span {
  text-align: center;
  transition: color 0.4s;
}
.tabs i {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 7px;
  background: var(--lav2);
  margin: 0 auto 3px;
  transition: background 0.4s, transform 0.4s;
}
[data-i='0'] .tabs span:nth-child(1),
[data-i='1'] .tabs span:nth-child(2),
[data-i='2'] .tabs span:nth-child(3),
[data-i='3'] .tabs span:nth-child(1) {
  color: var(--violet);
}
[data-i='0'] .tabs span:nth-child(1) i,
[data-i='1'] .tabs span:nth-child(2) i,
[data-i='2'] .tabs span:nth-child(3) i,
[data-i='3'] .tabs span:nth-child(1) i {
  background: var(--violet);
  transform: scale(1.12);
}
.dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  gap: 4px;
}
.dots button {
  position: relative;
  width: 28px;
  height: 28px;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
}
.dots button::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 999px;
  background: var(--lav);
  transition: width 0.4s, margin 0.4s, background 0.4s;
}
.dots button[aria-current='true']::after {
  width: 24px;
  margin-left: -12px;
  background: var(--violet);
}

/* --- Секции --- */
.sec {
  padding: 56px 0;
}
.sec__head {
  text-align: center;
  margin-bottom: 34px;
}
.sec__head h2 {
  font-size: clamp(30px, 3.8vw, 44px);
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.sub {
  color: var(--muted);
  max-width: 56ch;
  margin: 0 auto;
}
.eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--iris);
  margin-bottom: 8px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.card {
  background: #fff;
  border-radius: 28px;
  padding: 26px 22px;
  box-shadow: 0 20px 40px -30px rgba(30, 26, 58, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 50px -30px rgba(30, 26, 58, 0.5);
}
.card:hover .em {
  transform: rotate(-8deg) scale(1.08);
}
.em {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 26px;
  margin-bottom: 16px;
  transition: transform 0.3s;
}
.card h3 {
  font-size: 19px;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.card p {
  color: var(--muted);
  font-size: 15px;
}
.priv__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.priv__item {
  background: var(--lav2);
  border-radius: 28px;
  padding: 26px 24px;
}
.priv__icon {
  width: 30px;
  height: 30px;
  color: var(--violet);
  margin-bottom: 12px;
}
.priv__item h3 {
  font-size: 19px;
  margin-bottom: 6px;
}
.priv__item p {
  color: var(--muted);
  font-size: 15px;
}

/* --- Premium --- */
.prem {
  padding-top: 20px;
}
.prem .box {
  border-radius: 36px;
  padding: 50px;
  background: var(--violet);
  color: #fff;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.prem .box::before {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--iris);
  opacity: 0.5;
}
.prem .box::after {
  content: '';
  position: absolute;
  right: 120px;
  bottom: -90px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--lilac);
  opacity: 0.25;
}
.box__copy,
.price {
  position: relative;
  z-index: 1;
}
.prem h2 {
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-bottom: 14px;
}
.box__copy > p {
  color: #e4e0fb;
  font-size: 17px;
  margin-bottom: 22px;
}
.actions,
.modal__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.price {
  background: #fff;
  color: var(--ink);
  border-radius: 28px;
  padding: 30px;
  text-align: center;
}
.price__tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--cream);
  color: #8a4a00;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
}
.price .big {
  font-size: 58px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.price .big small {
  font-size: 16px;
  color: var(--muted);
  font-weight: 700;
}
.price__alt {
  color: var(--muted);
  font-weight: 700;
}
.price ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 12px;
  text-align: left;
}
.price li {
  padding: 9px 0;
  border-top: 1px solid var(--lav2);
  font-weight: 600;
  font-size: 15px;
  display: flex;
  gap: 10px;
}
.price li::before {
  content: '✓';
  color: var(--iris);
  font-weight: 800;
}
.price__link {
  font-weight: 800;
}

/* --- FAQ --- */
.faq .sec__head {
  text-align: left;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.faq__list {
  display: grid;
  gap: 10px;
  max-width: 820px;
  margin: 0 auto;
}
.qa {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 14px 30px -26px rgba(30, 26, 58, 0.5);
  transition: box-shadow 0.3s;
}
.qa[open] {
  box-shadow: 0 20px 40px -24px rgba(30, 26, 58, 0.45);
}
.qa summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 60px 18px 22px;
  font-weight: 700;
  position: relative;
  border-radius: 22px;
}
.qa summary::-webkit-details-marker {
  display: none;
}
.qa summary::after {
  content: '+';
  position: absolute;
  right: 16px;
  top: 50%;
  margin-top: -15px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--lav2);
  color: var(--violet);
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
  transition: transform 0.3s, background 0.3s;
}
.qa[open] summary::after {
  transform: rotate(135deg);
  background: var(--amber);
  color: #3a2410;
}
.qa p {
  padding: 0 22px 20px;
  color: var(--muted);
  animation: itemIn 0.4s ease both;
}

/* --- Подвал --- */
.foot {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.foot__in {
  display: flex;
  align-items: center;
  gap: 14px 32px;
  flex-wrap: wrap;
  padding-top: 28px;
  padding-bottom: 36px;
}
.foot__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}
.foot__links {
  display: flex;
  gap: 8px 22px;
  flex-wrap: wrap;
}
.foot a {
  color: var(--muted);
  text-decoration: none;
}
.foot a:hover {
  color: var(--violet);
  text-decoration: underline;
}
.foot__copy {
  margin-left: auto;
}

/* --- Окна --- */
dialog.dlg {
  margin: auto;
  border: 0;
  padding: 0;
  background: transparent;
  max-width: none;
  width: min(540px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow: visible;
  color: var(--ink);
}
dialog.dlg:focus,
dialog.dlg:focus-visible {
  outline: none;
}
dialog.dlg::backdrop {
  background: rgba(30, 26, 58, 0.5);
  backdrop-filter: blur(6px);
  animation: fade 0.3s;
}
dialog.dlg[open] .modal {
  animation: sheet 0.5s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.modal {
  background: #fff;
  border-radius: 32px;
  padding: 36px;
  position: relative;
  box-shadow: 0 40px 80px -30px rgba(30, 26, 58, 0.5);
  max-height: calc(100dvh - 32px);
  overflow: auto;
}
.modal__eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--iris);
  margin-bottom: 6px;
}
.modal h2 {
  font-size: 30px;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  padding-right: 40px;
}
.modal > p {
  color: var(--muted);
  margin-bottom: 18px;
}
.modal .x {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: var(--bg);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: var(--ink);
  transition: background 0.2s, transform 0.2s;
}
.modal .x:hover {
  background: var(--lav2);
  transform: rotate(90deg);
}
.modal__row {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
.stores--modal {
  flex-direction: column;
  align-items: flex-start;
}
.qr {
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.qr__svg {
  display: block;
  width: 124px;
  height: 124px;
  border-radius: 18px;
  margin: 0 auto 6px;
  border: 2px solid var(--lav2);
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  gap: 10px;
}
.steps li {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--bg);
  align-items: center;
}
.steps__n {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  flex: none;
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes sheet {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
}

/* --- Страницы Premium, подарка, правовые, 404 --- */
.pagehead {
  padding: 40px 0 8px;
}
.pagehead .wrap {
  max-width: 860px;
}
.pagehead h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 14px;
}
.pagehead .eyebrow {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--violet);
  letter-spacing: 0.06em;
  box-shadow: 0 6px 20px -12px rgba(30, 26, 58, 0.4);
}
.pagehead .lead {
  margin-bottom: 0;
}
.legal {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 24px 88px;
}
.legal h2 {
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 38px 0 10px;
}
.legal p,
.legal li {
  max-width: 70ch;
  margin-bottom: 12px;
}
.legal ul,
.legal ol {
  padding-left: 22px;
}
.legal ul.ticks {
  padding-left: 0;
  list-style: none;
}
.ticks li {
  position: relative;
  padding-left: 32px;
}
.ticks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--lav2);
  color: var(--violet);
  font-size: 13px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.premium-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 26px 0 14px;
}
.plan {
  position: relative;
  background: #fff;
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 20px 40px -30px rgba(30, 26, 58, 0.4);
  border: 2px solid transparent;
}
.legal .plan h2 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--iris);
}
.legal .plan p {
  margin: 0;
}
.plan--best {
  border-color: var(--iris);
}
.plan--best::after {
  content: 'Save 42%';
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--cream);
  color: #8a4a00;
  font-size: 12px;
  font-weight: 800;
}
.plan__price {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 6px 0 !important;
}
.plan__note {
  color: var(--muted);
  font-size: 14px;
}
.premium-form {
  display: grid;
  gap: 12px;
  max-width: 420px;
  margin: 18px 0;
}
.premium-form label {
  font-weight: 700;
}
.premium-form input,
.premium-form select {
  font: inherit;
  padding: 13px 18px;
  border-radius: 999px;
  border: 2px solid var(--lav2);
  background: #fff;
  color: var(--ink);
}
.premium-form input:focus {
  border-color: var(--iris);
}
.premium-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.premium-status {
  padding: 12px 18px;
  border-radius: 20px;
  background: var(--lav2);
  max-width: 560px;
}
.premium-small {
  font-size: 14px;
  color: var(--muted);
}
.legal__note {
  color: var(--muted);
  font-size: 14px;
}
.legal .premium-btn {
  margin-right: 8px;
}
[hidden] {
  display: none !important;
}

/* --- Карточки возможностей: 3 в ряд, значки линией --- */
.grid {
  grid-template-columns: repeat(3, 1fr);
}
.card .ic {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--lav2);
  margin-bottom: 16px;
  transition: transform 0.3s;
}
.card:hover .ic {
  transform: rotate(-8deg) scale(1.08);
}
.card .ic svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--violet);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.prem .ticks li {
  margin-bottom: 8px;
  font-weight: 600;
}
.prem .ticks {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}

.premium-get {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 22px 0 18px;
}
.legal ol.steps--page {
  margin-top: 8px;
  padding-left: 0;
}
.steps--page li {
  background: #fff;
  max-width: none;
}
.invite .premium-btn {
  margin-bottom: 8px;
}

/* --- Движение --- */
.reveal {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  animation: up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.15s; }
.d3 { animation-delay: 0.28s; }
.d4 { animation-delay: 0.4s; }
.d5 { animation-delay: 0.52s; }
.capsule.reveal {
  transform: scale(0.92) rotate(6deg);
  animation: up 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards;
}
.med.reveal {
  animation: up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.8s forwards, hover 6s ease-in-out 1.6s infinite;
}
.med2.reveal {
  animation-delay: 0.95s, 2s;
}
.med3.reveal {
  animation-delay: 1.1s, 2.4s;
}
.js .io {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  transition: opacity 0.6s, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.js .io.in {
  opacity: 1;
  transform: none;
}
.io.dl1 { transition-delay: 0.1s; }
.io.dl2 { transition-delay: 0.2s; }
.io.dl3 { transition-delay: 0.3s; }
@keyframes up {
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes hover {
  50% {
    translate: 0 -8px;
  }
}

@media (max-width: 960px) {
  .hero__grid,
  .tour__grid {
    grid-template-columns: 1fr;
  }
  .grid {
    grid-template-columns: 1fr 1fr;
  }
  .prem .box {
    grid-template-columns: 1fr;
    padding: 34px;
  }
  .priv__grid {
    grid-template-columns: 1fr;
  }
  .stage {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
  }
  .tour__copy {
    text-align: center;
  }
  .tour__copy .sub {
    margin: 0 auto 22px;
  }
  .legend {
    justify-content: center;
  }
}
@media (max-width: 560px) {
  .nav__links {
    display: none;
  }
  .wrap {
    padding: 0 16px;
  }
  .legal {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero {
    padding-top: 24px;
  }
  .lead {
    font-size: 17px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .stage {
    height: 360px;
  }
  .med {
    padding: 9px 12px;
    border-radius: 14px;
  }
  .med b {
    font-size: 13px;
  }
  .med .st {
    font-size: 12px;
  }
  .med1 {
    top: 18px;
  }
  .med2 {
    top: 150px;
  }
  .med3 {
    left: 8px;
    bottom: 14px;
  }
  .tour__stage {
    height: 600px;
  }
  .phone {
    width: 260px;
    height: 540px;
  }
  .fab {
    display: none;
  }
  .s-title b {
    font-size: 20px;
  }
  .modal {
    padding: 28px 20px;
  }
  .premium-plans {
    grid-template-columns: 1fr;
  }
  .prem .box {
    padding: 28px 20px;
  }
  .foot__copy {
    margin-left: 0;
  }
  .qr {
    margin: 0 auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  .js .io {
    opacity: 1;
    transform: none;
  }
  .scr .it {
    opacity: 1;
    transform: none;
  }
}
