/*--------------------------------------------------------------
# HRTime — Bootstrap grid (all breakpoints)
# xs <576 | sm ≥576 | md ≥768 | lg ≥992 | xl ≥1200 | xxl ≥1400
--------------------------------------------------------------*/

.page-wrapper {
  overflow-x: hidden;
}

/* —— Header — Bootstrap grid —— */
.main-menu--bootstrap .main-menu__container {
  max-width: 100%;
}

.main-menu--bootstrap .main-menu__row {
  min-height: 88px;
}

/* Сброс float-вёрстки шаблона */
.main-menu--bootstrap .main-menu__left,
.main-menu--bootstrap .main-menu__logo,
.main-menu--bootstrap .main-menu__main-menu-box,
.main-menu--bootstrap .main-menu__right {
  float: none;
  display: block;
}

.main-menu--bootstrap .main-menu__logo-col {
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}

.main-menu--bootstrap .main-menu__nav-col {
  flex: 1 1 auto;
  min-width: 0;
  display: none; /* <1200px — только бургер */
}

.main-menu--bootstrap .main-menu__actions-col {
  flex-shrink: 0;
  z-index: 2;
}

.main-menu--bootstrap .main-menu__logo {
  margin-right: 0;
  padding: 16px 0;
}

.main-menu--bootstrap .main-menu__logo img {
  display: block;
  width: auto;
  max-height: 44px;
  height: auto;
}

.main-menu--bootstrap .main-menu__logo:before {
  right: -48px;
}

.main-menu--bootstrap .main-menu__main-menu-box {
  width: 100%;
}

.main-menu--bootstrap .main-menu__list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 2px 4px;
  margin: 0;
  padding: 0;
}

.main-menu--bootstrap .main-menu__list > li,
.stricky-header .main-menu__nav-col .main-menu__list > li {
  float: none;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.main-menu--bootstrap .main-menu__list > li + li,
.stricky-header .main-menu__nav-col .main-menu__list > li + li {
  margin-left: 0 !important;
}

.main-menu--bootstrap .main-menu__list > li > a,
.stricky-header .main-menu__nav-col .main-menu__list > li > a {
  padding: 28px 12px;
  white-space: nowrap;
  font-size: 15px;
}

.main-menu--bootstrap .main-menu__call {
  padding: 12px 0;
}

.main-menu--bootstrap .main-menu__call-icon {
  width: 56px;
  height: 56px;
  font-size: 28px;
  flex-shrink: 0;
}

.main-menu--bootstrap .main-menu__call-content span {
  font-size: 12px;
}

.main-menu--bootstrap .main-menu__call-content p {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
}

.main-menu--bootstrap .mobile-nav__toggler {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-left: 8px;
  padding: 0;
  font-size: 22px;
  color: var(--conalz-black, #0f1629);
  border: 1px solid rgba(15, 22, 41, 0.12);
  border-radius: 10px;
  background: #fff;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.main-menu--bootstrap .mobile-nav__toggler:hover {
  color: #005cff;
  border-color: rgba(0, 92, 255, 0.35);
  background: rgba(0, 92, 255, 0.06);
}

/* Sticky header — JS копирует innerHTML без обёртки .main-menu--bootstrap */
.stricky-header .sticky-header__content .main-menu__container,
.stricky-header .main-menu__container {
  max-width: 100%;
}

.stricky-header .main-menu__row {
  min-height: 72px;
}

.stricky-header .main-menu__logo-col {
  flex-shrink: 0;
  z-index: 3;
}

.stricky-header .main-menu__nav-col {
  flex: 1 1 auto;
  min-width: 0;
  display: none;
}

.stricky-header .main-menu__actions-col {
  flex-shrink: 0;
}

.stricky-header .main-menu__logo {
  float: none;
  margin-right: 0;
  padding: 10px 0;
}

.stricky-header .main-menu__logo img {
  max-height: 40px;
}

.stricky-header .main-menu__main-menu-box,
.stricky-header .main-menu__right {
  float: none;
}

.stricky-header .main-menu__list {
  display: none;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.stricky-header .main-menu__list > li {
  float: none;
  padding-top: 0;
  padding-bottom: 0;
}

.stricky-header .main-menu__list > li > a {
  padding: 22px 10px;
  font-size: 14px;
  white-space: nowrap;
}

.stricky-header .mobile-nav__toggler {
  display: inline-flex;
}

/* ≥576px */
@media (min-width: 576px) {
  .main-menu--bootstrap .main-menu__logo img {
    max-height: 48px;
  }

  .main-menu--bootstrap .main-menu__row {
    min-height: 92px;
  }
}

/* ≥992px — телефон в шапке */
@media (min-width: 992px) {
  .main-menu--bootstrap .main-menu__logo img {
    max-height: 54px;
  }

  .main-menu--bootstrap .main-menu__row {
    min-height: 96px;
  }
}

/* ≥1200px — горизонтальное меню в шапке (в т.ч. 1200–1440) */
@media (min-width: 1200px) {
  .main-menu--bootstrap .main-menu__nav-col,
  .stricky-header .main-menu__nav-col {
    display: flex !important;
  }

  .main-menu--bootstrap .mobile-nav__toggler,
  .stricky-header .mobile-nav__toggler {
    display: none !important;
  }

  .main-menu--bootstrap .main-menu__nav-col .main-menu__list,
  .stricky-header .main-menu__nav-col .main-menu__list {
    display: flex !important;
  }
}

/* 1200–1439px — компактная шапка, всё помещается в одну строку */
@media (min-width: 1200px) and (max-width: 1439.98px) {
  /* conalz-responsive скрывает .main-menu__call в этом диапазоне */
  .main-menu--bootstrap .main-menu__call-search,
  .stricky-header .main-menu__call-search {
    display: flex !important;
  }

  .main-menu--bootstrap .main-menu__call,
  .stricky-header .main-menu__call {
    display: flex !important;
  }

  .main-menu--bootstrap .main-menu__container,
  .stricky-header .main-menu__container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .main-menu--bootstrap .main-menu__row,
  .stricky-header .main-menu__row {
    min-height: 80px;
  }

  .main-menu--bootstrap .main-menu__logo,
  .stricky-header .main-menu__logo {
    padding: 12px 0;
  }

  .main-menu--bootstrap .main-menu__logo img,
  .stricky-header .main-menu__logo img {
    max-height: 44px;
  }

  .main-menu--bootstrap .main-menu__logo:before,
  .stricky-header .main-menu__logo:before {
    right: -16px;
    clip-path: polygon(0 0, 100% 0%, 92% 100%, 0% 100%);
  }

  .main-menu--bootstrap .main-menu__list,
  .stricky-header .main-menu__nav-col .main-menu__list {
    gap: 0 2px;
  }

  .main-menu--bootstrap .main-menu__list > li > a,
  .stricky-header .main-menu__nav-col .main-menu__list > li > a {
    padding: 26px 5px;
    font-size: 12px;
    letter-spacing: -0.01em;
  }

  .main-menu--bootstrap .main-menu__call,
  .stricky-header .main-menu__call {
    padding: 8px 0;
  }

  .main-menu--bootstrap .main-menu__call-icon,
  .stricky-header .main-menu__call-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .main-menu--bootstrap .main-menu__call-content,
  .stricky-header .main-menu__call-content {
    display: none;
  }
}

/* 1200–1279px — ещё плотнее */
@media (min-width: 1200px) and (max-width: 1279.98px) {
  .main-menu--bootstrap .main-menu__list > li > a,
  .stricky-header .main-menu__nav-col .main-menu__list > li > a {
    padding: 24px 3px;
    font-size: 11px;
  }

  .main-menu--bootstrap .main-menu__logo img,
  .stricky-header .main-menu__logo img {
    max-height: 40px;
  }

  .main-menu--bootstrap .main-menu__call-icon,
  .stricky-header .main-menu__call-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

/* ≥1440px — комфортные отступы */
@media (min-width: 1440px) {
  .main-menu--bootstrap .main-menu__logo img,
  .stricky-header .main-menu__logo img {
    max-height: 58px;
  }

  .main-menu--bootstrap .main-menu__logo:before,
  .stricky-header .main-menu__logo:before {
    right: -56px;
  }

  .main-menu--bootstrap .main-menu__list > li > a,
  .stricky-header .main-menu__nav-col .main-menu__list > li > a {
    padding: 28px 10px;
    font-size: 15px;
    letter-spacing: 0;
  }

  .main-menu--bootstrap .main-menu__call-icon,
  .stricky-header .main-menu__call-icon {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }

  .main-menu--bootstrap .main-menu__call-content,
  .stricky-header .main-menu__call-content {
    display: block;
  }

  .main-menu--bootstrap .main-menu__call-content span {
    font-size: 12px;
  }

  .main-menu--bootstrap .main-menu__call-content p {
    font-size: 14px;
  }
}

/* ≥1500px — чуть больше воздуха в меню */
@media (min-width: 1500px) {
  .main-menu--bootstrap .main-menu__logo img {
    max-height: 62px;
  }

  .main-menu--bootstrap .main-menu__logo:before {
    right: -72px;
  }

  .main-menu--bootstrap .main-menu__list > li > a {
    padding: 32px 14px;
    font-size: 16px;
  }

  .main-menu--bootstrap .main-menu__call-icon {
    width: 64px;
    height: 64px;
    font-size: 30px;
  }
}

/* <1200px — бургер, компактная шапка */
@media (max-width: 1199.98px) {
  .main-menu--bootstrap .main-menu__nav-col {
    display: none !important;
  }

  .main-menu--bootstrap .mobile-nav__toggler {
    display: inline-flex !important;
  }

  .main-menu--bootstrap .main-menu__logo {
    padding: 14px 0;
  }

  .main-menu--bootstrap .main-menu__logo:before {
    right: -32px;
  }

  .main-menu--bootstrap .main-menu__row {
    min-height: 76px;
  }
}

/* <992px — без телефона в шапке */
@media (max-width: 991.98px) {
  .main-menu--bootstrap .main-menu__call-search {
    display: none !important;
  }
}

/* <576px — телефон только в мобильном меню */
@media (max-width: 575.98px) {
  .main-menu--bootstrap .main-menu__container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .main-menu--bootstrap .main-menu__logo img {
    max-height: 40px;
  }

  .main-menu--bootstrap .main-menu__logo:before {
    right: -20px;
    clip-path: polygon(0 0, 100% 0%, 88% 100%, 0% 100%);
  }

  .main-menu--bootstrap .main-menu__row {
    min-height: 68px;
  }

  .main-menu--bootstrap .mobile-nav__toggler {
    width: 44px;
    height: 44px;
    font-size: 20px;
    margin-left: 4px;
  }
}

/* —— Services cards (Bootstrap row) —— */
.services-grid.row > [class*="col"] {
  display: flex;
}

.services-grid .service-card {
  width: 100%;
}

/* —— Niyə biz —— */
.why-hrtime__grid.row > [class*="col"] {
  display: flex;
}

.why-hrtime__grid .why-hrtime__card {
  width: 100%;
}

.why-hrtime__stats.row {
  --bs-gutter-x: 1rem;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(15, 22, 41, 0.08);
}

.why-hrtime__stats.row > li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

@media (max-width: 575.98px) {
  .why-hrtime__stats.row > li {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 8px;
  }
}

/* —— Gallery (Bootstrap row) —— */
.hrtime-gallery__mosaic.row > [class*="col"] {
  display: flex;
}

.hrtime-gallery__mosaic .gallery-tile {
  width: 100%;
  min-height: 0;
}

.hrtime-gallery__mosaic .gallery-tile__link {
  min-height: 220px;
}

.hrtime-gallery__mosaic .gallery-tile--hero .gallery-tile__link,
.hrtime-gallery__mosaic .gallery-tile--tall .gallery-tile__link {
  min-height: 260px;
}

@media (min-width: 768px) {
  .hrtime-gallery__mosaic .gallery-tile__link {
    min-height: 240px;
  }

  .hrtime-gallery__mosaic .gallery-tile--hero .gallery-tile__link,
  .hrtime-gallery__mosaic .gallery-tile--tall .gallery-tile__link {
    min-height: 100%;
    min-height: 360px;
  }
}

@media (min-width: 992px) {
  .hrtime-gallery__mosaic .gallery-tile--hero .gallery-tile__link,
  .hrtime-gallery__mosaic .gallery-tile--tall .gallery-tile__link {
    min-height: 380px;
  }
}

/* —— CTA parallax stats —— */
.cta-parallax__stats.row {
  --bs-gutter-x: 0.5rem;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.cta-parallax__stats.row > li {
  text-align: center;
}

/* —— Footer CTA —— */
.footer-cta.row {
  margin-left: 0;
  margin-right: 0;
}

.footer-cta.row .footer-cta__actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

@media (min-width: 992px) {
  .footer-cta.row .footer-cta__actions {
    justify-content: flex-end;
  }
}

/* 1200–1440px — кнопки в одну линию, равная ширина и отступ */
@media (min-width: 1200px) and (max-width: 1439.98px) {
  /* index: Bootstrap row */
  .footer-cta.row > .col-lg-8.col-xl-9,
  .footer-cta.row > .col-lg-7.col-xl-8,
  .footer-cta.row > .col-lg-8 {
    flex: 0 0 56%;
    max-width: 56%;
  }

  .footer-cta.row > .col-lg-4.col-xl-3,
  .footer-cta.row > .col-lg-5.col-xl-4,
  .footer-cta.row > .col-lg-4 {
    flex: 0 0 44%;
    max-width: 44%;
  }

  /* внутренние страницы: flex без row */
  .footer-cta:not(.row) {
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px 24px !important;
  }

  .footer-cta:not(.row) .footer-cta__content {
    flex: 1 1 56%;
    min-width: 0;
    max-width: 56%;
  }

  .footer-cta:not(.row) .footer-cta__actions {
    flex: 0 0 44%;
    max-width: 44%;
    min-width: 280px;
  }

  .footer-cta .footer-cta__actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    min-width: 0;
    flex-wrap: nowrap !important;
    justify-content: stretch !important;
  }

  .footer-cta .footer-cta__btn,
  .footer-cta .footer-cta__wa {
    width: 100%;
    margin: 0;
    padding: 12px 10px;
    font-size: 13px;
    line-height: 1.25;
    white-space: nowrap;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    min-height: 48px;
  }

  .footer-cta .footer-cta__btn {
    display: inline-flex;
    align-items: center;
  }

  .footer-cta .footer-cta__wa {
    display: inline-flex;
    align-items: center;
  }
}

/* —— Footer services lists —— */
.footer-hr__services-cols.row > [class*="col"] .footer-hr__links {
  margin-bottom: 0;
}

/* —— Service inner pages: content above sidebar on mobile —— */
@media (max-width: 991.98px) {
  .service-details > .container > .row > .col-lg-7,
  .service-details > .container > .row > .col-xl-8 {
    order: 1;
  }

  .service-details > .container > .row > .col-lg-5,
  .service-details > .container > .row > .col-xl-4 {
    order: 2;
  }
}

/* —— Contact form block —— */
.contact-wa-section .contact-wa {
  max-width: 100%;
}

@media (min-width: 992px) {
  .contact-wa-section .contact-wa {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 1200px) {
  .contact-wa-section .contact-wa {
    max-width: 960px;
  }
}

/* —— CTA banner: image on top on tablet —— */
@media (max-width: 991.98px) {
  .cta-hrtime__card .row.align-items-center {
    text-align: center;
  }

  .cta-hrtime__media {
    margin-left: auto;
    margin-right: auto;
  }

  .cta-hrtime__buttons {
    justify-content: center;
  }
}

/* —— Certificates —— */
.hrtime-certs__grid.row > [class*="col"] {
  display: flex;
}

.hrtime-certs__grid .cert-card {
  width: 100%;
}

/* —— Section spacing (mobile) —— */
@media (max-width: 767.98px) {
  .partners-carousel {
    padding: 32px 0 36px;
  }

  .services-one--grid {
    padding-bottom: 72px;
  }

  .why-hrtime,
  .hrtime-certs,
  .hrtime-gallery {
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .cta-hrtime,
  .cta-parallax {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .hrtime-gallery__filters {
    flex-wrap: wrap;
    justify-content: flex-start !important;
  }
}

@media (max-width: 575.98px) {
  .section-title__title {
    font-size: clamp(22px, 6vw, 28px);
  }

  .footer-cta.row .footer-cta__actions {
    width: 100%;
    flex-direction: column;
  }

  .footer-cta.row .footer-cta__btn,
  .footer-cta.row .footer-cta__wa {
    width: 100%;
    justify-content: center;
  }
}

/* —— Page header —— */
.page-header__inner {
  word-wrap: break-word;
}

@media (max-width: 575.98px) {
  .page-header {
    padding-top: 100px;
    padding-bottom: 48px;
  }

  .page-header h2 {
    font-size: clamp(24px, 7vw, 32px);
  }
}
