/* HEADER */
header {
  position: relative;
  z-index: 5;
}
.header-top {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
}
.header-top p {
  color: var(--primary-accent);
  white-space: nowrap;
  width: max-content;
  font-weight: 300;
  font-size: calc(14px + 2 * var(--window-resize));
  margin: 0;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px var(--container-offset) 26px;

  @container small (min-width: 0) {
    padding: 16px calc(var(--container-offset) / 2);
  }
}

.header-left {
  display: flex;
  align-items: center;
  column-gap: 30px;
  width: 1px;
  white-space: nowrap;
}
.header-catalog {
  width: min-content;

  @media screen and (max-width: 640px) {
    display: none;
  }
}
.header-phone {
  @media screen and (max-width: 991px) {
    display: none;
  }
}
.header-phone .phone-link {
  /* color: var(--primary-color); */
  font-weight: 500;
  font-size: calc(16px + 2 * var(--window-resize));
}
body[class*="-full-width"] .header-phone .phone-link {
  color: var(--primary-accent);
}
body[class*="-full-width"] .header-phone .phone-link:hover {
  color: var(--primary-accent3);
}

.header-logo {
  height: 60px;

  @media screen and (max-width: 640px) {
    height: 34px;
  }
}
.header-logo svg {
  height: 100%;
  width: 100%;
}
body[class*="-full-width"] .header-logo .logo-accent {
  fill: var(--primary-accent)
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: end;
  column-gap: 8px;
  width: 1px;
  white-space: nowrap;
}
.header-basket, .header-wishlist {
  @media screen and (max-width: 640px) {
    display: none;
  }
}
.header-wishlist__button, .header-basket__button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease;
}
:is(.header-wishlist__button, .header-basket__button):hover {
  border-color: var(--primary-accent);
  background-color: var(--primary-color);
}
body[class*="-full-width"] :is(.header-wishlist__button, .header-basket__button):hover {
  border-color: var(--primary-accent2);
  /* background-color: var(--primary-accent); */
}
:is(.header-wishlist__button, .header-basket__button) .icon {
  width: 24px;
  height: 24px;
}
body[class*="-full-width"] :is(.header-wishlist__button, .header-basket__button) .icon {
  --icon-fill: var(--primary-accent);
}
:is(.header-wishlist__button, .header-basket__button):hover .icon {
  --icon-fill: var(--primary-accent);
}
body[class*="-full-width"] :is(.header-wishlist__button, .header-basket__button):hover .icon {
  /* --icon-fill: var(--primary-color); */
}

.header-links-wrap {
  width: max-content;
  margin: 0 auto;
  
  @media screen and (max-width: 640px) {
    display: none;
  }
}
body[class*="-full-width"] .header-links a {
  --link-hover: var(--primary-accent3);
  --link-color: var(--primary-accent);
}
body[class*="-full-width"] .header-links a:is(.priority, .link--active) {
  --link-hover: var(--primary-accent);
  --link-color: var(--primary-accent3);
}

/* FOOTER */
footer {
  margin-top: auto;
}
.footer {
  padding: 50px 0 34px;
  background-color: var(--primary-color);

  @container small (min-width: 0) {
    padding-top: 30px;
  }
}
footer * {
  color: var(--primary-accent4);
}

.footer .container {
  justify-content: space-between;

  @container xlarge (min-width: 0) {
    flex-wrap: wrap;
    row-gap: 60px;
  }

  @container medium (min-width: 0) {
    flex-direction: column;
    row-gap: 40px;
  }

  @container small (min-width: 0) {
    row-gap: 20px;
  }
}

.footer-title {
  font-weight: 500;
  font-size: calc(22px + 2 * var(--window-resize));
}
.footer-left, .footer-right {
  width: 1px;
  position: relative;
  z-index: 1;

  @container medium (min-width: 0) {
    width: 100%;
  }
}
.footer-left {
  display: flex;
  align-items: start;
  column-gap: 60px;

  @container small (min-width: 0) {
    flex-direction: column;
    row-gap: 0px;
  }
}
.footer-menu {
  min-width: 240px;

  display: flex;
  flex-direction: column;
  row-gap: 31px;

  @container medium (min-width: 0) {
    width: 100%;
  }

  @container small (min-width: 0) {
    border-bottom: 1px solid var(--primary-accent4);
  }
}

@container small (min-width: 0) {
  .footer-menu .footer-title {
    padding: 16px 0;
  }
  .footer-menu-links {
    display: none;
  }
}

.footer-logo-wrap {
  width: 100%;

  @container xlarge (min-width: 0) {
    order: -1;
  }
}
.footer-logo {
  margin-left: auto;
  margin-right: auto;
  width: 282px;

  display: flex;
  flex-direction: column;
  row-gap: 12px;

  @container large (min-width: 0) {
    width: 178px;
  }
}
.footer-logo .logo {
  display: block;
  width: 100%;
}
.footer-logo svg {
  width: 100%;
  height: 100%;
}
.footer-logo svg .logo-accent {
  fill: var(--primary-accent);
}
.footer-slogan {
  text-align: center;
  color: var(--primary-accent);
  font-weight: 300;
  font-size: 21px;

  @container large (min-width: 0) {
    font-size: 14px;
  }
}
.footer-right .footer-column {
  min-width: 460px;
  transform: translateX(-100%);

  display: flex;
  flex-direction: column;
  row-gap: 38px;

  @container medium (min-width: 0) {
    transform: none;
    row-gap: 16px;
    min-width: 100%;
  }
}
@container medium (min-width: 0) {
  .footer-socials {
    margin-top: 26px;
  }
}
.footer-end {
  padding: 18px 0 16px;
  background-color: var(--primary-accent5);
}
@container small (min-width: 0) {
  .footer-end {
    padding-bottom: 20px;
  }
  .footer-end .container {
    flex-direction: column;
    row-gap: 9px;
  }
}
.footer-copyright {
  font-weight: 300;
  font-size: calc(14px + 0 * var(--window-resize));
}
.footer-end-links {
  margin-left: auto;

  @container small (min-width: 0) {
    margin-left: 0;
    text-align: left;
  }
}
@container small (min-width: 0) {
  .footer-end-links .footer-links {
    justify-content: start;
  }
}
.footer-end-links a.link {
  font-weight: 300;
}

.footer-fixed {
  display: none;
  align-items: center;
  justify-content: space-around;
  column-gap: 20px;

  left: 0;
  bottom: 0;
  right: 0;
  z-index: -99;
  position: sticky;

  height: 70px;
  padding: 0 14px;
  background-color: var(--footer-fixed-background, var(--primary-accent));
  
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;

  @container small (min-width: 0) {
    z-index: 99;
    opacity: 1;
    pointer-events: all;
    display: flex;
  }
}
.footer-button .button {
  --button-width: max-content;
  --button-height: 40px;
  --button-offset: 0;
  --button-background: transparent;
  --button-background-hover: transparent;
  --button-color: var(--primary-accent4);
  --button-color-hover: var(--primary-accent2);

  flex-direction: column;
  row-gap: 9px;
}
.footer-button .button .link__text {
  font-size: 10px;
}
.footer-button--basket .button {
  --button-width: 70px;
  --button-height: 70px;
  --button-radius: 70px;
  --button-background: var(--primary-color);
  --button-background-hover: var(--primary-color);
  --button-color: var(--primary-accent);
  --button-color-hover: var(--primary-accent8);

  margin-bottom: 18px;
  position: relative;
}
.footer-button--basket .button::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  background-color: var(--primary-accent);
  opacity: 0.5;
  width: calc(100% + 10px);
  height: calc(100% + 10px);
  border-radius: 50%;
  z-index: -1;
}
.footer-button--basket .link__text {
  display: none;
}

/* 404 */
#error-not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 30px;
  width: 100%;
  margin-top: 60px;
  margin-bottom: 100px;

  @container small (min-width: 0) {
    margin-top: 30px;
    margin-bottom: 50px;
  }
}
#error-not-found .icon {
  --icon-size: 40px;
  --icon-fill: var(--primary-accent4);
}
#error-not-found p {
  margin: 0;
  font-weight: 500;
  text-align: center;
  font-size: calc(18px + 8 * var(--window-resize));
}

/* PAGE */
main {
  position: relative;
  z-index: 0;
}
#page {
  width: 100%;
  display: flex;
  flex-direction: column;
  row-gap: 40px;
}

#page-headline {
  height: 66px;
  margin-top: 33px;
  z-index: 1;
  position: relative;
  display: flex;
  align-items: center;

  @container medium (min-width: 0) {
    height: auto;
    padding: 14px 0;
    margin-top: 24px;
  }

  @container small (min-width: 0) {
    margin-top: 0;
  }
}
body[class*="-full-width"] #page-headline :is(h1, h2) {
  color: var(--primary-accent);
}
#page-headline::before {
  content: '';
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  position: absolute;
  opacity: .04;
  background-color: var(--primary-accent4);
}
body[class*="-full-width"] #page-headline::before {
  background-color: var(--primary-accent);
}
#page-headline .container {
  @container medium (min-width: 0) {
    flex-direction: column;
    row-gap: 6px;
  }
}
#page-headline h1 {
  font-weight: 500;
  text-transform: uppercase;
  font-size: calc(20px + 0 * var(--window-resize));
}

#page-container {
  display: flex;
  flex-direction: column;
  row-gap: 130px;
  margin-bottom: 130px;
  
  @container medium (min-width: 0) {
    row-gap: 80px;
    margin-bottom: 80px;
  }

  @container small (min-width: 0) {
    row-gap: 60px;
    margin-bottom: 60px;
  }

  @container xsmall (min-width: 0) {
    row-gap: 40px;
    margin-bottom: 40px;
  }
}
#page-content {
  width: 100%;
  display: flex;
  column-gap: 24px;
  align-items: start;
  overflow: visible;
}
#page-info {
  width: 100%;
  display: flex;
  flex-direction: column;
}

#page-content-top {
  width: 100%;
  display: flex;
  row-gap: 130px;
  flex-direction: column;
  margin-top: 80px;
  
  @container medium (min-width: 0) {
    row-gap: 80px;
    margin-top: 50px;
  }

  @container small (min-width: 0) {
    row-gap: 60px;
    margin-top: 35px;
  }

  @container xsmall (min-width: 0) {
    row-gap: 40px;
    margin-top: 20px;
  }
}
#page-content-bottom {
  width: 100%;
  display: flex;
  row-gap: 130px;
  flex-direction: column;
  margin-top: 80px;
  
  @container medium (min-width: 0) {
    row-gap: 80px;
    margin-top: 60px;
  }

  @container small (min-width: 0) {
    row-gap: 60px;
    margin-top: 35px;
  }

  @container xsmall (min-width: 0) {
    row-gap: 40px;
    margin-top: 20px;
  }
}
*:not(.hide) ~ #page-content-bottom {
  margin-top: 0;
}
#page-column-left {
  order: -1;
  width: 100%;
  max-width: var(--column-size);

  display: flex;
  flex-direction: column;
  row-gap: 60px;

  @container medium (min-width: 0) {
    display: none;
  }
}
#page-column-right {
  order: 5;
  width: 100%;
  max-width: var(--column-size);

  display: flex;
  flex-direction: column;
  row-gap: 60px;

  @container medium (min-width: 0) {
    display: none;
  }
}

.html {
  z-index: 0;
  position: relative;
}
.html.html--only-title {
  padding: 50px 0;
  margin: -50px 0;

  @container small (min-width: 0) {
    padding: 20px 0;
    margin: -20px 0;
  }
}
.html.html--only-title .title :is(h1, h2) {
  font-weight: 300;
  font-size: calc(24px + 50 * var(--window-resize));
}
.html .icon--title-bg {
  --icon-fill: var(--primary-accent4);

  z-index: -1;
  position: absolute;
  left: 50%;
  top: 50%;
  height: 100%;
  width: auto;
  max-width: 80%;
  transform: translateX(-50%) translateY(-50%);
}
.html .icon--title-bg svg {
  width: initial;
  max-width: initial;
}