.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 250, 248, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition-base);
    height: var(--nav-height);
}

.nav.scrolled {
    border-bottom-color: var(--color-border);
    box-shadow: 0 1px 20px var(--color-shadow);
}

.nav__container {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav__logo {
    display: flex;
    flex-direction: column;
    gap: 0;
    text-decoration: none;
}

.nav__logo-text {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.nav__logo-sub {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--color-text-light);
    line-height: 1;
}

.nav__links {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
    align-items: center;
}

.nav__link {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-secondary);
    text-decoration: none;
    position: relative;
    padding: var(--space-xs) 0;
    transition: color var(--transition-fast);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-text);
    transition: width var(--transition-base);
}

.nav__link:hover,
.nav__link.active {
    color: var(--color-text);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    z-index: 1001;
}

.nav__toggle span {
    width: 24px;
    height: 1.5px;
    background: var(--color-text);
    transition: all var(--transition-base);
    transform-origin: center;
}

.nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

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

.nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 14px 36px;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border: 1px solid var(--color-text);
    color: var(--color-bg);
    background: var(--color-text);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-accent-hover);
    transition: left var(--transition-base);
    z-index: -1;
}

.btn:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: var(--color-bg);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--color-shadow-hover);
}

.btn--outline {
    background: transparent;
    color: var(--color-text);
}

.btn--outline:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

.btn--large {
    padding: 18px 48px;
    font-size: var(--text-base);
}

.btn--ghost {
    background: transparent;
    border: none;
    color: var(--color-text);
    padding: 8px 0;
    text-decoration: none;
    position: relative;
}

.btn--ghost::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-text);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-base);
}

.btn--ghost:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.btn--ghost:hover {
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
}

.product-card {
    display: block;
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--transition-base);
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--color-bg-warm);
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-card__image img {
    transform: scale(1.05);
}

.product-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-base);
}

.product-card:hover .product-card__overlay {
    background: rgba(26, 26, 26, 0.08);
}

.product-card__info {
    padding: var(--space-md) 0;
}

.product-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 4px;
}

.product-card__price {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    letter-spacing: 0.02em;
}

.portfolio-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    break-inside: avoid;
    margin-bottom: var(--space-sm);
}

.portfolio-card img {
    width: 100%;
    display: block;
    transition: transform var(--transition-slow);
}

.portfolio-card:hover img {
    transform: scale(1.03);
}

.portfolio-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,26,26,0.5) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
    display: flex;
    align-items: flex-end;
    padding: var(--space-lg);
}

.portfolio-card:hover .portfolio-card__overlay {
    opacity: 1;
}

.portfolio-card__title {
    color: white;
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 400;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--color-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox__content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    animation: scaleIn 0.4s ease;
}

.lightbox__img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--border-radius);
}

.lightbox__caption {
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    margin-top: var(--space-md);
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 36px;
    cursor: pointer;
    z-index: 10000;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
    background: none;
    border: none;
    font-family: inherit;
    line-height: 1;
}

.lightbox__close:hover { opacity: 1; }

.lightbox__prev,
.lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 48px;
    cursor: pointer;
    z-index: 10000;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
    background: none;
    border: none;
    font-family: inherit;
    padding: 20px;
}

.lightbox__prev { left: 10px; }
.lightbox__next { right: 10px; }
.lightbox__prev:hover,
.lightbox__next:hover { opacity: 1; }

.section-title {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title__label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
    position: relative;
}

.section-title__label::before,
.section-title__label::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: var(--color-border);
}

.section-title__label::before { right: calc(100% + 16px); }
.section-title__label::after { left: calc(100% + 16px); }

.section-title h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    color: var(--color-text);
}

.section-title p {
    max-width: 600px;
    margin: var(--space-md) auto 0;
    color: var(--color-text-secondary);
    font-size: var(--text-lg);
    line-height: 1.7;
}

.divider {
    width: 60px;
    height: 1px;
    background: var(--color-border);
    margin: var(--space-xl) auto;
}

.divider--left {
    margin-left: 0;
}

.footer {
    background: var(--color-text);
    color: var(--color-bg);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.footer__top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 400;
    margin-bottom: 4px;
}

.footer__desc {
    color: rgba(255,255,255,0.5);
    font-size: var(--text-sm);
    margin: 0;
}

.footer__contact {
    margin-top: var(--space-xs);
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.footer__contact-label {
    color: rgba(255,255,255,0.5);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer__email {
    color: rgba(255,255,255,0.6);
    font-size: var(--text-sm);
    text-decoration: none;
    position: relative;
    display: inline-block;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.footer__email:hover {
    color: white;
}

.copy-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: white;
    color: #1a1a1a;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
}

.copy-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.footer__email.copied .copy-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer__links a {
    color: rgba(255,255,255,0.6);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color var(--transition-fast);
}

.footer__links a:hover {
    color: white;
}

.footer__social {
    display: flex;
    gap: var(--space-md);
    justify-content: flex-end;
    align-items: flex-start;
}

.footer__social a {
    color: rgba(255,255,255,0.5);
    transition: color var(--transition-fast);
}

.footer__social a:hover {
    color: white;
}

.footer__bottom {
    padding-top: var(--space-xl);
    text-align: center;
}

.footer__bottom p {
    color: rgba(255,255,255,0.3);
    font-size: var(--text-xs);
    letter-spacing: 0.1em;
    margin: 0;
}

@media (max-width: 768px) {
    .nav__toggle {
        display: flex;
    }

    .nav__links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: var(--color-bg);
        gap: var(--space-xl);
        transition: right var(--transition-base);
        z-index: 999;
    }

    .nav__links.active {
        right: 0;
    }

    .nav__link {
        font-size: var(--text-lg);
    }

    .footer__top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__links {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer__social {
        justify-content: center;
    }
}
