/*
 * Diamed Pharma responsive layer
 * Desktop qaydalari deyisdirilmir: butun duzelisler 1279px ve asagisi ucundur.
 */

 @media (max-width: 1279px) {
  .certificate_title {
      min-height: auto !important;
  }
html {
  scroll-padding-top: 76px;
}

body {
  overflow-x: hidden;
}

body.mobile-menu-open {
  overflow: hidden;
}

.custom_container,
.container {
  width: 100%;
  padding-inline: 24px;
}

.header_inner {
  min-height: 76px;
  padding: 10px 0;
  gap: 24px;
}

.header_left {
  flex: 1 1 auto;
  gap: 24px;
}

.header_left img {
  width: 92px;
  max-width: 100%;
  height: auto;
  transform: none;
}

.header_center {
  flex: 1 1 auto;
  width: auto;
  padding-left: 0;
  gap: 8px;
}

.header_right {
  margin-left: auto;
}

.header_menu {
  display: none;
}

.search_button {
  --size: 44px;
}

.menu_button {
  position: relative;
  inset: auto;
  width: 54px;
  height: 52px;
  padding: 7px 8px;
  justify-content: center;
  align-items: center;
  border-radius: 2px;
  font-size: 9px;
  line-height: 1;
}

.header__menu-burger {
  width: 24px;
  height: 10px;
  margin-top: 8px;
}

.menu_button.is-open .header__burger {
  height: 0;
  border-color: transparent;
  transition-delay: 0s;
}

.menu_button.is-open .header__burger::before {
  background: #fff;
  transform: translate(-50%, -50%) rotate(45deg);
}

.menu_button.is-open .header__burger::after {
  background: #fff;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.all_menu_wrapper {
  top: 76px;
  z-index: 19;
  height: calc(100dvh - 76px);
  overscroll-behavior: contain;
}

.all_menu_wrapper.is-open {
  z-index: 19;
  box-shadow: -20px 20px 50px rgba(0, 0, 0, 0.12);
}

.all_menu_wrapper .container {
  padding-inline: 28px;
}

.all_menu_group:nth-of-type(3),
.all_menu_grid .all_menu_group:nth-of-type(3) {
  margin-left: 0;
}

.all_menu_heading,
.all_menu_list a,
.all_menu_dropdown {
  min-height: 44px;
  display: flex;
  align-items: center;
}

.all_menu_list {
  margin-top: 4px;
}

.all_menu_list li + li {
  margin-top: 0;
}

#banner_wrapper {
  min-height: 720px;
  height: 100svh;
}

#banner {
  padding: 120px 0 32px;
}

#banner_row {
  flex-direction: column;
  justify-content: flex-end;
  gap: 32px;
}

.banner_left,
.banner_right {
  width: 100%;
}

.banner_left {
  max-width: 760px;
}

#banner h1 {
  font-size: clamp(42px, 6vw, 58px);
  line-height: 1.05;
}

.banner_right {
  align-items: stretch;
}

.banner_card {
  height: auto;
  min-height: 216px;
}

#product_category,
#about,
#partners,
.section.info,
#gallery {
  scroll-margin-top: 76px;
}

.product_category_title {
  padding-bottom: 40px;
  margin-bottom: 40px;
}

.productSwiper {
  padding-inline: 0;
}

.about_text {
  margin-bottom: 40px;
  padding-bottom: 40px;
}

.parent {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto;
}

.parent .about_div {
  height: 420px;
}

.parent .div1 {
  grid-column: 1 / -1;
  grid-row: auto;
}

.parent .div2,
.parent .div3 {
  grid-column: auto;
  grid-row: auto;
}

.parent .div4 {
  grid-column: 1 / -1;
  grid-row: auto;
}

.div1,
.div4 {
  background-attachment: scroll;
}

.awards-minimal {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info .row-section {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info .row-section .column,
.column {
  width: 100%;
}

#call-to-action .content_area {
  padding: 40px 32px;
}

#call-to-action .call_to_action_content h3 {
  font-size: 26px;
}

.footer_bottom {
  padding-inline: 24px;
}

.innerFlex,
.innerFlex.inner_gallery,
.innerFlex.innerGrid2,
.innerFlex.innerSert {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.innerFlex.products-list-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.innerFlex.partnors_grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.products-category-page {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.diamed-related-products__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.company-page__hero {
  min-height: 52vw;
}

:is(a, button, input, textarea, select):focus-visible {
  outline: 3px solid #fe0000;
  outline-offset: 3px;
}
}

@media (max-width: 767px) {
html {
  font-size: 16px;
}

.custom_container,
.container,
.all_menu_wrapper .container {
  padding-inline: 16px;
}

.header_inner {
  gap: 12px;
}

.header_left {
  gap: 12px;
}

.header_left img {
  width: 82px;
}

.lang_wrapper {
  order: 0;
}

.search_button {
  display: none;
}

.menu_button {
  width: 50px;
  height: 50px;
}

.all_menu_wrapper {
  width: 100%;
}

.all_menu_main {
  padding: 24px 0 32px;
}

.all_menu_layout {
  row-gap: 32px;
}

.all_menu_contact_link + .all_menu_contact_link {
  font-size: clamp(16px, 5vw, 20px);
  overflow-wrap: anywhere;
}

.all_menu_socials {
  margin-top: 0;
}

.all_menu_grid {
  row-gap: 16px;
}

.all_menu_group {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(24, 29, 29, 0.1);
}

.all_menu_heading {
  font-size: 13px;
}

.all_menu_bottom_row {
  gap: 16px;
  padding-block: 20px;
}

.all_menu_partners {
  max-width: 100%;
  flex-wrap: wrap;
  gap: 16px;
}

#banner_wrapper {
  min-height: 780px;
  height: auto;
  margin-bottom: 0;
}

#banner_video {
  object-position: 58% center;
}

#banner {
  min-height: 780px;
  padding: 112px 0 24px;
}

#banner_row {
  gap: 24px;
}

#banner h1 {
  font-size: clamp(34px, 10vw, 46px);
  line-height: 1.04;
}

.banner_left p {
  font-size: 14px;
  line-height: 1.5;
}

.banner_right {
  flex-direction: column;
  gap: 12px;
}

.banner_card {
  width: 100%;
  min-height: 168px;
  padding: 16px;
  border-radius: 12px;
}

.banner_card_title {
  font-size: 16px;
}

.banner_card_description {
  margin-top: 12px;
}

.banner_left .banner_card_link {
  margin-top: 16px;
  width: 100%;
  max-width: 280px;
}

.banner_card_socials {
  flex-wrap: wrap;
}

.sec_title,
.inner-sec-title {
  font-size: clamp(27px, 8vw, 34px);
  line-height: 1.12;
}

.section_top_wrapper {
  align-items: flex-end;
  gap: 16px;
}

.all_info_link {
  flex-shrink: 0;
  padding-block: 8px;
}

#product_category {
  padding-top: 48px;
}

.product_category_title {
  padding-bottom: 32px;
  margin-bottom: 32px;
}

.productSwiper {
  padding-block: 20px;
}

.medication-card {
  height: 450px;
  max-height: 450px;
  padding: 16px;
}

.medication-card__picture {
  height: 220px;
  margin-top: 20px;
}

.medication-card__badge {
  width: 64px;
  top: 12px;
  right: 12px;
}

.about h2 {
  margin-bottom: 24px;
}

.about_text {
  grid-template-columns: 1fr;
  gap: 16px;
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 32px;
  padding-bottom: 32px;
}

.about_text > div[style] {
  grid-column: auto !important;
}

.parent {
  display: flex;
  flex-direction: column;
}

.parent .about_div {
  width: 100%;
  height: auto;
  min-height: 300px;
  padding: 16px;
}

.parent .div1 {
  min-height: 420px;
  background-position: center;
}

.div1 .w50,
.div4 p {
  width: 100%;
}

.div1 .w50 {
  font-size: 24px;
  padding: 16px;
}

.parent .div2,
.parent .div3 {
  min-height: 260px;
}

.parent .div4 {
  min-height: 360px;
}

.about_div h5 {
  font-size: 22px;
  line-height: 1.15;
}

#partners {
  padding: 48px 0;
  margin-bottom: 48px;
}

.awards-minimal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.award__minimal-item {
  min-height: 120px;
}

.info {
  padding-bottom: 48px;
}

.info .row-section {
  grid-template-columns: 1fr;
  gap: 16px;
}

.info .row-section .column {
  margin-bottom: 0;
  height: auto;
}

.column:hover {
  transform: none;
}

#gallery {
  padding-bottom: 24px;
}

.portfolio_carousel_viewport {
  margin-top: 24px;
}

#portfolio_wrapper_infinite_carousel {
  display: block;
  gap: 0;
  transform: none !important;
  will-change: auto;
}

#portfolio_wrapper_infinite_carousel > * {
  max-width: none;
}

.main_gallery .swiper-slide {
  height: 240px;
  width: 100%;
}

#call-to-action {
  margin-top: 24px;
  padding: 40px 0;
}

#call-to-action .content_area {
  padding: 28px 16px;
  border-radius: 20px;
}

#call-to-action .call_to_action_content h3 {
  font-size: 22px;
  line-height: 1.35;
}

#call-to-action .call_to_action_content h3 img {
  width: 36px;
  height: 36px;
}

.forms_input,
.forms_btn {
  flex-basis: 100%;
  width: 100%;
}

.forms_btn {
  padding: 0 10px;
}

#footer {
  padding: 0;
}

.whatsapp_button {
  right: -28px;
  bottom: 36px;
  transform: scale(0.78);
  transform-origin: center;
}

.mail_button {
  right: -28px;
  bottom: 132px;
  transform: scale(0.78);
  transform-origin: center;
}

#innerPages {
  padding-bottom: 32px;
}

#innerPages:has(.about-page) {
  padding-bottom: 0;
}

.breadcrumbs,
.blog-article-breadcrumbs {
  padding: 100px 0 16px;
}

.inner-sec-title {
  margin: 24px 0;
}

.innerFlex,
.innerFlex.inner_gallery,
.innerFlex.innerGrid2,
.innerFlex.innerSert,
.innerFlex.partnors_grid,
.innerFlex.products-list-grid,
.products-category-page {
  grid-template-columns: 1fr;
  gap: 16px;
}

.innerFlex.inner_gallery p,
.innerFlex p {
  height: auto;
  min-height: 240px;
  padding: 0;
}

.products-category-page .swiper-slide {
  min-width: 0;
}

.swiper-slide__link {
  padding: 20px 16px;
}

.swiper-slide__image {
  width: min(42vw, 180px);
}

.blog-article__title {
  max-width: 100%;
  font-size: 28px;
}

.blog-article-page img {
  float: none;
  width: 100%;
  height: auto;
  max-height: 420px;
  margin: 0 0 24px;
  border-radius: 14px;
}

.company-page__inner {
  padding: 0;
}

.company-page__title-line {
  margin: 24px 0;
}

.company-page__contact-link {
  margin-top: 0;
}

.company-page__hero {
  min-height: 58vw;
}

.company-page__three,
.company-page__four {
  grid-template-columns: 1fr;
  margin-top: 48px;
}

.company-page__three-text p,
.company-page__four-text p,
.company-page__five p {
  padding-right: 0;
  font-size: 15px;
  line-height: 1.6;
}

.about_imgs {
  grid-template-columns: 1fr 1fr;
}

.company-page__four-media {
  min-height: 320px;
}

.diamed-product__title {
  font-size: 28px;
}

.diamed-product {
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}

.diamed-product__media,
.diamed-product__right {
  flex: none;
  width: 100%;
}

.diamed-product__media {
  height: min(100vw, 430px);
  padding: 24px;
  border-radius: 20px;
}

.diamed-product__characs > div {
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
}

.diamed-product__characs > div > span:last-child {
  text-align: left;
}

.diamed-related-products {
  margin-top: 32px;
  padding-top: 24px;
}

.diamed-related-products > .container {
  padding-inline: 0;
}

.diamed-related-products__grid {
  grid-template-columns: 1fr;
}

.modal-content {
  max-height: calc(100dvh - 32px);
  padding: 20px 16px;
  overflow-y: auto;
}

.contact-section {
  margin-bottom: 48px;
}

.contact-heading {
  margin-top: 56px;
}

.contact-content {
  margin-top: 32px;
}
}

@media (max-width: 420px) {
.header_left {
  gap: 8px;
}

.header_left img {
  width: 74px;
}

#banner h1 {
  font-size: 32px;
}

.banner_card_social-link {
  width: 100%;
}

.about_imgs {
  grid-template-columns: 1fr;
}

.company-page__hero {
  min-height: 230px;
}
}

@media (prefers-reduced-motion: reduce) and (max-width: 1279px) {
*,
*::before,
*::after {
  scroll-behavior: auto !important;
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}
}
