/**
 * Стили раздела «Интеллектуальная карта платных парковок»
 * @package reboot-child
 */

.mos77-parking-page {
    padding: 24px 0 60px;
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Хлебные крошки */
.mos77-parking-page .breadcrumb {
    margin-bottom: 20px;
    font-size: 13.5px;
    color: #64748b;
}
.mos77-parking-page .breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}
.mos77-parking-page .breadcrumb-sep {
    margin: 0 8px;
    color: #cbd5e1;
}

/* 1. Hero-секция */
.pk-hero {
    margin-bottom: 28px;
}
.pk-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 9999px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
}
.pk-hero__title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}
.pk-hero__subtitle {
    font-size: 16.5px;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 20px;
    max-width: 860px;
}

/* Табы городов */
.pk-city-tabs {
    position: relative;
    margin-top: 16px;
    overflow: hidden;
}
.pk-city-tabs__scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}
.pk-city-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.pk-city-tab:hover {
    border-color: #93c5fd;
    background: #f8fafc;
    color: #1d4ed8;
}
.pk-city-tab.is-active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* 2. Live-статус баннер */
.pk-live-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 24px 28px;
    border-radius: 20px;
    margin-bottom: 36px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
    border: 1px solid;
    flex-wrap: wrap;
}
.pk-live-banner.status--free {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    border-color: #a7f3d0;
}
.pk-live-banner.status--paid {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fde68a;
}
.pk-live-banner.status--partial {
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border-color: #bfdbfe;
}
.pk-live-banner.status--night-tariff {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border-color: #ddd6fe;
}

.pk-live-banner__main {
    flex: 1;
    min-width: 280px;
}
.pk-live-banner__indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.pk-live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pkPulse 2s infinite;
}
.status--free .pk-live-dot { background: #10b981; }
.status--paid .pk-live-dot { background: #f59e0b; }
.status--partial .pk-live-dot { background: #2563eb; }
.status--night-tariff .pk-live-dot { background: #8b5cf6; }

@keyframes pkPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.pk-live-pill {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(255,255,255,0.7);
}
.status--free .pk-live-pill { color: #047857; }
.status--paid .pk-live-pill { color: #b45309; }
.status--partial .pk-live-pill { color: #1d4ed8; }

.pk-live-clock {
    font-size: 13px;
    color: #64748b;
}
.pk-live-banner__title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
    line-height: 1.3;
}
.pk-live-banner__subtitle {
    font-size: 15px;
    color: #334155;
    margin: 0;
    line-height: 1.5;
}

.pk-live-banner__facts {
    display: flex;
    gap: 16px;
}
.pk-fact {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    padding: 12px 18px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.pk-fact__label {
    display: block;
    font-size: 11.5px;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 2px;
}
.pk-fact__val {
    display: block;
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
}
.pk-fact__val--warn {
    color: #dc2626;
}

/* 3. Секция карты */
.pk-section {
    margin-bottom: 48px;
}
.pk-section__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 18px;
    gap: 16px;
    flex-wrap: wrap;
}
.pk-section__title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}
.pk-section__desc {
    font-size: 15px;
    color: #64748b;
    margin: 0;
}
.pk-btn-geo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.pk-btn-geo:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #2563eb;
}

.pk-map-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.pk-filter-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.pk-filter-btn {
    padding: 8px 14px;
    border-radius: 10px;
    background: #f1f5f9;
    border: 1px solid transparent;
    color: #475569;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.pk-filter-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.pk-filter-btn.is-active {
    background: #0f172a;
    color: #ffffff;
}
.pk-filter-btn--green.is-active {
    background: #059669;
}
.pk-search-box {
    flex: 1;
    max-width: 320px;
}
.pk-search-input {
    width: 100%;
    padding: 9px 14px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    font-size: 13.5px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.pk-search-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.pk-map-wrapper {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
}

/* Легенда тарифов */
.pk-legend {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: #f8fafc;
    border-radius: 12px;
    margin-top: 12px;
    border: 1px solid #e2e8f0;
    flex-wrap: wrap;
}
.pk-legend__title {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
}
.pk-legend__items {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.pk-legend__item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #334155;
}
.pk-legend__color {
    width: 12px;
    height: 12px;
    border-radius: 4px;
}

/* 4. Интеллектуальный калькулятор */
.pk-calc-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}
.pk-badge--blue {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    background: #dbeafe;
    color: #1e40af;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}
.pk-calc-card__title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
}
.pk-calc-card__desc {
    font-size: 15px;
    color: #64748b;
    line-height: 1.55;
    margin: 0 0 24px;
}
.pk-calc-result-box {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
}
.pk-calc-result-box__label {
    font-size: 16px;
    font-weight: 600;
    color: #475569;
}
.pk-calc-result-box__val {
    font-size: 38px;
    font-weight: 900;
    color: #2563eb;
    letter-spacing: -0.02em;
}
.pk-calc-breakdown {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

.pk-calc-card__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}
.pk-form-row, .pk-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pk-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.pk-label {
    font-size: 13.5px;
    font-weight: 700;
    color: #334155;
}
.pk-select, .pk-input {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    font-size: 14.5px;
    color: #0f172a;
    background: #ffffff;
    outline: none;
    box-sizing: border-box;
}
.pk-select:focus, .pk-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}
.pk-sms-template {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f1f5f9;
    border-radius: 12px;
    font-size: 13px;
    flex-wrap: wrap;
}
.pk-sms-template__label {
    font-weight: 600;
    color: #475569;
}
.pk-sms-code {
    padding: 3px 8px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: monospace;
    font-size: 13px;
    color: #0f172a;
    font-weight: 700;
}
.pk-btn-copy {
    margin-left: auto;
    padding: 4px 10px;
    border-radius: 6px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.pk-btn-copy:hover {
    opacity: 0.9;
}

/* 5. Карточки парковочных зон */
.pk-zones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.pk-zone-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}
.pk-zone-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.pk-zone-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.pk-zone-number {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: 0.02em;
}
.pk-zone-price {
    font-size: 14.5px;
    font-weight: 800;
    color: #0f172a;
}
.pk-zone-card__name {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
    line-height: 1.35;
}
.pk-zone-card__addr, .pk-zone-card__metro {
    font-size: 13.5px;
    color: #64748b;
    margin: 0 0 6px;
    line-height: 1.4;
}
.pk-zone-card__free {
    font-size: 13px;
    color: #059669;
    font-weight: 600;
    margin: 8px 0;
    padding: 6px 10px;
    background: #ecfdf5;
    border-radius: 8px;
}
.pk-zone-card__note {
    font-size: 12.5px;
    color: #64748b;
    margin: 0 0 16px;
    line-height: 1.45;
    flex: 1;
}
.pk-zone-card__actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}
.pk-card-btn {
    flex: 1;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    transition: all 0.15s;
}
.pk-card-btn:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #2563eb;
}
.pk-card-btn--primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}
.pk-card-btn--primary:hover {
    background: #1d4ed8;
    color: #ffffff;
}

/* 6. Перехватывающие парковки */
.pk-intercept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 18px;
}
.pk-intercept-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.pk-intercept-card__icon {
    font-size: 26px;
}
.pk-intercept-card__content {
    flex: 1;
}
.pk-intercept-card__metro {
    display: block;
    font-size: 15px;
    color: #0f172a;
    font-weight: 700;
}
.pk-intercept-card__cap {
    display: block;
    font-size: 12.5px;
    color: #64748b;
}
.pk-intercept-card__note {
    display: block;
    font-size: 12px;
    color: #94a3b8;
}
.pk-intercept-card__badge {
    font-size: 13px;
    font-weight: 800;
    color: #059669;
    padding: 4px 10px;
    background: #d1fae5;
    border-radius: 8px;
}

/* 7. Гид по оплате */
.pk-guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.pk-guide-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.pk-guide-card--warn {
    border-color: #fed7aa;
    background: linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
}
.pk-guide-card__icon {
    font-size: 32px;
    margin-bottom: 12px;
}
.pk-guide-card__title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
}
.pk-guide-card__text {
    font-size: 14px;
    color: #475569;
    line-height: 1.55;
    margin: 0 0 14px;
}
.pk-guide-card__apps {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.pk-app-link {
    display: inline-block;
    padding: 6px 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    color: #1d4ed8;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
}
.pk-app-link:hover {
    background: #dbeafe;
}
.pk-sms-sample code {
    display: block;
    padding: 8px 12px;
    background: #f1f5f9;
    border-radius: 8px;
    font-family: monospace;
    font-size: 13px;
    color: #0f172a;
    margin-bottom: 6px;
}
.pk-guide-card__hint {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

/* 8. FAQ */
.pk-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}
.pk-faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.pk-faq-item[open] {
    border-color: #93c5fd;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.05);
}
.pk-faq-q {
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pk-faq-q::-webkit-details-marker {
    display: none;
}
.pk-faq-arrow {
    font-size: 18px;
    color: #64748b;
    transition: transform 0.2s;
}
.pk-faq-item[open] .pk-faq-arrow {
    transform: rotate(180deg);
}
.pk-faq-a {
    padding: 0 20px 18px;
    font-size: 14.5px;
    color: #475569;
    line-height: 1.65;
}
.pk-faq-a p {
    margin: 0;
}

/* 9. Перелинковка по городам */
.pk-cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 18px;
}
.pk-city-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    text-decoration: none;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}
.pk-city-card:hover {
    border-color: #93c5fd;
    background: #f8fafc;
    color: #1d4ed8;
    transform: translateX(3px);
}
.pk-city-card__icon {
    font-size: 20px;
}
.pk-city-card__name {
    flex: 1;
}
.pk-city-card__arrow {
    color: #94a3b8;
    font-weight: 700;
}

/* Кастомные балуны Leaflet на карте */
.leaflet-popup-content-wrapper {
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 4px;
}
.pk-popup {
    font-family: 'Inter', sans-serif;
    color: #0f172a;
    padding: 6px;
    min-width: 220px;
}
.pk-popup__badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 6px;
}
.pk-popup__title {
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 4px;
    color: #0f172a;
}
.pk-popup__price {
    font-size: 14px;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 6px;
}
.pk-popup__addr {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
}
.pk-popup__btn {
    display: block;
    width: 100%;
    padding: 7px;
    text-align: center;
    background: #2563eb;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    box-sizing: border-box;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .pk-hero__title { font-size: 24px; }
    .pk-live-banner { padding: 18px 20px; }
    .pk-live-banner__title { font-size: 20px; }
    .pk-live-banner__facts { width: 100%; justify-content: space-between; }
    .pk-fact { flex: 1; padding: 10px 8px; }
    .pk-fact__val { font-size: 15px; }
    .pk-calc-card { grid-template-columns: 1fr; padding: 22px; gap: 20px; }
    .pk-map-container { height: 380px !important; }
    .pk-search-box { max-width: 100%; }
}
