/* ── Мобільна Версія — < 1280px ── */

@media (max-width: 1279px) {
  /* ── Блок Прокрутки При Відкритому Меню ── */
  body.menu-open {
    overflow: hidden;
  }

  /* ── Хедер ── */
  .site-header {
    height: 56px;
    justify-content: flex-start;
    padding: 0 20px;
  }

  body.menu-open .site-header {
    background: rgba(6, 24, 32, 0.94);
    backdrop-filter: blur(36px);
    -webkit-backdrop-filter: blur(36px);
    border-bottom: 1px solid rgba(255, 231, 186, 0.3);
  }

  /* На мобільному ховаємо десктопну навігацію */
  .site-nav {
    display: none;
  }

  .mobile-header-brand {
    display: flex;
    align-items: center;
    max-width: calc(100% - 72px);
    margin-right: 56px;
    text-decoration: none;
    opacity: 0;
    transform: translateY(-2px);
    pointer-events: none;
    transition:
      opacity 0.22s ease,
      transform 0.22s ease;
  }

  .site-header.scrolled .mobile-header-brand,
  body.menu-open .mobile-header-brand {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mobile-header-brand__img {
    display: block;
    width: min(230px, calc(100vw - 116px));
    height: auto;
    max-width: 100%;
  }

  /* Показуємо гамбургер */
  .burger {
    display: flex;
  }

  /* ── Hero ── */
  .hero {
    min-height: auto;
    overflow: hidden;
  }

  .hero--half {
    overflow: hidden;
    min-height: auto;
  }

  .hero__bg-text {
    display: none;
  }

  .hero__title {
    font-size: 24px;
  }

  .hero--half {
    padding-top: 0 !important;
  }

  .site-pattern {
    background-size: 110px 110px;
  }

  /* Logo — centred on mobile for all hero variants.
     !important needed because hero.css loads after responsive.css */
  section.hero--half .hero__logo-wrap,
  .hero__logo-wrap {
    position: absolute !important;
    top: 70px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    filter: drop-shadow(0 3px 6px rgba(51, 26, 5, 0.5)) drop-shadow(0 12px 12px rgba(51, 26, 5, 0.4))
      drop-shadow(0 26px 16px rgba(51, 26, 5, 0.2)) !important;
  }

  /* logo_stacked.svg displayed on mobile (via <source> in <picture>) */
  .hero__logo-wrap img {
    width: min(300px, 90vw) !important;
    height: auto !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero__logo-union {
    position: static !important;
    width: 100% !important;
    flex: none !important;
    min-width: 0 !important;
    align-items: center !important;
    text-align: center !important;
  }
  .hero__logo-img {
    position: static !important;
    width: clamp(110px, 20svh, 158px) !important;
    height: auto !important;
    flex-shrink: 0 !important;
  }
  .hero__logo-union img {
    width: min(300px, 90vw) !important;
    height: auto !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .hero__logo-union picture {
    position: absolute !important;
    top: 70px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  /* Flex column on inner to enable order-based reordering.
     padding-top accounts for the absolute logo: top: 70px + ~400px height (logo_stacked.svg at 300px wide = 400px tall) + 30px gap */
  .hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0 !important;
  }

  .hero__logo-wrap {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 40px auto 0 !important;
    display: block !important;
  }

  .hero__logo-wrap picture,
  .hero__logo-union picture {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
  }

  .hero__logo-wrap img {
    width: min(300px, 90vw) !important;
    height: auto !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero__photo {
    position: relative !important;
    top: -100px !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
    transform: none !important;
    order: 2 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .hero__photo img {
    display: block !important;
    width: 80% !important;
    object-fit: contain !important;
    margin: 0 auto !important;
  }

  /* Hero images — container 100% width, img 80% width + 80vh height, centered */
  .index2-hero__image,
  .about-hero__image-wrap,
  .vacancies-hero__image-wrap,
  .bpla-hero__image-wrap,
  .reb-hero__image-wrap,
  .zakrip-hero__image-wrap,
  .donate-hero__image,
  .zsu-transformation-hero__image,
  .join-success-hero__image,
  .success-hero__image,
  .join-zsu-hero__image-wrap,
  .zapyt-hero__image-wrap,
  .join-zsu-contract-hero__image-wrap {
    position: relative !important;
    top: -100px !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
    transform: none !important;
    display: flex !important;
    justify-content: center !important;
    order: 2;
  }

  .index2-hero__image img,
  .about-hero__image-wrap img,
  .vacancies-hero__image-wrap img,
  .bpla-hero__image-wrap img,
  .reb-hero__image-wrap img,
  .zakrip-hero__image-wrap img,
  .donate-hero__image img,
  .zsu-transformation-hero__image img,
  .join-success-hero__image img,
  .success-hero__image img,
  .join-zsu-hero__image-wrap img,
  .zapyt-hero__image-wrap img,
  .join-zsu-contract-hero__image-wrap img {
    display: block !important;
    width: 64% !important;
    object-fit: contain !important;
    margin: 0 auto !important;
  }

  /* index2-hero: compact vertical layout on mobile */
  .index2-hero__inner,
  .donate-hero__inner,
  .zsu-transformation-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-top: 40px;
  }

  .index2-hero__logo {
    padding: 0;
  }

  .index2-hero__image {
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* about-hero: compact vertical layout on mobile */
  .about-hero__inner,
  .join-zsu-hero__inner,
  .zapyt-hero__inner,
  .join-zsu-contract-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-top: 40px;
  }

  .about-hero__image-wrap,
  .donate-hero__image,
  .zsu-transformation-hero__image,
  .join-success-hero__image,
  .success-hero__image,
  .join-zsu-hero__image-wrap,
  .zapyt-hero__image-wrap,
  .join-zsu-contract-hero__image-wrap {
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* vacancies-hero: compact vertical layout on mobile */
  .vacancies-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-top: 40px;
  }

  /* vacancies-hero image is outside __inner — needs explicit mobile rules */
  .vacancies-hero__image-wrap {
    position: static !important;
    top: auto !important;
    width: 100% !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: center !important;
  }

  /* bpla-hero: compact vertical layout on mobile */
  .bpla-hero__inner,
  .reb-hero__inner,
  .zakrip-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-top: 40px;
  }

  /* bpla-hero image is outside __inner — needs explicit mobile rules */
  .bpla-hero__image-wrap,
  .reb-hero__image-wrap,
  .zakrip-hero__image-wrap {
    position: static !important;
    top: auto !important;
    width: 100% !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: center !important;
  }

  /* All hero content blocks: reset desktop padding-top and center on mobile */
  .index2-hero__content,
  .about-hero__content,
  .vacancies-hero__content,
  .bpla-hero__content,
  .reb-hero__content,
  .zakrip-hero__content,
  .donate-hero__content,
  .zsu-transformation-hero__content,
  .join-zsu-hero__content,
  .zapyt-hero__content,
  .success-hero__content,
  .join-zsu-contract-hero__content {
    padding-top: 0 !important;
    max-width: 100% !important;
    text-align: center !important;
    width: 100% !important;
    order: 3;
  }

  /* Social icons — vertical column at right side, top: 70px (same level as logo).
     Use higher specificity to override base hero.css which loads after responsive.css */
  section.hero .hero__social,
  .hero__social {
    position: absolute;
    top: 70px;
    right: 20px;
    left: auto;
    transform: none;
    flex-direction: column;
    align-items: center;
    margin-top: 0;
  }

  .hero__content {
    position: relative !important;
    padding-top: 0 !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    padding-left: 20px;
    padding-right: 20px;
    order: 3;
  }

  .index-hero__content {
    margin-top: 0px !important;
  }

  .hero__scroll-arrow,
  .index2-hero .hero__scroll-arrow,
  .about-hero .hero__scroll-arrow,
  .vacancies-hero .hero__scroll-arrow,
  .bpla-hero .hero__scroll-arrow,
  .reb-hero .hero__scroll-arrow,
  .zakrip-hero .hero__scroll-arrow,
  .donate-hero .hero__scroll-arrow,
  .zsu-transformation-hero .hero__scroll-arrow,
  .join-zsu-hero .hero__scroll-arrow,
  .zapyt-hero .hero__scroll-arrow,
  .join-zsu-contract-hero .hero__scroll-arrow,
  .join-success-hero .hero__scroll-arrow,
  .success-hero .hero__scroll-arrow,
  .vac-hero .hero__scroll-arrow,
  .decom-hero .hero__scroll-arrow {
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    top: 0 !important;
    margin: 20px auto 40px !important;
    animation: heroScrollArrowFloatTablet 2.4s ease-in-out infinite !important;
  }

  @keyframes heroScrollArrowFloatTablet {
    0%,
    100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(8px);
    }
  }

  /* CTA — по центру в нормальному потоці. Order: після лого, перед інфо */
  .hero__cta {
    position: static;
    width: 100%;
    max-width: 344px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    order: 2;
  }

  .hero__cta-btn,
  .hero__cta-btn--ghost {
    width: 100%;
    min-height: 50px;
    height: auto;
    padding: 12px 20px;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
    box-sizing: border-box;
  }

  /* Universal Action Buttons text wrapping when narrow */
  .hero__cta-btn,
  .hero__cta-btn--ghost,
  .btn-cta,
  .btn-cta--secondary,
  .join__submit,
  .join__submit-btn,
  .donation-btn,
  .donations-hero__btn,
  .our-news__btn {
    white-space: normal !important;
    text-align: center;
    line-height: 1.25;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .hero__cta-sub {
    margin-top: 0;
    color: #ffe7ba;
    text-align: center;
    text-shadow:
      0 1px 4px rgba(6, 24, 32, 0.85),
      0 0 12px rgba(6, 24, 32, 0.6);
  }

  /* hero--half: CTA normal flow, centred */
  .hero--half .hero__cta {
    align-items: center;
    margin: 0 auto;
  }

  /* Лого — default order (first in DOM) */

  /* Інфо-блок — після CTA */
  .hero__under-box {
    position: static;
    transform: translateY(-30px);
    width: 100%;
    max-width: 344px;
    margin-top: 0;
    padding: 0;
    justify-self: start;
    flex-shrink: 0;
    order: 4;
  }

  /* Under-box with visible info-cols (index2): keep the info-cols in place
     while the arrow nudge (translateY) is expressed on the under-box. */
  .hero__under-box:has(.hero__info-cols .hero__info-item) .hero__info-cols {
    transform: translateY(30px);
  }

  .hero__under-box::before {
    display: none; /* радіальний градієнт прибираємо */
  }

  .hero__divider {
    display: none;
  }

  .hero__divider img {
    width: 62px;
    height: 18px;
    /* підмінюємо svg розмір */
  }

  /* Інфо колонки → одна вертикальна з лінією зліва */
  .hero__info-cols {
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100%;
    height: auto;
    padding-top: 32px;
    padding-left: 18px;
    align-items: flex-start;
    justify-content: flex-start;
    border-left: 2px solid rgba(255, 231, 186, 0.35);
    margin-left: 30px;
    text-align: left !important;
  }
  .hero__info-cols:empty {
    display: none;
  }
  .about__info-cols {
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100%;
    height: auto;
    padding-top: 32px;
    padding-left: 18px;
    align-items: flex-start;
    justify-content: flex-start;
    border-left: 2px solid rgba(255, 231, 186, 0.35);
    margin-left: 30px;
  }

  .hero__info-col {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    gap: 20px;
  }
  .about__info-col {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    gap: 20px;
  }

  .hero__info-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    gap: 4px;
    min-width: 0;
  }
  .about__info-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    gap: 4px;
    min-width: 0;
  }

  .info-label {
    font-size: 15px;
    line-height: 1.25;
    white-space: normal;
  }
  .about-info-label {
    font-size: 15px;
    line-height: 1.25;
    white-space: normal;
  }

  .info-value {
    font-size: 17px;
    line-height: 1.25;
    overflow-wrap: anywhere;
    white-space: normal;
  }
  .about-info-value {
    font-size: 17px;
    line-height: 1.25;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  /* ── Про Батальйон ── */
  .about__body {
    padding: 0;
  }

  .about__inner {
    gap: 32px;
  }

  .about__title {
    width: 100%;
    font-size: 32px;
    padding: 0 20px;
    text-align: left;
  }

  .about__content {
    width: 100%;
    gap: 32px;
  }

  /* Прибираємо вертикальну лінію зліва */
  .about__content::before {
    display: none;
  }

  .about__main {
    width: 100%;
    padding: 0 40px;
  }

  .about__text {
    width: 100%;
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* Карусель фото — горизонтальний скрол + scroll-snap */
  .about__photos {
    width: 100%;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 0 20px;
    /* Ховаємо скролбар */
    scrollbar-width: none;
  }

  .about__photos::-webkit-scrollbar {
    display: none;
  }

  .about__photo {
    flex: 0 0 auto;
    width: calc(100vw - 56px); /* peek ~16px з боку */
    max-width: 360px;
    height: 210px;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  /* Точки під каруселлю фото */
  .about__dots {
    display: flex;
    gap: 8px;
    width: 100%;
    padding: 0 20px;
    justify-content: flex-start;
    margin-top: 4px;
  }

  .about__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 231, 186, 0.3);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease;
  }

  .about__dot.active {
    background: #ffe7ba;
  }

  /* ── Принципи ── */
  .principles__inner {
    gap: 32px;
    padding: 0 20px;
  }

  .principles__title {
    width: 100%;
    font-size: 32px;
    text-align: left;
  }

  .principles__grid {
    grid-template-columns: 1fr;
    gap: 18px;
    width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .principle__name {
    font-size: 18px;
  }

  .principle__desc {
    font-size: 15px;
    padding-left: 32px;
    line-height: 1.4;
  }

  /* ── Вакансії ── */
  .vacancies {
    padding: 8px 0 12px;
  }

  .vacancies__inner {
    gap: 20px;
  }

  .vacancies__title {
    width: 100%;
    font-size: 32px;
    padding: 0 20px;
    text-align: left;
  }

  /* Каруселька на мобільному: горизонтальний scroll-snap */
  .vacancies__carousel {
    width: 100%;
    gap: 0;
  }

  /* Стрілки — ховаємо на мобільному */
  .vacancies__arrow {
    display: none;
  }

  .vacancies__track-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 0 20px;
    scrollbar-width: none;
    touch-action: pan-x;
  }

  .vacancies__track-wrap::-webkit-scrollbar {
    display: none;
  }

  .vacancies__track {
    /* JS прибере transform на мобільному */
    transition: none;
    gap: 12px;
  }

  /* Сторінки на мобільному "розкладаються" — кожна картка стає окремим слайдом */
  .vacancies__page {
    display: grid;
    grid-template-columns: 1fr;
    width: calc(100vw - 48px); /* peek ~12px з боку */
    max-width: 360px;
    flex-shrink: 0;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    gap: 12px;
  }

  /* ── Контракт 18-24 ── */
  .contract {
    padding: 8px 16px 12px;
  }

  .contract__card {
    width: 100%;
    padding: 24px 20px;
  }

  .contract__content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .contract__icon {
    width: 120px;
    height: 120px;
  }

  .contract__icon img {
    width: 96px;
    height: 96px;
  }

  .contract__title {
    font-size: 24px;
  }

  .contract__text {
    font-size: 16px;
  }

  /* ── Форма ── */
  .join {
    padding: 8px 16px 12px;
  }

  .join__card {
    width: 100%;
    padding: 40px 20px;
    gap: 28px;
  }

  .join__title {
    font-size: 28px;
  }

  .join__subtitle {
    font-size: 15px;
    margin-top: -12px;
  }

  .join__form {
    gap: 22px;
  }

  /* Поля — одна колонка */
  .join__fields {
    flex-direction: column;
    gap: 14px;
    width: 100%;
    align-items: center;
  }

  .join__fields > .join__input {
    width: 100%;
    max-width: 380px;
    height: 48px;
  }

  .join__col {
    gap: 14px;
    width: 100%;
    align-items: center;
  }

  .join__col .join__input,
  .join__input {
    width: 100%;
    max-width: 380px;
    height: 48px;
  }

  .join__textarea {
    width: 100%;
    min-height: 100px;
  }

  .join__captcha {
    gap: 8px;
  }

  .join__captcha-header {
    flex-direction: row;
  }

  .join__captcha-img {
    height: 42px;
  }

  .join__toggle-wrap {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .join__toggle {
    width: 100%;
  }

  .join__toggle-btn {
    flex: 1;
    min-width: 0;
  }

  .join__toggle-btn span {
    width: 100%;
  }

  .join__toggle-label {
    font-size: 15px;
  }

  /* Чекбокс */
  .join__checkbox {
    width: 100%;
    align-items: flex-start;
  }

  .join__checkbox-text {
    font-size: 14px;
    line-height: 1.4;
  }

  .join__submit {
    width: 100%;
    max-width: 320px;
  }

  /* ── Футер ── */
  .site-footer {
    padding: 0 20px 16px;
  }

  .footer-social__caption {
    white-space: normal;
  }

  .site-footer__inner {
    flex-direction: column;
    gap: 36px;
  }

  .footer-nav {
    align-items: center;
    text-align: center;
  }

  .footer-nav__list {
    align-items: center;
  }

  .footer-info {
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .footer-info__email {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .footer-info__label,
  .footer-info__email-link,
  .footer-info__link,
  .footer-info__copy {
    white-space: normal;
    font-size: 14px;
  }

  .footer-info__links {
    flex-wrap: wrap;
    justify-content: center;
    font-size: 15px;
  }

  /* ── Legal Sections ── */
  .legal-section {
    padding: 48px 16px 64px;
  }

  .legal-section__card {
    width: 100%;
    padding: 40px 20px;
  }

  .legal-section__title {
    font-size: 28px;
  }

  .legal-section__date {
    font-size: 14px;
    margin: 0 0 32px 0;
  }

  .legal-section__content {
    gap: 24px;
  }

  .legal-section__heading {
    font-size: 20px;
  }

  .legal-section__text {
    font-size: 15px;
  }

  .legal-section__list-item {
    font-size: 15px;
  }

  /* ── Кар'єрні Можливості ── */
  .career {
    padding: 16px 16px 20px;
  }

  .career__card {
    width: 100%;
    padding: 24px 20px;
    gap: 20px;
  }

  .career__title {
    font-size: 28px;
  }

  .career__content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .career__benefits-title {
    font-size: 22px;
  }

  .career__benefits-item {
    gap: 12px;
    padding-bottom: 12px;
  }

  .career__benefits-icon {
    width: 20px;
    height: 20px;
  }

  .career__benefits-text {
    font-size: 15px;
  }

  .career__areas-title {
    font-size: 22px;
  }

  .career__areas-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .career__area-item {
    padding: 20px;
  }

  .career__area-icon {
    width: 40px;
    height: 40px;
  }

  .career__area-name {
    font-size: 18px;
  }

  .career__area-desc {
    font-size: 14px;
  }

  /* ── Наші Новини ── */
  .our-news {
    margin-top: -80px;
    padding: 0 16px 20px;
  }

  .our-news__card {
    width: 100%;
    padding: 0 0 24px;
    gap: 20px;
  }

  .our-news__title {
    font-size: 28px;
  }

  .our-news__grid {
    gap: 20px;
  }

  .our-news__row {
    gap: 16px;
  }

  .our-news__more {
    font-size: 16px;
  }

  /* ── Підтримати Батальйон ── */
  .donations {
    padding: 16px 16px 20px;
  }

  .donations__card {
    width: 100%;
    padding: 24px 20px;
    gap: 20px;
  }

  .donations__title {
    font-size: 28px;
  }

  .donations__grid {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 100%;
  }

  .donations__col {
    gap: 24px;
  }

  .donations__col--banks {
    gap: 32px;
  }

  .donation-item__icon {
    width: 40px;
    height: 40px;
  }

  .donation-item__name {
    font-size: 22px;
  }

  .donation-item__number {
    font-size: 16px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-all;
    min-width: 0;
  }

  .donation-item__details {
    flex-wrap: wrap;
    min-width: 0;
  }

  .donation-item,
  .donations__col {
    min-width: 0;
  }

  .donation-item__copy {
    font-size: 14px;
  }

  .donation-item__link {
    height: 40px;
    padding: 0 20px;
    font-size: 14px;
  }
}

/* ── Мобільна Версія Тільки — < 768px ── */
/* ── ПЛАНШЕТНА ВЕРСІЯ — 768px – 1279px ── */

@media (min-width: 768px) and (max-width: 1279px) {
  /* ── Header ── */
  .site-header {
    height: 64px;
    padding: 0 32px;
  }

  .burger {
    right: 32px;
  }

  .mobile-header-brand__img {
    width: min(260px, calc(100vw - 140px));
  }

  /* ── Hero ── */
  .hero__content {
    padding: 30px 0 20px;
  }

  .hero__title {
    font-size: 30px;
  }

  .hero--half {
    padding-top: 0 !important;
  }

  .hero__inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 40px 24px !important;
  }

  .hero__content {
    padding-top: 0 !important;
  }

  .hero__bg {
    background-size: auto 86%;
    background-repeat: no-repeat;
    background-position: 43% 0%;
  }

  .hero__mobile-stage {
    min-height: calc(100svh - 80px);
    min-height: calc(100dvh - 80px);
  }

  .hero__top-group {
    padding-top: 12px;
  }

  .hero__bottom-group {
    gap: 28px;
    padding-top: 64px;
    padding-bottom: max(32px, env(safe-area-inset-bottom));
  }

  /* Логотип — збільшений */

  .hero__logo-img {
    width: clamp(140px, 22svh, 220px);
  }

  .hero__logo-union img {
    width: min(400px, 85vw);
  }

  .hero__logo-union picture {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
  }

  /* CTA — ширший ніж на телефоні */
  .hero__cta {
    max-width: 420px;
  }

  .hero__cta-btn {
    min-height: 60px;
    height: auto;
    font-size: 22px;
    padding: 12px 24px;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
  }

  .hero__cta-sub {
    margin-top: 0;
    font-size: 18px;
    color: #ffe7ba;
  }

  /* Інфо-блок — 2 колонки замість 1 */
  .hero__under-box {
    max-width: 640px;
    margin-top: 16px;
  }

  .hero__info-cols:empty {
    display: none;
  }
  .about__info-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;
    gap: 24px 40px;
    padding: 24px 28px;
    border: 2px solid rgba(255, 231, 186, 0.35);
    border-radius: 0;
  }

  .hero__info-col {
    display: contents;
  }
  .about__info-col {
    display: contents;
  }

  .info-label {
    font-size: 16px;
  }
  .about-info-label {
    font-size: 16px;
  }

  .info-value {
    font-size: 18px;
  }
  .about-info-value {
    font-size: 18px;
  }

  /* ── Про Батальйон ── */
  .about__body {
    padding: 0;
  }

  .about__inner {
    gap: 48px;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 40px;
  }

  .about__title {
    font-size: 40px;
    padding: 0;
    text-align: center;
  }

  .about__content {
    gap: 40px;
  }

  .about__main {
    padding: 0 40px;
    width: 100%;
  }

  .about__text {
    width: 100%;
    font-size: 18px;
    line-height: 1.55;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* Фото — 2×2 grid замість горизонтальної каруселі */
  .about__photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
  }

  .about__photo {
    flex: none;
    width: 100%;
    max-width: none;
    height: 210px;
    scroll-snap-align: none;
  }

  .about__dots {
    display: none;
  }

  /* ── ПРИНЦИПИ — 2 колонки ── */
  .principles__inner {
    gap: 48px;
    padding: 0 40px;
    max-width: 760px;
    margin: 0 auto;
  }

  .principles__title {
    font-size: 40px;
    text-align: center;
  }

  .principles__grid {
    grid-template-columns: 1fr;
    gap: 18px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .principle__name {
    font-size: 20px;
  }

  .principle__desc {
    font-size: 16px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* ── ВАКАНСІЇ — 2×2 картки зі стрілками ── */
  .vacancies {
    padding: 40px 0 48px;
  }

  .vacancies__inner {
    gap: 40px;
  }

  .vacancies__title {
    max-width: 720px;
    margin: 0 auto;
    font-size: 40px;
    padding: 0 40px;
    text-align: center;
  }

  .vacancies__carousel {
    width: 100%;
    gap: 16px;
    padding: 0 16px;
    justify-content: center;
  }

  .vacancies__arrow {
    display: flex;
    flex-shrink: 0;
  }

  .vacancies__track-wrap {
    width: 672px;
    max-width: 100%;
    overflow: hidden;
    padding: 0;
    scroll-snap-type: none;
    flex-shrink: 1;
  }

  .vacancies__track {
    transition: transform 0.4s ease;
    gap: 0;
  }

  .vacancies__page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    width: 672px;
    max-width: 100%;
    gap: 16px;
    flex-shrink: 0;
    scroll-snap-align: none;
  }

  /* ── Контракт 18-24 ── */
  .contract {
    padding: 16px 32px 20px;
  }

  .contract__card {
    width: 100%;
    max-width: 720px;
    padding: 32px 40px;
  }

  .contract__content {
    gap: 16px;
  }

  .contract__icon {
    width: 120px;
    height: 120px;
  }

  .contract__icon img {
    width: 96px;
    height: 96px;
  }

  .contract__title {
    font-size: 28px;
  }

  .contract__text {
    font-size: 17px;
  }

  /* ── JOIN — 2-колонкова форма у вужчій картці ── */
  .join {
    padding: 28px 32px 32px;
  }

  .join__card {
    width: 100%;
    max-width: 720px;
    padding: 32px 40px;
    gap: 24px;
  }

  .join__title {
    font-size: 36px;
  }

  .join__subtitle {
    font-size: 17px;
    margin-top: -14px;
  }

  .join__form {
    gap: 28px;
  }

  .join__fields {
    flex-direction: row;
    gap: 16px;
    width: 100%;
    justify-content: center;
    align-items: center;
  }

  .join__fields > .join__input {
    flex: 1 1 0;
    max-width: 290px;
    width: 100%;
    min-width: 0;
  }

  .join__col {
    gap: 16px;
    width: 300px;
  }

  .join__col .join__input {
    width: 300px;
    height: 50px;
  }

  .join__textarea {
    width: 300px;
    min-height: 100px;
  }

  .join__toggle-wrap {
    width: auto;
  }

  .join__toggle-label {
    font-size: 16px;
  }

  .join__checkbox {
    width: 100%;
    max-width: 480px;
  }

  .join__checkbox-text {
    font-size: 15px;
    line-height: 1.45;
  }

  .join__submit {
    width: 300px;
    max-width: 300px;
  }

  /* ── FOOTER — 2 колонки (щит + текст) ── */
  .site-footer {
    padding: 20px 40px 12px;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: center;
    gap: 32px;
    justify-content: center;
  }

  .footer-nav {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .footer-nav__list {
    align-items: center;
    gap: 8px;
  }

  .footer-nav__link {
    font-size: 15px;
    padding: 2px 0;
  }

  .footer-logo {
    display: grid;
  }

  .footer-info {
    align-items: center;
    text-align: center;
  }

  .footer-info__label,
  .footer-info__email-link,
  .footer-info__copy {
    white-space: normal;
    font-size: 15px;
  }

  /* ── Legal Sections ── */
  .legal-section {
    padding: 64px 32px 80px;
  }

  .legal-section__card {
    width: 100%;
    max-width: 720px;
    padding: 56px 40px;
  }

  .legal-section__title {
    font-size: 36px;
  }

  .legal-section__date {
    font-size: 15px;
    margin: 0 0 40px 0;
  }

  .legal-section__content {
    gap: 28px;
  }

  .legal-section__heading {
    font-size: 22px;
  }

  .legal-section__text {
    font-size: 16px;
  }

  .legal-section__list-item {
    font-size: 16px;
  }

  /* ── Кар'єрні Можливості ── */
  .career {
    padding: 16px 0 20px;
  }

  .career__card {
    width: 100%;
    max-width: 720px;
    padding: 32px 40px;
    gap: 32px;
  }

  .career__title {
    font-size: 34px;
  }

  .career__content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .career__benefits-title {
    font-size: 24px;
  }

  .career__benefits-item {
    gap: 14px;
    padding-bottom: 14px;
  }

  .career__benefits-icon {
    width: 22px;
    height: 22px;
  }

  .career__benefits-text {
    font-size: 16px;
  }

  .career__areas-title {
    font-size: 24px;
  }

  .career__areas-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .career__area-item {
    padding: 22px;
  }

  .career__area-icon {
    width: 44px;
    height: 44px;
  }

  .career__area-name {
    font-size: 19px;
  }

  .career__area-desc {
    font-size: 14px;
  }

  /* ── Наші Новини ── */
  .our-news {
    padding: 0 20px 32px;
  }

  .our-news__card {
    width: min(1100px, 100%);
    max-width: 1100px;
    padding: 0 0 40px;
    gap: 32px;
  }

  .our-news__title {
    font-size: 34px;
  }

  .our-news__grid {
    gap: 24px;
  }

  .our-news__row {
    gap: 20px;
  }

  /* ── Підтримати Батальйон ── */
  .donations {
    padding: 24px 0 32px;
  }

  .donations__card {
    width: 100%;
    max-width: 720px;
    padding: 56px 40px;
    gap: 40px;
  }

  .donations__title {
    font-size: 34px;
  }

  .donations__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 100%;
  }

  .donations__col {
    gap: 32px;
  }

  .donations__col--banks {
    gap: 48px;
  }

  .donation-item__icon {
    width: 44px;
    height: 44px;
  }

  .donation-item__name {
    font-size: 26px;
  }

  .donation-item__number {
    font-size: 18px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-all;
    min-width: 0;
  }

  .donation-item__details {
    flex-wrap: wrap;
    min-width: 0;
  }

  .donation-item,
  .donations__col {
    min-width: 0;
  }

  .donation-item__copy {
    font-size: 15px;
  }

  .donation-item__link {
    height: 42px;
    padding: 0 22px;
    font-size: 15px;
  }
}

/* ── Зменшення Руху — prefers-reduced-motion ── */
/* Базові вертикальні відступи секцій для планшетів і мобільних */
@media (max-width: 1279px) {
  section {
    padding-top: 30px;
    padding-bottom: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-pattern::before,
  .site-pattern::after,
  .hero__scroll-arrow {
    animation: none;
  }

  /* Глобально: вимикаємо/мінімізуємо анімації та плавні переходи
     для користувачів, які обрали prefers-reduced-motion: reduce */
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Neutralize flex on .lp-container when css/index.css is loaded on the same
   page (e.g. join-zsu-contract.html), so the roles grid keeps rekrutynh.html's
   block layout instead of centering and shrinking. */
.lp-container {
  display: block;
  flex-direction: unset;
  justify-content: unset;
  align-items: unset;
}

