/* ============================================================
   Marketerra — Услуги и цены
   Стиль: Modern proptech (вариант C)
   Brand tokens: Marketerra DESIGN.md
   ============================================================ */

:root {
  /* Brand palette */
  --color-black-onyx:        #2C272E;
  --color-botanical-garden:  #12403C;
  --color-botanical-light:   #1d5a52;
  --color-white-jade:        #DAE0B7;
  --color-demitasse:         #3E2F28;
  --color-sugar-swizzle:     #EFECE5;
  --color-logo-brown:        #453015;

  /* Semantic light (default) */
  --bg-page:           var(--color-sugar-swizzle);
  --bg-card:           #ffffff;
  --bg-soft:           rgba(218, 224, 183, 0.18);
  --bg-banner:         linear-gradient(135deg, var(--color-white-jade) 0%, rgba(218, 224, 183, 0.6) 100%);
  --text-primary:      var(--color-black-onyx);
  --text-secondary:    var(--color-demitasse);
  --text-tertiary:     rgba(44, 39, 46, 0.55);
  --text-on-dark:      var(--color-white-jade);
  --line:              rgba(44, 39, 46, 0.10);
  --line-strong:       rgba(44, 39, 46, 0.18);
  --accent:            var(--color-botanical-garden);
  --accent-hover:      var(--color-botanical-light);

  --nav-bg:            rgba(18, 64, 60, 0.92);
  --nav-text:          var(--color-white-jade);
  --nav-line:          rgba(218, 224, 183, 0.14);

  /* Typography */
  --font-display: 'Dela Gothic One', 'Impact', sans-serif;
  --font-body:    'Onest', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  /* Layout */
  --container:    1280px;
  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    18px;
  --radius-pill:  999px;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast:  160ms;
  --dur-base:  220ms;
  --dur-slow:  450ms;
}

/* ---------- Dark theme ---------- */
[data-theme="dark"] {
  --bg-page:           #1a1518;
  --bg-card:           #2A2428;
  --bg-soft:           rgba(218, 224, 183, 0.06);
  --bg-banner:         linear-gradient(135deg, rgba(18, 64, 60, 0.4) 0%, rgba(62, 47, 40, 0.3) 100%);
  --text-primary:      #ECEAE3;
  --text-secondary:    rgba(218, 224, 183, 0.75);
  --text-tertiary:     rgba(218, 224, 183, 0.5);
  --line:              rgba(218, 224, 183, 0.10);
  --line-strong:       rgba(218, 224, 183, 0.18);
  --accent:            var(--color-white-jade);
  --accent-hover:      #ebe9c8;
  --nav-bg:            rgba(20, 16, 18, 0.88);
  --nav-text:          var(--color-white-jade);
  --nav-line:          rgba(218, 224, 183, 0.10);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--dur-base), color var(--dur-base);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--color-botanical-garden); color: var(--color-white-jade); }

/* ============================================================
   STICKY TOP NAV
   ============================================================ */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--nav-line);
  transition: background var(--dur-base);
}
.topnav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
@media (max-width: 720px) {
  .topnav__inner { padding: 12px 16px; gap: 12px; }
}
@media (max-width: 400px) {
  .topnav__inner { padding: 12px 12px; gap: 8px; }
  .topnav__icon { height: 30px; width: 30px; }
}
.topnav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.topnav__icon {
  height: 36px;
  width: 36px;
  filter: brightness(0) invert(1);
  opacity: 0.96;
  transition: transform var(--dur-base) var(--ease-out-expo);
}
.topnav__brand:hover .topnav__icon { transform: rotate(-6deg) scale(1.04); }
.topnav__wordmark {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nav-text);
  line-height: 1;
}
@media (max-width: 880px) {
  .topnav__wordmark { display: none; }
}
.topnav__center {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--nav-text);
  opacity: 0.78;
}
.topnav__center a {
  position: relative;
  padding: 4px 2px;
  transition: opacity var(--dur-fast);
}
.topnav__center a:hover { opacity: 1; }
.topnav__center a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--color-white-jade);
  border-radius: 2px;
}

.topnav__right { display: flex; align-items: center; gap: 10px; }
@media (max-width: 480px) {
  .topnav__right { gap: 8px; }
  .lang-switch { font-size: 11px; height: 28px; padding: 2px; }
  .lang-switch a { min-width: 26px; padding: 0 8px; }
}

/* ---------- Language switcher in nav ---------- */
.lang-switch {
  display: inline-flex;
  align-items: stretch;
  height: 30px;
  padding: 3px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(218, 224, 183, 0.22);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18);
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--nav-text);
  opacity: 0.55;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--dur-fast), color var(--dur-fast), opacity var(--dur-fast), box-shadow var(--dur-base);
}
.lang-switch a:hover { opacity: 0.95; }
.lang-switch a.active {
  background: var(--color-white-jade);
  color: var(--color-botanical-garden);
  opacity: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
[data-theme="dark"] .lang-switch a.active {
  background: var(--color-white-jade);
  color: var(--color-black-onyx);
}

/* Hide footer language column (теперь в nav) */
.footer__col--langs-hidden { display: none; }

/* ---------- Apple-style toggle switch ---------- */
.theme-toggle {
  position: relative;
  width: 56px;
  height: 30px;
  border-radius: var(--radius-pill);
  background: rgba(218, 224, 183, 0.18);
  border: 1px solid rgba(218, 224, 183, 0.22);
  padding: 0;
  cursor: pointer;
  transition: background var(--dur-base), border-color var(--dur-base);
  flex-shrink: 0;
}
.theme-toggle:hover { background: rgba(218, 224, 183, 0.26); }
.theme-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-white-jade);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform var(--dur-base) var(--ease-out-expo), background var(--dur-base);
  display: grid;
  place-items: center;
  color: var(--color-botanical-garden);
}
.theme-toggle__thumb svg {
  width: 14px;
  height: 14px;
  transition: opacity var(--dur-fast);
}
.theme-toggle__thumb svg + svg { position: absolute; }

/* Light theme: thumb on the LEFT, sun visible */
[data-theme="light"] .theme-toggle__thumb { transform: translateX(0); }
[data-theme="light"] .theme-toggle__sun   { opacity: 1; }
[data-theme="light"] .theme-toggle__moon  { opacity: 0; }

/* Dark theme: thumb on the RIGHT, moon visible */
[data-theme="dark"] .theme-toggle__thumb {
  transform: translateX(26px);
  background: var(--color-black-onyx);
  color: var(--color-white-jade);
}
[data-theme="dark"] .theme-toggle__sun   { opacity: 0; }
[data-theme="dark"] .theme-toggle__moon  { opacity: 1; }

.theme-toggle--mobile { display: none; }
@media (max-width: 720px) {
  .theme-toggle--desktop { display: none; }
}
@media (max-width: 880px) {
  .theme-toggle--mobile {
    display: flex;
    margin: 8px 4px 4px;
    align-self: flex-start;
  }
}

.topnav__cta {
  background: var(--color-white-jade);
  color: var(--color-botanical-garden);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--dur-base) var(--ease-out-expo);
  white-space: nowrap;
}
.topnav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px -10px rgba(218, 224, 183, 0.55);
}
.topnav__cta-short { display: none; }
@media (max-width: 720px) {
  .topnav__cta-full  { display: none; }
  .topnav__cta-short { display: inline; }
  .topnav__cta { padding: 10px 18px; }
}

.topnav__burger {
  display: none;
  width: 38px; height: 38px;
  position: relative;
}
.topnav__burger span {
  position: absolute;
  left: 9px; right: 9px;
  height: 2px;
  background: var(--nav-text);
  border-radius: 2px;
  transition: transform var(--dur-fast), opacity var(--dur-fast), top var(--dur-fast);
}
.topnav__burger span:nth-child(1) { top: 12px; }
.topnav__burger span:nth-child(2) { top: 18px; }
.topnav__burger span:nth-child(3) { top: 24px; }
.topnav__burger.is-open span:nth-child(1) { top: 18px; transform: rotate(45deg); }
.topnav__burger.is-open span:nth-child(2) { opacity: 0; }
.topnav__burger.is-open span:nth-child(3) { top: 18px; transform: rotate(-45deg); }

@media (max-width: 880px) {
  .topnav__center {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--nav-bg);
    padding: 8px 16px 16px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: all var(--dur-base);
    border-bottom: 1px solid var(--nav-line);
  }
  .topnav__center.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .topnav__center a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--nav-line);
    text-align: left;
  }
  .topnav__burger { display: block; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #12403C 0%, #1d5a52 35%, #3E2F28 100%);
  color: var(--color-white-jade);
  padding: 120px 28px 140px;
}
@media (max-width: 720px) {
  .hero { padding: 72px 20px 96px; }
}
@media (max-width: 400px) {
  .hero { padding: 56px 16px 80px; }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 80% 20%, rgba(218, 224, 183, 0.12), transparent 60%),
    radial-gradient(50% 50% at 20% 90%, rgba(62, 47, 40, 0.5), transparent 60%);
  pointer-events: none;
  animation: heroGlowShift 18s ease-in-out infinite;
}
@keyframes heroGlowShift {
  0%, 100% { transform: scale(1) translate(0, 0); }
  50%      { transform: scale(1.08) translate(-2%, 2%); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(218, 224, 183, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(218, 224, 183, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent);
}
.hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(218, 224, 183, 0.12);
  border: 1px solid rgba(218, 224, 183, 0.25);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white-jade);
  margin-bottom: 28px;
}
.hero__pill::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--color-white-jade);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-white-jade);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.4); }
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(42px, 9vw, 130px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 32px;
  overflow-wrap: anywhere;
  hyphens: auto;
}
@media (max-width: 480px) {
  .hero__title { font-size: clamp(34px, 9.5vw, 48px); margin-bottom: 24px; line-height: 0.95; }
}
@media (max-width: 360px) {
  .hero__title { font-size: 32px; }
}
.hero__title .accent {
  background: linear-gradient(120deg, var(--color-white-jade) 30%, #fff 50%, var(--color-white-jade) 70%);
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.hero__lead {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: rgba(218, 224, 183, 0.85);
  max-width: 640px;
  margin-bottom: 48px;
}
.hero__cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--color-white-jade);
  color: var(--color-botanical-garden);
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--dur-base) var(--ease-out-expo);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -12px rgba(218, 224, 183, 0.55);
}
.btn-ghost {
  background: transparent;
  color: var(--color-white-jade);
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid rgba(218, 224, 183, 0.3);
  transition: all var(--dur-base);
}
.btn-ghost:hover { background: rgba(218, 224, 183, 0.08); }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  margin-top: 80px;
  padding-top: 36px;
  border-top: 1px solid rgba(218, 224, 183, 0.16);
}
.hero__stat-num {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--color-white-jade);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.hero__stat-label {
  font-size: 13px;
  color: rgba(218, 224, 183, 0.7);
  letter-spacing: 0.04em;
}

/* ============================================================
   SECTIONS
   ============================================================ */
main { display: block; }
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 100px 28px;
}
.section + .section { padding-top: 0; }

.section__head {
  margin-bottom: 56px;
  max-width: 840px;
}
.section__num {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  padding: 6px 14px;
  background: var(--bg-soft);
  border-radius: var(--radius-pill);
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.0;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 18px;
}
.section__lead {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 700px;
}

/* ---------- Subgroup heading (Performance / SMM) ---------- */
.subgroup-head {
  font-family: var(--font-display);
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  color: var(--text-primary);
  margin: 56px 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.subgroup-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.subgroup-head:first-child { margin-top: 0; }

/* ============================================================
   CARDS
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: all var(--dur-base) var(--ease-out-expo);
  display: flex;
  flex-direction: column;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(18, 64, 60, 0.05), transparent 45%);
  opacity: 0;
  transition: opacity var(--dur-base);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 18px 40px -16px rgba(18, 64, 60, 0.18);
}
[data-theme="dark"] .card:hover {
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.5);
  border-color: var(--color-white-jade);
}
.card:hover::before { opacity: 1; }

.card__service {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.card__desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 22px;
  flex: 1;
}
.card__price {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  gap: 10px;
}
.card__price-value {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.card__price-currency {
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ============================================================
   SMM PACKAGES — special block (3 tiers)
   ============================================================ */
.smm-packages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 12px;
}
.pkg-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  transition: all var(--dur-base) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}
.pkg-card--featured {
  background: linear-gradient(160deg, var(--color-botanical-garden), var(--color-botanical-light));
  color: var(--color-white-jade);
  border-color: transparent;
  box-shadow: 0 18px 40px -16px rgba(18, 64, 60, 0.4);
}
.pkg-card--featured .pkg-card__name,
.pkg-card--featured .pkg-card__desc,
.pkg-card--featured .pkg-card__price-value,
.pkg-card--featured .pkg-card__price-currency { color: var(--color-white-jade); }
.pkg-card--featured .pkg-card__price-currency { opacity: 0.7; }
.pkg-card--featured .pkg-card__desc { opacity: 0.92; }

.pkg-card:hover {
  transform: translateY(-4px);
}
.pkg-card:not(.pkg-card--featured):hover {
  border-color: var(--accent);
  box-shadow: 0 18px 40px -16px rgba(18, 64, 60, 0.18);
}

.pkg-card__name {
  font-family: var(--font-display);
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.pkg-card__desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 22px;
  min-height: 84px;
}
.pkg-card__price {
  padding-top: 18px;
  border-top: 1px solid currentColor;
  border-color: rgba(127, 127, 127, 0.18);
}
.pkg-card--featured .pkg-card__price { border-color: rgba(218, 224, 183, 0.25); }
.pkg-card__price-value {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.pkg-card__price-currency {
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-top: 6px;
}

/* ============================================================
   TABS (Готовые пакеты)
   ============================================================ */
.tabs__nav {
  display: flex;
  gap: 6px;
  margin-bottom: 36px;
  flex-wrap: wrap;
  padding: 6px;
  background: var(--bg-soft);
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
}
.tabs__btn {
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--dur-base) var(--ease-out-expo);
  white-space: nowrap;
  position: relative;
}
.tabs__btn:hover { color: var(--text-primary); }
.tabs__btn.is-active {
  background: var(--color-botanical-garden);
  color: var(--color-white-jade);
  font-weight: 600;
  box-shadow: 0 6px 18px -8px rgba(18, 64, 60, 0.5);
}
[data-theme="dark"] .tabs__btn.is-active {
  background: var(--color-white-jade);
  color: var(--color-botanical-garden);
  box-shadow: 0 6px 18px -8px rgba(218, 224, 183, 0.45);
}
.tabs__panel { display: none; }
.tabs__panel.is-active {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  animation: fadeIn 0.3s var(--ease-out-expo);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   PACKAGE CARDS in TABS (Готовые пакеты)
   featured = средний (рекомендуемый) пакет
   ============================================================ */
.tabs__panel .pkg-card {
  display: flex;
  flex-direction: column;
}
.tabs__panel .pkg-card__name {
  font-size: 24px;
  margin-bottom: 12px;
}
.tabs__panel .pkg-card__desc {
  min-height: 62px;
  font-size: 14px;
}
.tabs__panel .pkg-card__price-value { font-size: 22px; }
.pkg-card__badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--color-white-jade);
  color: var(--color-botanical-garden);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  line-height: 1;
}
.pkg-card:not(.pkg-card--featured) .pkg-card__badge { display: none; }

/* ============================================================
   TIERS (Ретейнеры)
   Аналогично SMM packages, но с подробным списком фич
   ============================================================ */
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  align-items: stretch;
}
.tier {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--dur-base) var(--ease-out-expo);
  overflow: hidden;
}
.tier:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px -20px rgba(18, 64, 60, 0.22);
}
.tier:not(.tier--featured):hover {
  border-color: var(--accent);
}
.tier--featured {
  background: linear-gradient(160deg, var(--color-botanical-garden), var(--color-botanical-light));
  color: var(--color-white-jade);
  border-color: transparent;
  box-shadow: 0 22px 48px -18px rgba(18, 64, 60, 0.45);
}
.tier--featured .tier__name,
.tier--featured .tier__desc,
.tier--featured .tier__price-value,
.tier--featured .tier__price-currency,
.tier--featured .tier__features li { color: var(--color-white-jade); }
.tier--featured .tier__price-currency { opacity: 0.7; }
.tier--featured .tier__desc           { opacity: 0.92; }
.tier--featured .tier__features li::before {
  background: var(--color-white-jade);
  color: var(--color-botanical-garden);
}
.tier__badge {
  position: absolute;
  top: 22px;
  right: 22px;
  background: var(--color-white-jade);
  color: var(--color-botanical-garden);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  line-height: 1;
}
.tier:not(.tier--featured) .tier__badge { display: none; }
.tier__name {
  font-family: var(--font-display);
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1;
}
.tier__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}
.tier__features {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.tier__features li {
  position: relative;
  padding-left: 28px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-secondary);
}
.tier__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-botanical-garden);
  color: var(--color-white-jade);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.tier__price {
  padding-top: 20px;
  border-top: 1px solid currentColor;
  border-color: rgba(127, 127, 127, 0.18);
}
.tier--featured .tier__price { border-color: rgba(218, 224, 183, 0.25); }
.tier__price-value {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.tier__price-currency {
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-top: 6px;
}

/* ============================================================
   INFO BANNER
   ============================================================ */
.infobanner {
  margin-top: 36px;
  padding: 20px 24px;
  background: var(--bg-banner);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.infobanner__icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  background: var(--color-botanical-garden);
  color: var(--color-white-jade);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1;
}
.infobanner strong { color: var(--accent); font-weight: 600; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  margin-top: 80px;
  padding: 64px 28px 32px;
  background: var(--color-black-onyx);
  color: var(--color-white-jade);
}
[data-theme="dark"] .footer { background: #100C0F; }
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 56px;
}
@media (max-width: 720px) {
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
}
.footer__logo {
  height: 28px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  margin-bottom: 18px;
}
.footer__tagline {
  font-size: 14px;
  color: rgba(218, 224, 183, 0.7);
  max-width: 320px;
  line-height: 1.5;
}
.footer__heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(218, 224, 183, 0.6);
  margin-bottom: 16px;
}
.footer__contact {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 14px;
  color: rgba(218, 224, 183, 0.9);
}
.footer__contact a {
  color: var(--color-white-jade);
  border-bottom: 1px solid rgba(218, 224, 183, 0.25);
  transition: border-color var(--dur-fast);
}
.footer__contact a:hover { border-color: var(--color-white-jade); }
.footer__langs { display: flex; gap: 6px; }
.footer__langs a {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: rgba(218, 224, 183, 0.6);
  border: 1px solid rgba(218, 224, 183, 0.15);
  transition: all var(--dur-fast);
}
.footer__langs a.active {
  background: var(--color-white-jade);
  color: var(--color-botanical-garden);
  border-color: transparent;
}
.footer__langs a[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; }
.footer__langs a:not([aria-disabled]):not(.active):hover {
  border-color: rgba(218, 224, 183, 0.4);
  color: var(--color-white-jade);
}
.footer__bottom {
  max-width: var(--container);
  margin: 32px auto 0;
  padding: 24px 0 0;
  border-top: 1px solid rgba(218, 224, 183, 0.10);
  font-size: 13px;
  color: rgba(218, 224, 183, 0.5);
}

/* ============================================================
   CONTACT MODAL
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal[aria-hidden="false"] { display: flex; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 18, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn 0.25s var(--ease-out-expo);
}
.modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  background: var(--bg-card);
  color: var(--text-primary);
  border-radius: var(--radius-lg);
  padding: 40px 36px 32px;
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.4);
  animation: modalIn 0.32s var(--ease-out-expo);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal__close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  color: var(--text-secondary);
  transition: all var(--dur-fast);
}
.modal__close:hover { background: var(--bg-soft); color: var(--accent); }

.modal__head { margin-bottom: 28px; }

/* Mobile: bottom-sheet panel + × pinned to top-right of viewport */
@media (max-width: 720px) {
  .modal {
    align-items: flex-end;
    padding: 0;
  }
  .modal__panel {
    max-width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 24px 20px 28px;
    max-height: 86vh;
  }
  .modal__close {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    right: 12px;
    width: 48px;
    height: 48px;
    font-size: 26px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--color-black-onyx, #141012);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    z-index: 210;
  }
  .modal__close:hover {
    background: rgba(255, 255, 255, 1);
    color: var(--color-black-onyx, #141012);
  }
}
.modal__title {
  font-family: var(--font-display);
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 8px;
}
.modal__lead {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---------- Form ---------- */
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row--split {
  flex-direction: row;
  gap: 14px;
  align-items: flex-start;
}
.form-row--split .form-row { flex: 1; min-width: 0; }
@media (max-width: 480px) {
  .form-row--split { flex-direction: column; }
}
.form-row label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}
.form-row input,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg-page);
  color: var(--text-primary);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.form-row textarea { resize: vertical; min-height: 90px; }
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(18, 64, 60, 0.12);
}
.form-row--actions {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.form-submit { padding: 13px 26px; }
.form-note {
  font-size: 12px;
  color: var(--text-tertiary);
}
.form-status {
  font-size: 14px;
  padding: 0;
  min-height: 0;
  transition: padding var(--dur-fast);
}
.form-status.is-success {
  color: var(--accent);
  padding: 12px 14px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
}
.form-status.is-error {
  color: #c0392b;
  padding: 12px 14px;
  background: rgba(192, 57, 43, 0.08);
  border-radius: var(--radius-sm);
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ============================================================
   PRINT (на случай если кто-то распечатает)
   ============================================================ */
@media print {
  .topnav, .modal, .hero__cta-row, .footer__langs { display: none !important; }
  .hero { background: white !important; color: var(--color-black-onyx) !important; padding: 32px 0; }
  .hero__title, .hero__lead, .hero__pill { color: var(--color-black-onyx) !important; }
  .card, .pkg-card { break-inside: avoid; box-shadow: none !important; }
  .section { padding: 32px 0; }
}
