/* ============================================
   ПСИХОЛОГ В КАЗАНИ - ЕЛЕНА ПОМАЗУН
   Главный файл стилей
   ============================================ */

/* ===== CSS ПЕРЕМЕННЫЕ ===== */
:root {
    --primary-color: #9b87f5;
    --secondary-color: #6c5ce7;
    --accent-color: #00cec9;
    --dark-color: #2d3436;
    --light-color: #f9f9f9;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    --shadow-sm: 0 5px 20px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 40px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
    --border-radius: 20px;
    --transition: all 0.3s ease;
}

/* ===== СБРОС СТИЛЕЙ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

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

/* ===== СКРОЛЛБАР ===== */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--gradient); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--secondary-color); }
::selection { background: var(--primary-color); color: white; }

/* ===== ХЕДЕР ===== */
.header-site {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 999999;
}

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

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

/* ЛОГОТИП */
.logo-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1.2;
}

.logo-main {
    font-size: 1.2rem;
    font-weight: 700;
    color: #6C5CE7;
    letter-spacing: 0.5px;
}

.logo-name {
    font-size: 1rem;
    color: #2D3436;
    font-weight: 500;
}

.logo-link:hover .logo-main { color: #5a4ad1; }

/* ДЕСКТОП МЕНЮ */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: 40px;
}

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

.nav-desktop a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.nav-desktop a:hover { color: #6C5CE7; }

/* КНОПКА ЗАПИСИ */
.btn-header {
    background: #6C5CE7;
    color: #FFFFFF !important;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 500;
}

/* КНОПКА БУРГЕРА */
.btn-burger {
    display: none;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1000000;
}

.btn-burger span {
    display: block;
    width: 30px;
    height: 3px;
    background: #333;
    margin: 6px auto;
    transition: 0.3s;
    border-radius: 3px;
}

.btn-burger.active span:nth-child(1) { transform: rotate(45deg) translate(7px, 7px); background: #6C5CE7; }
.btn-burger.active span:nth-child(2) { opacity: 0; }
.btn-burger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); background: #6C5CE7; }

/* МОБИЛЬНОЕ МЕНЮ */
.mobile-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 999990;
    transition: 0.3s;
    padding: 80px 20px 30px;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
}

.mobile-panel.active { right: 0; }

.mobile-panel ul { list-style: none; }
.mobile-panel li { margin-bottom: 20px; }

.mobile-panel a {
    color: #333;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
}

.mobile-panel a:hover { color: #6C5CE7; }

.mobile-contacts {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.mobile-phone-link {
    display: block;
    color: #333;
    text-decoration: none;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.mobile-btn-link {
    display: block;
    background: #6C5CE7;
    color: #fff;
    text-decoration: none;
    padding: 12px;
    text-align: center;
    border-radius: 30px;
    font-weight: 600;
}

/* ОВЕРЛЕЙ */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999980;
}

.mobile-overlay.active { display: block; }

/* ОТСТУП ДЛЯ КОНТЕНТА */
.site-content { margin-top: 70px; }

/* ===== КНОПКИ ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    border: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn:hover::before { left: 0; }

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-outline {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.btn-block { width: 100%; justify-content: center; }

/* ===== HERO СЕКЦИЯ ===== */
.hero-section {
    position: relative;
    min-height: 70vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-section .container {
    max-width: 1200px;
    padding: 0 15px;
    text-align: left;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.3) 100%);
    z-index: 2;
}

.hero-grid {
    position: relative;
    z-index: 10;
    display: flex;
    gap: 60px;
    align-items: normal;
    justify-content: flex-start;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.3);
}

.hero-title {
    color: white;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 30px;
}

.hero-title-accent {
    display: block;
    font-size: 2rem;
    opacity: 0.9;
    font-weight: 300;
}

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

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

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

.hero-stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

.hero-features {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
}

.hero-feature-icon {
    width: 20px;
    height: 20px;
    stroke: white;
}

.hero-buttons { display: flex; gap: 20px; }

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: white;
}

.scroll-mouse {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 15px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 10px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollAnim 2s infinite;
}

@keyframes scrollAnim {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

/* ===== СЕКЦИЯ "ОБО МНЕ" ===== */
.about-section {
    padding: 100px 0;
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-image-wrapper { position: relative; }

.about-image-main {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 30px;
}

.about-image-main img {
    width: 100%;
    height: auto;
    display: block;
}

.about-qualification-badge {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: white;
    padding: 15px 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.badge-title {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.badge-text {
    font-weight: 600;
    color: var(--dark-color);
}

.about-content { padding-top: 20px; }

.section-badge {
    display: inline-block;
    padding: 6px 15px;
    background: linear-gradient(135deg, rgba(155,135,245,0.1), rgba(108,92,231,0.1));
    color: var(--primary-color);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.section-badge.light {
    background: rgba(255,255,255,0.2);
    color: white;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.text-accent { color: var(--primary-color); }

.about-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #444;
}

.about-education,
.about-approach { margin: 30px 0; }

.about-education h4,
.about-approach h4 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.about-education ul { list-style: none; }

.about-education li {
    padding: 8px 0 8px 25px;
    position: relative;
    color: #555;
}

.about-education li::before {
    content: '•';
    color: var(--primary-color);
    font-size: 20px;
    position: absolute;
    left: 0;
    top: 2px;
}

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

.approach-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 10px;
}

.approach-item svg { flex-shrink: 0; }
.approach-item span { font-size: 0.95rem; color: #555; }

.about-cta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

/* ===== СЕКЦИЯ УСЛУГ ===== */
.services-section {
    padding: 100px 0;
    background: #f8faff;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.service-card-wrapper { perspective: 1000px; }

.service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(108,92,231,0.15);
}

.service-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-card-image img { transform: scale(1.1); }

.service-card-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.4) 100%);
}

.service-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.service-card-title a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-card-title a:hover { color: var(--primary-color); }

.service-card-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.service-duration {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 0.9rem;
}

.service-card-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.service-card-features {
    margin: 15px 0;
    flex: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.9rem;
    color: #555;
}

.service-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.service-card-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: gap 0.3s ease;
}

.service-card-link:hover { gap: 12px; }

.service-card-book {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-card-book:hover {
    background: var(--primary-color);
    color: white;
}

.service-card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ee5253);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.services-footer {
    text-align: center;
    margin-top: 50px;
}

.services-footer p {
    margin-bottom: 20px;
    color: #666;
}

/* ===== СЕКЦИЯ ПРОБЛЕМ ===== */
.problems-section {
    padding: 80px 0;
    background: white;
}

.problems-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

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

.problems-category h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.problems-category ul { list-style: none; }

.problems-category li {
    padding: 6px 0 6px 20px;
    position: relative;
    color: #666;
}

.problems-category li::before {
    content: '→';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.problems-cta {
    background: linear-gradient(135deg, #f8faff, #fff);
    padding: 30px;
    border-radius: 20px;
    border-left: 4px solid var(--primary-color);
}

.problems-cta p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #444;
}

.problems-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

/* ===== ОТЗЫВЫ ===== */
.reviews-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8faff 0%, #fff 100%);
}

.reviews-showcase { margin: 50px 0; }

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
}

.review-card-inner {
    background: white;
    border-radius: 20px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.review-card-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(108,92,231,0.1);
}

.review-card-inner::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
}

.review-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.reviewer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.reviewer-info { flex: 1; }

.reviewer-name {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--dark-color);
}

.reviewer-city {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #666;
}

.review-rating {
    display: flex;
    gap: 3px;
    margin-left: auto;
}

.review-quote { opacity: 0.1; margin-bottom: 15px; }

.review-card-content p {
    color: #555;
    line-height: 1.7;
    font-style: italic;
}

.reviews-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 60px;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.reviews-stats { display: flex; gap: 50px; }

.stat { text-align: center; }

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label { color: #666; font-size: 0.9rem; }

/* ===== ФОРМА ЗАПИСИ ===== */
.consultation-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.consultation-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: cover;
    opacity: 0.1;
}

.consultation-wrapper { position: relative; z-index: 2; }

.consultation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.consultation-info { color: white; }

.consultation-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    line-height: 1.3;
}

.consultation-benefits { margin: 40px 0; }

.benefit-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.benefit-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.benefit-icon svg { stroke: white; }

.benefit-content h4 { margin-bottom: 8px; font-size: 1.1rem; }
.benefit-content p { opacity: 0.9; font-size: 0.95rem; line-height: 1.5; }

.consultation-contact-info {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-method svg { stroke: white; }
.contact-method span { color: white; }

.consultation-form-container {
    background: white;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.form-header p { color: #666; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.floating-label {
    position: relative;
    margin-bottom: 20px;
}

.floating-label input,
.floating-label select,
.floating-label textarea {
    width: 100%;
    padding: 16px 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.floating-label textarea {
    resize: vertical;
    min-height: 100px;
}

.floating-label select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}

.floating-label label {
    position: absolute;
    left: 15px;
    top: 16px;
    color: #999;
    transition: all 0.3s ease;
    pointer-events: none;
    background: white;
    padding: 0 5px;
}

.floating-label input:focus,
.floating-label select:focus,
.floating-label textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.floating-label input:focus ~ label,
.floating-label input:not(:placeholder-shown) ~ label,
.floating-label select:focus ~ label,
.floating-label select:not([value=""]) ~ label,
.floating-label textarea:focus ~ label,
.floating-label textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 10px;
    font-size: 0.85rem;
    color: var(--primary-color);
}

.checkbox-group {
    margin: 25px 0;
    clear: both;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    position: relative;
    padding-left: 0;
}

.checkbox-label input { display: none; }

.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
    background: white;
    flex-shrink: 0;
}

.checkbox-label input:checked + .checkbox-custom {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input:checked + .checkbox-custom::after {
    content: '✓';
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: bold;
}

.checkbox-text { font-size: 0.95rem; color: #666; line-height: 1.4; }
.form-footer { text-align: center; margin-top: 20px; font-size: 0.85rem; color: #999; }

/* ===== ПРЕИМУЩЕСТВА ===== */
.advantages-section {
    padding: 80px 0;
    background: white;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.advantage-card {
    text-align: center;
    padding: 30px;
    background: #f8faff;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.advantage-icon { margin-bottom: 20px; }

.advantage-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--dark-color);
}

.advantage-card p { color: #666; line-height: 1.6; font-size: 0.95rem; }

/* ===== FAQ ===== */
.faq-section {
    padding: 80px 0;
    background: #f8faff;
}

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

.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin: 0;
}

.faq-toggle {
    width: 20px;
    height: 20px;
    position: relative;
    flex-shrink: 0;
}

.faq-toggle::before,
.faq-toggle::after {
    content: '';
    position: absolute;
    background: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-toggle::before {
    width: 2px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.faq-toggle::after {
    width: 100%;
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.faq-item.active .faq-toggle::before { transform: translateX(-50%) rotate(90deg); }

.faq-answer {
    max-height: 0;
    padding: 0 25px;
    overflow: hidden;
    transition: all 0.3s ease;
    color: #666;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 25px 20px;
}

/* ===== КОНТАКТЫ ===== */
.contacts-section {
    padding: 80px 0;
    background: white;
}

.contacts-wrapper {
    display: flex;
    gap: 60px;
    min-height: 500px;
}

.contacts-info {
    flex: 1;
    padding-right: 20px;
}

.contacts-map {
    flex: 1;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    background: #f0f0f0;
}

.contacts-list { margin-bottom: 40px; }

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(155,135,245,0.1), rgba(108,92,231,0.1));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg { stroke: var(--primary-color); }
.contact-item h4 { margin-bottom: 5px; color: var(--dark-color); font-size: 1.1rem; }
.contact-item p { color: #666; margin-bottom: 5px; }
.contact-item a { color: #666; text-decoration: none; transition: color 0.3s ease; }
.contact-item a:hover { color: var(--primary-color); }
.contact-item small { color: #999; font-size: 0.85rem; }

.contacts-social h4 { margin-bottom: 15px; color: var(--dark-color); }

.social-links { display: flex; gap: 15px; }

.social-link {
    width: 45px;
    height: 45px;
    background: #f8faff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* ===== FOOTER ===== */
.site-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 60px 0 20px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 2fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo { margin-bottom: 20px; }

.footer-logo img {
    max-height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-site-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-about p {
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-label { color: rgba(255,255,255,0.6); font-size: 0.9rem; }

.footer-social .social-link {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.footer-social .social-link:hover {
    background: var(--gradient);
    transform: translateY(-3px);
}

.footer-title {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient);
}

.footer-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu li { margin-bottom: 12px; }

.footer-menu a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.95rem;
}

.footer-menu a:hover { color: white; transform: translateX(5px); }

.footer-contact-list { list-style: none; padding: 0; margin: 0 0 20px; }

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
}

.footer-contact-list li svg { stroke: var(--primary-color); flex-shrink: 0; }

.footer-contact-list li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-list li a:hover { color: white; }

.footer-work-hours {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}

.footer-work-hours svg { stroke: var(--primary-color); flex-shrink: 0; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.footer-links { display: flex; gap: 30px; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.3s ease; }
.footer-links a:hover { color: white; }

/* КНОПКА НАВЕРХ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: 0 5px 20px rgba(108,92,231,0.3);
}

.back-to-top.visible { opacity: 1; visibility: visible; }

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(108,92,231,0.4);
}

/* ПРЕЛОАДЕР */
.preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--light-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.float-animation { animation: float 3s ease-in-out infinite; }

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1200px) {
    .hero-title { font-size: 3rem; }
    .hero-title-accent { font-size: 1.8rem; }
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-main { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .nav-desktop { display: none; }
    .btn-burger { display: block; }

    .hero-grid,
    .about-grid,
    .problems-grid,
    .consultation-grid { grid-template-columns: 1fr; gap: 40px; }

    .contacts-wrapper { flex-direction: column; }
    .contacts-info { padding-right: 0; }
    .contacts-map { height: 350px; }

    .reviews-footer { flex-direction: column; gap: 20px; text-align: center; }
    .reviews-stats { justify-content: center; }
}

@media (max-width: 768px) {
    .logo-main { font-size: 1rem; }
    .logo-name { font-size: 0.85rem; }

    .hero-title { font-size: 2rem; }
    .hero-title-accent { font-size: 1.4rem; }

    .hero-stats,
    .hero-features { flex-direction: column; gap: 20px; }

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

    .btn { width: 100%; text-align: center; justify-content: center; }

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

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

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

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

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

    .problems-list { grid-template-columns: 1fr; }

    .reviews-stats { flex-direction: column; gap: 20px; }

    .footer-main { grid-template-columns: 1fr; gap: 30px; }

    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
    .footer-links { flex-direction: column; gap: 10px; }

    .back-to-top { bottom: 20px; right: 20px; width: 45px; height: 45px; }

    .scroll-indicator { display: none !important; }
}

/* ===== MOBILE SERVICES TITLE FIX ===== */
@media (max-width: 768px) {
    .services-section .section-header {
        max-width: 100%;
        padding: 0 15px;
        overflow: hidden;
    }

    .services-section .section-title {
        font-size: 1.7rem;
        word-break: break-word;
        white-space: normal;
        overflow-wrap: break-word;
        left: auto;
        transform: none;
        display: block;
        position: static;
        text-align: center;
    }

    .services-section .section-description {
        font-size: 0.95rem;
        padding: 0;
    }
}

body.menu-open { overflow: hidden; }
