/* ============================================================
   seo/seo.css — стили для SEO-страниц (боты, статика)
   Дизайн максимально близок к React-версии сайта
   ============================================================ */

/* ===== RESET / BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-600:    #2563eb;
  --indigo-600:  #4f46e5;
  --indigo-500:  #6366f1;
  --green-400:   #4ade80;
  --gray-50:     #f9fafb;
  --gray-100:    #f3f4f6;
  --gray-200:    #e5e7eb;
  --gray-300:    #d1d5db;
  --gray-400:    #9ca3af;
  --gray-500:    #6b7280;
  --gray-700:    #374151;
  --gray-800:    #1f2937;
  --gray-900:    #111827;
  --white:       #ffffff;
  --radius-xl:   1rem;
  --radius-2xl:  1.5rem;
  --radius-3xl:  2rem;
  --shadow-md:   0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg:   0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --shadow-xl:   0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
}

html { font-size: 16px; scroll-behavior: smooth; }

body.seo-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
               Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ===== HEADER ===== */
.seo-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229,231,235,0.5);
  box-shadow: var(--shadow-md);
  padding: 0.75rem 0;
}

.seo-header__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* ===== LOGO ===== */
.seo-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}

.seo-logo__icon {
  width: 1.75rem;
  height: 1.75rem;
  background: linear-gradient(135deg, var(--blue-600), var(--indigo-600));
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.seo-logo__text {
  font-size: 1.125rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue-600), var(--indigo-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== NAV ===== */
.seo-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.seo-nav__link {
  padding: 0.4rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: background 0.15s, color 0.15s;
}

.seo-nav__link:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

/* ===== CART BUTTON ===== */
.seo-cart-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #3b82f6, var(--blue-600));
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: opacity 0.15s;
  flex-shrink: 0;
}

.seo-cart-btn:hover { opacity: 0.9; }

/* ===== FOOTER ===== */
.seo-footer {
  background: var(--gray-900);
  color: var(--gray-300);
  margin-top: auto;
  padding: 2.5rem 1rem 1.25rem;
}

.seo-footer__inner {
  max-width: 80rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: left;
}

.seo-footer__brand .seo-logo__text {
  font-size: 1.25rem;
  color: var(--white);
  -webkit-text-fill-color: var(--white);
}

.seo-footer__tagline {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--gray-400);
}

.seo-footer__col-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.seo-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.seo-footer__links a,
.seo-footer__contact a {
  font-size: 0.875rem;
  color: var(--gray-400);
  transition: color 0.15s;
}

.seo-footer__links a:hover,
.seo-footer__contact a:hover { color: var(--white); }

.seo-footer__contact {
  font-size: 0.875rem;
  color: var(--gray-400);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.seo-footer__bottom {
  max-width: 80rem;
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* ===== COUNTRY PAGE ===== */
.seo-country-page {
  max-width: 80rem;
  margin: 2.5rem auto;
  padding: 0 1rem;
  flex: 1;
}

.seo-country-page h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.seo-country-page > p {
  font-size: 1rem;
  color: var(--gray-500);
  margin-bottom: 2rem;
}

/* ===== PLAN CARDS GRID ===== */
.seo-country-plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 640px)  { .seo-country-plans { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .seo-country-plans { grid-template-columns: repeat(4, 1fr); } }

/* ===== PLAN CARD ===== */
.seo-plan-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-2xl);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.2s, transform 0.2s;
}

.seo-plan-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.seo-plan-card h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
}

.seo-plan-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.seo-plan-card li {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.seo-plan-card li strong {
  color: var(--gray-700);
  font-weight: 600;
}

/* ===== BUY BUTTON ===== */
.seo-buy-btn {
  display: block;
  margin-top: auto;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--blue-600), var(--indigo-600));
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: opacity 0.15s;
}

.seo-buy-btn:hover { opacity: 0.9; }

/* ===== PLAN PAGE ===== */
.seo-plan-page {
  max-width: 48rem;
  margin: 2.5rem auto;
  padding: 0 1rem;
  flex: 1;
}

.seo-plan-page h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.seo-plan-page > p {
  font-size: 1rem;
  color: var(--gray-500);
  margin-bottom: 2rem;
}

.seo-plan-page .seo-plan-card h2 {
  font-size: 1.125rem;
}

/* ===== COUNTRIES LIST (на странице плана) ===== */
.seo-countries {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.seo-country-link {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-700);
  transition: background 0.15s, color 0.15s;
}

.seo-country-link:hover {
  background: linear-gradient(135deg, var(--blue-600), var(--indigo-600));
  color: var(--white);
  border-color: transparent;
}

/* ===== PRICE HIGHLIGHT ===== */
.seo-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue-600);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .seo-nav { display: none; }

  .seo-footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .seo-footer__links {
    align-items: center;
  }

  .seo-country-page h1,
  .seo-plan-page h1 {
    font-size: 1.5rem;
  }
}

/* ============================================================
   HOME PAGE
   ============================================================ */

/* ===== HERO ===== */
.seo-hero {
  padding: 3rem 1rem 2rem;
  background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
}

.seo-hero__inner {
  max-width: 80rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.seo-hero__title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  background: linear-gradient(135deg, var(--blue-600), #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.seo-hero__subtitle {
  font-size: 1.125rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* ===== FEATURES GRID ===== */
.seo-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.seo-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(229,231,235,0.6);
  border-radius: var(--radius-xl);
}

.seo-feature-card__icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 0.1rem;
}

.seo-feature-card__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.3;
}

.seo-feature-card__desc {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 0.2rem;
  line-height: 1.4;
}

/* ===== SEARCH CARD ===== */
.seo-search-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-xl);
  padding: 1.75rem;
}

.seo-search-card__input-wrap {
  position: relative;
  margin-bottom: 1.5rem;
}

.seo-search-card__icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--gray-400);
}

.seo-search-card__input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border-radius: var(--radius-xl);
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-900);
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
}

.seo-search-card__input:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.seo-search-card__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
}

.seo-search-card__popular {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.seo-search-card__pop-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.625rem 0.25rem;
  border-radius: var(--radius-xl);
  background: var(--gray-100);
  border: 1px solid rgba(209,213,219,0.3);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gray-700);
  text-align: center;
  transition: background 0.15s;
}

.seo-search-card__pop-item:hover {
  background: var(--gray-200);
}

.seo-search-card__flag {
  width: 2rem;
  height: 1.5rem;
  border-radius: 0.25rem;
  object-fit: cover;
}

/* ===== POPULAR SECTION ===== */
.seo-popular {
  padding: 3rem 1rem;
  background: var(--gray-50);
}

.seo-popular__inner {
  max-width: 80rem;
  margin: 0 auto;
}

.seo-popular__header {
  text-align: center;
  margin-bottom: 2rem;
}

.seo-popular__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
}

.seo-popular__subtitle {
  font-size: 1rem;
  color: var(--gray-500);
  margin-top: 0.5rem;
}

/* ===== COUNTRIES GRID ===== */
.seo-countries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px)  { .seo-countries-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .seo-countries-grid { grid-template-columns: repeat(4, 1fr); } }

/* ===== COUNTRY CARD ===== */
.seo-country-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-3xl);
  height: 11rem;
  box-shadow: var(--shadow-lg);
  transition: box-shadow 0.2s, transform 0.2s;
}

.seo-country-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
}

.seo-country-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seo-country-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.65));
}

.seo-country-card__flag {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 1.5rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

.seo-country-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  color: var(--white);
}

.seo-country-card__name {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

.seo-country-card__price {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #86efac; /* green-300 */
}

/* ===== ALL COUNTRIES BUTTON ===== */
.seo-popular__cta {
  text-align: center;
  padding: 3rem 0 1rem;
}

.seo-all-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-xl);
  background: var(--gray-900);
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transition: opacity 0.15s, transform 0.15s;
}

.seo-all-btn:hover {
  opacity: 0.85;
  transform: scale(1.03);
}

/* ===== RESPONSIVE HOME ===== */
@media (max-width: 768px) {
  .seo-hero__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .seo-hero__title {
    font-size: 1.875rem;
  }

  .seo-search-card__popular {
    grid-template-columns: repeat(4, 1fr);
  }

  .seo-popular__title {
    font-size: 1.5rem;
  }
}

/* ===== DISCOUNT BADGE на карточке страны ===== */
.seo-country-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: linear-gradient(135deg, #dc2626, #db2777);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 9999px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,0.2);
}

/* ===== ЦЕНА + СТАРАЯ ЦЕНА ===== */
.seo-country-card__price-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.seo-country-card__old-price {
  font-size: 0.75rem;
  color: #d1d5db;
  text-decoration: line-through;
  opacity: 0.8;
}

.seo-country-card__price {
  font-size: 0.875rem;
  font-weight: 600;
  color: #86efac;
}

/* ============================================================
   PLANS PAGE (country.php)
   ============================================================ */

/* ── HERO ── */
.seo-plans-hero {
  position: relative;
  height: 14rem;
  overflow: hidden;
  margin: 0.75rem 0.75rem 0;
  border-radius: var(--radius-3xl);
}

@media (min-width: 640px)  { .seo-plans-hero { height: 18rem; } }
@media (min-width: 1024px) { .seo-plans-hero { height: 22rem; } }

.seo-plans-hero__bg { position: absolute; inset: 0; }

.seo-plans-hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.seo-plans-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.25) 0%, rgba(0,0,0,.65) 100%);
}

.seo-plans-hero__content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.5rem 1.5rem 1.25rem;
  color: var(--white);
}

.seo-plans-hero__badge {
  display: inline-block;
  margin-bottom: .5rem;
  padding: .3rem .85rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #dc2626, #db2777);
  font-size: .75rem;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.2);
}

.seo-plans-hero__title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

@media (min-width: 640px) { .seo-plans-hero__title { font-size: 2rem; } }

.seo-plans-hero__sub {
  margin-top: .35rem;
  font-size: .875rem;
  color: rgba(255,255,255,.75);
}

/* ── BODY ── */
.seo-plans-body {
  max-width: 80rem;
  margin: 2rem auto;
  padding: 0 1rem;
}

.seo-plans-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--gray-500);
  font-size: 1rem;
}

/* ── SECTION ── */
.seo-plans-section { margin-bottom: 3rem; }

.seo-plans-section__title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1.25rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--gray-200);
}

/* ── PLAN CARDS GRID ── */
.seo-plan-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px)  { .seo-plan-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .seo-plan-cards-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── REGIONS GRID (small cards) ── */
.seo-regions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}

@media (min-width: 640px)  { .seo-regions-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .seo-regions-grid { grid-template-columns: repeat(5, 1fr); } }

/* ── FULL PLAN CARD ── */
.seo-plan-card-full {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-2xl);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .875rem;
  box-shadow: var(--shadow-md);
  transition: box-shadow .2s, transform .2s;
}

.seo-plan-card-full:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-3px);
}

/* head */
.seo-pcf__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.seo-pcf__flags img {
  height: .875rem;
  border-radius: 2px;
  margin-right: .2rem;
}

.seo-pcf__badges { display: flex; gap: .35rem; flex-wrap: wrap; }

.seo-pcf__badge {
  padding: .2rem .55rem;
  border-radius: 9999px;
  font-size: .7rem;
  font-weight: 600;
}

.seo-pcf__badge--discount {
  background: linear-gradient(135deg, #dc2626, #db2777);
  color: var(--white);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .7; }
}

/* name */
.seo-pcf__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
}

/* tabs row */
.seo-pcf__tabs {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}

.seo-pcf__tab {
  padding: .25rem .75rem;
  border-radius: 9999px;
  font-size: .75rem;
  font-weight: 600;
  background: var(--gray-100);
  color: var(--gray-500);
  cursor: default;
}

.seo-pcf__tab--active {
  background: #22c55e;
  color: var(--white);
}

/* variants */
.seo-pcf__variants {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.seo-pcf__variant {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  padding: .6rem .85rem;
  border-radius: var(--radius-xl);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  transition: background .15s, border-color .15s;
}

.seo-pcf__variant:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.seo-pcf__vol {
  font-size: .875rem;
  font-weight: 700;
  color: var(--gray-900);
  min-width: 4rem;
}

.seo-pcf__dur {
  font-size: .8rem;
  color: var(--gray-500);
  flex: 1;
}

.seo-pcf__price-wrap {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-left: auto;
}

.seo-pcf__old-price {
  font-size: .75rem;
  color: var(--gray-400);
  text-decoration: line-through;
}

.seo-pcf__price {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--blue-600);
}

.seo-pcf__price--sale { color: #dc2626; }

.seo-pcf__more {
  font-size: .7rem;
  color: var(--gray-400);
  margin-left: auto;
  white-space: nowrap;
}

/* details link */
.seo-pcf__details {
  display: block;
  margin-top: auto;
  padding-top: .75rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--blue-600);
  border-top: 1px solid var(--gray-100);
  transition: color .15s;
}

.seo-pcf__details:hover { color: var(--indigo-600); }

/* ============================================================
   ESIM PAGE (plan.php)
   ============================================================ */

.seo-esim-page {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem 4rem;
}

/* breadcrumb */
.seo-breadcrumb {
  padding: 1rem 0 .5rem;
  font-size: .875rem;
  color: var(--gray-400);
}
.seo-breadcrumb__inner { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem; }
.seo-breadcrumb a { color: var(--gray-400); }
.seo-breadcrumb a:hover { color: var(--gray-900); }
.seo-breadcrumb__sep { color: var(--gray-300); padding: 0 .25rem; }

/* layout */
.seo-esim-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}
@media (min-width: 768px) {
  .seo-esim-layout {
    grid-template-columns: 1fr 20rem;
    align-items: start;
  }
}

/* ── INFO CARD ── */
.seo-info-card {
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(248,250,252,.95));
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.seo-info-card__head {
  padding: 1.25rem 1.5rem 1rem;
  background: linear-gradient(135deg, rgba(59,130,246,.08), rgba(99,102,241,.08));
  border-bottom: 1px solid var(--gray-100);
}

.seo-info-card__title-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }

.seo-info-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
}

.seo-disc-badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 9999px;
  font-size: .7rem;
  font-weight: 700;
  background: linear-gradient(135deg, #dc2626, #db2777);
  color: #fff;
  animation: pulse 1.5s infinite;
}

.seo-info-card__sub {
  font-size: .8125rem;
  color: var(--gray-500);
  margin-top: .25rem;
}

.seo-info-card__body { padding: 1.25rem 1.5rem; }

/* params grid */
.seo-params-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.seo-param { display: flex; flex-direction: column; gap: .25rem; }
.seo-param__label { font-size: .8125rem; color: var(--gray-500); }
.seo-param__value { font-size: 1.125rem; font-weight: 600; color: var(--gray-900); display: flex; flex-direction: column; gap: .1rem; }
.seo-old-price { font-size: .8125rem; color: var(--gray-400); text-decoration: line-through; }
.seo-current-price { font-size: 1.5rem; font-weight: 700; color: #16a34a; }
.seo-current-price--sale { color: #dc2626; }

/* features grid */
.seo-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}

.seo-feature {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .75rem;
  border-radius: var(--radius-xl);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
}

.seo-feature__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.seo-feature__title { font-size: .8125rem; font-weight: 600; color: var(--gray-900); }
.seo-feature__text  { font-size: .75rem; color: var(--gray-500); margin-top: .15rem; }

/* ── TAB BANNER ── */
.seo-tab-banner {
  position: relative;
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, color-mix(in srgb, var(--banner-color) 15%, transparent), color-mix(in srgb, var(--banner-color) 8%, transparent));
  border: 1px solid color-mix(in srgb, var(--banner-color) 30%, transparent);
  overflow: hidden;
}

.seo-tab-banner::before {
  content: '';
  position: absolute;
  top: -1rem; right: -1rem;
  width: 6rem; height: 6rem;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  filter: blur(1rem);
}

.seo-tab-banner__icon {
  font-size: 1.5rem;
  margin-bottom: .5rem;
}

.seo-tab-banner__body { display: flex; gap: .75rem; align-items: flex-start; }

.seo-tab-banner__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: .25rem;
}

.seo-tab-banner__desc {
  font-size: .875rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.seo-tab-banner__note {
  margin-top: .75rem;
  font-size: .6875rem;
  color: var(--gray-400);
  font-style: italic;
  border-top: 1px solid color-mix(in srgb, var(--banner-color) 15%, transparent);
  padding-top: .5rem;
}

/* ── COUNTRIES BLOCK ── */
.seo-countries-block {
  margin-bottom: 1.25rem;
  border-radius: var(--radius-2xl);
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
  padding: 1.25rem;
}

.seo-countries-block__head { margin-bottom: 1rem; }
.seo-countries-block__title { font-size: 1rem; font-weight: 600; color: var(--gray-900); }
.seo-countries-block__sub   { font-size: .8125rem; color: var(--gray-500); margin-top: .15rem; }

.seo-countries-grid2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .5rem;
  max-height: 16rem;
  overflow-y: auto;
  padding: .75rem;
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-100);
}

.seo-country-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .75rem;
  border-radius: .5rem;
  background: var(--white);
  border: 1px solid var(--gray-100);
  font-size: .875rem;
  color: var(--gray-800);
  transition: background .15s;
}

.seo-country-item:hover {
  background: var(--gray-50);
  color: var(--blue-600);
}

/* ── OTHER VARIANTS ── */
.seo-other-variants { margin-bottom: 1.25rem; }

.seo-other-variants__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.seo-variants-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 640px) { .seo-variants-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px){ .seo-variants-grid { grid-template-columns: repeat(4, 1fr); } }

.seo-variant-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(248,250,252,.9));
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
  transition: box-shadow .2s, transform .2s;
  color: var(--gray-900);
}

.seo-variant-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

.seo-variant-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: .75rem;
}

.seo-variant-card__tab {
  padding: .2rem .5rem;
  border-radius: 9999px;
  font-size: .7rem;
  font-weight: 600;
  background: color-mix(in srgb, var(--tab-color) 12%, transparent);
  color: var(--tab-color);
  border: 1px solid color-mix(in srgb, var(--tab-color) 30%, transparent);
}

.seo-variant-card__price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #16a34a;
}

.seo-variant-card__vol  { font-size: 1.5rem; font-weight: 700; color: var(--gray-900); }
.seo-variant-card__dur  { font-size: .75rem; color: var(--gray-400); margin-top: .2rem; }
.seo-variant-card__hint { margin-top: 1rem; font-size: .8125rem; color: var(--gray-500); }

/* ── BUY CARD (aside) ── */
.seo-esim-aside { position: relative; }

.seo-buy-card {
  position: sticky;
  top: 5rem;
  padding: 1.5rem;
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(248,250,252,.9));
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-xl);
}

.seo-buy-card__old-price {
  font-size: .875rem;
  color: var(--gray-400);
  text-decoration: line-through;
  margin-bottom: .25rem;
}

.seo-buy-card__price {
  font-size: 1.875rem;
  font-weight: 700;
  color: #16a34a;
  margin-bottom: .5rem;
}

.seo-buy-card__price--sale { color: #dc2626; }

.seo-buy-card__total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-700);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.seo-buy-card__total {
  font-size: 1.5rem;
  font-weight: 700;
  color: #16a34a;
}

.seo-buy-card__actions { display: flex; flex-direction: column; gap: .75rem; }

.seo-buy-btn {
  display: block;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  color: var(--white);
  transition: opacity .2s, transform .1s;
}

.seo-buy-btn:hover { opacity: .9; transform: translateY(-1px); color: var(--white); }

.seo-buy-btn--cart {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border: 1px solid rgba(59,130,246,.3);
}

.seo-buy-btn--now {
  background: linear-gradient(135deg, #10b981, #0d9488);
  border: 1px solid rgba(16,185,129,.3);
}

.seo-buy-card__note {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
  font-size: .875rem;
  color: var(--gray-600);
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}

/* ============================================================
   COUNTRIES PAGE (countries.php)
   ============================================================ */

.seo-countries-page {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.seo-countries-page__hero {
  margin-bottom: 2rem;
}

.seo-countries-page__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: .5rem;
}

@media (min-width: 768px) {
  .seo-countries-page__title { font-size: 2.5rem; }
}

.seo-countries-page__sub {
  font-size: 1rem;
  color: var(--gray-500);
}

.seo-countries-page__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 480px)  { .seo-countries-page__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px)  { .seo-countries-page__grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .seo-countries-page__grid { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; } }

/* карточка — расширяем базовую .seo-country-card */
.seo-countries-page__grid .seo-country-card {
  height: 10rem;
}

@media (min-width: 768px) {
  .seo-countries-page__grid .seo-country-card { height: 11rem; }
}

/* флаг поверх карточки */
.seo-country-card__flag {
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 2rem;
  height: 1.5rem;
  border-radius: .375rem;
  border: 2px solid rgba(255,255,255,.4);
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
  object-fit: cover;
  z-index: 2;
}

/* подпись "Смотреть тарифы" */
.seo-country-card__cta {
  font-size: .75rem;
  color: rgba(255,255,255,.65);
  margin-top: .2rem;
}
/* Server content uses the same selected theme before React mounts.
   Variables are scoped to the root, so white button text stays white. */
html.dark #root {
  --gray-50:#111827; --gray-100:#1f2937; --gray-200:#374151;
  --gray-300:#4b5563; --gray-400:#9ca3af; --gray-500:#9ca3af;
  --gray-600:#d1d5db; --gray-700:#d1d5db; --gray-800:#e5e7eb;
  --gray-900:#f3f4f6;
}
html.dark #root :is(.seo-info-card,.seo-plan-card-full,.seo-plan-card,.seo-search-card,.seo-country-link,.seo-countries-block,.seo-variant-card,.seo-buy-card,.seo-blog-card,.seo-feature-card) {
  background:#1f2937; border-color:#374151; color:#f3f4f6;
}
html.dark #root .seo-hero { background:linear-gradient(135deg,#111827,#1e293b); }
html.dark #root :is(.seo-blog-card__title,.seo-blog-hero__title,.seo-blog-post) { color:#f3f4f6; }

.seo-logo__icon { width:36px; height:36px; object-fit:contain; background:none; }

@media (max-width: 1023px) { .seo-footer { display:none; } }
