/* 
* Гарант Мастер - Основные стили
* Автор: Разработчик сайта
* Версия: 2.0 - Маркетинговая оптимизация
*/

/* Психологически правильные цвета для доверия и конверсии */
:root {
    /* Основная палитра - синий (доверие) + зеленый (надежность) */
    --primary-color: #2563eb; /* Более насыщенный синий для доверия */
    --primary-hover: #1d4ed8;
    --secondary-color: #059669; /* Зеленый для надежности и успеха */
    --secondary-hover: #047857;
    
    /* Акцентные цвета */
    --accent-orange: #f59e0b; /* Оранжевый для призывов к действию */
    --accent-orange-hover: #d97706;
    --success-color: #10b981; /* Зеленый успеха */
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    
    /* Нейтральные цвета */
    --light-color: #f8fafc;
    --light-gray: #f1f5f9;
    --medium-gray: #64748b;
    --dark-color: #1e293b;
    --text-primary: #334155;
    --text-secondary: #64748b;
    
    /* Градиенты для привлекательности */
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #059669 100%);
    --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-trust: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    
    /* Тени и эффекты */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Переходы */
    --transition-fast: all 0.15s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* Радиусы */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Отступы */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
}

/* Убираем предотвращение мигания контента - оно вызывает проблемы */
html {
    visibility: visible;
    opacity: 1;
}

html.loaded {
    visibility: visible;
    opacity: 1;
}

/* Критические стили для быстрой загрузки */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.navbar {
    background-color: #ffffff !important;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-weight: 600;
    letter-spacing: 0.025em;
}

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

/* Загрузочный индикатор - улучшенный */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.page-loader.hidden {
    display: none;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(37, 99, 235, 0.1);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Общие стили с улучшенной типографикой */
body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.7;
    font-size: 16px;
    background-color: #ffffff;
    padding-top: 30px; /* Супер минимальный отступ для десктопа */
}

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

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

a {
    color: var(--primary-color);
    transition: var(--transition-fast);
    text-decoration: none;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

/* Улучшенные кнопки с психологией цвета */
.btn {
    transition: var(--transition-normal);
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 12px 24px;
    font-size: 16px;
    letter-spacing: 0.025em;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

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

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

.btn-secondary {
    background: var(--gradient-warm);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #d97706 0%, #dc2626 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    color: white;
}

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

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

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: var(--radius-sm);
}

/* Улучшенная навигация */
.navbar {
    padding: 20px 0;
    transition: var(--transition-normal);
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.navbar-brand {
    font-weight: 800;
    font-size: 28px;
    color: var(--dark-color) !important;
}

.navbar-brand span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 12px 20px;
    color: var(--text-primary);
    border-radius: var(--radius-md);
    margin: 0 4px;
    transition: var(--transition-fast);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
}

.navbar-toggler {
    border: none;
    padding: 8px;
    border-radius: var(--radius-md);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

/* Главный баннер с улучшенным дизайном */
.hero-section {
    padding: 20px 0 100px; /* Супер минимальный верхний отступ для десктопа */
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9) 0%, rgba(5, 150, 105, 0.8) 100%), 
                url('../images/photo/hero-bg.webp') no-repeat center center;
    background-size: cover;
    color: white;
    position: relative;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(245, 158, 11, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

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

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    font-weight: 900;
    line-height: 1.1;
    color: white !important;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.6), 0 2px 4px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.02em;
    text-transform: uppercase;
    position: relative;
    animation: heroGlow 3s ease-in-out infinite alternate;
}

/* Анимация свечения для заголовка */
@keyframes heroGlow {
    0% {
        text-shadow: 0 4px 8px rgba(0, 0, 0, 0.6), 0 2px 4px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.3);
    }
    100% {
        text-shadow: 0 4px 8px rgba(0, 0, 0, 0.6), 0 2px 4px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 255, 255, 0.5);
    }
}

.hero-content .lead {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

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

.hero-buttons .btn {
    padding: 16px 32px;
    font-weight: 600;
    font-size: 18px;
    border-radius: var(--radius-lg);
    min-width: 200px;
    text-align: center;
}

.hero-section .lead span {
    font-weight: 700;
    color: var(--accent-orange);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    border-bottom: 2px dashed rgba(255, 255, 255, 0.5);
    padding-bottom: 2px;
}

/* Секция услуг с улучшенным маркетинговым дизайном */
.services-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--light-color) 0%, #ffffff 100%);
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23e2e8f0" opacity="0.3"/><circle cx="75" cy="75" r="1" fill="%23e2e8f0" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
    pointer-events: none;
}

.service-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(37, 99, 235, 0.1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.service-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 30px;
    background: white;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}

.service-icon::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: var(--gradient-primary);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: scale(1.1);
}

.service-card:hover .service-icon::after {
    opacity: 0.2;
    transform: scale(1);
}

.service-icon i {
    color: var(--primary-color);
    font-size: 40px;
    z-index: 2;
    transition: var(--transition-normal);
}

.service-card:hover .service-icon i {
    color: white;
}

.service-card h5 {
    margin-bottom: 20px;
    color: var(--dark-color);
    font-weight: 700;
    font-size: 1.4rem;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 25px;
}

.service-card .btn {
    margin-top: auto;
}

/* Преимущества компании */
.advantage-item {
    padding: 20px 0;
    transition: var(--transition-normal);
}

.advantage-item:hover {
    transform: translateX(10px);
}

.advantage-icon {
    width: 60px;
    height: 60px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.advantage-item:hover .advantage-icon {
    background: var(--gradient-primary);
    border-color: transparent;
}

.advantage-icon i {
    color: var(--primary-color);
    font-size: 24px;
    transition: var(--transition-normal);
}

.advantage-item:hover .advantage-icon i {
    color: white;
}

/* Секция о нас */
.about-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.about-img {
    border-radius: 10px;
    overflow: hidden;
}

.about-img img {
    width: 100%;
    height: auto;
}

.about-content h2 {
    margin-bottom: 25px;
}

.about-content p {
    margin-bottom: 20px;
    color: #6c757d;
}

.about-list {
    margin-bottom: 25px;
}

.about-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #e9ecef;
}

.about-list li i {
    color: #0d6efd;
    margin-right: 10px;
}

/* Секция цен с маркетинговым дизайном */
.prices-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #ffffff 0%, var(--light-color) 100%);
    position: relative;
}

.prices-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(37, 99, 235, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.price-category-buttons {
    margin-bottom: 50px;
}

.price-category-buttons .btn {
    padding: 14px 28px;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
    border: 2px solid var(--primary-color);
    margin: 8px;
    position: relative;
    overflow: hidden;
}

.price-category-buttons .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: -1;
}

.price-category-buttons .btn:hover::before,
.price-category-buttons .btn.btn-primary::before {
    left: 0;
}

.price-category-buttons .btn-primary {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.price-category-buttons .btn-outline-primary {
    color: var(--primary-color);
    background: white;
}

.price-category-buttons .btn-outline-primary:hover {
    color: white;
}

.price-category-buttons .btn:not(:last-child) {
    margin-right: 10px;
}

.price-category-buttons .btn.active {
    font-weight: 600;
}

.price-table {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid rgba(37, 99, 235, 0.1);
    position: relative;
    transition: var(--transition-normal);
}

.price-table::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.price-table thead {
    background: var(--gradient-primary);
    color: white;
}

.price-table th, 
.price-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
    font-weight: 500;
    vertical-align: middle;
}

.price-table th {
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-table tbody tr {
    transition: var(--transition-fast);
}

.price-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%);
    transform: translateX(5px);
}

.price-table tbody tr:last-child td {
    border-bottom: none;
}

.price-table td:last-child {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 16px;
}

/* Секция портфолио с маркетинговым дизайном */
.portfolio-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--light-color) 0%, #ffffff 50%, var(--light-color) 100%);
    position: relative;
}

.portfolio-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(5, 150, 105, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.stats-item {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.stats-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.stats-item .counter {
    font-size: 48px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    display: block;
}

.stats-item p {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 600;
    margin: 0;
}

.portfolio-item {
    margin-bottom: 40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    background: white;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition-normal);
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

/* Секция отзывов */
.testimonials-section {
    padding: 80px 0;
}

/* Контейнер слайдера отзывов */
.testimonials-slider-container {
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

/* Слайдер отзывов */
.testimonials-slider {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
    padding: 0 60px;
}

/* Отдельный слайд */
.testimonial-slide {
    flex: 0 0 auto;
    width: 320px;
    max-width: 320px;
}

/* Компактная карточка отзыва */
.testimonial-card-compact {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

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

.testimonial-card-compact:before {
    content: '"';
    position: absolute;
    top: -5px;
    right: 15px;
    font-size: 60px;
    font-family: Georgia, serif;
    color: rgba(13, 110, 253, 0.05);
    line-height: 1;
}

/* Рейтинг звезд */
.testimonial-rating {
    display: flex;
    gap: 2px;
}

.testimonial-rating i {
    color: #ffc107;
    font-size: 14px;
}

/* Текст отзыва */
.testimonial-text {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    margin: 0;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

/* Автор отзыва */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
}

.testimonial-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-color: #e9ecef;
    flex-shrink: 0;
}

.testimonial-info {
    flex-grow: 1;
}

.testimonial-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.2;
}

.testimonial-date {
    font-size: 12px;
    color: #888;
    line-height: 1.2;
}

/* Кнопки навигации */
.testimonial-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #0d6efd;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.testimonial-nav-btn:hover {
    background: #0d6efd;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
}

.testimonial-prev {
    left: 10px;
}

.testimonial-next {
    right: 10px;
}

/* Индикаторы */
.testimonial-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #0d6efd;
    transform: scale(1.2);
}

.indicator:hover {
    background: #0a58ca;
}

/* Fallback для аватаров, если изображения не загружены */
.testimonial-avatar-img[src*="avatar"]:not([src$=".webp"]),
.testimonial-avatar-img[alt]:empty {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.testimonial-avatar-img[alt]:empty:before {
    content: attr(alt);
    font-size: 16px;
    font-weight: bold;
}

/* Адаптивность для больших экранов */
@media (min-width: 1200px) {
    .testimonial-card-compact {
        height: 260px;
        padding: 30px;
    }
    
    .testimonial-text {
        font-size: 15px;
        -webkit-line-clamp: 6;
    }
    
    .testimonial-name {
        font-size: 15px;
    }
    
    .testimonial-date {
        font-size: 13px;
    }
    
    .testimonial-avatar-img {
        width: 45px;
        height: 45px;
    }
}

/* Адаптивность для планшетов */
@media (max-width: 991px) {
    .testimonials-slider {
        padding: 0 50px;
    }
    
    .testimonial-slide {
        width: 300px;
        max-width: 300px;
    }
    
    .testimonial-card-compact {
        height: 220px;
        padding: 20px;
    }
    
    .testimonial-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

/* Адаптивность для мобильных */
@media (max-width: 767px) {
    .testimonials-slider {
        padding: 0 40px;
        gap: 15px;
    }
    
    .testimonial-slide {
        width: 280px;
        max-width: 280px;
    }
    
    .testimonial-card-compact {
        height: 240px;
        padding: 18px;
    }
    
    .testimonial-text {
        font-size: 13px;
        -webkit-line-clamp: 5;
    }
    
    .testimonial-name {
        font-size: 13px;
    }
    
    .testimonial-date {
        font-size: 11px;
    }
    
    .testimonial-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .testimonial-prev {
        left: 5px;
    }
    
    .testimonial-next {
        right: 5px;
    }
}

@media (max-width: 575px) {
    .testimonials-slider {
        padding: 0 35px;
    }
    
    .testimonial-slide {
        width: 260px;
        max-width: 260px;
    }
    
    .testimonial-card-compact {
        height: 250px;
        padding: 15px;
    }
    
    .testimonial-avatar-img {
        width: 35px;
        height: 35px;
    }
    
    .testimonial-author {
        gap: 10px;
    }
}

/* Секция контактов */
.contact-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

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

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

.contact-icon {
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background-color: white;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
    transition: var(--transition-normal);
}

.contact-info-item:hover .contact-icon {
    background-color: var(--primary-color);
}

.contact-icon i {
    font-size: 20px;
    color: var(--primary-color);
    transition: var(--transition-normal);
}

.contact-info-item:hover .contact-icon i {
    color: white;
}

.contact-details h5 {
    margin-bottom: 5px;
}

.contact-details p {
    color: #6c757d;
    margin: 0;
}

.contact-form .form-control {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.contact-form textarea.form-control {
    height: 140px;
}

/* Подвал */
.footer {
    padding: 50px 0 30px;
    background: linear-gradient(135deg, var(--dark-color) 0%, #0f172a 100%);
    color: white;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footer-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.5" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23footer-pattern)"/></svg>');
    pointer-events: none;
}

.footer .container {
    position: relative;
    z-index: 2;
}

.footer h5 {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
    display: inline-block;
}

.footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.footer i {
    color: var(--primary-color);
    margin-right: 8px;
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.footer p i {
    color: var(--primary-color);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-right: 10px;
    color: white;
    text-decoration: none;
    transition: var(--transition-normal);
}

.social-links a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

/* Кнопка наверх - скрыта на мобильных */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background-color: #0d6efd;
    color: white;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: block;
}

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

.back-to-top:hover {
    background-color: #0a58ca;
    color: white;
    transform: translateY(-3px);
}

/* Мобильная кнопка звонка */
.mobile-call-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #28a745;
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    text-decoration: none;
    font-size: 24px;
    transition: all 0.3s ease;
}

.mobile-call-btn:hover {
    background-color: #218838;
    color: white;
    transform: translateY(-3px);
    text-decoration: none;
}

/* Убираем проблемные анимации */
.animate-up {
    opacity: 1;
    transform: translateY(0);
}

.animate-up.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Медиа-запросы */
/* Большие экраны - увеличиваем отступы */
@media (min-width: 1400px) {
    body {
        padding-top: 50px; /* Небольшой отступ для больших экранов */
    }
    
    .hero-section {
        padding: 30px 0 120px; /* Небольшие отступы для больших экранов */
    }
}

@media (max-width: 991px) {
    body {
        padding-top: 90px; /* Увеличенный отступ для планшетов */
    }
    
    .page-title {
        padding-top: 30px;
    }
    
    .hero-content h1 {
        font-size: 36px;
        color: white !important;
        font-weight: 900 !important;
        text-transform: uppercase !important;
        text-shadow: 0 3px 6px rgba(0, 0, 0, 0.6) !important;
    }
    
    .navbar-collapse {
        background-color: white;
        padding: 15px;
        margin-top: 15px;
        border-radius: 5px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .hero-section {
        padding: 60px 0 80px; /* Уменьшенный верхний отступ, так как есть padding-top у body */
        background-attachment: scroll;
    }
    
    .services-section,
    .prices-section,
    .portfolio-section,
    .testimonials-section,
    .contact-section {
        padding: 60px 0;
    }
}

@media (max-width: 991px) {
    /* Скрываем кнопку наверх на планшетах и мобильных */
    .back-to-top {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
    
    /* Показываем мобильную кнопку звонка на планшетах и мобильных */
    .mobile-call-btn {
        display: flex;
    }
}

@media (max-width: 767px) {
    body {
        padding-top: 100px; /* Увеличенный отступ для мобильных */
    }
    
    .page-title {
        padding-top: 20px;
    }
    
    .hero-content h1 {
        font-size: 30px;
        color: white !important;
        font-weight: 900 !important;
        text-transform: uppercase !important;
        text-shadow: 0 3px 6px rgba(0, 0, 0, 0.6) !important;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .price-category-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .table-responsive {
        font-size: 14px;
    }
    
    .table td, .table th {
        padding: 10px 8px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin-right: 0;
    }
    
    .service-card {
        margin-bottom: 20px;
    }
    
    .counter-box {
        margin-bottom: 20px;
    }
    
    .testimonial-card {
        margin-bottom: 20px;
    }
    
    /* Скрываем кнопку телефона в навигации на мобильных */
    .navbar .btn {
        display: none !important;
    }
}

@media (max-width: 575px) {
    body {
        padding-top: 110px; /* Максимальный отступ для маленьких экранов */
    }
    
    .page-title {
        padding-top: 10px;
    }
    
    .hero-content h1 {
        font-size: 24px;
        color: white !important;
        font-weight: 900 !important;
        text-transform: uppercase !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6) !important;
        line-height: 1.2 !important;
    }
    
    .hero-section {
        padding: 40px 0 60px; /* Еще меньший верхний отступ */
    }
    
    .about-img {
        margin-bottom: 30px;
    }
    
    .contact-info-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin: 0 auto 15px;
    }
    
    .portfolio-item {
        margin-bottom: 20px;
    }
    
    .service-list-card {
        margin-bottom: 20px;
    }
    
    .advantage-icon {
        margin: 0 auto 15px;
    }
    
    .advantage-item {
        flex-direction: column;
        text-align: center;
    }
    
    .advantage-item .advantage-icon {
        margin-bottom: 15px;
        margin-right: 0;
    }
    
    .hero-section .lead {
        font-size: 16px;
    }
    
    .display-4 {
        font-size: 2rem;
        color: white !important;
        font-weight: 900 !important;
        text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5) !important;
    }
    
    .btn-group-lg .btn {
        font-size: 14px;
        padding: 8px 16px;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Стили для страницы услуг */
.page-title {
    padding-top: 40px; /* Уменьшенный отступ, так как есть padding-top у body */
}

.service-image {
    height: 300px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Стили для страницы контактов */
.contact-card {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

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

.contact-card .contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    transition: var(--transition-normal);
}

.contact-card:hover .contact-icon {
    background-color: var(--primary-color);
}

.contact-card .contact-icon i {
    color: var(--primary-color);
    font-size: 32px;
    transition: var(--transition-normal);
}

.contact-card:hover .contact-icon i {
    color: white;
}

.social-links-large a {
    transition: var(--transition-normal);
}

.social-links-large a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.map-container {
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* Стили для FAQ секции */
.accordion-button {
    font-weight: 500;
    padding: 1rem 1.25rem;
    background-color: white;
    border: none;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: rgba(0, 123, 255, 0.05);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 123, 255, 0.25);
}

.accordion-button::after {
    background-size: 1rem;
}

.accordion-body {
    padding: 1rem 1.25rem;
    background-color: white;
}

/* Стили для блока преимуществ на других страницах */
.advantage-icon.small {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-normal);
}

.advantage-icon.small i {
    color: var(--primary-color);
    transition: var(--transition-normal);
}

.advantage-item:hover .advantage-icon.small {
    background-color: var(--primary-color);
}

.advantage-item:hover .advantage-icon.small i {
    color: white;
}

/* Стили для карточек с услугами в портфолио */
.service-list-card {
    transition: all 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.service-list-card .card-title {
    border-bottom: 2px dashed rgba(13, 110, 253, 0.2);
    padding-bottom: 10px;
}

.service-list-card .list-unstyled li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.service-list-card .list-unstyled li:last-child {
    border-bottom: none;
}

/* Стили для контактной информации */
.contact-section .card {
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-section .card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Улучшения для hero-section */
.hero-section {
    background-position: center;
    background-attachment: fixed;
}

.hero-section .lead span {
    border-bottom: 2px dashed rgba(255, 255, 255, 0.5);
    padding-bottom: 2px;
}

/* CTA секция с маркетинговым дизайном */
.cta-section {
    background: var(--gradient-primary);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="cta-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23cta-pattern)"/></svg>');
    pointer-events: none;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn {
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: var(--radius-lg);
    background: white;
    color: var(--primary-color);
    border: 3px solid white;
    transition: var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-section .btn:hover {
    background: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

/* Улучшения для футера */
.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer ul li {
    margin-bottom: 8px;
    transition: var(--transition-fast);
}

.footer ul li:hover {
    transform: translateX(5px);
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-fast);
    display: inline-block;
    position: relative;
    padding-left: 15px;
}

.footer ul li a::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 10px;
    transition: var(--transition-fast);
}

.footer ul li a:hover {
    color: white;
    padding-left: 20px;
}

.footer ul li a:hover::before {
    color: var(--accent-orange);
}

.footer .text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0 1.5rem;
} 