/* Toma Vershenya — Wedding Photo & Video */

:root {
    --bg: #f4f1ec;
    --white: #ffffff;
    --cream: #faf8f5;
    --text: #1c1c1c;
    --text-light: #6e6a65;
    --border: #ddd8d0;
    --accent: #8b7355;
    --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --sans: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --header-h: 64px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    font-family: var(--sans);
    font-weight: 300;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

img, video {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Header ── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 300;
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: background 0.35s, box-shadow 0.35s;
}

/* На hero — прозрачный хедер, белый текст */
.header.on-hero {
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 100%);
}

.header.on-hero .logo {
    color: var(--white);
}

.header.on-hero .lang-switch {
    border-color: rgba(255,255,255,0.4);
}

.header.on-hero .lang-btn {
    color: rgba(255,255,255,0.8);
}

.header.on-hero .lang-btn.active {
    background: var(--white);
    color: var(--text);
}

.header.on-hero .menu-toggle span {
    background: var(--white);
}

/* После прокрутки — светлый фон, тёмный текст (взаимоисключающе с on-hero) */
.header.is-solid {
    background: rgba(250, 248, 245, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--border);
}

.header.is-solid .logo {
    color: var(--text);
}

.header.is-solid .lang-switch {
    border-color: var(--border);
}

.header.is-solid .lang-btn {
    color: var(--text-light);
}

.header.is-solid .lang-btn.active {
    background: var(--text);
    color: var(--white);
}

.header.is-solid .menu-toggle span {
    background: var(--text);
}

body.menu-open .header {
    z-index: 220;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    position: relative;
    z-index: 210;
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 210;
}

.lang-switch {
    display: flex;
    position: relative;
    z-index: 10;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
}

.lang-btn {
    background: none;
    border: none;
    padding: 6px 12px;
    font-family: var(--sans);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    color: var(--text-light);
    transition: background 0.2s, color 0.2s;
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.lang-btn.active {
    background: var(--text);
    color: var(--white);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 210;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text);
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* Desktop nav */
.nav {
    display: flex;
    gap: 32px;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: var(--header-h);
    align-items: center;
    z-index: 250;
    pointer-events: none;
}

.nav a {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-light);
    transition: color 0.2s;
    white-space: nowrap;
    pointer-events: auto;
}

.nav a:hover {
    color: var(--text);
}

/* nav вне header — цвет через класс на body */
body.at-hero-top .nav a {
    color: rgba(255, 255, 255, 0.8);
}

body.at-hero-top .nav a:hover {
    color: var(--white);
}

body.is-solid-nav .nav a {
    color: var(--text-light);
}

body.is-solid-nav .nav a:hover {
    color: var(--text);
}

.nav-backdrop {
    display: none;
}

/* ── Hero ── */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: #111;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.7) 0%,
        rgba(0,0,0,0.15) 45%,
        rgba(0,0,0,0.35) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding-bottom: 90px;
    width: 100%;
}

.hero-content h1 {
    font-family: var(--serif);
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 300;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
    text-shadow: 0 2px 40px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 0.78rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    opacity: 0.85;
}

.scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,0.6);
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    animation: bounce 2.5s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(7px); }
}

/* ── About ── */
.about {
    padding: 110px 0;
    background: var(--cream);
}

.about .section-eyebrow {
    display: block;
    margin-bottom: 40px;
}

.about-inner {
    display: flex;
    align-items: center;
    gap: 72px;
}

.about-photo {
    flex-shrink: 0;
    position: relative;
}

.about-photo::before {
    content: '';
    position: absolute;
    inset: -8px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    opacity: 0.4;
}

.about-photo img {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
}

.about-text h2 {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 300;
    margin-bottom: 8px;
}

.about-text .subtitle {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 28px;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 520px;
    line-height: 1.9;
}

/* ── Work ── */
.work {
    padding: 110px 0;
    background: var(--bg);
}

.section-eyebrow {
    display: block;
    text-align: center;
    font-size: 0.68rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 300;
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-light);
    letter-spacing: 0.04em;
    margin-bottom: 56px;
}

.folders-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.folder-card {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    cursor: pointer;
    background: #ccc;
}

.folder-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255,255,255,0);
    transition: border-color 0.3s;
    pointer-events: none;
    z-index: 2;
}

.folder-card:hover::after {
    border-color: rgba(255,255,255,0.5);
}

.folder-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.folder-card:hover img {
    transform: scale(1.06);
}

.folder-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.05) 55%);
    display: flex;
    align-items: flex-end;
    padding: 22px 18px;
    z-index: 1;
}

.folder-card-title {
    color: var(--white);
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    line-height: 1.35;
}

.folder-type-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255,255,255,0.92);
    color: var(--text);
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 20px;
    z-index: 3;
}

/* ── Pricing ── */
.pricing {
    padding: 110px 0;
    background: var(--cream);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 48px 28px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(139,115,85,0.12);
}

.pricing-card h3 {
    font-family: var(--serif);
    font-size: 1.7rem;
    font-weight: 400;
    margin-bottom: 14px;
}

.pricing-card .price {
    font-family: var(--serif);
    font-size: 2.6rem;
    font-weight: 300;
    color: var(--accent);
    margin-bottom: 28px;
}

.pricing-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
}

.pricing-card li {
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
    color: var(--text-light);
}

.pricing-card li:last-child {
    border-bottom: none;
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    background: var(--text);
    color: var(--white);
    border: 1px solid var(--text);
    font-family: var(--sans);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s, color 0.25s;
}

.btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--text);
}

.btn-outline:hover {
    background: var(--text);
    color: var(--white);
    border-color: var(--text);
}

/* ── Contact ── */
.contact {
    padding: 110px 0;
    background: var(--bg);
}

.social-row {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin: 44px 0 36px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--white);
    transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s;
}

.social-link:hover {
    background: var(--text);
    border-color: var(--text);
    color: var(--white);
    transform: translateY(-3px);
}

.social-link svg {
    width: 21px;
    height: 21px;
}

.contact-details {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 48px;
}

.contact-details p {
    margin: 8px 0;
}

.contact-form {
    max-width: 520px;
    margin: 0 auto;
    background: var(--white);
    padding: 36px;
    border: 1px solid var(--border);
    position: relative;
}

.form-group {
    margin-bottom: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    background: var(--cream);
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 300;
    transition: border-color 0.2s, background 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Скрытое поле против спам-ботов — не показывать посетителям */
.form-honeypot {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.form-status {
    font-size: 0.88rem;
    margin-bottom: 12px;
    text-align: center;
}

.form-status.success {
    color: #3d8c5c;
}

.form-status.error {
    color: #c0392b;
}

/* ── Footer ── */
.footer {
    padding: 36px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    background: var(--cream);
    font-size: 0.78rem;
    color: var(--text-light);
    letter-spacing: 0.06em;
}

.footer-tagline {
    margin-top: 6px;
    opacity: 0.55;
    font-family: var(--serif);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

/* ── Gallery overlay ── */
.gallery-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: var(--white);
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-overlay.open {
    transform: translateY(0);
}

.gallery-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gallery-back {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    font-family: var(--sans);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    color: var(--text);
}

.gallery-back svg {
    width: 18px;
    height: 18px;
}

.gallery-title {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 400;
    text-align: center;
    flex: 1;
}

.gallery-body {
    padding: 24px 16px 60px;
    max-width: 900px;
    margin: 0 auto;
}

.masonry {
    column-count: 2;
    column-gap: 4px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 4px;
    cursor: pointer;
    overflow: hidden;
}

.masonry-item img {
    width: 100%;
    display: block;
    transition: opacity 0.3s;
}

.masonry-item:hover img {
    opacity: 0.9;
}

.masonry-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
    font-family: var(--serif);
    font-size: 1.2rem;
}

.video-list {
    display: flex;
    flex-direction: column;
}

.video-item {
    cursor: pointer;
}

.video-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #111;
}

.video-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.92);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.video-play-btn svg {
    width: 16px;
    height: 16px;
    margin-left: 3px;
}

.video-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
}

.video-caption {
    text-align: center;
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 300;
    padding: 22px 16px 36px;
    letter-spacing: 0.02em;
}

/* ── Lightbox ── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 400;
    background: rgba(0,0,0,0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.lightbox.open {
    opacity: 1;
    pointer-events: all;
}

.lightbox img {
    max-width: 92vw;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox video {
    max-width: 92vw;
    max-height: 90vh;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    opacity: 0.6;
    padding: 20px;
}

.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .folders-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

@media (max-width: 900px) {
    .nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: auto;
        transform: none;
        background: var(--cream);
        padding: calc(var(--header-h) + 16px) 32px 48px;
        gap: 0;
        z-index: 208;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }

    .nav.open {
        opacity: 1;
        pointer-events: all;
    }

    .nav-close {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 14px;
        right: 20px;
        width: 44px;
        height: 44px;
        background: none;
        border: 1px solid var(--border);
        border-radius: 50%;
        font-size: 1.3rem;
        line-height: 1;
        color: var(--text);
        cursor: pointer;
        z-index: 2;
    }

    .nav a {
        font-family: var(--serif);
        font-size: 1.8rem;
        font-weight: 300;
        letter-spacing: 0.04em;
        text-transform: none;
        color: var(--text) !important;
        padding: 18px 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 207;
        background: rgba(0,0,0,0.4);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }

    .nav-backdrop.open {
        opacity: 1;
        pointer-events: all;
    }

    .menu-toggle {
        display: block;
        position: relative;
        z-index: 221;
    }

    body.menu-open .menu-toggle span {
        background: var(--text) !important;
    }

    .about-inner {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .about-text p {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .folders-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .about-photo img {
        width: 190px;
        height: 190px;
    }

    .hero-content {
        padding-bottom: 70px;
    }

    .contact-form {
        padding: 24px 18px;
    }
}

.nav-close {
    display: none;
}

@media (min-width: 901px) {
    .masonry {
        column-count: 3;
        column-gap: 6px;
    }

    .masonry-item {
        margin-bottom: 6px;
    }
}
