/* ============================================ */
/*    Современный дизайн для сайта услуг        */
/* ============================================ */

:root {
    /* Основные цвета */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --success-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --accent: #4facfe;
    --success: #43e97b;
    --warning: #f5576c;
    --dark: #1a202c;
    --light: #f7fafc;
    
    /* Тени */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);
    
    /* Анимации */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================ */
/*    Общие стили                               */
/* ============================================ */

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

/* ============================================ */
/*    Навигация                                 */
/* ============================================ */

.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 600;
    color: #1a202c !important;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 50px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-gradient);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 60%;
}

.nav-link:hover {
    color: var(--primary) !important;
    background: rgba(102, 126, 234, 0.05);
}

.nav-link.active {
    color: var(--primary) !important;
    background: rgba(102, 126, 234, 0.08);
}

/* ============================================ */
/*    Герой-секция                              */
/* ============================================ */

.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%),
                url('../img/gallery/hero-bg.jpg') center/cover;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: patternMove 60s linear infinite;
}

@keyframes patternMove {
    from { background-position: 0 0; }
    to { background-position: 100% 100%; }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: rgba(255,255,255,0.95);
    margin-top: 1.5rem;
    animation: fadeInUp 1s ease-out 0.2s backwards;
    line-height: 1.7;
}

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

/* Анимация для кнопок в герое */
.hero-section .btn {
    animation: fadeInUp 1s ease-out 0.4s backwards;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-section .btn:nth-child(2) {
    animation-delay: 0.5s;
}

/* Секция с призывом к действию */
section[style*="primary-gradient"] {
    padding: 5rem 0;
}

section[style*="primary-gradient"] h2 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
}

section[style*="primary-gradient"] p {
    font-size: 1.25rem;
    line-height: 1.7;
}

/* ============================================ */
/*    Карточки услуг                            */
/* ============================================ */

.service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    height: 100%;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.25);
}

.service-card .card-body {
    padding: 2.5rem;
    position: relative;
    z-index: 2;
}

.service-icon {
    width: 90px;
    height: 90px;
    background: var(--primary-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    color: white;
    margin-bottom: 1.5rem;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.service-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
    line-height: 1.3;
}

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

.service-card .text-muted {
    color: #4a5568 !important;
    font-size: 1.05rem;
    line-height: 1.6;
}

.service-price {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 1.25rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ============================================ */
/*    Кнопки                                    */
/* ============================================ */

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    background: var(--primary-gradient);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    position: relative;
    overflow: hidden;
}

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

.btn-outline-primary:hover::before {
    left: 0;
}

.btn-outline-primary:hover {
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* ============================================ */
/*    Формы и модальные окна                    */
/* ============================================ */

.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8f9fa;
    color: #1a202c;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 6px rgba(102, 126, 234, 0.12);
    outline: none;
    background: white;
    transform: translateY(-2px);
    color: #1a202c;
}

.form-control::placeholder {
    color: #a0aec0;
}

.form-label {
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control:focus + .form-label {
    color: var(--primary);
}

select.form-control {
    color: #1a202c;
    background-color: #f8f9fa;
    cursor: pointer;
}

select.form-control option {
    color: #1a202c;
    background-color: white;
    padding: 0.5rem;
}

/* Модальные окна */
.modal-content {
    border: none;
    border-radius: 25px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.25);
    overflow: hidden;
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
    
.modal-header {
    background: var(--primary-gradient);
    border: none;
    padding: 1.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.modal-title {
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

.modal-body {
    padding: 2rem;
    background: white;
    color: #1a202c;
}

.btn-close {
    filter: brightness(0) invert(1);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.btn-close:hover {
    transform: rotate(90deg);
}

/* ============================================ */
/*    Секция контактов                          */
/* ============================================ */

.contact-section {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite;
}

.contact-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(20px, 30px) scale(1.05);
    }
}

.contact-section h6 {
    color: var(--primary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.contact-section h2 {
    font-size: 2.5rem;
    color: white !important;
    font-weight: 800;
}

.contact-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    margin-bottom: 1rem;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
    position: relative;
    z-index: 1;
}

.contact-card:hover .contact-icon {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.5);
}

.contact-card h5 {
    color: white !important;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: rgba(255,255,255,0.9) !important;
    font-size: 1.1rem;
}

.contact-link {
    color: rgba(255,255,255,0.95);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.contact-link:hover::after {
    width: 100%;
}

.contact-link:hover {
    color: white;
}

/* ============================================ */
/*    Анимации появления                        */
/* ============================================ */

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

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

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Плавное появление элементов при скролле */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Задержка для элементов в ряду */
.reveal:nth-child(1) { transition-delay: 0.1s; }
.reveal:nth-child(2) { transition-delay: 0.2s; }
.reveal:nth-child(3) { transition-delay: 0.3s; }
.reveal:nth-child(4) { transition-delay: 0.4s; }

/* ============================================ */
/*    Секция "Почему выбирают нас"              */
/* ============================================ */

#about {
    background: white;
}

#about h6 {
    color: var(--primary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

#about h2 {
    font-size: 2.5rem;
    color: #1a202c;
    font-weight: 800;
    line-height: 1.2;
}

#about .d-flex {
    padding: 1.5rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

#about .d-flex:hover {
    background: #f7fafc;
    transform: translateX(10px);
}

#about h5 {
    color: #1a202c !important;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

#about p {
    color: #4a5568 !important;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

#about .service-icon {
    width: 70px !important;
    height: 70px !important;
    font-size: 1.75rem !important;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

#about .d-flex:hover .service-icon {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

#about .ms-3 {
    margin-left: 1.5rem !important;
}

/* ============================================ */
/*    Уведомления (Toast)                       */
/* ============================================ */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: none;
    margin-bottom: 10px;
}

.toast-success {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.toast-error {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

/* ============================================ */
/*    Footer                                    */
/* ============================================ */

footer {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    padding: 3rem 0 1.5rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.footer-logo {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

/* Ссылки в footer */
footer a {
    position: relative;
    transition: all 0.3s ease;
}

footer a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--primary) !important;
    padding-left: 10px;
}

footer a:hover::before {
    left: 0;
    opacity: 1;
}

/* ============================================ */
/*    Общие улучшения                           */
/* ============================================ */

/* Плавная прокрутка для всей страницы */
html {
    scroll-behavior: smooth;
}

/* Убираем стандартную прокрутку */
body {
    font-family: 'Montserrat', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Выделение текста */
::selection {
    background: rgba(102, 126, 234, 0.3);
    color: var(--dark);
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 10px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gradient);
}

/* Анимация при наведении на изображения */
img {
    transition: transform 0.3s ease;
}

.img-fluid:hover {
    transform: scale(1.02);
}

/* Загрузчик */
.loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(102, 126, 234, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ============================================ */
/*    Адаптивность                              */
/* ============================================ */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .btn-lg {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

/* ============================================ */
/*    Общие стили для читаемости текста         */
/* ============================================ */

/* Увеличиваем базовый размер шрифта */
html {
    font-size: 17px; /* Было 16px */
}

/* Улучшаем читаемость всего текста */
body {
    color: #1a202c;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    color: #1a202c;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

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.1rem; }

/* Текст по умолчанию */
p {
    color: #4a5568;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Ссылки */
a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary);
}

/* Белый текст на тёмном фоне */
.text-white-50 {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 1.05rem;
}

.text-white {
    color: white !important;
}

/* Улучшаем контраст */
.fw-bold, .fw-bolder {
    color: #1a202c;
}

/* Карточки преимуществ */
.contact-card h5 {
    color: white !important;
    font-size: 1.3rem;
}

.contact-card p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.05rem;
}

/* Преимущества секция */
#about h5 {
    color: #1a202c !important;
    font-size: 1.5rem;
}

#about p {
    color: #4a5568 !important;
    font-size: 1.1rem;
}

/* Увеличиваем шрифт в навигации */
.nav-link {
    font-size: 1.05rem;
}

/* Увеличиваем шрифт в кнопках */
.btn {
    font-size: 1.05rem;
    padding: 0.875rem 2rem;
}

.btn-lg {
    padding: 1.1rem 2.5rem;
    font-size: 1.15rem;
}

