/* СБРОС И БАЗОВЫЕ ПЕРЕМЕННЫЕ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-white: #ffffff;
    --bg-light: #F8FAFC;
    --text-primary: #1A1A1A;
    --text-secondary: #5E6F7D;
    --border-light: #E6EDF4;
    --accent-blue: #0C8CE7;
    --accent-green: #2FCV6A; /* дополнительный, используется редко */
    --shadow-sm: 0 8px 20px rgba(0,0,0,0.02), 0 2px 6px rgba(0,0,0,0.02);
    --shadow-hover: 0 15px 30px rgba(12,140,231,0.08), 0 5px 12px rgba(0,0,0,0.02);
    --border-radius-card: 24px;
    --border-radius-btn: 40px;
    --transition: 0.2s ease;
}

body {
    font-family: "Inter", sans-serif;
    background-color: var(--bg-white);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 16px;
    font-weight: 400;
}

/* типографика */
h1, h2, h3 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    text-align: center;
}

h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* КНОПКИ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    border-radius: var(--border-radius-btn);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: var(--transition);
    cursor: pointer;
    background: transparent;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(12,140,231,0.25);
}

.btn-primary:hover {
    background-color: #0a7ed1;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(12,140,231,0.3);
}

.btn-outline {
    border-color: var(--border-light);
    color: var(--text-primary);
    background: var(--bg-white);
}

.btn-outline:hover {
    border-color: var(--accent-blue);
    background-color: #F0F7FF;
}

/* ХЕДЕР (фиксированный) */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.logo {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--accent-blue);
    line-height: 1;
    letter-spacing: -0.02em;
    text-decoration: none;
    background-image: url(/assets/img/logo.png);
    background-repeat: no-repeat;
    background-size: contain;
    padding: 8px 48px;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color var(--transition);
}

.nav-menu a:hover {
    color: var(--accent-blue);
}

/* бургер (скрыт на десктопе) */
.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.burger span {
    width: 26px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition);
}

/* мобильная навигация */
.mobile-nav {
    display: none;
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border-light);
    padding: 1.5rem;
    flex-direction: column;
    gap: 1.2rem;
    box-shadow: var(--shadow-sm);
    z-index: 40;
}
.mobile-nav.active {
    display: flex;
}
.mobile-nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 500;
    padding: 0.5rem 0;
}

/* СЕКЦИИ */
section {
    padding: 80px 0;
}

.hero {
    padding-top: 40px;
    padding-bottom: 60px;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
    background: var(--bg-light);
    border-radius: 32px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--border-light);
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.hero-image img {
    max-width: 100%;
    border-radius: 4px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

/* сетка преимуществ / платформ */
.grid-4, .grid-3 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    background: var(--bg-light);
    border-radius: var(--border-radius-card);
    padding: 2rem 1.5rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.card:hover {
    border-color: var(--accent-blue);
    background: white;
    box-shadow: var(--shadow-hover);
}

.icon-placeholder {
    width: 48px;
    height: 48px;
    background: rgba(12,140,231,0.1);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 1.5rem;
}

/* Схема как это работает */
.scheme-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
    background: var(--bg-light);
    border-radius: 48px;
    padding: 2.5rem;
    margin: 40px 0;
}

.scheme-item {
    text-align: center;
    min-width: 140px;
}
.scheme-item .dot {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 30px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: var(--shadow-sm);
}
.scheme-arrow {
    font-size: 2rem;
    color: var(--accent-blue);
    font-weight: 300;
}

/* тарифы */
.tariff-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 800px;
    margin: 40px auto 0;
}

.tariff-card {
    background: var(--bg-light);
    border-radius: var(--border-radius-card);
    padding: 2rem 2rem 2.5rem;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
}
.tariff-card.featured {
    background: white;
    border: 2px solid var(--accent-blue);
    box-shadow: var(--shadow-hover);
}
.tariff-price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0 0.5rem;
}
.tariff-price small {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
}
.tariff-features {
    list-style: none;
    margin: 1.5rem 0 2rem;
}
.tariff-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    gap: 0.75rem;
}
.tariff-card .btn {
    margin-top: auto;
    width: 100%;
}

/* FAQ аккордеон */
.faq-list {
    max-width: 800px;
    margin: 2rem auto 0;
}
.faq-item {
    background: var(--bg-light);
    border-radius: 24px;
    margin-bottom: 12px;
    border: 1px solid var(--border-light);
}
.faq-question {
    padding: 1.5rem;
    font-weight: 600;
    font-size: 1.15rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.faq-question .icon {
    font-size: 1.8rem;
    user-select: none;
    color: var(--accent-blue);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
    background: white;
    border-radius: 0 0 24px 24px;
    color: var(--text-secondary);
}
.faq-answer.show {
    max-height: 300px;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

/* футер */
.footer {
    border-top: 1px solid var(--border-light);
    padding: 40px 0;
    margin-top: 40px;
    background: var(--bg-light);
}
.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
.footer-links a {
    text-decoration: none;
    color: var(--text-secondary);
}

/* АДАПТАЦИЯ (tablet / mobile) */
@media (max-width: 1000px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero .container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .burger {
        display: flex;
    }
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .tariff-grid {
        grid-template-columns: 1fr;
    }
    .scheme-row {
        flex-direction: column;
        border-radius: 32px;
    }
    .scheme-arrow {
        transform: rotate(90deg);
    }
    .footer .container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .grid-4 {
        grid-template-columns: 1fr;
    }
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
}

/* утилиты */
.text-center {
    text-align: center;
}
.mt-2 {
    margin-top: 0.5rem;
}
.badge {
    background: rgba(12, 140, 231, 0.1);
    color: var(--accent-blue);
    border-radius: 40px;
    padding: 0.6rem;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-block;
    text-align: center;
}
hr {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 1rem 0;
}
/* Базовые стили для контейнеров иконок */
.icon-placeholder {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(12, 140, 231, 0.05);
    border-radius: 24px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover .icon-placeholder {
    background: rgba(12, 140, 231, 0.1);
    transform: scale(1.05);
}

/* Для платформ - крупнее */
.platform-icon {
    width: 120px;
    height: 120px;
    border-radius: 32px;
    margin: 0 auto 1.5rem;
}

/* Для кружков в схеме */
.dot {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    margin: 0 auto 1rem;
}

.dot svg {
    width: 48px;
    height: 48px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .icon-placeholder {
        width: 64px;
        height: 64px;
    }

    .platform-icon {
        width: 96px;
        height: 96px;
    }

    .dot {
        width: 64px;
        height: 64px;
    }

    .dot svg {
        width: 36px;
        height: 36px;
    }
}
/* Стили для иконок в блоке "Что такое SmartNetwork?" */
.comparison-icon {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(12, 140, 231, 0.03);
    border-radius: 32px;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.comparison-icon:hover {
    background: rgba(12, 140, 231, 0.05);
    transform: scale(1.02);
}

.comparison-icon svg {
    width: 90px;
    height: 90px;
}

/* Для мобильных */
@media (max-width: 768px) {
    .comparison-icon {
        width: 100px;
        height: 100px;
    }

    .comparison-icon svg {
        width: 70px;
        height: 70px;
    }
}

/* Анимация при появлении */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.comparison-icon {
    animation: fadeInScale 0.5s ease-out;
}

/* ======================================= */
/* СТИЛИ ДЛЯ СТРАНИЦ: ПОЛИТИКА, СОГЛАШЕНИЕ, КОНТАКТЫ */
/* ======================================= */

/* Общие стили для страниц с документами */
.page-content {
    flex: 1;
    padding: 60px 0;
    min-height: calc(100vh - 76px - 120px); /* Высота минус шапка и футер */
}

.page-header {
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.page-header .last-updated {
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.last-updated span {
    background: var(--bg-light);
    padding: 0.2rem 1rem;
    border-radius: 30px;
}

/* Стили для документов (Политика, Соглашение) */
.legal-section {
    background: var(--bg-light);
    border-radius: var(--border-radius-card);
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.legal-section h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: left;
}

.legal-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    color: var(--text-primary);
}

.legal-section p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.legal-section ul, .legal-section ol {
    margin: 1rem 0 1rem 1.5rem;
    color: var(--text-secondary);
}

.legal-section li {
    margin-bottom: 0.5rem;
}

.legal-section hr {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 2rem 0;
}

.highlight-box {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid var(--accent-blue);
}

/* ======================================= */
/* СТИЛИ ДЛЯ СТРАНИЦЫ КОНТАКТОВ */
/* ======================================= */

.page-header .subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Сетка контактов */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.contact-card {
    background: var(--bg-light);
    border-radius: var(--border-radius-card);
    padding: 2rem;
    transition: var(--transition);
    border: 1px solid transparent;
    text-align: center;
}

.contact-card:hover {
    border-color: var(--accent-blue);
    background: white;
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.contact-icon {
    width: 64px;
    height: 64px;
    background: rgba(12, 140, 231, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--accent-blue);
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.contact-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-link:hover {
    text-decoration: underline;
}

/* Форма обратной связи */
.feedback-form {
    background: var(--bg-light);
    border-radius: var(--border-radius-card);
    padding: 2.5rem;
    margin: 40px 0;
}

.feedback-form h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1.5px solid var(--border-light);
    border-radius: 16px;
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(12, 140, 231, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    text-align: center;
    margin-top: 1rem;
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

/* Реквизиты компании */
.details-card {
    background: white;
    border-radius: var(--border-radius-card);
    padding: 2rem;
    border: 1px solid var(--border-light);
}

.details-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

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

.details-label {
    font-weight: 500;
    color: var(--text-primary);
}

.details-value {
    color: var(--text-secondary);
}

/* ======================================= */
/* АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ (дополнения) */
/* ======================================= */

@media (max-width: 768px) {
    .page-content {
        padding: 40px 0;
    }

    .legal-section {
        padding: 1.5rem;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .details-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-links {
        justify-content: center;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .btn-large {
        width: 100%;
        padding: 1rem;
    }

    .contact-card {
        padding: 1.5rem;
    }
}

p a, li a, .faq-answer a, .legal-section a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

p a:hover, li a:hover, .faq-answer a:hover, .legal-section a:hover {
    opacity: 0.8;
}

/* Стили для ссылок в навигации и футере */
.nav-menu a, .footer-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color var(--transition);
    position: relative;
}

.nav-menu a::after, .footer-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-blue);
    transition: width 0.2s ease;
}

.nav-menu a:hover::after, .footer-links a:hover::after,
.nav-menu a:focus::after, .footer-links a:focus::after {
    width: 100%;
}

.nav-menu a:hover, .footer-links a:hover {
    color: var(--accent-blue);
}

.btn::after {
    display: none;
}

.doc-image {
    max-width: 100%;
}