:root {
    --dark: #14251f;
    --dark-light: #20382f;
    --accent: #b8d58b;
    --background: #f5f6f2;
    --white: #ffffff;
    --text: #252b27;
    --muted: #777e78;
    --section-bg: #e9ede7; /* Фон для виділених секцій, як форма */
    --primary-btn: #8da467;
    --primary-btn-hover: #7b9256;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Важливо для коректних розмірів карток і форм */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: var(--background);
    color: var(--text);
}

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

button,
input,
select {
    font: inherit;
}

/* ================= CONTAINER & SECTIONS ================= */
.container {
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
}

.section {
    padding: 50px 0; /* Зменшений відступ для мобільних */
}

.section:last-child {
    padding: 0;
}

.section-bg {
    background: var(--section-bg);
}

.section-heading {
    margin-bottom: 30px;
}

.section-heading span,
.section-tag {
    display: block;
    color: var(--primary-btn);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-heading h2,
.section-title {
    font-size: 24px;
    font-weight: 800;
    color: #1a1e21;
    margin-bottom: 10px;
}

.section-desc {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
}

/* ================= HEADER ================= */
.header {
    background: var(--dark);
    color: var(--white);
    position: relative;
    z-index: 10;
}

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

.logo__inside {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.logo__icon {
    display: inline-block;
    width: 40px; /* Трохи менше для мобільних */
}

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

.logo__title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--accent);
}

.logo__main-title {
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: #d4ddd7;
}

.navigation {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--dark);
    padding: 20px;
    flex-direction: column;
    gap: 22px;
}

.navigation.active {
    display: flex;
}

.navigation a {
    font-size: 15px;
    color: #d4ddd7;
    transition: color 0.2s;
}

.navigation a:hover {
    color: var(--accent);
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: white;
}

/* ================= HERO ================= */
.hero {
    background:
        linear-gradient(
            90deg,
            rgba(13, 31, 24, .96),
            rgba(13, 31, 24, .72)
        ),
        url("../assets/main-momota.jpg") center/cover;
    color: white;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.hero__content {
    padding-top: 50px;
    padding-bottom: 50px;
}

.hero h1 {
    font-size: clamp(32px, 8vw, 64px);
    line-height: 1.2;
    margin: 15px 0 20px;
    max-width: 700px;
}

.hero h1 span {
    color: var(--accent);
}

.main-title {
    font-size: 15px;
    margin: 0 0 10px;
}

.button {
    display: inline-block;
    background: var(--accent);
    color: var(--dark);
    padding: 14px 22px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 14px;
    transition: background-color 0.2s;
}

.button:hover {
    background: var(--primary-btn-hover);
    color: white;
}

/* ================= JOB CARDS (VACANCY) ================= */
.vacancy-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 колонка на мобільних */
    gap: 20px;
    margin-top: 20px;
}

.job-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
    border: 1px solid #e7ebed;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.job-card__image-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    /* aspect-ratio: 16 / 9; Краще співвідношення для карток */
    overflow: hidden;
    background-color: #f0f1ec;
}

.job-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.job-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.job-card__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1e21;
}

.job-card__desc {
    font-size: 13px;
    color: #636e72;
    line-height: 1.45;
    margin-bottom: 18px;
    flex-grow: 1;
}

.job-card__btn {
    width: 100%;
    padding: 12px 0;
    border: 1.5px solid var(--primary-btn);
    background: transparent;
    color: #556c38;
    font-weight: 700;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.job-card__btn:hover {
    background-color: var(--primary-btn);
    color: #ffffff;
}

/* ================= RECRUITMENT FORM ================= */
.styled-form {
    background: #ffffff;
    padding: 24px 16px; /* Менші відступи для мобільних */
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 колонка на мобільних */
    gap: 16px;
}

.form-header {
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #2b3135;
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    height: 48px;
    padding: 0 16px;
    background-color: #fafbfc;
    border: 1px solid #dce1e5;
    border-radius: 4px;
    font-size: 14px;
    color: #1a1e21;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-btn);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(141, 164, 103, 0.15);
}

.form-consent {
    margin: 20px 0 25px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: #555e65;
    line-height: 1.4;
    cursor: pointer;
}

.checkbox-container input {
    margin-top: 2px;
    accent-color: var(--primary-btn);
    width: 16px;
    height: 16px;
}

.submit-btn {
    width: 100%;
    height: 52px;
    background-color: var(--primary-btn);
    color: #ffffff;
    border: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.submit-btn:hover {
    background-color: var(--primary-btn-hover);
}

/* ================= ABOUT SECTION ================= */
.about__paragraph {
    font-size: 16px; /* Трохи менший шрифт для мобільних */
    font-weight: 500;
    margin-bottom: 25px;
    line-height: 1.6;
    text-align: left; /* Justify на мобільному погано читається */
}

.contacts {
    margin-bottom: 70px;
}
/* Базові стилі тексту */
.link {
    font-size: 18px; 
    font-weight: 500;
    margin: 0;
    display: inline-block; /* Обов'язково для роботи transform */
    transition: transform 0.25s ease, color 0.25s ease;
    transform-origin: left center; /* Текст збільшується вправо, не зміщуючи іконку */
}

/* Базовий контейнер */
.contact-item {
    color: #4b5563; 
    text-decoration: none;
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    margin-left: -12px; 
    border-radius: 8px;
    transition: background-color 0.25s ease;
    cursor: pointer;
}

/* Базові стилі іконки */
.contact-item svg {
    width: 24px;
    height: 24px;
    transition: transform 0.25s ease, color 0.25s ease;
    transform-origin: center; /* Іконка збільшується від центру */
}

/* --- НАВЕДЕННЯ (HOVER) --- */
/* Одночасне збільшення іконки та тексту */
.contact-item:hover svg,
.contact-item:hover .link {
    transform: scale(1.05); /* Однаковий розмір збільшення для синхронності */
    color: #14421e; /* Ваш фірмовий зелений */
}

/* Легкий фон для всього блоку при наведенні */
.contact-item:hover {
    background-color: #f3f5f3; 
}

/* --- НАТИСКАННЯ (ACTIVE) --- */
/* Синхронне зменшення при кліку для ефекту натискання кнопки */
.contact-item:active svg,
.contact-item:active .link {
    transform: scale(1.05); 
}

/* --- ФОКУС (FOCUS) --- */
.contact-item:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(20, 66, 30, 0.25); 
    background-color: #f3f5f3;
}

/* ================= FOOTER ================= */
.footer {
    background: var(--dark);
    color: white;
    padding: 30px 0;
    text-align: center;
    font-size: 14px;
}


/* ================= MEDIA QUERIES (Адаптив) ================= */

/* TABLET (від 768px) */
@media (min-width: 768px) {
    .container {
        padding: 0 35px;
    }

    .section {
        padding: 70px 0;
    }

    .section-heading h2,
    .section-title {
        font-size: 28px;
    }

    .hero {
        min-height: 500px;
    }
    
    .logo__icon {
        width: 50px;
    }
    
    .logo__title {
        font-size: 20px;
    }
    
    .logo__main-title {
        font-size: 10px;
    }

    /* Сітка вакансій у 2 колонки */
    .vacancy-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    /* Форма у 2 колонки */
    .styled-form {
        padding: 40px;
    }

    .form-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .full-width {
        grid-column: 1 / -1;
    }

    .about__paragraph {
        font-size: 18px;
        text-align: justify;
    }

}


@media (max-width: 500px) {
    .job-card {
        height: 450px;
    }

    .job-card__img {
        object-position: 50% 35%;
    }
}


/* DESKTOP (від 1024px) */
@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
    }

    .section {
        padding: 90px 0;
    }

    .hero {
        min-height: 550px;
    }

    /* Навігація в рядок */
    .menu-toggle {
        display: none;
    }

    .navigation {
        display: flex;
        position: static;
        width: auto;
        flex-direction: row;
        padding: 0;
        gap: 30px;
    }

    /* Сітка вакансій у 3 або 4 колонки */
    .vacancy-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }

    .about__paragraph {
        font-size: 20px;
    }
}


/* .recruitment-section {
    margin: 0 auto;
} */

.form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 35px;
}

.contact-phones {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
}

.phones {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    line-height: 1.6;
    text-align: left;
    padding: 0;
    margin: 0;
}

.size-6 {
    width: 30px;        /* Ширина іконки */
    height: 30px;       /* Висота іконки */
    color: #4B5563;     /* Основний колір іконки (наприклад, темно-сірий) */
    transition: all 0.3s ease; /* Плавна зміна стилів */
    cursor: pointer;
    margin: 0 10px 0 0;
}

/* Щоб текст у полі з датою мав такий самий шрифт, як і скрізь */
input[type="date"] {
    font-family: inherit;
    /* Якщо потрібно, щоб placeholder був сірим (до вибору дати) */
    color: #333; 
}

/* Робимо поле світлішим, якщо дата ще не обрана (імітація placeholder) */
input[type="date"]:invalid::-webkit-datetime-edit {
    color: #999;
}










/* Базові стилі для секції */
.academy-section {
  padding: 60px 20px;
  background-color: #ffffff; /* Контрастує з сірим фоном форми, якщо він є */
}

/* Перевикористай свій існуючий клас контейнера, якщо він є */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Стиль маленького заголовка (як над картками) */
.section-subtitle {
  font-size: 13px;
  color: #7a7a7a;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 30px;
  font-weight: 600;
}

.academy-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.academy-title {
  font-size: 28px;
  color: #1a1a1a;
  margin-bottom: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.academy-description {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 32px;
}

.academy-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.academy-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: #7b9472; /* Оливковий колір твоєї кнопки на Hero екрані */
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

.academy-benefits strong {
  display: block;
  font-size: 16px;
  color: #222;
  margin-bottom: 4px;
}

.academy-benefits span {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.academy-media {
  width: 100%;
}

.academy-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px; /* Відповідає заокругленню твоїх карток вакансій */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Адаптація для планшетів та десктопів */
@media (min-width: 992px) {
  .academy-content {
    flex-direction: row;
    align-items: center;
    gap: 60px;
  }
  
  .academy-info {
    flex: 1;
  }
  
  .academy-media {
    flex: 1;
    height: 450px; /* Фіксуємо висоту для красивого відображення поруч із текстом */
  }
}


.academy-section {
    background: var(--background);
}

.link-nadpsu {
    color: var(--primary-btn);
    text-decoration: underline;
}