/* =========================================================
   LAYOUT CONTAINERS
========================================================= */

.med-header__container,
.med-hero__container,
.med-footer__container {
  width: min(100%, calc(1920px + 20px * 2));
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* =========================================================
   HERO
========================================================= */

.med-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background: #0a0705;
}

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

.med-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.med-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.24) 32%,
      rgba(0, 0, 0, 0.16) 58%,
      rgba(0, 0, 0, 0.44) 100%
    ),
    radial-gradient(
      circle at center,
      rgba(100, 35, 0, 0.12) 0%,
      rgba(0, 0, 0, 0.06) 42%,
      rgba(0, 0, 0, 0.24) 100%
    );
  z-index: 1;
}

.med-hero__content {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(74px + 20px);
  padding-bottom: calc(56px + 20px);
}

.med-hero__container {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* =========================================================
   HEADER
========================================================= */

.med-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  padding-top: 12px;
}

.med-header__container {
  min-height: 74px;
  display: flex;
  align-items: start;
  column-gap: 24px;
  flex-direction: row;
  justify-content: space-between;
}

.med-header__phone {
    padding-top: 12px;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 400;
    white-space: nowrap;
    font-family: var(--font-mulish);
}
.med-header__address {
  padding-top: 6px;
}

.med-header__address-text {
  margin-bottom: 2px;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;
  color: #fff;
  font-family: var(--font-mulish);
}

.med-header__map-link {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;
  color: var(--green-color);
  font-family: var(--font-mulish);
  transition: opacity 0.28s ease;
}

.med-header__map-link:hover {
  opacity: 0.8;
}

.med-header__book-btn {
    min-width: 236px;
    min-height: 50px;
    padding: 13px 24px;
    border-radius: 6px;
    background: #f2eb12;
    color: #1e1e1e;
    text-align: center;
    font-size: 17px;
    font-weight: 500;
    box-shadow: 0 0 24px rgba(242, 235, 18, 0.34), 0 0 46px rgba(242, 235, 18, 0.14);
    transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
    line-height: 0;
    font-family: var(--font-exo);
}

.med-header__book-btn:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
}

.med-header__burger {
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  justify-self: end;
}

.med-header__burger-hex {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0% 50%);
  border: 1px solid rgba(255, 255, 255, 0.68);
}

.med-header__burger-hex::before {
  content: "";
  position: absolute;
  inset: 1px;
  clip-path: inherit;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.med-header__burger-lines {
  position: relative;
  width: 18px;
  height: 12px;
}

.med-header__burger-lines::before,
.med-header__burger-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #f2eb12;
  border-radius: 99px;
}

.med-header__burger-lines::before {
  top: 2px;
}

.med-header__burger-lines::after {
  bottom: 2px;
}

/* =========================================================
   HONEYCOMB
========================================================= */

.med-honeycomb-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.med-honeycomb {
  position: relative;
  width: 668px;
  height: 612px;
  transform-origin: center center;
  flex: 0 0 auto;
}

.med-honeycomb__hex {
  position: absolute;
  width: 266px;
  height: 266px;
  clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0% 50%);
  -webkit-clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0% 50%);
}

.med-honeycomb__hex:not(.med-honeycomb__hex--center) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 45px 22px;
    text-align: center;
    background: rgb(8 8 8 / 41%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(180, 194, 212, 0.34);
    transition: background 0.28s ease, border-color 0.28s ease, transform 0.28s ease;
}

.med-honeycomb__hex:not(.med-honeycomb__hex--center)::before {
  content: "";
  position: absolute;
  inset: 2px;
  clip-path: inherit;
  -webkit-clip-path: inherit;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.med-honeycomb__hex:not(.med-honeycomb__hex--center):hover {
  background: rgba(0, 0, 0, 0.48);
  border-color: rgba(210, 222, 235, 0.5);
  transform: translateY(-2px);
}

.med-honeycomb__hex:not(.med-honeycomb__hex--center):hover .med-honeycomb__title{
  color: var(--green-color);
}

.med-honeycomb__label{
    position: relative;
    z-index: 1;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 300;
    color: rgb(255 255 255);
    font-family: var(--font-mulish);
}


.med-honeycomb__meta {
  position: relative;
  z-index: 1;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.72);
}

.med-honeycomb__title {
    position: relative;
    z-index: 1;
    font-size: 34px;
    line-height: 0.95;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--yellow-color);
    font-family: var(--font-comfortaa);
    line-height: 120%;
}

.med-honeycomb__hex--center {
  display: grid;
  place-items: center;
  background: rgb(8 8 8 / 41%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(180, 194, 212, 0.28);
}

.med-honeycomb__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.med-honeycomb__brand-title {
  font-size: 58px;
  line-height: 0.9;
  font-weight: 400;
  color: #f2eb12;
}

.med-honeycomb__brand-subtitle {
  margin-top: -3px;
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
  color: #00d95f;
}

/* =========================================================
   EXACT POSITIONS
========================================================= */

.med-honeycomb__hex--bee {
  top: 0;
  left: 0;
}

.med-honeycomb__hex--retreat {
  top: 0;
  left: 402px;
}

.med-honeycomb__hex--bramari {
  top: 233px;
  left: 0;
}

.med-honeycomb__hex--center {
  top: 116.5px;
  left: 201px;
}

.med-honeycomb__hex--soty {
  top: 233px;
  left: 402px;
}

.med-honeycomb__hex--nectar {
  top: 349px;
  left: 201px;
}

/* =========================================================
   FOOTER
========================================================= */

.med-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  padding-bottom: 10px;
}

.med-footer__container {
  min-height: 56px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 20px;
}

.med-footer__left,
.med-footer__right,
.med-footer__center a {
  font-size: 13px;
  line-height: 1.2;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.877);
  font-family: var(--font-comfortaa);
}

.med-footer__center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
}

.med-footer__right {
  text-align: right;
}

.med-footer__center a:hover{
  color:var(--yellow-color)
}
.med-footer__right:hover{
  color:var(--yellow-color)
}


/* =========================================================
   ADAPTIVE / MAIN SITE
========================================================= */

@media (max-width: 1100px) {
  .med-header__container {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "phone burger"
      "address burger"
      "button button";
    row-gap: 16px;
  }

  .med-header__phone {
    grid-area: phone;
    padding-top: 0;
  }

  .med-header__address {
    grid-area: address;
    padding-top: 0;
  }

  .med-header__book-btn {
    grid-area: button;
    justify-self: start;
  }

  .med-header__burger {
    grid-area: burger;
  }

  .med-hero__content {
    padding-top: 180px;
    padding-bottom: 90px;
  }

  .med-honeycomb {
    transform: scale(1);
  }

  .med-footer {
    position: relative;
    padding: 16px 0;
  }

  .med-footer__container {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .med-footer__right {
    text-align: center;
  }
}

@media (max-width: 767px) {
  .med-header__container,
  .med-hero__container,
  .med-footer__container {
    width: min(100%, calc(1440px + 16px * 2));
    padding-left: 16px;
    padding-right: 16px;
  }

  .med-header__phone {
    font-size: 15px;
  }

  .med-header__address-text,
  .med-header__map-link {
    font-size: 13px;
  }

  .med-header__book-btn {
    width: 100%;
    min-width: 0;
  }

  .med-hero__content {
    padding-top: 151px;
    padding-bottom: 35px;
    min-height: 75vh;
  }

  .med-honeycomb {
    transform: scale(0.8);
  }

  .med-honeycomb__meta {
    font-size: 21px;
  }

  .med-honeycomb__label {
    font-size: 22px;
  }

  .med-footer__center {
    flex-direction: column;
    gap: 8px;
  }

  .med-footer__left,
  .med-footer__right,
  .med-footer__center a {
    font-size: 11px;
  }
}

@media (max-width: 540px) {
  .med-honeycomb {
    transform: scale(0.6);
  }
}

@media (max-width: 420px) {
  .med-hero__content {
    padding-top: 160px;
    padding-bottom: 52px;
  }

  .med-honeycomb {
    transform: scale(0.55);
  }
}

@media (max-width: 340px) {
  .med-honeycomb {
    transform: scale(0.45);
  }
}