/* ============================================================
   Aziz Atavaliev — taplink styles
   Theme via data-theme="light" | data-theme="dark"
   ============================================================ */

:root,
[data-theme="light"] {
  --bg: #F7F6F3;
  --surface: #FFFFFF;
  --ink: #0E0E14;
  --ink-2: #1c1c22;
  --muted: #56565F;
  --muted-2: #9A9AA4;
  --line: #E6E4DF;
  --line-2: #EFEEEA;
  --accent: #0E0E14;
  --radius: 18px;
  --radius-sm: 10px;
  --hairline: 1px solid var(--line);

  /* light-only extras */
  --card-shadow: 0 1px 3px rgba(16, 16, 32, .05), 0 6px 20px rgba(16, 16, 32, .06);
  --card-shadow-hover: 0 2px 8px rgba(16, 16, 32, .08), 0 16px 40px rgba(16, 16, 32, .12);
}

[data-theme="dark"] {
  --bg: #0A0A0A;
  --surface: #111111;
  --ink: #F5F5F4;
  --ink-2: #E5E5E3;
  --muted: #8E8E8A;
  --muted-2: #5C5C58;
  --line: #1F1F1D;
  --line-2: #181816;
  --accent: #F5F5F4;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

/* Декоративные свечения шире экрана — режем горизонтальный скролл на мобильных */
html, body { overflow-x: hidden; max-width: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  letter-spacing: -0.011em;
  transition: background .22s, color .22s;
}

/* Top accent bar */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  z-index: 9999;
  opacity: .6;
}

/* Ambient orbs — dark only */
[data-theme="dark"] body::after {
  content: '';
  position: fixed;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(99,102,241,.055) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--bg); }

/* ============================================================
   Layout
   ============================================================ */
.hub {
  max-width: 560px;
  margin: 0 auto;
  padding: 36px 24px 80px;
}

/* ============================================================
   Topbar
   ============================================================ */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 44px;
}

/* ── Быстрая связь: три компактные кнопки под топбаром ── */
.topbar:has(+ .quick-bar) { margin-bottom: 14px; }

.quick-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 36px;
}

.quick-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: var(--hairline);
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 560;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color .2s, color .2s, background .2s, transform .18s;
}

.quick-btn:active { transform: scale(.97); }

.quick-btn-ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--muted);
  transition: color .2s;
}
.quick-btn-ic svg { width: 100%; height: 100%; }

.quick-btn--tg:hover   { border-color: #2aabee; color: #2aabee; }
.quick-btn--wa:hover   { border-color: #25d366; color: #1eb455; }
.quick-btn--call:hover { border-color: var(--ink); }
.quick-btn:hover .quick-btn-ic { color: inherit; }

@media (max-width: 420px) {
  .quick-bar { gap: 6px; }
  .quick-btn { height: 36px; padding: 0 10px; font-size: 12.5px; gap: 6px; }
  .quick-btn-ic { width: 15px; height: 15px; }
}

@media (max-width: 360px) {
  .quick-bar { gap: 5px; margin-bottom: 30px; }
  .quick-btn { padding: 0 7px; font-size: 11.5px; gap: 5px; }
  .quick-btn-ic { width: 14px; height: 14px; }
}

.lang-switcher {
  display: flex;
  background: var(--surface);
  border: var(--hairline);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  font-family: ui-monospace, 'SF Mono', ui-monospace, 'SF Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  padding: 5px 12px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background .18s, color .18s;
  line-height: 1;
}

.lang-btn.active {
  background: var(--ink);
  color: var(--bg);
}

.lang-btn:not(.active):hover { color: var(--ink); }

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: var(--hairline);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  transition: border-color .2s, color .2s, background .2s;
  flex-shrink: 0;
}

.theme-toggle:hover { border-color: var(--ink); color: var(--ink); }
.theme-toggle svg { width: 16px; height: 16px; }

[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"]  .icon-sun  { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  text-align: center;
  padding-bottom: 28px;
  margin-bottom: 0;
  position: relative;
}

[data-theme="dark"] .hero::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 440px;
  height: 340px;
  background: radial-gradient(ellipse, rgba(99,102,241,.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

/* Мягкое свечение за аватаркой — сдержанный акцент */
.wow-orb {
  position: absolute;
  top: -60px;
  left: 50%;
  width: 320px;
  height: 320px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,.35), transparent 70%);
  filter: blur(44px);
  opacity: .5;
  z-index: 0;
  animation: wow-breathe 6s ease-in-out infinite;
  will-change: opacity;
}

@keyframes wow-breathe {
  0%, 100% { opacity: .35; }
  50%      { opacity: .55; }
}

/* Avatar gradient ring */
.avatar-wrap {
  display: inline-flex;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
  margin: 4px auto 24px;
  transition: box-shadow .3s;
}

[data-theme="dark"] .avatar-wrap {
  box-shadow: 0 0 0 3px var(--bg), 0 0 36px rgba(99,102,241,.32);
}

[data-theme="light"] .avatar-wrap {
  box-shadow: 0 0 0 3px var(--bg), 0 6px 24px rgba(99,102,241,.18);
}

.avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* Мягкий внутренний блик по краю — фото фотостудии не режет глаз на светлом фоне */
.avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18),
              inset 0 -14px 26px -12px rgba(255, 255, 255, .22);
}

/* picture — обёртка вокруг img: без явных размеров она не растягивается,
   и снизу круга проступает тёмный фон контейнера */
.avatar picture,
.sbox-card-vis picture { display: block; width: 100%; height: 100%; }

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

.name {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 8vw, 58px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.tagline {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}

.bio {
  font-size: 14.5px;
  color: var(--muted);
  margin: 10px auto 0;
  line-height: 1.65;
  letter-spacing: -0.005em;
  max-width: 380px;
}

/* ============================================================
   Stats
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 28px 0 4px;
  border: var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

[data-theme="dark"] .stats {
  background: linear-gradient(145deg, #161616, #111111);
}

.stat { padding: 20px 10px; text-align: center; }
.stat + .stat { border-left: var(--hairline); }

/* Четыре цифры — сетка 2×2, чтобы не сжимались на мобильном */
.stats--4 { grid-template-columns: 1fr 1fr; }
.stats--4 .stat { border-left: none; }
.stats--4 .stat:nth-child(even) { border-left: var(--hairline); }
.stats--4 .stat:nth-child(n + 3) { border-top: var(--hairline); }

.stat-num {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
  letter-spacing: -0.005em;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  letter-spacing: -.005em;
  color: var(--muted);
  margin-top: 18px;
  margin-bottom: 0;
}

.kicker::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16A34A;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15); }
  50%       { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
}

.socials { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: var(--hairline);
  border-radius: 999px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: border-color .2s, transform .2s, background .2s;
  background: var(--surface);
}

.social-pill svg { width: 15px; height: 15px; }
.social-pill:hover { border-color: var(--ink); transform: translateY(-1px); }

/* ============================================================
   Sections
   ============================================================ */
.block { margin-bottom: 40px; }

.block-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

.block-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-2);
}

.block-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}

.block-sub {
  font-size: 14px;
  color: var(--muted);
  margin: -8px 0 16px;
  line-height: 1.55;
}

/* ============================================================
   Contact tiles (section 01)
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 0;
}

.contact-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px 16px 20px;
  border-radius: 18px;
  text-decoration: none;
  color: #fff;
  transition: transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}

.contact-tile:hover { transform: translateY(-3px); }

.contact-grid--sm { gap: 10px; }

.contact-grid--sm .contact-tile {
  flex-direction: row;
  justify-content: center;
  padding: 15px 18px;
  border-radius: 999px;
  gap: 10px;
  position: relative;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 4px 16px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.12);
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s, filter .22s;
}

.contact-grid--sm .contact-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 55%);
  pointer-events: none;
}

.contact-grid--sm .contact-tile:hover {
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.06);
}

.contact-grid--sm .contact-tile:active { transform: translateY(-1px) scale(.99); }

.contact-grid--sm .contact-tile-icon {
  width: 32px; height: 32px;
  background: rgba(255,255,255,.18);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 1px 2px rgba(255,255,255,.25);
}
.contact-grid--sm .contact-tile-icon svg { width: 16px; height: 16px; }
.contact-grid--sm .contact-tile-label {
  font-size: 13.5px;
  letter-spacing: -.005em;
}

/* В светлой теме залитые цветом пилюли выглядят тяжело:
   делаем их белыми, цвет остаётся только в кружке иконки */
[data-theme="light"] .contact-grid--sm .contact-tile {
  background: var(--surface) !important;
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  color: var(--ink);
}
[data-theme="light"] .contact-grid--sm .contact-tile::before { display: none; }
[data-theme="light"] .contact-grid--sm .contact-tile:hover {
  box-shadow: var(--card-shadow-hover);
  filter: none;
}
[data-theme="light"] .contact-grid--sm .contact-tile-icon {
  box-shadow: none;
  color: #fff;
}
[data-theme="light"] .contact-grid--sm .contact-tile--tg   .contact-tile-icon { background: linear-gradient(160deg, #40baf5, #2aabee); }
[data-theme="light"] .contact-grid--sm .contact-tile--call .contact-tile-icon { background: linear-gradient(160deg, #8b7cff, #6366f1); }
[data-theme="light"] .contact-grid--sm .contact-tile--wa   .contact-tile-icon { background: linear-gradient(160deg, #34c76a, #16a34a); }
[data-theme="light"] .contact-grid--sm .contact-tile--ig   .contact-tile-icon { background: linear-gradient(160deg, #f9a03f, #e91e8c); }

.contact-grid--3col { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 480px) {
  .contact-grid--3col { grid-template-columns: 1fr 1fr; }
}

.contact-tile-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
}
.contact-tile-icon svg { width: 28px; height: 28px; }

.contact-tile-label {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.contact-tile--wa  {
  background: linear-gradient(135deg, #1aad4a, #128c38);
  box-shadow: 0 4px 20px rgba(18,140,56,.3);
}
.contact-tile--wa:hover  { box-shadow: 0 8px 32px rgba(18,140,56,.45); }

.contact-tile--tg  {
  background: linear-gradient(135deg, #2aabee, #1a8fc9);
  box-shadow: 0 4px 20px rgba(42,171,238,.3);
}
.contact-tile--tg:hover  { box-shadow: 0 8px 32px rgba(42,171,238,.45); }

.contact-tile--call {
  background: linear-gradient(135deg, #6366f1, #4338ca);
  box-shadow: 0 4px 20px rgba(99,102,241,.3);
}
.contact-tile--call:hover { box-shadow: 0 8px 32px rgba(99,102,241,.45); }

.contact-tile--ig {
  background: linear-gradient(135deg, #f97316, #e91e8c, #6366f1);
  box-shadow: 0 4px 20px rgba(233,30,140,.25);
}
.contact-tile--ig:hover { box-shadow: 0 8px 32px rgba(233,30,140,.4); }

/* ============================================================
   Project tiles (section 02)
   ============================================================ */
.proj-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.proj-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 16px 14px 14px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border: var(--hairline);
  transition: transform .18s, box-shadow .18s;
}

.proj-tile:hover { transform: translateY(-2px); }

[data-theme="light"] .proj-tile {
  box-shadow: var(--card-shadow);
  border-color: transparent;
}
[data-theme="light"] .proj-tile:hover { box-shadow: var(--card-shadow-hover); }
[data-theme="dark"] .proj-tile:hover { box-shadow: 0 6px 20px rgba(0,0,0,.3); }

.proj-emoji { font-size: 26px; line-height: 1; }

.proj-name {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.2;
}

.proj-desc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}

/* ============================================================
   Quick-nav tiles (4 app-style buttons under hero)
   ============================================================ */
.qn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 40px;
}

.qn-grid--3 { grid-template-columns: 1fr 1fr 1fr; }

.qn-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 22px 10px;
  border-radius: 20px;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border: var(--hairline);
  transition: transform .18s, box-shadow .18s;
}

.qn-tile:hover { transform: translateY(-2px); }
[data-theme="dark"] .qn-tile:hover { box-shadow: 0 6px 20px rgba(0,0,0,.3); }

/* Отклик на нажатие — важно для тач-устройств */
.qn-tile:active,
.sbox-card:active,
.link:active,
.contact-tile:active {
  transform: scale(.975);
  opacity: .9;
}

.qn-tile,
.sbox-card,
.link,
.contact-tile,
.goto-site {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.qn-emoji { font-size: 30px; line-height: 1; }

.qn-name {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
}

/* ============================================================
   Agency lede text (section 04)
   ============================================================ */
.agency-lede {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin: -8px 0 16px;
}

.perk-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
}

.perk-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.4;
}

.perk-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #6366f1;
  font-weight: 700;
}

/* ============================================================
   Карточки «Что получите» — иконка + заголовок + пояснение
   ============================================================ */
.perk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

.perk-card {
  padding: 18px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow, none);
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s;
}

.perk-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover, 0 10px 30px rgba(15,18,40,.08));
}

.perk-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: #fff;
}

.perk-ico svg { width: 21px; height: 21px; }

/* тень в цвет иконки — мягкое «свечение» как у иконок iOS */
.perk-ico--blue   { background: linear-gradient(160deg, #4f8cff, #2563eb); box-shadow: 0 6px 16px rgba(37, 99, 235, .28); }
.perk-ico--violet { background: linear-gradient(160deg, #8b7cff, #6366f1); box-shadow: 0 6px 16px rgba(99, 102, 241, .28); }
.perk-ico--green  { background: linear-gradient(160deg, #46d17f, #16a34a); box-shadow: 0 6px 16px rgba(22, 163, 74, .26); }
.perk-ico--amber  { background: linear-gradient(160deg, #ffc046, #f59e0b); box-shadow: 0 6px 16px rgba(245, 158, 11, .28); }

.perk-title {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-bottom: 5px;
}

.perk-text {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
}

/* Гарантия «не понравится — не платите» */
.guarantee {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 20px;
  margin: 0 0 18px;
  background: linear-gradient(160deg, rgba(34, 197, 94, .12), rgba(34, 197, 94, .04));
  border: 1px solid rgba(34, 197, 94, .25);
}

.guarantee-ico {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #34c76a, #16a34a);
  color: #fff;
}

.guarantee-ico svg { width: 20px; height: 20px; }

.guarantee-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.guarantee-text {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* ============================================================
   Выделенный блок с ключевой цифрой
   ============================================================ */
.highlight {
  padding: 18px 20px;
  border-radius: 18px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(99, 102, 241, 0.28);
}

.highlight--green {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(52, 211, 153, 0.07));
  border-color: rgba(16, 185, 129, 0.28);
}

.highlight-num {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 5px;
  background: linear-gradient(135deg, #a5b4fc, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.highlight--green .highlight-num {
  background: linear-gradient(135deg, #34d399, #10b981);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .highlight-num {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .highlight--green .highlight-num {
  background: linear-gradient(135deg, #059669, #10b981);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.highlight-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 420px) {
  .highlight-num { font-size: 22px; }
}

/* ============================================================
   Кнопка «Перейти на сайт»
   ============================================================ */
.goto-site {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
  padding: 17px 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.01em;
  text-decoration: none;
  box-shadow: 0 6px 22px rgba(99,102,241,.35), inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s, filter .2s;
}

.goto-site:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(99,102,241,.5), inset 0 1px 0 rgba(255,255,255,.18);
  filter: brightness(1.05);
}

.goto-site:active { transform: translateY(0) scale(.99); }

.goto-site .goto-arrow {
  font-size: 18px;
  transition: transform .2s;
}
.goto-site:hover .goto-arrow { transform: translateX(4px); }

/* ============================================================
   Known-by wall — большая стена названий проектов
   ============================================================ */
.known-wall {
  margin: 28px 0 36px;
  padding: 0;
  text-align: center;
}

.known-wall-caption {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: -.005em;
  margin-bottom: 18px;
  line-height: 1.5;
}

.known-wall-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 22px;
}

.known-wall-grid span {
  font-weight: 800;
  font-size: clamp(15px, 4vw, 20px);
  letter-spacing: -.02em;
  color: var(--muted-2);
  transition: color .2s;
  cursor: default;
}

.known-wall-grid span:hover { color: var(--ink); }

/* ============================================================
   Known-by list (section 04)
   ============================================================ */
.known-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -.01em;
}

.known-list a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.known-list a:hover { border-bottom-color: currentColor; }

.known-dot {
  color: var(--muted-2);
  font-weight: 300;
}

/* ============================================================
   Feature cards (visual cards in Free section)
   ============================================================ */
/* ============================================================
   Плашка Telegram-канала под hero
   ============================================================ */
.tg-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 22px;
  padding: 13px 16px;
  border-radius: 16px;
  text-align: left;
  background: linear-gradient(135deg, rgba(42, 171, 238, .16), rgba(26, 143, 201, .08));
  border: 1px solid rgba(42, 171, 238, .3);
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}

.tg-strip:hover {
  transform: translateY(-2px);
  border-color: rgba(42, 171, 238, .55);
  box-shadow: 0 10px 28px rgba(42, 171, 238, .22);
}

.tg-strip:active { transform: scale(.985); }

.tg-strip-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, #2aabee, #1a8fc9);
  color: #fff;
  box-shadow: 0 3px 10px rgba(42, 171, 238, .35);
}
.tg-strip-icon svg { width: 20px; height: 20px; }

.tg-strip-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tg-strip-title {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--ink);
}

.tg-strip-sub {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.35;
}

.tg-strip-arrow {
  flex-shrink: 0;
  font-size: 16px;
  color: #2aabee;
  opacity: .7;
  transition: transform .2s, opacity .2s;
  font-family: ui-monospace, 'SF Mono', monospace;
}

.tg-strip:hover .tg-strip-arrow { transform: translateX(3px); opacity: 1; }

/* ============================================================
   Вступление к блоку проектов — акцентный заголовок со свечением
   ============================================================ */
.projects-intro {
  position: relative;
  text-align: center;
  padding: 26px 8px 30px;
  margin-bottom: 4px;
}

.projects-glow {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 300px;
  height: 200px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,.32), transparent 70%);
  filter: blur(36px);
  pointer-events: none;
  animation: projects-pulse 6s ease-in-out infinite;
  will-change: opacity;
}

@keyframes projects-pulse {
  0%, 100% { opacity: .45; }
  50%      { opacity: .8; }
}

.projects-intro > *:not(.projects-glow) { position: relative; z-index: 1; }

.projects-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--surface);
  border: var(--hairline);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 16px;
}

.projects-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, .18);
  animation: pulse 2s ease-in-out infinite;
}

.projects-title {
  font-size: clamp(28px, 7vw, 38px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.08;
  margin-bottom: 12px;
}

.projects-lede {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 400px;
  margin: 0 auto;
}

.feat-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.feat-card {
  border-radius: 18px;
  padding: 16px 18px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform .22s ease, box-shadow .22s ease;
}

.feat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(0,0,0,.28);
}

.feat-card--dark {
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  color: #f1f5f9;
}

.feat-card--green {
  background: linear-gradient(145deg, #064e3b 0%, #065f46 65%, #059669 100%);
  color: #d1fae5;
}

.feat-card--purple {
  background: linear-gradient(145deg, #2e1065 0%, #4c1d95 65%, #6d28d9 100%);
  color: #ede9fe;
}

.feat-card--gold {
  background: linear-gradient(145deg, #451a03 0%, #78350f 65%, #b45309 100%);
  color: #fef3c7;
}

.feat-card--red {
  background: linear-gradient(145deg, #450a0a 0%, #7f1d1d 65%, #b91c1c 100%);
  color: #fee2e2;
}

.feat-card--sky {
  background: linear-gradient(145deg, #0c2a4a 0%, #164e7e 65%, #1a8fc9 100%);
  color: #dbeafe;
}

.feat-card--charity {
  background: linear-gradient(145deg, #0f2f22 0%, #14532d 60%, #15803d 100%);
  color: #dcfce7;
}

.feat-icon-wrap {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}

.feat-emoji { font-size: 26px; line-height: 1; }

.feat-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.feat-top-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feat-free {
  display: inline-flex;
  align-items: center;
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.85);
  flex-shrink: 0;
}

.feat-name {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feat-sub {
  font-size: 12.5px;
  line-height: 1.4;
  opacity: .75;
  color: inherit;
}

.feat-arrow {
  flex-shrink: 0;
  font-size: 18px;
  opacity: .45;
  color: #fff;
  transition: opacity .2s, transform .2s;
  font-family: ui-monospace, 'SF Mono', monospace;
}

.feat-card:hover .feat-arrow { opacity: .9; transform: translateX(3px); }

@media (max-width: 380px) {
  .feat-icon-wrap { width: 46px; height: 46px; border-radius: 13px; }
  .feat-emoji { font-size: 22px; }
  .feat-name { font-size: 15px; }
}

/* ============================================================
   Link cards
   ============================================================ */
.link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--surface);
  border: var(--hairline);
  border-radius: var(--radius);
  color: var(--ink);
  margin-bottom: 8px;
  transition: border-color .2s ease, transform .2s ease;
}

.link:hover { border-color: var(--ink); transform: translateY(-1px); }

.link-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: var(--hairline);
  border-radius: 11px;
  color: var(--ink);
}

.link-icon svg { width: 18px; height: 18px; }
.link-text { flex: 1; min-width: 0; }

.link-title {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  font-family: ui-monospace, 'SF Mono', ui-monospace, 'SF Mono', monospace;
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--bg);
  border: var(--hairline);
  color: var(--muted);
}

.link-sub { font-size: 13.5px; color: var(--muted); letter-spacing: -0.005em; }

.link-arrow {
  color: var(--muted-2);
  font-family: ui-monospace, 'SF Mono', ui-monospace, 'SF Mono', monospace;
  font-size: 16px;
  transition: transform .2s ease, color .2s ease;
}

.link:hover .link-arrow { color: var(--ink); transform: translateX(4px); }

/* primary variant */
.link-primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.link-primary .link-icon {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
  color: var(--bg);
}

.link-primary .link-sub  { color: rgba(252,252,251,.6); }
.link-primary .link-arrow { color: rgba(252,252,251,.55); }
.link-primary:hover .link-arrow { color: var(--bg); }

[data-theme="dark"] .link-primary .link-icon {
  background: rgba(10,10,10,.06);
  border-color: rgba(10,10,10,.14);
  color: #0A0A0A;
}

[data-theme="dark"] .link-primary .link-sub  { color: rgba(10,10,10,.6); }
[data-theme="dark"] .link-primary .link-arrow { color: rgba(10,10,10,.5); }
[data-theme="dark"] .link-primary:hover .link-arrow { color: #0A0A0A; }

/* ============================================================
   Skillbox-style course cards (section 03)
   ============================================================ */
.sbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sbox-grid--1 { grid-template-columns: 1fr; }

.sbox-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s;
}

.sbox-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,.13);
}

.sbox-card-vis {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.sbox-card-vis--z {
  background: linear-gradient(135deg, #050e0a 0%, #062a1a 70%, #0a3d25 100%);
}

.sbox-card-vis--consult {
  background: linear-gradient(135deg, #0c0a1e 0%, #1a1040 70%, #2a1a60 100%);
}

.sbox-z {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  font-weight: 900;
  font-size: 72px;
  line-height: 1;
  letter-spacing: -.06em;
  background: linear-gradient(160deg, #34d9a8, #15b083);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(52,217,168,.4));
}

.sbox-icon { font-size: 48px; line-height: 1; }

.sbox-card-vis--agency {
  background: linear-gradient(135deg, #0a0a12 0%, #141428 70%, #1e1e3c 100%);
}

/* Декор: сетка и точки поверх градиента */
.vis-grid,
.vis-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.vis-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 78%);
}

.vis-dots {
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1.1px, transparent 1.1px);
  background-size: 15px 15px;
  mask-image: radial-gradient(ellipse at 30% 50%, transparent 34%, #000 76%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, transparent 34%, #000 76%);
}

/* Портрет в карточке консультации */
.vis-portrait {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  position: relative;
  z-index: 1;
  border: 2px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 40px rgba(99, 102, 241, 0.3);
}

/* Логотип СМТ — круг с точкой */
.smt-logo {
  position: relative;
  z-index: 1;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 3px solid rgba(245, 245, 247, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 42px rgba(139, 122, 255, 0.4);
}
.smt-logo span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f5f5f7;
}

/* Бейдж в углу визуала */
.vis-badge {
  position: absolute;
  bottom: 11px;
  right: 11px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -.005em;
}

.vis-badge--green {
  background: rgba(52, 217, 168, 0.16);
  border-color: rgba(52, 217, 168, 0.32);
  color: #6ee7bd;
}

.sbox-card-body { padding: 14px 16px 16px; }

.sbox-card-type {
  display: block;
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #999;
  font-weight: 500;
  margin-bottom: 5px;
}

.sbox-card-title {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.25;
  margin-bottom: 12px;
  color: #111;
}

[data-theme="dark"] .sbox-card {
  background: #161616;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
}
[data-theme="dark"] .sbox-card-title { color: #f5f5f4; }
[data-theme="dark"] .sbox-card-type { color: #5c5c58; }
[data-theme="dark"] .sbox-card-foot { border-top-color: #1f1f1d; }

.sbox-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid #f0efeb;
}

.sbox-dur {
  font-size: 12px;
  color: #888;
}

.sbox-price {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #111;
}

[data-theme="dark"] .sbox-price { color: #f5f5f4; }

.sbox-price--indigo { color: #6366f1 !important; }

@media (max-width: 400px) {
  .sbox-grid { grid-template-columns: 1fr; }
  .sbox-card-vis { height: 110px; }
  .sbox-z { font-size: 58px; }
}

/* ============================================================
   Work cards (section 02)
   ============================================================ */
.work-card {
  display: block;
  border-radius: 20px;
  padding: 24px 24px 20px;
  margin-bottom: 10px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}

.work-card:hover { transform: translateY(-3px); }

/* Z-Маркетолог — mint dark */
.work-card--z {
  background: linear-gradient(145deg, #050e0a 0%, #062a1a 60%, #084a2a 100%);
  border: 1px solid rgba(52,217,168,.2);
  color: #d1fae5;
}

.work-card--z:hover {
  box-shadow: 0 20px 50px rgba(5,150,105,.25), 0 0 0 1px rgba(52,217,168,.35);
}

/* Консультация — indigo purple */
.work-card--consult {
  background: linear-gradient(145deg, #0c0a1e 0%, #1a1040 60%, #221550 100%);
  border: 1px solid rgba(139,92,246,.2);
  color: #ede9fe;
}

.work-card--consult:hover {
  box-shadow: 0 20px 50px rgba(99,102,241,.22), 0 0 0 1px rgba(139,92,246,.35);
}

.work-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.work-badge {
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.work-badge--mint {
  background: rgba(52,217,168,.18);
  color: #34d9a8;
  border: 1px solid rgba(52,217,168,.3);
}

.work-badge--purple {
  background: rgba(139,92,246,.18);
  color: #a78bfa;
  border: 1px solid rgba(139,92,246,.3);
}

.work-price {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  font-size: 15px;
  font-weight: 700;
  opacity: .55;
  letter-spacing: -.01em;
}

/* Big Z logo */
.work-z-logo {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  font-weight: 900;
  font-size: 72px;
  line-height: .85;
  letter-spacing: -.06em;
  background: linear-gradient(160deg, #34d9a8 0%, #15b083 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 40px rgba(52,217,168,.35));
}

/* Consult icon */
.work-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(139,92,246,.15);
  border: 1px solid rgba(139,92,246,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: #a78bfa;
}

.work-icon svg { width: 22px; height: 22px; }

.work-title {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.025em;
  color: #fff;
  margin-bottom: 6px;
}

.work-sub {
  font-size: 13.5px;
  line-height: 1.5;
  opacity: .65;
  color: inherit;
  margin-bottom: 16px;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.work-tags span {
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.7);
  letter-spacing: -.005em;
}

.work-cta {
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  opacity: .55;
  transition: opacity .2s;
}

.work-card:hover .work-cta { opacity: 1; }

@media (max-width: 480px) {
  .work-z-logo { font-size: 58px; }
  .work-title { font-size: 19px; }
  .work-card { padding: 20px 18px 16px; }
}

/* ============================================================
   Chips
   ============================================================ */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--surface);
  border: var(--hairline);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.chip em {
  font-family: ui-monospace, 'SF Mono', ui-monospace, 'SF Mono', monospace;
  font-style: normal;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-left: 2px;
}

.chip-active { border-color: var(--ink); }
.chip-active em { color: var(--ink); font-weight: 600; }

.chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
  flex-shrink: 0;
}

/* ============================================================
   Footer
   ============================================================ */
.hub-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: var(--hairline);
  font-family: ui-monospace, 'SF Mono', ui-monospace, 'SF Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   Нижний навбар — плавающий док, iOS-style иконки
   ============================================================ */
body { padding-bottom: 108px; }

.bottom-nav {
  position: fixed;
  bottom: 18px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 4px;
  width: max-content;
  max-width: calc(100vw - 24px);
  margin: 0 auto;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  border-radius: 24px;
  background: rgba(28, 28, 30, 0.72);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .bottom-nav {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 16px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item:hover { color: var(--ink); }
.bottom-nav-item:active { transform: scale(0.94); }

/* ── Активный раздел: подсветка + бегающая подложка ── */
.bottom-nav { position: fixed; }
.bottom-nav-item { position: relative; z-index: 1; }
.bottom-nav-item.is-active { color: #fff; }
[data-theme="light"] .bottom-nav-item.is-active { color: var(--ink); }
.bottom-nav-item.is-active .bottom-nav-icon { transform: translateY(-2px) scale(1.06); }

.bottom-nav-pill {
  position: absolute;
  top: 10px;
  left: 0;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: transform .34s cubic-bezier(.3,.9,.3,1), width .34s cubic-bezier(.3,.9,.3,1), opacity .2s;
}
[data-theme="light"] .bottom-nav-pill { background: rgba(14, 14, 20, 0.07); }

.bottom-nav-icon--ink {
  background: linear-gradient(145deg, #4b4b52, #2a2a30);
}
[data-theme="light"] .bottom-nav-icon--ink {
  background: linear-gradient(145deg, #3a3a42, #1c1c22);
}

/* Пункт «Наверх» компактнее — он вспомогательный */
.bottom-nav-item--top .bottom-nav-icon { width: 36px; height: 36px; }
.bottom-nav-item--top .bottom-nav-icon svg { width: 17px; height: 17px; }


@media (max-width: 400px) {
  .bottom-nav { gap: 2px; padding-left: 8px; padding-right: 8px; }
  .bottom-nav-item { padding: 6px 9px; font-size: 9.5px; gap: 5px; }
  .bottom-nav-icon { width: 36px; height: 36px; }
  .bottom-nav-icon svg { width: 18px; height: 18px; }
  .bottom-nav-item--top .bottom-nav-icon { width: 32px; height: 32px; }
}

/* ── Панель «дышит» при появлении, чтобы её заметили ── */
.bottom-nav {
  animation: navRise .5s cubic-bezier(.2,.9,.3,1) both;
}
@keyframes navRise {
  from { opacity: 0; transform: translateY(26px) scale(.94); }
  to   { opacity: 1; transform: none; }
}

/* Иконки подпрыгивают по очереди — видно, что это кнопки */
.bottom-nav.is-hint .bottom-nav-item:nth-child(1) .bottom-nav-icon { animation: navBounce .62s ease .00s 1; }
.bottom-nav.is-hint .bottom-nav-item:nth-child(2) .bottom-nav-icon { animation: navBounce .62s ease .09s 1; }
.bottom-nav.is-hint .bottom-nav-item:nth-child(3) .bottom-nav-icon { animation: navBounce .62s ease .18s 1; }
.bottom-nav.is-hint .bottom-nav-item:nth-child(4) .bottom-nav-icon { animation: navBounce .62s ease .27s 1; }
@keyframes navBounce {
  0%   { transform: translateY(0) scale(1); }
  35%  { transform: translateY(-9px) scale(1.1); }
  62%  { transform: translateY(2px) scale(.97); }
  100% { transform: translateY(0) scale(1); }
}

/* Нажатие: иконка мягко проваливается */
.bottom-nav-item:active .bottom-nav-icon { transform: scale(.88); }

/* Подсказка над панелью — показывается один раз */
.nav-hint {
  position: fixed;
  left: 50%;
  bottom: calc(104px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(10px);
  z-index: 49;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(28, 28, 30, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 12.5px;
  font-weight: 560;
  letter-spacing: -0.01em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s, transform .35s cubic-bezier(.2,.9,.3,1);
}
[data-theme="light"] .nav-hint {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(16, 16, 32, 0.14);
}
.nav-hint.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
.nav-hint-arrow {
  font-size: 13px;
  animation: hintArrow 1.1s ease-in-out infinite;
}
@keyframes hintArrow {
  0%, 100% { transform: translateY(0); opacity: .75; }
  50%      { transform: translateY(3px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .bottom-nav-pill { transition: none; }
  .bottom-nav { animation: none; }
  .bottom-nav.is-hint .bottom-nav-icon { animation: none; }
  .nav-hint-arrow { animation: none; }
}

.bottom-nav-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.2s cubic-bezier(.2,.8,.2,1);
}

.bottom-nav-icon svg { width: 20px; height: 20px; }

.bottom-nav-item:hover .bottom-nav-icon { transform: translateY(-2px) scale(1.05); }

.bottom-nav-icon--indigo { background: linear-gradient(150deg, #818cf8, #6366f1 55%, #4f46e5); }
.bottom-nav-icon--orange { background: linear-gradient(150deg, #fb923c, #f97316 55%, #ea580c); }
.bottom-nav-icon--green  { background: linear-gradient(150deg, #34d399, #10b981 55%, #059669); }

@media (max-width: 480px) {
  .bottom-nav { gap: 0; padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px)); border-radius: 22px; }
  .bottom-nav-item { padding: 4px 9px; font-size: 9.5px; }
  .bottom-nav-icon { width: 36px; height: 36px; border-radius: 11px; }
  .bottom-nav-icon svg { width: 18px; height: 18px; }
}

/* ============================================================
   Mobile
   ============================================================ */
@media (max-width: 480px) {
  .hub { padding: 28px 18px 56px; }
  .hero { padding-bottom: 32px; margin-bottom: 36px; }
  .name { font-size: clamp(34px, 10vw, 48px); }
  .avatar { width: 88px; height: 88px; }
  .avatar-wrap { padding: 2.5px; }
  .link { padding: 14px 16px; }
  .link-icon { width: 36px; height: 36px; }
  .block { margin-bottom: 40px; }
  .stats { margin: 22px 0 4px; }
  .stat { padding: 16px 8px; }
  .stat-num { font-size: 19px; }
  .stat-label { font-size: 10px; }
  .feat-name { font-size: 15px; }
  .feat-sub { font-size: 11.5px; }
  .topbar { margin-bottom: 32px; }
}

@media (max-width: 400px) {
  .proj-grid { grid-template-columns: 1fr 1fr; }
  .contact-tile { padding: 18px 12px 16px; }
  .contact-tile-icon { width: 36px; height: 36px; }
  .contact-tile-icon svg { width: 22px; height: 22px; }
  .contact-tile-label { font-size: 13px; }
}

@media (max-width: 360px) {
  .feat-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Light-mode premium extras
   ============================================================ */

/* Warm gradient background */
[data-theme="light"] body {
  background: linear-gradient(160deg, #F7F6F2 0%, #F2F0EC 50%, #EEF0F5 100%);
  background-attachment: fixed;
}

/* Soft ambient glow behind hero in light */
[data-theme="light"] .hero::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 480px; height: 360px;
  background: radial-gradient(ellipse, rgba(99,102,241,.07) 0%, rgba(236,72,153,.04) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Name gradient in light mode */
[data-theme="light"] .name {
  background: linear-gradient(135deg, #111110 0%, #3730a3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Stats — elevated card in light */
[data-theme="light"] .stats {
  background: #fff;
  box-shadow: var(--card-shadow);
  border: none;
}

[data-theme="light"] .stat-num {
  background: linear-gradient(135deg, #111110 0%, #4338ca 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .stat + .stat {
  border-left: 1px solid #f0efeb;
}

/* Kicker green dot — more vivid in light */
[data-theme="light"] .kicker::before {
  box-shadow: 0 0 0 3px rgba(22,163,74,.12);
}

/* Social pills in light */
[data-theme="light"] .social-pill {
  background: #fff;
  box-shadow: var(--card-shadow);
  border-color: transparent;
}
[data-theme="light"] .social-pill:hover {
  border-color: var(--ink);
  box-shadow: var(--card-shadow-hover);
}

/* Section header */
[data-theme="light"] .block-header {
  border-bottom-color: #e8e6e2;
}

/* Link cards in light — white with shadow */
[data-theme="light"] .link {
  background: #fff;
  border-color: transparent;
  box-shadow: var(--card-shadow);
}
[data-theme="light"] .link:hover {
  border-color: transparent;
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}
[data-theme="light"] .link-icon {
  background: #f7f6f3;
  border-color: #eeece8;
}
[data-theme="light"] .badge {
  background: #f4f3f0;
  border-color: #e2e0db;
}

/* Link-primary in light — vivid indigo instead of flat black */
[data-theme="light"] .link-primary {
  background: linear-gradient(135deg, #1e1b4b 0%, #3730a3 100%);
  border: none;
  box-shadow: 0 4px 20px rgba(55,48,163,.25);
  color: #fff;
}
[data-theme="light"] .link-primary:hover {
  box-shadow: 0 8px 32px rgba(55,48,163,.35);
  transform: translateY(-2px);
}
[data-theme="light"] .link-primary .link-icon {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.2);
  color: #fff;
}
[data-theme="light"] .link-primary .link-sub { color: rgba(255,255,255,.65); }
[data-theme="light"] .link-primary .link-arrow { color: rgba(255,255,255,.5); }
[data-theme="light"] .link-primary:hover .link-arrow { color: #fff; }

/* Chips in light */
[data-theme="light"] .chip {
  background: #fff;
  border-color: transparent;
  box-shadow: var(--card-shadow);
}
[data-theme="light"] .chip-active {
  background: #111110;
  color: #fff;
  border-color: transparent;
}
[data-theme="light"] .chip-active .chip-dot { background: #fff; }
[data-theme="light"] .chip-active em { color: rgba(255,255,255,.65); }

/* Lang switcher in light */
[data-theme="light"] .lang-switcher {
  background: #fff;
  box-shadow: var(--card-shadow);
  border-color: transparent;
}
[data-theme="light"] .theme-toggle {
  background: #fff;
  box-shadow: var(--card-shadow);
  border-color: transparent;
}

/* ============================================================
   Dark-mode extras: gradient stats + link glow
   ============================================================ */
[data-theme="dark"] .stat-num {
  background: linear-gradient(135deg, #e2e8f0 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="dark"] .link:hover {
  box-shadow: 0 4px 24px rgba(99,102,241,.14);
}

[data-theme="dark"] .link-primary:hover {
  box-shadow: 0 6px 28px rgba(245,245,244,.12);
}

[data-theme="dark"] .feat-card--dark:hover {
  box-shadow: 0 20px 50px rgba(30,41,59,.7), 0 0 0 1px rgba(99,102,241,.3);
}

[data-theme="dark"] .feat-card--green:hover {
  box-shadow: 0 20px 50px rgba(6,78,59,.7), 0 0 0 1px rgba(5,150,105,.4);
}

/* Feat + work cards — light mode shadow boost */
[data-theme="light"] .feat-card {
  box-shadow: 0 4px 20px rgba(0,0,0,.14);
}
[data-theme="light"] .feat-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,.22);
}
[data-theme="light"] .work-card--z {
  box-shadow: 0 4px 24px rgba(5,150,105,.2);
}
[data-theme="light"] .work-card--z:hover {
  box-shadow: 0 14px 44px rgba(5,150,105,.3), 0 0 0 1px rgba(52,217,168,.3);
}
[data-theme="light"] .work-card--consult {
  box-shadow: 0 4px 24px rgba(99,102,241,.18);
}
[data-theme="light"] .work-card--consult:hover {
  box-shadow: 0 14px 44px rgba(99,102,241,.28), 0 0 0 1px rgba(139,92,246,.3);
}

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s cubic-bezier(0.16, 1, 0.3, 1), transform .6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in { opacity: 1; transform: none; }

/* Слабые устройства / Instagram WebView — экономим батарею и CPU на анимациях */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* Десктоп: аватар крупнее — на большом экране 110px выглядит потерянно */
@media (min-width: 700px) {
  .avatar { width: 148px; height: 148px; }
  .avatar-wrap { padding: 4px; margin-bottom: 28px; }
}

/* ============================================================
   Появление шапки — мягкий вход при загрузке
   ============================================================ */
@keyframes hero-in {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.avatar-wrap { animation: hero-in .7s cubic-bezier(.2,.8,.2,1) both; }
.hero .name    { animation: fade-up .6s cubic-bezier(.2,.8,.2,1) .08s both; }
.hero .tagline { animation: fade-up .6s cubic-bezier(.2,.8,.2,1) .14s both; }
.hero .bio     { animation: fade-up .6s cubic-bezier(.2,.8,.2,1) .2s both; }
.hero .stats   { animation: fade-up .6s cubic-bezier(.2,.8,.2,1) .26s both; }
.hero .kicker  { animation: fade-up .6s cubic-bezier(.2,.8,.2,1) .32s both; }
.hero .tg-strip{ animation: fade-up .6s cubic-bezier(.2,.8,.2,1) .38s both; }

/* Цифры в шапке — лёгкий акцент, пока считаются */
.stat-num { font-variant-numeric: tabular-nums; }

/* Карточки проектов: блик, пробегающий при наведении */
.feat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.13) 48%, transparent 62%);
  transform: translateX(-100%);
  transition: transform .65s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}
.feat-card:hover::after { transform: translateX(100%); }

@media (prefers-reduced-motion: reduce) {
  .avatar-wrap, .hero .name, .hero .tagline, .hero .bio,
  .hero .stats, .hero .kicker, .hero .tg-strip { animation: none !important; }
  .feat-card::after { display: none; }
}

/* ============================================================
   Светлая тема — мягкий цветной фон и объём
   ============================================================ */
[data-theme="light"] body {
  background:
    radial-gradient(1000px 620px at 50% -160px, rgba(99, 102, 241, .10), transparent 62%),
    radial-gradient(760px 520px at 88% 12%, rgba(236, 72, 153, .055), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

/* Блок статистики — чуть светлее фона, с мягкой тенью */
[data-theme="light"] .stats {
  border-color: rgba(16, 16, 32, .07);
  box-shadow: 0 1px 3px rgba(16, 16, 32, .04), 0 10px 30px rgba(16, 16, 32, .06);
}

/* Плитки быстрого перехода */
[data-theme="light"] .qn-tile {
  border-color: rgba(16, 16, 32, .07);
  box-shadow: 0 1px 2px rgba(16, 16, 32, .04), 0 6px 18px rgba(16, 16, 32, .05);
}
[data-theme="light"] .qn-tile:hover {
  box-shadow: 0 4px 12px rgba(16, 16, 32, .07), 0 14px 34px rgba(99, 102, 241, .14);
  border-color: rgba(99, 102, 241, .25);
}

/* Карточки услуг и шаги */
[data-theme="light"] .sbox-card,
[data-theme="light"] .step,
[data-theme="light"] .price-card,
[data-theme="light"] .meta-chip,
[data-theme="light"] .back-link {
  border-color: rgba(16, 16, 32, .07);
}
[data-theme="light"] .sbox-card {
  box-shadow: 0 1px 3px rgba(16, 16, 32, .04), 0 8px 24px rgba(16, 16, 32, .06);
}
[data-theme="light"] .sbox-card:hover {
  box-shadow: 0 4px 14px rgba(16, 16, 32, .08), 0 18px 44px rgba(16, 16, 32, .1);
}

/* Плашка Telegram — чуть насыщеннее на светлом */
[data-theme="light"] .tg-strip {
  background: linear-gradient(135deg, rgba(42, 171, 238, .12), rgba(26, 143, 201, .05));
  border-color: rgba(42, 171, 238, .28);
  box-shadow: 0 2px 8px rgba(42, 171, 238, .08);
}

/* Нижний док */
[data-theme="light"] .bottom-nav {
  box-shadow: 0 8px 32px rgba(16, 16, 32, .12), inset 0 1px 0 rgba(255, 255, 255, .7);
}

/* Выделенные блоки с цифрами */
[data-theme="light"] .highlight {
  background: linear-gradient(135deg, rgba(99, 102, 241, .09), rgba(139, 92, 246, .045));
  border-color: rgba(99, 102, 241, .22);
}
[data-theme="light"] .highlight--green {
  background: linear-gradient(135deg, rgba(16, 185, 129, .1), rgba(52, 211, 153, .05));
  border-color: rgba(16, 185, 129, .24);
}

/* Пилюля над блоком проектов */
[data-theme="light"] .projects-pill {
  border-color: rgba(16, 16, 32, .08);
  box-shadow: 0 1px 3px rgba(16, 16, 32, .05);
}

/* Стена проектов — читабельнее на светлом */
[data-theme="light"] .known-wall-grid span { color: #8C8C99; }
[data-theme="light"] .known-wall-grid span:hover { color: var(--ink); }

/* ============================================================
   Плавающая кнопка WhatsApp — связь доступна с любой точки страницы
   ============================================================ */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  z-index: 45;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, #25d366, #128c38);
  color: #fff;
  box-shadow: 0 6px 20px rgba(18, 140, 56, .38), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s, opacity .3s;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  transform: scale(.7);
  pointer-events: none;
}

.wa-float.show { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 10px 28px rgba(18, 140, 56, .5); }
.wa-float:active { transform: scale(.94); }
.wa-float svg { width: 25px; height: 25px; }

/* Мягкая пульсация, чтобы кнопка не терялась */
.wa-float.show::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, .5);
  animation: wa-pulse 2.6s ease-out infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(.9); opacity: .7; }
  70%  { transform: scale(1.25); opacity: 0; }
  100% { opacity: 0; }
}

@media (min-width: 640px) {
  .wa-float { bottom: calc(112px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float.show::before { animation: none; }
}

/* ============================================================
   Карточка-островок над кнопкой раздела
   ============================================================ */
.isle {
  position: relative;
  margin-bottom: 10px;
}

.isle-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 20px;
  background: var(--surface);
  border: var(--hairline);
  box-shadow: var(--card-shadow, 0 6px 20px rgba(16, 16, 32, .06));
  text-decoration: none;
  color: inherit;
  transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s;
}
.isle-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover, 0 16px 40px rgba(16, 16, 32, .12));
}
.isle-card:active { transform: scale(.99); }

/* квадратная «иконка» продукта слева */
.isle-vis {
  position: relative;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.isle-vis picture { display: block; width: 100%; height: 100%; }
.isle-vis img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.isle-vis--consult { box-shadow: 0 8px 18px -10px rgba(99, 102, 241, .85); }
.isle-vis--agency {
  background: linear-gradient(150deg, #1b1b3a 0%, #2a1a60 100%);
  box-shadow: 0 8px 18px -10px rgba(99, 102, 241, .9);
}
.isle-vis--course {
  background: linear-gradient(150deg, #06281a 0%, #0a3d25 100%);
  box-shadow: 0 8px 18px -10px rgba(22, 163, 74, .9);
}

.isle-logo {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2.5px solid rgba(245, 245, 247, .95);
  display: flex;
  align-items: center;
  justify-content: center;
}
.isle-logo span { width: 8px; height: 8px; border-radius: 50%; background: #f5f5f7; }

.isle-p {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: 1;
  background: linear-gradient(160deg, #34d9a8, #15b083);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* текстовая часть */
.isle-body { flex: 1; min-width: 0; display: block; }
.isle-type {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 3px;
}
.isle-title {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--ink);
  line-height: 1.25;
}
.isle-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.isle-meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); flex-shrink: 0; }

/* цена справа */
.isle-price {
  flex: 0 0 auto;
  align-self: center;
  font-size: 12.5px;
  font-weight: 700;
  color: #6366f1;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(99, 102, 241, .1);
  border: 1px solid rgba(99, 102, 241, .18);
  white-space: nowrap;
}
.isle--course .isle-price {
  color: #16a34a;
  background: rgba(22, 163, 74, .1);
  border-color: rgba(22, 163, 74, .2);
}

@media (max-width: 420px) {
  .isle-card { gap: 12px; padding: 12px 13px; }
  .isle-vis { width: 48px; height: 48px; border-radius: 14px; }
  .isle-title { font-size: 14.5px; }
  .isle-meta { font-size: 11px; gap: 5px; }
  .isle-price { font-size: 11.5px; padding: 6px 10px; }
}

/* на совсем узких экранах цена уходит под текст */
@media (max-width: 360px) {
  .isle-card { flex-wrap: wrap; }
  .isle-price { margin-left: 70px; }
}

/* Мета держим одной строкой: перенос ломал ритм карточки */
.isle-meta {
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.isle-meta > span { overflow: hidden; text-overflow: ellipsis; }
.isle-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 430px) {
  /* второй пункт меты не влезает рядом с ценой — скрываем его */
  .isle-meta i,
  .isle-meta > span:last-child { display: none; }
}

/* Кнопки языка были 38×21 — палец в такую не попадает.
   Держим тот же вид, но добавляем невидимую область нажатия до 44px. */
.lang-btn {
  position: relative;
  min-height: 28px;
}
.lang-btn::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 44px;
}
