/* Airstamp — «шалфей, стекло, лайм». Токены те же, что в приложении (lib/theme.ts). */

@font-face { font-family: "Jost"; src: url("/assets/fonts/Jost-300.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/assets/fonts/Jost-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/assets/fonts/Jost-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/assets/fonts/Jost-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/assets/fonts/Jost-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #191A17;
  --dark: #22231F;
  --muted: #53574F;
  --lime: #D4F01E;
  --lime-deep: #B9D40F;
  --orange: #E98B52;
  --paper: #F4F0E6;
  --bg-top: #E1E8DF;
  --bg-mid: #DCE3D9;
  --bg-bottom: #ECE5DA;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-edge: rgba(255, 255, 255, 0.9);
  --line: rgba(25, 26, 23, 0.1);
  --shadow: 0 18px 40px -24px rgba(25, 26, 23, 0.35);
  --r-lg: 30px;
  --r-md: 20px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Jost", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 40%, #E5E4DC 75%, var(--bg-bottom) 100%) fixed;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 300; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }

/* Мягкие цветные пятна под стеклом — как фон в приложении */
.glow { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.glow i { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(30px); }
.glow i:nth-child(1) { left: -180px; top: 60px; background: radial-gradient(circle, rgba(212, 240, 30, 0.5), transparent 68%); }
.glow i:nth-child(2) { right: -200px; top: 220px; background: radial-gradient(circle, rgba(233, 139, 82, 0.34), transparent 68%); }
.glow i:nth-child(3) { left: 30%; bottom: -260px; background: radial-gradient(circle, rgba(110, 170, 150, 0.32), transparent 68%); }
.glow i:nth-child(4) { right: 10%; bottom: 10%; width: 360px; height: 360px; background: radial-gradient(circle, rgba(238, 227, 90, 0.4), transparent 68%); }

/* ─── Кнопки ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px;
  font: 500 16px/1 "Jost", system-ui, sans-serif; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }

/* ─── Шапка ─── */
.top { position: sticky; top: 0; z-index: 20; padding: 12px 0; }
.top-in {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 62px; padding: 8px 8px 8px 14px;
  background: rgba(236, 240, 233, 0.62); border: 1px solid var(--glass-edge); border-radius: 999px;
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: var(--shadow);
}
.brand { display: inline-flex; flex: none; align-items: center; gap: 10px; text-decoration: none; font-size: 22px; font-weight: 400; letter-spacing: -0.02em; }
.brand svg { border-radius: 9px; flex: none; }
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.top-right { display: flex; align-items: center; gap: 12px; }
@media (max-width: 820px) { .nav { display: none; } }
@media (max-width: 340px) { .brand span { display: none; } }

/* ─── Первый экран ─── */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 96px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-edge); font-size: 14px; font-weight: 500; color: var(--muted); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime-deep); box-shadow: 0 0 0 4px rgba(212, 240, 30, 0.35); }
.hero h1 { margin: 22px 0 20px; font-size: clamp(52px, 8.4vw, 104px); line-height: 0.95; letter-spacing: -0.045em; }
.hero h1 span { display: block; }
.hero h1 span + span { color: rgba(25, 26, 23, 0.55); }
.lead { font-size: 20px; line-height: 1.5; max-width: 520px; }
.hero .lead { margin-bottom: 30px; }

.hero-art { position: relative; min-height: 540px; }
.book {
  position: absolute; left: 8%; right: 4%; top: 10px;
  padding: 22px 22px 26px; border-radius: 18px;
  background: var(--paper);
  background-image: repeating-linear-gradient(0deg, transparent 0 27px, rgba(31, 63, 122, 0.05) 27px 28px);
  box-shadow: 0 30px 60px -30px rgba(25, 26, 23, 0.55), inset 0 0 0 1px rgba(25, 26, 23, 0.06);
  transform: rotate(-3deg);
}
.book::before { content: ""; position: absolute; left: -10px; top: 12px; bottom: 12px; width: 10px; border-radius: 6px 0 0 6px; background: #2E3B2A; }
.book-head { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.2em; color: rgba(31, 63, 122, 0.6); }
.book-stamps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.book-stamps .stamp:nth-child(2n) { transform: translateY(14px); }

.chip { position: absolute; border-radius: 22px; padding: 16px 20px; box-shadow: var(--shadow); }
.chip b { font-weight: 300; letter-spacing: -0.03em; }
.chip-lime { left: 0; bottom: 38px; background: var(--lime); display: flex; align-items: baseline; gap: 8px; }
.chip-lime b { font-size: 56px; line-height: 1; }
.chip-lime span { font-weight: 500; }
.chip-dark { right: 0; bottom: 0; width: 230px; background: var(--dark); color: #fff; }
.chip-dark small { display: block; font-size: 13px; color: rgba(255, 255, 255, 0.68); font-weight: 500; }
.chip-dark div { margin: 2px 0 10px; color: rgba(255, 255, 255, 0.68); }
.chip-dark div b { font-size: 40px; color: #fff; }
.chip-glass { right: 2%; top: -6px; background: var(--glass); border: 1px solid var(--glass-edge); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); display: flex; align-items: baseline; gap: 6px; }
.chip-glass b { font-size: 34px; line-height: 1; }
.chip-glass span { font-size: 14px; font-weight: 500; color: var(--muted); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; padding-bottom: 64px; gap: 36px; }
  .hero-art { min-height: 0; aspect-ratio: 1 / 1.02; max-width: 520px; width: 100%; margin: 0 auto; }
}
@media (max-width: 480px) {
  .hero-art { aspect-ratio: auto; height: 470px; }
  .book { left: 12px; right: 0; padding: 16px 12px 22px; }
  .chip-lime b { font-size: 42px; }
  .chip-dark { width: 190px; }
  .chip-dark div b { font-size: 32px; }
  .chip-glass b { font-size: 26px; }
  .lead { font-size: 18px; }
}

/* ─── Форма ─── */
.join-form { max-width: 520px; }
.field { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.72); border: 1px solid var(--glass-edge); box-shadow: var(--shadow); }
.field input[type="email"] { flex: 1; min-width: 0; padding: 0 18px; border: 0; background: transparent; font: 400 17px "Jost", system-ui, sans-serif; color: var(--ink); }
.field input[type="email"]::placeholder { color: rgba(25, 26, 23, 0.45); }
.field input[type="email"]:focus { outline: none; }
.field:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { margin-top: 12px; padding-left: 20px; font-size: 14px; color: var(--muted); }
.form-note a { color: var(--ink); }
.form-msg { min-height: 0; padding-left: 20px; font-weight: 500; }
.form-msg:not(:empty) { margin-top: 10px; }
.form-msg.ok { color: #2F5D3A; }
.form-msg.err { color: #B8420F; }
.join-form.done .field { opacity: 0.55; pointer-events: none; }
@media (max-width: 480px) {
  .field { flex-direction: column; border-radius: 26px; }
  .field input[type="email"] { min-height: 50px; }
  .form-note, .form-msg { padding-left: 6px; }
}

/* ─── Карточки ─── */
.card {
  background: var(--glass); border: 1px solid var(--glass-edge); border-radius: var(--r-lg);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: var(--shadow);
}
section h2 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.035em; max-width: 780px; }
.features, .soon, .faq { padding-top: 40px; padding-bottom: 72px; }
.features h2, .soon h2, .faq h2 { margin-bottom: 32px; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid .card { display: flex; flex-direction: column; overflow: hidden; }
.grid .art { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 210px; padding: 24px 24px 8px; }
.card-text { padding: 12px 26px 26px; }
.card h3 { font-size: 26px; line-height: 1.15; margin-bottom: 8px; letter-spacing: -0.02em; }
.card-text p { color: var(--muted); }
.soon-tag { display: inline-block; margin-top: 12px; padding: 4px 12px; border-radius: 999px; border: 1px dashed rgba(25, 26, 23, 0.35); font-size: 13px; font-weight: 500; color: var(--ink) !important; }

.f-passport, .f-map { grid-column: span 2; }
.f-bag { grid-column: span 3; flex-direction: row-reverse !important; align-items: center; }
.f-bag .art { flex: 0 0 44%; padding: 24px; }
.f-bag .card-text { flex: 1; padding: 28px; }

@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-bag, .f-docs { grid-column: span 2; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .f-passport, .f-map, .f-bag, .f-docs { grid-column: auto; }
  .f-bag { flex-direction: column !important; }
  .f-bag .art { flex: none; width: 100%; }
  .f-bag .card-text { padding: 12px 26px 26px; }
  .grid .art { min-height: 0; padding-top: 22px; }
}

/* Иллюстрации */
.art-passport { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: 100%; padding: 14px 10px; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 1px rgba(25, 26, 23, 0.06); }
.art-passport .stamp:nth-child(2n) { transform: translateY(10px); }
@media (max-width: 640px) { .art-passport { grid-template-columns: repeat(2, 1fr); } }

.art-days { width: 100%; }
.art-days .row { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 12px; }
.art-days .row:first-child { margin-top: 0; }
.art-days .row div b { display: block; font-weight: 600; }
.art-days .row small { color: var(--muted); font-size: 14px; }
.art-days .row span { color: var(--muted); }
.art-days .row span b { font-size: 34px; font-weight: 300; color: var(--ink); letter-spacing: -0.03em; }

.bar { height: 10px; margin-top: 8px; border-radius: 999px; background: rgba(25, 26, 23, 0.1); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; }
.bar-lime span { background: var(--lime); }
.bar-ink span { background: var(--ink); }
.chip-dark .bar, .art-miles .bar { background: rgba(255, 255, 255, 0.16); }

.visa { position: relative; width: 100%; max-width: 300px; aspect-ratio: 300 / 186; padding: 14px 16px 10px; border-radius: 10px; background: #DCE8F2; color: #1F3F7A; overflow: hidden; transform: rotate(-2deg); box-shadow: 0 10px 24px -12px rgba(25, 26, 23, 0.45); border: 1px solid rgba(25, 26, 23, 0.12); display: flex; flex-direction: column; }
.visa svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.visa > div { position: relative; }
.visa-top { display: flex; justify-content: space-between; font-weight: 700; font-size: 12px; letter-spacing: 0.2em; }
.visa-country { font-size: 19px; font-weight: 600; letter-spacing: 0.05em; margin: 2px 0 8px; }
.visa-grid { display: grid; grid-template-columns: 1fr 1fr; row-gap: 4px; }
.visa-grid span { display: block; font-size: 9px; font-weight: 600; letter-spacing: 0.1em; opacity: 0.8; }
.visa-grid b { font-size: 14px; font-weight: 600; color: var(--ink); }
.visa-mrz { margin-top: auto; font-size: 10px; font-weight: 500; letter-spacing: 0.12em; white-space: nowrap; overflow: hidden; }

.art-note { display: flex; gap: 12px; align-items: center; width: 100%; padding: 14px; border-radius: 22px; background: rgba(255, 255, 255, 0.78); box-shadow: var(--shadow); }
.note-icon svg { border-radius: 9px; }
.art-note b { display: block; font-weight: 600; font-size: 15px; }
.art-note span { font-size: 14px; color: var(--muted); }

.art-miles { width: 100%; padding: 18px 20px; border-radius: 22px; background: var(--dark); color: #fff; }
.art-miles .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.art-miles .row b { font-weight: 500; }
.art-miles em { font-style: normal; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: linear-gradient(135deg, #E8D48A, #B8963A); color: var(--ink); }
.miles-num { font-size: 44px; font-weight: 300; letter-spacing: -0.03em; margin: 6px 0 4px; }
.art-miles .row.small { margin-top: 10px; font-size: 13px; color: rgba(255, 255, 255, 0.68); }

.art-docs { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.art-docs svg { width: 130px; }
.art-docs span { font-weight: 500; color: var(--muted); text-align: center; }

.f-map .art { padding: 18px 10px 0; }
.art-map { width: 100%; height: auto; }

.art-bag { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.art-bag svg { width: 220px; }
.bag-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.bag-tags span { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.75); font-weight: 500; font-size: 14px; }
.bag-tags span:first-child { background: var(--lime); }

/* ─── Приватность ─── */
.privacy { padding-bottom: 72px; }
.dark { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding: 56px; border-radius: 36px; background: var(--dark); color: #fff; box-shadow: 0 40px 80px -40px rgba(25, 26, 23, 0.6); }
.dark h2 { margin-bottom: 18px; }
.dark p { font-size: 19px; color: rgba(255, 255, 255, 0.86); }
.dark p.muted { margin-top: 14px; font-size: 16px; color: rgba(255, 255, 255, 0.6); }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.points li { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 18px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.1); font-weight: 500; }
.points li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23191A17' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
@media (max-width: 820px) { .dark { grid-template-columns: 1fr; padding: 32px 24px; gap: 28px; border-radius: 28px; } }

/* ─── Скоро ─── */
.soon-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.soon-card { padding: 22px 24px 26px; border-style: dashed; border-color: rgba(25, 26, 23, 0.22); background: rgba(255, 255, 255, 0.32); }
.soon-card .soon-tag { margin: 0 0 14px; }
.soon-card h3 { font-size: 23px; }
.soon-card p { color: var(--muted); }
@media (max-width: 980px) { .soon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .soon-grid { grid-template-columns: 1fr; } }

/* ─── Вопросы ─── */
.faq-list { display: grid; gap: 12px; max-width: 860px; }
.faq details { border-radius: var(--r-md); padding: 0 24px; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: 19px; font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.8); font-size: 22px; font-weight: 300; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; color: var(--muted); max-width: 680px; }

/* ─── Подписка ─── */
.join { padding-bottom: 88px; }
.lime { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding: 52px 56px; border-radius: 36px; background: var(--lime); box-shadow: 0 30px 60px -36px rgba(120, 140, 10, 0.7); }
.lime h2 { margin-bottom: 10px; }
.lime > div > p { font-size: 19px; }
.lime .field { background: #fff; border-color: #fff; }
.lime .form-note, .lime .form-note a { color: rgba(25, 26, 23, 0.72); }
@media (max-width: 820px) { .lime { grid-template-columns: 1fr; padding: 32px 24px; border-radius: 28px; } }

/* ─── Подвал ─── */
.foot { padding: 32px 0 48px; border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.foot .brand { font-size: 19px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { text-decoration: none; font-weight: 500; color: var(--muted); }
.foot-links a:hover { color: var(--ink); }
.foot-note { width: 100%; font-size: 14px; color: var(--muted); }

/* ─── Правила ─── */
.legal { max-width: 820px; padding-top: 40px; padding-bottom: 72px; }
.legal h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.02; letter-spacing: -0.04em; margin-bottom: 18px; }
.legal .lead { margin-bottom: 28px; max-width: none; }
.legal-card { padding: 32px; display: grid; gap: 26px; }
.legal-card h2 { font-size: 20px; font-weight: 600; letter-spacing: 0; margin-bottom: 6px; }
.legal-card p { color: var(--muted); }
.legal-card p + p { margin-top: 8px; }
.updated { margin-top: 16px; padding-left: 8px; font-size: 14px; color: var(--muted); }
@media (max-width: 560px) { .legal-card { padding: 22px; } }

/* ─── Спасибо и 404 ─── */
.center { display: grid; place-items: center; min-height: 62vh; padding-top: 32px; padding-bottom: 64px; }
.center-card { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 520px; padding: 44px 32px; text-align: center; }
.center-card svg { width: 110px; height: auto; }
.center-card > svg:first-child { border-radius: 18px; }
.center-card h1 { font-size: 44px; letter-spacing: -0.035em; }
.center-card p { color: var(--muted); margin-bottom: 8px; }

/* ─── Картинка для превью ссылки (1200×630) ─── */
body.og { width: 1200px; height: 630px; min-height: 0; overflow: hidden; background: linear-gradient(160deg, var(--bg-top), var(--bg-bottom)); }
.og .glow { position: absolute; }
.og-in { display: grid; grid-template-columns: 1fr 520px; align-items: center; gap: 40px; height: 100%; padding: 60px 70px; }
.og .brand { font-size: 38px; margin-bottom: 28px; }
.og .brand svg { border-radius: 16px; }
.og h1 { font-size: 92px; line-height: 0.95; letter-spacing: -0.045em; }
.og h1 span { display: block; }
.og h1 span + span { color: rgba(25, 26, 23, 0.55); }
.og-text p { margin-top: 26px; font-size: 26px; font-weight: 500; color: var(--muted); }
.og-book { position: relative; left: auto; right: auto; top: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .faq summary::after { transition: none; }
}
