/* ==========================================================================
   Адаптив (планшет / мобильные устройства)
   Брейкпоинт макета: Desktop 1920 → Mobile 360
   ========================================================================== */

@media (max-width: 1180px) {
  .container {
    padding: 0 32px;
  }

  .nav {
    flex-wrap: nowrap;
    gap: 14px;
  }

  .nav a {
    font-size: 14px;
  }

  .hero__text {
    left: 32px;
  }

  .hero__video-btn {
    left: 32px;
  }

  .about-preview__top {
    gap: 32px;
  }

  .about-preview__photo {
    width: 380px;
  }

  .stats-row {
    gap: 16px;
  }

  .stat {
    width: auto;
    flex: 1 1 0;
  }

  .products__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .products__grid .product-card {
    height: 300px;
  }

  .product-card__body {
    top: 176px;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .applications__grid,
  .management__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .tenders__row {
    gap: 32px;
  }

  .tenders__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {

  .container {
    padding: 0 16px;
  }

  /* ---------- Header ---------- */

  .header {
    padding-top: 7px;
  }

  .header--light {
    padding: 7px 0 0;
  }

  .header--light::after {
    content: none;
  }

  .header__logo img {
    width: 239px;
  }

  .header__phones,
  .header__top > .socials {
    display: none;
  }

  .header__left .langs {
    display: none;
  }

  .nav {
    display: none;
  }

  .header__bottom {
    position: absolute;
    top: 17px;
    right: 16px;
    left: auto;
    width: auto;
    height: 34px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .search-btn {
    width: 34px;
    height: 34px;
    align-self: center;
    margin-top: 0;
  }

  .search-btn img,
  .search-btn svg {
    width: 34px;
    height: 34px;
  }

  .burger-btn {
    display: block;
    position: relative;
    width: 24px;
    height: 19px;
    flex-shrink: 0;
  }

  .burger-btn span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
  }

  .header--light .burger-btn span {
    background: var(--color-text);
  }

  .burger-btn span:nth-child(1) { top: 0; }
  .burger-btn span:nth-child(2) { top: 8px; }
  .burger-btn span:nth-child(3) { top: 16px; }

  /* ---------- Hero ---------- */

  .hero {
    height: 502px;
    background-image: url('../assets/img/hero-bg.jpg');
    background-size: 275.56% 107.27%;
    background-position: 65.82% 23.26%;
    background-repeat: no-repeat;
  }

  .hero__bg-video {
    object-position: 65.82% 23.26%;
  }

  .hero__decor {
    display: none;
  }

  .hero__text {
    top: 130px;
    left: 16px;
    max-width: 328px;
  }

  .hero__text-title {
    font-size: 32px;
    line-height: 44px;
    margin-bottom: 12px;
  }

  .hero__text-body {
    font-size: 18px;
    line-height: 24px;
  }

  .hero__video-btn {
    top: 368px;
    left: 16px;
    font-size: 18px;
  }

  /* ---------- Stats / About preview ---------- */

  .about-preview {
    padding: 36px 0 47px;
  }

  .about-preview__top {
    flex-direction: column;
    gap: 24px;
  }

  .about-preview__photo {
    display: none;
  }

  .stats-wrap {
    position: relative;
  }

  .stats-row {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 16px;
    scrollbar-width: none;
    gap: 16px;
    margin: 42px -16px 0;
    padding: 0 16px 4px;
  }

  .dots--stats {
    position: absolute;
    top: 104px;
    right: 16px;
    margin-top: 0;
  }

  .stats-row::-webkit-scrollbar {
    display: none;
  }

  .stat {
    flex: 0 0 100%;
    width: 100%;
    max-width: none;
    scroll-snap-align: start;
  }

  .stat p {
    min-height: 0;
  }

  .stat strong {
    font-size: 44px;
  }

  /* ---------- Products ---------- */

  .products {
    padding-bottom: 65px;
  }

  .products__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 5px;
  }

  .products__grid .product-card {
    height: 198px;
  }

  .product-card__body {
    top: 116px;
  }

  .product-card__body h3 {
    font-size: 18px;
    line-height: 24px;
  }

  .product-card--1 .product-card__img,
  .product-card--2 .product-card__img,
  .product-card--3 .product-card__img,
  .product-card--4 .product-card__img,
  .product-card--5 .product-card__img {
    background-size: cover;
    background-position: center;
  }

  /* ---------- Carousels (news / tenders / history / applications / management) ---------- */

  .card-outline__thumb--news-1,
  .card-outline__thumb--news-2,
  .card-outline__thumb--news-3 {
    background-size: cover;
    background-position: center;
  }

  .section-title {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .news {
    padding-bottom: 53px;
  }

  .tenders {
    padding-bottom: 60px;
  }

  .history,
  .applications,
  .management {
    padding-bottom: 48px;
  }

  .news__grid,
  .tenders__grid,
  .history__grid,
  .management__grid {
    display: flex;
    grid-template-columns: none;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 16px;
    scrollbar-width: none;
    padding-bottom: 4px;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .news__grid::-webkit-scrollbar,
  .tenders__grid::-webkit-scrollbar,
  .history__grid::-webkit-scrollbar,
  .management__grid::-webkit-scrollbar {
    display: none;
  }

  .news__grid > *,
  .tenders__grid > *,
  .history__grid > *,
  .management__grid > * {
    flex: 0 0 100%;
    width: 100%;
    max-width: none;
    scroll-snap-align: start;
  }

  .applications__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }

  .application-card {
    height: 197px;
  }

  .application-card span {
    padding: 16px;
    font-size: 16px;
    line-height: 20px;
  }

  .card-outline,
  .history-card {
    height: auto;
    min-height: 320px;
  }

  .management-card {
    height: auto;
  }

  .tenders__row {
    flex-direction: column;
    gap: 24px;
  }

  .tenders__intro {
    display: contents;
    max-width: 100%;
  }

  .tenders__intro .section-title {
    order: 1;
    margin-bottom: 16px;
  }

  .tenders__intro p {
    order: 2;
    margin-top: 0;
  }

  .tenders__grid {
    order: 3;
    width: calc(100% + 32px);
    min-width: 0;
  }

  .tenders__intro .section-foot {
    order: 4;
    width: 100%;
  }

  .dots {
    display: flex;
  }

  .section-foot {
    margin-top: 24px;
  }

  .news .section-foot,
  .tenders__intro .section-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .news .section-foot .dots,
  .tenders__intro .section-foot .dots {
    margin-top: 0;
  }

  /* ---------- Gallery ---------- */

  .gallery {
    padding-bottom: 106px;
  }

  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "big big"
      "small cta";
    gap: 6px;
  }

  .gallery__cell:nth-child(1) { grid-area: big; height: 209px; }
  .gallery__cell:nth-child(2) { display: none; }
  .gallery__cell:nth-child(3) { grid-area: small; height: 207px; }
  .gallery__cell--cta { grid-area: cta; height: 207px; }

  .gallery__cell--1,
  .gallery__cell--3 {
    background-size: cover;
    background-position: center;
  }

  /* ---------- Footer ---------- */

  .footer {
    padding: 40px 0 30px;
  }

  .footer__top {
    flex-direction: column;
    gap: 21px;
  }

  .footer__logo {
    margin-bottom: 36px;
  }

  .footer__nav {
    flex-direction: column;
    gap: 16px;
  }

  .footer__divider {
    margin: 28px 0 24px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer__bottom-right {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer__copy {
    order: 1;
  }

  .footer__partner {
    order: 2;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .footer__socials {
    order: 3;
  }

  /* ---------- About page ---------- */

  .breadcrumbs {
    padding-top: 45px;
    font-size: 15px;
  }

  .intro {
    padding: 16px 0 40px;
  }

  .intro h1 {
    font-size: 32px;
    margin-bottom: 20px;
  }

  .intro p {
    font-size: 16px;
    line-height: 26px;
  }
}
