/* ----- Общие стили ----- */
body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    background: #e8edf3;
    color: #1e2a3a;
    line-height: 1.6;
    min-height: 100vh;
    background-image:
        linear-gradient(to bottom, rgba(11, 43, 74, 0.20) 0%, transparent 15%, transparent 100%),
        linear-gradient(to bottom, rgba(11, 43, 74, 0.10) 12%, transparent 30%, transparent 100%),
        linear-gradient(to bottom, rgba(11, 43, 74, 0.05) 25%, transparent 45%, transparent 100%);
    background-repeat: no-repeat;
    background-size: 100% 100vh;
    padding: 4px 0;
}

a {
    text-decoration: none !important;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
    padding-left: 0;
}

img {
    max-width: 100%;
    height: 55px;
}

/* ----- Контейнер ----- */
#main {
    max-width: 1240px;
    margin: 4px auto 0;
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    overflow: hidden;
    padding: 0 20px 20px;
}

/* ----- Шапка ----- */
#logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 20px 16px;
    border-bottom: 1px solid #c8d8e8;
    flex-wrap: wrap;
    background: #ffffff;
    margin: 0 -20px;
    border-radius: 16px 16px 0 0;
}

#logo .logo-icon {
    display: flex;
    align-items: center;
    gap: 10px;
}

#logo .logo-icon i {
    font-size: 3.2rem;
    color: #0b2b4a;
}

#logo .logo-icon h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #0b2b4a;
}

#logo .logo-icon h1 span {
    color: #0f6cbf;
}

#logo .logo-icon .tagline {
    font-size: 0.85rem;
    color: #4a6a8a;
    font-weight: 400;
    margin-top: 2px;
}

#inf {
    margin-left: auto;
    font-size: 0.95rem;
    color: #0b2b4a;
    background: #f0f4f8;
    padding: 6px 18px;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    white-space: nowrap;
}

#inf i {
    color: #0f6cbf;
    font-size: 0.9rem;
}

/* ----- Баннер ----- */
.banner {
    margin: 0 -20px;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: 250px;
    display: block;
    object-fit: cover;
}

/* ----- Горизонтальное меню с разделителями ----- */
#menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    padding: 16px 20px 16px;
    border-bottom: 1px solid #e8edf3;
    background: #fff;
    margin: 0 -20px;
}

#menu li {
    padding: 0 8px;
    position: relative;
}

#menu li::after {
    content: '|';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    color: #c8d8e8;
    font-weight: 300;
}

#menu li:last-child::after {
    display: none;
}

#menu li a {
    display: inline-block;
    padding: 8px 16px;
    font-size: 1.05rem;
    font-weight: 500;
    color: #1e3a5f;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: transparent;
}

#menu li a:hover {
    color: #0f6cbf;
    background: rgba(15, 108, 191, 0.06);
}

#menu li a .key {
    font-weight: 700;
    color: #0f6cbf;
}

#menu li a:hover .key {
    color: #0f6cbf;
}

/* ----- Сайдбар (левая колонка) ----- */
#menu_left {
    flex: 0 0 230px;
    min-width: 200px;
    background: #f5f8fc;
    border-radius: 14px;
    padding: 16px 8px 20px 16px;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    align-self: flex-start;
}

#menu_left li {
    margin-bottom: 2px;
}

#menu_left h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0b2b4a;
    margin: 14px 0 4px;
    padding-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

#menu_left h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, #0b2b4a, transparent);
}

#menu_left h3 i {
    color: #0f6cbf;
    font-size: 0.9rem;
    width: 20px;
}

#menu_left h4 {
    font-weight: 500;
    font-size: 0.95rem;
    padding: 2px 8px 2px 28px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}

#menu_left h4 a {
    display: block;
    color: #1e3a5f;
}

#menu_left h4:hover {
    background: #dce8f5;
    color: #0f6cbf;
}

#menu_left h4 a:hover {
    color: #0f6cbf;
}

#menu_left h4 .key {
    font-weight: 700;
    color: #0f6cbf;
}

.flash-placeholder {
    margin-top: 24px;
    background: #dce8f5;
    border-radius: 12px;
    padding: 16px 10px;
    text-align: center;
    border: 2px solid #0f6cbf;
    box-shadow: 0 2px 8px rgba(15, 108, 191, 0.15);
}

.flash-placeholder i {
    font-size: 2.8rem;
    color: #0f6cbf;
    opacity: 0.8;
}

.flash-placeholder p {
    font-size: 0.8rem;
    color: #1e3a5f;
    margin-top: 6px;
    font-weight: 500;
}

/* ----- Правая колонка (главная) ----- */
#right {
    flex: 1;
    min-width: 280px;
}

.columns-wrapper {
    margin-top: 10px;
}

.special {
    background: #eaf3fa;
    border-radius: 4px;
    padding: 22px 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(15, 108, 191, 0.08);
}

.special h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0b2b4a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.special h3 i {
    color: #0f6cbf;
    font-size: 1.8rem;
}

.special p {
    font-size: 1rem;
    color: #1e3a5f;
}

.special b {
    color: #0b2b4a;
}

/* Сетка из двух колонок для главной */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.leftcol, .rightcol {
    background: #f5f8fc;
    border-radius: 14px;
    padding: 18px 20px 22px;
    border: 1px solid #e0e8f0;
    transition: box-shadow 0.25s, transform 0.2s;
}

.leftcol:hover, .rightcol:hover {
    box-shadow: 0 8px 28px rgba(15, 108, 191, 0.08);
    transform: translateY(-4px);
}

.leftcol h3, .rightcol h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0b2b4a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.leftcol h3 i, .rightcol h3 i {
    color: #0f6cbf;
}

.leftcol a {
    color: #0f6cbf;
    font-weight: 600;
}

.leftcol a:hover {
    color: #0a4b7a;
}

.leftcol b {
    color: #0b2b4a;
}

/* Уменьшенные иконки в блоке "Наши услуги" */
.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #0f6cbf;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.image-wrap:hover .icon-box {
    transform: scale(1.05);
}

.rightcol .image-wrap {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 6px;
}

.rightcol p {
    font-size: 0.95rem;
    color: #1e3a5f;
    margin-top: 4px;
}

.rightcol .image-wrap + .image-wrap {
    margin-top: 18px;
}

/* ----- Блок тарифов (для страницы тарифов) ----- */
.tariff-content {
    background: #f5f8fc;
    border-radius: 14px;
    padding: 18px 20px 22px;
    border: 1px solid #e0e8f0;
    transition: box-shadow 0.25s, transform 0.2s;
}

.tariff-content:hover {
    box-shadow: 0 8px 28px rgba(15, 108, 191, 0.08);
    transform: translateY(-4px);
}

.tariff-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0b2b4a;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tariff-content h3 i {
    color: #0f6cbf;
}

.tariff-content hr {
    border: 0;
    border-top: 1px solid #c8d8e8;
    margin: 8px 0 16px 0;
}

.tariff-content .news-date {
    font-style: italic;
    color: #4a6a8a;
}

/* ----- Таблицы (светло-синяя шапка, красные цены) ----- */
.tariff-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 16px 0;
    font-size: 1.05rem;
}

.tariff-table thead th {
    background: #4a90d9;
    color: #ffffff;
    padding: 14px 28px;
    text-align: left;
    border: 1px solid #3a7bc8;
    font-weight: 700;
}

.tariff-table tbody td {
    padding: 12px 28px;
    border: 1px solid #d0dce8;
    vertical-align: middle;
}

.tariff-table tbody tr:nth-child(even) {
    background: #eef3f8;
}

.tariff-table tbody tr:hover {
    background: #dce8f5;
}

.tariff-table tbody td:nth-child(3) {
    color: #1e2a3a !important;
    font-weight: 400 !important;
}

/* Все ячейки в столбце "Стоимость" — красные */
.tariff-table tbody td:nth-child(4) {
    color: #cc0000 !important;
    font-weight: 700 !important;
}

/* Для столбца "Скорость" (второй столбец) — красный */
.tariff-table tbody td:nth-child(2) {
    color: #cc0000 !important;
    font-weight: 700 !important;
}

.tariff-table .speed-highlight {
    color: #cc0000 !important;
    font-weight: 700 !important;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tariff-group-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e3a5f;
    text-align: center;
    margin: 40px 0 10px 0;
    padding-bottom: 6px;
}

.tariff-group-title:first-of-type {
    margin-top: 0;
}

/* ----- Футер (увеличенный шрифт) ----- */
#footer {
    margin-top: 36px;
    padding: 28px 20px 22px;
    border-top: 4px solid #0f6cbf;
    text-align: center;
    font-size: 1.05rem;
    color: #1e2a3a;
    background: #f5f8fc;
    border-radius: 0 0 16px 16px;
    line-height: 1.8;
}

#footer a {
    color: #0f6cbf;
    font-weight: 600;
}

#footer a:hover {
    color: #0a4b7a;
    text-decoration: none;
}

#footer .footer-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 35px;
    margin-top: 10px;
    font-size: 0.95rem;
    color: #3d5770;
}

#footer .footer-meta i {
    margin-right: 6px;
    color: #0f6cbf;
}

/* ----- Виджет погоды (улучшенный) ----- */
#weather-container.weather-widget-container {
    margin-top: 24px !important;
    background: linear-gradient(145deg, #dce8f5, #c5d6e8) !important;
    border-radius: 16px !important;
    padding: 16px 12px 14px !important;
    text-align: center !important;
    border: 1px solid #b0c8e0 !important;
    box-shadow: 0 6px 20px rgba(15, 108, 191, 0.12) !important;
    list-style: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

#weather-container.weather-widget-container:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 28px rgba(15, 108, 191, 0.18) !important;
}

#weather-container .weather-widget-title {
    color: #0b2b4a !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    margin-bottom: 6px !important;
    letter-spacing: 0.3px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

#weather-container .weather-widget-title i {
    color: #0f6cbf !important;
    font-size: 1.1rem !important;
}

#weather-container .weather-widget-content {
    padding: 6px 0 !important;
    font-size: 1rem !important;
    color: #1e3a5f !important;
    min-height: 80px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#weather-container .weather-display {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    flex-wrap: wrap !important;
    animation: fadeInUp 0.5s ease !important;
}

#weather-container .weather-temp {
    font-size: 2.4rem !important;
    font-weight: 700 !important;
    color: #0b2b4a !important;
    line-height: 1.2 !important;
}

#weather-container .weather-desc {
    font-size: 1.1rem !important;
    color: #1e3a5f !important;
    font-weight: 500 !important;
    background: rgba(255,255,255,0.4) !important;
    padding: 2px 12px !important;
    border-radius: 20px !important;
    white-space: nowrap !important;
}

#weather-container .weather-error {
    color: #cc0000 !important;
    font-weight: 500 !important;
}

#weather-container .weather-widget-footer {
    font-size: 0.7rem !important;
    color: #4a6a8a !important;
    margin-top: 6px !important;
    opacity: 0.7 !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#weather-container .weather-loader {
    display: inline-block !important;
    width: 30px !important;
    height: 30px !important;
    border: 3px solid #d0dce8 !important;
    border-top: 3px solid #0f6cbf !important;
    border-radius: 50% !important;
    animation: spin 0.8s linear infinite !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ----- ПЛАНШЕТЫ (до 860px) ----- */
@media (max-width: 860px) {
    #logo {
        flex-direction: column;
        align-items: center;
        border-radius: 16px 16px 0 0;
        padding: 16px 12px;
        text-align: center;
    }

    #logo .logo-icon {
        flex-direction: column;
        align-items: center;
    }

    #logo .logo-icon img {
        height: 50px;
    }

    #logo .logo-icon h1 {
        font-size: 1.6rem;
    }

    #logo .logo-icon .tagline {
        font-size: 0.75rem;
    }

    #inf {
        margin-left: 0;
        white-space: normal;
        width: 100%;
        justify-content: center;
        align-items: center;
        padding: 8px 12px;
        font-size: 0.85rem;
        flex-direction: column;
        gap: 4px;
    }

    #inf > div:first-child {
        flex-wrap: wrap;
        justify-content: center;
    }

    #inf > div:last-child {
        font-size: 0.9rem !important;
    }

    #menu {
        padding: 12px 10px 10px;
        gap: 2px;
    }

    #menu li {
        padding: 0 4px;
    }

    #menu li::after {
        content: '|';
        right: -2px;
        font-size: 0.8rem;
    }

    #menu li a {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    .columns-wrapper {
        flex-direction: column;
        margin-top: 10px;
        gap: 16px !important;
    }

    #menu_left {
        flex: 1 1 auto;
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px 16px;
        padding: 14px 16px;
        min-width: unset;
    }

    #menu_left li {
        margin-bottom: 0;
    }

    #menu_left h3 {
        margin-top: 6px;
        font-size: 0.95rem;
    }

    #menu_left h4 {
        font-size: 0.85rem;
        padding: 2px 6px 2px 20px;
    }

    .flash-placeholder {
        display: none;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .leftcol, .rightcol {
        padding: 14px 16px;
    }

    .leftcol-wrapper {
        gap: 16px !important;
    }

    .special {
        padding: 16px 18px;
    }

    .special h3 {
        font-size: 1.2rem;
    }

    .special p {
        font-size: 0.95rem;
    }

    .tariff-content {
        padding: 14px 16px;
    }

    .tariff-content h3 {
        font-size: 1rem;
    }

    .tariff-table {
        font-size: 0.9rem;
    }

    .tariff-table thead th,
    .tariff-table tbody td {
        padding: 6px 10px;
    }

    .tariff-group-title {
        font-size: 1.3rem;
        margin: 24px 0 8px 0;
    }

    .banner {
        margin: 0 -16px;
    }

    .banner img {
        height: 180px;
    }

    #weather-container.weather-widget-container {
        margin-top: 16px !important;
        padding: 12px 8px !important;
        grid-column: 1 / -1;
    }

    #weather-container .weather-temp {
        font-size: 1.8rem !important;
    }

    #weather-container .weather-desc {
        font-size: 0.9rem !important;
    }

    #footer {
        font-size: 0.9rem;
        padding: 20px 16px;
    }

    #footer .footer-meta {
        font-size: 0.8rem;
        gap: 12px 20px;
    }
}

/* ----- МОБИЛЬНЫЕ ТЕЛЕФОНЫ (до 520px) ----- */
@media (max-width: 520px) {
    body {
        padding: 2px 0;
    }

    #main {
        padding: 0 6px 6px;
        margin: 2px auto 0;
        border-radius: 10px;
    }

    #logo {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 10px 8px !important;
        margin: 0 -6px;
        border-radius: 10px 10px 0 0;
        gap: 6px !important;
        flex-wrap: wrap !important;
    }

    #logo .logo-icon {
        flex-direction: row !important;
        align-items: center !important;
        gap: 6px !important;
        flex-shrink: 0;
    }

    #logo .logo-icon img {
        height: 36px !important;
        width: auto !important;
    }

    #logo .logo-icon h1 {
        font-size: 1.1rem !important;
        letter-spacing: 0 !important;
        margin: 0 !important;
        line-height: 1.2 !important;
    }

    #logo .logo-icon .tagline {
        display: block !important;
        font-size: 0.5rem !important;
        color: #6a8aaa !important;
        font-weight: 400 !important;
        margin-top: 1px !important;
        line-height: 1 !important;
    }

    #inf {
        margin-left: auto !important;
        margin-right: 0 !important;
        white-space: nowrap !important;
        width: auto !important;
        justify-content: flex-end !important;
        align-items: center !important;
        padding: 2px 0 2px 4px !important;
        font-size: 0.5rem !important;
        border-radius: 12px !important;
        background: transparent !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 4px !important;
        flex-shrink: 0;
        text-align: right !important;
        overflow: hidden !important;
        max-width: 100% !important;
    }

    #inf > div:first-child,
    #inf > div:last-child {
        display: inline !important;
        font-size: 0.5rem !important;
        white-space: nowrap !important;
    }

    #inf > div:first-child {
        display: inline-flex !important;
        align-items: center !important;
        gap: 2px !important;
        flex-wrap: nowrap !important;
    }

    #inf > div:last-child {
        display: inline !important;
        margin-top: 0 !important;
        font-size: 0.5rem !important;
        color: #6a8aaa !important;
    }

    #inf .sep {
        display: inline !important;
        color: #c8d8e8 !important;
        font-size: 0.4rem !important;
        margin: 0 2px !important;
    }

    #inf i {
        font-size: 0.45rem !important;
        margin-right: 1px !important;
    }

    #inf > div:first-child span {
        display: none !important;
    }

    /* Скрываем левую колонку */
    #menu_left {
        display: none !important;
    }

    #right {
        flex: 1 1 100% !important;
        min-width: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .columns-wrapper {
        flex-direction: column !important;
        gap: 0 !important;
    }

    #menu {
        padding: 6px 4px 6px !important;
        margin: 0 -6px;
        gap: 0 !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        justify-content: flex-start !important;
    }

    #menu li {
        padding: 0 3px !important;
        flex-shrink: 0 !important;
    }

    #menu li::after {
        content: '|';
        font-size: 0.5rem !important;
        right: -1px !important;
    }

    #menu li a {
        padding: 4px 6px !important;
        font-size: 0.6rem !important;
        border-radius: 4px !important;
        white-space: nowrap !important;
    }

    #menu li a .key {
        font-size: 0.65rem !important;
    }

    /* Баннер - подгоняем под экран */
    .banner {
        margin: 0 -6px !important;
        overflow: hidden !important;
        height: auto !important;
        max-height: 180px !important;
    }

    .banner img {
        width: 100% !important;
        height: auto !important;
        max-height: 180px !important;
        object-fit: contain !important;
        display: block !important;
    }

    .content-grid {
        gap: 12px !important;
    }

    .leftcol, .rightcol {
        padding: 10px 12px !important;
        border-radius: 10px !important;
    }

    .leftcol h3, .rightcol h3 {
        font-size: 1rem !important;
        margin-bottom: 8px !important;
    }

    .leftcol p, .rightcol p {
        font-size: 0.85rem !important;
    }

    .leftcol-wrapper {
        gap: 12px !important;
    }

    .special {
        padding: 12px 14px !important;
        margin-bottom: 16px !important;
    }

    .special h3 {
        font-size: 1rem !important;
        gap: 6px !important;
        justify-content: center !important;
    }

    .special h3 i {
        font-size: 1.2rem !important;
    }

    .special p {
        font-size: 0.85rem !important;
        text-align: left !important;
    }

    .icon-box {
        width: 32px !important;
        height: 32px !important;
        font-size: 1rem !important;
    }

    .rightcol .image-wrap {
        gap: 10px !important;
    }

    .rightcol p {
        font-size: 0.8rem !important;
    }

    .tariff-content {
        padding: 10px 8px !important;
        border-radius: 10px !important;
        overflow: hidden !important;
    }

    .tariff-content h3 {
        font-size: 0.95rem !important;
    }

    .tariff-content p {
        font-size: 0.85rem !important;
    }

    .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        margin: 0 -4px !important;
        padding: 0 4px !important;
        width: 100% !important;
        display: block !important;
    }

    .table-responsive table {
        min-width: 380px !important;
        width: 100% !important;
        max-width: 600px !important;
        margin: 0 auto !important;
    }

    .tariff-table {
        font-size: 0.65rem !important;
        min-width: 360px !important;
    }

    .tariff-table thead th {
        padding: 4px 6px !important;
        font-size: 0.6rem !important;
        white-space: nowrap !important;
    }

    .tariff-table tbody td {
        padding: 4px 6px !important;
        font-size: 0.6rem !important;
        white-space: nowrap !important;
    }

    .tariff-table tbody td:nth-child(3) {
        color: #1e2a3a !important;
        font-weight: 400 !important;
    }

    .tariff-table tbody td:nth-child(4) {
        color: #cc0000 !important;
        font-weight: 700 !important;
    }

    .tariff-table tbody td:nth-child(2) {
        color: #cc0000 !important;
        font-weight: 700 !important;
    }

    .tariff-table .speed-highlight {
        color: #cc0000 !important;
        font-weight: 700 !important;
    }

    .tariff-group-title {
        font-size: 1rem !important;
        margin: 12px 0 6px 0 !important;
    }

    #weather-container.weather-widget-container {
        padding: 10px 6px !important;
        margin-top: 12px !important;
    }

    #weather-container .weather-widget-title {
        font-size: 0.85rem !important;
    }

    #weather-container .weather-temp {
        font-size: 1.5rem !important;
    }

    #weather-container .weather-desc {
        font-size: 0.75rem !important;
        white-space: normal !important;
        padding: 2px 8px !important;
    }

    #weather-container .weather-display {
        gap: 6px !important;
    }

    #weather-container .weather-widget-footer {
        font-size: 0.6rem !important;
    }

    #footer {
        font-size: 0.75rem !important;
        padding: 14px 10px !important;
        margin-top: 20px !important;
        border-top-width: 3px !important;
    }

    #footer .footer-meta {
        font-size: 0.65rem !important;
        gap: 6px 12px !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    #footer .footer-meta span {
        display: inline-block !important;
    }

    #footer p {
        margin-bottom: 4px !important;
    }

    #footer > div:not(.footer-meta) {
        font-size: 0.65rem !important;
    }
}

/* ----- ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (до 380px) ----- */
@media (max-width: 380px) {
    #logo .logo-icon h1 {
        font-size: 0.9rem !important;
    }

    #logo .logo-icon img {
        height: 28px !important;
    }

    #inf {
        font-size: 0.5rem !important;
    }

    #inf > div:first-child {
        font-size: 0.5rem !important;
    }

    #inf > div:last-child {
        font-size: 0.45rem !important;
    }

    #menu li a {
        font-size: 0.5rem !important;
        padding: 3px 4px !important;
    }

    #menu li::after {
        font-size: 0.4rem !important;
    }

    .special h3 {
        font-size: 0.85rem !important;
    }

    .leftcol h3, .rightcol h3 {
        font-size: 0.8rem !important;
    }

    .tariff-table {
        font-size: 0.5rem !important;
        min-width: 280px !important;
    }

    .tariff-table thead th,
    .tariff-table tbody td {
        padding: 2px 4px !important;
        font-size: 0.5rem !important;
    }
}

/* Стили для таблиц на странице "Тарифы на интернет" */

/* Пояснения — чёрный цвет */
.tariff-table tbody td:nth-child(2) {
    color: #1e2a3a !important;
    font-weight: 400 !important;
}

/* Скорость внутри пояснений — красный */
.tariff-table .speed-highlight {
    color: #cc0000 !important;
    font-weight: 700 !important;
}

/* Время/трафик — чёрный */
.tariff-table tbody td:nth-child(3) {
    color: #1e2a3a !important;
    font-weight: 400 !important;
}

/* Стоимость — красный */
.tariff-table tbody td:nth-child(4) {
    color: #cc0000 !important;
    font-weight: 700 !important;
}
