/* БАЗА ------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'UAFSans OnBoard Stencil', sans-serif;
    font-weight: 500;
    background-color: #050910; /* темний фон */
    color: #ffffff;
    line-height: 1.6;
    padding-top: 56px; /* висота хедера */
    text-transform: uppercase;
}

button {
    font-family: 'UAFSans OnBoard Stencil', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
}

/* ХЕДЕР ----------------------------------------------------------- */
/* Тут змінюється висота хедера. Щоб зробити шапку менше/більше –
   міняй height або padding. */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background-color: #020308;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 1000;
    border-bottom: 1px solid #111722;
}

.logo img {
    height: 44px; /* розмір логотипу */
    vertical-align: middle;
}

.logo {
    cursor: pointer;
}

nav a {
    color: #f5f5f5;
    margin-left: 18px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 0.05em;
}

nav a:hover {
    color: #f0eded;
}

/* Burger hidden on desktop */
.burger {
    display: none;
}

.page-content {
    position: relative;
    z-index: 1;
}

/* СЕКЦІЇ ---------------------------------------------------------- */
/* Кожна секція (окрім header/footer) має мінімальну висоту ~повний екран.
   Якщо треба вище/нижче — міняй min-height. */
section {
    min-height: 98vh;
    padding: 60px 16px;
}

section h2 {
    font-size: 32px;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
}

section p {
    max-width: 800px;
    margin: 0 auto 10px auto;
    text-align: center;
}

#contacts p {
    margin-bottom: 6px;
}

.video-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-logo {
    max-width: 200px;
    width: 100%;
    margin-bottom: 1rem;
}

#about {
    display: flex;
    flex-direction: column;
    align-items: center; /* horizontal centering */
    text-align: center;
    margin-top: 5rem;
}

#vacancies {
    display: flex;
    flex-direction: column;
    align-items: center; /* horizontal centering */
    text-align: center;
}

#vacancies h2 {
    margin-bottom: 1.5rem;
}

/* Grid layout */
.vacancies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;

    height: calc(100% - 4rem); /* leave space for h2 */
    overflow-y: auto;
    padding-right: 0.5rem;
    padding-top: 0.5rem;
}

.vacancies-grid::-webkit-scrollbar {
    width: 6px;
}

.vacancies-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
}

.vacancies-grid::-webkit-scrollbar-track {
    background: transparent;
}

/* Card */
.vacancy-card {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 1.25rem 3rem 1.25rem 1.5rem;

    background-color: rgba(5, 9, 16, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;

    text-decoration: none;
    color: #fff;

    transition:
            border-color 0.2s ease,
            background-color 0.2s ease,
            box-shadow 0.2s ease;
}

@media (min-width: 769px) {
    /* When there's only 1 item in the last row */
    .vacancy-card:last-child:nth-child(3n + 1) {
        grid-column: 2;
    }
}

/* Title */
.vacancy-title {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Arrow */
.vacancy-arrow {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);

    font-size: 1.5rem;
    opacity: 0.6;

    /* NO position or transform animation */
    transition: opacity 0.2s ease;
}

.vacancy-card:hover .vacancy-arrow {
    opacity: 1;
}

.vacancy-card:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background-color: rgba(5, 9, 16, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Mobile */
@media (max-width: 768px) {
    .vacancies-grid {
        grid-template-columns: 1fr;
    }
}

#contacts {
    background-size: cover;
    background-position: center;
}

/* АНКЕТА */
/* Обгортка форми */
.contact-form-wrapper {
    max-width: 480px;
    margin: 24px auto 0 auto;
    background: rgba(0, 0, 0, 0.65); /* напівпрозорий фон, щоб текст читався на фоні */
    padding: 20px 24px;
    border-radius: 10px;
    border: 1px solid #111722;
    backdrop-filter: blur(4px);
}

/* Заголовок форми */
.contact-form-wrapper h3 {
    text-align: center;
    margin-bottom: 16px;
    color: #ffffff;
}

/* Саме <form> */
#contactForm {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Підпис + поля */
#contactForm label {
    display: block;
    font-size: 14px;
    color: #e0e0e0;
}

/* Інпут та textarea – однаковий стиль */
#contactForm input,
#contactForm textarea {
    width: 100%;
    margin-top: 4px;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #222a3a;
    background-color: #050910;
    color: #ffffff;
    font-size: 14px;
}

#contactForm textarea {
    min-height: 80px;
    resize: vertical;
}

/* Кнопка відправки */
.contact-submit-btn {
    margin-top: 8px;
    padding: 10px 16px;
    border-radius: 6px;
    border: none;
    background-color: #000035;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.contact-submit-btn:hover {
    background-color: #00002A;
}

/* Статус (успіх/помилка) */
.contact-status {
    margin-top: 8px;
    font-size: 13px;
    text-align: center;
}

.error {
    color: #d00;
    font-size: 0.85em;
    min-height: 1em;
    display: block;
}

input.invalid, textarea.invalid {
    border-color: #d00;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-scroll {
    display: inline-block;
    margin-top: 12px;

    font-size: 1.2rem;        /* bigger text */
    padding: 14px 24px;       /* bigger button */
    border-radius: 10px;      /* rounder corners */

    background-color: #000035;
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.15s;

    opacity: 0.9;
}

.btn-scroll:hover {
    background-color: #00002A;
    transform: scale(1.03);
}

.btn-scroll:focus-visible {
    outline: 2px solid #00002A;
    outline-offset: 2px;
}

#socials {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.socials-section {
    padding: 48px 16px;
    text-align: center;
}

.socials-section h2 {
    margin-bottom: 24px;
    padding-top: 1rem;
}

.socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.socials a {
    width: 56px;
    height: 56px;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    line-height: 1;
    background-color: #ffffff;
    color: #050910;
    font-size: 26px;
    text-decoration: none;
    transition: transform 0.2s, background-color 0.2s;
}

.socials a:hover {
    background-color: #f0eded;
    transform: translateY(-3px);
}

.phone {
    color: #ffffff;
    text-decoration: none;
}

/* АДАПТИВ --------------------------------------------------------- */
@media (max-width: 768px) {
    section {
        padding: 4rem 1rem;
    }

    section h2 {
        font-size: 26px;
    }

    .contact-form-wrapper {
        margin-top: 20px;
        padding: 16px 18px;
    }

    .socials {
        gap: 12px;
    }

    .socials a {
        width: 46px;
        height: 46px;
    }
}

@media (max-width: 480px) {
    header {
        height: 56px;
        padding: 0 16px;
    }

    /* Burger button */
    .burger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
    }

    .burger span {
        width: 22px;
        height: 2px;
        background: #f5f5f5;
        display: block;
    }

    /* Mobile menu */
    .nav-menu {
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: #020308;
        display: none;
        flex-direction: column;
        padding: 12px 0;
        border-bottom: 1px solid #111722;
    }

    .nav-menu a {
        margin: 10px 0;
        text-align: center;
        font-size: 14px;
    }

    .nav-menu.open {
        display: flex;
    }

    nav a {
        display: inline-block;
        margin: 0 8px;
        font-size: 13px;
    }
}