/* tariff/style2.css - ПОЛНАЯ ВЕРСИЯ С МОБИЛЬНЫМ ПОИСКОМ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-black: #0a0a0a;
    --secondary-black: #1a1a1a;
    --accent-red: #e63946;
    --light-red: #ff4757;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray-medium: #6c757d;
    --gray-dark: #343a40;
    --gradient-primary: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    --gradient-accent: linear-gradient(135deg, #e63946 0%, #ff4757 100%);
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.2);
}

body {
    font-family: "Inter", sans-serif;
    line-height: 1.6;
    color: var(--primary-black);
    overflow-x: hidden;
}

/* Header Styles - совместимые с компонентом */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(230, 57, 70, 0.2);
    height: 80px;
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: var(--shadow-medium);
}

.header__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    height: 100%;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    z-index: 1001;
}

.header__logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: white;
    font-size: 1.2rem;
}

.header__logo-text {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.header__logo-text .l, span.l {
    color: #ec3c4a;
    font-size: 26px;
    font-weight: bold;
}

.header__logo-plus {
    color: var(--accent-red);
}

/* Desktop Navigation */
.header__nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header__nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.header__nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.header__nav-link:hover {
    color: var(--accent-red);
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width 0.3s ease;
}

.header__nav-link:hover::after {
    width: 100%;
}

.header__cta {
    background: var(--gradient-accent);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.header__cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Mobile Menu Styles - ПОЛНАЯ ВЕРСИЯ С ПОИСКОМ */
.header__mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    z-index: 1001;
}

.header__mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.header__mobile-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.header__mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.header__mobile-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 75px;
    left: 0;
    right: 0;
    background: var(--primary-black);
    transform: translateY(-150%);
    transition: transform 0.4s ease, opacity 0.3s ease;
    z-index: 999;
    padding: 2rem;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 20px));
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(230, 57, 70, 0.2);
    max-height: calc(100vh - 80px - env(safe-area-inset-bottom, 20px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Mobile Search Styles */
.mobile-search {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-search__container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.mobile-search__label {
    display: block;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.mobile-search__input-container {
    position: relative;
}

.mobile-search__input {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.mobile-search__input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.mobile-search__input:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.mobile-search__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--secondary-black);
    border: 2px solid var(--accent-red);
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1001;
    display: none;
    box-shadow: var(--shadow-medium);
}

.mobile-search__dropdown.show {
    display: block;
}

.mobile-search__dropdown-item {
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 0.95rem;
}

.mobile-search__dropdown-item:hover {
    background: var(--accent-red);
    color: white;
}

.mobile-search__dropdown-item:last-child {
    border-bottom: none;
}

/* Mobile Menu Content */
.mobile-menu__content {
    height: 100%;
}

.mobile-menu__list {
    list-style: none;
    text-align: center;
}

.mobile-menu__item {
    margin-bottom: 1rem;
}

.mobile-menu__link {
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    display: block;
    padding: 1rem;
    transition: color 0.3s ease;
}

.mobile-menu__link:hover {
    color: var(--accent-red);
}

.mobile-menu__cta {
    background: var(--gradient-accent) !important;
    padding: 1rem 2rem !important;
    border-radius: 8px !important;
    margin-top: 1rem !important;
    display: inline-block !important;
}

body.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Hero Section */
.hero {
    background: var(--gradient-primary);
    padding: 6rem 2rem 4rem;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(230, 57, 70, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 71, 87, 0.1) 0%, transparent 50%);
    animation: backgroundShift 10s ease-in-out infinite alternate;
}

@keyframes backgroundShift {
    0% { opacity: 1; }
    100% { opacity: 0.7; }
}

.hero__container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero__breadcrumb {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    margin-top: 10px;
    font-size: 0.95rem;
}

.hero__breadcrumb a {
    color: var(--accent-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero__breadcrumb a:hover {
    color: var(--light-red);
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero__highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__description {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero__connection-price {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero__connection-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--accent-red);
}

.hero__connection-value {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero__cta {
    background: var(--gradient-accent);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    display: inline-block;
}

.hero__cta:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

/* Tariff Plans Section */
.tariff-plans {
    padding: 5rem 2rem;
    background: var(--white);
}

.tariff-plans__container {
    max-width: 1200px;
    margin: 0 auto;
}

.tariff-plans__title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 4rem;
    color: var(--primary-black);
}

.tariff-categories {
    display: grid;
    gap: 4rem;
}

.tariff-category {
    background: var(--gray-light);
    border-radius: 25px;
    padding: 2.5rem;
    box-shadow: var(--shadow-light);
}

.tariff-category__title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-red);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.tariff-category__title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.tariff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.tariff-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tariff-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--accent-red);
}

.tariff-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tariff-card:hover::before {
    transform: scaleX(1);
}

.tariff-card__plan {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-black);
    margin-bottom: 0.5rem;
}

.tariff-card__price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-red);
    margin-bottom: 1rem;
}

.tariff-card p {
    color: var(--gray-medium);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Contact Form */
.contact-section {
    background: var(--primary-black);
    padding: 5rem 2rem;
    color: var(--white);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 80%, rgba(230, 57, 70, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 20%, rgba(255, 71, 87, 0.05) 0%, transparent 50%);
}

.contact-section__container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.contact-section__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.contact-section__subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.form-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-heavy);
}

.form-group {
    margin-bottom: 2rem;
    text-align: left;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--white);
    font-size: 1rem;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-submit {
    background: var(--gradient-accent);
    color: white;
    border: none;
    padding: 1.25rem 3rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.form-submit:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.success-message, .error-message {
    padding: 1.2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: none;
    font-weight: 500;
}

.success-message {
    background: rgba(40, 167, 69, 0.15);
    color: #4ade80;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.error-message {
    background: rgba(220, 53, 69, 0.15);
    color: #f87171;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Footer Styles */
.footer {
    background: var(--primary-black);
    color: var(--white);
    padding: 4rem 2rem 2rem;
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer__section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--accent-red);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer__logo-icon {
    width: 35px;
    height: 35px;
    background: var(--gradient-accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: white;
    font-size: 1rem;
}

.footer__logo-text {
    font-size: 1.3rem;
    font-weight: 700;
}

.footer__contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer__contact-item:hover {
    color: var(--white);
}

.footer__contact-item a {
    color: inherit;
    text-decoration: none;
}

.footer__contact-icon {
    color: var(--accent-red);
    font-size: 1.1rem;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--gradient-accent);
    color: white;
    border: none;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    font-size: 1.2rem;
    font-weight: bold;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design - ПОЛНАЯ ВЕРСИЯ */
@media (max-width: 768px) {
    .header__nav {
        display: none;
    }
    
    .header__mobile-toggle {
        display: flex;
    }
    
    .header__logo-text {
        display: none;
    }

    .header__logo-icon {
        display: flex;
    }

    /* Показываем мобильное меню только на мобильных */
    .mobile-menu {
        display: block !important; /* Принудительно показываем */
    }

    .hero {
        padding: 5rem 1rem 3rem;
    }

    .hero__connection-price {
        padding: 1.5rem;
    }

    .tariff-plans {
        padding: 3rem 1rem;
    }

    .tariff-category {
        padding: 1.5rem;
    }

    .tariff-grid {
        grid-template-columns: 1fr;
    }

    .contact-section {
        padding: 3rem 1rem;
    }

    .form-card {
        padding: 2rem;
    }

    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .scroll-to-top {
        width: 50px;
        height: 50px;
        bottom: 1rem;
        right: 1rem;
    }

    /* iOS Safari specific fixes */
    @supports (-webkit-touch-callout: none) {
        .mobile-menu {
            /* Дополнительная поддержка для старых версий iOS */
            padding-bottom: calc(2rem + constant(safe-area-inset-bottom, 20px));
            max-height: calc(100vh - 80px - constant(safe-area-inset-bottom, 20px));
        }
        
        .mobile-menu__cta {
            margin-bottom: constant(safe-area-inset-bottom, 10px);
        }
    }
    
    /* Mobile Search Responsive */
    .mobile-search__container {
        padding: 1rem;
    }
    
    .mobile-search__label {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }
    
    .mobile-search__input {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
    
    .mobile-search__dropdown-item {
        padding: 0.875rem;
        font-size: 0.9rem;
    }
}

@media (min-width: 769px) {
    .header__nav {
        display: flex !important;
    }
    
    .header__nav-list {
        display: flex !important;
    }
    
    .header__mobile-toggle {
        display: none !important;
    }

    .header__logo-icon {
        display: none;
    }

    .header__logo-text {
        display: block;
    }

    /* Принудительно скрываем мобильное меню на десктопе */
    .mobile-menu {
        display: none !important;
    }
}

/* Дополнительные улучшения */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.hidden { display: none; }
.visible { display: block; }

/* Links and Options */
a {
    color: #fff;
}

option {
    color: #000;
}

/* Chat widget responsive fix */
@media (max-height: 720px) {
    div[data-live-chat-id="65d729d43bd155a1a605f167"] .widget-wrapper .widget.widget-open {
      height: 50% !important;
      max-height: 50% !important;
    }
}