/* ============================================
   ОПТИМАЛЬНАЯ ПАЛИТРА ДЛЯ КОНВЕРСИИ + КРАСОТА
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Основные цвета - строгая электроника, доверие, прозрачность */
    --primary-color: #1E40AF; /* Глубокий синий (вместо фиолетового) */
    --primary-dark: #111827;  /* Почти черный для контрастных текстов */
    --accent-color: #F97316;  /* Сочный оранжевый - привлекает внимание к акциям */
    --success-color: #22C55E; /* Зеленый для кнопок "Позвонить" / "Связь" */
    
    /* Новые технологичные градиенты для фона (Hero и Final-CTA) */
    --gradient-primary: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%); /* Глубокий темно-синий */
    --gradient-success: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    --gradient-warm: linear-gradient(135deg, #EA580C 0%, #D97706 100%);
    
    /* Нейтральные */
    --dark: #1F2937;
    --gray: #4B5563; /* Чуть темнее для лучшей читаемости */
    --light-gray: #F3F4F6;
    --white: #FFFFFF;
    
    /* Тени */
    --shadow: 0 4px 20px rgba(0,0,0,0.05);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.1);
    --shadow-strong: 0 10px 40px rgba(0,0,0,0.12);
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER - Чистый и профессиональный
   ============================================ */

.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

/* ============================================
   HEADER - Чистый и профессиональный
   ============================================ */

.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    z-index: 1000;
    padding: 10px 0; /* Чуть уменьшили падинг, чтобы меню не делало шапку слишком толстой */
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
}

.logo i {
    font-size: 32px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Стили меню навигации */
.main-nav {
    display: block;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 24px;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Красивое подчеркивание при наведении */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s;
    padding: 8px 12px;
    border-radius: 8px;
}

.phone-link:hover {
    background: var(--light-gray);
    color: var(--primary-color);
}

.phone-link i {
    color: var(--success-color);
    font-size: 18px;
}

/* ============================================
   КНОПКИ - Психология цвета
   ============================================ */

.cta-button, .cta-button-secondary, .cta-button-small {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-button {
    background: var(--gradient-success);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.4);
}

.cta-button-large {
    padding: 18px 40px;
    font-size: 18px;
    border-radius: 14px;
}

.cta-button-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.15);
}

.cta-button-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.cta-button-small {
    padding: 12px 24px;
    font-size: 15px;
    background: var(--gradient-warm);
    color: var(--white);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* ============================================
   HERO - Красивый градиент + контраст
   ============================================ */

.hero {
    padding: 140px 0 100px;
    background: var(--gradient-primary);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    right: -25%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, -30px) rotate(5deg); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 52px;
    line-height: 1.15;
    margin-bottom: 30px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.highlight {
    color: #FCD34D;
    position: relative;
}

.hero-benefits {
    list-style: none;
    margin-bottom: 40px;
}

.hero-benefits li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 16px;
    font-size: 18px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-benefits i {
    color: var(--success-color);
    font-size: 24px;
    background: var(--white);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.urgent-banner {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--gradient-warm);
    padding: 16px 28px;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

.urgent-banner i {
    color: var(--white);
    font-size: 24px;
    animation: flicker 1.5s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ============================================
   КАРТОЧКА МАСТЕРА - Привлекательная
   ============================================ */

.master-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    transform: rotate(2deg);
    transition: all 0.3s ease;
}

.master-card:hover {
    transform: rotate(0deg) translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
}

.master-photo {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.master-info {
    padding: 28px;
    background: linear-gradient(to bottom, var(--white), var(--light-gray));
}

.master-info h3 {
    font-size: 26px;
    margin-bottom: 5px;
    color: var(--dark);
}

.master-info p {
    color: var(--gray);
    margin-bottom: 20px;
}

.master-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #E5E7EB;
}

.stat {
    text-align: center;
}

.stat strong {
    display: block;
    font-size: 32px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.stat span {
    font-size: 13px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   СЕКЦИИ
   ============================================ */

section {
    padding: 90px 0;
}

h2 {
    font-size: 44px;
    text-align: center;
    margin-bottom: 16px;
    color: var(--dark);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 19px;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   ПРОБЛЕМЫ
   ============================================ */

.problems {
    background: var(--light-gray);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.problem-card {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
}

.problem-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.problem-card i {
    font-size: 56px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.problem-card h3 {
    font-size: 21px;
    margin-bottom: 10px;
    color: var(--dark);
    font-weight: 700;
}

.problem-card p {
    color: var(--gray);
    font-size: 15px;
}

.problem-btn {
    margin-top: 20px;
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-weight: 700;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s;
    padding: 8px 16px;
    border-radius: 8px;
}

.problem-btn:hover {
    background: var(--light-gray);
    transform: translateX(5px);
}

/* ============================================
   УСЛУГИ
   ============================================ */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
    margin-bottom: 60px;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.service-card.popular {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, #FFFBEB 0%, var(--white) 100%);
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--gradient-warm);
    color: var(--white);
    padding: 6px 18px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 13px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    letter-spacing: 0.5px;
}

.service-icon {
    width: 72px;
    height: 72px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-icon i {
    font-size: 32px;
    color: var(--white);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--dark);
    font-weight: 700;
}

.service-card p {
    color: var(--gray);
    margin-bottom: 20px;
    min-height: 48px;
    font-size: 15px;
    line-height: 1.6;
}

.service-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 24px;
}

.price-from {
    color: var(--gray);
    font-size: 15px;
    font-weight: 600;
}

.price {
    font-size: 36px;
    font-weight: 900;
    background: var(--gradient-success);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-btn {
    width: 100%;
    padding: 14px;
    background: var(--gradient-success);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
}

.service-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* ============================================
   БРЕНДЫ
   ============================================ */

.all-brands {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background: var(--light-gray);
    border-radius: 20px;
}

.all-brands h3 {
    margin-bottom: 24px;
    font-size: 24px;
    color: var(--dark);
}

.brands-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.brands-list span {
    background: var(--white);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: var(--shadow);
    color: var(--dark);
    transition: all 0.3s;
}

.brands-list span:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* ============================================
   ПОЧЕМУ МЫ
   ============================================ */

.why-us {
    background: var(--light-gray);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.why-card {
    background: var(--white);
    padding: 32px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.why-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.why-icon i {
    font-size: 36px;
    color: var(--white);
}

.why-card h3 {
    font-size: 21px;
    margin-bottom: 12px;
    color: var(--dark);
    font-weight: 700;
}

.why-card p {
    color: var(--gray);
    line-height: 1.7;
    font-size: 15px;
}

/* ============================================
   КАК МЫ РАБОТАЕМ
   ============================================ */

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
}

.step-number {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.step-content h3 {
    font-size: 19px;
    margin-bottom: 10px;
    text-align: center;
    color: var(--dark);
    font-weight: 700;
}

.step-content p {
    text-align: center;
    color: var(--gray);
    font-size: 15px;
    line-height: 1.6;
}

.step-arrow {
    font-size: 32px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================
   ОТЗЫВЫ
   ============================================ */

.reviews {
    background: var(--light-gray);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 28px;
}

.review-card {
    background: var(--white);
    padding: 28px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 20px;
}

.review-author {
    display: flex;
    gap: 14px;
}

.author-avatar {
    width: 52px;
    height: 52px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.review-author h4 {
    margin-bottom: 6px;
    color: var(--dark);
    font-weight: 700;
}

.review-rating {
    color: #F59E0B;
    font-size: 15px;
}

.review-date {
    color: var(--gray);
    font-size: 13px;
}

.review-text {
    color: var(--dark);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 15px;
}

.review-footer {
    padding-top: 16px;
    border-top: 2px solid var(--light-gray);
}

.review-service {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
}

/* ============================================
   FAQ
   ============================================ */

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 16px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: var(--primary-color);
}

.faq-question {
    padding: 24px 28px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.faq-question:hover {
    background: var(--light-gray);
}

.faq-question h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s;
    font-size: 18px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 28px 24px;
    color: var(--gray);
    line-height: 1.8;
    font-size: 15px;
}

/* ============================================
   ГЕОГРАФИЯ
   ============================================ */

.coverage {
    background: var(--light-gray);
}

.coverage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.coverage-card {
    background: var(--white);
    padding: 32px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.coverage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.coverage-card i {
    font-size: 48px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.coverage-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--dark);
    font-weight: 700;
}

.coverage-card p {
    color: var(--gray);
    line-height: 1.7;
    font-size: 15px;
}

/* ============================================
   ФИНАЛЬНЫЙ CTA
   ============================================ */

.final-cta {
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.final-cta-content {
    position: relative;
    z-index: 1;
}

.final-cta h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.final-cta > .final-cta-content > p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.final-cta-benefits {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 17px;
    font-weight: 700;
    background: rgba(255,255,255,0.15);
    padding: 14px 24px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.benefit-item i {
    font-size: 24px;
    color: #FCD34D;
}

.final-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.work-time {
    font-size: 16px;
    opacity: 0.9;
}

.work-time i {
    margin-right: 8px;
}

/* ============================================
   ФУТЕР
   ============================================ */

.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
}

.footer-col p {
    margin-bottom: 12px;
    opacity: 0.8;
    font-size: 15px;
}

.footer-col i {
    margin-right: 10px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
    font-size: 14px;
}

/* ============================================
   МОДАЛЬНОЕ ОКНО
   ============================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    padding: 45px;
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideDown 0.3s ease;
    box-shadow: var(--shadow-strong);
}

@keyframes slideDown {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    cursor: pointer;
    color: var(--gray);
    transition: color 0.3s;
    line-height: 1;
}

.close:hover {
    color: var(--primary-color);
}

.modal-content h2 {
    margin-bottom: 12px;
    text-align: center;
    color: var(--dark);
}

.modal-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 32px;
    font-size: 16px;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-content input {
    padding: 16px 20px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
}

.modal-content input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.privacy {
    font-size: 12px;
    color: var(--gray);
    text-align: center;
    line-height: 1.5;
}

/* ============================================
   ПЛАВАЮЩАЯ КНОПКА
   ============================================ */

.floating-call-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 64px;
    height: 64px;
    background: var(--gradient-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 26px;
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.5);
    z-index: 999;
    animation: pulse 2s infinite;
    text-decoration: none;
}

.floating-call-button:hover {
    transform: scale(1.1);
}

/* ============================================
   АДАПТИВ
   ============================================ */

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero-benefits li {
        font-size: 16px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    h2 {
        font-size: 32px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .phone-link span {
        font-size: 17px;
    }
    
    .steps {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .final-cta-buttons {
        flex-direction: column;
    }
    
    .floating-call-button {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        font-size: 22px;
    }
    
    .master-card {
        transform: rotate(0deg);
    }
}
@media (max-width: 768px) {
    /* Скрываем панель ссылок на мобильных, чтобы не перегружать экран */
    .main-nav {
        display: none;
    }
    
    .header-content {
        flex-direction: row; /* Оставляем в линию на мобильном */
        justify-content: space-between;
        padding: 5px 0;
    }
    
    .phone-link span {
        font-size: 15px; /* Аккуратный размер для экранов смартфонов */
    }
    
    .cta-button-small {
        padding: 8px 14px;
        font-size: 13px;
    }
}
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    section {
        padding: 70px 0;
    }
    
    .cta-button-large {
        padding: 16px 32px;
        font-size: 16px;
    }
    
    .modal-content {
        padding: 32px 24px;
    }
    
    h2 {
        font-size: 28px;
    }
}

/* ============================================
   ИНТЕРАКТИВНЫЙ КВИЗ-БЛОК
   ============================================ */
.quiz-container {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    margin-top: 25px;
    max-width: 580px;
}

.quiz-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 1px dashed #e0e0e0;
    padding-bottom: 10px;
}

.quiz-header p {
    margin: 0;
    font-size: 14px;
    color: var(--dark);
}

.quiz-badge {
    background: var(--danger-color);
    color: #fff;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.quiz-step {
    display: none;
}

.quiz-step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.quiz-label {
    display: block;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--dark);
}

.quiz-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
}

.option-card {
    position: relative;
    cursor: pointer;
}

.option-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    transition: all 0.2s ease;
    background: #f8fafc;
}

.option-card input:checked + .option-box {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.04);
    color: var(--primary-color);
}

.option-box i {
    font-size: 20px;
    color: #64748b;
}

.option-card input:checked + .option-box i {
    color: var(--primary-color);
}

.quiz-next-btn {
    width: 100%;
    background: var(--dark);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.quiz-next-btn:hover {
    background: var(--primary-color);
}

.quiz-final-input {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-final-input input {
    width: 100%;
    padding: 14px;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
}

.quiz-final-input input:focus {
    border-color: var(--primary-color);
}

.quiz-submit-btn {
    width: 100%;
    justify-content: center;
    padding: 14px;
}

.master-tag {
    margin-top: 10px;
    font-size: 12px;
    background: #f0fdf4;
    color: #16a34a;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 600;
    border: 1px solid #bbf7d0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .quiz-options {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .option-box {
        flex-direction: row;
        padding: 10px;
        text-align: left;
    }
}

/* ============================================
   МОБИЛЬНОЕ МЕНЮ (АДАПТИВНОСТЬ)
   ============================================ */

/* По умолчанию скрываем мобильные элементы на ПК */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--dark, #1F2937);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-only-nav {
    display: none;
}


/* Стили для экранов меньше 768px (смартфоны) */
/* ============================================
   МОБИЛЬНОЕ МЕНЮ И АДАПТИВНЫЙ ТЕЛЕФОН
   ============================================ */

/* Кнопка-бургер скрыта на ПК по умолчанию */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--dark, #1F2937);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

/* Стили для экранов меньше 768px (смартфоны) */
@/* ============================================
   МОБИЛЬНОЕ МЕНЮ И АДАПТИВНЫЙ ТЕЛЕФОН
   ============================================ */

/* Кнопка-бургер скрыта на ПК по умолчанию */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--dark, #1F2937);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

/* Стили для экранов меньше 768px (смартфоны) */
@media (max-width: 768px) {
    /* Перестраиваем шапку в сетку из 3-х колонок, чтобы заголовок был идеально по центру */
    .header-content {
        display: grid !important;
        grid-template-columns: 40px 1fr 40px !important; /* Боковые колонки одинаковые для центровки */
        gap: 8px !important;
        padding: 1px 0 !important;
    }

    /* Название сайта строго по центру */
    .logo {
        grid-column: 2;
        grid-row: 1;
        justify-content: center !important;
        text-align: center;
        font-size: 22px !important;
    }

    /* Показываем бургер в третьей колонке и сдвигаем левее (добавляем правый отступ) */
    .mobile-menu-toggle {
        display: block !important;
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        align-self: center;
        margin-right: 8px; /* Отодвигаем кнопку от правого края экрана */
    }

    /* Скрываем кнопку "Заказать звонок" на смартфонах */
    .header-right .cta-button-small {
        display: none !important;
    }

    /* Переносим весь блок телефона на вторую строку по центру */
    .header-right {
        grid-column: 1 / span 3;
        grid-row: 2;
        display: flex !important;
        justify-content: center !important;
        align-items: center;
        margin-top: 8px;
        width: 100%;
    }

    /* КРУПНЫЙ И ЗАМЕТНЫЙ телефон для мобильной версии */
    .header-phone-main {
        display: inline-flex !important;
        align-items: center;
        gap: 10px;
        background: #f0fdf4 !important; 
        border: 2px solid #bbf7d0 !important; /* Сделали рамку чуть толще */
        padding: 10px 24px !important; /* Увеличили внутренние отступы, чтобы кнопка стала больше */
        border-radius: 25px !important;
        color: #16a34a !important; 
        font-size: 19px !important; /* Сделали шрифт значительно крупнее */
        font-weight: 800 !important;
        text-decoration: none;
        transition: all 0.2s ease-in-out;
        outline: none;
        box-shadow: 0 4px 10px rgba(22, 163, 74, 0.05); /* Легкая тень для объема */
    }

    .header-phone-main i {
        color: #16a34a !important;
        font-size: 18px; /* Иконка трубки тоже крупнее */
    }

    /* КРАСИВАЯ ОБВОДКА И ВДАВЛИВАНИЕ ПРИ НАЖАТИИ ПАЛЬЦЕМ */
    .header-phone-main:active {
        transform: scale(0.96); 
        border-color: #22c55e !important;
        background: #dcfce7 !important;
        box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.4) !important;
    }

    /* Выпадающее мобильное меню */
    .main-nav {
        grid-column: 1 / span 3;
        grid-row: 3;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
        display: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        z-index: 999;
    }

    .main-nav.active {
        display: block !important;
        max-height: 350px;
        border-top: 1px solid #f3f4f6;
    }

    .nav-list {
        flex-direction: column !important;
        gap: 0 !important;
        padding: 5px 0 !important;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 14px 20px;
        border-bottom: 1px solid #f9fafb;
        font-size: 16px;
        color: #1F2937 !important;
        text-align: left;
    }

    .nav-link:hover {
        background: #f9fafb;
    }
	/* Переключаем контейнер Hero в flex-режим столбиком */
    .hero-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }

    /* Блок с текстом и фото мастера (делаем первым) */
    .hero-text {
        order: 1 !important;
        text-align: center; /* Центрируем текст для красоты на экранах мобильных */
    }

    /* Квиз-форма (встает строго под мастером вторым номером) */
    .hero-form, .quiz-container {
        order: 2 !important;
        width: 100% !important;
        margin-top: 10px !important;
    }

    /* Корректируем заголовки в Hero, чтобы не занимали весь экран */
    .hero h1 {
        font-size: 26px !important; /* Уменьшаем размер под мобильный экран */
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }

    /* Делаем список преимуществ мастера компактным */
    .hero-benefits {
        display: inline-block !important;
        text-align: left !important;
        margin: 15px auto !important;
        padding-left: 10px;
    }

    .hero-benefits li {
        font-size: 15px !important;
        margin-bottom: 10px !important;
    }

    /* Подгоняем карточки вариантов в квизе под пальцы */
    .quiz-options {
        grid-template-columns: 1fr !important; /* На мобилках опции квиза в одну колонку */
        gap: 10px !important;
    }

    .option-box {
        padding: 12px !important; /* Оптимальный размер для тапа */
        font-size: 15px !important;
    }
}

/* ========================================================
   ИСПРАВЛЕННЫЙ И ЧИСТЫЙ СТИЛЬ ДЛЯ ПРАВОЙ КОЛОНКИ НА ПК
   ======================================================== */
@media (min-width: 769px) {
    /* Сетка главного экрана */
    .hero-content {
        display: grid !important;
        grid-template-columns: 1.15fr 0.85fr !important;
        gap: 50px !important;
        align-items: start !important;
    }

    /* ПРАВАЯ КОЛОНКА */
    .hero-image {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
    }

    /* ВОЗВРАЩАЕМ КРАСИВЫЙ БЕЛЫЙ ФОН КАРТОЧКЕ МАСТЕРА */
    .master-card {
        margin-top: -45px !important; 
        margin-bottom: 0 !important; /* Убираем отступ снизу, чтобы убрать дыру до квиза */
        width: 100% !important;
        background: #ffffff !important; /* Чистый белый фон, чтобы текст не сливался */
        border-radius: 20px 20px 0 0 !important; /* Скругление только сверху */
        padding: 30px !important;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05) !important;
        border: 1px solid #e2e8f0 !important;
        border-bottom: none !important; /* Убираем рамку снизу для плавной склейки */
    }

    /* КВИЗ (Стыкуем прямо под карточкой без зазоров) */
    .quiz-container {
        display: block !important;
        width: 100% !important;
        margin-top: 0 !important; /* Жестко прижимаем к карточке сверху */
        background: #ffffff !important;
        border-radius: 0 0 20px 20px !important; /* Скругление только снизу */
        border: 1px solid #e2e8f0 !important;
        border-top: none !important; /* Убираем верхнюю рамку на стыке */
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05) !important;
        padding: 30px !important;
    }

    /* КРАСИВАЯ КНОПКА «ДАЛЕЕ» В КВИЗЕ */
    .quiz-nav .btn-next {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        background: #3b82f6 !important; /* Приятный синий цвет */
        color: #ffffff !important;
        border: none !important;
        padding: 12px 25px !important;
        border-radius: 8px !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2) !important;
    }

    .quiz-nav .btn-next:hover {
        background: #2563eb !important; /* Чуть темнее при наведении */
        transform: translateY(-1px) !important;
        box-shadow: 0 6px 14px rgba(59, 130, 246, 0.3) !important;
    }

    /* Левые кнопки связи (Вызывать мастера / Telegram) */
    .hero-cta {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        margin-top: 25px !important;
        width: 100% !important;
        max-width: 400px !important;
    }

    .phone-direct-link, .tg-mini-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        padding: 15px 25px !important;
        border-radius: 12px !important;
        font-size: 17px !important;
        font-weight: 700 !important;
        text-decoration: none !important;
        color: #ffffff !important;
    }

    .phone-direct-link { background: #22C55E !important; }
    .phone-direct-link:hover { background: #16A34A !important; }

    .tg-mini-btn { background: #38BDF8 !important; }
    .tg-mini-btn:hover { background: #0284C7 !important; }
}

/* ========================================================
   ОБНОВЛЕННЫЙ ТЕХНОЛОГИЧНЫЙ СТИЛЬ ДЛЯ HERO И КВИЗА
   ======================================================== */

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: start;
}

/* Стили преимуществ */
.hero-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 14px 18px;
    border-radius: 14px;
    backdrop-filter: blur(8px);
}

.hero-benefits li div {
    line-height: 1.4;
}

/* Правая колонка-контейнер */
.hero-image {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Обновленная независимая карточка мастера */
.master-card-new {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
}

.master-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    color: #16a34a;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 15px;
    border: 1px solid #bbf7d0;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    animation: flash 1.8s infinite;
}

@keyframes flash {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.master-header-block h3 {
    font-size: 26px;
    color: #0f172a;
    font-weight: 800;
    margin: 0;
}

.master-title {
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    margin: 2px 0 0 0 !important;
}

.master-stats-new {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 15px 0;
    background: #f8fafc;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #edf2f7;
}

.stat-item-new {
    text-align: center;
}

.stat-item-new strong {
    display: block;
    font-size: 22px;
    color: #1e40af;
    font-weight: 800;
}

.stat-item-new span {
    font-size: 12px;
    color: #64748b;
}

.master-bio {
    font-style: italic;
    color: #334155 !important;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px !important;
}

.master-zones {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    font-weight: 600;
}

.master-zones i {
    color: #ea580c;
}

/* Новый независимый блок квиза */
.quiz-block {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
}

.quiz-header-new {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.quiz-badge {
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.quiz-header-new p {
    color: #1e293b;
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}

/* Прогресс-бар */
.quiz-progress-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-line {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.quiz-step-new {
    display: none;
}

.quiz-step-new.active {
    display: block;
    animation: stepFadeIn 0.35s ease;
}

@keyframes stepFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.quiz-question {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 15px;
}

/* Сетка вариантов ответов */
.quiz-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.quiz-options-grid.single-col {
    grid-template-columns: 1fr;
}

.option-card-label {
    position: relative;
    cursor: pointer;
}

.option-card-label input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-box-new {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    background: #f8fafc;
    transition: all 0.2s ease;
    min-height: 52px;
}

.option-box-new i {
    font-size: 16px;
    color: #94a3b8;
    transition: color 0.2s;
}

/* Эффекты при выборе */
.option-card-label input:checked + .option-box-new {
    border-color: #1e40af;
    background: #f0f4ff;
    color: #1e40af;
}

.option-card-label input:checked + .option-box-new i {
    color: #1e40af;
}

/* Навигация квиза */
.quiz-nav-new {
    display: flex;
    justify-content: flex-end;
}

.quiz-nav-new.dual-btns {
    justify-content: space-between;
}

.btn-next-step, .btn-prev-step {
    padding: 11px 24px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-next-step {
    background: #0f172a;
    color: #ffffff;
}

.btn-next-step:hover {
    background: #1e40af;
}

.btn-next-step.success {
    background: #22c55e;
    color: #ffffff;
}

.btn-next-step.success:hover {
    background: #16a34a;
}

.btn-prev-step {
    background: #e2e8f0;
    color: #475569;
}

.btn-prev-step:hover {
    background: #cbd5e1;
}

/* Финал квиза */
.quiz-success-icon-new {
    width: 56px;
    height: 56px;
    background: #dcfce7;
    color: #15803d;
    font-size: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.text-center { text-align: center; }

.quiz-final-text {
    font-size: 13px;
    color: #475569;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 15px;
}

.quiz-final-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-final-form input {
    padding: 14px;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    text-align: center;
    font-weight: 600;
}

.quiz-final-form input:focus {
    border-color: #1e40af;
}

/* Адаптивность для мобилок */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .quiz-options-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .option-box-new {
        min-height: auto;
        padding: 10px 12px;
    }
}


/* Карточка мастера с фото (Сплит-дизайн) */
.master-card-new.has-photo {
    background: #ffffff;
    border-radius: 20px;
    padding: 0; /* Убираем внутренние отступы, чтобы фото прилегало к краю */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid #e2e8f0;
    display: grid;
    grid-template-columns: 140px 1fr; /* Фиксированная ширина для фото, остальное тексту */
    overflow: hidden; /* Чтобы скругления углов карточки обрезали края фото */
}

/* Оболочка для фото и статуса */
.master-photo-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 220px;
}

.master-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Фото заполнит область без искажения пропорций */
    object-position: center 15%; /* Центрируем по лицу, если фото вертикальное */
    display: block;
}

/* Компактный статус поверх фотографии */
.master-status-badge {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(22, 163, 74, 0.9); /* Полупрозрачный зеленый */
    backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: #ffffff;
    border-radius: 50%;
    display: inline-block;
    animation: flash 1.8s infinite;
}

/* Контентная часть карточки */
.master-info-new {
    padding: 20px 20px 20px 15px; /* Аккуратные отступы вокруг текста */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.master-header-block h3 {
    font-size: 22px;
    color: #0f172a;
    font-weight: 800;
    margin: 0;
}

.master-title {
    color: #4f46e5; /* Выделим красивым цветом */
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 2px 0 0 0 !important;
}

/* Компактные плашки статистики */
.master-stats-new {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 12px 0;
    background: #f8fafc;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #edf2f7;
}

.stat-item-new strong {
    display: block;
    font-size: 18px;
    color: #1e40af;
    font-weight: 800;
    line-height: 1.2;
}

.stat-item-new span {
    font-size: 11px;
    color: #64748b;
}

.master-bio {
    font-style: italic;
    color: #475569 !important;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 12px !important;
}

.master-zones {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #1e293b;
    font-weight: 600;
}

.master-zones i {
    color: #ea580c;
}

/* Адаптив под мобильные телефоны */
@media (max-width: 480px) {
    .master-card-new.has-photo {
        grid-template-columns: 1fr; /* На мобилках фото будет сверху, текст снизу */
    }
    
    .master-photo-wrapper {
        height: 180px;
        min-height: auto;
    }
    
    .master-info-new {
        padding: 15px;
    }
}

/* ========================================================
   ИСПРАВЛЕНИЕ И СТИЛИЗАЦИЯ КНОПОК СВЯЗИ (HERO CTA)
   ======================================================== */

.hero-cta {
    display: flex !important;
    flex-wrap: wrap;
    gap: 12px !important;
    margin-top: 30px !important;
    width: 100% !important;
}

/* Общие базовые стили для кнопок связи */
.phone-direct-link, .tg-mini-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    padding: 16px 28px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    border-radius: 12px !important;
    transition: all 0.25s ease-on-out !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

/* Кнопка "Вызвать мастера" - Яркая, зеленая (цвет высокой конверсии) */
.phone-direct-link {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    color: #ffffff !important;
    border: none !important;
}

.phone-direct-link:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(22, 197, 94, 0.3) !important;
}

.phone-direct-link i {
    font-size: 18px !important;
}

/* Кнопка Telegram - Брендовая, стильная */
.tg-mini-btn {
    background: #0088cc !important;
    color: #ffffff !important;
    border: none !important;
}

.tg-mini-btn:hover {
    background: #0077b3 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.3) !important;
}

.tg-mini-btn i {
    font-size: 19px !important;
}

/* Эффект пульсации для привлечения внимания к главной кнопке звонка */
.pulse {
    animation: buttonPulse 2s infinite;
}

@keyframes buttonPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* Адаптивность для мобильных телефонов (Экраны меньше 768px) */
@media (max-width: 768px) {
    .hero-cta {
        flex-direction: column !important; /* Выстраиваем кнопки в стек друг под другом */
        align-items: stretch !important;
        max-width: 100% !important;
        margin-top: 20px !important;
    }

    .phone-direct-link, .tg-mini-btn {
        width: 100% !important; /* Кнопки растягиваются на всю ширину экрана смартфона */
        padding: 15px 20px !important; /* Удобный размер для клика пальцем */
        font-size: 15px !important;
        border-radius: 10px !important;
    }
}

/* ========================================================
   МОБИЛЬНАЯ КАРУСЕЛЬ ДЛЯ БЛОКА "ЗНАКОМЫЕ ПРОБЛЕМЫ"
   ======================================================== */

@media (max-width: 768px) {
    /* 1. Находим контейнер, в котором лежат карточки (обычно это .problems-grid или .problems-container) */
    /* ЗАМЕНИ .problems-grid НА СВОЙ КЛАСС КОНТЕЙНЕРА, ЕСЛИ ОН НАЗЫВАЕТСЯ ИНАЧЕ */
    .problems-grid {
        display: flex !important; /* Перестраиваем из сетки в линию */
        overflow-x: auto !important; /* Включаем горизонтальный скролл */
        overflow-y: hidden !important;
        gap: 16px !important; /* Отступ между карточками */
        padding: 10px 20px 25px 20px !important; /* Отступы по бокам и снизу для теней */
        margin-left: -20px !important; /* Выносим скролл за пределы стандартных отступов контейнера */
        margin-right: -20px !important; /* Чтобы карточки уходили прямо в край экрана */
        
        /* Плавное залипание под палец */
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* 2. Настройка самих карточек внутри карусели */
    /* ЗАМЕНИ .problem-card НА СВОЙ КЛАСС КАРТОЧКИ */
    .problems-grid .problem-card {
        flex: 0 0 78% !important; /* Карточка занимает 78% экрана, следующая заманчиво выглядывает справа */
        scroll-snap-align: center !important; /* Центрируем карточку при прокрутке */
        margin-bottom: 0 !important; /* Убираем вертикальные отступы на мобильных */
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06) !important; /* Сохраняем мягкую тень */
    }

    /* 3. Скрываем системный некрасивый скроллбар */
    .problems-grid::-webkit-scrollbar {
        display: none !important;
    }
    .problems-grid {
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
    }
}

/* ========================================================
   МОБИЛЬНАЯ КАРУСЕЛЬ ДЛЯ БЛОКА "УСЛУГИ И ЦЕНЫ"
   ======================================================== */

@media (max-width: 768px) {
    /* 1. Контейнер, в котором лежат карточки услуг (обычно .prices-grid или .services-grid) */
    /* ЗАМЕНИ .services-grid НА СВОЙ КЛАСС КОНТЕЙНЕРА, ЕСЛИ ОН НАЗЫВАЕТСЯ ИНАЧЕ */
    .services-grid {
        display: flex !important; /* Перестраиваем плиточную сетку в одну линию */
        overflow-x: auto !important; /* Включаем горизонтальный скролл */
        overflow-y: hidden !important;
        gap: 16px !important; /* Расстояние между карточками цен */
        padding: 15px 20px 30px 20px !important; /* Отступы, чтобы тени и бейдж "ХИТ" не обрезались */
        margin-left: -20px !important; /* Выносим скролл к краям экрана смартфона */
        margin-right: -20px !important;
        
        /* Мягкое залипание карточек при пролистывании */
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* 2. Сами карточки услуг в карусели */
    /* ЗАМЕНИ .service-card НА СВОЙ КЛАСС КАРТОЧКИ (например, .price-card) */
    .services-grid .service-card {
        flex: 0 0 82% !important; /* Карточка занимает 82% ширины, следующая чуть выглядывает */
        scroll-snap-align: center !important; /* Центрируем карточку на экране мобильного */
        margin-bottom: 0 !important; /* Убираем нижний отступ, который был в сетке */
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important; /* Чтобы кнопка всегда была внизу карточки */
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important; /* Плотная красивая тень */
        height: auto !important; /* Позволяем карточке подстраиваться под контент */
    }

    /* Корректируем позиционирование хит-бейджа в карусели, чтобы он не улетал */
    .services-grid .service-card {
        position: relative !important;
    }

    /* 3. Полностью скрываем некрасивую полосу прокрутки */
    .services-grid::-webkit-scrollbar {
        display: none !important;
    }
    .services-grid {
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
    }
}

/* Новые стили для прикрепленных к отзывам фото */
.review-attached-photo {
    width: 100%;
    margin-top: 5px;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    height: 180px; /* Фиксированная высота для ровной сетки карточек */
}

.review-attached-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Фото заполнит блок без искажения пропорций */
    transition: transform 0.3s ease;
    display: block;
}

/* Эффект легкого зума при наведении на карточку отзыва */
.review-card:hover .review-attached-photo img {
    transform: scale(1.04);
}

/* Принудительная верстка для блока мастера */
.master-card-new.has-photo {
    display: flex;
    flex-direction: column; /* Фото и текст строго друг под другом */
    width: 100%;
    max-width: 400px;       /* Установите ширину по вашему желанию */
    margin: 0 auto;
}

.master-photo-wrapper {
    width: 100% !important; /* Фото на всю ширину блока */
    margin-bottom: -10px;
}

.master-photo-img {
    width: 100% !important;
    display: block;
    object-fit: cover;
}

.master-info-new {
    width: 100% !important; /* Текст растягивается под фото */
    padding: 0 10px;
	
}

@media (max-width: 768px) {
    .master-info-new {
     margin-top: 222px;   
    }

   .master-status-badge {
		position: absolute;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(22, 163, 74, 0.9);
    backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
   }
}


/* Контейнер списка услуг */
.services-list {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid #E5E7EB;
}

/* Каждая отдельная строка */
.service-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #F3F4F6;
    transition: background 0.3s;
}

.service-row:last-child {
    border-bottom: none;
}

.service-row:hover {
    background: #FAFAFA;
}

.service-name {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    color: var(--dark);
}

.service-name i {
    color: var(--primary-color);
    font-size: 20px;
    width: 25px;
    text-align: center;
}

.service-price-block {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.price-val {
    font-weight: 800;
    color: var(--success-color);
    font-size: 18px;
}

.service-btn-inline {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.service-btn-inline:hover {
    background: var(--primary-dark);
}

/* Адаптив для смартфонов */
@media (max-width: 600px) {
    .service-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .service-price-block {
        width: 100%;
        justify-content: space-between;
    }
}