/* ------------------------------------------------------------------
   Власні правки поверх дизайну макета.
   Окремий файл, щоб оновлення макета їх не затирало.
   ------------------------------------------------------------------ */

/* Кнопка відправки Fluent Forms -- у фірмовий темно-синій.
   Плагін малює свою синю, тому потрібен !important. */
.fluentform .ff-btn-submit,
.fluentform input[type="submit"],
.fluentform button[type="submit"] {
    background: var(--navy) !important;
    color: var(--on-dark) !important;
    border: 1px solid transparent !important;
    border-radius: var(--r-full) !important;
    font-family: var(--sans) !important;
    font-size: .925rem !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    letter-spacing: .005em !important;
    padding: 1.08em 1.85em !important;
    box-shadow: none !important;
    transition: background .25s ease, transform .25s ease !important;
}

.fluentform .ff-btn-submit:hover,
.fluentform input[type="submit"]:hover,
.fluentform button[type="submit"]:hover {
    background: var(--navy-deep) !important;
    transform: translateY(-1px);
}

/* Фото зі зйомки вертикальні, а блоки здебільшого горизонтальні.
   object-fit:cover ріже по центру і зрізає верх голови,
   тому зміщуємо кадр угору. */
.hero-media img,
.card-media img,
.split-media img,
.about-home img {
    object-position: center 28%;
}

/* ---- збільшення сертифікатів по кліку ---- */
.certs figure img {
    cursor: zoom-in;
    transition: transform .25s ease, box-shadow .25s ease;
}
.certs figure img:hover,
.certs figure img:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--shadow-2);
    outline: none;
}

.nf-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 48px);
    background: rgba(36, 31, 34, .88);
    backdrop-filter: blur(3px);
}
.nf-lightbox.is-open { display: flex; }

.nf-lightbox__inner {
    margin: 0;
    max-width: min(1100px, 100%);
    max-height: 100%;
    display: flex;
    flex-direction: column;
    gap: .9rem;
}
.nf-lightbox__inner img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 11rem);
    object-fit: contain;
    border-radius: var(--r-sm);
    background: var(--surface);
}
.nf-lightbox__inner figcaption {
    font-family: var(--sans);
    font-size: .85rem;
    line-height: 1.5;
    color: var(--on-dark);
    text-align: center;
}
.nf-lightbox__close {
    position: absolute;
    top: clamp(10px, 2vw, 22px);
    right: clamp(10px, 2vw, 22px);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: var(--r-full);
    background: rgba(247, 244, 242, .14);
    color: var(--on-dark);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}
.nf-lightbox__close:hover { background: rgba(247, 244, 242, .26); }

/* На телефоні блоки з фото стають широкими й низькими, а знімки
   вертикальні -- cover зрізав по 60-80 px зверху, тобто по голові.
   Даємо портретну пропорцію: зріз падає до ~10 px. */
@media (max-width: 768px) {
    .hero-media img,
    .card-media img,
    .about-home img {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 5;
        object-position: center 12%;
    }
}
