/* Стили для остальных городов (по умолчанию) */

/* Базовые стили для exs- классов */
:root {
  --container: 1200px;
  --gutter: 24px;
  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.1);
  --shadow-lg: 0 4px 6px rgba(0,0,0,.1);
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 28px;
  --s-8: 32px;
  --s-9: 36px;
  --s-10: 40px;
  --s-11: 44px;
  --s-12: 48px;
  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-base: 16px;
  --fs-lg: 18px;
  --fs-xl: 20px;
  --fs-2xl: 24px;
  --fs-3xl: 30px;
  --primary: #972635;
  --primary-600: #7c1f2c;
  --secondary: #264773;
  --secondary-600: #1e3659;
  --secondary-soft: #e9eef7;
  --secondary-light: #f1f5f9;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --success: #059669;
  --gradient-primary: linear-gradient(135deg, #972635 0%, #b91c5c 100%);
  --gradient-secondary: #264773;
  --gradient-dark: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

/* Базовые exs- стили */
.exs-wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.exs-section { padding: var(--s-11) 0; }
.exs-section--tight { padding: var(--s-9) 0; }
.exs-section__head { margin-bottom: var(--s-8); }
.exs-section__head h2 { margin: 0 0 var(--s-4); }
.exs-lead { font-size: var(--fs-lg); color: var(--muted); margin: 0 0 var(--s-7); }
.exs-eyebrow { display:inline-block; font-weight: 700; font-size: 13px; letter-spacing:.08em; text-transform:uppercase; color: var(--secondary); background: var(--secondary-light); padding: 6px 10px; border-radius: 999px; }
.exs-grid { display: grid; gap: var(--s-8); }
.exs-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.exs-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.exs-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.exs-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--s-8); }
.exs-card--xl { padding: var(--s-9); border-radius: var(--radius-lg); }
.exs-card__head { display:flex; align-items:flex-start; gap: var(--s-5); margin-bottom: var(--s-4); }
.exs-card__title { margin: 0; }
.exs-card__desc { color: var(--muted); margin: 0; }
.exs-card > :not(:last-child) { margin-bottom: var(--s-4); }

.exs-meta { display:flex; flex-wrap:wrap; gap: 8px; }
.exs-chip { display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border:1px solid var(--border); border-radius: 999px; font-size: 12px; background: var(--bg-soft); color: var(--muted); }

.exs-btn { display:inline-flex; align-items:center; justify-content:center; gap:10px; padding: 16px 20px; border-radius: var(--radius-sm); border: 2px solid transparent; font-weight: 800; cursor: pointer; text-decoration: none; transition: all .2s; }
.exs-btn--primary { background: var(--primary); color: #fff; }
.exs-btn--primary:hover { background: var(--primary-600); transform: translateY(-1px); }
.exs-btn--ghost { background: transparent; border-color: var(--border); color: var(--text); }
.exs-btn:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; }

.exs-input, .exs-select, .exs-textarea { width: 100%; padding: 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: #fff; color: var(--text); font-size: var(--fs-base); }
.exs-input:focus-visible, .exs-select:focus-visible, .exs-textarea:focus-visible { outline: 3px solid var(--secondary); outline-offset: 1px; }
.exs-form-row { display:grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.exs-form-group { display:flex; flex-direction:column; gap: var(--s-3); }
.exs-label { font-size: 13px; color: var(--muted); }
.exs-hint { font-size: 12px; color: var(--muted); }

.exs-choice { display:flex; gap:8px; flex-wrap:wrap; }
.exs-choice input { position:absolute; opacity:0; pointer-events:none; }
.exs-pill { display:inline-flex; align-items:center; gap:8px; padding:10px 14px; border-radius:999px; border:1px solid var(--border); background: var(--bg-soft); cursor:pointer; font-weight:700; user-select:none; transition: all .2s; }
.exs-choice input:checked + .exs-pill { background: var(--primary); color:#fff; border-color: transparent; }

.exs-badge { display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:999px; font-size:13px; font-weight:700; background: var(--bg-soft); color: var(--muted); }
.exs-check { inline-size: 20px; block-size: 20px; border-radius: 50%; display:inline-grid; place-items:center; background: #EAF6ED; color:#2A7C3E; font-weight: 900; }
.exs-kpi { display:flex; align-items:center; gap:12px; }

.exs-leadpack { display:grid; grid-template-columns: 1.15fr; gap: var(--s-9); align-items: start; }
.exs-leadpack__panel { border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: var(--s-9); }
.exs-leadpack__benefits { display:grid; grid-template-columns: 1fr 1fr; gap: var(--s-5) var(--s-9); margin-top: var(--s-5); }

.exs-problems .exs-grid { grid-template-columns: 1fr 1fr; }

.exs-solutions .exs-audiences { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--s-5); margin-bottom: var(--s-6); }
.exs-solutions .exs-aud-btn { padding: 12px 14px; border-radius: var(--radius-sm); border:2px solid var(--border); background: var(--bg-soft); font-weight:800; cursor:pointer; text-align:center; }
.exs-solutions .exs-aud-btn[aria-selected="true"] { background: var(--primary); color: #fff; border-color: transparent; }
.exs-solutions .exs-pack { display:none; }
.exs-solutions .exs-pack[data-active="true"] { display:grid; gap:var(--s-8); grid-template-columns: 1fr 1fr; }

.exs-ic { width: 28px; height: 28px; stroke: var(--secondary-600); stroke-width: 1.8; fill: none; flex: none; }
.exs-ic-32 { width: 32px; height: 32px; }
.exs-icwrap { display:inline-grid; place-items:center; width: 44px; height:44px; border-radius: 12px; background: var(--bg-soft); }

.exs-compare__wrap { overflow:auto; border:1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg); box-shadow: var(--shadow); }
.exs-compare__table { width: 100%; min-width: 920px; border-collapse: separate; border-spacing: 0; }
.exs-compare__table thead th { position: sticky; top: 0; background: #fff; z-index: 1; }
.exs-compare__table th, .exs-compare__table td { padding: 16px 18px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.exs-compare__table th:first-child, .exs-compare__table td:first-child { position: sticky; left: 0; background: linear-gradient(90deg, #fff 85%, rgba(255,255,255,0)); z-index: 2; font-weight: 800; }
.exs-compare__table tr:hover td { background: #FCFDFE; }
.exs-compare__table th { font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* Дополнительные стили для leadpack */
.exs-leadpack { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-9); align-items: start; }
.exs-leadpack__text { animation: fadeInLeft .8s ease-out; }
.exs-leadpack__panel { border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: var(--s-9); }
.exs-leadpack__benefits { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5) var(--s-9); margin-top: var(--s-5); }

/* Стили для проблем и решений */
.exs-problems { padding: var(--s-11) 0; }
.exs-solutions { padding: var(s-11) 0; background: var(--bg-soft); }

/* Стили для калькулятора */
.exs-calc { grid-column: 1 / -1; }
.exs-calc .exs-card { padding: var(--s-10); }
.exs-calc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6); margin-top: var(--s-5); }
.exs-result { padding: 18px; border-radius: var(--radius-sm); background: var(--secondary-light); color: var(--secondary-600); font-weight: 800; display: flex; align-items: center; justify-content: space-between; }

/* Анимации */
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Базовые цвета - зеленые тона */
:root {
    --city-primary: #059669;
    --city-secondary: #10b981;
    --city-accent: #34d399;
    --city-light: #d1fae5;
}

/* Hero секция для городов */
.hero .hero__title {
    color: var(--city-primary);
    text-shadow: 2px 2px 4px rgba(5, 150, 105, 0.3);
}

.hero .hero__subtitle {
    color: #1f2937;
    font-size: 1.1em;
}

/* Контакты в hero */
.hero .hero__contact-item a,
.hero .hero__contact-item span {
    color: var(--city-primary);
    font-weight: 600;
}

.hero .hero__contact-icon {
    color: var(--city-secondary);
}

/* Секция city-specific */
.city-specific {
    background: linear-gradient(135deg, var(--city-light) 0%, #f8fafc 100%);
    padding: 80px 0;
    margin: 60px 0;
}

.city-specific h2 {
    color: var(--city-primary);
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5em;
    font-weight: 700;
}

.city-info__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.city-info__item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.1);
    border-left: 5px solid var(--city-secondary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.city-info__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(5, 150, 105, 0.2);
}

.city-info__item h3 {
    color: var(--city-primary);
    font-size: 1.4em;
    margin-bottom: 15px;
    font-weight: 600;
}

.city-info__item p {
    color: #4b5563;
    line-height: 1.6;
    font-size: 1.05em;
}

/* Статистика для городов */
.stats-city {
    background: var(--city-primary);
    color: white;
    padding: 80px 0;
    margin: 60px 0;
}

.stats-city h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5em;
    font-weight: 700;
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: 3em;
    font-weight: 900;
    color: var(--city-accent);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 1.1em;
    color: #f1f5f9;
    font-weight: 500;
}

/* ===== УЛУЧШЕННАЯ АДАПТИВНОСТЬ ===== */

/* Предотвращение горизонтального скролла для всех размеров */
@media (max-width: 1200px) {
    .city-specific,
    .stats-city {
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
    }
    
    .city-info__grid,
    .stats__grid {
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
    }
}

/* Планшеты (768px и меньше) */
@media (max-width: 768px) {
    .city-specific {
        padding: 50px 0;
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
    }
    
    .city-specific h2 {
        font-size: clamp(28px, 6vw, 36px);
        margin-bottom: 40px;
        text-align: center;
    }
    
    .city-info__grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 30px;
    }
    
    .city-info__item {
        padding: 25px 20px;
        margin: 0 10px;
    }
    
    .stats-city {
        padding: 50px 0;
    }
    
    .stats-city h2 {
        font-size: clamp(28px, 6vw, 36px);
        margin-bottom: 40px;
        text-align: center;
    }
    
    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        margin: 0 10px;
    }
    
    .stat-item {
        padding: 25px 20px;
    }
    
    .stat-number {
        font-size: clamp(2.5em, 8vw, 3em);
    }
    
    .stat-label {
        font-size: clamp(14px, 3.5vw, 16px);
    }
}

/* Мобильные устройства (480px и меньше) */
@media (max-width: 480px) {
    .city-specific {
        padding: 40px 0;
        margin: 30px 0;
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
    }
    
    .city-specific h2 {
        font-size: clamp(24px, 7vw, 28px);
        margin-bottom: 30px;
    }
    
    .city-info__grid {
        gap: 25px;
        margin: 0 15px;
        margin-top: 25px;
    }
    
    .city-info__item {
        padding: 20px 16px;
        margin: 0 5px;
    }
    
    .city-info__item h3 {
        font-size: clamp(18px, 5vw, 20px);
        margin-bottom: 12px;
    }
    
    .city-info__item p {
        font-size: clamp(14px, 3.5vw, 16px);
        line-height: 1.5;
    }
    
    .stats-city {
        padding: 40px 0;
        margin: 30px 0;
    }
    
    .stats-city h2 {
        font-size: clamp(24px, 7vw, 28px);
        margin-bottom: 30px;
    }
    
    .stats__grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 0 15px;
    }
    
    .stat-item {
        padding: 20px 16px;
        margin: 0 5px;
    }
    
    .stat-number {
        font-size: clamp(2.2em, 10vw, 2.8em);
        margin-bottom: 8px;
    }
    
    .stat-label {
        font-size: clamp(13px, 3.5vw, 15px);
    }
}

/* Очень маленькие экраны (360px и меньше) */
@media (max-width: 360px) {
    .city-specific {
        padding: 30px 0;
        margin: 20px 0;
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
    }
    
    .city-specific h2 {
        font-size: clamp(20px, 8vw, 24px);
        margin-bottom: 25px;
    }
    
    .city-info__grid {
        gap: 20px;
        margin: 0 10px;
        margin-top: 20px;
    }
    
    .city-info__item {
        padding: 16px 12px;
        margin: 0 2px;
    }
    
    .city-info__item h3 {
        font-size: clamp(16px, 6vw, 18px);
        margin-bottom: 10px;
    }
    
    .city-info__item p {
        font-size: clamp(13px, 4vw, 15px);
    }
    
    .stats-city {
        padding: 30px 0;
        margin: 20px 0;
    }
    
    .stats-city h2 {
        font-size: clamp(20px, 8vw, 24px);
        margin-bottom: 25px;
    }
    
    .stats__grid {
        gap: 16px;
        margin: 0 10px;
    }
    
    .stat-item {
        padding: 16px 12px;
        margin: 0 2px;
    }
    
    .stat-number {
        font-size: clamp(2em, 12vw, 2.5em);
    }
    
    .stat-label {
        font-size: clamp(12px, 4vw, 14px);
    }
}

/* Ландшафтная ориентация на мобильных */
@media (max-height: 500px) and (orientation: landscape) {
    .city-specific {
        padding: 30px 0;
        margin: 20px 0;
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
    }
    
    .stats-city {
        padding: 30px 0;
        margin: 20px 0;
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
    }
    
    .city-info__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
    }
    
    .stats__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
    }
}

/* Улучшения для тач-устройств */
@media (hover: none) and (pointer: coarse) {
    .city-info__item,
    .stat-item {
        transition: none;
    }
    
    .city-info__item:active,
    .stat-item:active {
        transform: scale(0.98);
    }
}