/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #f0f0f0 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23e5e5e5"/><path d="M0,0 L100,100 M100,0 L0,100" stroke="%23d0d0d0" stroke-width="1"/></svg>');
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    border: 1px solid #ccc;
}

/* Шапка */
.header {
    background: #0066cc;
    background: linear-gradient(to bottom, #0088ff, #004488);
    padding: 15px 0;
    border-bottom: 3px solid #ff9900;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 36px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-left: 10px;
}

.logo-icon {
    font-size: 40px;
    color: #ffcc00;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.contact-info {
    text-align: right;
    color: #fff;
}

.phone {
    font-size: 28px;
    font-weight: bold;
    color: #ffff00;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.work-time {
    font-size: 14px;
    margin-top: 5px;
}

/* Навигация */
.nav {
    background: #003366;
    background: linear-gradient(to bottom, #004488, #002244);
    border-top: 1px solid #0055aa;
    border-bottom: 1px solid #001122;
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav ul li {
    position: relative;
}

.nav ul li a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    border-right: 1px solid #0055aa;
    transition: all 0.3s;
}

.nav ul li a:hover, .nav ul li.active a {
    background: #ff9900;
    background: linear-gradient(to bottom, #ffaa00, #cc7700);
}

.nav ul li a i {
    margin-right: 8px;
}

/* Слайдер */
.slider {
    height: 300px;
    background: #003366 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="300" viewBox="0 0 1200 300"><rect width="1200" height="300" fill="%23003366"/><circle cx="200" cy="150" r="80" fill="%230055aa" opacity="0.3"/><circle cx="1000" cy="100" r="60" fill="%230055aa" opacity="0.3"/><circle cx="900" cy="200" r="40" fill="%230055aa" opacity="0.3"/></svg>') no-repeat center;
    position: relative;
    border-bottom: 3px solid #ff9900;
}

.slider-content {
    position: absolute;
    top: 50%;
    left: 50px;
    transform: translateY(-50%);
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    max-width: 600px;
}

.slider-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: #ffcc00;
}

.slider-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Бегущая строка */
.marquee {
    background: #ffffcc;
    border-top: 2px solid #ffcc00;
    border-bottom: 2px solid #ffcc00;
    padding: 8px 0;
    font-weight: bold;
    color: #cc6600;
    overflow: hidden;
}

/* Основной контент */
.content {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
}

.main {
    flex: 3;
    min-width: 300px;
    padding-right: 20px;
}

.sidebar {
    flex: 1;
    min-width: 250px;
}

/* Блоки с тарифами */
.section-title {
    font-size: 24px;
    color: #0066cc;
    border-bottom: 2px solid #0066cc;
    padding-bottom: 10px;
    margin: 20px 0 15px;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: #ff9900;
}

.tariffs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.tariff-box {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.tariff-box:hover {
    transform: translateY(-5px);
}

.tariff-box.popular:before {
    content: 'ПОПУЛЯРНЫЙ';
    position: absolute;
    top: 15px;
    right: -30px;
        top: 21px;
    right: -36px;
    background: #ff6600;
    color: #fff;
    padding: 5px 30px;
    font-size: 12px;
    font-weight: bold;
    transform: rotate(45deg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.tariff-box h3 {
    color: #0066cc;
    font-size: 20px;
    margin-bottom: 10px;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 10px;
}

.tariff-box .price {
    font-size: 28px;
    font-weight: bold;
    color: #cc0000;
    margin: 15px 0;
    text-align: center;
}

.tariff-box .features {
    list-style: none;
    margin-bottom: 20px;
}

.tariff-box .features li {
    padding: 8px 0;
    border-bottom: 1px dotted #ddd;
    position: relative;
    padding-left: 25px;
}

.tariff-box .features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #00aa00;
    font-weight: bold;
}

/* Градиентные кнопки */
.btn {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 3px 5px rgba(0,0,0,0.2);
}

.btn-primary {
    background: linear-gradient(to bottom, #ff9900, #cc6600);
    color: #fff;
    width: 100%;
}

.btn-primary:hover {
    background: linear-gradient(to bottom, #ffaa33, #dd7700);
    box-shadow: 0 5px 8px rgba(0,0,0,0.3);
}

.btn-secondary {
    background: linear-gradient(to bottom, #0066cc, #004488);
    color: #fff;
}

.btn-secondary:hover {
    background: linear-gradient(to bottom, #0088ff, #0055aa);
}

.btn-success {
    background: linear-gradient(to bottom, #00cc66, #009944);
    color: #fff;
}

.btn-success:hover {
    background: linear-gradient(to bottom, #00ee77, #00bb55);
}

.btn-warning {
    background: linear-gradient(to bottom, #ffcc00, #cc9900);
    color: #fff;
}

.btn-warning:hover {
    background: linear-gradient(to bottom, #ffdd33, #ddaa00);
}

.btn-danger {
    background: linear-gradient(to bottom, #ff3333, #cc0000);
    color: #fff;
}

.btn-danger:hover {
    background: linear-gradient(to bottom, #ff5555, #dd2222);
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

/* Боковая панель */
.sidebar-box {
    background: #f0f0f0;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.sidebar-box h3 {
    background: linear-gradient(to bottom, #0066cc, #004488);
    color: #fff;
    padding: 12px 15px;
    font-size: 18px;
    border-bottom: 1px solid #004488;
}

.sidebar-box .content {
    padding: 15px;
}

.sidebar-box ul {
    list-style: none;
}

.sidebar-box ul li {
    border-bottom: 1px dotted #ccc;
    padding: 10px 0;
}

.sidebar-box ul li:last-child {
    border-bottom: none;
}

.sidebar-box ul li a {
    color: #0066cc;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.sidebar-box ul li a:hover {
    color: #ff6600;
}

.sidebar-box ul li a i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

/* Новости */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.news-item {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s;
}

.news-item:hover {
    background: #f0f0f0;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.news-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.news-item h3 a {
    color: #0066cc;
    text-decoration: none;
}

.news-item h3 a:hover {
    color: #ff6600;
    text-decoration: underline;
}

.news-item .date {
    color: #666;
    font-size: 12px;
    margin-bottom: 10px;
    display: block;
}

/* Счетчик */
.counter {
    text-align: center;
    margin: 15px 0;
    padding: 10px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.counter img {
    margin-bottom: 5px;
}

/* Подвал */
.footer {
    background: #003366;
    background: linear-gradient(to bottom, #004488, #002244);
    color: #aaddff;
    padding: 30px 20px;
    border-top: 3px solid #ff9900;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
    padding: 0 15px;
}

.footer-column h3 {
    color: #ffcc00;
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 1px solid #0055aa;
    padding-bottom: 5px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: #aaddff;
    text-decoration: none;
}

.footer-column ul li a:hover {
    color: #ffff00;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #0055aa;
    font-size: 12px;
    color: #88bbee;
}

.webmaster {
    text-align: center;
    margin: 10px 0;
    font-size: 11px;
    color: #88bbee;
}

.webmaster a {
    color: #88bbee;
}

/* Формы */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #0066cc;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.form-control:focus {
    border-color: #0066cc;
    outline: none;
    box-shadow: 0 0 5px rgba(0,102,204,0.5);
}

/* Таблицы */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.table th, .table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table th {
    background: linear-gradient(to bottom, #0066cc, #004488);
    color: #fff;
    font-weight: bold;
}

.table tr:hover {
    background-color: #f5f5f5;
}

/* Адаптивность */
@media (max-width: 992px) {
    .nav ul {
        flex-wrap: wrap;
    }
    
    .nav ul li {
        flex: 1 0 50%;
    }
    
    .nav ul li a {
        text-align: center;
        border-right: none;
        border-bottom: 1px solid #0055aa;
    }
    
    .slider {
        height: 250px;
    }
    
    .slider-content {
        left: 30px;
    }
    
    .slider-content h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info {
        margin-top: 10px;
    }
    
    .nav ul li {
        flex: 1 0 100%;
    }
    
    .content {
        flex-direction: column;
    }
    
    .main {
        padding-right: 0;
        margin-bottom: 20px;
    }
    
    .slider {
        height: 200px;
    }
    
    .slider-content {
        left: 20px;
        max-width: 80%;
    }
    
    .slider-content h2 {
        font-size: 22px;
    }
    
    .slider-content p {
        font-size: 16px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 24px;
    }
    
    .phone {
        font-size: 20px;
    }
    
    .slider {
        height: 150px;
    }
    
    .slider-content {
        left: 15px;
    }
    
    .slider-content h2 {
        font-size: 18px;
        margin-bottom: 5px;
    }
    
    .slider-content p {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .tariffs {
        grid-template-columns: 1fr;
    }
}

/* Дополнительные стили для новых страниц */

/* Стили для страницы подключения */
.info-box {
    background: #f0f8ff;
    border: 1px solid #b0e0e6;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.steps {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.step-number {
    background: #0066cc;
    color: white;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    margin: 0 auto 15px;
    font-weight: bold;
    font-size: 20px;
}

/* Стили для страницы абонентов */
.service-box {
    background: #f0f8ff;
    border: 1px solid #b0e0e6;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.payment-method {
    text-align: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.support-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.support-channel {
    flex: 1;
    min-width: 200px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.documents {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.document {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}

/* Стили для страницы новостей */
.featured-news {
    background: #f0f8ff;
    border: 1px solid #b0e0e6;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.news-tag {
    background: #ff6600;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    display: inline-block;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
}

.news-meta {
    color: #666;
    font-size: 12px;
    margin-bottom: 15px;
}

.news-list {
    margin-bottom: 30px;
}

.news-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.news-date {
    background: #0066cc;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    min-width: 70px;
    margin-right: 15px;
}

.news-content {
    flex: 1;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination a {
    padding: 8px 12px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    margin: 0 5px;
    border-radius: 3px;
}

.pagination a:first-child {
    background: #0066cc;
    color: white;
}

/* Стили для страницы контактов */
.contact-info-main {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.contact-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.offices {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.office {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.requisites {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

/* Адаптивность для новых элементов */
@media (max-width: 768px) {
    .steps, .support-info {
        flex-direction: column;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-date {
        margin-right: 0;
        margin-bottom: 15px;
        width: 100%;
    }
}