/* Apple HIG + Telegram style — светлая тема, фирменный #ffd119 */
/* Mobile-first: variables scale up from small viewport */
:root {
  --brand: #ffd119;
  --brand-hover: #e6bc0f;
  --brand-soft: rgba(255, 209, 25, 0.15);
  --accent: #24A1DE;
  --accent-hover: #1d8bc4;
  --accent-soft: rgba(36, 161, 222, 0.12);
  --bg: #ffffff;
  --bg-secondary: #f8f8f7;
  --bg-tertiary: #ebebed;
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --border: rgba(0, 0, 0, 0.06);
  --border-strong: rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.06);
  --shadow-brand: 0 4px 20px rgba(255, 209, 25, 0.3);
  --radius: clamp(12px, 4vw, 20px);
  --radius-lg: clamp(16px, 5vw, 24px);
  --header-height: 56px;
  --sidebar-width: 240px;
  --space: clamp(1rem, 4vw, 1.5rem);
  --space-lg: clamp(1.5rem, 5vw, 2.5rem);
  --space-xl: clamp(2rem, 8vw, 4rem);
}

@media (min-width: 1024px) {
  :root { --header-height: 64px; }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  font-size: clamp(0.9375rem, 2vw, 1rem);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
  min-width: 0;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}
a {
  color: var(--brand-hover);
  text-decoration: none;
  transition: color 0.2s;
  touch-action: manipulation;
}
@media (hover: hover) {
  a:hover { color: var(--brand); }
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}
p, li, dd, summary {
  overflow-wrap: anywhere;
}
ul { list-style: none; }
.container { max-width: 80rem; margin: 0 auto; padding: 0 var(--space); width: 100%; }
.padding-container { padding-inline: var(--space); }

/* Скрытый заголовок для скринридеров и SEO */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Breadcrumbs (SEO + accessibility) — без отдельного фона, в тон страницы */
.breadcrumb {
  padding: 0.5rem var(--space) 0;
  max-width: 80rem;
  margin: 0 auto;
  font-size: 0.875rem;
  background: transparent;
  color: var(--text-secondary);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; list-style: none; margin: 0; padding: 0; }
.breadcrumb a { color: var(--text-secondary); }
@media (hover: hover) {
  .breadcrumb a:hover { color: var(--brand-hover); }
}
@media (min-width: 640px) { .padding-container { padding-inline: 1.5rem; } }
@media (min-width: 768px) { .padding-container { padding-inline: 3rem; } }
@media (min-width: 1024px) { .padding-container { padding-inline: 5rem; } }

/* Типографика: заголовки с уменьшенным letter-spacing */
h1, h2, h3, h4 {
  letter-spacing: -0.02em;
  font-weight: 600;
}

/* Кнопки: touch target min 44x44px, фирменный цвет #ffd119 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.875rem clamp(1rem, 4vw, 1.75rem);
  font-size: clamp(0.9375rem, 2vw, 1rem);
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  box-shadow: var(--shadow-brand);
  font-family: inherit;
  touch-action: manipulation;
}
.btn--primary {
  background: var(--brand);
  color: var(--text-primary);
}
.btn--secondary {
  background: var(--text-primary);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
@media (hover: hover) {
  .btn--primary:hover {
    background: var(--brand-hover);
    box-shadow: 0 6px 24px rgba(255, 209, 25, 0.35);
  }
  .btn--secondary:hover {
    background: #2c2c2e;
    box-shadow: var(--shadow-card);
  }
}

/* Левое меню в стиле Telegram Desktop */
.sidebar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  z-index: 100;
  flex-direction: column;
  align-items: center;
  padding: var(--space) 0;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border);
}
@media (min-width: 1025px) {
  .sidebar { display: flex; }
}
.sidebar__logo {
  flex-shrink: 0;
  margin-bottom: var(--space-lg);
  padding: 0 var(--space);
  display: block;
}
.sidebar__logo img { height: 32px; width: auto; }
.sidebar__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
  padding: 0 var(--space);
}
.sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
  width: 100%;
}
.sidebar__link {
  min-height: 44px;
  touch-action: manipulation;
}
@media (hover: hover) {
  .sidebar__link:hover { color: var(--text-primary); background: var(--bg-tertiary); }
}
.sidebar__link--active { color: var(--text-primary); background: var(--brand-soft); font-weight: 600; }
.sidebar__link--active .sidebar__icon { color: var(--brand); }
.sidebar__icon { display: flex; flex-shrink: 0; color: inherit; width: 24px; height: 24px; }
.sidebar__icon svg { width: 22px; height: 22px; stroke-width: 1.5; }
.sidebar__cta {
  flex-shrink: 0;
  margin: var(--space);
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  width: calc(100% - var(--space) * 2);
  justify-content: center;
  min-height: 44px;
  touch-action: manipulation;
}

/* Header — матовое стекло (мобильный) */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 1025px) {
  .header { display: none; }
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--space);
  max-width: 80rem;
  margin: 0 auto;
}
.header__logo img { height: 32px; width: auto; }
/* Mobile-first: burger visible, nav hidden by default */
.header__nav { display: none; align-items: center; gap: 1.5rem; }
.header__link {
  color: var(--text-primary);
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  touch-action: manipulation;
}
@media (hover: hover) {
  .header__link:hover { color: var(--brand-hover); }
}
.header__link--active { color: var(--brand-hover); font-weight: 600; }
.header__btn { color: var(--text-primary) !important; min-height: 44px; }
.header__burger {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  touch-action: manipulation;
}
.header__burger svg { width: 24px; height: 24px; flex-shrink: 0; }
.header__mobile {
  display: none;
  flex-direction: column;
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  gap: 0;
}
.header__mobile a {
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 500;
  padding: 0.75rem 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  touch-action: manipulation;
}
.header__mobile.active { display: flex; }

@media (min-width: 769px) {
  .header__nav { display: flex; }
  .header__burger { display: none; }
}

/* Сдвиг контента при сайдбаре, без горизонтального скролла */
.app-main {
  min-height: 100vh;
  min-width: 0;
  overflow-x: clip;
}
@media (min-width: 1025px) {
  .app-main { margin-left: var(--sidebar-width); }
}

/* Hero — mobile-first: колонка, затем две колонки на desktop */
.hero {
  padding: calc(var(--header-height) + var(--space-xl)) 0 var(--space-xl);
  background: linear-gradient(180deg, rgba(255, 209, 25, 0.06) 0%, var(--bg-secondary) 100%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 var(--space);
}
.hero__title {
  font-size: clamp(1.5rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
  color: var(--text-primary);
}
.hero__text {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  max-width: 480px;
  line-height: 1.5;
}
.hero__note {
  margin-top: -0.5rem;
  margin-bottom: var(--space-lg);
  max-width: 560px;
  font-size: 0.9375rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}
.hero__cta { display: none; }
/* CLS: резервируем место под LCP-изображение по aspect-ratio (832/813 ≈ 1.02) */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 832 / 813;
  max-width: 100%;
  min-height: 0;
}
.hero__phone {
  max-width: 100%;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
  animation: jump 3s ease-in-out infinite;
  object-fit: contain;
}
@keyframes jump {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}
.hero__shadow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 90%;
  margin: auto;
  transform: translate(-20px, 16%);
  opacity: 0.5;
  filter: brightness(1.15) contrast(0.92);
  width: 100%;
  height: auto;
  object-fit: contain;
}
.hero__cta-mobile {
  display: flex;
  justify-content: center;
  margin-top: var(--space-lg);
  padding: 0 var(--space);
}
.hero__cta-mobile .btn { width: 100%; max-width: 320px; min-height: 44px; }

/* Hero stats — без overflow-x, только wrap */
.hero__stats {
  display: flex;
  gap: var(--space);
  margin-top: var(--space-lg);
  padding: 0.5rem 0;
  flex-wrap: wrap;
  justify-content: center;
  overflow: visible;
}
.hero-card {
  flex: 1 1 min(200px, 100%);
  min-width: min(180px, 100%);
  max-width: 280px;
  padding: clamp(1rem, 3vw, 1.5rem) clamp(1.25rem, 3vw, 1.75rem);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-soft);
  touch-action: manipulation;
}
@media (hover: hover) {
  .hero-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
  }
}
.hero-card__rate {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.3;
}
.hero-card__rate span { font-weight: 600; font-size: 1rem; }
.hero-card__label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  line-height: 1.4;
}

@media (min-width: 480px) {
  .hero__cta { display: inline-flex; }
  .hero__cta-mobile { display: none; }
}
@media (min-width: 901px) {
  .hero__inner { grid-template-columns: 1fr 1fr; text-align: left; }
  .hero__text { margin-left: 0; margin-right: auto; }
  .hero__visual { order: 0; }
}
@media (max-width: 900px) {
  .hero__inner { text-align: center; }
  .hero__text { margin-left: auto; margin-right: auto; }
  .hero__cta { display: none; }
  .hero__cta-mobile { display: flex !important; }
  .hero__visual { order: -1; }
}

/* FAQ — для SEO и микроразметки FAQPage */
.faq-section {
  padding: var(--space-xl) 0;
  background: var(--bg);
}
.faq-section .container { max-width: 80rem; margin: 0 auto; padding: 0 var(--space); }
.faq-section__title {
  font-size: clamp(1.5rem, 4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}
.faq-section__list { margin: 0; }
.faq-section__item {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.faq-section__item:first-child { padding-top: 0; }
.faq-section__item dt {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.faq-section__item dd {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* License — воздух, radius 20px */
.license {
  padding: var(--space-xl) 0;
  background: var(--bg-secondary);
}
.license .container { max-width: 80rem; margin: 0 auto; padding: 0 var(--space); }
.license__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.license__content { max-width: 480px; }
.license__title {
  font-size: clamp(1.5rem, 4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--text-primary);
}
.license__text {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.license__text a {
  color: var(--brand-hover);
  font-weight: 500;
}
@media (hover: hover) {
  .license__text a:hover { color: var(--brand); }
}
.license__box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-soft);
}
.license__box-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}
.license__link {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--text-primary);
}
@media (hover: hover) {
  .license__link:hover { color: var(--brand-hover); }
}
.license__btn { display: inline-flex; }
.license__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.license__illustration {
  max-width: 280px;
  width: 100%;
  height: auto;
}
@media (min-width: 901px) {
  .license__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .license__visual { order: -1; }
  .license__illustration { max-width: 200px; }
}

/* Features — карточки с воздухом и radius 24px */
.features {
  padding: var(--space-xl) 0;
  background: var(--bg);
}
.features__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 var(--space);
}
.features__image img {
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-lg);
}
/* Mobile-first: одна колонка, затем 2 и 3 на больших экранах */
.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  max-width: 72rem;
  margin: 0 auto;
}
.feature-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  align-items: flex-start;
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
  touch-action: manipulation;
}
@media (hover: hover) {
  .feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
  }
}
.feature-card__content {
  flex-grow: 1;
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.5rem, 4vw, 2rem);
}
.feature-card h3 {
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.feature-card p {
  color: var(--text-secondary);
  font-size: clamp(0.9375rem, 2vw, 1rem);
  font-weight: 400;
  line-height: 1.5;
}
/* CLS: фиксированное соотношение под изображения 400x300 */
.feature-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  flex-shrink: 0;
}
.feature-card__img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

@media (min-width: 640px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 901px) {
  .features__grid { grid-template-columns: repeat(3, 1fr); }
}

/* Новое в Алтын — воздух, radius 24px, мягкие тени */
.new-in-altyn {
  padding: var(--space-xl) 0;
  background: var(--bg-secondary);
}
.new-in-altyn .container { max-width: 80rem; margin: 0 auto; padding: 0 var(--space); }
.new-in-altyn__title {
  font-size: clamp(1.5rem, 4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}
.new-in-altyn__intro {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1rem, 2vw, 1.0625rem);
}
.new-in-altyn__grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: var(--space-lg);
}
.new-in-altyn__card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
  touch-action: manipulation;
}
@media (hover: hover) {
  .new-in-altyn__card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
  }
}
.new-in-altyn__card-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  min-height: 0;
  background: var(--bg-tertiary);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.new-in-altyn__card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.new-in-altyn__card-content {
  padding: 1.75rem 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.new-in-altyn__card-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.new-in-altyn__card-content p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 1rem;
  flex: 1;
}
.new-in-altyn__card-content .btn {
  margin-top: auto;
  align-self: flex-start;
}

@media (min-width: 769px) {
  .new-in-altyn__grid { grid-template-columns: repeat(2, 1fr); }
}

/* Преимущества — Space Gray тёмная секция (без #000) */
.advantages {
  padding: var(--space-xl) 0;
  background: #1d1d1f;
}
.advantages .container { max-width: 80rem; margin: 0 auto; padding: 0 var(--space); }
.advantages__title {
  font-size: clamp(1.5rem, 4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 0.75rem;
  color: rgba(255,255,255,0.95);
}
.advantages__hero {
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 500;
  text-align: center;
  margin-bottom: var(--space-lg);
  color: rgba(255, 255, 255, 0.7);
}
.advantages__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: var(--space-lg);
}
.advantages__chips span {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  font-weight: 500;
}
.advantages__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space);
  margin-bottom: var(--space-lg);
}
.advantages__card {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 1.5rem) clamp(1.5rem, 3vw, 1.75rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.25s ease;
  touch-action: manipulation;
}
@media (hover: hover) {
  .advantages__card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 209, 25, 0.2);
  }
}
.advantages__card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  color: var(--brand);
  flex-shrink: 0;
}
.advantages__card-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}
.advantages__card h3,
.advantages__card h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0.5rem;
}
.advantages__card p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}
.advantages__cta {
  display: flex;
  margin: 0 auto;
  max-width: min(100%, 320px);
  transition: transform 0.25s ease;
  min-height: 44px;
  touch-action: manipulation;
}
@media (hover: hover) {
  .advantages__cta:hover {
    transform: scale(1.02);
  }
}
@media (min-width: 640px) {
  .advantages__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .advantages__grid { grid-template-columns: repeat(3, 1fr); }
}

/* News - компактный блок */
.news {
  padding: 1.5rem 0;
  background: #ffffff;
}
.news .container { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
.news__title {
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-primary);
}
.news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.news-card {
  background: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  transition: all 0.2s;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: left;
}
.news-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}
.news-card__thumb {
  position: relative;
  width: 100%;
  background: var(--accent);
  overflow: hidden;
  flex-shrink: 0;
}
.news-card__thumb img:first-child {
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0);
  height: 100%;
  max-width: 45%;
  width: auto;
  object-fit: contain;
}
.news-card__thumb img:last-child {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
}
.news-card__img-wrap {
  width: 100%;
  overflow: hidden;
  flex-shrink: 0;
}
.news-card__img {
  width: 100%;
  height: auto;
  display: block;
}
.news-card__content {
  padding: 0.5rem 0.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.news-card__date {
  font-size: 0.65rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}
.news-card h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card p {
  color: var(--text-secondary);
  font-size: 0.75rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news__all {
  display: flex;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.news__all:hover { border-color: var(--brand); color: var(--brand-hover); }

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

/* Telegram — фирменный оттенок + лёгкий синий */
.telegram {
  padding: var(--space-xl) 0;
  background: var(--bg);
}
.telegram .container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 var(--space);
}
.telegram__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--brand-soft);
  border: 1px solid rgba(255, 209, 25, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.telegram__card::before {
  content: "";
  position: absolute;
  left: -20%;
  top: -30%;
  width: 70%;
  height: 160%;
  background: radial-gradient(ellipse 60% 50% at 30% 50%, rgba(255, 209, 25, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.telegram__qr-wrap {
  flex-shrink: 0;
  padding: 1rem;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  width: 120px;
  height: 120px;
  aspect-ratio: 1;
}
.telegram__qr {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.telegram__content {
  text-align: center;
  position: relative;
  z-index: 1;
}
.telegram__content h2 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  line-height: 1.3;
}
.telegram__content p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}
.telegram__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  background: var(--brand);
  color: var(--text-primary);
  padding: 0.875rem 1.75rem;
  font-weight: 500;
  border-radius: var(--radius);
  box-shadow: var(--shadow-brand);
  transition: background 0.2s, box-shadow 0.2s;
  touch-action: manipulation;
}
@media (hover: hover) {
  .telegram__btn:hover {
    background: var(--brand-hover);
    box-shadow: 0 6px 24px rgba(255, 209, 25, 0.35);
  }
}

@media (min-width: 640px) {
  .telegram__card { padding: 2rem; }
  .telegram__content h2 { font-size: 1.5rem; }
}

@media (min-width: 768px) {
  .telegram__card {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 2rem 2.5rem;
    text-align: left;
  }
  .telegram__content { text-align: left; }
  .telegram__content h2 { font-size: 1.5rem; margin-bottom: 0.875rem; }
  .telegram__qr-wrap { width: 140px; height: 140px; }
}

@media (min-width: 1024px) {
  .telegram__card { padding: 2.5rem 3rem; gap: 2.5rem; }
  .telegram__content h2 { font-size: 1.75rem; }
  .telegram__qr-wrap { width: 160px; height: 160px; }
}

/* Contact - social cards */
.contact {
  padding: 2rem 0;
  background: #ffffff;
}
.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}
.contact-card {
  background: var(--bg-tertiary);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  display: block;
  color: var(--text-primary);
  transition: background 0.2s;
  border: 1px solid var(--border);
}
.contact-card:hover { background: var(--bg-secondary); }
.contact-card img { width: 32px; height: 32px; margin-bottom: 0.5rem; }
.contact-card span { font-weight: 500; }

.contact__info { margin-top: 2rem; text-align: center; }
.contact__info h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}
.contact__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}
.contact__list li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.contact__list li > span:first-child { color: var(--text-secondary); font-size: 0.875rem; }
.contact__list a, .contact__list li > span:last-child { color: var(--text-primary); font-weight: 500; }

@media (max-width: 768px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact__list { grid-template-columns: 1fr; }
}

/* Footer — мягкая граница, воздух */
.footer {
  padding: var(--space-xl) 0 var(--space-lg);
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}
.footer .container { max-width: 80rem; margin: 0 auto; padding: 0 var(--space); }

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  gap: var(--space);
}
.footer__logo { display: inline-block; }
.footer__logo img { height: 28px; display: block; }
.footer__nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer__nav-list a {
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  touch-action: manipulation;
}
@media (hover: hover) {
  .footer__nav-list a:hover { color: var(--brand-hover); }
}

/* О проекте — основной блок */
.footer__about {
  margin-bottom: 1.5rem;
  max-width: 52ch;
}
.footer__about-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.footer__about-text {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

/* Контакты с иконками */
.footer__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 1.75rem;
}
.footer__contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 500;
  min-height: 44px;
  touch-action: manipulation;
}
@media (hover: hover) {
  .footer__contact-link:hover { color: var(--brand-hover); }
  .footer__contact-link:hover .footer__contact-icon { color: var(--brand); }
}
.footer__contact-icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--brand-hover);
}

/* Юридический блок — дисклеймер */
.footer__legal {
  opacity: 0.7;
  margin-bottom: 1.25rem;
}
.footer__legal-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}
.footer__disclaimer {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
  margin: 0 0 0.5rem;
  max-width: 52ch;
}
.footer__address {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
  margin: 0;
}

/* Документы и соцсети в одной строке: ссылки слева, иконки справа */
.footer__doc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.footer__doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer__doc-links a {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  touch-action: manipulation;
}
@media (hover: hover) {
  .footer__doc-links a:hover { color: var(--brand-hover); }
}

.footer__bottom {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: var(--space);
  border-top: 1px solid var(--border);
}
.footer__social {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
}
.footer__social img { width: 24px; height: 24px; display: block; }

.footer--compact { padding: 1.5rem 0; }
.footer--compact .footer__inner { max-width: 48rem; margin: 0 auto; padding: 0 1rem; }
.footer--compact .footer__disclaimer { margin: 0; font-size: 12px; line-height: 1.45; opacity: 0.85; }

@media (max-width: 600px) {
  .footer { padding: 1.75rem 0 1.25rem; }
  .footer__top { flex-direction: column; align-items: flex-start; margin-bottom: 1.5rem; }
  .footer__about { max-width: none; margin-bottom: 1.25rem; }
  .footer__about-text { font-size: 0.875rem; }
  .footer__contacts { margin-bottom: 1.25rem; gap: 0.75rem; }
  .footer__contact-link { font-size: 0.875rem; }
  .footer__legal { margin-bottom: 1rem; }
  .footer__disclaimer, .footer__address { font-size: 11px; }
  .footer__doc-row { flex-direction: column; align-items: flex-start; margin-bottom: 1.25rem; }
  .footer__doc-links { gap: 0.5rem 1rem; }
  .footer__doc-links a { font-size: 0.75rem; }
  .footer__bottom { justify-content: center; padding-top: 1rem; }
}

/* Blog */
.blog {
  padding: calc(var(--header-height) + 2rem) 0 3rem;
  background: #fff;
}
.blog .container { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
.blog__title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.blog__intro {
  margin-bottom: 2rem;
  color: var(--text-secondary, #666);
  font-size: 0.95rem;
}
.blog__intro a {
  color: var(--primary, #0066cc);
  text-decoration: none;
}
.blog__intro a:hover { text-decoration: underline; }
.blog__intro-note {
  margin-bottom: 2rem;
  color: var(--text-tertiary);
  font-size: 0.875rem;
}
.blog__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.blog-post {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.blog-post:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.blog-post .card__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
  line-height: 0;
  background: #F5F5F7;
  border-radius: 1rem 1rem 0 0;
}
.blog-post .card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.blog-post .card__body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.blog-post__date {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.blog-post__heading {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-post__excerpt {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}
.blog-post .card__body .blog-post__full {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin-top: 0.5rem;
}
.blog-post .card__body .blog-post__full p {
  margin-bottom: 0.75rem;
}
.blog-post .card__body .blog-post__full p:last-child {
  margin-bottom: 0;
}
.blog-post .card__body .blog-post__full h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
  color: var(--text-primary);
}
.blog-post .card__body .blog-post__full h3:first-child {
  margin-top: 0;
}
.blog-post .card__body .blog-post__full ul {
  margin: 0.5rem 0 0.75rem;
  padding-left: 1.25rem;
}
.blog-post .card__body .blog-post__full a {
  color: var(--brand-hover);
  text-decoration: underline;
}
.blog-post__cta { display: none; }
.blog-post__heading { -webkit-line-clamp: unset; display: block; overflow: visible; }
@media (min-width: 900px) {
  .blog__list { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
@media (max-width: 600px) {
  .blog__list { grid-template-columns: 1fr; }
}

.content-page {
  padding-top: 2rem;
  padding-bottom: 4rem;
}
.content-page__lead {
  margin-top: 1rem;
  max-width: 60ch;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}
.content-page__grid {
  display: grid;
  gap: var(--space);
  margin-top: var(--space-lg);
}
.content-page__card {
  padding: 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.content-page__card h2 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}
.content-page__card ul {
  list-style: disc;
  padding-left: 1.25rem;
  color: var(--text-secondary);
}
.content-page__card li + li {
  margin-top: 0.5rem;
}
.content-page__note {
  margin-top: var(--space-lg);
  color: var(--text-tertiary);
  font-size: 0.9375rem;
}
.content-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--space-lg);
}
@media (min-width: 768px) {
  .content-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* FAQ page */
.faq {
  padding: calc(var(--header-height) + 2rem) 0 3rem;
  background: #fff;
}
.faq .container,
.faq__container { max-width: 48rem; margin: 0 auto; padding: 0 1rem; }
.faq__title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary, #1a1a1a);
}
.faq__intro {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary, #555);
  margin-bottom: 2rem;
}
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.faq__item {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.faq__item:hover { border-color: rgba(0,0,0,0.12); }
.faq__item[open] { box-shadow: 0 2px 12px rgba(0,0,0,0.06); border-color: var(--brand, #0066cc); }
.faq__question {
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary, #1a1a1a);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  user-select: none;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
  content: "";
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform 0.2s ease;
}
.faq__item[open] .faq__question::after { transform: rotate(180deg); }
.faq__answer {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.faq__answer p {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0 0 0.75rem;
  color: var(--text-secondary, #444);
}
.faq__answer p:last-child { margin-bottom: 0; }
.faq__answer ul {
  margin: 0.5rem 0 0.75rem;
  padding-left: 1.25rem;
}
.faq__answer li { margin-bottom: 0.35rem; font-size: 0.9375rem; line-height: 1.5; color: var(--text-secondary, #444); }
.faq__answer a {
  color: var(--brand-hover, #0052a3);
  text-decoration: underline;
}
.faq__outro {
  margin-top: 2rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary, #555);
}
.faq__outro a { color: var(--brand-hover); text-decoration: underline; }
