/* ===============================
   DOMAIN - CSS STYLES
   Цветовая палитра:
   - Основной фон: #4B3B47 (глубокий тёплый серо-сливовый)
   - Акцентный: #FF6F61 (яркий кораллово-оранжевый)
   - Второстепенный фон: #FCE9E4 (мягкий бежево-розовый)
   - Текст: #FAFAFA (молочно-белый), #2E2E2E (графитовый)
   - Декоративные элементы: #D4AF37 (золотисто-песочный)
   =============================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #2E2E2E;
    background-color: #FCE9E4;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    white-space: nowrap;
}

.btn-primary {
    background-color: #FF6F61;
    color: #FAFAFA;
    box-shadow: 0 4px 15px rgba(255, 111, 97, 0.3);
}

.btn-primary:hover {
    background-color: #e55a4e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 111, 97, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: #FF6F61;
    border: 2px solid #FF6F61;
}

.btn-secondary:hover {
    background-color: #FF6F61;
    color: #FAFAFA;
}

.btn-cookie {
    background-color: #D4AF37;
    color: #2E2E2E;
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-cookie:hover {
    background-color: #b8941f;
}

/* Header */
.header {
    background-color: #4B3B47;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(75, 59, 71, 0.3);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: #FF6F61;
    text-decoration: none;
    letter-spacing: -1px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #FAFAFA;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #FF6F61;
}

.nav-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.phone-link {
    color: #FAFAFA;
    text-decoration: none;
    font-weight: 500;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: #FAFAFA;
    transition: all 0.3s ease;
}

/* Main Content */
.main {
    padding-top: 80px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #4B3B47 0%, #5a4a56 100%);
    color: #FAFAFA;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::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="4" height="4" patternUnits="userSpaceOnUse"><circle cx="2" cy="2" r="0.5" fill="%23FCE9E4" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #FF6F61, #D4AF37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Section Styles */
.section {
    padding: 80px 0;
    position: relative;
}

.section-dark {
    background-color: #4B3B47;
    color: #FAFAFA;
}

.section-light {
    background-color: #FCE9E4;
    color: #2E2E2E;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    margin-bottom: 1rem;
    color: inherit;
}

.section-subtitle {
    font-size: 1.125rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    color: #D4AF37;
    margin-bottom: 1.5rem;
}

.about-image {
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background-color: #FAFAFA;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: #FF6F61;
}

.service-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-image img {
    opacity: 1;
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: #FF6F61;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 130px auto 20px;
    font-size: 2rem;
    color: #FAFAFA;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(255, 111, 97, 0.3);
}

.service-card h4 {
    color: #4B3B47;
    margin-bottom: 15px;
}

.service-card p {
    color: #2E2E2E;
    margin-bottom: 20px;
}

/* Advantages Section */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.advantage-item {
    text-align: center;
    padding: 30px 20px;
}

.advantage-icon {
    width: 60px;
    height: 60px;
    background-color: #D4AF37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: #2E2E2E;
}

.advantage-item h4 {
    margin-bottom: 15px;
}

/* Form Section */
.form-section {
    background: linear-gradient(135deg, #FF6F61 0%, #e55a4e 100%);
    color: #FAFAFA;
    padding: 80px 0;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    color: #2E2E2E;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h3 {
    color: #4B3B47;
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4B3B47;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #FAFAFA;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #FF6F61;
    box-shadow: 0 0 0 3px rgba(255, 111, 97, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 5px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-group a {
    color: #FF6F61;
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.testimonial-card {
    background-color: #FAFAFA;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: #2E2E2E;
    font-size: 1.1rem;
}

.testimonial-author {
    font-weight: 600;
    color: #4B3B47;
}

.testimonial-company {
    color: #FF6F61;
    font-size: 0.9rem;
}

/* Contact Section Styles */
.contact-section {
    position: relative;
    margin-bottom: 0;
}

.contact-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #D4AF37 50%, transparent 100%);
}

.contact-info .contact-link {
    color: #FAFAFA !important;
    text-decoration: none;
    font-weight: 600;
}

.contact-info .contact-link:hover {
    color: #FF6F61 !important;
    text-decoration: underline;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background-color: #4B3B47;
    color: #FAFAFA;
    padding: 60px 0 20px;
    border-top: 3px solid #D4AF37;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    color: #FF6F61;
    margin-bottom: 20px;
}

.footer-subtitle {
    color: #D4AF37;
    margin-bottom: 15px;
}

.footer-description {
    margin-bottom: 20px;
    opacity: 0.9;
}

.footer-contact p {
    margin-bottom: 8px;
}

.footer-contact a {
    color: #FAFAFA;
    text-decoration: none;
}

.footer-contact a:hover {
    color: #FF6F61;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #FAFAFA;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: #FF6F61;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #4B3B47;
    color: #FAFAFA;
    padding: 20px;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-notice.hidden {
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    flex: 1;
}

.cookie-content a {
    color: #FF6F61;
    text-decoration: none;
}

.cookie-content a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* CSS-only Mobile Menu */
.menu-toggle {
    display: none;
}

.nav-contact-mobile {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: #4B3B47;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    #menu-toggle:checked ~ .nav-menu {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .nav-contact {
        display: none;
    }
    
    .nav-contact-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .nav-contact-mobile .phone-link {
        color: #FAFAFA;
        text-decoration: none;
        font-weight: 500;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    #menu-toggle:checked ~ .nav-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    #menu-toggle:checked ~ .nav-toggle span:nth-child(2) {
        opacity: 0;
    }
    
    #menu-toggle:checked ~ .nav-toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .nav-contact {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 30px 20px;
        margin: 0 15px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 60px 0;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .service-card,
    .form-container {
        padding: 25px 15px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* Content Page Styles */
.content-page {
    padding: 120px 0 80px;
    background-color: #FCE9E4;
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #FAFAFA;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: pageLoad 0.6s ease-out;
}

@keyframes pageLoad {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-page h1 {
    color: #4B3B47;
    margin-bottom: 30px;
    text-align: center;
}

.content-page h2 {
    color: #FF6F61;
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-page h3 {
    color: #4B3B47;
    margin-top: 25px;
    margin-bottom: 10px;
}

.content-page p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.content-page ul,
.content-page ol {
    margin-bottom: 15px;
    padding-left: 30px;
}

.content-page li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.back-to-home {
    text-align: center;
    margin-top: 40px;
}

/* Policy Pages - Dark text links and contact info */
.content-page a {
    color: #2E2E2E !important;
    text-decoration: none;
    font-weight: 600;
}

.content-page a:hover {
    text-decoration: underline;
    color: #4B3B47 !important;
}

.content-page a[href^="tel:"],
.content-page a[href^="mailto:"] {
    color: #2E2E2E !important;
    font-weight: 600;
}

.content-page a[href^="tel:"]:hover,
.content-page a[href^="mailto:"]:hover {
    color: #4B3B47 !important;
}

/* Exception pour les boutons */
.content-page .btn {
    color: #FAFAFA !important;
}

.content-page .btn:hover {
    color: #FAFAFA !important;
    text-decoration: none !important;
}

.content-page .btn-secondary {
    color: #FF6F61 !important;
}

.content-page .btn-secondary:hover {
    color: #FAFAFA !important;
}

@media (max-width: 768px) {
    .content-container {
        padding: 30px 20px;
        margin: 0 15px;
    }
    
    .content-page {
        padding: 100px 0 60px;
    }
}
