@import url('../../css/components/cookie-bar.css');

/* MyTravelBook landing prototype — blue theme tokens aligned with product */
:root {
  --color-bg: #e8eef4;
  --color-bg-deep: #d4dde8;
  --color-card: #f7fafc;
  --color-text: #0f172a;
  --color-muted: #475569;
  --color-primary: #2c5f8a;
  --color-primary-dark: #1e4060;
  --color-primary-light: #4a7fa8;
  --color-border: #cbd5e1;
  --radius: 14px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --nav-h: 3.5rem;
  /* Vertical rhythm: content-sized sections, not “half a phone screen” of empty pad */
  --section-pad-y: 2rem;
  --section-pad-x: 1.25rem;
  --section-gap-title: 0.85rem;
}

@media (min-width: 900px) {
  :root {
    --section-pad-y: 2.5rem;
    --section-pad-x: 1.5rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

body.has-test-bar {
  --test-bar-h: 2.75rem;
  padding-top: calc(var(--nav-h) + var(--test-bar-h));
}

.test-period-bar {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 29;
  padding: 0.45rem 1.25rem;
  background: color-mix(in srgb, var(--color-primary) 10%, var(--color-card));
  border-bottom: 1px solid color-mix(in srgb, var(--color-primary) 22%, var(--color-border));
  color: var(--color-text);
  font-size: 0.88rem;
  line-height: 1.4;
  text-align: center;
}

.test-period-bar.is-hidden {
  display: none !important;
}

@media (max-width: 640px) {
  body.has-test-bar {
    --test-bar-h: 3.6rem;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
  padding-top: var(--nav-h);
}

a {
  color: var(--color-primary);
}

.is-hidden {
  display: none !important;
}

/* —— Nav —— */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.25rem;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
}

.site-nav__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--color-text);
  white-space: nowrap;
}

.site-nav__end {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-left: auto;
}

.site-nav__link {
  text-decoration: none;
  color: var(--color-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav__link:hover {
  color: var(--color-primary);
}

.site-nav__link--section {
  display: none;
}

.lang-switch {
  display: flex;
  align-items: baseline;
  gap: 0.28rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.lang-switch button {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--color-muted);
  cursor: pointer;
  opacity: 0.42;
}

.lang-switch button[aria-pressed="true"] {
  color: var(--color-text);
  opacity: 1;
  font-weight: 700;
}

.lang-switch button:hover {
  opacity: 0.8;
}

.lang-switch__sep {
  color: var(--color-muted);
  opacity: 0.35;
  pointer-events: none;
}

@media (min-width: 720px) {
  .site-nav__link--section {
    display: inline;
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-primary-dark);
}

.btn--ghost {
  background: transparent;
  border-color: color-mix(in srgb, #fff 55%, transparent);
  color: #fff;
}

.btn--ghost:hover {
  background: color-mix(in srgb, #fff 12%, transparent);
}

.btn--block {
  width: 100%;
}

/* —— Hero (full-bleed atmosphere, height from content — not full viewport) —— */
.hero {
  position: relative;
  /* Full-vh heroes feel empty when copy is short; ~58–68vh keeps CTAs up and next section peeking. */
  min-height: clamp(22rem, 58vh, 32rem);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #f8fafc;
}

.hero__atmosphere {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(165deg, transparent 35%, rgba(15, 23, 42, 0.55) 100%),
    linear-gradient(120deg, #1e4060 0%, #2c5f8a 42%, #4a7fa8 78%, #7a9bb5 100%);
  animation: hero-shift 18s ease-in-out infinite alternate;
}

.hero__atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(circle at 20% 30%, #fff 0.8px, transparent 1.2px);
  background-size: 28px 28px;
  animation: hero-drift 28s linear infinite;
}

@keyframes hero-shift {
  from { filter: saturate(1) hue-rotate(0deg); }
  to { filter: saturate(1.08) hue-rotate(8deg); }
}

@keyframes hero-drift {
  from { transform: translateY(0); }
  to { transform: translateY(-28px); }
}

.hero__layout {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  animation: hero-rise 0.9s ease-out both;
}

.hero__inner {
  width: min(40rem, 100%);
  padding: 2.25rem 1.5rem 1.1rem;
}

.hero__art {
  display: flex;
  justify-content: center;
  padding: 0 1.25rem 1.6rem;
  pointer-events: none;
}

.hero__art img {
  display: block;
  width: min(22rem, 92%);
  height: auto;
  opacity: 0.92;
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__title {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5.5vw, 2.55rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  max-width: 16ch;
}

.hero__lead {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  color: color-mix(in srgb, #f8fafc 88%, transparent);
  max-width: 36ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (min-width: 900px) {
  .hero {
    min-height: clamp(26rem, 64vh, 36rem);
    align-items: center;
  }

  .hero__layout {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 2rem;
    max-width: 72rem;
    margin: 0 auto;
    padding: 2.75rem 6vw 3rem;
  }

  .hero__inner {
    flex: 0 1 36rem;
    width: min(36rem, 48%);
    padding: 0;
  }

  .hero__art {
    flex: 1 1 46%;
    justify-content: flex-end;
    padding: 0;
  }

  .hero__art img {
    width: min(34rem, 100%);
    opacity: 0.95;
  }
}

/* —— Sections —— */
.section {
  padding: var(--section-pad-y) var(--section-pad-x);
  max-width: 52rem;
  margin: 0 auto;
}

/* Не удваивать отступ: герой→карточки ≈ карточки→тарифы ≈ тарифы→вход */
.section + .section {
  padding-top: 0;
}

.section--cta {
  text-align: center;
  max-width: 36rem;
  padding-top: 1.5rem;
  padding-bottom: 2.25rem;
}

.section + .section--cta {
  padding-top: 1.5rem;
}

.section--cta h2 {
  margin-bottom: 1rem;
}

.cta-faq {
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.cta-faq a {
  text-decoration: none;
}

.cta-faq a:hover {
  text-decoration: underline;
}

.section h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.2vw, 1.85rem);
  font-weight: 700;
}

.section__lead {
  margin: 0 0 var(--section-gap-title);
  color: var(--color-muted);
  font-size: 1rem;
  max-width: 40ch;
  line-height: 1.45;
}

/* Short copy blocks should not get the same vertical budget as feature grids */
.section--compact {
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}

@media (min-width: 900px) {
  .section--compact {
    padding-top: 2.15rem;
    padding-bottom: 2.15rem;
  }
}

.section h2.section__title--center {
  text-align: center;
  margin-bottom: 2rem;
}

.section--preview h2.section__title--center {
  margin-bottom: 0.35rem;
}

.section__lead--center {
  text-align: center;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

/* Subtitle under the preview h2 — not the same size/color as shot captions */
.section--preview .section__lead--center {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.6vw, 1.4rem);
  font-weight: 550;
  color: var(--color-primary-dark);
  line-height: 1.35;
  max-width: 28rem;
}

@media (min-width: 720px) {
  .section h2.section__title--center {
    margin-bottom: 2.5rem;
  }

  .section--preview h2.section__title--center {
    margin-bottom: 0.4rem;
  }

  .section__lead--center {
    margin-bottom: 2.5rem;
  }
}

.section--audience {
  text-align: center;
  max-width: 36rem;
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.feature-list li {
  position: relative;
  padding: 0.65rem 0.85rem 0.65rem 2.25rem;
  border-left: 3px solid var(--color-primary-light);
  background: color-mix(in srgb, var(--color-card) 80%, transparent);
  font-size: 0.98rem;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 1.05rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--color-primary);
}

@media (min-width: 720px) {
  .feature-list {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }
}

/* —— Preview shots (2×3 grid) —— */
.section--preview {
  max-width: 56rem;
  overflow: visible;
}

.shot-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  overflow: visible;
}

@media (min-width: 640px) {
  .shot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .shot-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.shot {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  position: relative;
  height: 100%;
}

.shot__cap {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-muted);
  line-height: 1.3;
  min-height: 2.4em;
}

.shot__screen {
  flex: 1;
  min-height: 11.5rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: #fff;
  box-shadow: 0 10px 24px rgba(30, 64, 96, 0.1);
  overflow: hidden;
  padding: 0.75rem 0.8rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--color-text);
}

.shot__screen--soft {
  background: linear-gradient(165deg, #f1f5f9, #e2e8f0);
  display: flex;
  padding: 0.35rem;
  overflow: visible;
}

.shot--wallet {
  overflow: visible;
  z-index: 1;
}

.shot--wallet:hover,
.shot--wallet:focus-within,
.shot--wallet.is-share-open {
  z-index: 30;
}

.shot__screen--soft .shot-wallet {
  flex: 1;
  width: 100%;
  min-height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

/* Day */
.shot-day__label {
  margin: 0 0 0.45rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-primary-dark);
}

.shot-day__goal-title,
.shot-day__plan-title,
.shot-day__check-title {
  margin: 0.4rem 0 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
}

.shot-day__goal {
  margin: 0;
  font-weight: 600;
}

.shot-day__plan,
.shot-day__check {
  margin: 0;
  padding-left: 1rem;
}

.shot-day__plan li,
.shot-day__check li {
  margin: 0.12rem 0;
}

.shot-day__place {
  position: relative;
  display: inline;
}

.shot-day__link {
  color: #1890ff;
  font-weight: 700;
  border-bottom: 1px dashed currentColor;
  cursor: help;
}

.shot-day__hint {
  position: absolute;
  left: 0;
  top: calc(100% + 0.35rem);
  z-index: 5;
  width: max-content;
  max-width: 11.5rem;
  margin: 0;
  padding: 0.3rem 0.4rem;
  border-radius: 7px;
  background: #fff;
  border: 1px solid rgba(24, 144, 255, 0.28);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
  color: var(--color-primary-dark);
  font-size: 0.6rem;
  line-height: 1.3;
  font-weight: 600;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(3px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.shot-day__place:hover .shot-day__hint,
.shot-day__place:focus-within .shot-day__hint {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.shot__screen:has(.shot-day__place:hover),
.shot__screen:has(.shot-day__place:focus-within) {
  overflow: visible;
}

.shot:has(.shot-day__place:hover),
.shot:has(.shot-day__place:focus-within) {
  z-index: 3;
}

/* Reference nav screenshot — как .reference-nav / .ref-btn в поездке */
.shot__screen--ref {
  display: flex;
  padding: 0.45rem;
  background: #f5f7fa;
}

.shot-ref {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0.7rem 0.65rem 0.75rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.shot-ref__title {
  margin: 0 0 0.55rem;
  text-align: center;
  color: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.shot-ref__grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 0.4rem;
  align-content: stretch;
  min-height: 0;
}

.shot-ref__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.28rem 0.35rem;
  border: 2px solid var(--color-primary);
  border-radius: 8px;
  background: #fff;
  color: var(--color-primary);
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.shot-ref__label {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  width: 100%;
  word-break: break-word;
}

.shot-ref__btn.is-active {
  background: #4a7fa8;
  border-color: #4a7fa8;
  color: #fff;
}

.shot-ref__btn--add {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

/* Routes map — статичный скрин AutoNavi как в приложении */
.shot__screen--routes {
  display: flex;
  padding: 0;
  background: #f5f7fa;
  overflow: hidden;
}

.shot-routes {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: #fff;
}

.shot-routes__header {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem 0.6rem;
  background: linear-gradient(135deg, #2c5f8a 0%, #1e4060 100%);
  color: #fff;
}

.shot-routes__h {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
}

.shot-routes__sub {
  margin: 0.2rem 0 0;
  font-size: 0.58rem;
  line-height: 1.3;
  opacity: 0.9;
}

.shot-routes__trash {
  flex-shrink: 0;
  font-size: 0.85rem;
  line-height: 1;
  opacity: 0.95;
}

.shot-routes__map {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0.55rem 0.65rem 0;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  pointer-events: none;
  user-select: none;
}

.shot-routes__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.shot-routes__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0.45rem 0.65rem 0.55rem;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.shot-routes__tab {
  padding: 0.45rem 0.2rem;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--color-muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shot-routes__tab.is-active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 6%, #fff);
}

/* Budget */
.shot-budget__total {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
}

.shot-budget__sum {
  margin: 0.1rem 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.shot-budget__rows {
  margin: 0 0 0.55rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.22rem;
}

.shot-budget__rows li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
}

.shot-budget__rows li span:last-child {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

.shot-budget__remind {
  margin: 0;
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--color-primary) 12%, #fff);
  color: var(--color-primary-dark);
  font-weight: 600;
  font-size: 0.72rem;
}

/* AI — мини-скрин поиска + карточки ответа из поездки */
.shot__screen--ai {
  display: flex;
  padding: 0;
  background: #f5f7fa;
}

.shot-ai {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
}

.shot-ai__header {
  flex-shrink: 0;
  padding: 0.65rem 0.75rem 1.15rem;
  background: linear-gradient(135deg, #2c5f8a 0%, #1e4060 100%);
  color: #fff;
}

.shot-ai__trip {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.2;
}

.shot-ai__meta {
  margin: 0.2rem 0 0;
  font-size: 0.68rem;
  opacity: 0.85;
}

.shot-ai__search {
  position: relative;
  flex: 1;
  margin-top: -0.85rem;
  padding: 0 0.55rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.shot-ai__input {
  flex-shrink: 0;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  border: 2px solid color-mix(in srgb, var(--color-primary) 35%, #fff);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.shot-ai__input-text {
  display: block;
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shot-ai__results {
  flex: 1;
  min-height: 0;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
  overflow: hidden;
}

.shot-ai__card {
  height: 100%;
  padding: 0.55rem 0.65rem 0.6rem;
  background: #f8fbff;
  border-left: 4px solid var(--color-primary);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.shot-ai__rec {
  margin: 0 0 0.35rem;
  color: var(--color-primary);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.25;
}

.shot-ai__body {
  margin: 0;
  flex: 1;
  min-height: 0;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e8eef4;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--color-text);
  overflow: hidden;
  position: relative;
}

.shot-ai__body::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.1rem;
  background: linear-gradient(transparent, #fff);
  pointer-events: none;
}

.shot-ai__line {
  margin: 0 0 0.2rem;
}

.shot-ai__slot {
  margin: 0.12rem 0 0;
}

.shot-ai__slot--fade {
  opacity: 0.55;
}

.shot-ai__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.4rem;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  background: #2e7d64;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(46, 125, 100, 0.22);
  flex-shrink: 0;
}

/* Offline wallet — как wallet-card в приложении, акцент на облачко ready */
.shot-wallet {
  position: relative;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.14);
  overflow: visible;
}

.shot-wallet__accent {
  height: 5px;
  width: 100%;
  flex-shrink: 0;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
}

.shot-wallet__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0.7rem 0.85rem 0.75rem;
  padding-right: 3.2rem;
}

.shot-wallet__badge {
  display: inline-block;
  margin: 0 0 0.45rem;
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
  background: #eef2f7;
  color: var(--color-primary);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

.shot-wallet__title {
  margin: 0 0 0.28rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
}

.shot-wallet__country {
  margin: 0 0 0.2rem;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-muted);
}

.shot-wallet__route {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--color-muted);
}

.shot-wallet__dates {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--color-muted);
}

.shot-wallet__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  width: 100%;
  margin-top: auto;
  padding-top: 0.55rem;
  border-top: 1px solid #e2e8f0;
  position: relative;
}

.shot-wallet__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.48rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
  white-space: nowrap;
  font-family: inherit;
  cursor: default;
}

button.shot-wallet__btn {
  cursor: pointer;
}

.shot-wallet__btn--primary {
  background: var(--color-primary);
  border-color: transparent;
  color: #fff;
}

.shot-wallet__btn--muted {
  opacity: 0.8;
}

.shot-wallet__share {
  position: relative;
  display: inline-flex;
}

.shot-wallet__share .shot-wallet__btn {
  background: color-mix(in srgb, var(--color-primary) 12%, #fff);
  border-color: color-mix(in srgb, var(--color-primary) 35%, #cbd5e1);
  color: var(--color-primary-dark);
}

.shot-wallet__pop {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.5rem);
  transform: translateX(-50%) translateY(4px);
  width: min(14rem, 78vw);
  padding: 0.55rem 0.6rem 0.6rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #dbe3ec;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 40;
}

.shot-wallet__pop::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #fff;
  filter: drop-shadow(0 1px 0 #dbe3ec);
}

.shot-wallet__share:hover .shot-wallet__pop,
.shot-wallet__share:focus-within .shot-wallet__pop,
.shot-wallet__share.is-open .shot-wallet__pop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.shot-wallet__pop-title {
  margin: 0 0 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.shot-wallet__pop-row {
  margin: 0 0 0.25rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.62rem;
  color: var(--color-muted);
}

.shot-wallet__pop-row strong {
  color: var(--color-text);
  font-weight: 700;
}

.shot-wallet__pop-url {
  margin: 0.35rem 0;
  padding: 0.3rem 0.4rem;
  border-radius: 6px;
  border: 1px dashed var(--color-border);
  background: #f8fafc;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.55rem;
  color: var(--color-primary-dark);
  word-break: break-all;
}

.shot-wallet__pop-people {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.2rem;
}

.shot-wallet__pop-people li {
  padding: 0.25rem 0.35rem;
  border-radius: 6px;
  background: #eef2f7;
  font-size: 0.6rem;
  font-weight: 600;
}

/* Offline pin — как в продукте, крупнее и с лёгким пульсом */
.shot-wallet__pin {
  position: absolute;
  top: 0.85rem;
  right: 0.7rem;
  z-index: 3;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
  color: #64748b;
}

.shot-wallet__pin--ready {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.14);
  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.18),
    0 4px 14px rgba(37, 99, 235, 0.28);
  animation: shot-pin-pulse 2.4s ease-in-out infinite;
}

.shot-wallet__pin-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.shot-wallet__pin-track {
  stroke: rgba(148, 163, 184, 0.35);
  stroke-width: 2.5;
}

.shot-wallet__pin-prog {
  stroke: #2563eb;
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: 0;
}

.shot-wallet__pin-glyph {
  position: relative;
  z-index: 1;
  width: 1.15rem;
  height: 1.15rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M19.35 10.04A7.49 7.49 0 0 0 12 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 0 0 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM10 17l-3.5-3.5 1.41-1.41L10 14.17l5.09-5.09 1.41 1.41L10 17z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M19.35 10.04A7.49 7.49 0 0 0 12 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 0 0 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM10 17l-3.5-3.5 1.41-1.41L10 14.17l5.09-5.09 1.41 1.41L10 17z'/%3E%3C/svg%3E") center / contain no-repeat;
}

@keyframes shot-pin-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 3px rgba(37, 99, 235, 0.16),
      0 4px 14px rgba(37, 99, 235, 0.24);
  }
  50% {
    box-shadow:
      0 0 0 6px rgba(37, 99, 235, 0.1),
      0 6px 18px rgba(37, 99, 235, 0.32);
  }
}

@media (prefers-reduced-motion: reduce) {
  .shot-wallet__pin--ready {
    animation: none;
  }

  .hero__atmosphere,
  .hero__atmosphere::after,
  .hero__layout {
    animation: none;
  }
}

/* —— Pricing —— */
.pricing-row {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 800px) {
  .pricing-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
  }
}

.plan {
  position: relative;
  padding: 1.05rem 1rem 1.15rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-card);
}

.plan h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.plan__price {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.plan p {
  margin: 0 0 0.85rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.plan--soon {
  opacity: 0.92;
  background: color-mix(in srgb, var(--color-card) 70%, var(--color-bg-deep));
}

.plan--soon p:last-child {
  margin-bottom: 0;
}

.plan__badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.18rem 0.45rem;
  border-radius: 6px;
  background: var(--color-primary);
  color: #fff;
}

/* —— Auth modal —— */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.auth-modal.is-open {
  display: flex;
}

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  cursor: pointer;
}

.auth-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(26rem, 100%);
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
  padding: 1.25rem 1.1rem 1.1rem;
  border-radius: var(--radius);
  background: var(--color-card);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
}

.auth-modal__dialog h2 {
  margin: 0 1.75rem 0.85rem 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.auth-modal__close {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 2.1rem;
  height: 2.1rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--color-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.auth-modal__close:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

body.auth-modal-open {
  overflow: hidden;
}

.auth-card {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: var(--color-bg);
}

.auth-tabs__btn {
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 0.5rem;
  font: inherit;
  font-weight: 700;
  color: var(--color-muted);
  cursor: pointer;
}

.auth-tabs__btn.is-active {
  background: #fff;
  color: var(--color-primary-dark);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.auth-form label {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 0.7rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}

.auth-check {
  display: flex !important;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 500 !important;
  color: var(--color-muted);
}

.auth-check input {
  margin-top: 0.2rem;
}

.auth-check a {
  font-weight: 700;
}

.auth-forgot-wrap {
  margin: -0.15rem 0 0.65rem;
  text-align: right;
}

.auth-forgot-link {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.82rem;
  color: var(--color-accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-forgot-link:hover {
  color: var(--color-accent-strong, #1d4ed8);
}

.auth-hint {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: var(--color-muted);
  text-align: center;
}

/* —— Footer —— */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1.25rem;
  padding: 1.35rem 1.25rem;
  border-top: 1px solid var(--color-border);
  background: color-mix(in srgb, var(--color-bg-deep) 55%, var(--color-bg));
  text-align: center;
}

.site-footer a {
  text-decoration: none;
  font-weight: 600;
  color: var(--color-muted);
  font-size: 0.88rem;
}

.site-footer a:hover {
  color: var(--color-primary);
}

.site-footer__note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* —— Privacy / legal —— */
.legal {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5rem;
  color: var(--color-primary-dark);
}

.legal h2 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.65rem;
  color: var(--color-primary-dark);
}

.legal__meta {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 0 0 1.25rem;
}

.legal__anchor {
  scroll-margin-top: calc(var(--nav-h) + 0.75rem);
  height: 0;
  margin: 0;
}

.legal ul {
  padding-left: 1.2rem;
  margin: 0.35rem 0 1rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.legal th,
.legal td {
  border-bottom: 1px solid var(--color-border);
  padding: 0.5rem 0.4rem;
  text-align: left;
  vertical-align: top;
}

.legal code {
  font-size: 0.82em;
}

.auth-error {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #b91c1c;
  font-size: 0.92rem;
}
.auth-error[hidden] { display: none !important; }

.auth-turnstile-wrap {
  display: flex;
  justify-content: center;
  margin: 0.5rem 0 0.75rem;
}
