/* main.css – общие стили VillaNet */

/* ---------- Базовые сбросы ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #e4effa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Inter', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ---------- Основной контейнер ---------- */
.app {
    max-width: 1300px;
    width: 100%;
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 20px 35px -8px rgba(28, 65, 112, 0.15);
    padding: 30px 35px;
    border: 1px solid rgba(70, 130, 200, 0.2);
}

/* ---------- Шапка ---------- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-link {
    display: inline-block;
}

.logo-link img {
    height: 50px;
    width: auto;
    display: block;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lk-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f2f8ff;
    padding: 8px 18px;
    border-radius: 40px;
    border: 1px solid #c7dfff;
    color: #1d4a77;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s;
}

.lk-link:hover {
    background: #e3f0ff;
    color: #1d5f9e;
    text-decoration: none;
}

.lk-link i {
    font-size: 1.1rem;
    color: #2a6eb0;
}

/* ---------- Меню ---------- */
.nav-menu {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.nav-item {
    background: #f2f8ff;
    border: 1px solid #c1d9f0;
    border-radius: 40px;
    padding: 8px 22px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1d4e7c;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.15s;
    box-shadow: 0 2px 5px rgba(0, 40, 80, 0.05);
    text-decoration: none !important;
}

.nav-item i {
    font-size: 1.2rem;
    color: #3073b3;
}

.nav-item:hover {
    background: #e3f0ff;
    border-color: #8bb7e6;
    box-shadow: 0 6px 12px rgba(0, 90, 156, 0.1);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background: #1d5f9e;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ---------- Подвал ---------- */
.footer {
    margin-top: 40px;
    text-align: center;
    color: #6f8db0;
    font-size: 0.9rem;
    border-top: 1px dashed #b9d2f0;
    padding-top: 22px;
}

/* ---------- Контент ---------- */
.content {
    font-size: 0.85rem;
}

.content h2 {
    font-size: 1.2rem;
    margin: 20px 0 10px;
    color: #123456;
}

.content h3 {
    font-size: 1rem;
    margin: 15px 0 5px;
    color: #1d4a77;
}

.content a:not(.nav-item):not(.lk-link) {
    text-decoration: underline;
    color: #1d5f9e;
}

.content a:not(.nav-item):not(.lk-link):hover {
    color: #123456;
}

/* ---------- Карточки тарифов (wrap / box) ---------- */
.wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
}

.box {
    background: #f8fcff;
    border: 1px solid #bdd6f2;
    border-radius: 20px;
    padding: 20px;
    width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    text-align: center;
}

.box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.h1-price {
    font-size: 1.4rem;
    color: #123456;
    margin-bottom: 10px;
}

.h2-price {
    font-size: 0.9rem;
    color: #5f8bb3;
    margin-bottom: 15px;
}

.price {
    font-size: 2rem;
    font-weight: 600;
    color: #1d5f9e;
    margin: 15px 0;
}

.about {
    color: #1d4a77;
    margin: 10px 0;
    font-size: 0.75rem;
}

.button-tarif {
    display: inline-block;
    background: #1d5f9e;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    margin-top: 15px;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
}

.button-tarif:hover {
    background: #154a7a;
    text-decoration: none;
    color: white;
}

.tv-price {
    color: #1d5f9e;
    text-decoration: underline;
    cursor: pointer;
}

.tv-price:hover {
    color: #123456;
}

/* ---------- Модальные окна ---------- */
.modal-content ul {
    columns: 2;
    list-style: none;
    padding: 0;
}

.modal-content li {
    padding: 3px 0;
    color: #1d4a77;
}

.compact-city-modal .modal-dialog {
    max-width: 550px;
}

.compact-city-modal .modal-body {
    padding: 15px 20px;
}

.region-list {
    columns: 1;
    list-style: none;
    padding-left: 0;
}

.region-group {
    margin-bottom: 15px;
}

.region-title {
    font-weight: 600;
    color: #123456;
    margin-bottom: 5px;
    font-size: 0.95rem;
    border-bottom: 1px solid #e0ecff;
    padding-bottom: 3px;
}

.region-list li {
    margin-bottom: 5px;
    line-height: 1.4;
}

.region-list li a {
    font-size: 0.9rem;
    color: #1d5f9e;
    text-decoration: underline;
    word-break: break-word;
    overflow-wrap: break-word;
    display: inline-block;
    max-width: 100%;
}

.region-list li a:hover {
    color: #123456;
}

/* ---------- Попапы (overlay / popup) ---------- */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.popup,
.popup2 {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.popup2 {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    max-height: none;
    overflow-y: visible;
}

.close_modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.close_modal:hover {
    color: #333;
}

.popup h5,
.popup2 h5 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #123456;
}

.popup input,
.popup textarea {
    width: 100%;
    padding: 8px 12px;
    margin: 8px 0;
    border: 1px solid #bdd6f2;
    border-radius: 30px;
    box-sizing: border-box;
    font-size: 0.95rem;
}

.popup textarea {
    border-radius: 20px;
    resize: vertical;
    min-height: 60px;
}

.popup .button-tarif {
    width: 100%;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

.popup2 p {
    color: #155724;
}

/* ---------- Cookie баннер ---------- */
#cookieConsent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1d4a77;
    color: white;
    padding: 12px 20px;
    text-align: center;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

#cookieConsent span {
    font-size: 0.9rem;
}

#acceptCookies {
    background: #1d5f9e;
    border: 1px solid white;
    padding: 8px 22px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    transition: background 0.2s, transform 0.1s;
}

#acceptCookies:hover {
    background: #154a7a;
}

#acceptCookies:active {
    transform: scale(0.98);
}

/* ---------- Адаптивность ---------- */
@media (max-width: 700px) {
    .logo-link img {
        height: 40px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 10px;
        margin-top: 15px;
        margin-bottom: 25px;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-item {
        width: 100%;
        justify-content: center;
        padding: 12px 22px;
    }
}

@media (max-width: 600px) {
    .wrap {
        flex-direction: column;
        align-items: center;
    }

    .modal-content ul {
        columns: 1;
    }

    #cookieConsent {
        flex-direction: column;
        text-align: center;
    }

    #acceptCookies {
        width: 100%;
        max-width: 200px;
    }
}

/* ---------- Стили страниц (общие) ---------- */
/* Эти классы используются на главной и других страницах */
.welcome-block {
    text-align: center;
    padding: 30px 20px;
    background: #f8fcff;
    border-radius: 40px;
    margin-bottom: 30px;
    border: 1px solid #bdd6f2;
}

.welcome-block h1 {
    font-size: 2rem;
    color: #123456;
    margin-bottom: 10px;
}

.welcome-block .lead {
    font-size: 1.2rem;
    color: #1d4a77;
    margin-bottom: 20px;
}

.tariff-notice {
    background: #fff3cd;
    border-left: 6px solid #ffc107;
    border-radius: 20px;
    padding: 20px 25px;
    margin: 25px 0 30px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.notice-icon {
    font-size: 2rem;
}

.notice-content {
    flex: 1;
    font-size: 1rem;
    color: #856404;
}

.notice-content strong {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 6px;
}

.old-price {
    text-decoration: line-through;
    color: #b36b00;
}

.new-price {
    font-weight: bold;
    color: #b36b00;
}

.notice-reasons {
    margin: 8px 0 10px;
    font-size: 0.9rem;
}

.notice-more {
    display: inline-block;
    margin-top: 5px;
    color: #1d5f9e;
    font-weight: 500;
    text-decoration: underline;
}

.notice-more:hover {
    color: #0a3b5e;
}

.locations-section {
    margin-bottom: 30px;
}

.locations-section h2 {
    font-size: 1.6rem;
    color: #123456;
    margin-bottom: 20px;
    text-align: center;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.location-card {
    background: #f8fcff;
    border: 1px solid #bdd6f2;
    border-radius: 24px;
    padding: 20px;
}

.location-card h3 {
    font-size: 1.2rem;
    color: #123456;
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: 1px dashed #bdd6f2;
    padding-bottom: 5px;
}

.location-card ul {
    margin: 0 0 15px;
    padding-left: 20px;
    color: #1d4a77;
}

.location-card li {
    margin: 3px 0;
}

.link-more {
    color: #1d5f9e;
    text-decoration: underline;
    font-weight: 500;
}

.link-more:hover {
    color: #123456;
}

.tariffs-preview {
    margin-bottom: 30px;
    text-align: center;
}

.tariffs-preview h2 {
    font-size: 1.6rem;
    color: #123456;
    margin-bottom: 20px;
}

.tariff-mini-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.tariff-mini-card {
    background: #f8fcff;
    border: 1px solid #bdd6f2;
    border-radius: 30px;
    padding: 15px 20px;
    width: 200px;
    text-align: center;
    transition: transform 0.2s;
}

.tariff-mini-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.tariff-name {
    font-weight: 600;
    color: #123456;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 5px;
}

.tariff-speed {
    color: #1d4a77;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 8px;
}

.tariff-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1d5f9e;
    display: block;
    margin-bottom: 12px;
}

.more-link {
    color: #1d4a77;
}

.more-link a {
    color: #1d5f9e;
    text-decoration: underline;
}

.advantages-mini {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    background: #f8fcff;
    border: 1px solid #bdd6f2;
    border-radius: 40px;
    padding: 20px;
    margin-bottom: 30px;
}

.advantage-mini-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1d4a77;
    font-weight: 500;
}

.advantage-mini-item i {
    font-size: 1.4rem;
    color: #1d5f9e;
}

.contact-line {
    text-align: center;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 40px;
    padding: 20px;
    color: #155724;
}

.phone-big {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1d5f9e;
    text-decoration: none;
}

.phone-big:hover {
    text-decoration: underline;
}

/* Дополнительные правки для маленьких экранов */
@media (max-width: 600px) {
    .welcome-block h1 {
        font-size: 1.6rem;
    }

    .tariff-mini-card {
        width: 100%;
    }

    .advantages-mini {
        flex-direction: column;
        align-items: flex-start;
    }

    .tariff-notice {
        flex-direction: column;
    }

    .notice-icon {
        align-self: center;
    }
}

/* ---------- Стили для страниц cctv, contacts, help, promotions, tv_page ---------- */
/* Они уже содержат классы, все определения вынесены в этот файл */
/* (В исходных файлах удалены блоки <style>, они теперь здесь) */

/* cctv.php */
.cctv-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 10px;
}

.cctv-page h1 {
    font-size: 2.2rem;
    color: #123456;
    text-align: center;
    margin-bottom: 5px;
}

.cctv-page .page-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #1d4a77;
    margin-top: 0;
    margin-bottom: 30px;
}

.cctv-page h2 {
    font-size: 1.8rem;
    color: #1d4a77;
    margin: 40px 0 20px;
    text-align: center;
    border-bottom: 2px solid #bdd6f2;
    padding-bottom: 10px;
}

.intro-block {
    background: #f8fcff;
    border: 1px solid #bdd6f2;
    border-radius: 24px;
    padding: 20px 25px;
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #1d4a77;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.service-card {
    background: #f8fcff;
    border: 1px solid #bdd6f2;
    border-radius: 24px;
    padding: 25px 20px;
    text-align: center;
    transition: transform 0.2s;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.service-card i {
    font-size: 2.8rem;
    color: #1d5f9e;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.3rem;
    color: #123456;
    margin-bottom: 10px;
}

.service-card p {
    color: #1d4a77;
    font-size: 0.95rem;
    line-height: 1.5;
}

.special-offer {
    background: linear-gradient(135deg, #f0f8ff, #d4e8ff);
    border-radius: 30px;
    padding: 30px;
    text-align: center;
    margin: 40px 0;
}

.offer-card {
    max-width: 500px;
    margin: 0 auto;
}

.offer-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #123456;
    margin-bottom: 5px;
}

.offer-desc {
    color: #1d4a77;
    margin-bottom: 15px;
}

.offer-price {
    margin-bottom: 20px;
}

.tariffs-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin: 30px 0;
}

.tariff-card {
    background: #f8fcff;
    border: 1px solid #bdd6f2;
    border-radius: 28px;
    padding: 25px 20px;
    text-align: center;
    width: 250px;
    position: relative;
    transition: transform 0.2s;
}

.tariff-card.popular {
    border: 2px solid #1d5f9e;
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(29, 95, 158, 0.15);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #1d5f9e;
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.tariff-card h3 {
    font-size: 1.6rem;
    color: #123456;
    margin: 10px 0 10px;
}

.tariff-card .price {
    font-size: 1.2rem;
    color: #1d4a77;
    margin-bottom: 15px;
}

.tariff-card .price .value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1d5f9e;
}

.tariff-card .feature {
    color: #1d4a77;
    margin-bottom: 20px;
    min-height: 40px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.advantage-item {
    background: #f8fcff;
    border: 1px solid #bdd6f2;
    border-radius: 24px;
    padding: 25px 15px;
    text-align: center;
}

.advantage-item i {
    font-size: 2.5rem;
    color: #1d5f9e;
    margin-bottom: 10px;
}

.advantage-item h4 {
    font-size: 1.2rem;
    color: #123456;
    margin-bottom: 8px;
}

.advantage-item p {
    color: #1d4a77;
    font-size: 0.9rem;
    line-height: 1.4;
}

@media (max-width: 700px) {
    .tariff-card.popular {
        transform: scale(1);
    }
}

@media (max-width: 500px) {
    .cctv-page h1 {
        font-size: 1.8rem;
    }
}

/* contacts.php */
.contacts-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 10px 0;
}

.contacts-page h1 {
    font-size: 1.8rem;
    color: #123456;
    margin-bottom: 20px;
    border-bottom: 2px solid #bdd6f2;
    padding-bottom: 8px;
}

.contacts-page h2 {
    font-size: 1.3rem;
    color: #1d4a77;
    margin: 20px 0 10px;
}

.contact-info {
    background: #f8fcff;
    border: 1px solid #bdd6f2;
    border-radius: 16px;
    padding: 15px;
    text-align: center;
    font-size: 1rem;
}

.contact-info a {
    color: #1d5f9e;
    text-decoration: underline;
}

.contact-form-section {
    background: #f8fcff;
    border: 1px solid #bdd6f2;
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    margin-bottom: 3px;
    font-weight: 500;
    color: #123456;
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group textarea,
.form-group input[type="text"][name="captcha"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #bdd6f2;
    border-radius: 30px;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.form-group textarea {
    border-radius: 16px;
    resize: vertical;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.captcha-reload {
    font-size: 1.4rem;
    background: #f0f6ff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}

.captcha-reload:hover {
    background: #e0ecff;
}

.form-agreement {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-agreement input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.form-agreement label {
    margin-bottom: 0;
    font-size: 0.85rem;
    color: #1d4a77;
}

.form-agreement a {
    color: #1d5f9e;
    text-decoration: underline;
}

.form-success {
    background: #d4edda;
    color: #155724;
    padding: 8px 12px;
    border-radius: 30px;
    margin-bottom: 15px;
    border: 1px solid #c3e6cb;
    font-size: 0.9rem;
}

.form-error {
    background: #f8d7da;
    color: #721c24;
    padding: 8px 12px;
    border-radius: 30px;
    margin-bottom: 15px;
    border: 1px solid #f5c6cb;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .contacts-page h1 {
        font-size: 1.4rem;
    }

    .contacts-page h2 {
        font-size: 1.1rem;
    }

    .form-agreement {
        flex-direction: column;
        align-items: flex-start;
    }

    .captcha-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* help.php */
.help-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.help-page h1 {
    font-size: 2rem;
    color: #123456;
    margin-bottom: 30px;
    border-bottom: 2px solid #bdd6f2;
    padding-bottom: 10px;
}

.help-page h2 {
    font-size: 1.5rem;
    color: #1d4a77;
    margin: 30px 0 20px;
    text-align: left;
}

.payment-card,
.details-card,
.download-card {
    background: #f8fcff;
    border: 1px solid #bdd6f2;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.payment-icon {
    background: #ffffff;
    border: 1px solid #bdd6f2;
    border-radius: 40px;
    padding: 8px 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #1d4a77;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.payment-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.payment-icon i {
    font-size: 1.2rem;
    color: #1d5f9e;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #e0ecff;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #5f8bb3;
}

.detail-value {
    color: #1d4a77;
    text-align: right;
}

.important-note {
    text-align: center;
    color: #b13e3e;
    font-weight: 500;
    margin-top: 15px;
    padding-top: 10px;
}

.download-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.download-list li {
    margin: 10px 0;
    border-bottom: 1px dashed #e0ecff;
    padding-bottom: 8px;
}

.download-list li:last-child {
    border-bottom: none;
}

.download-list a {
    color: #1d5f9e;
    text-decoration: underline;
    font-weight: 500;
    display: inline-block;
    padding: 2px 0;
}

.download-list a:hover {
    color: #123456;
}

@media (max-width: 600px) {
    .help-page h1 {
        font-size: 1.5rem;
    }

    .help-page h2 {
        font-size: 1.2rem;
    }

    .payment-icon {
        width: 100%;
        justify-content: center;
    }

    .detail-row {
        flex-direction: column;
        gap: 5px;
    }

    .detail-label,
    .detail-value {
        text-align: left;
    }
}

/* promotions.php */
.promotions-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
}

.promotions-page h1 {
    font-size: 2.2rem;
    color: #123456;
    margin-bottom: 5px;
    border-bottom: 2px solid #bdd6f2;
    padding-bottom: 10px;
    text-align: center;
}

.page-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #1d4a77;
    margin-top: 0;
    margin-bottom: 30px;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.promo-card {
    background: #f8fcff;
    border: 1px solid #bdd6f2;
    border-radius: 28px;
    padding: 30px 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 90, 156, 0.1);
}

.promo-icon {
    font-size: 3rem;
    color: #1d5f9e;
    text-align: center;
    margin-bottom: 15px;
}

.promo-card h2 {
    font-size: 1.6rem;
    color: #123456;
    margin: 0 0 15px;
    text-align: center;
    line-height: 1.3;
}

.promo-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #1d5f9e;
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.promo-desc {
    font-size: 1rem;
    color: #1d4a77;
    margin-bottom: 15px;
    line-height: 1.5;
    text-align: center;
}

.promo-condition {
    background: #eaf3ff;
    border-left: 4px solid #1d5f9e;
    padding: 12px 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #123456;
    font-size: 0.95rem;
}

.promo-condition i {
    color: #1d5f9e;
    font-size: 1.2rem;
    margin-top: 2px;
}

.promo-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
    flex-grow: 1;
}

.promo-features li {
    padding: 5px 0;
    color: #1d4a77;
    font-size: 0.95rem;
    border-bottom: 1px dashed #d0e2ff;
}

.promo-features li:last-child {
    border-bottom: none;
}

.promo-note {
    background: #fff9e6;
    border-radius: 16px;
    padding: 12px 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #8a6d3b;
    font-size: 0.9rem;
}

.promo-note i {
    color: #f0ad4e;
    font-size: 1.3rem;
}

.button-outline {
    background: transparent;
    color: #1d5f9e;
    border: 1px solid #1d5f9e;
}

.button-outline:hover {
    background: #e3f0ff;
    color: #123456;
    border-color: #123456;
}

.promo-footer {
    margin-top: 40px;
    text-align: center;
    background: #f0f7ff;
    border-radius: 40px;
    padding: 15px 20px;
    border: 1px solid #bdd6f2;
    color: #1d4a77;
    font-size: 0.95rem;
}

.promo-footer a {
    color: #1d5f9e;
    text-decoration: underline;
    font-weight: 500;
}

.promo-footer i {
    margin-right: 8px;
    color: #1d5f9e;
}

@media (max-width: 700px) {
    .promo-card h2 {
        font-size: 1.4rem;
    }

    .promo-badge {
        position: static;
        display: inline-block;
        margin: 0 auto 15px;
        text-align: center;
    }

    .promo-card {
        padding: 25px 20px;
    }
}

/* tv_page.php */
.tv-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.tv-page h1 {
    font-size: 2.2rem;
    color: #123456;
    margin-bottom: 30px;
    border-bottom: 2px solid #bdd6f2;
    padding-bottom: 10px;
    text-align: center;
}

.tv-page h2 {
    font-size: 1.8rem;
    color: #1d4a77;
    margin: 40px 0 20px;
    text-align: center;
}

.section-desc {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    color: #1d4a77;
    font-size: 1.1rem;
    line-height: 1.6;
}

.tv-hero {
    background: linear-gradient(135deg, #f8fcff 0%, #e2f0ff 100%);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid #bdd6f2;
    text-align: center;
}

.hero-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #123456;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #1d4a77;
    margin-bottom: 25px;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin: 30px 0;
}

.feature-card {
    background: #f8fcff;
    border: 1px solid #bdd6f2;
    border-radius: 20px;
    padding: 25px 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 250px;
    box-sizing: border-box;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    color: #1d5f9e;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.2rem;
    color: #123456;
    margin-bottom: 10px;
}

.feature-card p {
    color: #1d4a77;
    font-size: 0.9rem;
    line-height: 1.5;
}

.tv-how-it-works {
    background: #f8fcff;
    border: 1px solid #bdd6f2;
    border-radius: 24px;
    padding: 30px;
    margin: 40px 0;
}

.steps {
    max-width: 700px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.step-number {
    width: 50px;
    height: 50px;
    background: #1d5f9e;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-content h3 {
    color: #123456;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.step-content p {
    color: #1d4a77;
    font-size: 0.95rem;
    line-height: 1.5;
}

.packages-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 30px 0;
}

.info-block {
    background: #f8fcff;
    border: 1px solid #bdd6f2;
    border-radius: 20px;
    padding: 25px;
}

.info-block h3 {
    color: #123456;
    font-size: 1.3rem;
    margin-bottom: 15px;
    border-bottom: 1px solid #bdd6f2;
    padding-bottom: 8px;
}

.info-block p {
    color: #1d4a77;
    margin-bottom: 15px;
    line-height: 1.5;
}

.example-box {
    background: #ffffff;
    border-left: 4px solid #1d5f9e;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #123456;
}

.note {
    text-align: center;
    font-size: 0.9rem;
    color: #5f8bb3;
    margin-top: 10px;
}

.tv-advantages .advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.tv-advantages .advantage-item {
    background: #f8fcff;
    border: 1px solid #bdd6f2;
    border-radius: 40px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1d4a77;
    font-size: 1rem;
}

.tv-advantages .advantage-item i {
    color: #28a745;
    font-size: 1.3rem;
}

.tv-availability {
    text-align: center;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 40px;
    padding: 15px;
    margin: 30px 0;
    font-size: 1.1rem;
    color: #155724;
}

.tv-availability a {
    color: #1d5f9e;
    text-decoration: underline;
    font-weight: 500;
}

@media (max-width: 600px) {
    .feature-card {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .packages-info {
        grid-template-columns: 1fr;
    }

    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .tv-hero {
        padding: 25px;
    }

    .hero-title {
        font-size: 1.4rem;
    }
}

/* ---------- Стили для form_connect попапов (connect-popup) ---------- */
.connect-popup,
.connect-popup2 {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    padding: 20px 25px;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    z-index: 1050;
    max-width: 340px;
    width: 90%;
    border: 1px solid #bdd6f2;
    box-sizing: border-box;
}

.connect-popup.active,
.connect-popup2.active {
    display: block;
}

.connect-close {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
    background: transparent;
    border: none;
    padding: 0;
}

.connect-close:hover {
    color: #333;
}

.connect-form h5 {
    margin: 0 0 15px 0;
    color: #123456;
    font-size: 1.2rem;
    text-align: center;
    padding-right: 20px;
}

.connect-form input,
.connect-form textarea {
    width: 100%;
    padding: 10px 15px;
    margin-bottom: 12px;
    border: 1px solid #bdd6f2;
    border-radius: 30px;
    font-size: 0.95rem;
    box-sizing: border-box;
    background: #f8fcff;
}

.connect-form textarea {
    border-radius: 18px;
    resize: vertical;
    min-height: 60px;
}

.connect-form .button-tarif {
    width: 100%;
    background: #1d5f9e;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 5px;
}

.connect-form .button-tarif:hover {
    background: #154a7a;
}

.connect-thanks {
    text-align: center;
    padding: 15px 5px;
}

.connect-thanks h5 {
    color: #28a745;
    margin: 10px 0;
    font-size: 1.3rem;
}

.connect-thanks p {
    color: #1d4a77;
    margin: 5px 0;
}
/* ---------- Блок MAX (страница help) ---------- */
.max-info {
    margin-top: 40px;
}

.max-card {
    background: #f8fcff;
    border: 1px solid #bdd6f2;
    border-radius: 20px;
    padding: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.max-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.max-item i {
    font-size: 2rem;
    color: #1d5f9e;
    width: 40px;
    text-align: center;
}

.max-content {
    flex: 1;
}

.max-content h3 {
    margin: 0 0 5px;
    color: #123456;
    font-size: 1.2rem;
}

.max-content p {
    margin: 0 0 10px;
    color: #1d4a77;
    font-size: 0.9rem;
}

.max-link {
    display: inline-block;
    background: #1d5f9e;
    color: white;
    padding: 6px 16px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.max-link:hover {
    background: #154a7a;
    color: white;
    text-decoration: none;
}

.max-link i {
    font-size: 1rem;
    margin-right: 5px;
    color: white;
}

@media (max-width: 600px) {
    .max-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
/* ---------- Кнопка консультации (для cctv и других) ---------- */
.button-consultation {
    display: inline-block;
    background: #1d5f9e;
    color: white;
    padding: 12px 28px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(29, 95, 158, 0.2);
}

.button-consultation:hover {
    background: #154a7a;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(29, 95, 158, 0.3);
}

.button-consultation i {
    margin-right: 8px;
}

.consultation-top {
    text-align: center;
    margin: 20px 0 10px;
}

.consultation-bottom {
    text-align: center;
    margin: 30px 0 20px;
}

/* Убираем возможные конфликты с .button-tarif */
.special-offer .button-consultation {
    margin-top: 15px;
}
