* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #fffbe6;
    color: #333;
    line-height: 1.55;
}

a {
    color: #0f5f8f;
}

header {
    background: linear-gradient(135deg, #6fc7ec, #2f9ed2);
    color: #fff;
    text-align: center;
    padding: 18px 10px 26px;
}

header p {
    max-width: 780px;
    margin: 10px auto 0;
}

.top-nav {
    max-width: 1080px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 0;
    margin: 0;
}

.menu li a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.menu li a:hover {
    text-decoration: underline;
}

.lang-switch {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
}

.lang-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, .22);
    border: 1px solid rgba(255, 255, 255, .55);
}

.lang-switch a.active {
    background: #ffd700;
    color: #1f2937;
    border-color: #ffd700;
}

h1 {
    font-size: 24px;
    margin: 8px 0 0;
}

h2 {
    font-size: 20px;
    margin-top: 0;
}

h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.container {
    width: min(1000px, calc(100% - 24px));
    margin: 0 auto;
}

.content-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 16px;
    padding: 18px;
    margin: 18px auto;
    box-shadow: 0 8px 22px rgba(0,0,0,.06);
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    margin: 10px auto 15px;
    border-collapse: collapse;
    background: #fff;
    font-size: 14px;
}

table th,
table td {
    border: 1px solid #ddd;
    padding: 9px;
    text-align: center;
}

table th {
    background: #eef8fd;
}

.check-address {
    text-align: center;
}

.check-address form {
    display: grid;
    gap: 12px;
    justify-items: center;
}

.check-address label {
    display: grid;
    gap: 6px;
    width: min(340px, 100%);
    text-align: left;
    font-weight: 700;
}

.check-address input,
.check-address select {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
}

button,
.btn,
.page-nav a {
    background: #ffd700;
    color: #1f2937;
    border: none;
    padding: 11px 16px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

button:hover,
.btn:hover,
.page-nav a:hover {
    background: #ffc107;
}

.telegram-button {
    text-align: center;
    margin: 24px 0 4px;
}

.telegram-button a {
    display: inline-block;
    background: #ff6f00;
    color: #fff;
    padding: 13px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 800;
    font-size: 15px;
}

.telegram-button a:hover {
    background: #eb6500;
}

.seo-text {
    max-width: 760px;
    margin: 16px auto;
    text-align: center;
    padding: 0 6px;
    font-size: 15px;
}

.page-nav {
    text-align: center;
    margin: 20px 0;
}

.page-nav a,
.page-nav button {
    margin: 5px;
}

.map-photo {
    text-align: center;
}

.map-photo img {
    width: 100%;
    max-width: 650px;
    border-radius: 14px;
    border: 1px solid #ddd;
    display: block;
    margin: 0 auto;
}

.city-buttons,
.district-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px 0 8px;
}

.district-buttons .btn {
    background: #2f9ed2;
    color: #fff;
}

.district-buttons .btn:hover {
    background: #1c86b8;
}

.faq-item {
    max-width: 780px;
    margin: 14px auto;
    padding: 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.faq-item p {
    margin: 0;
}

.clean-list {
    max-width: 760px;
    margin: 0 auto;
    padding-left: 22px;
}

footer {
    text-align: center;
    padding: 22px 12px;
    max-width: 960px;
    margin: 0 auto;
    font-size: 14px;
}

@media (max-width: 600px) {
    .top-nav {
        align-items: stretch;
        flex-direction: column;
    }

    .menu {
        flex-direction: column;
        gap: 7px;
    }

    h1 {
        font-size: 20px;
    }

    h2 {
        font-size: 18px;
    }

    table {
        font-size: 12px;
    }

    .content-card {
        padding: 14px;
        border-radius: 14px;
    }

    .telegram-button a {
        width: 100%;
    }
}

@media (min-width: 900px) {
    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 23px;
    }

    table {
        font-size: 16px;
    }

    .telegram-button a {
        font-size: 17px;
        padding: 15px 30px;
    }
}

/* ===== Графік відключень світла з JSON ===== */

.outage-card h2 {
    text-align: center;
    margin-bottom: 8px;
}

.schedule-meta {
    margin: 0 auto 12px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.outage-notice {
    max-width: 820px;
    margin: 12px auto 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #eef8fd;
    border: 1px solid #bae6fd;
    color: #0f5f8f;
    text-align: center;
    font-weight: 700;
}

.outage-table {
    border-radius: 12px;
    overflow: hidden;
}

.outage-table th {
    background: #dff4ff;
    color: #0f3754;
}

.outage-table td {
    vertical-align: middle;
}

.outage-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #fff7cc;
    color: #6b4e00;
    font-weight: 800;
    line-height: 1.25;
}

@media (max-width: 600px) {
    .schedule-meta {
        font-size: 13px;
    }

    .outage-notice {
        font-size: 14px;
        padding: 10px;
    }

    .outage-status {
        padding: 5px 8px;
        font-size: 12px;
    }
}


/* ===== Зручний вибір групи відключень ===== */

.group-schedule-controls {
    max-width: 820px;
    margin: 14px auto 16px;
    padding: 14px;
    border-radius: 14px;
    background: #f8fbff;
    border: 1px solid #dbeafe;
}

.group-select-label {
    display: grid;
    gap: 8px;
    font-weight: 800;
    color: #0f3754;
}

.group-select-label select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #b6d9ef;
    border-radius: 10px;
    background: #fff;
    color: #1f2937;
    font-size: 16px;
    font-weight: 700;
}

.group-select-help {
    margin: 10px 0 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.45;
}

.outage-status.status-planned {
    background: #fff7cc;
    color: #6b4e00;
}

.outage-status.status-emergency {
    background: #fee2e2;
    color: #991b1b;
}

.outage-status.status-clear {
    background: #dcfce7;
    color: #166534;
}

.outage-status.status-pending {
    background: #e0f2fe;
    color: #075985;
}

.outage-status.status-maybe {
    background: #fef3c7;
    color: #92400e;
}

.schedule-secondary-times {
    display: block;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(15, 23, 42, .18);
    color: #64748b;
    font-size: .92em;
    line-height: 1.45;
    font-weight: 700;
}

.schedule-secondary-times.is-primary {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    color: #92400e;
}

.map-photo.is-missing {
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #9ec9e2;
    border-radius: 14px;
    background: #eef8fd;
    color: #0f5f8f;
    font-weight: 800;
    padding: 18px;
    text-align: center;
}

.map-photo.is-missing::before {
    content: attr(data-fallback);
}

.seo-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 16px;
}

.seo-mini-card {
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 14px;
}

.seo-mini-card h3 {
    margin-top: 0;
    color: #0f3754;
}

@media (max-width: 600px) {
    .group-schedule-controls {
        padding: 12px;
    }

    .group-select-label select {
        font-size: 15px;
    }
}

/* ===== Патч 1: SEO-страницы городов и групп ===== */
.menu li a.is-active {
    color: #fff7cc;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    margin: 16px auto 0;
    color: #64748b;
    font-size: 14px;
}

.breadcrumbs a {
    color: #0f5f8f;
    font-weight: 700;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.city-hero-card {
    text-align: center;
}

.group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 10px;
    margin: 18px 0 8px;
}

.group-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid #b6d9ef;
    background: linear-gradient(135deg, #f8fcff, #e8f7ff);
    color: #0f3754;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(15, 95, 143, .08);
}

.group-btn:hover,
.group-btn.is-current {
    background: linear-gradient(135deg, #2f9ed2, #0f5f8f);
    color: #fff;
    border-color: #0f5f8f;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.btn-secondary {
    background: #e0f2fe;
    color: #075985;
}

.btn-secondary:hover {
    background: #bae6fd;
}

.seo-schedule-table a {
    color: #0f5f8f;
    text-decoration: none;
}

.seo-schedule-table a:hover {
    text-decoration: underline;
}

.single-group-card {
    max-width: 760px;
    margin: 16px auto;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fcff, #ffffff);
    border: 1px solid #dbeafe;
    box-shadow: 0 10px 24px rgba(15, 95, 143, .08);
    text-align: center;
}

.single-group-main,
.single-group-time {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
}

.single-group-main span,
.single-group-time span {
    color: #64748b;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.single-group-main strong {
    font-size: clamp(34px, 8vw, 62px);
    color: #0f3754;
    line-height: 1;
}

.single-group-time strong {
    font-size: clamp(22px, 5vw, 34px);
    color: #1f2937;
    line-height: 1.25;
}

.single-group-status {
    margin: 12px 0;
}

.seo-city-block p {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 600px) {
    .group-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .group-btn {
        min-height: 46px;
        padding: 10px 8px;
        border-radius: 12px;
    }

    .breadcrumbs {
        font-size: 13px;
    }

    .single-group-card {
        padding: 14px;
    }
}


/* ===== Патч 2: страницы воды и водные карточки ===== */
.water-entry-card {
    border-color: #b6e6ff;
    background: linear-gradient(135deg, #f8fcff, #eef9ff);
}

.btn-water {
    background: linear-gradient(135deg, #2f9ed2, #0f5f8f);
    color: #fff;
}

.btn-water:hover {
    background: linear-gradient(135deg, #0f5f8f, #083d62);
}

.water-hero-card {
    background: linear-gradient(135deg, #ffffff, #f0faff);
}

.water-empty {
    padding: 18px;
    border-radius: 16px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #14532d;
    text-align: center;
}

.water-empty p {
    margin-bottom: 0;
}

.water-list {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.water-card {
    padding: 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #dbeafe;
    box-shadow: 0 8px 20px rgba(15, 95, 143, .08);
}

.water-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.water-card h2 {
    margin: 0;
    color: #0f3754;
}

.water-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin-top: 14px;
    color: #475569;
}

.water-meta span {
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.water-updates {
    display: grid;
    gap: 10px;
    padding-left: 0;
    list-style: none;
}

.water-updates li {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    padding: 12px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.water-updates small {
    color: #64748b;
}

@media (max-width: 600px) {
    .water-card {
        padding: 14px;
    }

    .water-meta {
        grid-template-columns: 1fr;
    }
}

/* ===== Патч 3: финальное SEO, FAQ, реклама и мобильная доводка ===== */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

img,
video,
iframe {
    max-width: 100%;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.info-grid > div {
    padding: 16px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.info-grid strong {
    display: inline-block;
    margin-bottom: 6px;
    color: #0f3754;
    font-size: 16px;
}

.info-grid p {
    margin: 0;
    color: #475569;
}

.faq-card .faq-list {
    display: grid;
    gap: 10px;
}

.faq-card details {
    padding: 14px 16px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.faq-card summary {
    cursor: pointer;
    font-weight: 900;
    color: #0f3754;
}

.faq-card details[open] {
    background: #eef8fd;
    border-color: #bae6fd;
}

.faq-card details p {
    margin: 10px 0 0;
    color: #334155;
}

.ad-strip {
    width: min(1000px, calc(100% - 24px));
    margin: 18px auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ad-box {
    min-height: 92px;
    padding: 18px;
    border-radius: 18px;
    border: 1px dashed #8ecae6;
    background: linear-gradient(135deg, #f8fcff, #e8f7ff);
    color: #0f3754;
    display: grid;
    align-content: center;
    text-align: center;
    box-shadow: 0 8px 22px rgba(15, 95, 143, .06);
}

.ad-box span {
    font-weight: 900;
    font-size: 16px;
}

.ad-box small {
    margin-top: 4px;
    color: #64748b;
}

.ad-box-secondary {
    background: linear-gradient(135deg, #fffdf0, #fff7cc);
    border-color: #facc15;
}

.seo-expanded-block ul {
    max-width: 820px;
    margin: 12px auto 0;
    padding-left: 22px;
}

.seo-expanded-block li {
    margin: 6px 0;
}

.menu a,
.btn,
.group-btn,
.lang-switch a,
.telegram-button a {
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 700px) {
    header {
        padding: 14px 10px 22px;
    }

    .container,
    .ad-strip {
        width: min(100% - 18px, 1000px);
    }

    .ad-strip {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ad-box {
        min-height: 74px;
        padding: 14px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .faq-card details {
        padding: 13px;
    }

    .table-wrapper {
        margin-left: -4px;
        margin-right: -4px;
        padding-bottom: 4px;
    }

    table th,
    table td {
        padding: 8px 6px;
        word-break: normal;
    }
}

@media (max-width: 380px) {
    .group-grid {
        grid-template-columns: 1fr;
    }

    .menu li a {
        font-size: 13px;
    }

    .lang-switch a {
        min-width: 34px;
        height: 28px;
        font-size: 12px;
    }
}

/* ===== Cleanup patch: managed ads without public placeholders ===== */
.managed-ad-slot:empty {
    display: none !important;
}

.ad-custom-html {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 90px;
    display: grid;
    place-items: center;
}

.ad-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 10px auto 0;
    padding: 9px 14px;
    border-radius: 999px;
    background: #0f9bd7;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.ad-link:hover {
    background: #0878ad;
}

/* ===== Пакет 2: доверие, актуальность, источники, Telegram CTA ===== */
.freshness-notice {
    display: grid;
    gap: 5px;
    margin: 14px 0;
    padding: 13px 15px;
    border-radius: 14px;
    border: 1px solid #dbeafe;
    background: #eff6ff;
    color: #1e3a8a;
}

.freshness-notice strong {
    font-size: 15px;
}

.freshness-notice span {
    color: inherit;
    opacity: .9;
}

.freshness-notice.is-fresh {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.freshness-notice.is-warning {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.freshness-notice.is-danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.freshness-notice.is-info {
    border-color: #bae6fd;
    background: #f0f9ff;
    color: #075985;
}

.trust-card {
    background: linear-gradient(135deg, #ffffff, #f8fcff);
    border-color: #cfe9f6;
}

.trust-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
    font-weight: 900;
    font-size: 13px;
}

.source-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.source-card {
    display: grid;
    gap: 5px;
    min-height: 126px;
    padding: 15px;
    border-radius: 16px;
    border: 1px solid #dbeafe;
    background: #ffffff;
    text-decoration: none;
    color: #0f3754;
    box-shadow: 0 6px 16px rgba(15, 95, 143, .05);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.source-card:hover {
    transform: translateY(-2px);
    border-color: #7dd3fc;
    box-shadow: 0 10px 24px rgba(15, 95, 143, .1);
}

.source-card span {
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef8fd;
    color: #075985;
    font-size: 12px;
    font-weight: 900;
}

.source-card strong {
    font-size: 16px;
}

.source-card small {
    color: #475569;
    line-height: 1.45;
}

.telegram-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: linear-gradient(135deg, #fff7ed, #eff6ff);
    border-color: #fed7aa;
}

.telegram-cta-card h2 {
    margin-bottom: 6px;
}

.telegram-cta-card p {
    margin: 0;
    max-width: 660px;
    color: #475569;
}

.telegram-cta-btn {
    white-space: nowrap;
    background: #ff6f00;
    color: #fff;
}

.telegram-cta-btn:hover {
    background: #eb6500;
}

.gas-entry-card,
.gas-hero-card {
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    border-color: #fed7aa;
}

.btn-gas {
    background: #f97316;
    color: #fff;
}

.btn-gas:hover {
    background: #ea580c;
}

.gas-safety-box {
    margin: 16px 0;
    padding: 16px;
    border-radius: 16px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #7c2d12;
}

.gas-safety-box h3 {
    margin-top: 0;
    color: #9a3412;
}

.footer-disclaimer {
    max-width: 840px;
    margin: 0 auto 8px;
    color: #64748b;
    font-size: 13px;
}

@media (max-width: 700px) {
    .telegram-cta-card {
        display: grid;
        text-align: left;
    }

    .telegram-cta-btn {
        width: 100%;
        text-align: center;
    }

    .source-list {
        grid-template-columns: 1fr;
    }
}

/* ===== Пакет 3: глубокие безопасные разделы без поиска по улицам ===== */
.deep-hero-card {
    background: linear-gradient(135deg, #ffffff, #f8fcff);
    border-color: #cfe9f6;
}

.deep-status-grid,
.deep-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.deep-status-card,
.deep-link-card {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #dbeafe;
    background: #f8fafc;
    color: #0f3754;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(15, 95, 143, .05);
}

.deep-status-card strong {
    font-size: clamp(26px, 5vw, 42px);
    line-height: 1;
    color: #0f5f8f;
}

.deep-status-card span,
.deep-link-card small {
    color: #475569;
    line-height: 1.4;
}

.deep-link-card span {
    font-weight: 900;
    font-size: 16px;
}

.deep-link-card:hover,
.deep-link-card.is-current {
    background: linear-gradient(135deg, #2f9ed2, #0f5f8f);
    color: #fff;
    border-color: #0f5f8f;
}

.deep-link-card:hover small,
.deep-link-card.is-current small {
    color: rgba(255,255,255,.88);
}

.sources-page-card .trust-card-head {
    margin-bottom: 14px;
}

.sources-note-list {
    display: grid;
    gap: 10px;
    padding-left: 20px;
}

.sources-note-list li {
    padding-left: 4px;
}

@media (max-width: 600px) {
    .deep-status-grid,
    .deep-link-grid {
        grid-template-columns: 1fr;
    }

    .deep-status-card,
    .deep-link-card {
        padding: 14px;
    }
}

/* ===== Пакет 4: Telegram-воронка и deep-link CTA ===== */
.telegram-funnel-card {
    align-items: stretch;
    background: linear-gradient(135deg, #fff7ed, #eef8ff 55%, #ffffff);
    border: 1px solid #fed7aa;
    position: relative;
    overflow: hidden;
}

.telegram-funnel-card::after {
    content: "";
    position: absolute;
    right: -70px;
    top: -70px;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: rgba(47, 158, 210, .12);
    pointer-events: none;
}

.telegram-cta-main {
    position: relative;
    z-index: 1;
    flex: 1;
}

.telegram-funnel-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.telegram-funnel-step {
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(125, 211, 252, .45);
}

.telegram-funnel-step strong {
    color: #0f3754;
    font-size: 14px;
}

.telegram-funnel-step span {
    color: #475569;
    font-size: 13px;
    line-height: 1.35;
}

.telegram-cta-card .telegram-cta-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 185px;
    align-self: center;
    box-shadow: 0 10px 26px rgba(255, 111, 0, .22);
}

.telegram-cta-card .telegram-cta-btn::before {
    content: "↗";
    margin-right: 7px;
    font-weight: 900;
}

@media (max-width: 700px) {
    .telegram-funnel-steps {
        grid-template-columns: 1fr;
    }

    .telegram-cta-card .telegram-cta-btn {
        width: 100%;
        min-width: 0;
    }
}


/* ===== Пакет 5: монетизация без вреда SEO ===== */
.ad-disclosure {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 0 auto 8px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(15, 95, 143, .1);
    color: #0f5f8f;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.product-ad-section {
    border-color: #fde68a;
    background: linear-gradient(135deg, #fffefa, #fff8db);
}

.product-ad-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.product-ad-head h2 {
    margin-bottom: 6px;
    color: #5b4200;
}

.product-ad-head p {
    margin: 0;
    max-width: 780px;
    color: #6b5b25;
}

.product-ad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}

.product-ad-card {
    position: relative;
    display: grid;
    align-content: start;
    gap: 8px;
    min-height: 230px;
    padding: 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #f3d36b;
    box-shadow: 0 10px 22px rgba(91, 66, 0, .08);
}

.product-ad-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #fff7cc;
    font-size: 24px;
}

.product-ad-tag {
    width: fit-content;
    padding: 4px 9px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    font-size: 12px;
    font-weight: 900;
}

.product-ad-card h3 {
    margin: 0;
    color: #1f2937;
    font-size: 17px;
}

.product-ad-card p {
    margin: 0;
    color: #475569;
    font-size: 14px;
}

.product-ad-price {
    margin-top: auto;
    color: #166534;
    font-size: 15px;
}

.product-ad-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 4px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #ffd700;
    color: #1f2937;
    text-decoration: none;
    font-weight: 900;
}

.product-ad-link:hover {
    background: #ffc107;
}

@media (max-width: 640px) {
    .product-ad-head {
        display: block;
    }

    .product-ad-grid {
        grid-template-columns: 1fr;
    }

    .product-ad-card {
        min-height: 0;
    }
}


/* ===== DTEK address monitoring + mobile burger patch ===== */
.mobile-menu-toggle{display:none;align-items:center;justify-content:center;gap:8px;background:rgba(255,255,255,.18);color:#fff;border:1px solid rgba(255,255,255,.55);border-radius:999px;padding:9px 14px;font-weight:900;line-height:1}
.mobile-menu-toggle:hover{background:rgba(255,255,255,.28)}
.source-note{font-size:14px;color:#64748b;margin:10px 0 0}.eyebrow{display:inline-flex;align-items:center;border-radius:999px;background:#eef8fd;color:#0f5f8f;font-size:12px;font-weight:900;letter-spacing:.04em;text-transform:uppercase;padding:5px 9px;margin-bottom:8px}.dtek-search-form{display:grid;grid-template-columns:1fr 160px auto;gap:12px;align-items:end}.dtek-search-form label,.dtek-add-form{display:grid;gap:6px;font-weight:800}.dtek-search-form input{width:100%;padding:11px;border:1px solid #cbd5e1;border-radius:10px;font-size:15px}.dtek-result-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}.dtek-address-card,.dtek-alert-item{border:1px solid #e5e7eb;border-radius:14px;background:#f8fafc;padding:14px}.dtek-area-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:14px}.dtek-area-box{border:1px solid #e5e7eb;border-radius:14px;background:#f8fafc;padding:14px}.dtek-area-box ul{list-style:none;margin:0;padding:0;display:grid;gap:7px}.dtek-area-box li{display:flex;justify-content:space-between;gap:10px;border-bottom:1px dashed #dbe6ef;padding-bottom:6px}.dtek-area-box li:last-child{border-bottom:0}.dtek-alert-card{border-color:#facc15;background:linear-gradient(180deg,#fffbea,#fff)}.dtek-alert-item p{margin:8px 0}.dtek-add-form{margin-top:12px;max-width:360px}.electricity-search-card{background:linear-gradient(180deg,#fff,#f7fbff)}
@media(max-width:700px){.top-nav{position:relative;justify-content:space-between;align-items:center;gap:8px;flex-direction:row;flex-wrap:wrap}.mobile-menu-toggle{display:inline-flex}.top-nav .lang-switch{margin-left:auto}.top-nav .menu{display:none;order:3;width:100%;flex-direction:column;align-items:stretch;gap:7px;background:rgba(15,95,143,.98);border:1px solid rgba(255,255,255,.25);border-radius:16px;padding:10px;margin-top:8px}.top-nav.is-menu-open .menu{display:flex}.menu li a{display:block;padding:10px 12px;border-radius:10px;background:rgba(255,255,255,.08)}.dtek-search-form{grid-template-columns:1fr}.dtek-search-form button{width:100%}.dtek-area-grid,.dtek-result-grid{grid-template-columns:1fr}}

/* DTEK address worker V1 */
.dtek-group-chip{display:inline-flex;align-items:center;gap:6px;margin:8px 0 10px;padding:8px 12px;border-radius:999px;background:#fff7db;color:#6d4b00;border:1px solid rgba(212,175,55,.45);font-weight:800}
.dtek-official-box{display:grid;gap:5px;margin:10px 0;padding:10px 12px;border-radius:14px;background:rgba(0,31,63,.045);border:1px solid rgba(0,31,63,.09);font-size:.95rem;color:#24364a}
.dtek-monitor-stats{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0 18px}.dtek-monitor-stats span{display:inline-flex;gap:6px;align-items:center;border-radius:999px;background:#f7fafc;border:1px solid #e4ebf2;padding:8px 12px}.outage-status.status-active{background:#dcfce7;color:#166534}.outage-status.status-warning{background:#fef3c7;color:#92400e}.outage-status.status-restored{background:#e0f2fe;color:#075985}.save-address-btn{border:0;border-radius:999px;padding:9px 13px;background:#001f3f;color:#fff;font-weight:800;cursor:pointer;margin-top:8px}.save-address-btn:hover{filter:brightness(1.08)}
@media(max-width:640px){.dtek-monitor-stats{display:grid}.dtek-group-chip{width:100%;justify-content:center}.dtek-official-box{font-size:.9rem}}

/* DTEK VPS official import status */
.dtek-import-status{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:12px 0 0;padding:11px 12px;border-radius:14px;background:#ecfdf5;border:1px solid #bbf7d0;color:#14532d;font-size:.94rem}.dtek-import-status strong{margin-right:4px}.dtek-import-status span{display:inline-flex;align-items:center;border-radius:999px;background:rgba(255,255,255,.72);border:1px solid rgba(20,83,45,.12);padding:5px 9px;font-weight:700}.dtek-import-status.is-warning{background:#fff7ed;border-color:#fed7aa;color:#7c2d12}.dtek-group-link{display:inline-flex;align-items:center;justify-content:center;margin:0 0 10px;padding:8px 12px;border-radius:999px;background:#001f3f;color:#fff;text-decoration:none;font-weight:800;font-size:.92rem}.dtek-group-link:hover{filter:brightness(1.08);color:#fff}.dtek-address-card .dtek-group-chip + .dtek-group-link{margin-top:0}@media(max-width:640px){.dtek-import-status{display:grid}.dtek-import-status span{justify-content:center}.dtek-group-link{width:100%}}

/* ===== DTEK user layer: autocomplete + saved address ===== */
.section-head-row{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap}.clean-status-pill{display:inline-flex;align-items:center;gap:6px;width:max-content;padding:7px 11px;border-radius:999px;background:#eef2ff;color:#3730a3;border:1px solid #c7d2fe;font-weight:900;font-size:.9rem}.clean-status-pill.is-ok{background:#ecfdf5;color:#166534;border-color:#bbf7d0}.clean-source-note{max-width:920px}.dtek-field{position:relative}.dtek-suggest-box{display:none;position:absolute;z-index:30;left:0;right:0;top:calc(100% + 6px);max-height:310px;overflow:auto;background:#fff;border:1px solid #cbd5e1;border-radius:14px;box-shadow:0 18px 40px rgba(15,23,42,.18);padding:7px}.dtek-suggest-box.is-open{display:grid;gap:5px}.dtek-suggest-item{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;border:0;background:#f8fafc;border-radius:11px;padding:10px 11px;text-align:left;cursor:pointer;color:#0f172a}.dtek-suggest-item:hover,.dtek-suggest-item:focus{background:#e0f2fe;outline:2px solid rgba(14,165,233,.15)}.dtek-suggest-item span{font-weight:900}.dtek-suggest-item small{white-space:nowrap;color:#64748b;font-weight:800}.dtek-suggest-empty{padding:11px;border-radius:11px;background:#fff7ed;color:#9a3412;font-weight:800}.clean-dtek-alerts{border-color:#fde68a;background:linear-gradient(180deg,#fffbeb,#fff)}.clean-alert-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}.dtek-alert-item.is-planned{border-color:#facc15;background:#fffbea}.dtek-alert-item.is-emergency{border-color:#fecaca;background:#fff1f2}.dtek-alert-item.is-info{border-color:#bfdbfe;background:#eff6ff}.alert-type-pill{display:inline-flex;width:max-content;margin-bottom:8px;padding:5px 9px;border-radius:999px;background:#fff;color:#334155;border:1px solid rgba(15,23,42,.08);font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.03em}.clean-address-card{background:linear-gradient(180deg,#fff,#f8fafc)}.my-group-big{display:flex;align-items:center;justify-content:center;gap:8px;margin:12px 0;padding:16px;border-radius:18px;background:linear-gradient(135deg,#001f3f,#0f5f8f);color:#fff;font-size:1.25rem;font-weight:900}.my-group-big strong{font-size:1.45rem;color:#ffd700}.small-actions{gap:10px;flex-wrap:wrap}.small-actions .btn,.small-actions button.btn,.small-actions .save-address-btn{margin:0}.save-address-btn.is-saved{background:#15803d}.dtek-user-help-card .info-grid div{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:14px}.my-dtek-address-card{border-color:#bae6fd;background:linear-gradient(180deg,#f0f9ff,#fff)}.saved-status-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin:12px 0}.saved-status-grid div{display:grid;gap:5px;padding:12px;border-radius:16px;background:#fff;border:1px solid #dbeafe}.saved-status-grid span{color:#64748b;font-weight:800;font-size:.9rem}.saved-status-grid strong{font-size:1.05rem;color:#0f172a}.my-dtek-address-card .btn-secondary{border:1px solid #cbd5e1;background:#fff;color:#0f172a}.clean-empty-box{border:1px dashed #fbbf24;background:#fffbeb;border-radius:16px;padding:16px}
@media(max-width:700px){.section-head-row{display:grid}.dtek-suggest-box{position:static;margin-top:6px;max-height:240px}.dtek-suggest-item{display:grid}.dtek-suggest-item small{white-space:normal}.my-group-big{font-size:1.08rem}.my-group-big strong{font-size:1.25rem}.small-actions .btn,.small-actions button.btn,.small-actions .save-address-btn{width:100%;justify-content:center}}

/* ===== DTEK auto update layer: event distribution ===== */
.dtek-event-box{border-width:1px;border-style:solid}
.dtek-event-box strong{font-size:1rem;color:#0f172a}
.dtek-event-box.is-planned{background:#fffbeb;border-color:#facc15;color:#78350f}
.dtek-event-box.is-emergency{background:#fff1f2;border-color:#fecaca;color:#7f1d1d}
.dtek-event-box.is-other{background:#eff6ff;border-color:#bfdbfe;color:#1e3a8a}
.dtek-saved-event{display:grid;gap:4px;margin:12px 0;padding:12px 14px;border-radius:16px;border:1px solid #bfdbfe;background:#eff6ff;color:#1e3a8a}
.dtek-saved-event span{font-weight:900;font-size:.86rem;text-transform:uppercase;letter-spacing:.03em;opacity:.9}
.dtek-saved-event strong{font-size:1.02rem}
.dtek-saved-event em{font-style:normal;font-weight:800;color:inherit}
.dtek-saved-event.is-planned{background:#fffbeb;border-color:#facc15;color:#78350f}
.dtek-saved-event.is-emergency{background:#fff1f2;border-color:#fecaca;color:#7f1d1d}
.dtek-saved-event.is-other{background:#eff6ff;border-color:#bfdbfe;color:#1e3a8a}

/* DTEK status-driven patch */
.dtek-real-status-box,
.dtek-saved-event {
    border: 1px solid rgba(15, 95, 143, .18);
    border-radius: 16px;
    padding: 12px 14px;
    margin: 12px 0;
    background: #f7fbff;
    display: grid;
    gap: 5px;
}
.dtek-real-status-box span,
.dtek-saved-event span,
.single-group-possible span {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #527086;
}
.dtek-real-status-box strong,
.dtek-saved-event strong {
    font-size: 16px;
    color: #11203e;
}
.dtek-real-status-box p,
.dtek-saved-event p {
    margin: 0;
}
.dtek-real-status-box small,
.dtek-saved-event em {
    color: #64748b;
    font-style: normal;
}
.dtek-real-status-box.status-clear,
.dtek-saved-event.is-no_active {
    background: #f0fff4;
    border-color: rgba(46, 125, 50, .18);
}
.dtek-real-status-box.status-emergency,
.dtek-saved-event.is-emergency {
    background: #fff5f5;
    border-color: rgba(211, 47, 47, .22);
}
.dtek-real-status-box.status-planned,
.dtek-saved-event.is-planned,
.dtek-saved-event.is-stabilization {
    background: #fff9e8;
    border-color: rgba(184, 119, 0, .22);
}
.single-group-card.is-reference-schedule {
    border-color: rgba(212, 175, 55, .35);
}
.single-group-possible {
    display: grid;
    gap: 6px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 229, 0, .12);
}

/* ===== Final DTEK display priority fix ===== */
.saved-status-grid.is-factual-only {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.dtek-reference-details,
.reference-gpv-details {
    margin: 14px 0;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    background: #f8fafc;
    overflow: hidden;
}

.dtek-reference-details summary,
.reference-gpv-details summary {
    cursor: pointer;
    padding: 13px 16px;
    font-weight: 900;
    color: #0f172a;
    background: linear-gradient(180deg, #ffffff, #f1f5f9);
    list-style-position: inside;
}

.dtek-reference-details[open] summary,
.reference-gpv-details[open] summary {
    border-bottom: 1px solid #e2e8f0;
}

.dtek-reference-body,
.reference-gpv-body {
    padding: 14px 16px 16px;
    display: grid;
    gap: 12px;
}

.dtek-reference-warning,
.reference-gpv-body > p:first-child {
    margin: 0;
    padding: 11px 13px;
    border-radius: 14px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-weight: 800;
}

.dtek-reference-grid {
    display: grid;
    gap: 10px;
}

.dtek-reference-row,
.reference-gpv-body .single-group-time,
.reference-gpv-body .single-group-possible {
    display: grid;
    gap: 6px;
    padding: 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.dtek-reference-row span,
.reference-gpv-body .single-group-time span,
.reference-gpv-body .single-group-possible span {
    color: #64748b;
    font-size: .88rem;
    font-weight: 900;
}

.dtek-reference-row strong,
.reference-gpv-body .single-group-time strong,
.reference-gpv-body .single-group-possible strong {
    color: #0f172a;
    line-height: 1.55;
}

.dtek-reference-row.is-muted,
.reference-gpv-body .single-group-possible {
    background: #f8fafc;
}

.dtek-reference-updated {
    margin: 0;
    color: #64748b;
    font-weight: 800;
    font-size: .92rem;
}

.single-group-card.is-fact-first .single-group-status.is-primary-status {
    margin: 12px 0;
}

.single-group-card.is-fact-first .outage-status.status-clear {
    background: #ecfdf5;
    color: #166534;
    border-color: #bbf7d0;
}

/* ======================================================================
   DESIGN V1 · 2026-08-07
   Wide desktop + mobile-first service layout. No data/parser logic here.
   ====================================================================== */

:root {
    --ui-bg: #f3f6fa;
    --ui-surface: #ffffff;
    --ui-text: #172033;
    --ui-muted: #66758a;
    --ui-line: #dbe4ee;
    --ui-navy: #083d62;
    --ui-blue: #1685b8;
    --ui-blue-soft: #eaf7fd;
    --ui-telegram: #229ed9;
    --ui-yellow: #ffd84d;
    --ui-radius: 14px;
    --ui-shadow: 0 8px 24px rgba(25, 53, 78, .07);
}

body {
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--ui-bg);
    color: var(--ui-text);
    line-height: 1.48;
}

header {
    padding: 0 0 22px;
    background: linear-gradient(120deg, #0b466c 0%, #1685b8 72%, #39a8d2 100%);
    text-align: left;
    box-shadow: 0 5px 18px rgba(8, 61, 98, .13);
}

.top-nav {
    width: min(1380px, calc(100% - 48px));
    max-width: none;
    min-height: 58px;
    margin: 0 auto 10px;
    justify-content: space-between;
    gap: 12px;
}

.top-nav .menu {
    justify-content: flex-start;
    gap: 5px;
}

.menu li a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 7px 10px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    transition: background .16s ease, color .16s ease;
}

.menu li a:hover,
.menu li a.is-active {
    background: rgba(255, 255, 255, .14);
    text-decoration: none;
    color: #fff;
}

.lang-switch {
    flex: 0 0 auto;
}

.lang-switch a {
    min-width: 36px;
    height: 29px;
    padding: 0 9px;
    border-color: rgba(255,255,255,.4);
    background: rgba(255,255,255,.12);
}

.lang-switch a.active {
    background: #fff;
    border-color: #fff;
    color: var(--ui-navy);
}

header > h1,
header > p {
    width: min(1380px, calc(100% - 48px));
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

header > h1 {
    margin-top: 4px;
    margin-bottom: 0;
    font-size: clamp(25px, 2vw, 30px);
    line-height: 1.14;
    letter-spacing: -.025em;
}

header > p {
    margin-top: 7px;
    color: rgba(255,255,255,.88);
    font-size: 14px;
    line-height: 1.4;
}

.container,
.ad-strip {
    width: min(1380px, calc(100% - 48px));
    max-width: none;
}

.content-card {
    margin: 14px auto;
    padding: 18px 20px;
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-radius);
    background: var(--ui-surface);
    box-shadow: var(--ui-shadow);
}

h1, h2, h3 {
    color: inherit;
}

h2 {
    margin-bottom: 8px;
    font-size: 19px;
    line-height: 1.2;
    letter-spacing: -.015em;
}

h3 {
    font-size: 15px;
}

p {
    margin-top: 8px;
}

button,
.btn,
.page-nav a {
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 14px;
}

.btn-secondary {
    border: 1px solid #c9d8e5;
    background: #fff;
    color: #25455f;
}

.btn-secondary:hover {
    background: #eef6fb;
}

.breadcrumbs {
    margin-top: 12px;
    font-size: 13px;
}

.seo-text {
    max-width: 900px;
    font-size: 14px;
    color: var(--ui-muted);
}

/* Home: city choice first, map as a secondary desktop visual. */
.home-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, .72fr);
    gap: 22px;
    align-items: stretch;
    padding: 22px;
    overflow: hidden;
}

.home-hero-copy {
    min-width: 0;
}

.home-hero-copy h2 {
    margin: 2px 0 8px;
    font-size: 24px;
}

.home-hero-lead {
    max-width: 720px;
    margin: 0 0 16px;
    color: var(--ui-muted);
    font-size: 15px;
}

.home-city-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.home-city-card {
    display: grid;
    align-content: start;
    gap: 5px;
    min-height: 118px;
    padding: 14px;
    border: 1px solid #cfe2ee;
    border-radius: 13px;
    background: linear-gradient(160deg, #fff, #f3faff);
    color: var(--ui-text);
    text-decoration: none;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.home-city-card:hover {
    transform: translateY(-2px);
    border-color: #76c3e6;
    box-shadow: 0 8px 18px rgba(22, 133, 184, .10);
}

.home-city-card strong {
    color: var(--ui-navy);
    font-size: 17px;
}

.home-city-card small {
    color: var(--ui-muted);
    line-height: 1.35;
}

.home-city-card span {
    margin-top: auto;
    color: var(--ui-blue);
    font-size: 13px;
    font-weight: 800;
}

.home-map-photo {
    height: 100%;
    min-height: 260px;
    border-radius: 13px;
    overflow: hidden;
    background: #edf6fb;
}

.home-map-photo img {
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 260px;
    object-fit: contain;
    border: 0;
    border-radius: 0;
}

.home-telegram-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid #bfe6f5;
    border-radius: 12px;
    background: #f1fbff;
}

.home-telegram-inline > div {
    display: grid;
    gap: 2px;
}

.home-telegram-inline strong {
    color: #075985;
}

.home-telegram-inline span {
    color: var(--ui-muted);
    font-size: 13px;
}

/* City page: fewer vertical blocks on desktop. */
.city-hero-card {
    text-align: left;
}

.city-hero-card > h2,
.city-hero-card > .seo-text {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.city-hero-card .hero-actions {
    justify-content: flex-start;
}

.city-service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 14px 0;
}

.city-service-grid .content-card {
    width: 100%;
    margin: 0;
}

.city-service-grid .deep-links-card {
    grid-column: 1 / -1;
}

.city-service-grid .hero-actions {
    justify-content: flex-start;
}

.group-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0 4px;
}

.group-btn {
    min-height: 48px;
    gap: 5px;
    border-radius: 11px;
    box-shadow: none;
    font-size: 13px;
}

.group-btn-label {
    font-weight: 700;
    opacity: .72;
}

.group-btn strong {
    font-size: 16px;
}

/* Tables and schedules: denser on desktop, still readable. */
table {
    font-size: 14px;
}

table th,
table td {
    padding: 8px;
}

.outage-card h2 {
    text-align: left;
}

.schedule-meta,
.outage-notice {
    max-width: none;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.outage-notice {
    padding: 10px 12px;
    font-size: 13px;
}

.single-group-card {
    max-width: 920px;
    margin: 14px auto;
    padding: 16px;
    border-radius: 14px;
    box-shadow: none;
}

.single-group-main strong {
    font-size: clamp(32px, 4vw, 48px);
}

.single-group-time strong {
    font-size: clamp(20px, 2.7vw, 28px);
}

/* Search form gets more working width on desktop. */
.electricity-search-card {
    padding: 20px 22px;
}

.dtek-search-form {
    grid-template-columns: minmax(260px, 1.6fr) minmax(150px, .55fr) auto;
}

.dtek-search-form input {
    min-height: 42px;
}

/* Telegram: compact product continuation, not an orange ad banner. */
.telegram-button {
    margin: 14px 0 0;
}

.telegram-button a,
.telegram-cta-btn,
.telegram-cta-card .telegram-cta-btn {
    background: var(--ui-telegram);
    color: #fff;
    box-shadow: none;
}

.telegram-button a:hover,
.telegram-cta-btn:hover,
.telegram-cta-card .telegram-cta-btn:hover {
    background: #168ac0;
}

.telegram-cta-card,
.telegram-funnel-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 16px 18px;
    border-color: #bfe6f5;
    background: linear-gradient(135deg, #f4fbff, #ffffff);
}

.telegram-funnel-card::after,
.telegram-funnel-steps {
    display: none;
}

.telegram-cta-card h2 {
    margin: 2px 0 4px;
    font-size: 18px;
}

.telegram-cta-card p {
    max-width: 780px;
    font-size: 14px;
}

.telegram-cta-card .telegram-cta-btn {
    min-width: 160px;
    min-height: 42px;
}

.telegram-cta-card .telegram-cta-btn::before {
    content: "↗";
}

/* Secondary sections are quieter than the primary task. */
.water-entry-card,
.gas-entry-card,
.deep-hero-card,
.water-hero-card,
.gas-hero-card {
    background: #fff;
    border-color: var(--ui-line);
}

.info-grid,
.seo-grid,
.source-list {
    gap: 10px;
}

.info-grid > div,
.seo-mini-card,
.source-card {
    border-radius: 12px;
    box-shadow: none;
}

footer {
    width: min(1380px, calc(100% - 48px));
    max-width: none;
    padding: 20px 0 28px;
    color: var(--ui-muted);
}

.mobile-quick-nav {
    display: none;
}

@media (min-width: 900px) {
    h1 { font-size: 30px; }
    h2 { font-size: 19px; }
    table { font-size: 14px; }
    .telegram-button a { font-size: 14px; padding: 10px 16px; }
}

@media (max-width: 900px) {
    .container,
    .ad-strip,
    .top-nav,
    header > h1,
    header > p,
    footer {
        width: min(100% - 28px, 1000px);
    }

    .home-hero-card {
        grid-template-columns: 1fr;
    }

    .home-map-photo {
        min-height: 220px;
    }

    .home-city-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .group-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    body {
        padding-bottom: 70px;
    }

    header {
        padding: 0 0 14px;
        box-shadow: 0 3px 12px rgba(8, 61, 98, .12);
    }

    .top-nav,
    header > h1,
    header > p,
    .container,
    .ad-strip,
    footer {
        width: calc(100% - 16px);
    }

    .top-nav {
        min-height: 48px;
        margin-bottom: 5px;
        padding: 4px 0;
    }

    .mobile-menu-toggle {
        min-height: 36px;
        padding: 7px 10px;
        border-radius: 10px;
        font-size: 13px;
    }

    .top-nav .menu {
        margin-top: 5px;
        padding: 7px;
        border-radius: 12px;
        box-shadow: 0 12px 30px rgba(4, 42, 67, .2);
    }

    .menu li a {
        min-height: 39px;
        padding: 8px 10px;
        font-size: 13px;
    }

    header > h1 {
        margin-top: 4px;
        font-size: 21px;
        line-height: 1.16;
    }

    header > p {
        margin-top: 5px;
        font-size: 12.5px;
        line-height: 1.35;
    }

    .content-card {
        margin: 9px auto;
        padding: 13px;
        border-radius: 12px;
        box-shadow: 0 4px 14px rgba(25, 53, 78, .055);
    }

    h2 {
        font-size: 17px;
    }

    .breadcrumbs {
        margin-top: 9px;
        font-size: 11.5px;
        gap: 5px;
    }

    .home-hero-card {
        display: block;
        padding: 14px;
    }

    .home-hero-copy h2 {
        font-size: 21px;
    }

    .home-hero-lead {
        margin-bottom: 12px;
        font-size: 13.5px;
    }

    .home-map-photo {
        display: none;
    }

    .home-city-grid {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .home-city-card {
        min-height: 0;
        grid-template-columns: 1fr auto;
        gap: 3px 10px;
        padding: 11px 12px;
    }

    .home-city-card strong {
        font-size: 15.5px;
    }

    .home-city-card small {
        grid-column: 1 / -1;
        font-size: 12.5px;
    }

    .home-city-card span {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        font-size: 12px;
    }

    .home-telegram-inline {
        display: grid;
        gap: 9px;
        margin-top: 10px;
        padding: 11px;
    }

    .home-telegram-inline .telegram-cta-btn {
        width: 100%;
        text-align: center;
    }

    .city-hero-card {
        text-align: left;
    }

    .city-service-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin: 9px 0;
    }

    .city-service-grid .content-card {
        margin: 0;
        padding: 12px;
    }

    .city-service-grid .deep-links-card {
        grid-column: 1 / -1;
    }

    .city-service-grid .water-entry-card p,
    .city-service-grid .gas-entry-card p {
        font-size: 12.5px;
        color: var(--ui-muted);
    }

    .city-service-grid .hero-actions {
        margin-top: 10px;
    }

    .city-service-grid .btn {
        width: 100%;
        text-align: center;
    }

    .group-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
        margin-top: 11px;
    }

    .group-btn {
        display: grid;
        gap: 0;
        min-height: 49px;
        padding: 6px;
        border-radius: 10px;
    }

    .group-btn-label {
        font-size: 10px;
        line-height: 1;
    }

    .group-btn strong {
        font-size: 17px;
        line-height: 1.15;
    }

    .deep-link-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .deep-link-card {
        min-height: 74px;
        padding: 10px;
    }

    .deep-link-card span {
        font-size: 14px;
    }

    .deep-link-card small {
        font-size: 11.5px;
        line-height: 1.3;
    }

    .outage-card h2,
    .schedule-meta,
    .outage-notice {
        text-align: left;
    }

    .schedule-meta {
        font-size: 12px;
    }

    .outage-notice {
        margin: 9px 0;
        padding: 9px 10px;
        font-size: 12.5px;
    }

    table {
        font-size: 11.5px;
    }

    table th,
    table td {
        padding: 7px 5px;
    }

    .single-group-card {
        margin: 10px 0;
        padding: 12px;
        border-radius: 11px;
    }

    .single-group-main strong {
        font-size: 36px;
    }

    .single-group-main span,
    .single-group-time span {
        font-size: 10.5px;
    }

    .single-group-time strong {
        font-size: 20px;
    }

    .my-group-big {
        margin: 9px 0;
        padding: 12px;
        border-radius: 12px;
        font-size: 1rem;
    }

    .electricity-search-card {
        padding: 14px;
    }

    .dtek-search-form {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .dtek-search-form input {
        min-height: 44px;
        font-size: 16px;
    }

    .dtek-search-form button {
        min-height: 46px;
    }

    .telegram-cta-card,
    .telegram-funnel-card {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 13px;
    }

    .telegram-cta-card h2 {
        font-size: 16px;
    }

    .telegram-cta-card p {
        font-size: 12.5px;
    }

    .telegram-cta-card .telegram-cta-btn {
        width: 100%;
        min-height: 44px;
    }

    .seo-grid,
    .info-grid,
    .source-list {
        gap: 7px;
    }

    .seo-mini-card,
    .info-grid > div,
    .source-card {
        padding: 11px;
        border-radius: 10px;
    }

    footer {
        padding: 14px 0 18px;
        font-size: 12px;
    }

    .mobile-quick-nav {
        position: fixed;
        z-index: 999;
        left: 8px;
        right: 8px;
        bottom: 7px;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        min-height: 58px;
        padding: 5px;
        border: 1px solid rgba(193, 211, 224, .85);
        border-radius: 16px;
        background: rgba(255,255,255,.94);
        box-shadow: 0 12px 34px rgba(15, 41, 63, .18);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    .mobile-quick-nav a {
        display: grid;
        place-items: center;
        align-content: center;
        gap: 1px;
        min-width: 0;
        border-radius: 11px;
        color: #65768a;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-quick-nav a.is-active {
        background: #eaf7fd;
        color: #075985;
    }

    .mobile-quick-nav a:last-child {
        color: #087bad;
    }

    .mobile-quick-nav span {
        font-size: 18px;
        line-height: 1;
    }

    .mobile-quick-nav strong {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 10px;
        line-height: 1.1;
    }
}

@media (max-width: 390px) {
    .city-service-grid {
        grid-template-columns: 1fr;
    }

    .group-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .deep-link-grid {
        grid-template-columns: 1fr;
    }

    .mobile-quick-nav strong {
        font-size: 9px;
    }
}

/* ===== Information cleanup V2 · 2026-08-07 ===== */
.home-clean-page,
.city-clean-page,
.group-clean-page,
.water-clean-page {
    padding-top: 18px;
}

.home-service-grid,
.city-primary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr);
    gap: 16px;
    align-items: stretch;
}

.home-service-grid .content-card,
.city-primary-grid .content-card {
    margin: 0;
}

.home-service-card,
.city-water-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.home-service-card .btn,
.city-water-summary .btn {
    margin-top: auto;
}

.home-hero-clean .home-hero-copy > p,
.city-groups-card > p {
    max-width: 760px;
}

.section-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 10px;
}

.section-heading-row h2,
.section-heading-row p {
    margin-bottom: 0;
}

.compact-info-details {
    margin-top: 14px;
}

.compact-info-details > summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--ui-border, #dce7ef);
    border-radius: 11px;
    background: #f7fafc;
    font-weight: 700;
}

.compact-info-details > summary::-webkit-details-marker { display: none; }
.compact-info-details > summary::after { content: '＋'; font-size: 18px; color: #6c7f90; }
.compact-info-details[open] > summary::after { content: '−'; }
.compact-info-details[open] > summary { margin-bottom: 12px; }

.city-reference-card .table-wrapper {
    margin-top: 8px;
}

.group-reference-clean {
    margin-top: 12px;
}

.group-reference-clean .single-group-main strong {
    font-size: clamp(32px, 4vw, 48px);
}

.reference-gpv-visible {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e4edf3;
}

.reference-gpv-visible .single-group-time,
.reference-gpv-visible .single-group-possible {
    margin-top: 0;
}

.reference-gpv-visible .reference-gpv-details {
    margin-top: 12px;
}

.other-groups-details {
    margin-top: 16px;
}

.other-groups-details .group-grid {
    margin-top: 12px;
}

.telegram-cta-clean {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    border-color: #c9e7f5;
    background: linear-gradient(135deg, #f7fcff, #eef8fd);
}

.telegram-cta-clean h2 {
    margin: 2px 0 5px;
}

.telegram-cta-clean p {
    margin: 0;
    max-width: 720px;
}

.telegram-cta-clean .telegram-cta-btn {
    white-space: nowrap;
}

.water-main-card .freshness-notice {
    margin-bottom: 14px;
}

.water-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.water-card-clean {
    margin: 0;
    padding: 15px;
    box-shadow: none;
    border: 1px solid #dbe8ef;
}

.water-card-clean .water-card-top {
    align-items: flex-start;
    gap: 10px;
}

.water-card-clean .water-card-top h2 {
    margin: 0;
    font-size: 17px;
    line-height: 1.3;
}

.water-time-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.water-time-grid > div {
    padding: 10px 11px;
    border-radius: 10px;
    background: #f7fafc;
}

.water-time-grid small,
.water-time-grid strong {
    display: block;
}

.water-time-grid small {
    margin-bottom: 3px;
    color: #718294;
    font-size: 11px;
}

.water-time-grid strong {
    font-size: 14px;
    line-height: 1.25;
}

.water-card-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 10px;
    color: #7b8b99;
    font-size: 11px;
}

.compact-trust-note {
    display: flex;
    gap: 8px;
    align-items: baseline;
    padding: 13px 16px;
    color: #607384;
    font-size: 12px;
    box-shadow: none;
}

.compact-trust-note strong {
    color: #334b5c;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .home-service-grid,
    .city-primary-grid,
    .water-list {
        grid-template-columns: 1fr;
    }

    .section-heading-row {
        display: block;
    }

    .section-heading-row .schedule-meta {
        margin-top: 5px;
    }

    .telegram-cta-clean {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .telegram-cta-clean .telegram-cta-btn {
        width: 100%;
        text-align: center;
    }

    .water-card-clean {
        padding: 13px;
    }

    .compact-trust-note {
        display: block;
    }

    .compact-trust-note strong,
    .compact-trust-note span {
        display: block;
    }

    .compact-trust-note strong {
        margin-bottom: 3px;
    }
}

@media (max-width: 520px) {
    .home-clean-page,
    .city-clean-page,
    .group-clean-page,
    .water-clean-page {
        padding-top: 10px;
    }

    .water-time-grid {
        grid-template-columns: 1fr 1fr;
    }

    .water-time-grid strong {
        font-size: 13px;
    }

    .city-reference-card .outage-table th:first-child,
    .city-reference-card .outage-table td:first-child {
        display: none;
    }
}

/* ===== Telegram funnel V3: persistent, contextual, non-intrusive ===== */
.nav-telegram-link,
.top-nav a[href*="/tg.php"] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #087fb6 !important;
    font-weight: 900;
}

.nav-telegram-link::before,
.top-nav a[href*="/tg.php"]::before {
    content: "✈";
    font-size: 13px;
}

.telegram-smart-cta,
.telegram-auto-strip {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    overflow: hidden;
    border: 1px solid #b9e2f3;
    background: linear-gradient(135deg, #f4fbff 0%, #ffffff 58%, #edf9ff 100%);
    box-shadow: 0 8px 22px rgba(26, 123, 166, .07);
}

.telegram-smart-cta::after,
.telegram-auto-strip::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    right: -74px;
    top: -72px;
    border-radius: 50%;
    background: rgba(34, 158, 217, .07);
    pointer-events: none;
}

.telegram-cta-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: #229ed9;
    color: #fff;
    font-size: 20px;
    box-shadow: 0 7px 16px rgba(34, 158, 217, .18);
}

.telegram-smart-cta .telegram-cta-main,
.telegram-auto-strip .telegram-cta-main {
    min-width: 0;
}

.telegram-smart-cta .eyebrow,
.telegram-auto-strip .eyebrow {
    margin-bottom: 3px;
    padding: 3px 7px;
    font-size: 10px;
    color: #087fb6;
    background: #e6f6fd;
}

.telegram-smart-cta h2,
.telegram-auto-strip h2 {
    margin: 0 0 4px;
    font-size: 17px;
    line-height: 1.2;
}

.telegram-smart-cta p,
.telegram-auto-strip p {
    margin: 0;
    max-width: 760px;
    color: #526578;
    font-size: 13.5px;
    line-height: 1.45;
}

.telegram-honesty-note {
    display: block;
    margin-top: 5px;
    color: #8293a4;
    font-size: 11px;
    line-height: 1.35;
}

.telegram-smart-cta .telegram-cta-btn,
.telegram-auto-strip .telegram-cta-btn {
    position: relative;
    z-index: 1;
    min-width: 168px;
    min-height: 42px;
    margin: 0;
    border: 0;
    border-radius: 11px;
    background: #229ed9;
    color: #fff;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(34, 158, 217, .15);
}

.telegram-smart-cta .telegram-cta-btn::before,
.telegram-auto-strip .telegram-cta-btn::before {
    content: "";
}

.telegram-smart-cta .telegram-cta-btn:hover,
.telegram-auto-strip .telegram-cta-btn:hover {
    background: #168fc7;
    transform: translateY(-1px);
}

/* Repeat visitors get one slightly stronger card, never a popup. */
.telegram-smart-cta.is-repeat-highlight {
    border-color: #79c9ea;
    box-shadow: 0 10px 28px rgba(34, 158, 217, .12);
}

.telegram-smart-cta.is-repeat-highlight .telegram-cta-icon {
    box-shadow: 0 0 0 5px rgba(34, 158, 217, .09), 0 7px 16px rgba(34, 158, 217, .18);
}

/* After a real Telegram click, large persuasion becomes a quiet utility link. */
.tg-has-clicked .telegram-smart-cta.is-after-click {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 11px 13px;
    background: #f8fcfe;
    box-shadow: none;
}

.tg-has-clicked .telegram-smart-cta.is-after-click .telegram-cta-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 16px;
}

.tg-has-clicked .telegram-smart-cta.is-after-click .eyebrow,
.tg-has-clicked .telegram-smart-cta.is-after-click p,
.tg-has-clicked .telegram-smart-cta.is-after-click .telegram-honesty-note {
    display: none;
}

.tg-has-clicked .telegram-smart-cta.is-after-click h2 {
    margin: 0;
    font-size: 14px;
}

.tg-has-clicked .telegram-smart-cta.is-after-click .telegram-cta-btn {
    min-width: 104px;
    min-height: 36px;
    padding: 8px 12px;
    font-size: 13px;
}

/* Persistent desktop access. Small enough not to cover the site. */
.telegram-desktop-dock {
    position: fixed;
    z-index: 850;
    right: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 9px 14px;
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 999px;
    background: #229ed9;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(15, 86, 119, .24);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.telegram-desktop-dock:hover {
    transform: translateY(-2px);
    background: #168fc7;
    box-shadow: 0 15px 32px rgba(15, 86, 119, .28);
}

.telegram-desktop-dock span {
    font-size: 16px;
}

.telegram-desktop-dock strong {
    font-size: 13px;
    letter-spacing: .01em;
}

.tg-repeat-visitor .telegram-desktop-dock {
    box-shadow: 0 0 0 5px rgba(34,158,217,.08), 0 12px 28px rgba(15,86,119,.24);
}

/* Telegram tab stays recognizable in the fixed mobile navigation. */
.mobile-quick-nav [data-mobile-nav="telegram"] {
    color: #087fb6;
}

.mobile-quick-nav [data-mobile-nav="telegram"] span {
    color: #229ed9;
}

@media (max-width: 760px) {
    .telegram-desktop-dock {
        display: none;
    }

    .telegram-smart-cta,
    .telegram-auto-strip {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 9px 10px;
        padding: 13px;
        border-radius: 13px;
    }

    .telegram-cta-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 16px;
        align-self: start;
    }

    .telegram-smart-cta .eyebrow,
    .telegram-auto-strip .eyebrow {
        display: none;
    }

    .telegram-smart-cta h2,
    .telegram-auto-strip h2 {
        font-size: 15px;
        line-height: 1.25;
    }

    .telegram-smart-cta p,
    .telegram-auto-strip p {
        font-size: 12.5px;
        line-height: 1.4;
    }

    .telegram-honesty-note {
        margin-top: 4px;
        font-size: 10.5px;
    }

    .telegram-smart-cta .telegram-cta-btn,
    .telegram-auto-strip .telegram-cta-btn {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 43px;
        min-width: 0;
        margin-top: 1px;
        font-size: 13.5px;
    }

    .tg-has-clicked .telegram-smart-cta.is-after-click {
        grid-template-columns: 30px minmax(0, 1fr) auto;
        padding: 9px 10px;
    }

    .tg-has-clicked .telegram-smart-cta.is-after-click .telegram-cta-icon {
        width: 30px;
        height: 30px;
    }

    .tg-has-clicked .telegram-smart-cta.is-after-click .telegram-cta-btn {
        grid-column: auto;
        width: auto;
        min-width: 86px;
        min-height: 34px;
        margin: 0;
        padding: 7px 10px;
        font-size: 12px;
    }
}


/* ===== Advertising contact V4: quiet business contact, separate from channel CTA ===== */
.footer-advertising-contact {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.45;
}

.footer-advertising-contact span {
    font-weight: 700;
    color: var(--ui-text, #18384c);
}

.footer-advertising-contact a {
    font-weight: 700;
    text-decoration: none;
}

.footer-advertising-contact a:hover {
    text-decoration: underline;
}

.advertising-contact-card {
    border-style: dashed;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbfe 100%);
}

.advertising-contact-btn {
    white-space: normal;
}

@media (max-width: 700px) {
    .footer-advertising-contact {
        margin-top: 12px;
        padding-top: 10px;
        border-top: 1px solid var(--ui-line, #d8e5ec);
        font-size: 12.5px;
    }

    .advertising-contact-card .hero-actions {
        margin-top: 12px;
    }

    .advertising-contact-btn {
        width: 100%;
        justify-content: center;
    }
}


/* ===== Telegram funnel V5: conversion-first, still non-intrusive ===== */
.telegram-priority-cta,
.telegram-smart-cta,
.telegram-auto-strip {
    border: 1px solid #79c9ea;
    background: linear-gradient(135deg, #eaf8ff 0%, #ffffff 52%, #def4ff 100%);
    box-shadow: 0 12px 30px rgba(22, 143, 199, .13);
}

.telegram-priority-cta {
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 16px;
    padding: 20px 22px;
}

.telegram-priority-cta .telegram-cta-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(34, 158, 217, .24);
}

.telegram-priority-cta h2,
.telegram-smart-cta h2,
.telegram-auto-strip h2 {
    color: #0b4f73;
    font-weight: 900;
}

.telegram-priority-cta h2 {
    font-size: 20px;
    line-height: 1.18;
}

.telegram-priority-cta p {
    max-width: 820px;
    color: #365d73;
    font-size: 14px;
}

.telegram-priority-cta .telegram-cta-btn,
.telegram-smart-cta .telegram-cta-btn,
.telegram-auto-strip .telegram-cta-btn {
    min-width: 205px;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 13px;
    background: #168fca;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(22, 143, 202, .22);
}

.telegram-priority-cta .telegram-cta-btn:hover,
.telegram-smart-cta .telegram-cta-btn:hover,
.telegram-auto-strip .telegram-cta-btn:hover {
    background: #087fb6;
}

.telegram-desktop-dock {
    min-height: 50px;
    padding: 11px 17px;
    border-radius: 15px;
    box-shadow: 0 14px 32px rgba(15, 86, 119, .28);
}

.telegram-desktop-dock strong {
    font-size: 13.5px;
}

.top-nav a[href*="/tg.php"],
.nav-telegram-link {
    padding: 7px 10px;
    border-radius: 10px;
    background: #e8f7fe;
    color: #087fb6 !important;
}

@media (max-width: 760px) {
    .telegram-priority-cta,
    .telegram-smart-cta,
    .telegram-auto-strip {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 10px 11px;
        padding: 16px;
        border-radius: 15px;
        border-color: #64c1e8;
        box-shadow: 0 10px 25px rgba(22, 143, 199, .14);
    }

    .telegram-priority-cta .telegram-cta-icon,
    .telegram-smart-cta .telegram-cta-icon,
    .telegram-auto-strip .telegram-cta-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 19px;
    }

    .telegram-priority-cta h2,
    .telegram-smart-cta h2,
    .telegram-auto-strip h2 {
        font-size: 17px;
        line-height: 1.22;
    }

    .telegram-priority-cta p,
    .telegram-smart-cta p,
    .telegram-auto-strip p {
        font-size: 13px;
        line-height: 1.42;
    }

    .telegram-priority-cta .telegram-cta-btn,
    .telegram-smart-cta .telegram-cta-btn,
    .telegram-auto-strip .telegram-cta-btn {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
        min-height: 48px;
        margin-top: 2px;
        font-size: 14px;
    }

    /* Make the Telegram conversion entry unmistakable in the fixed mobile bar. */
    .mobile-quick-nav [data-mobile-nav="telegram"] {
        margin: 0;
        border-radius: 12px;
        background: #229ed9;
        color: #fff !important;
        box-shadow: 0 5px 14px rgba(34, 158, 217, .22);
    }

    .mobile-quick-nav [data-mobile-nav="telegram"] span,
    .mobile-quick-nav [data-mobile-nav="telegram"] strong {
        color: #fff !important;
    }

    .mobile-quick-nav [data-mobile-nav="telegram"] strong {
        font-size: 9.5px;
    }
}

/* ===== Powerbank ads V6: two useful products, sitewide without blocking content ===== */
.managed-ad-anchor:empty { display: none; }

.product-ad-section {
    overflow: hidden;
    border-color: #dbe7ef;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
    box-shadow: 0 8px 24px rgba(15, 58, 84, .06);
}

.product-ad-section .ad-disclosure {
    margin: 0 0 7px;
    padding: 3px 8px;
    background: #eef3f6;
    color: #627482;
    font-size: 10px;
    letter-spacing: .045em;
}

.product-ad-head {
    margin-bottom: 12px;
}

.product-ad-head h2 {
    margin: 0 0 5px;
    color: #17384c;
    font-size: 20px;
    line-height: 1.2;
}

.product-ad-head p {
    color: #607482;
    font-size: 13.5px;
}

.product-ad-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.product-ad-card {
    grid-template-columns: 118px minmax(0, 1fr);
    grid-template-rows: auto auto 1fr auto auto;
    column-gap: 14px;
    row-gap: 6px;
    min-height: 210px;
    padding: 13px;
    border: 1px solid #dde8ee;
    border-radius: 15px;
    background: #fff;
    box-shadow: none;
}

.product-ad-image-link {
    grid-column: 1;
    grid-row: 1 / 6;
    display: block;
    width: 118px;
    min-height: 164px;
    overflow: hidden;
    border-radius: 12px;
    background: #f5f7f8;
}

.product-ad-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 164px;
    object-fit: contain;
    object-position: center;
}

.product-ad-tag {
    grid-column: 2;
    justify-self: start;
    margin: 0;
    padding: 3px 8px;
    background: #eaf8ee;
    color: #17783a;
    font-size: 11px;
}

.product-ad-card h3 {
    grid-column: 2;
    margin: 0;
    color: #172b39;
    font-size: 15px;
    line-height: 1.25;
}

.product-ad-card p {
    grid-column: 2;
    margin: 0;
    color: #647783;
    font-size: 12.5px;
    line-height: 1.38;
}

.product-ad-prices {
    grid-column: 2;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px 9px;
    margin-top: 2px;
}

.product-ad-old-price {
    color: #8a9aa5;
    font-size: 12px;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.product-ad-price {
    margin: 0;
    color: #142f40;
    font-size: 18px;
    line-height: 1;
}

.product-ad-link {
    grid-column: 2;
    min-height: 38px;
    margin-top: 1px;
    padding: 8px 11px;
    border-radius: 10px;
    background: #173f57;
    color: #fff;
    font-size: 12.5px;
}

.product-ad-link:hover {
    background: #0d3147;
    color: #fff;
}

@media (max-width: 760px) {
    .product-ad-section {
        padding-left: 14px;
        padding-right: 14px;
    }

    .product-ad-head h2 {
        font-size: 17px;
    }

    .product-ad-head p {
        font-size: 12.5px;
    }

    .product-ad-grid {
        display: flex;
        gap: 10px;
        margin-right: -14px;
        padding-right: 14px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .product-ad-grid::-webkit-scrollbar { display: none; }

    .product-ad-card {
        flex: 0 0 min(84vw, 330px);
        grid-template-columns: 96px minmax(0, 1fr);
        min-height: 180px;
        padding: 11px;
        column-gap: 11px;
        border-radius: 14px;
        scroll-snap-align: start;
    }

    .product-ad-image-link {
        width: 96px;
        min-height: 142px;
        border-radius: 10px;
    }

    .product-ad-image {
        min-height: 142px;
    }

    .product-ad-card h3 {
        font-size: 14px;
    }

    .product-ad-card p {
        font-size: 11.8px;
    }

    .product-ad-price {
        font-size: 17px;
    }

    .product-ad-link {
        min-height: 36px;
        font-size: 12px;
    }
}


/* ===== Powerbank ads V7: both products visible, compact and relevant ===== */
.product-ad-section {
    margin-top: 14px;
}

.product-ad-head {
    margin-bottom: 10px;
}

.product-ad-head h2 {
    font-size: 19px;
}

.product-ad-head p {
    max-width: 760px;
    font-size: 13px;
    line-height: 1.42;
}

.product-ad-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
}

.product-ad-card {
    min-height: 184px;
    grid-template-columns: 102px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 5px;
    padding: 11px;
}

.product-ad-image-link {
    width: 102px;
    min-height: 148px;
}

.product-ad-image {
    min-height: 148px;
}

.product-ad-card h3 {
    font-size: 14px;
}

.product-ad-card p {
    font-size: 12px;
    line-height: 1.32;
}

.product-ad-link {
    font-weight: 750;
}

@media (max-width: 760px) {
    .product-ad-section {
        padding: 13px;
    }

    .product-ad-head {
        margin-bottom: 9px;
    }

    .product-ad-head h2 {
        font-size: 16px;
        line-height: 1.22;
    }

    .product-ad-head p {
        margin-top: 4px;
        font-size: 11.8px;
        line-height: 1.35;
    }

    .product-ad-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        margin-right: 0;
        padding-right: 0;
        overflow: visible;
        scroll-snap-type: none;
    }

    .product-ad-card {
        width: 100%;
        min-height: 132px;
        grid-template-columns: 82px minmax(0, 1fr);
        grid-template-rows: auto auto auto auto;
        column-gap: 10px;
        row-gap: 4px;
        padding: 9px;
        border-radius: 12px;
    }

    .product-ad-image-link {
        grid-column: 1;
        grid-row: 1 / 5;
        width: 82px;
        min-height: 112px;
        border-radius: 9px;
    }

    .product-ad-image {
        min-height: 112px;
    }

    .product-ad-tag {
        padding: 2px 7px;
        font-size: 10px;
    }

    .product-ad-card h3 {
        font-size: 13.2px;
        line-height: 1.22;
    }

    .product-ad-card p {
        display: none;
    }

    .product-ad-prices {
        gap: 4px 7px;
        margin-top: 0;
    }

    .product-ad-old-price {
        font-size: 11px;
    }

    .product-ad-price {
        font-size: 16px;
    }

    .product-ad-link {
        min-height: 34px;
        padding: 7px 9px;
        font-size: 11.5px;
        line-height: 1.15;
    }
}


/* Emergency outage status: keep the normal schedule visible, but clearly mark it as temporarily inactive. */
.freshness-notice.is-emergency-live {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border: 1px solid #f0b54a;
    background: #fff8e8;
    box-shadow: 0 8px 24px rgba(139, 89, 0, .08);
}
.freshness-notice.is-emergency-live strong {
    color: #8a4b00;
    font-size: 17px;
    line-height: 1.3;
}
.freshness-notice.is-emergency-live > span {
    color: #554016;
}
.freshness-notice.is-emergency-live .emergency-telegram-line {
    font-weight: 800;
    color: #172033;
}
.freshness-notice.is-emergency-live .emergency-telegram-btn {
    width: fit-content;
    min-width: 180px;
    margin-top: 2px;
    background: #229ed9;
    color: #fff;
    border-color: #229ed9;
}
.freshness-notice.is-emergency-live .emergency-telegram-btn:hover {
    background: #188cc5;
    border-color: #188cc5;
}
@media (max-width: 700px) {
    .freshness-notice.is-emergency-live {
        padding: 15px;
        gap: 7px;
    }
    .freshness-notice.is-emergency-live strong { font-size: 16px; }
    .freshness-notice.is-emergency-live .emergency-telegram-btn {
        width: 100%;
        min-height: 48px;
    }
}


/* ===== Emergency status V8.2: clean single-column alert on desktop and mobile ===== */
.single-group-status.is-emergency-status,
.freshness-notice.is-emergency-live {
    display: block !important;
    width: 100%;
    margin: 14px 0;
    padding: 18px 20px;
    border: 1px solid #f0c66f;
    border-left: 4px solid #e0a000;
    border-radius: 14px;
    background: linear-gradient(180deg, #fffdf7 0%, #fff8e7 100%);
    box-shadow: 0 8px 22px rgba(121, 80, 0, .07);
    overflow: hidden;
}

/* Emergency text is NOT a generic Telegram card. Keep it strictly vertical. */
.emergency-status-content,
.single-group-status.is-emergency-status .emergency-status-content,
.freshness-notice.is-emergency-live .emergency-status-content {
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.emergency-status-content::before,
.emergency-status-content::after {
    display: none !important;
    content: none !important;
}

.emergency-status-content > * {
    position: static !important;
    float: none !important;
    grid-column: auto !important;
    grid-row: auto !important;
    width: auto;
    min-width: 0;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.emergency-status-title {
    display: block !important;
    margin: 0 0 9px !important;
    color: #885200 !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    line-height: 1.28 !important;
    letter-spacing: -.01em;
    text-wrap: balance;
}

.emergency-status-text {
    display: block !important;
    margin: 0 0 14px !important;
    color: #4c5360 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.55 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
}

.emergency-status-content .emergency-telegram-line {
    display: block !important;
    margin: 0 !important;
    padding-top: 12px;
    border-top: 1px solid rgba(181, 133, 36, .22);
    color: #0c6088 !important;
    font-size: 14.5px !important;
    font-weight: 850 !important;
    line-height: 1.4 !important;
    white-space: normal !important;
}

.single-group-status.is-emergency-status .emergency-telegram-btn,
.freshness-notice.is-emergency-live .emergency-telegram-btn,
.emergency-status-content .emergency-telegram-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    align-self: flex-start !important;
    width: auto !important;
    min-width: 210px !important;
    min-height: 46px;
    margin: 11px 0 0 !important;
    padding: 11px 18px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: #229ed9 !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-shadow: 0 8px 18px rgba(34, 158, 217, .2) !important;
}

.emergency-status-content .emergency-telegram-btn:hover {
    background: #168fc7 !important;
    transform: translateY(-1px);
}

@media (max-width: 700px) {
    .single-group-status.is-emergency-status,
    .freshness-notice.is-emergency-live {
        margin: 12px 0;
        padding: 15px 14px;
        border-left-width: 3px;
        border-radius: 13px;
    }

    .emergency-status-title {
        margin-bottom: 8px !important;
        font-size: 16.5px !important;
        line-height: 1.32 !important;
    }

    .emergency-status-text {
        margin-bottom: 12px !important;
        font-size: 14px !important;
        line-height: 1.52 !important;
    }

    .emergency-status-content .emergency-telegram-line {
        padding-top: 11px;
        font-size: 14px !important;
        line-height: 1.4 !important;
    }

    .single-group-status.is-emergency-status .emergency-telegram-btn,
    .freshness-notice.is-emergency-live .emergency-telegram-btn,
    .emergency-status-content .emergency-telegram-btn {
        align-self: stretch !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 48px;
        margin-top: 10px !important;
        padding: 12px 14px !important;
        font-size: 14.5px !important;
    }
}
