:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #f59e0b;
    --btn-from: #2563eb;
    --btn-to: #1d4ed8;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

img, video, iframe {
    max-width: 100%;
}

.service-landing {
    font-family: 'Montserrat', sans-serif;
    color: #1a1a1a;
}

/* Герой */
.hero-section {
    position: relative;
    color: white;
    overflow: visible;
    padding: 60px 0;
    min-height: 400px;
    display: flex;
    align-items: center;
}
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
	background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; }
.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
}
.hero-subtitle {
    font-size: 1.3rem;
    color: #e2e8f0;
    margin-bottom: 30px;
}
.hero-features {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}
.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
}
.hero-feature i {
    color: var(--primary);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
.hero-buttons {
    display: flex;
    gap: 20px;
}
.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
    justify-content: center;
}
.hero-stat-item {
    text-align: center;
    min-width: 140px;
}
.hero-stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    white-space: normal;
    word-break: break-word;
    overflow: visible;
    text-overflow: clip;
    font-variant-numeric: tabular-nums;
}
.hero-stat-label {
    font-size: 0.9rem;
    color: #a0aec0;
}

/* Форма */
.form-card {
    background: white;
    padding: 40px 30px;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    color: #3854de;
}
.form-card:before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 5px;
    background: linear-gradient(90deg, var(--primary), #38b2ac);
}
.form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #edf2f7;
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s;
    background: #f8fafc;
    color: #1a1a1a;
}
.form-input::placeholder {
    color: #a0aec0;
    opacity: 1;
}
.form-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    color: white;
    background-size: 200% auto;
    background-image: linear-gradient(135deg, var(--btn-from), var(--btn-to));
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
    background-position: right center;
}
.btn:active { transform: translateY(0); }
.btn-primary {
    --btn-from: #2563eba6;
    --btn-to: #1d4ed8;
    color: white;
}
.btn-accent {
    --btn-from: #f97316ab;
    --btn-to: #ea580c;
    color: white;
}
.btn-outline {
    --btn-from: #10b981a8;
    --btn-to: #047857;
    color: white;
    border: none;
    text-align: center;
}
.btn-sm {
    padding: 10px 24px;
    font-size: 0.9rem;
}
.btn-block {
    width: 100%;
}

/* Секции */
.section {
    padding: 90px 0;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
}
.section-title span {
    color: var(--primary);
}
.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #718096;
    max-width: 700px;
    margin: 0 auto 60px;
}

/* Преимущества */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.benefit-card {
    background: white;
    padding: 40px 25px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border: 1px solid #edf2f7;
}
.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(37,99,235,0.15);
    border-color: var(--primary);
}
.benefit-icon {
    width: 90px; height: 90px;
    background: rgba(37,99,235,0.1);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s;
}
.benefit-card:hover .benefit-icon {
    transform: scale(1.1);
    background: var(--primary);
}
.benefit-card:hover .benefit-icon i {
    color: white;
}
.benefit-icon i {
    font-size: 2.8rem;
    color: var(--primary);
    transition: color 0.3s;
}
.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    transition: color 0.3s;
}
.benefit-card:hover h3 {
    color: var(--primary);
}

/* Кейсы */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.case-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s;
}
.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(37,99,235,0.2);
}
.case-image {
    height: 200px;
    overflow: hidden;
}
.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.case-card:hover .case-image img {
    transform: scale(1.1);
}
.case-info {
    padding: 25px;
}
.case-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}
.case-desc {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 15px;
}
.case-price {
    display: inline-block;
    background: #2563ebb3;
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
}

/* Этапы */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}
.steps-grid:before {
    content: '';
    position: absolute;
    top: 50px;
    left: 100px;
    right: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    z-index: 1;
}
.step-item {
    text-align: center;
    position: relative;
    z-index: 2;
}
.step-number {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 auto 25px;
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(37,99,235,0.3);
    transition: all 0.3s;
}
.step-item:hover .step-number {
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 15px 40px rgba(37,99,235,0.5);
}
.step-item h4 { font-size: 1.2rem; margin-bottom: 10px; }

/* Другие услуги */
.special-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.special-card {
    background: white;
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.3s;
    cursor: pointer;
}
.special-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(37,99,235,0.15);
}
.special-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

/* Отзывы */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.review-item {
    display: flex;
    flex-direction: column;
    height: 100%;               /* растягиваем на всю высоту строки grid */
}

.review-card {
    background: white;
    padding: 30px;
    border-radius: 25px;
    border: 1px solid #edf2f7;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    flex: 1;                    /* занимает всё доступное место внутри .review-item */
}
.review-card:hover {
    box-shadow: 0 15px 35px rgba(37,99,235,0.1);
}

.review-rating { color: #f59e0b; margin-bottom: 20px; }
.review-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 25px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;           /* прижимаем автора к низу карточки */
}
.review-author img {
    width: 60px; height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

/* Блок источника вне карточки */
.review-source-outside {
    margin-top: 10px;           /* небольшой отступ от карточки */
    font-size: 0.9rem;
    color: #6b7280;
}

/* FAQ */
.faq-item {
    background: white;
    border-radius: 20px;
    margin-bottom: 20px;
    padding: 25px 30px;
    border: 1px solid #edf2f7;
    cursor: pointer;
    transition: all 0.3s;
}
.faq-item:hover {
    box-shadow: 0 10px 30px rgba(37,99,235,0.1);
    border-color: var(--primary);
}
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
    color: #718096;
    margin-top: 0;
}
.faq-item.active .faq-answer {
    max-height: 200px;
    margin-top: 20px;
}

/* Полное описание */
.service-description {
    background: white;
    padding: 60px 0;
}
.service-description .prose {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Адаптив */
@media (max-width: 1200px) {
    .hero-section {
        padding: 40px 0;
    }
    .benefits-grid, .special-grid, .cases-grid, .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .steps-grid:before { display: none; }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 30px 0;
        min-height: auto;
    }
    .hero-title { font-size: 1.8rem; }  /* уменьшено дополнительно */
    .hero-features { flex-direction: column; }
    .hero-buttons { flex-direction: column; }
    .hero-stats {
        gap: 15px;
        justify-content: center;
    }
    .hero-stat-item {
        min-width: auto;
        flex: 0 1 calc(50% - 15px);
    }
    .hero-stat-number {
        font-size: 1.6rem;
    }
    .hero-stat-label {
        font-size: 0.75rem;
    }
    .benefits-grid, .special-grid, .cases-grid, .reviews-grid, .steps-grid {
        grid-template-columns: 1fr;
    }
    .section { padding: 60px 0; }
    .section-title { font-size: 1.8rem; }

    /* Дополнительные мобильные улучшения */
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-feature { font-size: 0.9rem; gap: 6px; }
    .hero-stats { gap: 10px; }
    .hero-stat-item { min-width: auto; flex: 1 1 40%; }
    .hero-stat-number { font-size: 1.4rem; }

    .btn { padding: 14px 28px; font-size: 0.9rem; }
    .btn-sm { padding: 8px 18px; font-size: 0.8rem; }

    .form-input { padding: 12px 15px; font-size: 0.9rem; }

    .special-card { padding: 20px 15px; }
    .review-card { padding: 20px; }

    .section-title { font-size: 1.6rem; }
    .section-subtitle { font-size: 1rem; margin-bottom: 30px; }

    .content-card { padding: 1.2rem; }
    .hero-section.inner-hero .hero-title { font-size: 1.6rem; }

    .benefits-grid, .special-grid, .cases-grid, .reviews-grid, .steps-grid {
        gap: 15px;
    }
    .section { padding: 40px 0; }
}

/* Промо-карточки */
.promo .special-card {
    border: 1px solid var(--primary);
}
.promo .special-card:hover {
    border-color: var(--primary-dark);
}

/* Счётчик компании */
.counter-section .text-4xl {
    font-size: 2.5rem;
}

/* Сертификаты карусель */
.certificates-carousel .flex::-webkit-scrollbar { display: none; }
.certificates-carousel .flex { -ms-overflow-style: none; scrollbar-width: none; }

/* Счетчик с фоновым изображением */
.counter-section {
    background-size: cover;
    background-position: center;
    position: relative;
}
.counter-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Одинаковая высота карточек в сетке услуг */
.special-grid {
    grid-auto-rows: 1fr;
}
.special-card.flex.flex-col {
    height: 100%;
}

/* Футер */
footer a {
    color: #cbd5e1;
    transition: color 0.2s;
}
footer a:hover {
    color: white;
}

/* Кнопка «Наверх» */
.fixed.bottom-24.right-4 button {
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    transition: transform 0.2s, background-color 0.2s;
}
.fixed.bottom-24.right-4 button:hover {
    transform: scale(1.1);
}

/* Плавающие кнопки (общие для всех страниц) */
.floating-buttons-wrapper {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}
.floating-buttons-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 8px;
}
.fb-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: white;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
}
.fb-button:hover {
    transform: scale(1.1);
}
.fb-main { background-color: #2563eb; }
.fb-phone { background-color: #2563eb; }
.fb-whatsapp { background-color: #25d366; }
.fb-telegram { background-color: #0088cc; }
.fb-vk { background-color: #0077ff; }
.fb-max { background-color: #8b5cf6; }

/* Кнопка «Наверх» слева внизу */
.scroll-to-top {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 9999;
}
.scroll-to-top button {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37,99,235,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    font-size: 1.1rem;
}
.scroll-to-top button:hover {
    transform: scale(1.1);
}

/* Калькулятор: предотвращаем выход выпадающих списков за экран */
@media (max-width: 768px) {
    .calculator-container select.form-input {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .calculator-container .grid {
        gap: 10px;
    }
}

/* Карусель сертификатов */
.certificates .relative {
    position: relative;
}
.certificates button[disabled] {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Скрыть скроллбар для карусели */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* ========== Новый дизайн контентных страниц ========== */
.content-page {
    background: #f8fafc;
    padding: 60px 0;
}

.content-card {
    background: white;
    border-radius: 2rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    padding: 3rem;
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #334155;
}

.content-card h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #0f172a;
}

.content-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #1e293b;
}

.content-card p {
    margin-bottom: 1.5rem;
}

.content-card ul, .content-card ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.content-card li {
    margin-bottom: 0.5rem;
}

.content-card blockquote {
    border-left: 4px solid var(--primary);
    background: rgba(37,99,235,0.05);
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    margin: 2rem 0;
    font-style: italic;
}

.content-card img {
    border-radius: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.content-card a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Герой для внутренних страниц */
.hero-section.inner-hero {
    min-height: 300px;
    padding: 80px 0;
    position: relative;
    color: white;
}

.hero-section.inner-hero .hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Кнопки по центру */
.hero-buttons.centered {
    justify-content: center;
}

/* Галерея с эффектом увеличения */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-grid a {
    display: block;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid a:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* Сетка видео */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.video-item iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.video-item p {
    margin-top: 0.75rem;
    font-weight: 500;
    color: #334155;
    text-align: center;
}

/* Страница О компании – статистика */
.stats-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    color: white;
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    min-width: 150px;
    flex: 1 1 150px;
    box-shadow: 0 10px 30px rgba(37,99,235,0.3);
}

.stat-card .number {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
}

.stat-card .label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* Контакты – блок с иконками */
.contact-modern {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-modern .contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: #f1f5f9;
    padding: 1.5rem;
    border-radius: 1.5rem;
    transition: background 0.3s;
}

.contact-modern .contact-item:hover {
    background: #e2e8f0;
}

.contact-modern .contact-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-modern .contact-text a {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
}

.contact-modern .contact-text p {
    margin: 0;
    color: #64748b;
}

/* Убираем лишние отступы у prose */
.prose {
    max-width: 100%;
}

@media (max-width: 768px) {
    .content-card {
        padding: 1.5rem;
    }
    .hero-section.inner-hero .hero-title {
        font-size: 2rem;
    }
}

/* Сетка для видео */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Карточка видео */
.video-thumb-wrapper {
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: white;
}
.video-thumb-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Область превью */
.video-thumb {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    background: #000;
    overflow: hidden;
}
.video-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.video-thumb-wrapper:hover .video-thumb img {
    transform: scale(1.03);
}

/* Плейсхолдер если нет превью */
.video-thumb-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e293b;
}

/* Кнопка Play */
.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: background 0.3s, transform 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.video-thumb-wrapper:hover .video-play-button {
    background: var(--primary);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Заголовок */
.video-title {
    margin: 1rem;
    font-weight: 600;
    text-align: center;
    color: #1e293b;
    font-size: 0.95rem;
    line-height: 1.4;
    min-height: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Модальное окно для видео */
.fullscreen-video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.fullscreen-video-modal.active {
    display: flex;
}
.fullscreen-video-modal-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    aspect-ratio: 16 / 9;
}
.fullscreen-video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}
.fullscreen-video-modal-close:hover {
    background: var(--primary);
}
.fullscreen-video-container {
    width: 100%;
    height: 100%;
}
.fullscreen-video-container iframe {
    width: 100%;
    height: 100%;
    border-radius: 1rem;
}












/* ========== Новый хедер (улучшенный + синхронизированный по ширине) ========== */
.header-main {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    font-family: 'Montserrat', sans-serif;
    border-bottom: 1px solid #f1f5f9;
}

/* Контейнер внутри хедера теперь управляется Tailwind */
.header-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.header-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    flex-shrink: 0; /* логотип не сжимается */
}

.logo-text {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.logo-accent {
    color: #0f172a;
    margin-left: 2px;
}

/* Бургер */
.burger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
    transition: transform 0.2s;
    padding: 8px;
    flex-shrink: 0;
}
.burger-menu:hover {
    transform: scale(1.1);
}

/* Навигация (десктоп) */
.main-nav {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.6rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.25s ease;
    transform-origin: right;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link i.fa-chevron-down {
    font-size: 0.65rem;
    transition: transform 0.2s;
}

.nav-item.dropdown:hover .nav-link i.fa-chevron-down {
    transform: rotate(180deg);
}

/* Мостик */
.nav-item.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
    z-index: 201;
}

/* Выпадающее меню */
.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background: white;
    box-shadow: 0 16px 32px rgba(0,0,0,0.1);
    border-radius: 14px;
    padding: 0.6rem 0;
    min-width: 270px;
    z-index: 200;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    border: 1px solid #f1f5f9;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.7rem 1.5rem;
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s, padding-left 0.2s;
}

.dropdown-menu a:hover {
    background: #f8fafc;
    color: var(--primary);
    padding-left: 1.8rem;
}

/* Рейтинг */
.reviews-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: #fef3c7;
    color: #b45309;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
    font-weight: 600;
}

/* Телефон */
.nav-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 0.55rem 1.3rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(37,99,235,0.25);
}

.nav-phone:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37,99,235,0.35);
}

/* Мобильное меню */
.mobile-menu {
    display: none;
    background: white;
    border-top: 1px solid #e2e8f0;
    padding: 1rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.05);
    animation: slideDown 0.25s ease;
    max-height: 80vh;
    overflow-y: auto;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.mobile-nav-link,
.mobile-nav-toggle {
    display: block;
    padding: 0.7rem 1rem;
    text-decoration: none;
    color: #1e293b;
    font-weight: 500;
    border-radius: 10px;
    transition: background 0.2s;
    font-size: 0.9rem;
    word-break: break-word;
}

.mobile-nav-link:hover,
.mobile-nav-toggle:hover {
    background: #f1f5f9;
}

.mobile-nav-toggle {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}

.mobile-nav-toggle i {
    transition: transform 0.2s;
}

.mobile-submenu {
    padding-left: 1rem;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    border-radius: 8px;
    margin-top: 0.3rem;
    overflow: hidden;
}

.mobile-submenu a {
    padding: 0.5rem 0.8rem;
    text-decoration: none;
    color: #475569;
    border-radius: 6px;
    font-size: 0.85rem;
    word-break: break-word;
}

.mobile-submenu a:hover {
    background: #e2e8f0;
}

.mobile-nav-call {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.7rem;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(37,99,235,0.25);
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .burger-menu {
        display: block;
    }
    .main-nav {
        display: none;
    }
    .mobile-menu {
        display: block;
    }
    .header-main .container {
        height: 70px;
    }
    .logo-text {
        font-size: 1.5rem;
    }
    .burger-menu {
        font-size: 1.6rem;
        padding: 6px;
    }
}

/* Телефоны */
@media (max-width: 640px) {
    .header-main .container {
        height: 64px;
        padding-left: 10px;
        padding-right: 10px;
    }
    .logo-text {
        font-size: 1.35rem;
    }
    .burger-menu {
        font-size: 1.4rem;
        padding: 4px;
    }
    .mobile-menu {
        padding: 0.8rem;
    }
    .mobile-nav-link,
    .mobile-nav-toggle {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    .mobile-submenu a {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
}

/* Очень узкие экраны (320px) */
@media (max-width: 400px) {
    .logo-text {
        font-size: 1.1rem;
    }
    .burger-menu {
        font-size: 1.2rem;
        padding: 2px;
    }
    .btn {
        padding: 12px 20px;
        font-size: 0.85rem;
    }
    .hero-title {
        font-size: 1.7rem;
    }
}





/* Дополнительные отступы для заголовков внутри страниц */
.section-subtitle {
    margin-bottom: 80px;  /* было 60px – даём больше воздуха */
}

.content-card h2, .prose h2, .service-description h2 {
    margin-top: 2.5rem;
}



/* ===== Мобильная шапка: бургер слева, логотип по центру, телефон справа ===== */
.mobile-phone-btn {
    display: none;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    text-decoration: none;
    z-index: 110;
}
.mobile-phone-btn i {
    font-size: 1.2rem;
}

@media (max-width: 1024px) {
    .mobile-phone-btn {
        display: flex;
    }

    /* Гарантируем центрирование логотипа */
    .header-main .container {
        justify-content: center;
        position: relative;
    }
}


/* ============================================================
   ФИНАЛЬНАЯ МОБИЛЬНАЯ ШАПКА
   Бургер слева (круглая синяя кнопка), логотип по центру,
   телефон справа (круглая синяя кнопка)
   ============================================================ */
@media (max-width: 1024px) {
    .burger-menu {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        color: #fff;
        border-radius: 50%;
        font-size: 1.4rem;
        box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
        z-index: 120;
        padding: 0;
        transition: transform 0.2s, box-shadow 0.2s;
    }
    .burger-menu:hover {
        transform: translateY(-50%) scale(1.06);
        box-shadow: 0 8px 20px rgba(37, 99, 235, 0.45);
    }
    .burger-menu i {
        line-height: 1;
    }
    .mobile-phone-btn {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        width: 46px;
        height: 46px;
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        color: #fff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
        z-index: 120;
        transition: transform 0.2s, box-shadow 0.2s;
    }
    .mobile-phone-btn:hover {
        transform: translateY(-50%) scale(1.06);
        box-shadow: 0 8px 20px rgba(37, 99, 235, 0.45);
    }
    .mobile-phone-btn i {
        font-size: 1.3rem;
    }
    .header-main .container {
        position: relative;
        justify-content: center;
    }
}


/* ===== Анимации появления при прокрутке ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.reveal:hover {
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.25);
}



/* ========== Стили для новых блоков услуг ========== */
.service-included-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.service-included-card {
    background: linear-gradient(145deg, #ffffff, #f8fbff);
    border-radius: 1.5rem;
    padding: 1.8rem;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    position: relative;
    overflow: hidden;
}
.service-included-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
    opacity: 0;
    transition: opacity 0.4s;
}
.service-included-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 40px -10px rgba(37, 99, 235, 0.35);
}
.service-included-card:hover::before {
    opacity: 1;
}
.service-included-icon {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: transform 0.4s;
}
.service-included-card:hover .service-included-icon {
    transform: rotate(10deg) scale(1.1);
}

.package-grid {
    display: grid;
    gap: 1.8rem;
}
.package-group-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1d4ed8;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.package-card {
    background: #fff;
    border-radius: 1.8rem;
    padding: 1.8rem;
    box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.12);
    transition: all 0.4s ease;
    border: none;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.package-card::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(37,99,235,0.06), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 45px -12px rgba(37, 99, 235, 0.3);
}
.package-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.7rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    transition: transform 0.4s;
}
.package-card:hover .package-icon {
    transform: scale(1.1) rotate(-5deg);
}
.package-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}
.package-desc {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 1rem;
}
.package-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}
.package-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: #334155;
    padding: 0.2rem 0;
}
.package-list li i {
    margin-top: 0.25rem;
    flex-shrink: 0;
}
.package-footer {
    margin-top: auto;
}
.package-price-note {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0.8rem;
}
.package-btn {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}
.package-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.45);
}