/* ====== Reset & Base ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #8b6f47;
    --color-primary-dark: #6b5435;
    --color-accent: #c9a87c;
    --color-dark: #2c2418;
    --color-text: #3a342a;
    --color-muted: #6b6357;
    --color-bg: #faf7f2;
    --color-card: #ffffff;
    --color-border: #e8e1d5;
    --shadow-sm: 0 2px 8px rgba(44, 36, 24, 0.06);
    --shadow-md: 0 8px 24px rgba(44, 36, 24, 0.1);
    --shadow-lg: 0 20px 50px rgba(44, 36, 24, 0.15);
    --radius: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

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

a:hover {
    color: var(--color-primary-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ====== Header ====== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: background var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-dark);
}

.logo-mark {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text strong {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: var(--color-dark);
}

.logo-text small {
    font-size: 12px;
    color: var(--color-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    gap: 32px;
}

.main-nav a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 6px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition);
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--shadow-sm);
}

.header-phone:hover {
    color: #fff;
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.phone-icon {
    font-size: 18px;
}

/* ====== Hero ====== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
}

.hero-image {
    position: absolute;
    inset: 0;
    background-image: url('main-picture.jpg');
    background-size: cover;
    background-position: center;
    animation: zoomSlow 20s ease-in-out infinite alternate;
}

@keyframes zoomSlow {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(44, 36, 24, 0.7) 0%,
        rgba(44, 36, 24, 0.4) 50%,
        rgba(139, 111, 71, 0.5) 100%
    );
}

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

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero h1 span {
    color: var(--color-accent);
    font-style: italic;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.4rem);
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--color-primary-dark);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-ghost:hover {
    background: #fff;
    color: var(--color-dark);
    border-color: #fff;
    transform: translateY(-3px);
}

/* ====== Sections ====== */
section {
    padding: 100px 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 60px;
}

.eyebrow {
    display: inline-block;
    color: var(--color-primary);
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 12px;
}

.section-heading h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-dark);
    font-weight: 700;
    line-height: 1.2;
}

/* ====== About ====== */
.about {
    background: var(--color-card);
}

.about .lead {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
    font-size: 18px;
    color: var(--color-muted);
    line-height: 1.8;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.feature {
    text-align: center;
    padding: 40px 28px;
    background: var(--color-bg);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}

.feature:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.feature-icon {
    font-size: 36px;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.feature h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.feature p {
    color: var(--color-muted);
    font-size: 15px;
}

/* ====== Gallery ====== */
.gallery {
    background: var(--color-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.gallery-item {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item::after {
    content: '\002B';
    position: absolute;
    inset: 0;
    background: rgba(44, 36, 24, 0.4);
    color: #fff;
    font-size: 36px;
    display: grid;
    place-items: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ====== Contacts ====== */
.contacts {
    background: var(--color-card);
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    background: var(--color-bg);
    padding: 50px 32px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.contact-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 28px;
    box-shadow: var(--shadow-sm);
}

.contact-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.contact-card p {
    font-size: 18px;
    margin-bottom: 6px;
    font-weight: 500;
}

.contact-card p a {
    color: var(--color-dark);
}

.contact-card p a:hover {
    color: var(--color-primary);
}

.contact-card small {
    color: var(--color-muted);
    font-size: 14px;
}

/* ====== Map ====== */
.map-section {
    width: 100%;
    height: 480px;
    overflow: hidden;
    padding: 0;
    line-height: 0;
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    filter: grayscale(15%);
    transition: filter var(--transition);
}

.map-section iframe:hover {
    filter: grayscale(0);
}

/* ====== Footer ====== */
.site-footer {
    background: var(--color-dark);
    color: #c9c1b3;
    padding: 60px 0 30px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.4fr;
    gap: 40px;
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-brand strong {
    font-family: 'Playfair Display', serif;
    color: #fff;
    font-size: 18px;
}

.footer-brand span {
    font-size: 14px;
    color: #a39a8b;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
}

.footer-contact a {
    color: var(--color-accent);
}

.footer-contact a:hover {
    color: #fff;
}

.footer-credits {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: #a39a8b;
    text-align: right;
}

.footer-credits a {
    color: var(--color-accent);
}

.footer-credits a:hover {
    color: #fff;
}

/* ====== Lightbox ====== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 12, 8, 0.95);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: background var(--transition);
    display: grid;
    place-items: center;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* ====== Responsive ====== */
@media (max-width: 900px) {
    .main-nav {
        display: none;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand,
    .footer-contact,
    .footer-credits {
        text-align: center;
        align-items: center;
    }
    section {
        padding: 70px 0;
    }
}

@media (max-width: 600px) {
    .header-inner {
        height: 64px;
    }
    .logo-mark {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    .logo-text strong {
        font-size: 15px;
    }
    .logo-text small {
        font-size: 10px;
    }
    .header-phone {
        padding: 8px 14px;
        font-size: 12px;
    }
    .hero {
        min-height: 520px;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .map-section {
        height: 360px;
    }
}
