/* style.css — полная рабочая версия */

/* Базовые стили и сброс */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', Arial, sans-serif;
}

:root {
    --primary: #1d3dff;
    --primary-dark: #1632de;
    --text-dark: #1F2937;
    --text: #374151;
    --text-light: #6B7280;
    --bg-light: #F5F7FA;
    --bg-white: #FFFFFF;
    --accent: #10B981;
    --border: #E5E7EB;
    --price-color: #EF4444;
    --orange: #FF6B35;
    --black: #000000;
    --white: #FFFFFF;
}

body {
    color: var(--text);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

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

h1, h2, h3, h4 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

p {
    margin-bottom: 0.5rem;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    text-align: center;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(29, 61, 255, 0.2);
}

.btn-whatsapp {
    background-color: #2cb742;
    border-radius: 50px;
    padding: 10px 15px;
}

.btn-whatsapp:hover {
    background-color: #44d25a;
}

.btn-telegram {
    background-color: #27a7e7;
    border-radius: 50px;
    padding: 10px 15px;
}

.btn-telegram:hover {
    background-color: #0077b5;
}

.btn-orange {
    background-color: var(--orange);
    border-radius: 50px;
}

.btn-orange:hover {
    background-color: #e05a2b;
}

.btn-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-radius: 50px;
    padding: 10px 15px;
}

.btn-instagram:hover {
    opacity: 0.9;
}

section {
    padding: 80px 0;
}

/* === Header === */
header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    height: 95px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    padding: 5px 0;
    position: relative;
}

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

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

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* === Язык === */
.language-selector {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: background-color 0.3s;
}

.lang-btn img {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
}

.lang-btn:hover {
    background-color: rgba(74, 108, 247, 0.1);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 120px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 101;
    border-radius: 5px;
    overflow: hidden;
}

.lang-dropdown a {
    color: var(--text-dark);
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s;
}

.lang-dropdown a:hover {
    background-color: rgba(74, 108, 247, 0.1);
}

.lang-dropdown a img {
    width: 20px;
    height: 15px;
    object-fit: cover;
}

.language-selector:hover .lang-dropdown {
    display: block;
}

/* === Мобильное меню === */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 8px;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Оверлей меню */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding-bottom: 20px;
}

.mobile-menu-overlay.active .mobile-menu-container {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    background: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-logo img {
    height: 66px;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-dark);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.mobile-menu-close:hover {
    color: var(--primary);
}

.mobile-nav {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav a {
    display: block;
    padding: 14px 0;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border);
    transition: color 0.3s;
}

.mobile-nav a:last-child {
    border-bottom: none;
}

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

/* Смена языка в мобильном меню */
.mobile-language-selector {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.mobile-lang-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.mobile-lang-buttons {
    display: flex;
    gap: 10px;
}

.mobile-lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border: none;
    flex: 1;
}

.mobile-lang-btn img {
    width: 20px;
    height: 15px;
    border-radius: 2px;
}

.mobile-lang-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.mobile-lang-btn:hover:not(.active) {
    background: rgba(74, 108, 247, 0.1);
    border-color: var(--primary);
}

/* Контакты в мобильном меню */
.mobile-contacts {
    padding: 20px;
}

.mobile-contacts-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.mobile-phone {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 10px;
    text-decoration: none;
    transition: color 0.3s;
}

.mobile-phone:hover {
    color: var(--primary);
}

.mobile-social {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.mobile-cta {
    width: 100%;
    text-align: center;
    margin-top: 15px;
}

/* === Hero секция === */
.h-hero__component {
    position: relative;
    height: 100vh;
    min-height: 45rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-top: 0;
}

.h-hero__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.h-hero__image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.35));
    z-index: 2;
}

.h-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.8);
    transition: transform 0.8s ease;
}

.h-hero__component:hover .h-hero__image img {
    transform: scale(1.05);
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(45deg, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    line-height: 1.4;
    font-weight: 400;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #1d3dff;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 1.1rem;
}

.hero-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(29, 61, 255, 0.3);
}

.hero-btn-secondary {
    background: transparent;
    border: 2px solid white;
    box-shadow: none;
}

.hero-btn-secondary:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.hero-stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.floating-contact-btn .btn {
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 15px 30px;
    font-size: 1rem;
}

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

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

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

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

.modal-title {
    margin-bottom: 20px;
    text-align: center;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.contact-method:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
}

.contact-method i {
    font-size: 1.2rem;
    color: var(--primary);
    width: 24px;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input {
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-submit {
    margin-top: 10px;
    width: 100%;
}

/* === Уведомление о куки === */
.cookie-notice {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--text-dark);
    color: white;
    padding: 15px 0;
    z-index: 3000;
    display: none;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-text {
    flex: 1;
}

.cookie-text p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 8px 15px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

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

.cookie-accept:hover {
    background-color: var(--primary-dark);
}

.cookie-decline {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.cookie-decline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* === Преимущества === */
.benefits {
    background-color: var(--bg-white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.benefit-card {
    background: var(--bg-white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border: 1px solid var(--border);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(29, 61, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.benefit-icon i {
    font-size: 28px;
    color: var(--primary);
}

.benefit-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.benefit-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* === Документы === */
.documents {
    background-color: var(--bg-light);
}

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

.document-card {
    background: var(--bg-white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

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

.document-number {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(29, 61, 255, 0.1);
    z-index: 1;
}

.document-content {
    position: relative;
    z-index: 2;
}

.document-content h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.document-content p {
    color: var(--text-light);
}

/* === Процесс === */
.process {
    background-color: var(--bg-white);
}

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

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 30px;
    width: 2px;
    background-color: var(--primary);
}

.process-step {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.process-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-right: 30px;
    flex-shrink: 0;
    z-index: 2;
}

.process-content {
    flex: 1;
    background: var(--bg-light);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.process-content:hover {
    transform: translateX(5px);
}

.process-duration {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.process-content h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.process-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* === Реферальная программа === */
.pricing {
    background-color: var(--bg-light);
}

.referral-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.referral-content {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
}

.referral-text p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.referral-steps {
    margin: 30px 0;
}

.referral-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    gap: 20px;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.step-content p {
    color: var(--text-light);
    line-height: 1.6;
}

.referral-benefits {
    background: rgba(29, 61, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin: 25px 0;
    border-left: 4px solid var(--primary);
}

.referral-benefits p {
    margin-bottom: 10px;
}

.referral-cta {
    text-align: center;
    margin-top: 30px;
}

/* === Отзывы === */
.testimonials {
    background-color: var(--bg-white);
}

.testimonials-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.testimonials-title {
    text-align: left;
    margin-bottom: 0;
}

.testimonials-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-top: 1rem;
    text-align: left;
}

.slider-controls-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.slider-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: var(--primary-dark);
}

.slider-counter {
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 10px;
}

.testimonials-slider {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-slide {
    min-width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.testimonial-card {
    background: var(--bg-white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    background-color: #E5E7EB;
    flex-shrink: 0;
    border: 3px solid var(--primary);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.1rem;
}

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

.testimonial-title {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.testimonial-text {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text);
}

.testimonial-text p {
    margin-bottom: 15px;
}

/* === FAQ === */
.faq {
    background-color: var(--bg-light);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    transition: all 0.3s ease;
}

.faq-item:first-child {
    border-top: 1px solid var(--border);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 5px 0;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-answer {
    margin-top: 15px;
    color: var(--text);
    display: none;
    line-height: 1.6;
    padding-right: 20px;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-toggle {
    color: #f67308de;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    font-weight: 300;
    width: 20px;
    text-align: center;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* === Контакты === */
.contacts {
    background-color: var(--bg-white);
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-info {
    margin-bottom: 25px;
}

.contact-info h3 {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.contact-info h3 i {
    margin-right: 10px;
    color: var(--primary);
    width: 20px;
}

.contact-info p {
    color: var(--text);
    line-height: 1.6;
    padding-left: 30px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-left: 30px;
}

.contact-map {
    border-radius: 10px;
    overflow: hidden;
    height: 300px;
    background-color: #E5E7EB;
    border: 1px solid var(--border);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

#map {
    width: 100%;
    height: 100%;
}

/* === Финальный CTA === */
.final-cta {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('https://cdn.prod.website-files.com/67efa33f7be7407cdce15760/689dbe45402c61b56d2f3c94_%D0%9E%D0%B1%D0%BB%D0%BE%D0%B6%D0%BA%D0%B0.png');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 0;
}

.final-cta h2 {
    color: white;
    margin-bottom: 20px;
}

.final-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* === Footer === */
footer {
    background-color: var(--text-dark);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-logo .logo img {
    height: 135px;
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    justify-content: space-around;
    flex: 1;
    max-width: 800px;
}

.footer-column h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

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

.footer-column ul li a {
    color: #D1D5DB;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

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

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

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* === Адаптивность === */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
}

@media (max-width: 992px) {
    .main-nav,
    .header-actions .desktop-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .logo img {
        height: 62px;
    }
    
    .header-actions {
        gap: 10px;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        margin-top: 30px;
        gap: 30px;
        flex-wrap: wrap;
    }
    
    .testimonials-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .slider-controls-top {
        margin-top: 20px;
        align-self: flex-end;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    section { padding: 60px 0; }
    
    .benefits-grid, .documents-grid, .pricing-grid { 
        grid-template-columns: 1fr; 
    }
    
    .process-timeline::before { 
        left: 20px; 
    }
    
    .process-icon { 
        width: 40px; 
        height: 40px; 
        font-size: 1rem; 
        margin-right: 20px; 
    }
    
    .hero-title { 
        font-size: 2rem; 
    }
    
    .hero-subtitle { 
        font-size: 1.2rem; 
    }
    
    .h-hero__component {
        height: auto;
        min-height: 100vh;
        padding-top: 120px;
        padding-bottom: 60px;
    }
    
    .hero-stats { 
        gap: 2rem; 
        flex-wrap: wrap; 
    }
    
    .hero-stat-number { 
        font-size: 1.5rem; 
    }
    
    .testimonials-slider { 
        padding: 0 10px; 
    }
    
    .testimonial-slide { 
        padding: 0 10px; 
    }
    
    .testimonial-card { 
        padding: 20px; 
    }
    
    .testimonial-header { 
        flex-direction: column; 
        text-align: center; 
    }
    
    .testimonial-avatar { 
        margin-right: 0; 
        margin-bottom: 10px; 
    }
    
    .testimonial-title { 
        font-size: 1rem; 
        text-align: center; 
    }
    
    .testimonial-text p { 
        font-size: 0.9rem; 
        line-height: 1.5; 
    }
    
    .footer-links { 
        flex-direction: column; 
        gap: 30px;
    }
    
    .footer-column { 
        width: 100%; 
        text-align: center; 
    }
    
    .footer-column h3 { 
        margin-bottom: 15px; 
    }
    
    .footer-column ul li { 
        margin-bottom: 8px; 
    }
    
    .mobile-menu-container {
        width: 90%;
        max-width: 280px;
    }
    
    .mobile-lang-buttons {
        flex-direction: column;
    }
    
    .mobile-lang-btn {
        justify-content: center;
    }
    
    .cookie-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .referral-content {
        padding: 25px;
    }
    
    .contacts-grid {
        gap: 30px;
    }
    
    .social-links {
        padding-left: 0;
        justify-content: center;
    }
    
    .contact-info p {
        padding-left: 0;
        text-align: center;
    }
    
    .contact-info h3 {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title { 
        font-size: 1.8rem; 
    }
    
    .hero-subtitle { 
        font-size: 1rem; 
    }
    
    .h-hero__component {
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .hero-stats { 
        gap: 1.5rem; 
    }
    
    .hero-cta { 
        flex-direction: column; 
        gap: 1rem; 
    }
    
    .hero-btn { 
        width: 100%; 
        justify-content: center; 
    }
    
    .container { 
        padding: 0 15px; 
    }
    
    .benefit-card, 
    .document-card, 
    .pricing-card, 
    .process-content,
    .testimonial-card,
    .modal-content { 
        padding: 20px; 
    }
    
    .referral-content {
        padding: 20px;
    }
    
    .process-step {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .process-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .process-timeline::before {
        left: 20px;
        top: 60px;
        bottom: 0;
    }
    
    .referral-step {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .step-number {
        margin-bottom: 10px;
    }
    
    .footer-logo .logo img {
        height: 100px;
    }
    
    .mobile-menu-container {
        width: 100%;
        max-width: none;
    }
}

/* === Дополнительные улучшения === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

::selection {
    background-color: rgba(29, 61, 255, 0.2);
    color: var(--text-dark);
}

/* Скрытие элементов для скринридеров */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Стили для слайдера отзывов */
.testimonials-slider {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.testimonial-slide {
    min-width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Улучшенные стили для кнопок слайдера */
.slider-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.slider-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.slider-btn:active {
    transform: scale(0.95);
}

/* Счетчик слайдов */
.slider-counter {
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 10px;
    font-size: 0.9rem;
    min-width: 40px;
    text-align: center;
}

/* Улучшенные стили для модального окна */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    background: var(--bg-light);
}

.contact-method:hover {
    background-color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.contact-method i {
    font-size: 1.2rem;
    color: var(--primary);
    width: 24px;
    text-align: center;
    min-width: 24px;
}

.contact-method span {
    font-size: 0.95rem;
    font-weight: 500;
    flex: 1;
}

/* Адаптивность для слайдера */
@media (max-width: 768px) {
    .testimonial-slide {
        padding: 0 10px;
    }
    
    .slider-btn {
        width: 36px;
        height: 36px;
    }
    
    .contact-method {
        padding: 10px 12px;
    }
    
    .contact-method span {
        font-size: 0.9rem;
    }
}

/* Анимация появления слайдов */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.testimonial-slide {
    animation: slideIn 0.5s ease-out;
}

/* Индикаторы слайдов (точки) */
.testimonials-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.testimonial-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.testimonial-indicator.active {
    background: var(--primary);
    transform: scale(1.2);
}

.testimonial-indicator:hover {
    background: var(--primary);
}

/* Дополнительные улучшения для отзывов */
.testimonial-card {
    background: var(--bg-white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-text {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text);
    flex-grow: 1;
    overflow-y: auto;
    max-height: 200px;
    padding-right: 5px;
}

.testimonial-text::-webkit-scrollbar {
    width: 4px;
}

.testimonial-text::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.testimonial-text::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

.testimonial-text::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Стили для мобильных устройств */
@media (max-width: 480px) {
    .testimonial-text {
        max-height: 150px;
        font-size: 0.9rem;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .slider-controls-top {
        width: 100%;
        justify-content: center;
    }
}

/* Стили для кастомных уведомлений */
.custom-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    max-width: 400px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.custom-alert.show {
    opacity: 1;
    transform: translateX(0);
}

.custom-alert-content {
    background: white;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-left: 4px solid;
}

.custom-alert-success .custom-alert-content {
    border-left-color: #10B981;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
}

.custom-alert-error .custom-alert-content {
    border-left-color: #EF4444;
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
}

.custom-alert-info .custom-alert-content {
    border-left-color: #3B82F6;
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
}

.custom-alert-message {
    flex: 1;
    margin-right: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.custom-alert-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.custom-alert-close:hover {
    opacity: 1;
}

/* Стили для состояния загрузки формы */
.form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-submit.loading {
    position: relative;
    color: transparent;
}

.form-submit.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Улучшенные стили для полей формы */
.form-group input {
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

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

.form-group input.error {
    border-color: #EF4444;
    background-color: rgba(239, 68, 68, 0.05);
}

.form-group input.success {
    border-color: #10B981;
    background-color: rgba(16, 185, 129, 0.05);
}

/* Адаптивность для уведомлений */
@media (max-width: 768px) {
    .custom-alert {
        left: 20px;
        right: 20px;
        min-width: auto;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .custom-alert.show {
        transform: translateY(0);
    }
    
    .custom-alert-content {
        padding: 12px 15px;
    }
}

/* Анимация успешной отправки */
@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.form-submit.success {
    animation: successPulse 0.5s ease;
    background-color: #10B981;
}

/* Стили для модального окна при отправке */
.modal-content.sending {
    position: relative;
}

.modal-content.sending::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1;
    border-radius: 10px;
}

.modal-content.sending::after {
    content: 'Отправка...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
}
.floating-contact-btn {
    display: none;
}

/* Показать ТОЛЬКО на мобильных */
@media (max-width: 768px) {
    .floating-contact-btn {
        display: block;
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000;
        width: 90%;
        max-width: 300px;
    }
}
/* === Иконка Instagram в шапке === */
.header-instagram {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white !important;
    font-size: 16px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.header-instagram:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.header-instagram i {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === ЮРИДИЧЕСКИЕ БЛОКИ === */
.site-footer {
    background: #0f172a;
    color: #e5e7eb;
    padding: 44px 0;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 28px;
    align-items: start;
}

.site-footer__title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.site-footer__text,
.site-footer__details p {
    color: #cbd5e1;
    margin-bottom: 8px;
    line-height: 1.65;
}

.site-footer__links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-footer__links a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer__links a:hover {
    color: #93c5fd;
}

.form-agreement {
    margin-top: 6px;
}

.agreement-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-light);
}

.agreement-label input {
    margin-top: 4px;
    flex: 0 0 auto;
}

.agreement-label a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-modal {
    padding: 18px;
}

.legal-modal__content {
    width: min(920px, 100%);
    max-width: 920px;
    max-height: calc(100vh - 36px);
    padding: 0;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.legal-modal__content--small {
    max-width: 620px;
}

.legal-modal__header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 22px 64px 22px 28px;
}

.legal-modal__header .modal-title {
    margin: 0;
    text-align: left;
    font-size: 1.55rem;
    line-height: 1.3;
}

.legal-modal__body {
    overflow-y: auto;
    padding: 24px 28px 30px;
    line-height: 1.72;
}

.legal-modal__body h3 {
    font-size: 1.1rem;
    margin: 24px 0 12px;
}

.legal-modal__body p,
.legal-modal__body li {
    font-size: 0.98rem;
    color: var(--text);
}

.legal-modal__body ul {
    list-style: disc;
    padding-left: 22px;
    margin: 0 0 10px;
}

.legal-modal .modal-close {
    top: 18px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    font-size: 1.4rem;
    z-index: 6;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 992px) {
    .site-footer__inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .legal-modal {
        padding: 10px;
    }

    .legal-modal__content {
        max-height: calc(100vh - 20px);
        border-radius: 14px;
    }

    .legal-modal__header {
        padding: 18px 56px 18px 18px;
    }

    .legal-modal__header .modal-title {
        font-size: 1.15rem;
    }

    .legal-modal__body {
        padding: 18px 18px 24px;
    }

    .agreement-label {
        font-size: 12px;
    }
}
