/* --- Сброс и Переменные --- */
:root {
    /* Оптимизированный набор шрифтов */
    --font-main: 'Manrope', 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bg-color: #F3F5F9;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --primary-color: #111827;
    --accent-blue: #2563EB;
    
    /* Трендовые градиенты */
    --gradient-teal: linear-gradient(135deg, #0D9488 0%, #0F766E 100%);
    --gradient-orange: linear-gradient(135deg, #EA580C 0%, #C2410C 100%);
    
    /* Градиенты карточек */
    --gradient-blue: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    --gradient-mint: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    --gradient-dark: linear-gradient(145deg, #1E293B 0%, #0F172A 100%);
    
    /* Доп. градиенты */
    --gradient-yellow: linear-gradient(135deg, #D97706 0%, #B45309 100%);
    --gradient-coral: linear-gradient(135deg, #EA580C 0%, #C2410C 100%);
    --gradient-cyan: linear-gradient(135deg, #0891B2 0%, #0E7490 100%);
    --gradient-indigo: linear-gradient(135deg, #4F46E5 0%, #4338CA 100%);
    --gradient-violet: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
    --gradient-rose: linear-gradient(135deg, #E11D48 0%, #BE123C 100%);
    
    --gradient-emerald: linear-gradient(135deg, #059669 0%, #047857 100%);
    --gradient-fuchsia: linear-gradient(135deg, #C026D3 0%, #A21CAF 100%);
    --gradient-amber: linear-gradient(135deg, #D97706 0%, #B45309 100%);
    
    --radius-lg: 24px;
    --radius-pill: 999px;
    
    /* Тени */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.08);
    --shadow-float: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
    --text-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.15);
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    -webkit-tap-highlight-color: transparent; 
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    min-height: 100dvh; 
    display: flex;
    flex-direction: column;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* ==========================================================================
   ШАПКА (ДИЗАЙН 2026: Фокус, Контраст, Доступность)
   ========================================================================== */
.header { 
    padding: 20px 0;
    background: transparent; 
    margin-bottom: 24px;
    position: relative;
    z-index: 100;
}

.header__container { 
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    gap: 24px; 
}

.brand-wrapper { 
    display: flex; 
    align-items: center; 
    flex-shrink: 0; 
}

.logo { 
    font-size: 26px; 
    font-weight: 800; 
    color: var(--text-primary); 
    text-decoration: none; 
    letter-spacing: -0.03em; 
    line-height: 1; 
}

.btn {
    padding: 12px 20px; border-radius: 14px; font-weight: 700; font-size: 14px;
    cursor: pointer; border: none; text-decoration: none; display: inline-flex;
    align-items: center; justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); white-space: nowrap;
}

.btn--primary { background-color: var(--primary-color); color: #fff; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.btn:active { transform: translateY(0); }

/* --- CTA Разработка (Лидогенерация) --- */
.header-cta { 
    gap: 8px; 
    padding: 12px 20px; 
    border-radius: 14px; 
    font-size: 14.5px; 
}
.header-cta i { 
    font-size: 18px; 
}

/* ==========================================================================
   ПОИСК (FOCAL POINT)
   ========================================================================== */
.search-bar { flex-grow: 1; max-width: 560px; position: relative; margin: 0 auto; }

.search-wrapper { 
    position: relative; 
    width: 100%; 
    display: flex; 
    align-items: center; 
}

.search-bar input {
    width: 100%; 
    padding: 14px 56px 14px 44px;
    border-radius: 14px; 
    border: 1px solid rgba(0,0,0,0.08); 
    background: #ffffff; 
    font-family: inherit; 
    font-size: 15px; 
    font-weight: 500; 
    color: var(--text-primary);
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1); 
    outline: none; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.02); 
}

.search-bar input::placeholder { color: #94a3b8; font-weight: 400; }

.search-bar input:focus { 
    border-color: var(--accent-blue); 
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1), 0 4px 12px rgba(0,0,0,0.05); 
}

.search-icon-input { 
    position: absolute; 
    left: 16px; 
    top: 50%; 
    transform: translateY(-50%); 
    color: #94a3b8; 
    font-size: 18px; 
    pointer-events: none; 
    transition: color 0.2s; 
    z-index: 2;
}

.search-bar input:focus ~ .search-icon-input { 
    color: var(--accent-blue); 
}

.search-shortcut {
    position: absolute; 
    right: 12px; 
    top: 50%; 
    transform: translateY(-50%);
    display: flex; 
    gap: 4px; 
    pointer-events: none; 
    z-index: 2;
}

.search-shortcut kbd {
    background: #f8fafc; 
    border: 1px solid #e2e8f0; 
    border-radius: 6px;
    padding: 2px 6px; 
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px; 
    font-weight: 600; 
    color: #64748b; 
    box-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

.search-results {
    position: absolute; top: calc(100% + 12px); left: 0; width: 100%;
    max-height: 400px; overflow-y: auto; background: #fff;
    border-radius: 20px; box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
    opacity: 0; visibility: hidden; transform: translateY(-10px) scale(0.98);
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1); z-index: 9999; padding: 8px 0;
    -webkit-overflow-scrolling: touch; 
}
.search-results.active { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.search-item {
    display: flex; align-items: center; gap: 14px; padding: 12px 20px;
    text-decoration: none; color: var(--text-primary);
    transition: background 0.1s; border-bottom: 1px solid rgba(0,0,0,0.03);
}
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: #F9FAFB; }
.search-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.search-info h4 { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.search-info span { font-size: 13px; color: var(--text-secondary); opacity: 0.8; }
.no-results { padding: 20px; text-align: center; color: var(--text-secondary); font-size: 14px; }

/* --- Адаптив Header --- */
@media (max-width: 900px) {
    .header__container { display: grid; grid-template-columns: 1fr auto; gap: 16px 20px; }
    .brand-wrapper { grid-column: 1; }
    .header-cta { grid-column: 2; padding: 10px 16px; font-size: 13.5px; }
    .search-bar { grid-column: 1 / -1; width: 100%; max-width: 100%; order: 3; }
    .search-shortcut { display: none; } 
    .search-bar input { padding-right: 16px; } 
}
@media (max-width: 480px) {
    .logo { font-size: 22px; }
    .header { padding: 16px 0; margin-bottom: 16px; }
    .search-bar input { font-size: 16px; padding-left: 44px; }
}

/* --- Контент --- */
.main { padding-top: 10px; padding-bottom: 80px; flex-grow: 1; }

/* --- BENTO GRID --- */
.bento-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .bento-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .bento-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(180px, auto); gap: 24px; } }

.card {
    background: #fff; border-radius: var(--radius-lg); padding: 24px;
    display: flex; flex-direction: column; justify-content: flex-start; gap: 16px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255,255,255,0.5); box-shadow: var(--shadow-soft);
    position: relative; overflow: hidden; cursor: pointer; text-decoration: none; color: inherit;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.card h3, .card h2 { font-size: 18px; font-weight: 700; margin: 0; line-height: 1.3; color: inherit; }
.card p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; margin: 0; font-weight: 500; }

.card__icon-wrapper {
    width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    background: #F3F4F6; color: var(--text-primary); flex-shrink: 0;
}

/* --- СТИЛИ СЛОТОВ BENTO --- */
.card--featured { background: var(--gradient-blue); color: #fff; border: none; }
.card--featured h3, .card--featured h2 { font-size: 22px; color: #fff !important; margin-bottom: 4px; text-shadow: var(--text-shadow-sm); }
.card--featured p { color: #fff !important; font-size: 15px; max-width: 90%; font-weight: 500; opacity: 1; text-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.card--featured .card__icon-wrapper { 
    background: rgba(255,255,255,0.2); color: #fff; width: 56px; height: 56px; 
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.card__action { margin-top: auto; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: #fff; }

@media (min-width: 1024px) { 
    .card--featured { grid-column: span 2; grid-row: span 2; }
    .card--wide { grid-column: span 2; }
    .card--dark { grid-column: span 2; }
}
@media (min-width: 768px) { .card--wide-bottom { grid-column: 1 / -1; } }

.card--wide .card__top { display: flex; align-items: center; gap: 16px; width: 100%; }

.card--mint { background: var(--gradient-mint); }
.card--mint h3, .card--mint h2 { color: #064E3B; }
.card--mint p { color: #065F46; font-weight: 600; }
.card--mint .card__icon-wrapper { 
    background: #FFFFFF; color: #047857; box-shadow: 0 4px 12px rgba(6, 78, 59, 0.15); 
}

.card--dark { background: var(--gradient-dark); border: 1px solid rgba(255, 255, 255, 0.08); }
.card--dark h3, .card--dark h2, .premium-title { color: #fff !important; text-shadow: var(--text-shadow-sm); }
.card--dark p, .premium-desc { color: #E2E8F0 !important; font-weight: 500; }
.card--dark .card__icon-wrapper--premium {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%); color: #fff; border-radius: 14px;
    width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3); flex-shrink: 0;
}
.card--dark .card__content-row { display: flex; gap: 16px; align-items: flex-start; padding-right: 40px; position: relative; z-index: 2; min-width: 0; }
.card--dark .card__action-arrow { position: absolute; bottom: 24px; right: 24px; color: rgba(255, 255, 255, 0.6); }

/* --- УНИВЕРСАЛЬНЫЕ ЦВЕТНЫЕ КАРТОЧКИ --- */
.card--yellow, .card--coral, .card--cyan, .card--indigo, 
.card--violet, .card--rose, .card--teal, .card--orange, 
.card--emerald, .card--fuchsia, .card--amber { color: #fff; }

.card--yellow { background: var(--gradient-yellow); }
.card--coral { background: var(--gradient-coral); }
.card--cyan { background: var(--gradient-cyan); }
.card--indigo { background: var(--gradient-indigo); }
.card--violet { background: var(--gradient-violet); }
.card--rose { background: var(--gradient-rose); }
.card--teal { background: var(--gradient-teal); }
.card--orange { background: var(--gradient-orange); }
.card--emerald { background: var(--gradient-emerald); }
.card--fuchsia { background: var(--gradient-fuchsia); }
.card--amber { background: var(--gradient-amber); }

.card--yellow h2, .card--coral h2, .card--cyan h2, .card--indigo h2, 
.card--violet h2, .card--rose h2, .card--teal h2, .card--orange h2, 
.card--emerald h2, .card--fuchsia h2, .card--amber h2 { 
    color: #fff; text-shadow: var(--text-shadow-sm); 
}
.card--yellow p, .card--coral p, .card--cyan p, .card--indigo p, 
.card--violet p, .card--rose p, .card--teal p, .card--orange p, 
.card--emerald p, .card--fuchsia p, .card--amber p { 
    color: #fff; opacity: 1; font-weight: 500; text-shadow: 0 1px 2px rgba(0,0,0,0.1); 
}
.card--yellow .card__icon-wrapper, .card--coral .card__icon-wrapper, .card--cyan .card__icon-wrapper,
.card--indigo .card__icon-wrapper, .card--violet .card__icon-wrapper, .card--rose .card__icon-wrapper,
.card--teal .card__icon-wrapper, .card--orange .card__icon-wrapper, .card--emerald .card__icon-wrapper,
.card--fuchsia .card__icon-wrapper, .card--amber .card__icon-wrapper { 
    background: rgba(255,255,255,0.2); color: #fff; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}

/* --- Навигация и Каталог --- */
.catalog-section { padding-top: 40px; padding-bottom: 60px; }

.category-nav {
    display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; margin-bottom: 32px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px;
    cursor: grab;
    user-select: none;
    -webkit-overflow-scrolling: touch; 
}
.category-nav::-webkit-scrollbar { display: none; }
.category-nav.active { cursor: grabbing; }

.cat-pill {
    padding: 10px 20px; border-radius: 99px; background: #fff; border: 1px solid rgba(0,0,0,0.06);
    color: var(--text-secondary); font-size: 14px; font-weight: 600; cursor: pointer;
    white-space: nowrap; transition: all 0.2s; box-shadow: 0 2px 4px rgba(0,0,0,0.02); font-family: inherit;
    flex-shrink: 0;
}
.cat-pill:hover { border-color: #D1D5DB; color: var(--text-primary); transform: translateY(-1px); }
.cat-pill.active { background: var(--text-primary); color: #fff; border-color: var(--text-primary); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

.catalog-group { margin-bottom: 48px; transition: opacity 0.3s ease; }
.group-title { font-size: 22px; font-weight: 800; margin-bottom: 24px; color: var(--text-primary); display: flex; align-items: center; letter-spacing: -0.02em; }
.group-count {
    font-size: 12px; font-weight: 700; min-width: 26px; height: 26px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--text-primary); color: #fff; margin-left: 12px; padding: 0 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15); transform: translateY(-1px);
}
.group-title::after { content: ''; flex-grow: 1; height: 1px; background: linear-gradient(90deg, #E5E7EB 0%, transparent 100%); margin-left: 16px; opacity: 0.6; }

/* --- СТИЛИ КАРТОЧЕК КАТЕГОРИЙ (MINI-GRID) --- */
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
@media (max-width: 600px) { .mini-grid { grid-template-columns: 1fr; } }

.mini-card {
    background: #fff; 
    border-radius: 20px; 
    padding: 16px; 
    display: flex; 
    align-items: flex-start; 
    gap: 14px; 
    text-decoration: none; 
    border: 1px solid rgba(0,0,0,0.04); 
    transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.25s ease; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    max-width: 100%; 
    overflow: hidden;
    cursor: pointer;
}

.mini-card:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 8px 24px rgba(0,0,0,0.08); 
    border-color: rgba(0,0,0,0.08); 
}

.mini-icon { 
    width: 40px; 
    height: 40px; 
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--text-primary); 
    background: #F3F4F6; 
    flex-shrink: 0; 
    margin-top: 2px; 
}

.mini-info { 
    flex-grow: 1; 
    min-width: 0; 
    display: flex;
    flex-direction: column;
    gap: 4px; 
}

.mini-info h4, .mini-info h3 { 
    font-size: 15px; 
    font-weight: 700; 
    color: var(--text-primary); 
    margin: 0; 
    line-height: 1.35; 
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
}

.mini-info span { 
    font-size: 13px; 
    color: var(--text-secondary); 
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
}

.expand-btn {
    width: 100%; margin-top: 20px; padding: 14px; background: #fff; border: 1px dashed #D1D5DB; border-radius: 16px;
    color: var(--text-secondary); font-size: 14px; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.2s; font-family: inherit;
}
.expand-btn:hover { background: #F9FAFB; border-color: var(--accent-blue); color: var(--accent-blue); }

/* ==========================================================================
   ГЛОБАЛЬНЫЕ ХЛЕБНЫЕ КРОШКИ (BREADCRUMBS)
   ========================================================================== */
.global-breadcrumbs {
    margin-bottom: 12px;
}

.global-breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    flex-wrap: wrap;
}

.global-breadcrumbs a {
    color: #64748b; 
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.global-breadcrumbs a:hover {
    color: #0f172a; 
}

.global-breadcrumbs .sep {
    display: flex;
    align-items: center;
    color: #2563EB; 
}

.global-breadcrumbs .sep svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 1.5px;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.global-breadcrumbs .current {
    color: #111827; 
    font-weight: 600;
}

/* --- Футер --- */
.footer { background: #111827; color: #D1D5DB; padding: 60px 0 24px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 40px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-logo { color: #fff; font-size: 24px; font-weight: 800; text-decoration: none; display: block; margin-bottom: 16px; }
.footer-desc { font-size: 14px; line-height: 1.6; max-width: 300px; opacity: 0.7; color: #ffffff; }
.footer-col h4, .footer-col h3 { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 20px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #9CA3AF; text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #ffffff; }

/* --- Стили для страниц калькуляторов --- */
.calc-box { background: #fff; padding: 30px; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); max-width: 600px; margin: 0 auto; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px; color: var(--text-secondary); text-decoration: none; font-weight: 600; font-size: 14px; }
.back-link:hover { color: var(--accent-blue); }

/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed; bottom: 24px; right: 24px; max-width: 360px; width: calc(100% - 48px); z-index: 9999;
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4); padding: 20px; border-radius: 24px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    display: none; flex-direction: column; gap: 16px; 
}
@keyframes slideUpFade { from { opacity: 0; transform: translateY(40px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
.cookie-text { font-size: 13px; line-height: 1.5; color: var(--text-secondary); font-weight: 500; }
.cookie-actions { display: flex; gap: 12px; }
.btn--cookie { flex: 1; background: var(--text-primary); color: #fff; padding: 10px; border-radius: 12px; font-size: 13px; font-weight: 700; text-align: center; cursor: pointer; transition: all 0.2s; border: none; }
.btn--cookie:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.btn--cookie-outline { flex: 1; background: transparent; color: var(--text-primary); border: 1px solid rgba(0,0,0,0.1); padding: 10px; border-radius: 12px; font-size: 13px; font-weight: 600; text-align: center; cursor: pointer; transition: all 0.2s; }
.btn--cookie-outline:hover { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.2); }

@media (max-width: 480px) { 
    .cookie-banner { bottom: 16px; right: 16px; left: 16px; width: auto; } 
}

/* --- FIX PAGINATION --- */
.hidden-item { display: none !important; }
.revealed-item { display: flex !important; animation: fadeInSlide 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }

@keyframes fadeInSlide { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   ADVERTISING STYLES (ОПТИМИЗИРОВАННЫЕ ОТСТУПЫ)
   ========================================================================== */
.cookie-banner {
    bottom: env(safe-area-inset-bottom);
    transition: bottom 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body.has-floor-ad .cookie-banner {
    bottom: calc(120px + env(safe-area-inset-bottom)) !important;
}

.ad-after-calc-wrapper {
    margin: 40px auto 20px auto; display: flex; justify-content: center; width: 100%; max-width: 100%; clear: both; min-height: 250px;
}

/* Рекламный блок СРАЗУ ПОСЛЕ крошек (Мобильный) */
.ad-mobile-top-wrapper {
    margin: 4px auto 16px auto; 
    display: none; justify-content: center; align-items: center; width: 100%; 
    min-height: 50px; max-height: 100px; /* <-- Твоя оригинальная высота */
    overflow: hidden; background: transparent;
}
@media (max-width: 900px) { .ad-mobile-top-wrapper { display: flex; } }

/* Рекламный блок СРАЗУ ПОСЛЕ крошек (Десктопный) */
.ad-desktop-top-wrapper {
    margin: 4px auto 16px auto; 
    display: none; justify-content: center; align-items: center; width: 100%; 
    min-height: 90px; max-height: 120px; /* <-- Твоя оригинальная высота */
    overflow: hidden;
}
@media (min-width: 901px) { .ad-desktop-top-wrapper { display: flex; } }