:root {
    --gold: #c9a84c;
    --gold-light: #e4ca7a;
    --gold-dark: #9a7a2e;
    --bg-deep: #0c0a08;
    --bg-panel: #151210;
    --bg-card: #1c1916;
    --text-primary: #e8e0d4;
    --text-muted: #9e9080;
    --text-dim: #918578;
    --serif: 'Cormorant Garamond', 'Georgia', serif;
    --sans: 'Raleway', 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    color: var(--text-primary);
    background: var(--bg-deep);
    line-height: 1.7;
    overflow-x: hidden;
}


/* ===== NAVIGATION ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 48px;
    background: rgba(12, 10, 8, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.08);
    transition: padding 0.4s ease, background 0.4s ease;
}

nav.scrolled {
    padding: 12px 48px;
    background: rgba(12, 10, 8, 0.95);
}

.logo {
    display: flex;
    align-items: center;
    line-height: 0;
}

.logo-img {
    height: 60px;
    width: auto;
    display: block;
    transition: height 0.4s ease;
}

nav.scrolled .logo-img {
    height: 50px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

nav ul a {
    color: var(--text-muted);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 3px;
    position: relative;
    transition: color 0.3s;
}

nav ul a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.4s ease;
}

nav ul a:hover {
    color: var(--gold-light);
}

nav ul a:hover::after {
    width: 100%;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 140px 40px 100px;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(12, 10, 8, 0.65);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--bg-deep), transparent);
    z-index: 2;
}

.hero-ornament,
.hero-subtitle-top,
.hero h1,
.hero-tagline,
.hero-cta,
.scroll-hint {
    z-index: 3;
    position: relative;
}

.hero-ornament {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin-bottom: 32px;
    position: relative;
    opacity: 0;
    animation: fadeSlideUp 1s 0.3s ease forwards;
}

.hero-ornament::before,
.hero-ornament::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border: 1px solid var(--gold);
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.hero-ornament::before { left: -16px; }
.hero-ornament::after { right: -16px; }

.hero-subtitle-top {
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeSlideUp 1s 0.5s ease forwards;
}

.hero h1 {
    font-family: var(--serif);
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 600;
    line-height: 1.1;
    color: var(--text-primary);
    max-width: 800px;
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeSlideUp 1s 0.7s ease forwards;
}

.hero h1 em {
    font-style: italic;
    color: var(--gold);
}

.hero-tagline {
    font-family: var(--sans);
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: 1px;
    max-width: 500px;
    opacity: 0;
    animation: fadeSlideUp 1s 0.9s ease forwards;
}

.hero-cta {
    margin-top: 48px;
    display: inline-block;
    padding: 16px 48px;
    border: 1px solid var(--gold-dark);
    color: var(--gold);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeSlideUp 1s 1.1s ease forwards;
    z-index: 1;
}

.hero-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: -1;
}

.hero-cta:hover {
    color: var(--bg-deep);
    border-color: var(--gold);
}

.hero-cta:hover::before {
    transform: scaleX(1);
}

.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeIn 1s 1.8s ease forwards;
}

.scroll-hint span {
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-dim);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold-dark), transparent);
    animation: scrollPulse 2s ease infinite;
}

/* ===== SECTION COMMON ===== */
.section {
    padding: 120px 48px;
    position: relative;
}

.section-label {
    font-size: 0.7rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-divider {
    width: 40px;
    height: 1px;
    background: var(--gold);
    margin-bottom: 48px;
}

/* ===== ABOUT / SERVICES ===== */
.about-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    margin-top: 60px;
}

.about-card {
    background: var(--bg-card);
    padding: 64px 48px;
    position: relative;
    overflow: hidden;
    transition: background 0.5s ease;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, var(--gold-dark), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
}

.about-card:hover::before {
    transform: scaleX(1);
}

.about-card:hover {
    background: #201d19;
}

.about-card .card-number {
    font-family: var(--serif);
    font-size: 3.5rem;
    font-weight: 700;
    color: rgba(201, 168, 76, 0.08);
    position: absolute;
    top: 20px;
    right: 28px;
    line-height: 1;
}

.about-card h3 {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 16px;
}

.about-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.8;
}

/* ===== WORKS ===== */
.works {
    background: var(--bg-panel);
}

.works-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    margin-top: 60px;
}

.work-item {
    aspect-ratio: 4/3;
    background: var(--bg-card);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: brightness(0.7);
}

.work-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.5);
}

.work-item-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px 32px;
    background: linear-gradient(to top, rgba(12, 10, 8, 0.8) 0%, transparent 60%);
    pointer-events: none;
}

.work-item-overlay .work-icon {
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 8px;
    opacity: 0.7;
    transition: opacity 0.4s;
}

.work-item:hover .work-item-overlay .work-icon {
    opacity: 1;
}

.work-item-overlay .work-label {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 1px;
    transition: color 0.4s;
}

.work-item:hover .work-item-overlay .work-label {
    color: var(--gold-light);
}

.work-item-overlay .work-count {
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-top: 4px;
}

.work-item-overlay .work-view {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    width: 56px;
    height: 56px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.2rem;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.work-item:hover .work-view {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ===== LIGHTBOX GALLERY ===== */
.gallery-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(8, 6, 4, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.gallery-overlay.active {
    opacity: 1;
    visibility: visible;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    flex-shrink: 0;
}

.gallery-title {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gold);
}

.gallery-close {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(201, 168, 76, 0.2);
    background: transparent;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.gallery-close:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.gallery-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.gallery-image-wrapper {
    width: 80vw;
    max-height: 75vh;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1), opacity 0.3s cubic-bezier(.4,0,.2,1);
}

.gallery-track {
    display: flex;
    gap: 40px;
    transition: transform 0.35s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

.gallery-slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 65vh;
}

.gallery-slide img {
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    border: 1px solid rgba(201, 168, 76, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.gallery-slide img.loaded {
    opacity: 1;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: 1px solid rgba(201, 168, 76, 0.2);
    background: rgba(12, 10, 8, 0.6);
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 2;
}

.gallery-nav:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201, 168, 76, 0.08);
}

.gallery-nav.prev { left: 24px; }
.gallery-nav.next { right: 24px; }

.gallery-counter {
    text-align: center;
    padding: 16px 40px 24px;
    font-size: 0.72rem;
    letter-spacing: 4px;
    color: var(--text-dim);
    flex-shrink: 0;
}

.gallery-thumbnails {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0 40px 24px;
    flex-shrink: 0;
}

.gallery-thumb {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(201, 168, 76, 0.1);
    cursor: pointer;
    opacity: 0.4;
    transition: all 0.3s;
    overflow: hidden;
}

.gallery-thumb.active {
    opacity: 1;
    border-color: var(--gold);
}

.gallery-thumb:hover {
    opacity: 0.8;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-dots {
    display: none;
    justify-content: center;
    gap: 10px;
    padding: 0 40px 16px;
    flex-shrink: 0;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 76, 0.3);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
}

.gallery-dot.active {
    background: var(--gold);
    border-color: var(--gold);
}

.gallery-dot:hover {
    border-color: var(--gold-light);
}

/* ===== FILE UPLOAD ===== */
.label-hint {
    font-weight: 300;
    font-size: 0.65rem;
    letter-spacing: 1px;
    text-transform: none;
    color: var(--text-dim);
}

.file-upload {
    position: relative;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-upload-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 28px 20px;
    border: 1px dashed rgba(201, 168, 76, 0.2);
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.04);
}

.file-upload-icon {
    font-size: 1.4rem;
    color: var(--gold-dark);
    line-height: 1;
}

.file-upload-text {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--text-dim);
}

.file-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.file-preview:empty {
    display: none;
}

.file-preview-item {
    position: relative;
    width: 72px;
    height: 72px;
    border: 1px solid rgba(201, 168, 76, 0.15);
    overflow: hidden;
}

.file-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: rgba(12, 10, 8, 0.8);
    border: 1px solid rgba(201, 168, 76, 0.3);
    color: var(--text-muted);
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
    line-height: 1;
}

.file-preview-remove:hover {
    background: rgba(192, 57, 43, 0.8);
    color: #fff;
    border-color: transparent;
}

/* ===== CONSENT CHECKBOX ===== */
.form-consent {
    margin-bottom: 24px;
    margin-top: 8px;
}

.consent-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.consent-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.consent-check {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border: 1px solid rgba(201, 168, 76, 0.3);
    background: transparent;
    transition: all 0.3s ease;
    position: relative;
}

.consent-check::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 6px;
    border-left: 2px solid var(--bg-deep);
    border-bottom: 2px solid var(--bg-deep);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.consent-label input:checked + .consent-check {
    background: var(--gold);
    border-color: var(--gold);
}

.consent-label input:checked + .consent-check::after {
    transform: translate(-50%, -60%) rotate(-45deg) scale(1);
}

.consent-label input:focus-visible + .consent-check {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.consent-text {
    font-size: 0.82rem;
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.consent-text a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(201, 168, 76, 0.3);
    transition: border-color 0.3s;
}

.consent-text a:hover {
    border-bottom-color: var(--gold);
}

/* ===== FORM ===== */
.order-section {
    max-width: 1100px;
    margin: 0 auto;
}

.contact-form {
    margin-top: 48px;
}

.form-group {
    margin-bottom: 32px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 12px;
    transition: color 0.3s;
}

.form-group:focus-within label {
    color: var(--gold);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 0;
    border: none;
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
    background: transparent;
    color: var(--text-primary);
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    transition: border-color 0.4s;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dim);
    font-weight: 300;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--gold);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.8;
}

.form-group input.invalid,
.form-group textarea.invalid {
    border-bottom-color: #c0392b;
}

.form-group .field-error {
    display: none;
    font-size: 0.75rem;
    color: #c0392b;
    margin-top: 6px;
    letter-spacing: 0.5px;
}

.form-group .field-error.visible {
    display: block;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding: 18px 56px;
    border: 1px solid var(--gold-dark);
    background: transparent;
    color: var(--gold);
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: -1;
}

.submit-btn:hover {
    color: var(--bg-deep);
    border-color: var(--gold);
}

.submit-btn:hover::before {
    transform: scaleX(1);
}

.submit-btn .arrow {
    transition: transform 0.3s;
}

.submit-btn:hover .arrow {
    transform: translateX(4px);
}

/* ===== CONTACTS FOOTER ===== */
.contacts-footer {
    border-top: 1px solid rgba(201, 168, 76, 0.08);
    padding: 80px 48px;
    text-align: left;
}

.contacts-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.contacts-grid {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: start;
    align-items: center;
    gap: 116px;
    padding-left: 8px;
}

.contact-card {
    display: flex;
    align-items: center;
    justify-content: center;
}

.socials {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 30px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 50%;
    color: var(--gold);
    transition: color 0.3s, border-color 0.3s, background 0.3s, transform 0.3s;
}

.social-link svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
    display: block;
}

.social-link:hover {
    color: var(--gold-light);
    border-color: rgba(201, 168, 76, 0.6);
    background: rgba(201, 168, 76, 0.06);
    transform: translateY(-2px);
}

.contact-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.contact-items a {
    color: var(--gold);
    text-decoration: none;
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 400;
    white-space: nowrap;
    transition: color 0.3s;
}

.contact-items a:hover {
    color: var(--gold-light);
}

.copyright {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid rgba(201, 168, 76, 0.05);
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 2px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 0.8; transform: scaleY(1.2); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form success message */
.form-success {
    display: none;
    text-align: center;
    padding: 2.5rem 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 12px;
    background: rgba(76, 175, 80, 0.06);
    animation: successFadeIn 0.5s ease;
}

.form-success.visible {
    display: block;
}

.form-success__icon {
    width: 52px;
    height: 52px;
    color: #4caf50;
    margin-bottom: 1rem;
}

.form-success__check {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: checkDraw 0.5s 0.3s ease forwards;
}

.form-success__title {
    font-family: var(--serif);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-success__text {
    font-family: var(--sans);
    font-size: 0.95rem;
    color: var(--text-muted);
}

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

@keyframes checkDraw {
    to { stroke-dashoffset: 0; }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== BURGER MENU ===== */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.burger span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--gold);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.burger.active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    nav {
        padding: 16px 24px;
    }

    nav.scrolled {
        padding: 10px 24px;
    }

    nav ul {
        position: fixed;
        top: 0;
        right: 0;
        width: 260px;
        height: 100vh;
        background: var(--bg-panel);
        border-left: 1px solid rgba(201, 168, 76, 0.1);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transform: translateX(100%);
        transition: transform 0.4s ease;
        z-index: 1000;
    }

    nav ul.open {
        transform: translateX(0);
    }

    nav ul a {
        font-size: 0.85rem;
        letter-spacing: 3px;
    }

    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }

    .nav-overlay.visible {
        opacity: 1;
        visibility: visible;
    }

    .logo-img {
        height: 40px;
    }

    nav.scrolled .logo-img {
        height: 34px;
    }

    .hero {
        padding: 120px 24px 80px;
    }

    .hero-subtitle-top {
        font-size: 0.65rem;
        letter-spacing: 5px;
    }

    .hero-tagline {
        font-size: 0.9rem;
        padding: 0 16px;
    }

    .section {
        padding: 80px 24px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-card {
        padding: 48px 32px;
    }

    .works-grid {
        grid-template-columns: 1fr;
    }

    .work-item-overlay .work-label {
        font-size: 1.2rem;
    }

    .gallery-nav { display: none; }

    .gallery-image-wrapper {
        width: 95vw;
    }

    .gallery-slide img {
        max-width: 95vw;
    }

    .gallery-body {
        padding: 20px;
    }

    .gallery-header {
        padding: 16px 20px;
    }

    .gallery-dots {
        display: flex;
    }

    .gallery-thumbnails {
        display: none;
    }

    .contacts-grid {
        justify-content: space-between;
        gap: 24px;
    }

    .contact-items {
        gap: 16px;
    }

    .contacts-footer {
        padding: 60px 24px;
    }

    .submit-btn {
        padding: 16px 40px;
        width: 100%;
        justify-content: center;
    }
}

/* Контакты: на узких экранах ужимаем отступы/шрифт, чтобы дольше держать столбцы в один ряд */
@media (max-width: 560px) {
    .contacts-grid {
        gap: 40px;
    }

    .social-link {
        width: 56px;
        height: 56px;
    }

    .social-link svg {
        width: 26px;
        height: 26px;
    }

    .contact-items a {
        font-size: 1.15rem;
    }
}

/* Контакты: на совсем узких ещё сильнее ужимаем зазор, чтобы дотянуть до телефонов */
@media (max-width: 420px) {
    .contacts-grid {
        gap: 24px;
        padding-left: 0;
    }
}

/* Контакты: socials встают над телефоном/почтой только когда места реально не хватает */
@media (max-width: 360px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .hero {
        padding: 100px 20px 60px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-cta {
        padding: 14px 32px;
        font-size: 0.7rem;
    }

    .hero-subtitle-top {
        font-size: 0.58rem;
        letter-spacing: 4px;
    }

    .hero-tagline {
        font-size: 0.85rem;
    }

    .section {
        padding: 60px 16px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .about-card {
        padding: 36px 24px;
    }

    .about-card h3 {
        font-size: 1.3rem;
    }

    .about-card p {
        font-size: 0.88rem;
    }

    .work-item {
        aspect-ratio: 3/2;
    }

    .work-item-overlay {
        padding: 20px 24px;
    }

    .work-item-overlay .work-label {
        font-size: 1.1rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.9rem;
    }

    .contacts-footer {
        padding: 48px 16px;
    }

    .copyright {
        margin-top: 40px;
        font-size: 0.6rem;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}
