.text-danger {
  font-weight: 500;
  color: var(--primary-accent2);
}

/* ICON */
.icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: var(--icon-size, 20px);
  min-width: var(--icon-size, 20px);
  height: var(--icon-size, 20px);
  pointer-events: none;
}
.icon svg {
  width: 100%;
  height: 100%;
}
.icon svg :is(path, rect, circle, ellipse):not(.no-change-fill), .icon .can-change-fill {
  transition: fill .3s ease;
  fill: var(--icon-fill, var(--primary-color));
}

/* LINK */
.link {
  cursor: pointer;
  color: var(--link-color);
  transition: color .3s ease;
}
.link:is(:hover, :focus), .link--active {
  --icon-fill: var(--link-hover);
  color: var(--link-hover);
}
.link .link__text {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

/* BUTTON */
.button {
  --icon-size: 28px;
  --icon-fill: var(--button-color);
  --link-color: var(--button-color);

  margin: 0;
  cursor: pointer;
  outline: none;
  border: none;
  user-select: none;
  display: flex;
  column-gap: 8px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;

  max-width: 100%;
  width: var(--button-width);
  max-height: 100%;
  height: var(--button-height);
  padding: 0 var(--button-offset);
  border-radius: var(--button-radius);

  z-index: 0;
  position: relative;
  transition: background-color .3s ease;
  background-color: var(--button-background);
  
  font-weight: 500;
  text-align: center;
  font-size: calc(14px + 0 * var(--window-resize));

  @container large (min-width: 0) {
    --button-width: 350px;
  }

  @container small (min-width: 0) {
    --button-width: 100%;
    
    max-height: 60px;
  }
}
.button:hover, .button--active {
  --icon-fill: var(--button-color-hover);
  --link-hover: var(--button-color-hover);

  background-color: var(--button-background-hover);
  border-color: var(--button-background-hover);
}
.button__text {
  color: var(--button-color);
  font-weight: inherit;
  font-size: inherit;
  transition: color .3s ease;
}
.button:hover .button__text, .button--active .button__text {
  --button-color: var(--button-color-hover);
}
.button--border {
  border: 1px solid var(--button-color);
}
.button--inline {
  --button-color: var(--primary-color);
  --button-color-hover: var(--primary-accent2);

  padding: 0;
  width: max-content;
  max-width: 100%;
  height: auto;
  background-color: transparent !important;
}
.button--circle {
  --button-offset: 0;
  --button-radius: 50%;
  --button-width: var(--button-height);
}
.button--accent {
  --button-color: var(--primary-color);
  --button-background: var(--primary-accent);
}
.button--accent2 {
  --button-color: var(--primary-color);
  --button-background: var(--primary-accent11);
}
.button--accent3 {
  --button-color: var(--primary-accent);
  --button-color-hover: var(--primary-color);
  --button-background: var(--primary-accent2);
  --button-background-hover: var(--primary-accent);
}
.button--gradient {
  --button-color: var(--primary-accent);
  --button-color-hover: var(--primary-accent);
  --button-background: var(--primary-opacity);
  --button-background-hover: transparent;

  overflow: hidden;
  background-clip: padding-box;
}
.button--gradient::before {
  content: '';
  z-index: -1;
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;

  backdrop-filter: blur(4px);
  filter: blur(4);
  border: 2px solid transparent;
  border-radius: var(--button-radius);
  background: linear-gradient(to bottom, var(--primary-accent), rgba(255, 255, 255, 0)) border-box;

  mask:
    linear-gradient(#000 0 0) padding-box,
    linear-gradient(#000 0 0);

  mask-composite: exclude;
}
.button--gradient:hover::before {
  /* background: 
    linear-gradient(var(--primary-opacity2) 0 0) padding-box,
    linear-gradient(to bottom, var(--primary-accent3), rgba(255, 255, 255, 0)) border-box; */
}
.button--more {
  --button-width: max-content;
  --button-offset: 0;
  --button-background: transparent;
  --button-background-hover: transparent;

  margin-left: 30px;
  font-size: calc(15px + 5 * var(--window-resize));
}
.button--more.button--accent {
  --button-color: var(--primary-accent);
  --button-color-hover: var(--primary-accent);
}
.button--more .icon--arrow {
  order: 5;
  transition: transform .3s ease;
}
.button--more:hover .icon--arrow {
  transform: translateX(4px);
}
.button--more .icon--ellipse {
  --icon-size: 118px;
  position: absolute;
  left: -30px;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
}

/* VIDEO */
.video {
  z-index: 0;
  position: relative;
  overflow: hidden;
}
.video__play {
  --icon-size: 65px;
  --icon-fill: var(--primary-accent);

  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video__play .icon {
  position: relative;
  z-index: 0;
}
.video__play .icon::before {
  content: '';
  z-index: -2;
  display: block;
  position: absolute;
  left: -12px;
  top: -12px;
  opacity: .35;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  transition: .3s ease;
  border-radius: 50%;
  background-color: var(--primary-accent);
}
.video__play:hover .icon::before {
  left: -20px;
  top: -20px;
  opacity: .35;
  width: calc(100% + 40px);
  height: calc(100% + 40px);
}
.video__play .icon::after {
  content: '';
  z-index: -1;
  display: block;
  position: absolute;
  left: -12px;
  top: -12px;
  opacity: .35;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  border-radius: 50%;
  background-color: var(--primary-accent);
}
.video :is(video, img) {
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); */
}

.phone {
  display: flex;
  row-gap: 16px;
  flex-direction: column;
}
.phone__title {
  font-weight: 300;
  font-size: calc(18px + 0 * var(--window-resize));
  color: var(--primary-accent4);
}
.phone__text {
  font-weight: 300;
  font-size: calc(18px + 0 * var(--window-resize));
  color: var(--primary-color);
}
.phone .phone-link {
  font-weight: 500;
  font-size: calc(24px + 0 * var(--window-resize));
  color: var(--primary-accent2);
}

.email {
  display: flex;
  row-gap: 16px;
  flex-direction: column;
}
.email__title {
  font-weight: 300;
  font-size: calc(18px + 0 * var(--window-resize));
  color: var(--primary-accent4);
}
.email__text {
  font-weight: 300;
  font-size: calc(18px + 0 * var(--window-resize));
  color: var(--primary-color);
}
.email .email-link {
  font-weight: 500;
  font-size: calc(24px + 0 * var(--window-resize));
  color: var(--primary-accent2);
}

.button.change-city {
  --button-width: max-content;
  --button-height: 70px;
  --button-offset: 30px;

  cursor: default;
  pointer-events: none;
  font-weight: 300;
  font-size: calc(16px + 2 * var(--window-resize));

  @container small (min-width: 0) {
    width: 100%;
  }
}
.button.change-city .icon {
  --icon-size: 20px;
}
.button.change-city strong {
  cursor: pointer;
  pointer-events: all;
  text-decoration: underline !important;
}
.button.change-city strong:hover {
  text-decoration: none !important;
}

/* HISTORY BLOCK */
.banner.history .banner__column {
  width: 100%;
}
.history-block {
  display: flex;
  row-gap: calc(20px + 35 * var(--window-resize));
  flex-direction: column;
}
.history-top img {
  width: 330px;

  @container small (min-width: 0) {
    width: 260px;
  }
}
.history-container {
  display: flex;
  column-gap: calc(0px + 120 * var(--window-resize));
  align-items: stretch;

  @container small (min-width: 0) {
    row-gap: 28px;
    flex-direction: column;
  }
}
.history-left {
  height: 100%;
}
.history-left img {
  min-width: calc(100px + 230 * var(--window-resize));

  @container small (min-width: 0) {
    width: 100%;
    min-width: auto;
  }
}
.history-right {
  display: flex;
  row-gap: calc(30px + 30 * var(--window-resize));
  flex-direction: column;
}
.history-right img {
  width: 100%;
  margin-top: auto;
  object-fit: cover;
}
.banner.history .banner__contents + :is(picture, img) {
  position: absolute;
  margin-left: 0;
  transform: none;
}
.slider--history .swiper-slide img {
  height: calc(260px + 380 * var(--window-resize)) !important;
}

/* DISCOUNT PAGE */
.discount-description {
  z-index: 0;
  position: relative;
  padding-bottom: 80px;
}
.discount-description:not(:first-child) {
  margin-top: 120px;

  @container small (min-width: 0) {
    margin-top: 90px;
  }
}
.discount-description:last-child {
  margin-bottom: -130px;

  @container small (min-width: 0) {
    margin-bottom: -70px;
  }
}
.discount-description::before {
  content: '';
  z-index: -1;
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 100vw;
  margin-top: -44px;
  transform: translateX(-50%);
  background-color: var(--primary-opacity3);
}

/* POPUP */
body.popup-open {
  overflow-y: scroll;
  position: fixed;
  width: 100%;
  top: calc(-1 * var(--scroll-position));
}
.popup {
  z-index: 9999;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  width: 100%;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  pointer-events: none;
  
  display: none;
  align-items: center;
  justify-content: center;

  transition: .3s ease;
}
.popup::before {
  content: '';
  z-index: 0;
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  pointer-events: all;
}
.popup--open {
  display: flex;
}
.popup--show {
  opacity: 1;
}
.popup--sidebar {
  top: 0;
  right: 0;
  left: 100%;
  bottom: 0;
  align-items: start;
  justify-content: end;
}
.popup--show.popup--sidebar {
  left: 0;
}
.popup--alert {
  left: 100%;
  padding: 24px;
  height: auto;

  align-items: start;
  justify-content: end;
}
.popup.popup--alert::before {
  display: none;
}
.popup--show.popup--alert {
  left: 0;
}
.popup__container {
  z-index: 1;
  position: relative;
  height: auto;
  max-width: 100%;
  pointer-events: all;
  padding: 24px;
  background-color: var(--primary-accent);
  box-shadow: 0 0 12px var(--primary-opacity5);

  font-weight: 300;
  font-size: calc(14px + 2 * var(--window-resize));
  color: var(--primary-color);
}
.popup--sidebar .popup__container {
  min-height: 100%;
  padding: 30px 20px;
  width: 468px;
  max-width: 100%;
}
.popup--alert .popup__container {
  width: 470px;
  max-width: calc(100% - 20px);
  min-height: 100px;
  display: flex;
  align-items: center;
}
.popup__title {
  font-weight: 300;
  text-align: center;
  font-size: calc(16px + 8 * var(--window-resize));
  color: var(--primary-color);
  padding-right: 50px;
}
.popup--alert .popup__title {
  text-align: left;
  font-size: calc(16px + 4 * var(--window-resize));
}
.popup__title ~ .popup__contents {
  margin-top: 36px;
}
.popup__close {
  z-index: 1;
  position: absolute;
  right: 24px;
  top: 24px;
  cursor: pointer;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .3s ease;
}
.popup__close:hover {
  background-color: var(--primary-accent2);
}
.popup__close svg {
  width: 16px;
  height: 16px;
}
.popup__close svg path {
  fill: var(--primary-accent);
}
.popup--alert .popup__close {
  width: 24px;
  height: 24px;
}
.popup--alert .popup__close svg {
  width: 12px;
  height: 12px;
}

/* ALERT */
.alert {
  padding: 12px 20px;
  border-radius: 8px;
  width: 100%;
  font-weight: 500;
  font-size: calc(14px + 2 * var(--window-resize));
  color: var(--primary-color);
  background-color: var(--primary-accent9);
  border: 1px solid var(--primary-accent4);
}
.alert--info {
  color: var(--primary-accent7);
  background-color: var(--primary-accent12);
  border: 1px solid var(--primary-accent7);
}
.alert--success {
  color: var(--primary-accent6);
  background-color: var(--primary-accent14);
  border: 1px solid var(--primary-accent6);
}
.alert--danger {
  color: var(--primary-accent2);
  background-color: var(--primary-accent13);
  border: 1px solid var(--primary-accent2);
}