/* Variables and Reset */
:root {
    --primary-color: #8B4513;
    --secondary-color: #D2B48C;
    --accent-color: #CD853F;
    --light-color: #F5F5DC;
    --dark-color: #3E2723;
    --text-color: #333;
    --white: #fff;
    --gray: #f8f9fa;
    --shadow: 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 ease;
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

.container {
    /*width: 90%;*/
    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: 1.5rem;
    color: var(--dark-color);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.lead {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 16px 32px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.cta-button::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 ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:active {
    transform: translateY(-1px);
}

/* Sections */
section {
    padding: clamp(4rem, 8vw, 8rem) 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* Hero Section */
.hero {
    background: 
        linear-gradient(135deg, rgba(139, 69, 19, 0.3), rgba(62, 39, 35, 0.5)),
        url('https://avatars.mds.yandex.net/i?id=1bb8010deca660ed9c7dd61b6398987d347d0afc-16204729-images-thumbs&n=13?&ixlib=rb-4.0.3&auto=format&fit=crop&w=1470&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    padding: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    /*max-width: 800px;*/
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

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

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    color: var(--white);
    line-height: 1.1;
    font-weight: 800;
}

.hero-content p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    max-width: 600px;
    margin: 0 auto 3rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    opacity: 0.95;
    line-height: 1.6;
}

.hero-content .cta-button {
    font-size: clamp(1rem, 2vw, 1.2rem);
    padding: clamp(14px, 3vw, 18px) clamp(28px, 4vw, 36px);
}

/* About Section */
.about-section {
    background-color: var(--white);
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--secondary-color), transparent);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text h2 {
    color: var(--dark-color);
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 2rem;
}

.about-image {
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    z-index: -1;
    opacity: 0.3;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
}

.about-image:hover img {
    transform: translate(-5px, -5px);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Contact CTA */
.contact-cta {
    background: 
        linear-gradient(135deg, var(--primary-color), var(--dark-color)),
        url('https://avatars.mds.yandex.net/i?id=1bb8010deca660ed9c7dd61b6398987d347d0afc-16204729-images-thumbs&n=13?&ixlib=rb-4.0.3&auto=format&fit=crop&w=1470&q=80');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    color: var(--white);
    text-align: center;
    position: relative;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.9), rgba(62, 39, 35, 0.95));
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: clamp(2rem, 4vw, 2.5rem);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 15px;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .hero {
        min-height: 80vh;
        padding-top: 80px;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-content h1 {
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        margin-bottom: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .about-image::before {
        display: none;
    }
    
    .about-image img {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .stat {
        padding: 1.25rem;
    }
    
    .section-title {
        margin-bottom: 3rem;
    }
    
    .section-title::after {
        width: 60px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 70vh;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .cta-button {
        width: 100%;
        max-width: 280px;
    }
    
    .about-text p {
        font-size: 1rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-2 {
    margin-top: 2rem;
}

/* Focus styles for accessibility */
.cta-button:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .hero {
        background: none !important;
        color: var(--dark-color) !important;
        min-height: auto;
    }
    
    .hero-content h1 {
        color: var(--dark-color) !important;
        text-shadow: none !important;
    }
    
    .cta-button {
        display: none;
    }
}