/* ===== Шрифты ===== */
@font-face {
    font-family: 'Kurale';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/kurale-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Kurale';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/kurale-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== Базовое ===== */
:root {
    --text: #333;
    --brown: #6d5d47;
    --dark: #3b2f22;
    --cream: #f3ead9;
    --accent: #d8a24a;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Kurale', Georgia, 'Times New Roman', serif;
    font-size: 1.125rem;
    line-height: 1.5;
    color: var(--text);
    background-image: url('../img/back.webp');
    background-repeat: repeat;
    background-attachment: fixed;
    overflow-x: hidden;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}
img { max-width: 100%; height: auto; }
a { color: var(--brown); }
h1, h2, h3 { line-height: 1.15; }

/* ===== Шапка ===== */
.site-header {
    padding: 2rem 0 1.5rem;
}
.header-row {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}
.header-text {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    line-height: 1.15;
}
.header-logo img {
    max-width: min(320px, 80vw);
}
.header-info p { margin: 0.2rem 0; font-weight: 700; }
.btn-phone, .btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.15rem;
    padding: 0.6rem 1.3rem;
    border-radius: 0.4rem;
    text-decoration: none;
    margin: 0.25rem 0;
    transition: filter 0.2s;
}
.btn-phone {
    background: #eae8dc;
    color: #333;
}
.btn-phone:hover { filter: brightness(0.95); }
.btn-whatsapp {
    background: #28a745;
    color: #fff;
}
.btn-whatsapp:hover { filter: brightness(0.92); }

/* ===== Навигация ===== */
.site-nav {
    background: rgba(59, 47, 34, 0.92);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 1.5rem;
    padding: 0.7rem 1rem;
}
.nav-row a {
    color: #f3ead9;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.2rem 0;
    border-bottom: 2px solid transparent;
}
.nav-row a:hover { border-bottom-color: var(--accent); }

/* ===== Параллакс ===== */
.parallax-section {
    height: 72vh;
    min-height: 320px;
    background-image: url('../img/morda.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* ===== Контент ===== */
.content-section {
    background: rgba(255, 255, 255, 0.82);
    padding: 2.5rem 1.5rem;
    margin: 0 auto 2rem;
}
.content-section h1 { font-size: clamp(2rem, 4vw, 3rem); }
.content-section h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); margin-top: 1.8rem; }
.lead { font-size: 1.3rem; }
.fig-left, .fig-right {
    margin: 0.5rem 1rem 1rem 0;
    max-width: min(340px, 45%);
}
.fig-left { float: left; }
.fig-right { float: right; margin: 0.5rem 0 1rem 1rem; }
.fig-left img, .fig-right img { border-radius: 0.6rem; }

/* ===== Тёмная секция (цены) ===== */
.dark-section {
    background: var(--dark);
    color: #f7f0e3;
    padding: 2.5rem 0;
    margin-bottom: 2rem;
}
.dark-section h2 { text-align: center; font-size: clamp(1.75rem, 3vw, 2.4rem); margin-top: 0; }
.dark-section p { font-size: 1.25rem; }
.price-note { text-align: center; font-size: 1.35rem; }
.price-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    justify-content: center;
    border-top: 1px solid rgba(255,255,255,0.25);
    border-bottom: 1px solid rgba(255,255,255,0.25);
    padding: 0.75rem 0;
    margin: 1rem 0;
}
.price-badges p { margin: 0; color: #ffd78a; font-weight: 700; }
.dark-section .warning { color: #ffd78a; }

/* ===== Галерея ===== */
.gallery-section {
    padding: 2.5rem 0 3rem;
}
.gallery-section h2 { text-align: center; font-size: clamp(1.75rem, 3vw, 2.4rem); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.75rem;
}
.gallery-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 0.5rem;
    cursor: zoom-in;
    transition: transform 0.25s, box-shadow 0.25s;
    display: block;
}
.gallery-grid img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

/* ===== Лайтбокс ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1.5rem;
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: min(1200px, 92vw);
    max-height: 86vh;
    border-radius: 0.4rem;
    object-fit: contain;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.6rem;
    width: 3rem;
    height: 3rem;
    cursor: pointer;
    line-height: 1;
}
.lightbox-close { top: 1rem; right: 1rem; font-size: 2.2rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox button:hover { background: rgba(255,255,255,0.3); }

/* ===== Контакты ===== */
.contact-section {
    text-align: center;
    padding: 2.5rem 0 0;
    background: rgba(255, 255, 255, 0.82);
}
.contact-section h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); margin-top: 0; }
.contact-line { font-size: 1.3rem; margin: 0.4rem 0; }
.map-link { display: block; margin-top: 1.5rem; }
.map-link img {
    width: 100%;
    height: 55vh;
    min-height: 260px;
    object-fit: cover;
    display: block;
}

/* ===== Футер ===== */
.site-footer {
    background: #26201a;
    color: #d8cbb4;
    padding: 1.2rem 0;
    font-size: 1rem;
}
.footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    text-align: center;
}
.site-footer a { color: #f0e6d0; }

/* ===== Кнопка наверх ===== */
.scroll-top {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.35);
    font-size: 1.4rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 90;
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: scale(1.1); }

/* ===== Адаптивность ===== */
@media (min-width: 768px) {
    .header-row {
        grid-template-columns: 1fr auto 1fr;
        text-align: left;
    }
    .header-text { text-align: left; }
    .header-info { text-align: right; }
    .content-section { padding: 3rem 2.5rem; }
}
@media (max-width: 767px) {
    .parallax-section { background-attachment: scroll; height: 55vh; }
    .fig-left, .fig-right { float: none; max-width: 100%; margin: 0.5rem 0 1rem; }
    html { scroll-padding-top: 115px; }
}
