@import url('./fonts/stylesheet.css');
* {
  box-sizing: border-box;
}

:root {
  --blue: #44bad4;
  --gray: #bababa;
  --footer: #e8e8e8;
  --black: #000;
  --container: 1280px;
  --wide: 1600px;
  --font: "Graphik LCG", "Graphik", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: #000;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.2;
}

img {
  display: block;
  max-width: 100%;
}

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

b, strong {font-weight: 500;}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}


.container--wide {
  width: min(var(--wide), calc(100% - 48px));
  margin: 0 auto;
}

.section {
  padding: 60px 0;
}

.logo-text {
  display: inline-block;
  color: #000;
  font-size: 24px;
  line-height: .9;
  font-weight: 700;
  letter-spacing: -1.2px;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-height: 57px;
  padding: 18px 42px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.btn--blue {
  background: var(--blue);
  color: #fff;
}

.btn--black {
  background: #000;
  color: #fff;
}

.btn--outline {
  border-color: #000;
  color: #000;
  transition: all 0.3s ease 0s;
}

.btn--outline:hover{
  border-color: #000;
  color: #fff;
  background:#000;
  transition: all 0.3s ease 0s;
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
}

.header__inner {
  width: min(var(--wide), calc(100% - 48px));
  height: 117px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 58px;
}

.header .logo-text {
  flex: 0 0 186px;
}

.subheader_banner{width:530px;margin-top: -50px;}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 18px;
  white-space: nowrap;
}

.nav a {
border-bottom:1px solid #ffffff00;
transition: all 0.3s ease 0s;
}


.nav a:hover {
border-bottom:1px solid #000;
transition: all 0.3s ease 0s;
}


.directions{overflow:hidden;}


.header .socials{opacity:0;}

.socials {
  display: flex;
  align-items: center;
  gap: 28px;
}

.socials img {
  width: 19px;
  height: 19px;
  object-fit: contain;
}

.socials--desktop {
  margin-left: auto;
}

.header__call {
  margin-left: 6px;
}

.burger,
.header__phone,
.mobile-socials {
  display: none;
}

.hero {
  position: relative;
  min-height: 480px;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__content {
  position: relative;
  z-index: 1;
  min-height: 480px;
  padding: 89px 0 84px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero h1 {
  width: 529px;
  max-width: 100%;
  margin: 0;
  font-size: 36px;
  line-height: 1.2;
  font-weight: 600;
}

.about_menu_r span{font-size: 12px; vertical-align: top;}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 94px;
}

.link-btn {
  font-size: 24px;
  font-weight: 500;
  border-bottom:2px solid #ffffff00;
}

.link-btn:hover {
border-bottom:2px solid #000;
transition: all 0.3s ease 0s;
}




.directions h2 {
  margin: 0;
  text-align: center;
  font-size: 36px;
  line-height: 1.2;
  font-weight: 600;
}

.directions ul {
  list-style: none;
  margin: 50px 0 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(24px, 71.04px, 71px);
  overflow-x: auto;
}

.directions li {
  min-width: max-content;
  display: grid;
  justify-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.directions li img {
  width: 58px;
  height: 40px;
  object-fit: contain;
}

.directions li:nth-child(1) img{ width: 48px; height: 36px;}
.directions li:nth-child(2) img{ width: 24px; height: 36px;}
.directions li:nth-child(3) img{ width: 36px; height: 36px;}
.directions li:nth-child(4) img{ width: 42px; height: 36px;}
.directions li:nth-child(5) img{ width: 58px; height: 36px;}
.directions li:nth-child(6) img{ width: 41px; height: 40px;}
.directions li:nth-child(7) img{ width: 36px; height: 36px;}
.directions li:nth-child(8) img{ width: 36px; height: 36px;}
.directions li:nth-child(9) img{ width: 83px; height: 28px;}



.products {
  padding: 30px 0;
}

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

.product-card {
  position: relative;
  min-height: 216px;
  overflow: hidden;
  padding: 24px 29px;
  isolation: isolate;
  border-radius: 0;
}

.product-card picture,
.product-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(140deg, rgba(255,255,255,.58), rgba(240,240,240,0) 72%);
}

.product-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 500;
}

.science__grid {
  display: grid;
  grid-template-columns: 430px 1fr;
  gap: 209px;
}

.science h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
}

.science__copy {
  display: grid;
  gap: 64px;
}

.science__copy strong {
  display: block;
  font-weight: 600;
}

.science__copy p {
  margin: 4px 0 0;
}

.stats {
  padding: 30px 0 60px;
}

.stats__desktop {
  display: grid;
  grid-template-columns: 320px 320px 213px 427px;
  grid-template-rows: 213px 267px 145px;
}

.stat {
  position: relative;
/*  min-height: 213px;
  overflow: hidden;*/
  border: 1px solid #fff;
}

.stat img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.11);
}

.stat strong,
.stat p {
  position: absolute;
  z-index: 2;
  margin: 0;
}

.stat strong {
  top: 27px;
  left: 26px;
  color: #fff;
  font-size: 48px;
  line-height: 1.03;
  font-weight: 500;
}

.stat p {
  top: 26px;
  left: 26px;
  max-width: 250px;
  color: #fff;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
}

.stat--spain {
  grid-row: span 2;
}

.stat--spain p {
  top: auto;
  left: 0;
  bottom: -120px;
  color: #000;
}

.stat--lab {
  grid-row: span 3;
}

.stat--white {
  background: #fff;
}

.stat--white::after {
  display: none;
}

.stat--white strong {
  color: #000;
}

.stat--formula {
  grid-column: span 2;
  min-height:412px;
}



.stats__mobile {
  display: none;
}

.why {
  padding-top: 60px;
  padding-bottom: 60px;
}

.why h2,
.cosmelan h2,
.schedule h2,
.partner h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1.2;
  font-weight: 600;
}

.why__inner {
  position: relative;
}

.phone_link{text-decoration:none !important;}
.why__mobile-arrow {
  display: none;
}
.r_right{font-size: 12px; vertical-align: top; margin-left: 2px;}

.why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 28px;
}

.why__text p {
  margin: 0 0 19px;
}

.why__facts {
  display: grid;
  align-content: start;
  gap: 16px;
}

.why__facts article {
  display: grid;
  gap: 4px;
}

.why__facts strong {
  font-size: 24px;
  font-weight: 600;
}

.why__facts span {
  font-size: 16px;
}

.cosmelan {
  padding-top: 60px;
  padding-bottom: 60px;
}

.cosmelan__inner {
  display: grid;
  grid-template-columns: 1px 1fr;
  gap: 42px;
  align-items: center;
}

.cosmelan__line {
  width: 1px;
  height: 138px;
  background: #000;
}

.cosmelan h2 {
  margin-bottom: 26px;
}

.cosmelan p {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
  width:70%;
}

.benefits {
  padding: 30px 0 60px;
}

.benefits__box {
  position: relative;
  min-height: 594px;
  overflow: hidden;
}

.benefits__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.benefits__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.benefits__content {
  position: relative;
  z-index: 1;
  width: 45%;
  max-width: 640px;
  min-height: 594px;
  margin-left: auto;
  padding-top: 91px;
}

.benefits h2 {
  width: 449px;
  max-width: 100%;
  margin: 0 0 38px;
  font-size: 36px;
  line-height: 1.2;
  font-weight: 600;
}

.benefits ul {
  width: 448px;
  max-width: 100%;
  margin: 0 0 39px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}

.benefits li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 22px;
}

.benefits li img {
  width: 24px;
  height: 24px;
}

.schedule {
  padding-top: 60px;
  padding-bottom: 60px;
}

.schedule__top {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 96px;
  align-items: center;
}

.month,
.filters {
  display: flex;
  align-items: center;
}

.month {
  gap: 25px;
}

.filters {
  gap: 90px;
}

.month button,
.filters button {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 24px;
}

.month span {
  font-size: 24px;
}

.filters button {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.mobile-filter-tags {
  display: none;
}

.notice {
  margin-top: 60px;
  border: 1px solid var(--blue);
/*  border-radius: 8px;*/
  padding: 30px 20px;
  color: var(--blue);
  font-weight: 500;
}

.notice p {
  margin: 19px 0 0;
}

.schedule__note {
  margin: 30px 0 30px;
}

.seminars {
  display: grid;
}

.seminar-row {
  display: grid;
  grid-template-columns: 120px 120px 1fr 110px;
  gap: 40px;
  padding: 30px 10px;
  border-top: 1px solid #000;
  font-size: 16px;
}

.seminar-row:last-child {
  border-bottom: 1px solid #000;
}

.seminar-row strong {
  font-weight: 500;
}

.partner {
  padding-top: 60px;
  padding-bottom: 120px;
}

.partner__lead {
  margin: 60px 0 26px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
}

.form {
  display: grid;
  gap: 26px;
}

.form__top {
  display: grid;
  grid-template-columns: 640px 1fr;
  gap: 160px;
}

.fields {
  display: grid;
  gap: 12px;
}

.fields input {
  width: 100%;
  height: 44px;
  border: 1px solid #000;
  border-radius: 0;
  padding: 0 12px;
  background: #fff;
}

.fields input::placeholder {
  color: var(--gray);
}

.partner-type {
  display: grid;
  align-content: start;
  justify-items: end;
  gap: 12px;
}

/*.partner-type button {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
} 

.partner-type > span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--blue);
  padding: 12px 20px;
  color: var(--blue);
  font-weight: 500;
}

.partner-type img {
  width: 13px;
  height: 13px;
}

.form fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.form legend {
  margin-bottom: 12px;
  font-weight: 500;
}

.form label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
}

.form input[type="checkbox"] {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin: 3px 0 0;
  accent-color: #000;
}

.agree {
  color: var(--blue);
  font-size: 12px;
  font-weight: 400 !important;
}

.form .btn {
  width: max-content;
}

.after-submit {
  margin: 0;
  font-weight: 500;
}

.required-note {
  margin: 0;
  color: var(--blue);
  font-size: 12px;
}
  */
.footer {
  background: var(--footer);
  padding: 120px 0;
}

/*.footer__grid {
  display: grid;
  grid-template-columns: 315px 1fr 186px 580px;
  gap: 72px;
  align-items: start;
} */

.footer__grid {
    display: flex;
    gap: 160px;
    align-items: start;
    justify-content: space-between;
    flex-direction: row;
    width: 100%;
}

.footer__mark {
  width: 315px;
  height: 120px;
  margin-bottom: 100px;
}

.footer__brand{min-width:320px;}


.footer .socials img {
  width: 24px;
  height: 24px;
}

.footer__nav {
  display: grid;
  gap: 22px;
/*  margin-top: 51px;*/
  font-size: 18px;
}


.footer__nav a {
border-bottom:1px solid #ffffff00;
transition: all 0.3s ease 0s;
}

.footer__nav a:hover {
border-bottom:1px solid #000;
transition: all 0.3s ease 0s;
}

.phone_link{
border-bottom:1px solid #ffffff00;
transition: all 0.3s ease 0s;
}

.phone_link:hover{
border-bottom:1px solid #000;
transition: all 0.3s ease 0s;
}



.footer__logo {
  margin-top: 0;
}

.footer__contacts {
  display: grid;
  gap: 19px;
}

.footer__contacts p {
  margin: 0;
}

.footer__contacts a {
  text-decoration: underline;
}

.footer__contacts span {
  color: #818181;
}

.footer__legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
/*  margin-top: 30px !important;*/
  font-size: 12px;
}

.margin_minus_16{margin-bottom: -16px !important;}

@media (max-width: 1400px) {
  .header__inner {
    gap: 24px;
  }

  .nav {
    gap: 18px;
    font-size: 16px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .form__top {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

@media (max-width: 1024px) {
  .socials--desktop,
  .header__call {
    display: none;
  }

  .header__inner {
    height: auto;
    padding: 24px 0;
    flex-wrap: wrap;
  }

  .nav {
    order: 10;
    width: 100%;
    overflow-x: auto;
  }

  .products__grid,
  .science__grid,
  .why__grid,
  .form__top {
    grid-template-columns: 1fr;
  }

  .science__grid {
    gap: 40px;
  }

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

  .stat,
  .stat--spain,
  .stat--lab,
  .stat--formula {
    grid-column: auto;
    grid-row: auto;
    min-height: 260px;
  }

  .schedule__top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .seminar-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px 0;
  }

  .partner-type {
    justify-items: start;
  }
}

@media (max-width: 767px) {
  .container,
  .container--wide {
    width: 100%;
    padding-left: 30px;
    padding-right: 30px;
  }

  .section {
    padding: 60px 0;
  }

  .header {
    position: static;
  }

  .header__inner {
    width: 100%;
    padding: 30px;
    display: grid;
    grid-template-columns: 20px 1fr 18px;
    gap: 67px;
    align-items: end;
  }

  .header .logo-text {
    flex: initial;
    justify-self: center;
    font-size: 16px;
    letter-spacing: -.7px;
    width: 159px;
    height: 21px;
  }

  .header__phone,
  .burger {
    display: block;
    border: 0;
    background: transparent;
    padding: 0;
  }

  .header__phone {
    width: 19px;
    height: 19px;
    position: relative;
    border: 2px solid #000;
    border-radius: 50%;
  }

  .header__phone::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: 0;
    width: 8px;
    height: 2px;
    background: #000;
    transform: rotate(45deg);
  }

  .burger {
    width: 18px;
    height: 14px;
    display: grid;
    gap: 4px;
    z-index: 9999999;
    position: relative;
  }

  .burger span {
    display: block;
    height: 2px;
    background: #000;
  }

  .nav {
    display: none;
  }

  .mobile-socials {
/*    display: flex;*/
    display: none;
    justify-content: space-between;
    padding: 0 30px 30px;
  }

  .mobile-socials a {
    display: block;
  }

  .mobile-socials img {
    width: 24px;
    height: 24px;
    object-fit: contain;
  }

  .btn {
    min-height: 57px;
    padding: 18px 42px;
    font-size: 20px;
  }

  .hero {
    min-height: 600px;
  }

  .hero__media {
    height: 600px;
  }

  .hero__media img {
    object-position: center top;
  }

  .hero__content {
    min-height: 600px;
    padding: 30px;
    justify-content: flex-start;
    gap: 15px;
  }

  .hero h1 {
    width: 330px;
    font-size: 32px;
    line-height: 1.16;
  }

  .hero__actions {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 30px;
  }

  .link-btn {
    font-size: 20px;
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  .directions h2 {
    text-align: left;
    font-size: 32px;
    line-height: 1.16;
  }

  .directions ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px 18px;
    margin-top: 40px;
    overflow: visible;
    align-items: start; 
  }

  .directions li {
    min-width: 0;
    gap: 12px;
    font-size: 14px;
  }

  .directions li img {
    width: 58px;
    height: 36px;
  }

  .products {
    padding: 0 0 30px;
  }

  .products__grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 30px;
    padding-right: 30px;
  }

  .product-card {
    min-height: 170px;
    padding: 20px;
  }

  .product-card--medical {
    order: -1;
  }

  .product-card h3 {
    font-size: 20px;
  }

  .science__grid {
    gap: 30px;
  }

  .science h2 {
    font-size: 24px;
  }

  .science__copy {
    gap: 30px;
  }

  .stats {
    padding: 0;
  }

  .stats__desktop {
    display: none;
  }

  .stats__mobile {
    display: flex;
    width: 100%;
    overflow-x: auto;
    gap: 4px;
    padding: 0;
    scroll-snap-type: x proximity;
  }

  .mobile-stat {
    position: relative;
    flex: 0 0 160px;
    width: 160px;
    height: 160px;
    overflow: hidden;
    padding: 14px;
    background: #fff;
    scroll-snap-align: start;
  }

  .mobile-stat img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .mobile-stat--image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0,0,0,.12);
  }

  .mobile-stat strong,
  .mobile-stat p,
  .mobile-stat span,
  .mobile-stat b {
    position: relative;
    z-index: 2;
    display: block;
    margin: 0;
  }

  .mobile-stat strong {
    font-size: 40px;
    line-height: .9;
    font-weight: 500;
  }

  .mobile-stat p {
    font-size: 20px;
    line-height: 1.2;
    font-weight: 600;
  }

  .mobile-stat--image strong,
  .mobile-stat--image p,
  .mobile-stat--image span {
    color: #fff;
  }

  .mobile-stat--wide {
    flex-basis: 217px;
  }

  .mobile-stat--wide strong {
    font-size: 36px;
    line-height: 1.2;
  }

  .mobile-stat--wide span {
    font-size: 16px;
  }

  .mobile-stat--text {
    flex-basis: 362px;
    display: grid;
    gap: 4px;
  }

  .mobile-stat--text strong {
    font-size: 36px;
    line-height: 1.2;
  }

  .mobile-stat--text b {
    font-size: 24px;
    font-weight: 500;
  }

  .why {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .why h2,
  .schedule h2,
  .partner h2 {
    font-size: 32px;
    line-height: 1.16;
  }

  .why__mobile-arrow {
    display: block;
    position: absolute;
    right: 30px;
    top: 43px;
    width: 56px;
    height: 14px;
    border: 0;
    background: transparent;
  }

  .why__mobile-arrow::before {
    content: "";
   /* background:url(assets/arrow_right.svg);
    background-size: cover;*/
    width: 56px;
    height: 14px;
    font-size: 30px;
    line-height: 14px;
  }

  .why__grid {
    display: none;
  }

  .cosmelan {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .cosmelan__inner {
    grid-template-columns: 1px 1fr;
    gap: 30px;
  }

  .cosmelan__line {
    height: 170px;
  }

  .cosmelan h2 {
    font-size: 32px;
    line-height: 1.16;
  }

  .cosmelan p {
    font-size: 24px;
    font-weight: 400;
  }

  .benefits {
    padding: 0;
  }

  .benefits__container {
    padding: 0;
  }

  .benefits__box {
    min-height: 500px;
    width: 100%;
  }

  .benefits__media {
    height: 500px;
  }

  .benefits__media img {
    object-position: left top;
  }

  .benefits__content {
    width: 721px;
    max-width: none;
    min-height: 500px;
    margin-left: 0;
    padding: 30px;
    display: grid;
    grid-template-columns: 337px 304px;
    gap: 86px;
    align-items: end;
  }

  .benefits h2 {
    width: 315px;
    margin: 0;
    font-size: 32px;
    line-height: 1.16;
  }

  .benefits ul {
    width: 304px;
    margin: 0;
    gap: 18px;
  }

  .benefits .btn {
    position: absolute;
    left: 30px;
    bottom: 28px;
  }

  .schedule {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .schedule__top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }

  .filters {
    gap: 56px;
  }

  .notice,
  .schedule__note {
    display: none;
  }

  .mobile-filter-tags {
    display: grid;
    gap: 8px;
    margin-top: 18px;
  }

  .date-tags,
  .city-tag {
    width: max-content;
    border: 1px solid var(--gray);
    padding: 12px 20px;
    font-size: 24px;
    font-weight: 500;
  }

/*  .date-tags {
    display: grid;
    gap: 12px;
  }*/

  .city-tag {
    color: var(--blue);
  }

  .important {
    width: max-content;
    border: 0;
    background: transparent;
    padding: 0;
    color: var(--blue);
    font-size: 24px;
    font-weight: 600;
  }

  .seminars {
    margin-top: 30px;
    gap: 16px;
  }

  .seminar-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 0;
  }

  .seminar-row span:nth-child(2) {
    margin-left: 198px;
    margin-top: -31px;
  }

  .seminar-row strong span:nth-child(2) {
    margin-left: 2px;
    margin-top: 0px;
  }


  .partner {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .partner__lead {
    margin: 30px 0;
    font-size: 24px;
  }

  .form__top {
    gap: 26px;
  }

  .partner-type button {
    max-width: 100%;
    text-align: left;
  }

  .partner-type > span {
    max-width: 100%;
  }

  .footer {
    padding: 0;
  }

  .footer__grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 30px 30px;
  }

  .footer__mark {
    width: 315px;
    margin: 0;
  }

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

  .footer__brand .socials {
    width: 100%;
    justify-content: space-between;
    padding-top: 30px;
  }

  .footer__nav {
    margin: 0;
    gap: 18px;
  }

  .footer__nav a {
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  .footer__logo {
    font-size: 38px;
    letter-spacing: -2px;
  }

  .footer__contacts {
    gap: 26px;
    padding: 0;
  }

  .footer__contacts p:nth-child(3) a,
  .footer__contacts p:nth-child(4) a {
    font-size: 20px;
    font-weight: 500;
    text-decoration: none;
  }

  .footer__legal {
    flex-direction: column;
    gap: 9px;
    margin-top: 0 !important;
  }
}


.mobile-menu {
  display: none;
}

.mobile-menu[hidden] {
  display: none !important;
}

@media (max-width: 767px) {
  .header {
    position: sticky;
    z-index: 100;
    top:0;
  }

  .mobile-menu {
    position: absolute;
    top: 25px;
    right: 20px;
    z-index: 200;
    padding: 30px;
    border: 1px solid #000;
    background: #fff;
    display: grid;
    gap: 31px;
  }

  .mobile-menu__close {
    position: absolute;
    top: 11px;
    right: 11px;
    width: 18px;
    height: 18px;
    border: 0;
    background: transparent;
    padding: 0;
    font-size: 28px;
    line-height: 18px;
    font-weight: 300;
    color: #bababa;
    cursor: pointer;
  }

  .mobile-menu a {
    width: max-content;
    color: #000;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 400;
    border-bottom: 1px solid #000;
    text-decoration: none;
  }

  .burger.is-active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .burger.is-active span:nth-child(2) {
    opacity: 0;
  }

  .burger.is-active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .burger span {
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
}
/* === Mobile fixes 2026-05: why/stats/cosmelan/benefits/footer === */
@media (max-width: 767px) {
  main#top {
    display: flex;
    flex-direction: column;
  }

  main#top > .hero { order: 1; }
  main#top > .directions { order: 2; }
  main#top > .products { order: 3; }
  main#top > .science { order: 4; }
  main#top > .why { order: 5; }
  main#top > .stats { order: 6; }
  main#top > .cosmelan { order: 7; }
  main#top > .benefits { order: 8; }
  main#top > .schedule { order: 9; }
  main#top > .meso-schedule { order: 9; }
  main#top > .partner,
  main#top > .meso-partner-form { order: 10; }
.subheader_banner{width:auto;margin-top: 0px;}
  .why {
    padding: 0px 0 60px;
  }

  .why__inner {
    position: relative;
  }

  .why h2 {
    width: calc(100% - 72px);
    cursor: pointer;
    user-select: none;
  }

  .why__mobile-arrow {
    display: block;
    position: absolute;
    right: 30px;
    top: 42px;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    padding: 0;
  }

  .why__mobile-arrow::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 8px;
    width: 18px;
    height: 18px;
    border-right: 3px solid #000;
    border-bottom: 3px solid #000;
    transform: rotate(45deg);
    transition: transform .2s ease, top .2s ease;
  }

  .why.is-open .why__mobile-arrow::before {
    top: 14px;
    transform: rotate(225deg);
  }

  .why__grid {
    display: none;
    margin-top: 26px;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .why.is-open .why__grid {
    display: block;
  }

  .why__text {
    font-size: 18px;
    line-height: 1.22;
  }

  .why__text p {
    margin: 0 0 19px;
  }

  .why__facts {
    display: none !important;
  }

  .stats {
    position: relative;
    padding: 0 0 30px;
    overflow: hidden;
  }

  .stats__desktop {
    display: none !important;
  }

  .stats__mobile {
    display: flex;
    width: 100%;
    overflow-x: auto;
    gap: 0;
    padding: 0 30px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .stats__mobile::-webkit-scrollbar {
    display: none;
  }

  .mobile-stat {
    position: relative;
    flex: 0 0 160px;
    width: 160px;
    height: 160px;
    padding: 14px;
    overflow: hidden;
    background: #fff;
    scroll-snap-align: start;
  }

  .mobile-stat img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .mobile-stat--image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, .12);
  }

  .mobile-stat strong,
  .mobile-stat p,
  .mobile-stat span,
  .mobile-stat b {
    position: relative;
    z-index: 2;
    display: block;
    margin: 0;
  }

  .mobile-stat strong {
    font-size: 40px;
    line-height: .9;
    font-weight: 500;
  }

  .mobile-stat p {
    font-size: 20px;
    line-height: 1.16;
    font-weight: 600;
  }

  .mobile-stat--image strong,
  .mobile-stat--image p,
  .mobile-stat--image span {
    color: #fff;
  }

  .mobile-stat--wide {
    flex-basis: 217px;
  }

  .mobile-stat--wide strong {
    font-size: 30px;
    line-height: 1.2;
  }

  .mobile-stat--wide span {
    margin-top: 6px;
    font-size: 16px;
  }

  .mobile-stat--text {
    flex-basis: 262px;
    display: grid;
    align-content: start;
    gap: 4px;
  }

  .mobile-stat--text strong {
    font-size: 36px;
    line-height: 1.2;
  }

  .mobile-stat--text b {
    font-size: 24px;
    font-weight: 500;
  }

  .stats::after,
  .benefits__box::after {
    content: "";
    position: absolute;
    background:url(assets/arrow_right.svg);
    background-size: cover;
    width:21px;
    height:19px;
    z-index: 3;
    right: 30px;
    color: #000;
    font-size: 34px;
    line-height: 1;
    font-weight: 400;
    pointer-events: none;

  }

  .stats::after {
    top: 140px;
  }

  .cosmelan {
    padding: 30px 0 30px;
  }

  .cosmelan__inner {
    grid-template-columns: 1px 1fr;
    gap: 30px;
    align-items: start;
    padding-left: 30px;
    padding-right: 30px;
  }

  .cosmelan__line {
    height: 240px;
    margin-top: 8px;
    width: 3px;

  }

  .cosmelan h2 {
    margin: 0 0 26px;
    font-size: 32px;
    line-height: 1.16;
    font-weight: 600;
    width: 50%;
  }

  .cosmelan p {
    width: auto;
    max-width: 310px;
    margin: 0;
    font-size: 24px;
    line-height: 1.22;
    font-weight: 400;
  }

  .benefits {
    padding: 30px 0;
  }

  .benefits__container {
    width: 100%;
    padding: 0;
  }

  .benefits__box {
    position: relative;
    width: 100%;
    min-height: 500px;
    overflow: hidden;
  }

  .benefits__media {
    position: absolute;
    inset: 0;
    height: 500px;
  }

  .benefits__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  .benefits__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    width: 100%;
    max-width: none;
    min-height: 500px;
    margin: 0;
    padding: 30px 30px 20px;
    gap: 18px;
  }

  .benefits h2 {
    width: 260px;
    margin: 0;
    font-size: 32px;
    line-height: 1.16;
    font-weight: 600;
  }

/*  .benefits ul {
    display: none;
  }*/

  .benefits .btn {
    position: static;
    left: auto;
    bottom: auto;
    width: max-content;
    min-height: 57px;
    padding: 18px 42px;
    font-size: 20px;
  }

  .benefits__box::after {
    right: 30px;
    bottom: 78px;
  }

  .footer {
    padding: 0;
    background: var(--footer);
  }

  .footer .container--wide {
    width: 100%;
  }

  .footer__grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 30px 0;
  }

  .footer__brand {
    display: contents;
  }

  .footer__mark {
    order: 1;
    width: 315px;
    max-width: 100%;
    margin: 0 0 30px;
  }

  .footer__nav {
    order: 2;
    display: grid;
    gap: 18px;
    margin: 0 0 30px;
    font-size: 18px;
  }

  .footer__logo {
    margin: 0 0 4px;
  }

  .footer__logo img {
    width: 186px;
    height: auto;
  }

  .footer__nav a {
    width: max-content;
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  .footer__brand .socials,
  .footer .socials {
    order: 3;
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 0;
    padding: 0 0 30px;
  }

  .footer .socials img {
    width: 24px;
    height: 24px;
    object-fit: contain;
  }

  .footer__contacts {
    order: 4;
    display: flex;
    flex-direction: column;
    gap: 19px;
    padding: 0;
    font-size: 16px;
    line-height: 1.2;
  }

  .footer__contacts p {
    margin: 0;
  }

  .footer__contacts p:nth-child(1) { order: 4; }
  .footer__contacts p:nth-child(2) { order: 5; }
  .footer__contacts p:nth-child(3) { order: 1; }
  .footer__contacts p:nth-child(4) { order: 2; }
  .footer__contacts p:nth-child(5) { order: 3; }
  .footer__contacts p:nth-child(6) { order: 6; }

  .footer__contacts p:nth-child(3),
  .footer__contacts p:nth-child(4) {
    font-weight: 500;
  }

  .footer__contacts p:nth-child(3) a,
  .footer__contacts p:nth-child(4) a {
    font-size: 20px;
    font-weight: 500;
    text-decoration: none;
  }

  .footer__contacts a {
    text-decoration: underline;
  }

  .footer__legal {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 0 !important;
    font-size: 12px;
  }
}



.footer__dsk{display:block;}
.footer__mobile{display:none;}

.header__phone_mobile{display:none;}

@media (max-width: 767px) {

.header__phone_mobile{display:block;}

.footer__dsk{display:none;}
.footer__mobile{display:contents;}

.footer__contacts .phone_link {font-size:20px; font-weight:600;}
.footer__contacts .grey_mo{color:#818181;font-size:16px;}


.meso-partner-form .agree {
    width: 100%;
}

  .benefits__box {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    background: #D1D0CC;
  }

  /* Если старая стрелка была через псевдоэлемент — отключаем ее */
  .benefits__box::after {
    display: none !important;
  }

  .benefits__media {
    position: absolute;
    inset: 0;
    z-index: 1;
    height: 500px;
    transition: transform 0.35s ease;
  }

  .benefits__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
  }

  .benefits__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    max-width: none;
    min-height: 500px;
    margin: 0;
    padding: 0;
    display: block;
  }

  .benefits__content h2 {
    position: absolute;
    left: 30px;
    bottom: 95px;
    z-index: 3;
    width: 260px;
    margin: 0;
    font-size: 32px;
    line-height: 1.16;
    font-weight: 600;
    transition: transform 0.35s ease;
  }

  .benefits__content .btn {
    position: absolute;
    left: 30px;
    bottom: 30px;
    z-index: 3;
    transition: transform 0.35s ease;
  }

  .benefits__content ul {
    position: absolute;
    left: 100%;
    top: 0;
    z-index: 4;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 72px 42px;
    list-style: none;
    background: #D1D0CC;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    transition: transform 0.35s ease;
  }

  .benefits__content li {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 22px;
    align-items: start;
    font-size: 16px;
    line-height: 1.2;
  }

  .benefits__content li img {
    width: 24px;
    height: 24px;
    object-fit: contain;
  }

  .benefits__arrow {
    position: absolute;
    right: 30px;
    bottom: 100px;
    z-index: 10;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    padding: 0;
    color: #000;
    cursor: pointer;
    transform: translateY(-50%);
  }

  .benefits__arrow::before {
    content: "";
    display: block;
    font-size: 34px;
    line-height: 42px;
    font-weight: 400;
    background:url(assets/arrow_right.svg);
    background-size: cover;
    width:21px;
    height:19px;

  }

  .benefits__box.is-open .benefits__media,
  .benefits__box.is-open .benefits__content h2,
  .benefits__box.is-open .benefits__content .btn {
    transform: translateX(-100%);
  }

  .benefits__box.is-open .benefits__content ul {
    transform: translateX(-100%);
  }

  .benefits__box.is-open .benefits__arrow::before {
    content: "";
    background:url(assets/arrow_right.svg);
    background-size: cover;
    width:21px;
    height:19px;
    transform: rotate(180deg);
    transform-origin: center;
  }
}


/* final fixes */
.footer__nav a {
  display: inline-block;
  width: max-content;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}

.footer__nav a:hover {
  border-bottom-color: #000;
}

.scroll-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 1500;
  width: 60px;
  height: 60px;
  border: none;
  background:url(assets/up.svg);
  background-size: cover;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease, background .2s ease, color .2s ease;
  cursor: pointer;
}
.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.phone_footer{font-size:20px; font-weight:500;}
.grey_mo{color:#818181;font-size:16px;}



.benefits__mobile {
    display: none;
}


@media (max-width: 767px) {
  .scroll-top {
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
  }

  .footer__nav a {
    text-decoration: none;
    border-bottom-color: #000;
  }
/*
  .benefits__box {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    min-height: 500px;
    background: #D1D0CC;
  }

  .benefits__box::before {
    content: "";
    display: block !important;
    flex: 0 0 100%;
    order: 2;
    background: #D1D0CC;
    scroll-snap-align: start;
  }

  .benefits__media {
    position: relative;
    inset: auto;
    flex: 0 0 100%;
    order: 1;
    height: 500px;
    scroll-snap-align: start;
    transform: none !important;
  }

  .benefits__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 200%;
    min-height: 500px;
    pointer-events: none;
    transform: none !important;
  }

  .benefits__content h2 {
    bottom: 140px;
    pointer-events: auto;
    transform: none !important;
  }

  .benefits__content .btn {
    bottom: 30px;
    pointer-events: auto;
    transform: none !important;
  }

  .benefits__content ul {
    left: 50%;
    width: 50%;
    transform: none !important;
    pointer-events: auto;
  }

  .benefits__arrow {
    pointer-events: auto;
  }

  .benefits__box.is-open .benefits__media,
  .benefits__box.is-open .benefits__content h2,
  .benefits__box.is-open .benefits__content .btn,
  .benefits__box.is-open .benefits__content ul {
    transform: none !important;
  }*/
 /* Desktop: мобильный слайдер скрыт */

    .benefits {
        padding: 0;
        overflow: hidden;
    }

    .benefits__container {
        padding: 0;
        width: 100%;
    }

    .benefits__box {
        position: relative;
        width: 100%;
        height: 500px;
        min-height: 500px;
        overflow: visible;
        background: #fff;
    }

    .benefits__box::after {
        display: none !important;
    }

    .benefits__media--desktop,
    .benefits__content--desktop {
        display: none !important;
    }

    .benefits__mobile {
        position: relative;
        display: block;
        width: 100%;
        height: 500px;
        overflow: hidden;
    }

.benefits__mobile-scroll {
    width: 100%;
    height: 500px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: none;
    overscroll-behavior-x: contain;
}


    .benefits__mobile-scroll::-webkit-scrollbar {
        display: none;
    }

.benefits__mobile-track {
    position: relative;
    width: 811px;
    height: 500px;
    min-width: 811px;
    padding-left: 30px;
    background-image: url("/local/templates/mesoestetic/assets/mobile_benefits_slider.jpg");
    background-repeat: no-repeat;
    background-size: cover;
}

    .benefits__mobile-start {
        position: absolute;
        left: 30px;
        top: 248px;
        z-index: 2;
        width: 290px;
        scroll-snap-align: start;
    }

    .benefits__mobile-start h2 {
        width: 280px;
        margin: 0 0 54px;
        color: #000;
        font-size: 32px;
        line-height: 1.15;
        font-weight: 600;
    }

    .benefits__mobile-start .btn {
        width: 255px;
        min-height: 58px;
        padding: 18px 28px;
        font-size: 20px;
    }

    .benefits__mobile-list {
        position: absolute;
        left: 455px;
        top: 50px;
        z-index: 2;
        width: 295px;
        margin: 0;
        padding: 0;
        list-style: none;
        display: grid;
        gap: 22px;
        scroll-snap-align: end;
    }

    .benefits__mobile-list li {
        display: grid;
        grid-template-columns: 24px 1fr;
        gap: 22px;
        align-items: start;
        color: #000;
        font-size: 18px;
        line-height: 1.18;
        font-weight: 400;
    }

    .benefits__mobile-list li img {
        width: 24px;
        height: 24px;
        object-fit: contain;
        margin-top: 1px;
    }

    .benefits__arrow {
        position: absolute;
        right: 52px;
        top: 286px;
        z-index: 20;
        width: 42px;
        height: 42px;
        border: 0;
        background: transparent;
        padding: 0;
        cursor: pointer;
    }

    .benefits__arrow::before {
        content: "";
        display: block;
        width: 21px;
        height: 19px;
        margin: auto;
        background-image: url("/local/templates/mesoestetic/assets/arrow_right.svg");
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        transform: rotate(0deg);
        transform-origin: center;
        transition: transform 0.2s ease;
    }

    .benefits__mobile.is-open .benefits__arrow::before {
        transform: rotate(180deg);
    }



}
