/* Базові налаштування */
body.works-page {
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #000000;
    color: #ffffff;
}

/* Шапка */
.static-header .logo,
.static-header .hire-btn {
    opacity: 1;
    transform: none;
    transition: none;
    z-index: 100;
}
.static-header .back-btn {
    font-size: 30px;
}

/* Головний екран */
.works-hero {
    padding: 150px 5% 80px 5%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.barcode-accent {
    font-family: 'Libre Barcode 39 Text', sans-serif;
    font-size: 50px;
    color: rgba(255, 255, 255, 0.3);
    display: block;
    margin-bottom: 10px;
}

.hero-title {
    font-family: 'Lexend Zetta', sans-serif;
    font-size: 5vw;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: 2px;
}

.hero-desc {
    font-family: 'Lexend Zetta', sans-serif;
    font-weight: 200;
    font-size: 14px;
    color: #888;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Сітка портфоліо */
.portfolio-section {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px 50px;
}

/* Картка проєкту */
/* Картка проєкту (тепер просто блок, не посилання) */
.project-card {
    display: block;
    color: inherit;
    transition: transform 0.4s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

/* Обгортка для зображення (тепер підлаштовується під розмір фото) */
.project-image-wrap {
    width: 100%;
    overflow: hidden;
    margin-bottom: 25px;
    background-color: #111;
    border-radius: 4px; /* За бажанням: додає акуратні мінімальні заокруглення */
}

/* Саме фото: показується повністю без обрізки */
.project-img {
    width: 100%;
    height: auto; /* Висота автоматично підлаштовується під оригінальну картинку */
    display: block;
    filter: grayscale(100%); /* Чорно-біле за замовчуванням */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s ease;
}

/* Ефект при наведенні (зум + повернення кольору) */
.project-card:hover .project-img {
    transform: scale(1.03); /* Зробив зум трохи м'якшим, щоб не вилазило за краї */
    filter: grayscale(0%);
}
.project-card:hover .placeholder-img,
.project-card:hover .project-img {
    transform: scale(1.05); /* Зум при наведенні */
    filter: grayscale(0%); /* Повертає колір */
}

/* Інформація про проєкт */
.project-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: border-color 0.3s ease;
}

.project-card:hover .project-info {
    border-bottom-color: #ffffff;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.project-num {
    font-family: 'Lexend Zetta', sans-serif;
    font-size: 10px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 50px;
}

.project-role {
    font-family: 'Lexend Zetta', sans-serif;
    font-size: 10px;
    font-weight: 300;
    color: #888;
    letter-spacing: 2px;
}

.project-title {
    font-family: 'Lexend Zetta', sans-serif;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 1px;
    margin-top: 5px;
}

.project-year {
    font-family: 'Lexend Zetta', sans-serif;
    font-size: 12px;
    font-weight: 200;
    color: #666;
    margin-top: -5px;
}

/* Call to action знизу */
.works-cta {
    padding: 80px 5% 120px 5%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.cta-title {
    font-family: 'Lexend Zetta', sans-serif;
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 3px;
}

.buy-btn-large {
    display: inline-block;
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    padding: 20px 50px;
    font-family: 'Lexend Zetta', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.buy-btn-large:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

/* Футер */
.relative-footer {
    position: relative;
    padding-bottom: 40px;
    text-align: center;
}

.relative-footer p {
    font-family: 'Lexend Zetta', sans-serif;
    font-size: 10px;
    color: #4d4d4d;
    letter-spacing: 2px;
    font-weight: 300;
}

/* Адаптивність */
@media (max-width: 900px) {
    .portfolio-grid {
        grid-template-columns: 1fr; /* 1 колонка на мобільних */
        gap: 60px;
    }
    .hero-title {
        font-size: 7vw;
    }
}
@font-face {
    font-family: 'KyivTypeVar';

    src: url('fonts/KyivTypeSans-VarGX.ttf') format('truetype');
    
    font-weight: 100 900; 
    font-style: normal;
    font-display: swap; 
}
body.ua-lang .project-role{
    font-family: 'KyivTypeVar', sans-serif !important;
    font-weight: 3  00;
}
