/* ===== Тёплая и светлая палитра ===== */
:root {
    --bg: #fdf7ec;
    --bg-soft: #f9eeda;
    --card: #fffdf6;
    --ink: #3f3223;
    --ink-soft: #6b5943;
    --accent: #c98a4b;
    --accent-dark: #a96e35;
    --gold: #e3b374;
    --line: #ead9bd;
    --shadow: 0 14px 34px rgba(150, 105, 55, 0.16);
    --shadow-lg: 0 24px 60px rgba(150, 105, 55, 0.22);
    --radius: 18px;
    --font-display: "Cormorant Garamond", Georgia, serif;
    --font-body: "Manrope", "Segoe UI", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

/* Защита от горизонтального переполнения на мобильных */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}
iframe { max-width: 100%; }
img { -webkit-tap-highlight-color: transparent; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { width: min(1160px, 92%); margin: 0 auto; }

/* ===== Навигация ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(253, 247, 236, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gold), var(--accent));
    color: #fff;
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
}
.brand-text { font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.15; }

.nav { display: flex; gap: 28px; }
.nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-soft);
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
}
.nav a:hover { color: var(--accent-dark); border-color: var(--gold); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; }
.hero::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 80% 15%, rgba(227, 179, 116, 0.35), transparent 45%),
        radial-gradient(circle at 12% 80%, rgba(233, 200, 150, 0.4), transparent 50%);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    width: min(1180px, 92%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
    align-items: center;
    min-height: calc(100vh - 76px);
    padding: 48px 0;
}
.hero-photo {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
    background: var(--bg-soft);
}
.hero-photo::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(200deg, rgba(255,255,255,0.18), transparent 45%);
    pointer-events: none;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.hero-text .eyebrow {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent-dark);
    background: rgba(227, 179, 116, 0.25);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 22px;
}
.hero-text h1 {
    font-family: var(--font-display);
    font-size: clamp(44px, 6vw, 74px);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 18px;
}
.hero-sub {
    font-size: 18px;
    color: var(--ink-soft);
    max-width: 46ch;
    margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
    display: inline-block;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary { background: linear-gradient(135deg, var(--gold), var(--accent)); color: #fff; box-shadow: 0 8px 20px rgba(201, 138, 75, 0.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(201, 138, 75, 0.5); }
.btn-outline { border: 1.5px solid var(--accent); color: var(--accent-dark); background: transparent; }
.btn-outline:hover { background: rgba(227, 179, 116, 0.15); }

/* ===== Sections ===== */
.section { padding: 88px 0; }
.section:nth-child(even) { background: var(--bg-soft); }

.section-title {
    font-family: var(--font-display);
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}
.section-intro { text-align: center; color: var(--ink-soft); margin-bottom: 44px; max-width: 60ch; margin-left: auto; margin-right: auto; }

/* ===== Об авторе ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: start;
}
.about-text p { margin-bottom: 16px; color: var(--ink-soft); font-size: 16.5px; }
.about-facts {
    list-style: none;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 30px;
}
.about-facts li {
    padding: 12px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 15.5px;
    color: var(--ink-soft);
}
.about-facts li:last-child { border-bottom: 0; }
.about-facts strong { display: block; color: var(--accent-dark); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 3px; }

/* ===== Альбомы ===== */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.album-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--line);
    background: var(--card);
    box-shadow: var(--shadow);
    transition: transform .25s, box-shadow .25s;
}
.album-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.album-thumb { aspect-ratio: 4 / 3; overflow: hidden; }
.album-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.album-card:hover .album-thumb img { transform: scale(1.06); }
.album-body { padding: 18px 20px 22px; }
.album-body h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.album-body p { color: var(--ink-soft); font-size: 14.5px; }
.album-count { font-size: 12.5px; color: var(--accent-dark); font-weight: 600; letter-spacing: 0.5px; }

/* ===== Видео ===== */
.video-player { max-width: 900px; margin: 0 auto; }
.video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    background: #1c160f;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster {
    position: absolute; inset: 0;
    cursor: pointer;
    overflow: hidden;
}
.video-poster > img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.video-poster:hover > img { transform: scale(1.03); }
.video-poster-overlay {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; gap: 8px;
    align-items: center; justify-content: center;
    text-align: center;
    padding: 20px;
    color: #fff;
    background: linear-gradient(180deg, rgba(28,22,15,0.12) 0%, rgba(28,22,15,0.55) 100%);
    transition: background .3s;
}
.video-poster:hover .video-poster-overlay { background: linear-gradient(180deg, rgba(28,22,15,0.2) 0%, rgba(28,22,15,0.6) 100%); }
.video-poster .play {
    width: 76px; height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--accent));
    display: grid; place-items: center;
    font-size: 28px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    transition: transform .2s;
}
.video-poster:hover .play { transform: scale(1.1); }
.video-poster-title { font-size: 17px; font-weight: 600; }
.video-poster-hint { font-size: 13.5px; opacity: 0.85; }

/* ===== Контакты ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 960px;
    margin: 0 auto;
}
.contact-info, .order-form {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 34px 32px;
}
.contact-heading { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin-bottom: 18px; }
.contact-info p { margin-bottom: 12px; font-size: 16.5px; }
.contact-info a { color: var(--accent-dark); font-weight: 600; border-bottom: 1px dashed var(--gold); }
.contact-info .socials { display: flex; flex-direction: column; gap: 12px; justify-content: center; margin-top: 20px; }
.social {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 13px 18px;
    border-radius: 12px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    font-weight: 600;
    color: var(--ink);
    transition: background .2s, color .2s, transform .2s;
}
.social:hover { background: linear-gradient(135deg, var(--gold), var(--accent)); color: #fff; transform: translateY(-2px); }

.order-form label { display: block; margin-bottom: 16px; }
.order-form span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; letter-spacing: 0.3px; }
.order-form input,
.order-form textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--ink);
    transition: border-color .2s, box-shadow .2s;
}
.order-form input:focus,
.order-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(227, 179, 116, 0.25);
}
.order-form .btn { border: 0; cursor: pointer; width: 100%; }
.form-status { margin-top: 14px; font-size: 14.5px; font-weight: 600; }
.form-status.ok { color: #3a7d3a; }
.form-status.err { color: #b34040; }

/* ===== Футер ===== */
.site-footer { padding: 30px 0; border-top: 1px solid var(--line); text-align: center; color: var(--ink-soft); font-size: 14px; }

/* ===== Модальное окно альбома ===== */
.modal {
    position: fixed; inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.modal.open { display: flex; }
.modal-overlay {
    position: absolute; inset: 0;
    background: rgba(45, 33, 20, 0.55);
    backdrop-filter: blur(6px);
}
.modal-content {
    position: relative;
    background: var(--card);
    border-radius: 22px;
    width: min(960px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 36px 34px;
    box-shadow: var(--shadow-lg);
    animation: pop .25s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close, .lb-close {
    position: absolute;
    top: 14px; right: 16px;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 0;
    background: var(--bg-soft);
    color: var(--ink);
    font-size: 24px;
    cursor: pointer;
    display: grid; place-items: center;
    transition: background .2s, color .2s;
    z-index: 5;
}
.modal-close:hover, .lb-close:hover { background: var(--accent); color: #fff; }
.modal-title { font-family: var(--font-display); font-size: 32px; font-weight: 700; margin-bottom: 6px; }
.modal-desc { color: var(--ink-soft); margin-bottom: 26px; }

.swipe-hint {
    display: none;
    text-align: center;
    font-size: 13px;
    color: var(--ink-soft);
    letter-spacing: 0.4px;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--bg-soft);
    border: 1px dashed var(--gold);
}

.modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}
.work-card {
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--line);
    background: var(--bg-soft);
    transition: transform .2s, box-shadow .2s;
}
.work-card-img { position: relative; }
.work-card img {
    width: 100%;
    aspect-ratio: 5/4;
    object-fit: cover;
    display: block;
}
.work-card .cap { padding: 12px 14px 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.work-card .cap-note { padding: 2px 14px 12px; font-size: 12.5px; color: var(--ink-soft); }

/* ===== Лайтбокс ===== */
.lightbox {
    position: fixed; inset: 0;
    z-index: 120;
    background: rgba(35, 26, 15, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.lightbox.open { display: flex; }
#lbImg { max-width: 88vw; max-height: 84vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px; height: 52px;
    border-radius: 50%;
    border: 0;
    background: rgba(253, 247, 236, 0.12);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    transition: background .2s;
}
.lb-nav:hover { background: rgba(253, 247, 236, 0.28); }
.lb-prev { left: 22px; }
.lb-next { right: 22px; }
.lb-close { background: rgba(253, 247, 236, 0.12); color: #fff; }

/* ===== Адаптивность ===== */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 20px; min-height: 0; padding: 24px 0 30px; }
    .hero-photo { max-width: 340px; margin: 0 auto; aspect-ratio: 3/4; }
    .hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
    .hero-text { text-align: center; }
    .hero-text h1 { font-size: clamp(36px, 11vw, 52px); margin-bottom: 10px; }
    .hero-sub { margin-bottom: 20px; font-size: 16px; }
    .hero-actions { justify-content: center; font-size: 14px; }
    .about-grid { grid-template-columns: 1fr; }
    .albums-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .contact-grid { grid-template-columns: 1fr; }
    .nav {
        position: fixed;
        top: 76px; right: 0;
        width: min(320px, 80vw);
        flex-direction: column;
        background: var(--bg);
        padding: 24px;
        gap: 18px;
        box-shadow: var(--shadow-lg);
        border-radius: 0 0 0 18px;
        border: 1px solid var(--line);
        transform: translateX(110%);
        transition: transform .3s;
    }
    .nav.open { transform: translateX(0); }
    .menu-toggle { display: flex; }
}
@media (max-width: 720px) {
    /* Видео-обложка */
    .video-poster .play { width: 64px; height: 64px; font-size: 24px; }
    .video-poster-title { font-size: 15px; }
    /* Альбом внутри модалки -> свайп-карусель */
    .modal-grid {
        display: block;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        white-space: nowrap;
        padding-bottom: 8px;
        cursor: grab;
    }
    .modal-grid::-webkit-scrollbar { display: none; }
    .modal-grid:active { cursor: grabbing; }
    .work-card {
        display: inline-block;
        width: 78%;
        margin-right: 14px;
        scroll-snap-align: center;
        vertical-align: top;
        white-space: normal;
    }
    .work-card:last-child { margin-right: 0; }
    .work-card img { aspect-ratio: 4 / 3; }
    .swipe-hint { display: block; }
}
@media (max-width: 520px) {
    .albums-grid { grid-template-columns: 1fr; }
    .section { padding: 48px 0; }
    .section-title { font-size: 30px; }
    .modal-content { padding: 24px 14px; }
    .modal-content .modal-title { font-size: 26px; }
    .modal-content .modal-desc,
    .modal-content .swipe-hint { padding: 0 4px; }
    .work-card { width: 84%; }
    .contact-info, .order-form { padding: 24px 18px; }
    .site-header { position: sticky; }
    .brand-text { font-size: 15px; }
    .btn { padding: 12px 20px; font-size: 14px; }
    .hero-photo { max-width: 300px; }
}
