/* ===== RESET И БАЗОВЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2B2B2B;
    background-color: #FFF5E6;
    overflow-x: hidden;
}

/* ===== ЦВЕТОВАЯ ПАЛИТРА (CSS ПЕРЕМЕННЫЕ) ===== */
:root {
    --primary-bg: #3B1C32;        /* глубокий тёмно-сливовый */
    --accent-coral: #FF6F61;       /* яркий коралловый */
    --accent-turquoise: #4DD0E1;   /* светлый бирюзовый */
    --secondary-bg: #FFF5E6;       /* мягкий кремовый */
    --text-primary: #2B2B2B;       /* тёмно-графитовый */
    --text-light: #FFFFFF;         /* белый */
    --gradient-primary: linear-gradient(135deg, var(--accent-coral), var(--accent-turquoise));
    --gradient-dark: linear-gradient(135deg, var(--primary-bg), #4A2339);
    --shadow-soft: 0 10px 30px rgba(59, 28, 50, 0.1);
    --shadow-strong: 0 20px 60px rgba(59, 28, 50, 0.2);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== ТИПОГРАФИКА ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    margin-bottom: 1rem;
    line-height: 1.7;
}

a {
    color: var(--accent-coral);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-turquoise);
}

/* ===== КОМПОНЕНТЫ - КНОПКИ ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    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: var(--text-light);
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
    color: var(--text-light);
}

.btn-secondary {
    background: var(--primary-bg);
    color: var(--text-light);
    border: 2px solid var(--accent-coral);
}

.btn-secondary:hover {
    background: var(--accent-coral);
    color: var(--text-light);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-outline:hover {
    background: var(--text-light);
    color: var(--primary-bg);
}

/* ===== HEADER И НАВИГАЦИЯ ===== */
.header {
    background: var(--gradient-dark);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(59, 28, 50, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-coral);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-coral);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== CONTENU PRINCIPAL ===== */
#main-content {
    margin-top: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
    position: relative;
}

.section:nth-child(even) {
    background: var(--primary-bg);
    color: var(--text-light);
}

.section:nth-child(even) .card {
    background: var(--text-light);
    color: var(--text-primary);
}

.section:nth-child(even) .team-member {
    background: var(--text-light);
    color: var(--text-primary);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transform: translateX(-50%);
}

/* ===== HERO SECTION ===== */
.hero {
    background: var(--gradient-dark);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--accent-coral), transparent);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 2;
    position: relative;
}

.hero-text h1 {
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-strong);
    transition: var(--transition);
}

.hero-image:hover {
    transform: scale(1.05) rotate(2deg);
}

/* ===== GRILLE ET CARTES ===== */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
    background: var(--text-light);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.card-dark {
    background: var(--primary-bg);
    color: var(--text-light);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* ===== FORMULAIRES ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--text-light);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-coral);
    box-shadow: 0 0 0 3px rgba(255, 111, 97, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--accent-coral);
}

.form-checkbox label {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.form-error {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ===== SERVICES GRID ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
    align-items: stretch;
}

.service-card {
    background: var(--text-light);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    transition: var(--transition);
    border: 1px solid rgba(59, 28, 50, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.service-card .btn {
    margin-top: auto;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    color: var(--text-light);
}

/* ===== TESTIMONIALS SLIDER ===== */
.testimonials-container {
    overflow: hidden;
    margin-top: 3rem;
}

.testimonials-slider {
    display: flex;
    animation: slide 20s infinite linear;
}

.testimonial-card {
    flex: 0 0 400px;
    background: var(--text-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-right: 2rem;
    box-shadow: var(--shadow-soft);
    text-align: center;
}

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.testimonial-rating {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 1rem;
    color: #ffa500;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-bg);
}

/* ===== TEAM SECTION ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.team-member {
    text-align: center;
    background: var(--text-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--accent-coral);
}

.team-name {
    color: var(--primary-bg);
    margin-bottom: 0.5rem;
}

.team-role {
    color: var(--accent-coral);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ===== CONTACT SECTION ===== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    background: var(--primary-bg);
    color: var(--text-light);
    padding: 3rem;
    border-radius: var(--border-radius);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-coral);
    flex-shrink: 0;
}

.map-responsive {
    position: relative;
    width: 100%;
    height: 350px;
    margin-top: 2rem;
}

.map-responsive iframe {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gradient-dark);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-title {
    color: var(--accent-coral);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-light);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-coral);
}

.company-description {
    opacity: 0.8;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent-coral);
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-copyright {
    opacity: 0.6;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-bg);
    color: var(--text-light);
    padding: 1.5rem;
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-text h4 {
    margin-bottom: 0.5rem;
    color: var(--accent-coral);
}

.cookie-text p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-shrink: 0;
}

.cookie-link {
    color: var(--accent-turquoise);
    text-decoration: underline;
    font-size: 0.9rem;
}

/* ===== ABOUT SECTION - STATISTIQUES ===== */
.about-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-item h4 {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-item p {
    font-size: 1rem;
    opacity: 0.8;
    margin: 0;
    font-weight: 500;
}

/* ===== NAVIGATION MOBILE ===== */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--gradient-dark);
    transform: translateY(-100%);
    transition: var(--transition);
    z-index: 999;
    padding: 2rem;
    box-shadow: var(--shadow-strong);
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.mobile-menu-links .nav-link {
    font-size: 1.25rem;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 300px;
    text-align: center;
}

.mobile-menu-links .nav-link:hover {
    background: rgba(255, 111, 97, 0.2);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== ORDER FORM CONTAINER ===== */
.order-form-container {
    background: var(--text-light);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(59, 28, 50, 0.1);
}

.order-form {
    max-width: 100%;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablettes (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
}

/* Mobiles (jusqu'à 767px) */
@media (max-width: 767px) {
    .nav-menu {
        display: none;
    }
    
    .nav-cta {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .stat-item h4 {
        font-size: 2.5rem;
    }
    
    .hero {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .hero-content {
        gap: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .testimonial-card {
        flex: 0 0 300px;
    }
}

/* Très petits écrans (jusqu'à 480px) */
@media (max-width: 480px) {
    .nav-content {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .team-photo {
        width: 150px;
        height: 150px;
    }
}

/* ===== ANIMATIONS ET EFFETS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Classes d'animation pour JavaScript optionnel */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.6s ease-out forwards;
}

.fade-in-right {
    animation: fadeInRight 0.6s ease-out forwards;
}

/* ===== ACCESSIBILITÉ ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles pour accessibilité */
:focus-visible {
    outline: 2px solid var(--accent-coral);
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .header,
    .cookie-banner,
    .btn,
    .nav-menu,
    .mobile-menu-toggle {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .section {
        page-break-inside: avoid;
    }
}
