/* style.css - Оптимизированная версия */

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

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #7c3aed;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: white;
    overflow-x: hidden;
}

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

/* Типография */
h1,
h2,
h3,
h4 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

.btn-outline-light {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

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

/* Шапка */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow);
    padding: 15px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #7c3aed;
    font-weight: 700;
    font-size: 1.2rem;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 10px;
    font-weight: 700;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-list a:hover {
    color: var(--primary-color);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

/* Герой-секция */
.hero {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, #f0f9ff 0%, #fef7ff 100%);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
}

.city-highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.city-highlight::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: rgba(37, 99, 235, 0.2);
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-text {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 5px;
}

/* Устройство-макет в герое */
.device-mockup {
    background: white;
    border-radius: 24px;
    padding: 25px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transform: perspective(1000px) rotateY(-10deg);
    transition: var(--transition);
}

.device-mockup:hover {
    transform: perspective(1000px) rotateY(-5deg);
}

.device-screen {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #1f2937, #374151);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.screen-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.screen-slide.active {
    opacity: 1;
}

.slide-content {
    text-align: center;
    color: white;
    padding: 20px;
}

.slide-content h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: white;
}

.slide-content p {
    color: #d1d5db;
}

/* Секция услуг */
.services {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.pricing-card {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    border-width: 2px;
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 10px 0;
}

.price-subtitle {
    color: var(--text-light);
    font-size: 0.9rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.pricing-features i.fa-check {
    color: var(--success-color);
}

.pricing-features i.fa-times {
    color: #9ca3af;
}

.feature-disabled {
    color: var(--text-light);
    opacity: 0.7;
}

/* Секция процесса */
.process {
    padding: 100px 0;
}

.process-steps {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40px;
    width: 2px;
    height: 100%;
    background-color: var(--border-color);
    z-index: 0;
}

.step {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: var(--shadow);
}

.step-content {
    flex-grow: 1;
    padding-top: 15px;
}

.step-content h3 {
    margin-bottom: 10px;
}

/* Форма аудита */
.audit {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.audit-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.audit-content {
    padding: 50px;
    background: linear-gradient(135deg, #1e3a8a, #4c1d95);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.audit-content h2 {
    color: white;
    margin-bottom: 20px;
}

.audit-features {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.audit-feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.audit-feature i {
    font-size: 1.2rem;
}

.audit-form {
    padding: 50px;
}

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

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

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-note {
    margin-top: 15px;
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
}

/* Футер */
.footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand p {
    margin-top: 15px;
    color: #9ca3af;
    line-height: 1.6;
}

.footer-links h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.footer-cta p {
    color: #9ca3af;
    margin-bottom: 20px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid #374151;
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 5px;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 40px;
    border-radius: var(--radius);
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.modal-close:hover {
    color: var(--text-color);
}

#selectedPlanName {
    color: var(--primary-color);
}

/* Дополнительные стили для новых пакетов */
.pricing-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.pricing-intro h2 {
    margin-bottom: 15px;
}

.pricing-notes {
    max-width: 800px;
    margin: 40px 0px 10px;
    display: grid;
    gap: 20px;
}

.note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
}

.note i {
    color: #2563eb;
    font-size: 1.2rem;
    margin-top: 2px;
}

.note p {
    margin: 0;
    font-size: 0.9rem;
    color: #4b5563;
}

.pricing-card.featured {
    border: 2px solid #2563eb;
    transform: scale(1.02);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    white-space: nowrap;
}

.badge-secondary {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.pricing-features li {
    position: relative;
    padding-left: 28px;
}

.pricing-features li i {
    position: absolute;
    left: 0;
    top: 2px;
}

.pricing-includes {
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
}

.pricing-includes h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 1rem;
}

.pricing-includes h4 i {
    color: #10b981;
}

.price-note {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 5px;
    font-style: italic;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Задержки для появления */
section:nth-child(1) {
    animation-delay: 0.1s;
}

section:nth-child(2) {
    animation-delay: 0.2s;
}

section:nth-child(3) {
    animation-delay: 0.3s;
}

section:nth-child(4) {
    animation-delay: 0.4s;
}

/* Адаптивность */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        justify-content: center;
    }

    .device-mockup {
        max-width: 500px;
        margin: 0 auto;
        transform: none;
    }

    .device-mockup:hover {
        transform: translateY(-5px);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }

    .audit-card {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 20px;
        box-shadow: var(--shadow);
    }

    .nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 15px;
    }

    .menu-toggle {
        display: block;
    }

    .hero-actions {
        flex-direction: column;
    }

    .process-steps::before {
        left: 30px;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .hero {
        padding: 10px 0;
        min-height: calc(100vh - 280px);
        display: flex;
        align-items: center;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        padding: 80px 0px 0px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 2rem;
    }

    .btn-large {
        padding: 14px 20px;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .stat-number {
        font-size: 2rem;
    }

    .device-mockup {
        margin-top: 30px;
        padding: 15px;
        border-radius: 16px;
    }

    .device-screen {
        height: 200px;
    }

    .slide-content h4 {
        font-size: 1.2rem;
    }

    .services {
        padding: 2px 0;
    }

    .pricing-card {
        padding: 20px 5px;
    }

    .pricing-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .price {
        font-size: 2rem;
    }

    .pricing-features li {
        font-size: 0.9rem;
        margin-bottom: 10px;
        align-items: flex-start;
    }

    .pricing-features i {
        margin-top: 2px;
        flex-shrink: 0;
    }

    .process {
        padding: 10px 0;
    }

    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 30px;
        gap: 15px;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .process-steps::before {
        display: none;
    }

    .audit {
        padding: 60px 0;
    }

    .audit-content,
    .audit-form {
        padding: 30px 20px;
    }

    .audit-content h2 {
        font-size: 1.5rem;
    }

    .form-group input {
        padding: 14px 16px;
        font-size: 16px;
    }

    .footer {
        padding: 40px 0 20px;
    }

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

    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .footer-links li {
        margin-bottom: 0;
    }

    .footer-cta .btn {
        width: 100%;
    }

    .modal-content {
        padding: 25px 20px;
        margin: 20px;
        width: calc(100% - 40px);
    }

    .header {
        padding: 12px 0;
    }

    .logo-text {
        font-size: 1rem;
    }

    .btn-small {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .btn,
    button,
    input[type="submit"] {
        min-height: 44px;
    }

    .nav-list a {
        padding: 12px 0;
        display: block;
        font-size: 1.1rem;
    }

    p,
    li {
        line-height: 1.6;
        font-size: 0.95rem;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .logo-text {
        display: none;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 40px;
    }

    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-content {
        margin-bottom: 20px;
    }

    .hero-stats {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }
}

/* Базовые стили слайда */
.screen-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Затемнение поверх изображения */
.screen-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.8), rgba(55, 65, 81, 0.8));
    z-index: 1;
}

/* Контент поверх всего */
.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 20px;
}

/* Фоновые изображения для каждого слайда */
.slide-1 {
    background-image: url('images/slide-website.jpg');
}

.slide-2 {
    background-image: url('images/slide-maps.jpg');
}

.slide-3 {
    background-image: url('images/slide-telegram.jpg');
}

/* Активный слайд */
.screen-slide.active {
    opacity: 1;
}