/* ═══════════════════════════════════════════════════════════════════════════
   community.css — Стили для лендинга IT-сообщества "Полный Стек"
   
   [РЕАЛИЗОВАНО В: task-2026-05-29-006]
   [УЛУЧШЕНО В: task-2026-05-30-003] — визуальные улучшения, анимации, цветовые акценты
   [ОБНОВЛЕНО В: task-2026-06-03-001] — хардкод #4caf50/#388e3c заменён на CSS-переменные
   [УЛУЧШЕНО В: task-2026-06-03-005] — визуальный анализ: убрано дублирование секций, добавлены анимации карточек, hover-эффекты, glass-эффект hero, улучшен responsive
   [УЛУЧШЕНО В: task-2026-06-03-006] — глубокий анализ: хардкод rgba(76,175,80,...) заменён на CSS-переменные, добавлен .ps-section-title, улучшен Hero-deco, добавлен брейкпоинт 1024px, оптимизированы разделители
   [УЛУЧШЕНО В: task-2026-06-03-007] — глубокий анализ: удалён мёртвый CSS (~150 строк), устранено дублирование CSS-переменных, добавлен scroll-behavior: smooth, улучшен hero-deco (opacity 0.2), добавлен Intersection Observer, удалён render_boosty_benefits_section(), стандартизация карточек, удалены ui.separator() из карточек, добавлен .ps-section, улучшен responsive
   [УЛУЧШЕНО В: task-2026-06-03-008] — глубокий анализ (итерация 2): CSS-переменные вынесены в base.css (--green-primary-rgb), объединены @media, исправлена доступность (prefers-reduced-motion, aria), float без rotate, AgentViewport для helpers, badge цвета через переменные, border-image заменён на ::after
   
   Все ps-* стили, перенесённые из community_landing.py (строки 48-543).
   Цвета используют CSS-переменные из base.css (--green-primary, --green-dark, --green-primary-rgb).
   [ДОРАБОТАНО В: task-2026-06-05-011] — Vote Cards: .vote-card BEM, превью 120×80, vote-card__actions, leaderboard: кастомный прогресс-бар, __item-info/__bar-track/__bar
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Общий класс для интерактивных карточек (использует дизайн-токены из base.css) ── */
.ps-card-interactive {
   transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}
.ps-card-interactive:hover {
   transform: var(--effect-hover-lift);
   box-shadow: var(--effect-glow-green);
}

/* ── CSS-переменные для community (светлая тема) ──────────────── */
:root {
    --ps-bg-subtle: rgba(255,255,255,0.05);
    --ps-bg-subtle-alt: rgba(0,0,0,0.02);
    --ps-shadow-subtle: rgba(0,0,0,0.08);
    --ps-shadow-hover: rgba(0,0,0,0.15);
    --ps-bg-warm: rgba(255,248,225,0.5);
    --ps-bg-green-subtle: rgba(232,245,233,0.5);
    --ps-glass-border: rgba(255, 255, 255, 0.15);
}

/* ── Тёмная тема (селектор body.body--dark для Quasar Dark Plugin) ───── */
body.body--dark {
    --ps-bg-subtle: rgba(255,255,255,0.02);
    --ps-bg-subtle-alt: rgba(255,255,255,0.04);
    --ps-shadow-subtle: rgba(0,0,0,0.3);
    --ps-shadow-hover: rgba(0,0,0,0.4);
    --ps-bg-warm: rgba(255,248,225,0.08);
    --ps-bg-green-subtle: rgba(232,245,233,0.08);
    --ps-glass-border: rgba(255, 255, 255, 0.08);
}

/* ── Dark mode: переопределения для компонентов ────────────────────── */
body.body--dark .cal-event {
    background: rgba(30, 30, 30, 0.4);
    backdrop-filter: blur(10px);
    border-color: var(--border-light);
}
body.body--dark .cal-event__title {
    color: var(--text-primary);
}
body.body--dark .cal-event__desc {
    color: var(--text-secondary);
}
body.body--dark .cal-event__date {
    border-right-color: var(--border-light);
}
body.body--dark .cal-event__body {
    border-right-color: var(--ps-glass-border);
}
body.body--dark .cal-month__title {
    color: var(--text-primary);
}
body.body--dark .vote-leaderboard__bar-track {
    background: rgba(255, 255, 255, 0.1);
}
body.body--dark .cal-badge--info {
    background: rgba(255, 255, 255, 0.08);
    color: #bbb;
}
body.body--dark .cal-badge--free {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
}
body.body--dark .cal-badge--paid {
    background: rgba(245, 124, 0, 0.2);
    color: #ffb74d;
}
body.body--dark .cal-badge--online {
    background: rgba(0, 123, 255, 0.2);
    color: #64b5f6;
}
body.body--dark .cal-badge--offline {
    background: rgba(118, 75, 162, 0.2);
    color: #ba68c8;
}
body.body--dark .cal-badge--warning {
    background: rgba(245, 124, 0, 0.2);
    color: #ffb74d;
}
body.body--dark .cal-badge--error {
    background: rgba(220, 53, 69, 0.2);
    color: #ef9a9a;
}
body.body--dark .cal-badge--past {
    background: rgba(255, 255, 255, 0.05);
    color: #888;
}
body.body--dark .cal-link {
    color: #fff !important;
}
body.body--dark .cal-link--ghost {
    color: #81c784 !important;
    border-color: #81c784;
}
body.body--dark .cal-link--ghost:hover {
    background: rgba(76, 175, 80, 0.15);
    color: #a5d6a7 !important;
}
body.body--dark .scroll-to-top-btn {
    opacity: 0.5;
}
body.body--dark .ps-review-card .bg-grey-1 {
    background: rgba(255, 255, 255, 0.08) !important;
}
body.body--dark .ps-review-card .text-grey-6 {
    color: #bbb !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ГЛОБАЛЬНЫЕ АНИМАЦИИ (@keyframes)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Entrance: появление снизу */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Entrance: появление с масштабированием */
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}

/* Пульсация (для кнопок, badge) */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 8px rgba(var(--green-primary-rgb), 0.3); }
    50%      { box-shadow: 0 0 20px rgba(var(--green-primary-rgb), 0.6); }
}

/* Парение (для deco-элементов hero) — только translateY, без rotate (избегаем micro-jitter) */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

/* Мерцание (для градиентных полосок) */
@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Подсветка (glow-пульсация) */
@keyframes glow {
    0%, 100% { box-shadow: 0 0 8px rgba(var(--green-primary-rgb), 0.3); }
    50%      { box-shadow: 0 0 24px rgba(var(--green-primary-rgb), 0.6); }
}

/* Hero-zoom-pan: анимация hero-изображения (zoom + pan) */
@keyframes hero-zoom-pan {
    0%   { transform: scale(1) translate(0, 0); }
    25%  { transform: scale(1.1) translate(-2%, -1%); }
    50%  { transform: scale(1.08) translate(1%, -2%); }
    75%  { transform: scale(1.12) translate(-1%, 1%); }
    100% { transform: scale(1) translate(0, 0); }
}

.hero-zoom-pan {
    animation: hero-zoom-pan 25s ease-in-out infinite;
    will-change: transform;
}

/* ── CTA Hero button: pulse-glow для привлечения внимания ────── */
.ps-hero-cta {
    animation: pulse-glow 2s ease-in-out infinite;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ps-hero-cta:hover {
    animation: none;
    transform: scale(1.03);
    box-shadow: 0 8px 32px rgba(255, 143, 0, 0.4);
}

.hero-image-wrapper {
    overflow: hidden;
    border-radius: 12px;
    isolation: isolate;
}

/* bounce для иконок */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    25%      { transform: translateY(-4px); }
    50%      { transform: translateY(0); }
    75%      { transform: translateY(-2px); }
}

/* Уважение к системным настройкам анимации (WCAG) */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    /* Фоновая сетка + hero zoom — исключения (дизайнерские, не влияют на контент) */
    .bg-network-image,
    .hero-zoom-pan {
        animation-duration: 60s !important;
        animation-iteration-count: infinite !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ПЛАВНЫЙ СКРОЛЛ ДЛЯ ЯКОРНЫХ ССЫЛОК
   ═══════════════════════════════════════════════════════════════════════════ */
html {
    scroll-behavior: smooth;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ОБЩИЙ КЛАСС СЕКЦИИ
   ═══════════════════════════════════════════════════════════════════════════ */
.ps-section {
    width: 100%;
    padding: 2rem 1rem;
}
/* ── Визуальный ритм: чередование фона секций через `nth-child(even)` ── */
/* .ps-section:nth-child(even) { background: var(--ps-bg-subtle-alt); } */
/* Раскомментировать при желании чередования — пока используем разделители */
.ps-section + .ps-section {
    border-top: 1px solid var(--border-light);
}

/* ── Hero ──────────────────────────────────────────────────────── */
.ps-hero {
    position: relative;
    padding: 32px 0 28px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(var(--green-primary-rgb), 0.15) 0%, rgba(var(--green-primary-rgb), 0.05) 50%, transparent 100%);
    border-radius: 16px;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease-out;
    z-index: 1;
}
.ps-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%,
        rgba(var(--green-primary-rgb), 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.ps-hero__title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 8px;
    animation: fadeInScale 0.5s ease-out 0.15s both;
}
.ps-hero__sub {
    font-size: 1.05rem;
    opacity: 0.75;
    max-width: 560px;
    margin: 0 auto 18px;
    line-height: 1.6;
    animation: fadeInUp 0.5s ease-out 0.3s both;
}
.ps-hero__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-top: 18px;
    padding-top: 16px;
    position: relative;
    animation: fadeInUp 0.5s ease-out 0.45s both;
}
/* Градиентная линия сверху через ::after (вместо border-image) */
.ps-hero__meta::after {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--green-primary), #66bb6a, var(--green-primary), transparent);
}
.ps-hero__meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}
.ps-hero__meta-icon {
    font-size: 1.3rem;
}
/* Hero-deco: декоративные эмодзи с анимацией парения.
   Используют position: absolute с z-index: 0 (ниже контента hero и изображения),
   чтобы не перекрывать текст, CTA и hero-изображение.
   aria-hidden="true" — скрыты от screen readers (декоративные элементы). */
.hero-deco {
    position: absolute;
    font-size: 3.2rem;
    opacity: 0.2;
    pointer-events: none;
    animation: float 8s ease-in-out 0s infinite normal none;
    z-index: 0;
}
@media (max-width: 768px) {
    .hero-deco { display: none; }
}
.hero-deco--1 { top: 8%; left: 5%; font-size: 2.8rem; animation-duration: 9s; animation-delay: 0s; }
.hero-deco--2 { top: 38%; right: 8%; font-size: 4rem; animation-duration: 12s; animation-delay: 1.5s; animation-direction: reverse; }
.hero-deco--3 { bottom: 28%; left: 10%; font-size: 2.4rem; animation-duration: 10s; animation-delay: 0.7s; }
.hero-deco--4 { bottom: 6%; right: 6%; font-size: 3.5rem; animation-duration: 8s; animation-delay: 2.2s; animation-direction: reverse; }

/* Hero image glow + glass-эффект */
.ps-hero img {
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(var(--green-primary-rgb), 0.25);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    z-index: 2;
}
.ps-hero img:hover {
    box-shadow: 0 8px 40px rgba(var(--green-primary-rgb), 0.4);
    transform: scale(1.01);
}

/* Glass-эффект для hero-image-wrapper (как ps-glass-card) */
.hero-image-wrapper {
    position: relative;
    z-index: 1;
}
.hero-image-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    border: 1px solid var(--ps-glass-border);
    pointer-events: none;
    z-index: 2;
}

/* ── Stats ─────────────────────────────────────────────────────── */
.ps-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    padding: 16px 0 22px;
}
.ps-stat {
    text-align: center;
    min-width: 110px;
    height: 100%;
    background: var(--card-glass);
    backdrop-filter: blur(var(--glass-blur));
    padding: 14px 22px;
    border-radius: 12px;
    box-shadow: 0 2px 12px var(--ps-shadow-subtle);
    border-left: 4px solid var(--green-primary);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    animation: fadeInUp 0.5s ease-out both;
}
.ps-stat:nth-child(1) { animation-delay: 0.1s; }
.ps-stat:nth-child(2) { animation-delay: 0.2s; }
.ps-stat:nth-child(3) { animation-delay: 0.3s; }
.ps-stat:hover {
    transform: var(--effect-hover-lift);
    box-shadow: var(--effect-glow-green);
}
.ps-stat__num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--green-primary);
    line-height: 1;
}
.ps-stat__label {
    display: block;
    font-size: 0.78rem;
    opacity: 0.65;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ── Benefits ──────────────────────────────────────────────────── */
.ps-benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    gap: 12px;
    margin: 4px 0 16px;
}
.ps-benefit {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
    padding: 16px 14px;
    border-radius: 10px;
    background: var(--card-glass);
    backdrop-filter: blur(var(--glass-blur));
    border-left: 4px solid var(--green-primary);
    box-shadow: 0 2px 8px var(--ps-shadow-subtle);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    height: 100%;
}
.ps-benefit:hover {
    transform: var(--effect-hover-lift-sm);
    box-shadow: var(--effect-glow-green);
}
.ps-benefit__icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.ps-benefit:hover .ps-benefit__icon {
    animation: bounce 0.6s ease;
}
.ps-benefit__emoji {
    font-size: 1.8rem;
    line-height: 1;
}
.ps-benefit__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
}
.ps-benefit__title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
}
.ps-benefit__desc {
    font-size: 0.875rem;
    opacity: 0.7;
    line-height: 1.4;
    flex: 1;
}
/* ── Benefit link (pill-стиль, аналог .cal-link) ───────────────── */
.ps-benefit__link {
    display: inline-block;
    padding: 1px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff !important;
    background: var(--green-primary);
    text-decoration: none !important;
    white-space: nowrap;
    text-align: center;
    line-height: 1.5;
    min-height: auto !important;
    min-width: auto !important;
    transition: opacity 0.2s, transform 0.15s;
    margin-top: auto;
}
.ps-benefit__link:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

/* ── Анимации для карточек секций (каскадные) ──────────────────── */
.ps-section-card {
    animation: fadeInUp 0.5s ease-out both;
}
.ps-section-card:nth-child(1) { animation-delay: 0.05s; }
.ps-section-card:nth-child(2) { animation-delay: 0.1s; }
.ps-section-card:nth-child(3) { animation-delay: 0.15s; }
.ps-section-card:nth-child(4) { animation-delay: 0.2s; }
.ps-section-card:nth-child(5) { animation-delay: 0.25s; }
.ps-section-card:nth-child(6) { animation-delay: 0.3s; }
.ps-section-card:nth-child(7) { animation-delay: 0.35s; }
.ps-section-card:nth-child(8) { animation-delay: 0.4s; }

/* ── Карточки отзывов: фиксированная высота + line-clamp ────────── */
/* [РЕАЛИЗОВАНО В: task-2026-06-15-review-cards] */
/* [ОБНОВЛЕНО: task-2026-06-15-review-card-expand, cycle 2] */
.ps-review-card {
    height: 360px;
    overflow: hidden;
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    position: relative;
}

/* Градиентный fade снизу карточки — сглаживает обрезку текста */
/* Использует --card-glass (светлая/тёмная тема через base.css) */
.ps-review-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--card-glass));
    pointer-events: none;
    z-index: 2;
}

/* Текст отзыва: line-clamp (надёжнее mask-image на мобильных) */
.ps-review__text {
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 12;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
    line-height: 1.5;
    position: relative;
}

/* Псевдо-элемент-подсказка при hover */
.ps-review__text::after {
    content: "🔍 Нажмите, чтобы прочитать полностью";
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: var(--green-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-top: 4px;
}
.ps-review__text:hover::after {
    opacity: 1;
}

/* Карточки "Кому подойдёт" — ширина и центровка */
.ps-target-card {
    max-width: 300px;
    width: 100%;
    text-align: center !important;
    align-items: center;
}
.ps-target-card * {
    text-align: center !important;
}

/* Hover-эффект для карточек "Кому подойдёт" (используют ps-glass-card) */
.ps-glass-card.ps-target-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.ps-glass-card.ps-target-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(var(--green-primary-rgb), 0.15);
    border-color: rgba(var(--green-primary-rgb), 0.3);
}

/* ── CTA Grid ──────────────────────────────────────────────────── */
.ps-cta-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 20px 18px;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    color: white;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.ps-cta-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}
.ps-cta-card--tg { background: linear-gradient(135deg, var(--cta-tg-start), var(--cta-tg-end)); }
.ps-cta-card--chat { background: linear-gradient(135deg, var(--cta-chat-start), var(--cta-chat-end)); }
.ps-cta-card--labs { background: linear-gradient(135deg, var(--cta-labs-start), var(--cta-labs-end)); }
.ps-cta-card--boosty { background: linear-gradient(135deg, var(--cta-boosty-start), var(--cta-boosty-end)); }
.ps-cta-card--video-vk { background: linear-gradient(135deg, #0077ff, #0055cc); }
.ps-cta-card--video-yt { background: linear-gradient(135deg, #ff0000, #cc0000); }
.ps-cta-card--partners { background: linear-gradient(135deg, #667eea, #764ba2); }

/* ── CTA-карточки: text-shadow для контрастности (WCAG AA) ─── */
.ps-cta-card__title,
.ps-cta-card__desc {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.ps-cta-card--partners .ps-cta-card__title { color: white; }
.ps-cta-card--partners .ps-cta-card__desc { color: rgba(255,255,255,0.8); }
.ps-cta-card--partners .ps-cta-card__arrow { color: rgba(255,255,255,0.7); }
/* Featured CTA-карточка (Boosty) — шире остальных, с усиленной рамкой */
.ps-cta-card--featured {
    min-width: 280px;
    flex: 2 1 auto;
    border: 2px solid rgba(255, 215, 0, 0.6);
    box-shadow: 0 6px 24px rgba(255, 215, 0, 0.25), 0 4px 16px rgba(0,0,0,0.15);
}
.ps-cta-card--featured:hover {
    border-color: rgba(255, 215, 0, 0.9);
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.35), 0 12px 32px rgba(0,0,0,0.25);
}
.ps-cta-card__icon {
    font-size: 1.8rem;
    line-height: 1;
    transition: transform 0.3s ease;
    align-items: center;
}
.ps-cta-card__body {
    line-height: 1.3;
    text-align: center;
    align-items: center;
}
.ps-cta-card__title {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1px;
    color: white;
}
.ps-cta-card__desc {
    font-size: 0.78rem;
    opacity: 0.9;
    color: white;
}
.ps-cta-card__arrow {
    display: none;
}

/* ── Общий класс для заголовков секций ────────────────────────── */
.ps-section-title {
    font-size: clamp(1.3rem, 3.5vw, 1.75rem);
    font-weight: 700;
    text-align: center;
    width: 100%;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

/* ── Intersection Observer анимации (появляются при скролле) ──── */
.ps-animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    /* CSS-failsafe: если IntersectionObserver не сработал — делаем видимым через 1.8s */
    animation: ps-css-failsafe 0.01s 1.8s forwards;
    will-change: opacity, transform;
}
.ps-animate-on-scroll.ps-visible {
    opacity: 1;
    transform: translateY(0);
    animation: none;  /* отменяет failsafe, т.к. Observer уже отработал */
}
@keyframes ps-css-failsafe {
    to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (min-width: 1025px) and (max-width: 1280px) {
    .ps-hero { padding: 36px 0 30px; }
    .ps-hero__title { font-size: clamp(1.8rem, 3.5vw, 2.2rem); }
    .ps-benefits { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .ps-hero { padding: 32px 0 28px; margin-bottom: 24px; }
    .ps-hero__title { font-size: clamp(1.4rem, 5vw, 2rem); }
    .ps-hero__sub { font-size: 0.95rem; padding: 0 16px; }
    .ps-hero__meta { gap: 16px; margin-top: 20px; padding-top: 20px; }
    .ps-hero__meta-item { font-size: 0.8rem; }
    .ps-hero__meta-icon { font-size: 1.1rem; }
    /* Hero изображение на мобильных — меньше */
    .hero-image-wrapper { max-height: 200px; }
    .hero-image-wrapper img { max-height: 200px; object-fit: cover; }
    .ps-stats { gap: 16px; padding: 20px 0 24px; }
    .ps-stat { min-width: 90px; padding: 16px 20px; }
    .ps-stat__num { font-size: 1.6rem; }
    .ps-benefit { padding: 14px 16px; }
    .ps-cta-card { padding: 14px 18px; }
    .ps-cta-card__icon { width: 40px; height: 40px; font-size: 1.2rem; }
    /* Hero-deco на мобильных — скрыты (см. display:none в .hero-deco) */
    .ps-section { padding: 1.5rem 0.75rem; }
}
/* Дополнительный брейкпоинт для очень маленьких экранов */
@media (max-width: 480px) {
    .ps-stat { min-width: 70px; padding: 12px 14px; }
    .ps-stat__num { font-size: 1.3rem; }
    .ps-section { padding: 1.5rem 0.5rem; }
}

/* ── Экстремально маленькие экраны (≤360px) ────────────────────── */
@media (max-width: 360px) {
    .ps-cta-card--featured {
        min-width: auto;
        width: 100%;
    }
    .ps-target-card {
        max-width: 100%;
    }
}
