/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(245, 240, 232, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-top {
  background: var(--dark);
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 4px;
  padding-bottom: 4px;
}
.header-top a { color: rgba(255,255,255,0.75); transition: color var(--t-fast); }
.header-top a:hover { color: var(--gold-light); }
.header-top .dot { width: 6px; height: 6px; background: var(--success); border-radius: 50%; display: inline-block; margin-right: 6px; }

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  gap: 12px;
  flex-wrap: nowrap;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--dark);
  flex-shrink: 0;
  white-space: nowrap;
}
.logo-mark {
  height: 23px;
  width: auto;
  flex-shrink: 0;
  display: block;
}
/* PNG-логотип «дерево + монумента» — заменяет старый inline-SVG */
.logo-img {
  height: 72px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .logo-img { height: 56px; }
}

.nav-main {
  display: flex;
  gap: 0;
  flex: 1;
  justify-content: center;
  flex-wrap: nowrap;
  min-width: 0;
}
.nav-main a {
  display: inline-block;
  padding: 6px 9px;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--dark);
  border-radius: var(--r-pill);
  transition: background var(--t-fast), color var(--t-fast);
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-main a:hover { background: rgba(28,28,26,0.04); }
.nav-main a.active { color: var(--gold); }
.nav-main a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.header-actions .btn-sm { padding: 6px 15px; font-size: 12.5px; }
.phone-link {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--dark);
  letter-spacing: 0.01em;
  transition: color var(--t-fast);
  white-space: nowrap;
}
.phone-link:hover { color: var(--gold); }

/* Mobile menu trigger */
.menu-btn {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: var(--r-pill);
  background: var(--dark);
  color: var(--cream);
}
.menu-btn svg { width: 20px; height: 20px; }

/* Mobile nav drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 350;
  padding: 80px 24px 32px;
  transform: translateY(-100%);
  transition: transform var(--t-slow);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.mobile-drawer.open { transform: translateY(0); }
.mobile-drawer .close-btn {
  position: absolute;
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill);
  background: var(--dark);
  color: var(--cream);
}
.mobile-drawer nav { display: flex; flex-direction: column; gap: 8px; margin-bottom: 32px; }
.mobile-drawer nav a {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--dark);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-drawer nav a:last-child { border-bottom: none; }
.mobile-drawer .drawer-foot { margin-top: auto; padding-top: 24px; }
.mobile-drawer .drawer-foot .phone-link { font-size: 28px; display: block; margin-bottom: 8px; }
.mobile-drawer .drawer-foot p { font-size: 13px; color: var(--stone); }

/* На десктопе «Главная» дублирует логотип — прячем, она остаётся в drawer */
.nav-main a[href="index.html"] { display: none; }

/* Прячем телефон сверху на ноутбучных разрешениях — он доступен в drawer и в нижней call-bar */
@media (max-width: 1340px) {
  .header-actions .phone-link { display: none; }
}
/* Прячем «О нас» на средних разрешениях — он остаётся в drawer и подвале */
@media (max-width: 1180px) {
  .nav-main a[href="about.html"] { display: none; }
}
/* Прячем кнопку «Кабинет» в шапке — доступна как ссылка из меню/drawer */
@media (max-width: 1100px) {
  .header-actions .btn-ghost { display: none; }
}
/* Прячем «Отзывы» на узких десктопах — остаётся в drawer */
@media (max-width: 1020px) {
  .nav-main a[href="reviews.html"] { display: none; }
}
/* Мобильное меню — всё прячется в drawer (drawer использует свой <nav>, не .nav-main) */
@media (max-width: 940px) {
  .nav-main { display: none; }
  .header-actions .btn { display: none; }
  .menu-btn { display: flex; }

  /* manager.html не имеет drawer — поэтому ВСЕГДА показываем «Выйти»
     и ссылку на «Мой кабинет», иначе с телефона не выйти из менеджерской */
  .header-actions [data-manager-logout],
  .header-actions a[href="cabinet.html"] {
    display: inline-flex !important;
  }
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: 80px 0 32px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 64px;
}
.footer-brand { text-align: center; }
.footer-brand .logo { color: var(--cream); font-size: 15px; gap: 6px; justify-content: center; }
.footer-brand .logo-mark { height: 16px; }
.footer-brand .logo-img { height: 100px; }

/* ============================================================
   Sticky bottom-bar для мобильного — Позвонить / Telegram / MAX.
   Показывается только на узких экранах. На десктопе — скрыт.
   ============================================================ */
.sticky-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 950;
  display: none;
  gap: 6px;
  background: #1a1a1a;
  border-top: 1px solid rgba(184, 151, 90, 0.25);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 16px rgba(0,0,0,0.18);
}
.sticky-bar-btn {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 6px;
  border-radius: 10px;
  font-size: 13px; font-weight: 500; font-family: var(--font-body);
  text-decoration: none;
  color: var(--cream);
  background: rgba(255,255,255,0.07);
  transition: background 0.18s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.sticky-bar-btn:active { transform: scale(0.97); }
.sticky-bar-btn svg { flex-shrink: 0; }
.sticky-bar-btn span { white-space: nowrap; }
.sticky-bar-call {
  background: var(--gold);
  color: #1a1a1a;
}
.sticky-bar-tg svg { color: #2AABEE; }
.sticky-bar-max svg { color: var(--gold); }

@media (max-width: 720px) {
  .sticky-bar { display: flex; }
  body { padding-bottom: 70px; }  /* высвобождаем место под бар */
  .tg-widget { display: none !important; }  /* sticky-bar заменяет плавающую TG-кнопку */
}

/* ============================================================
   Виджет «Православный календарь поминальных дат»
   ============================================================ */
.orthodox-calendar {
  background: var(--cream);
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.orthodox-calendar-head { max-width: 720px; margin-bottom: 40px; }
.orthodox-calendar-head h2 { margin: 12px 0 16px; }
.orthodox-calendar-lead {
  font-size: 16px;
  line-height: 1.65;
  color: var(--stone);
  max-width: 580px;
}
.orthodox-dates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}
.orthodox-date {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px 22px 20px;
  display: flex; flex-direction: column;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.orthodox-date:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 14px rgba(184, 151, 90, 0.12);
}
.orthodox-date-name {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 12px;
}
.orthodox-date-day {
  font-family: var(--font-display);
  font-size: 22px; font-style: italic;
  color: var(--gold);
  margin-bottom: 4px;
}
.orthodox-date-when {
  font-size: 13px;
  color: var(--stone);
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.orthodox-date-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--stone);
  margin: 0;
}
.orthodox-calendar-cta {
  display: flex; flex-wrap: wrap; gap: 12px;
}
@media (max-width: 540px) {
  .orthodox-calendar { padding: 56px 0; }
  .orthodox-dates { grid-template-columns: 1fr; gap: 14px; }
}

/* ============================================================
   Каталог эпитафий (epitaphs.html)
   ============================================================ */
.epitaphs-page { padding: 24px 0 64px; max-width: 980px; }
.epitaph-block { margin-bottom: 56px; }
.epitaph-block h2 { margin: 8px 0 12px; }
.epitaph-cat-lead { color: var(--stone); font-size: 15px; max-width: 640px; margin-bottom: 22px; line-height: 1.65; }
.epitaph-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.epitaph {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-md);
  padding: 18px 20px;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.55;
  color: var(--dark);
  font-style: italic;
  transition: box-shadow 0.15s, transform 0.15s;
}
.epitaph:hover {
  box-shadow: 0 4px 14px rgba(184, 151, 90, 0.12);
  transform: translateY(-1px);
}
.epitaph-cta {
  margin-top: 24px; padding: 32px 28px;
  background: var(--cream); border-radius: var(--r-md);
  border: 1px solid var(--border);
}
.epitaph-cta h3 { margin: 0 0 8px; }
.epitaph-cta p { color: var(--stone); margin: 0 0 18px; max-width: 580px; line-height: 1.65; }

/* ============================================================
   Лендинг «Первые часы» (first-steps.html)
   ============================================================ */
.first-steps-page { padding: 24px 0 64px; max-width: 880px; }
.step-block {
  display: flex; gap: 20px;
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.step-block:last-of-type { border-bottom: none; }
.step-num {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--gold); color: var(--dark);
  font-family: var(--font-display); font-size: 24px; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
}
.step-body { flex: 1; }
.step-body h2 { margin: 0 0 14px; font-size: 24px; }
.step-body ul { padding-left: 22px; margin: 0 0 16px; }
.step-body li { margin-bottom: 8px; line-height: 1.65; color: var(--dark); }
.step-tip {
  background: var(--cream);
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  font-size: 14px; color: var(--stone);
  border-radius: var(--r-sm); margin: 0;
  line-height: 1.55;
}
.first-steps-cta {
  margin-top: 24px;
  padding: 36px 32px;
  background: var(--dark);
  color: var(--cream);
  border-radius: var(--r-md);
}
.first-steps-cta h3 { color: var(--cream); margin: 0 0 12px; }
.first-steps-cta p { color: rgba(255,255,255,0.75); line-height: 1.65; margin: 0 0 22px; max-width: 620px; }

@media (max-width: 640px) {
  .step-block { flex-direction: column; gap: 14px; }
  .step-num { width: 44px; height: 44px; font-size: 20px; }
  .first-steps-cta { padding: 28px 22px; }
}

/* ============================================================
   Skeleton-загрузка (shimmer-плейсхолдеры на месте контента,
   пока приходят данные из Supabase). Используется как:
     <div class="skeleton-card">
       <div class="skeleton skeleton-line" style="width:70%;"></div>
       <div class="skeleton skeleton-line" style="width:50%;"></div>
     </div>
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg,
              rgba(0,0,0,0.04) 0%,
              rgba(0,0,0,0.10) 50%,
              rgba(0,0,0,0.04) 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  border-radius: 4px;
}
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin-bottom: 10px;
  display: flex; flex-direction: column; gap: 10px;
}
.skeleton-line { height: 14px; }
.skeleton-line.skeleton-line-title { height: 18px; }
.skeleton-line.skeleton-line-short { width: 40%; }
.skeleton-line.skeleton-line-mid   { width: 65%; }
.skeleton-line.skeleton-line-long  { width: 85%; }
@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; }
}

/* ============================================================
   Каталог памятников — viewer (catalog.html)
   ============================================================ */
.catalog-viewer {
  padding: 16px 0 64px;
  display: flex; flex-direction: column; gap: 18px;
  max-width: 1080px; margin: 0 auto;
}
.catalog-search-row {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px 18px;
}
.catalog-search-row .form-input { flex: 1; min-width: 240px; }
.catalog-nav { display: inline-flex; gap: 8px; align-items: center; }
.catalog-pageinfo {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--dark);
  min-width: 72px; text-align: center;
}
.catalog-page-label {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--gold);
  font-style: italic;
  text-align: center;
}
.catalog-image-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.catalog-image {
  max-width: 100%; height: auto; display: block; margin: 0 auto;
  border-radius: var(--r-sm);
}
.catalog-articles-on-page {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 18px;
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.catalog-articles-on-page strong {
  color: var(--stone); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase;
  margin-right: 6px;
}
.catalog-article-pill {
  border: 1px solid var(--gold);
  background: var(--white);
  color: var(--dark);
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  padding: 6px 12px; border-radius: 999px;
  cursor: pointer; transition: background 0.15s, color 0.15s;
}
.catalog-article-pill:hover {
  background: var(--gold); color: var(--white);
}
.catalog-actions {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}
.catalog-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
  gap: 6px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px;
}
.catalog-thumb {
  aspect-ratio: 1;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--stone);
  font-family: var(--font-display); font-size: 14px;
  border-radius: var(--r-sm);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.catalog-thumb:hover {
  border-color: var(--gold); color: var(--gold);
}
.catalog-thumb.is-active {
  background: var(--gold); color: var(--white); border-color: var(--gold);
  font-weight: 500;
}
@media (max-width: 720px) {
  .catalog-search-row { padding: 12px 14px; }
  .catalog-search-row .form-input { min-width: 100%; }
  .catalog-thumbs { grid-template-columns: repeat(7, 1fr); gap: 4px; }
  .catalog-thumb { font-size: 12px; }
}
.footer-brand p { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.4); margin: 14px auto 0; max-width: 32ch; }
.footer-col h5 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.5); transition: color var(--t-fast); }
.footer-bottom a:hover { color: var(--gold-light); }
.socials { display: flex; gap: 8px; }
.socials a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.05);
  transition: background var(--t-fast);
}
.socials a:hover { background: var(--gold); color: var(--dark); }
.socials svg { width: 16px; height: 16px; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============ CARD ============ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }

.card-dark {
  background: var(--dark);
  color: var(--cream);
  border: 1px solid rgba(255,255,255,0.05);
}

/* ============ MODAL ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28,28,26,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base);
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }

.modal {
  background: var(--cream);
  border-radius: var(--r-2xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  transform: translateY(20px) scale(0.98);
  transition: transform var(--t-base);
  position: relative;
}
.modal-overlay.open .modal { transform: none; }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--stone);
  transition: background var(--t-fast), color var(--t-fast);
}
.modal-close:hover { background: var(--dark); color: var(--cream); }
.modal h3 { font-size: 28px; margin-bottom: 8px; }
.modal .modal-sub { font-size: 14px; color: var(--stone); margin-bottom: 24px; }

@media (max-width: 540px) {
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal {
    border-radius: var(--r-2xl) var(--r-2xl) 0 0;
    max-height: 92vh;
    transform: translateY(100%);
    padding: 28px 20px 24px;
  }
  .modal-overlay.open .modal { transform: none; }
  .modal::before {
    content: '';
    display: block;
    width: 36px; height: 4px;
    background: var(--border-strong);
    border-radius: var(--r-pill);
    margin: -8px auto 16px;
  }
}

/* ============ TOAST ============ */
.toast {
  position: fixed;
  top: 24px; left: 50%;
  transform: translateX(-50%) translateY(-120%);
  background: var(--dark);
  color: var(--cream);
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 400;
  display: flex; align-items: center; gap: 10px;
  z-index: var(--z-toast);
  transition: transform var(--t-base);
  box-shadow: var(--shadow-xl);
  max-width: calc(100vw - 32px);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast::before { content: ''; width: 8px; height: 8px; background: var(--success); border-radius: 50%; flex-shrink: 0; }
.toast.danger::before { background: var(--danger); }

/* ============ MOBILE BOTTOM CALL BAR ============ */
.call-bar {
  display: none;
  position: fixed;
  bottom: 16px; left: 16px; right: 16px;
  background: var(--dark);
  border-radius: var(--r-pill);
  padding: 10px 12px 10px 20px;
  align-items: center;
  justify-content: space-between;
  z-index: var(--z-nav);
  box-shadow: var(--shadow-xl);
  color: var(--cream);
}
.call-bar .meta { display: flex; flex-direction: column; }
.call-bar .meta small { font-size: 10px; color: rgba(255,255,255,0.5); letter-spacing: 0.08em; text-transform: uppercase; }
.call-bar .meta strong { font-family: var(--font-display); font-size: 18px; font-weight: 400; color: var(--cream); }
.call-bar .btn { padding: 10px 16px; font-size: 13px; }

@media (max-width: 860px) {
  .call-bar { display: flex; }
  body { padding-bottom: 88px; }
}

/* ============ BREADCRUMB ============ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--stone);
  margin-bottom: 24px;
  letter-spacing: 0.04em;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--stone); transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--dark); }
.breadcrumb .sep { color: var(--stone-light); }
.breadcrumb .current { color: var(--dark); }

/* ============ PAGE HEADER ============ */
.page-header {
  padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 4vw, 56px);
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.page-header h1 { font-size: clamp(40px, 7vw, 72px); max-width: 18ch; }
.page-header .lead { margin-top: 20px; }

/* ============ TAB SWITCHER ============ */
.tabs {
  display: inline-flex;
  background: var(--cream-deep);
  border-radius: var(--r-pill);
  padding: 4px;
  gap: 2px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.tabs button {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 400;
  color: var(--stone);
  border-radius: var(--r-pill);
  transition: background var(--t-fast), color var(--t-fast);
}
.tabs button.active { background: var(--dark); color: var(--cream); }

/* ============ ICON SVG sizing ============ */
.icon-sm { width: 14px; height: 14px; }
.icon-md { width: 18px; height: 18px; }
.icon-lg { width: 24px; height: 24px; }

/* ============ PLAN PICKER (in modal) ============ */
.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}
@media (max-width: 480px) { .plan-grid { grid-template-columns: 1fr; } }

.plan-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 12px;
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
  text-align: center;
  display: block;
}
.plan-card input { display: none; }
.plan-card:hover { border-color: var(--stone); }
.plan-card.selected { border-color: var(--dark); background: var(--cream-deep); }
.plan-card .plan-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 6px;
}
.plan-card.selected .plan-label { color: var(--gold); }
.plan-card .plan-price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--dark);
  line-height: 1;
}
.plan-card .plan-price span { font-family: var(--font-body); font-size: 11px; color: var(--stone); font-weight: 300; }
.plan-card .plan-desc { font-size: 11px; color: var(--stone); margin-top: 6px; line-height: 1.4; }
