/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    background: #0066cc;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.btn:hover {
    background: #0055aa;
}

/* Шапка */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    color: #0066cc;
    font-size: 24px;
}

.logo p {
    font-size: 12px;
    color: #666;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    color: #333;
    text-decoration: none;
    padding: 10px 15px;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #0066cc;
}

.burger {
    display: none;
    cursor: pointer;
    font-size: 20px;
}

/* Главный баннер */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 150px 20px 100px;
    margin-top: 60px;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Преимущества */
.features {
    padding: 80px 0;
    text-align: center;
}

.features h2 {
    margin-bottom: 50px;
    font-size: 2rem;
    color: #0066cc;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature {
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.feature:hover {
    transform: translateY(-10px);
}

.feature i {
    font-size: 40px;
    color: #0066cc;
    margin-bottom: 20px;
}

.feature h3 {
    margin-bottom: 15px;
}

/* Тарифы */
.tariffs {
    padding: 80px 0;
    background: #f9f9f9;
    text-align: center;
}

.tariffs h2 {
    margin-bottom: 50px;
    font-size: 2rem;
    color: #0066cc;
}

.tariffs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tariff {
    background: white;
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.3s;
}

.tariff:hover {
    transform: translateY(-10px);
}

.tariff h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.price {
    font-size: 2rem;
    color: #0066cc;
    font-weight: bold;
    margin-bottom: 20px;
}

.tariff ul {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.tariff ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.popular {
    border: 2px solid #0066cc;
}

.popular-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: #0066cc;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

/* Форма подключения */
.connect-form {
    padding: 80px 0;
    text-align: center;
}

.connect-form h2 {
    margin-bottom: 50px;
    font-size: 2rem;
    color: #0066cc;
}

form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

/* Карта покрытия */
.coverage {
    padding: 80px 0;
    background: #f9f9f9;
    text-align: center;
}

.coverage h2 {
    margin-bottom: 50px;
    font-size: 2rem;
    color: #0066cc;
}

.map {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.map img {
    width: 100%;
    height: auto;
    display: block;
}

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,102,204,0.8);
    color: white;
    padding: 20px;
    text-align: center;
}

/* Поддержка */
.support {
    padding: 80px 0;
    text-align: center;
}

.support h2 {
    margin-bottom: 50px;
    font-size: 2rem;
    color: #0066cc;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.support-option {
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.support-option i {
    font-size: 40px;
    color: #0066cc;
    margin-bottom: 20px;
}

.support-option h3 {
    margin-bottom: 15px;
}

/* Contacts Section */
.contacts {
    padding: 80px 0;
    background: #f5f9ff;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.contact-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.contact-header {
    padding: 20px;
    background: linear-gradient(135deg, #0066cc, #004499);
    color: white;
    display: flex;
    align-items: center;
}

.contact-header i {
    font-size: 24px;
    margin-right: 15px;
}

.contact-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.contact-body {
    padding: 25px;
}

.city-contacts, .operator-contacts {
    margin-bottom: 20px;
}

.city-contacts h4, .operator-contacts h4 {
    color: #0066cc;
    margin-bottom: 10px;
    font-size: 1rem;
}

.contact-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-body li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.contact-body li:last-child {
    border-bottom: none;
}

.contact-body li strong {
    color: #333;
    min-width: 100px;
    display: inline-block;
}

.contact-email, .contact-social {
    margin-top: 20px;
    display: flex;
    align-items: center;
}

.contact-email i, .contact-social a i {
    margin-right: 10px;
    color: #0066cc;
}

.contact-social a {
    display: inline-flex;
    align-items: center;
    margin-right: 15px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-social a:hover {
    color: #0066cc;
}

.telegram-link {
    color: #0088cc !important;
}

.whatsapp-link {
    color: #25D366 !important;
}

/* Футер */
footer {
    background: #333;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

.footer-logo h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 24px;
}

.footer-logo p {
    color: #aaa;
    font-size: 14px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    padding: 5px 0;
}

.footer-links ul li a:hover {
    color: white;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: #f9f9f9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.service-header {
    padding: 30px 20px 20px;
    text-align: center;
    background: linear-gradient(135deg, #0066cc, #004499);
    color: white;
}

.service-header i {
    font-size: 50px;
    margin-bottom: 15px;
}

.service-header h3 {
    font-size: 1.5rem;
    margin: 0;
}

.service-body {
    padding: 25px;
    flex-grow: 1;
}

.service-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-body li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.service-body li:last-child {
    border-bottom: none;
}

.service-body i.fas.fa-check {
    color: #0066cc;
    margin-right: 10px;
    font-size: 14px;
}

.service-footer {
    padding: 0 25px 25px;
    text-align: center;
}

.popular-service {
    position: relative;
    border: 2px solid #0066cc;
}

.popular-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff5722;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

/* Адаптивность */
@media (max-width: 992px) {
    .features-grid, .tariffs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .support-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li a {
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
    }
    
    .burger {
        display: block;
    }
    
    .features-grid, .tariffs-grid, .support-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 120px 20px 80px;
    }
    
    form {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .contacts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .contact-header {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-header i {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .contact-body li strong {
        display: block;
        margin-bottom: 5px;
    }
}
/* Стили для уведомлений */
.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    border-radius: 5px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1001;
    max-width: 90%;
    text-align: center;
}

.notification.show {
    opacity: 1;
}

.notification.success {
    background-color: #4CAF50;
}

.notification.error {
    background-color: #F44336;
}

/* Анимация спиннера */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spinner {
    animation: spin 1s linear infinite;
    margin-right: 8px;
}


@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
    
    .form-tabs {
        flex-direction: column;
    }
    
    .form-tab {
        padding: 10px;
        text-align: center;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 15% auto;
        padding: 15px;
    }
    
    .form-tab {
        font-size: 14px;
        padding: 8px;
    }
}

.burger.open .fa-bars:before {
    content: "\f00d";
}

/* Стили для модальных окон */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 600px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

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

.form-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.form-tab {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
}

.form-tab.active {
    border-bottom-color: #0066cc;
    color: #0066cc;
    font-weight: bold;
}

.form-container {
    display: none;
}

.form-container.active {
    display: block;
}
/* Дополнительные стили для контактов */
.contact-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-header {
    background: linear-gradient(135deg, #0066cc, #004499);
    padding: 20px;
    color: white;
    display: flex;
    align-items: center;
}

.contact-header i {
    font-size: 28px;
    margin-right: 15px;
}

.contact-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.contact-body {
    padding: 25px;
    background: white;
}

.city-contacts, .operator-contacts {
    margin-bottom: 20px;
}

.city-contacts h4, .operator-contacts h4 {
    color: #0066cc;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.contact-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-body li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

.contact-body li:last-child {
    border-bottom: none;
}

.contact-body li strong {
    color: #333;
    min-width: 120px;
    display: inline-block;
}

.contact-email, .contact-social {
    margin-top: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.contact-email i, .contact-social a i {
    margin-right: 10px;
    color: #0066cc;
    font-size: 18px;
}

.contact-social a {
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
    margin-bottom: 10px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    padding: 8px 12px;
    border-radius: 6px;
    background: #f5f9ff;
}

.contact-social a:hover {
    color: white;
    background: #0066cc;
}

.telegram-link:hover {
    background: #0088cc !important;
}
.map-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.city-marks .city {
    position: absolute;
    background: #0066cc;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
}

.whatsapp-link:hover {
    background: #25D366 !important;
}

@media (max-width: 768px) {
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-body li {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .contact-body li strong {
        margin-bottom: 5px;
    }
}
/* === Patch: Mobile modal & form fit === */
@supports (height: 100dvh) { :root { --vh: 100dvh; } }
@supports not (height: 100dvh) { :root { --vh: 100vh; } }

.modal{
  display:flex; align-items:center; justify-content:center;
  padding:16px;
  overflow-y:auto;                /* даём прокрутку самому модал-перекрытию */
  -webkit-overflow-scrolling:touch;
}

.modal-content{
  width:100%;
  margin:0;                       /* убираем внешние отступы сверху/снизу */
  max-height:calc(var(--vh) - 32px);  /* вписываемся в экран */
  overflow:auto;                  /* внутренняя прокрутка содержимого */
}

.form-group textarea{
  width:100%;
  padding:12px 15px;
  border:1px solid #ddd;
  border-radius:5px;
  font-size:16px;
  min-height:100px;
  resize:vertical;
}

@media (max-width:480px){
  .modal-content{ padding:16px; }
}

