/* ====== FONTS: GERBERA ====== */
@font-face {
    font-family: "Gerbera";
    src: url("../fonts/Gerbera-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Gerbera";
    src: url("../fonts/Gerbera.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Gerbera";
    src: url("../fonts/Gerbera-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* ====== BASE ====== */
:root {
    --bg: #FFFFFF;
    --dark: #101B20;
    --g80: #40464D;
    --g60: #707479;
    --g40: #9CA0A3;
    --accent: #101B20;
    --container: 1240px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Gerbera", system-ui, -apple-system, sans-serif;
    color: var(--dark);
    background: var(--bg);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px;
}

/* ====== HEADER ====== */
.header {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(16,27,32,.06);
    z-index: 100;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.header__logo {
    height: 44px;
    width: auto;
}

.header__nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--dark);
    transition: opacity .2s;
}

.nav-link:hover {
    opacity: .6;
}

.nav-link--active {
    opacity: .6;
}

.header__burger {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 12px;
}

.header__burger span {
    display: block;
    height: 1px;
    background: var(--dark);
    margin: 6px 0;
    transition: all .3s;
}

.mobile-menu {
    display: none;
    background: #fff;
    border-top: 1px solid rgba(16,27,32,.08);
}

.mobile-menu--open {
    display: block;
}

.mobile-menu__inner {
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-link {
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* ====== BREADCRUMBS ====== */
.crumbs {
    padding: 24px 0;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--g60);
}

.crumbs a {
    transition: color .2s;
}

.crumbs a:hover {
    color: var(--dark);
}

.crumbs span {
    margin: 0 8px;
}

/* ====== PROJECT PAGE ====== */
.project-page {
    padding-bottom: 0;
}

/* ====== PROJECT HERO ====== */
.project-hero {
    padding: 40px 0 80px;
}

.project-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.project-hero__title {
    font-size: 72px;
    font-weight: 400;
    letter-spacing: .02em;
    text-transform: uppercase;
    line-height: 1;
}

.project-hero__type {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: .04em;
    color: var(--g60);
    margin-top: 16px;
}

.project-hero__meta {
    margin-bottom: 32px;
}

.meta-item {
    display: flex;
    gap: 8px;
    font-size: 15px;
    line-height: 1.8;
}

.meta-item__label {
    color: var(--g60);
}

.meta-item__value {
    font-weight: 500;
}

.project-hero__services {
    font-size: 15px;
    line-height: 1.8;
    color: var(--dark);
    margin-bottom: 16px;
}

.project-hero__location {
    font-size: 15px;
    color: var(--g60);
    margin-bottom: 32px;
}

.project-hero__desc {
    font-size: 15px;
    line-height: 1.8;
    color: var(--g60);
}

.project-hero__desc strong {
    color: var(--dark);
}

/* ====== FULL WIDTH IMAGE ====== */
.project-image--full {
    width: 100%;
    margin: 0;
}

.project-image--full img {
    width: 100%;
    height: 80vh;
    min-height: 500px;
    object-fit: cover;
}

/* ====== PROJECT CONTENT ====== */
.project-content {
    padding: 100px 0;
}

.project-content__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.project-content__text {
    font-size: 18px;
    line-height: 1.9;
    color: var(--g80);
}

.project-content__text p {
    margin-bottom: 24px;
}

.project-content__text p:last-child {
    margin-bottom: 0;
}

.project-content__text strong {
    color: var(--dark);
    font-weight: 500;
}

.project-content__image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

/* ====== PROJECT GALLERY ====== */
.project-gallery {
    padding: 80px 0;
    background: #fafafa;
}

.project-gallery__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 24px;
}

.project-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-gallery__item--large {
    grid-row: span 2;
}

.project-gallery__item--large img {
    height: 100%;
    min-height: 500px;
}

.project-gallery__item:not(.project-gallery__item--large) img {
    height: 280px;
}

/* ====== PROJECT RESULTS ====== */
.project-results {
    padding: 100px 0;
    background: var(--dark);
    color: #fff;
}

.project-results__title {
    font-size: 32px;
    font-weight: 400;
    letter-spacing: .02em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 64px;
}

.project-results__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.result-card__num {
    display: block;
    font-size: 72px;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 16px;
}

.result-card__label {
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .6;
}

/* ====== PROJECT NAV ====== */
.project-nav {
    padding: 60px 0;
    border-top: 1px solid rgba(16,27,32,.1);
    border-bottom: 1px solid rgba(16,27,32,.1);
}

.project-nav__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: opacity .2s;
}

.project-nav__link:hover {
    opacity: .6;
}

.project-nav__arrow {
    font-size: 20px;
}

/* ====== PROJECT CTA ====== */
.project-cta {
    padding: 100px 0;
    background: #fafafa;
    text-align: center;
}

.project-cta__title {
    font-size: 42px;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.project-cta__text {
    font-size: 15px;
    color: var(--g60);
    margin-bottom: 40px;
}

.project-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 48px;
    border: 1px solid var(--dark);
    border-radius: 999px;
    background: var(--dark);
    font-family: inherit;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fff;
    transition: all .3s;
}

.project-cta__btn:hover {
    background: transparent;
    color: var(--dark);
}

/* ====== FOOTER ====== */
.footer {
    background: var(--dark);
    color: #fff;
    padding: 64px 0 32px;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.footer__brand {
    display: flex;
    align-items: center;
}

.footer__logo {
    height: 40px;
    width: auto;
}

.footer__cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer__col {
    display: flex;
    flex-direction: column;
}

.footer__title {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .5;
    margin-bottom: 20px;
}

.footer__col a,
.footer__col div {
    font-size: 13px;
    line-height: 2;
    opacity: .78;
    transition: opacity .2s;
}

.footer__col a:hover {
    opacity: 1;
}

.footer__subscribe {
    margin-top: 24px;
}

.footer__subscribe-title {
    font-size: 12px;
    opacity: .6;
    margin-bottom: 16px;
}

.subscribe-form {
    display: flex;
}

.subscribe-input {
    flex: 1;
    height: 44px;
    padding: 0 16px;
    border: 1px solid rgba(255,255,255,.25);
    border-right: none;
    border-radius: 999px 0 0 999px;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    outline: none;
}

.subscribe-input::placeholder {
    color: rgba(255,255,255,.4);
}

.subscribe-btn {
    height: 44px;
    padding: 0 20px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 0 999px 999px 0;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .2s;
}

.subscribe-btn:hover {
    background: #fff;
    color: var(--dark);
}

.footer__bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: 12px;
    opacity: .5;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1100px) {
    .project-hero__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .project-hero__title {
        font-size: 56px;
    }
    
    .project-content__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .project-gallery__grid {
        grid-template-columns: 1fr;
    }
    
    .project-gallery__item--large {
        grid-row: auto;
    }
    
    .project-gallery__item--large img,
    .project-gallery__item:not(.project-gallery__item--large) img {
        height: 400px;
    }
    
    .project-results__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px;
    }
    
    .footer__cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header__nav {
        display: none;
    }
    
    .header__burger {
        display: block;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .project-hero__title {
        font-size: 42px;
    }
    
    .project-image--full img {
        height: 50vh;
        min-height: 300px;
    }
    
    .project-content__text {
        font-size: 16px;
    }
    
    .project-results__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .result-card__num {
        font-size: 56px;
    }
    
    .project-nav__inner {
        flex-direction: column;
        gap: 24px;
    }
    
    .project-cta__title {
        font-size: 28px;
    }
    
    .footer__cols {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ====== PHOTO GALLERY SLIDER ====== */
.photo-gallery {
    padding: 100px 0 60px;
    background: #fff;
}

.photo-gallery__label {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--g60);
    text-align: center;
    margin-bottom: 16px;
}

.photo-gallery__title {
    font-size: 36px;
    font-weight: 400;
    letter-spacing: .02em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 48px;
}

.gallery-slider {
    position: relative;
    overflow: hidden;
    padding: 0 40px 60px;
}

.gallery-slider__track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: grab;
}

.gallery-slider__track:active {
    cursor: grabbing;
}

.gallery-slider__slide {
    flex: 0 0 auto;
    width: calc(33.333% - 16px);
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.gallery-slider__slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(16,27,32,0);
    transition: background .3s;
}

.gallery-slider__slide:hover::after {
    background: rgba(16,27,32,.1);
}

.gallery-slider__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.gallery-slider__slide:hover img {
    transform: scale(1.05);
}

.gallery-slider__controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-top: 32px;
}

.gallery-slider__btn {
    width: 56px;
    height: 56px;
    border: 1px solid rgba(16,27,32,.2);
    border-radius: 50%;
    background: transparent;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
}

.gallery-slider__btn:hover {
    background: var(--dark);
    border-color: var(--dark);
    color: #fff;
}

.gallery-slider__counter {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .1em;
    color: var(--g60);
}

/* ====== LIGHTBOX ====== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(16,27,32,.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
}

.lightbox--open {
    opacity: 1;
    visibility: visible;
}

.lightbox__close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    opacity: .7;
    transition: opacity .3s;
    z-index: 10;
}

.lightbox__close:hover {
    opacity: 1;
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
    z-index: 10;
}

.lightbox__nav:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.5);
}

.lightbox__nav--prev {
    left: 24px;
}

.lightbox__nav--next {
    right: 24px;
}

.lightbox__content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

.lightbox__counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .1em;
    color: rgba(255,255,255,.6);
}

/* Gallery Responsive */
@media (max-width: 1100px) {
    .gallery-slider__slide {
        width: calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .gallery-slider {
        padding: 0 20px 40px;
    }
    
    .gallery-slider__slide {
        width: 85%;
    }
    
    .gallery-slider__controls {
        gap: 24px;
    }
    
    .gallery-slider__btn {
        width: 48px;
        height: 48px;
    }
    
    .lightbox__nav {
        width: 44px;
        height: 44px;
    }
    
    .lightbox__nav--prev {
        left: 12px;
    }
    
    .lightbox__nav--next {
        right: 12px;
    }
    
    .photo-gallery__title {
        font-size: 28px;
    }
}