/* Loaded only in the 01.11–01.02 winter block (test dates) from layouts/styles.blade.php */

/* Hide the base summer patterns that stay in the site markup */
html.winter .b-fs__pattern,
html.winter .b-fs__pattern-top,
html.winter .b-s-territory:before {
  display: none !important;
}

.snowflakes-box,
.snowflakes-box .snowflake {
  pointer-events: none !important;
}

.snowflakes-box .snowflake svg {
  fill: #fff !important;
}

.snow-plow-img {
  display: none !important;
}

.snowball-box,
.snowball-box * {
  display: none !important;
  pointer-events: none !important;
}

/* Header icon buttons: glassy blur as in the winter mockup */
.b-fs__header .b-btn-icon {
  background-color: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition:
    background-color 0.25s,
    border-color 0.25s,
    color 0.25s;
}

.b-fs__header .b-btn-icon:hover {
  background-color: #fff;
  color: #000;
}

.b-fs__header .b-btn-icon:hover .b-btn-icon__icon {
  -webkit-filter: brightness(0);
  filter: brightness(0);
}

.b-fs {
  position: relative;
}

.b-fs .w-garland {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  height: calc(100vw * 189 / 2000);
  z-index: 1;
  background: url("../img/winter/garland.png") top center / 100% 100% no-repeat;
  pointer-events: none;
}

.b-fs .w-hero__spruce {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.b-fs .w-hero__spruce--tr {
  top: -90px;
  right: 0;
  width: 320px;
}

.b-fs .w-hero__spruce--bl {
  left: 0;
  bottom: -90px;
  width: 268px;
}

.b-fs .w-hero__drift {
  position: absolute;
  bottom: -1px;
  z-index: 1;
  pointer-events: none;
}

.b-fs .w-hero__drift--l {
  left: 0;
  width: 481px;
}

.b-fs .w-hero__drift--r {
  right: 0;
  width: 660px;
}

/* b-s-territory top is the winter intro: identical to .w-intro */
html.winter .b-s-territory__top {
  --w-gutter-l: 16px;
  --w-gutter-r: 16px;
  position: relative;
  overflow: hidden;
  padding: 120px 0;
  background: #fff;
}

html.winter .b-s-territory__top > .l-container-base {
  padding-left: var(--w-gutter-l);
  padding-right: var(--w-gutter-r);
  position: relative;
  z-index: 1;
}

html.winter .b-s-territory__top .b-s-territory__text {
  max-width: 912px;
  margin-left: var(--w-gutter-l);
  font-size: 24px;
  line-height: 36px;
  color: #504d4f;
}

html.winter .b-s-territory__top .b-s-territory__text p {
  margin: 0 0 36px;
}

html.winter .b-s-territory__top .b-s-territory__text p:last-child {
  margin-bottom: 0;
}

html.winter .b-s-territory__top .w-intro__pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 172px;
  height: 507px;
  z-index: 0;
  background: url("../img/winter/pattern-intro.svg") left top / contain
    no-repeat;
  opacity: 1;
  pointer-events: none;
  filter: brightness(0.7);
}

html.winter .b-s-territory__top .w-intro__bird {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 360px;
  height: auto;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.b-s-developer {
  position: relative;
  overflow: hidden;
  background-image: url("../img/winter/developer.png");
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: 100% auto;
}

.b-s-developer .l-container-base {
  position: relative;
  z-index: 3;
}

.b-s-developer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    url("../img/winter/snowdrift-left.png"),
    url("../img/winter/snowdrift-right.png");
  background-position:
    left bottom,
    right bottom;
  background-repeat: no-repeat;
  background-size:
    481px auto,
    660px auto;
  pointer-events: none;
}

.l-footer {
  padding-top: calc(100vw * 189 / 2000 + 24px);
}

.l-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(100vw * 189 / 2000);
  z-index: 3;
  background: url("../img/winter/garland.png") top center / 100% 100% no-repeat;
  pointer-events: none;
}

.l-footer__pattern {
  display: block;
  background-image: url("../img/winter/pattern-footer-left.svg") !important;
  opacity: 0.5;
}

@media (min-width: 768px) {
  html.winter .b-s-territory__top {
    --w-gutter-l: 32px;
    --w-gutter-r: 32px;
  }
}

@media (min-width: 1024px) {
  html.winter .b-s-territory__top {
    --w-gutter-l: max(48px, calc((100vw - 1152px) * 0.8333));
    --w-gutter-r: max(24px, calc((100vw - 1152px) * 0.1667));
  }
}

@media (min-width: 1440px) {
  html.winter .b-s-territory__top {
    --w-gutter-l: 240px;
    --w-gutter-r: 48px;
  }
}

@media (max-width: 1024px) {
  .b-fs .w-hero__spruce--tr {
    width: 240px;
  }

  .b-fs .w-hero__spruce--bl {
    width: 200px;
  }

  .b-fs .w-hero__drift--l {
    width: 360px;
  }

  .b-fs .w-hero__drift--r {
    width: 480px;
  }

  .b-s-developer::before {
    background-size:
      240px auto,
      300px auto;
  }
}

@media (max-width: 1023.98px) {
  html.winter .b-s-territory__top {
    padding: 88px 0;
  }

  html.winter .b-s-territory__top .b-s-territory__text {
    font-size: 20px;
    line-height: 30px;
  }
}

@media (max-width: 767.98px) {
  .b-fs .w-hero__spruce--tr {
    display: none;
  }

  .b-fs .w-hero__spruce--bl {
    width: 140px;
    bottom: -40px;
  }

  .b-fs .w-hero__drift--l {
    width: 260px;
  }

  .b-fs .w-hero__drift--r {
    width: 300px;
  }

  html.winter .b-s-territory__top {
    --w-gutter-l: 16px;
    --w-gutter-r: 16px;
    padding: 24px 0 80px;
    /* background: #121212; */
  }

  html.winter .b-s-territory__top .b-s-territory__text {
    margin-left: 0;
    padding-left: 88px;
    font-size: 14px;
    line-height: 18px;
    /* color: #f2ebdb; */
  }

  html.winter .b-s-territory__top .b-s-territory__text p {
    margin-bottom: 18px;
  }

  html.winter .b-s-territory__top .w-intro__pattern {
    width: 88px;
    height: 100%;
    background-image: url("../img/winter/pattern-intro-white.svg");
    background-size: cover;
    background-position: left top;
    opacity: 0.5;
  }

  html.winter .b-s-territory__top .w-intro__bird {
    width: 148px;
  }

  .l-footer {
    padding-top: calc(100vw * 189 / 2000 + 15px);
  }
}

/* Burger menu winter visuals */
html.winter .b-burger-menu:after {
  width: 172px;
  height: 507px;
  opacity: 0.55;
  background-image: url("../img/winter/pattern-intro.svg");
  background-position: left bottom;
  background-size: contain;
  background-repeat: no-repeat;
}

html.winter .b-burger-menu__body-r {
  background-color: #243528;
  background-image:
    linear-gradient(
      332deg,
      rgba(27, 41, 29, 0.45) 28%,
      rgba(27, 41, 29, 0) 35%
    ),
    url("../img/winter/burger-right.jpg");
  /* background-position:
        center,
        right bottom,
        right top; */
  background-size: cover;
  background-repeat: no-repeat;
}

html.winter .b-burger-spruce {
  position: absolute;
  left: 0;
  bottom: -150px;
  z-index: 4;
  width: 330px;
  max-width: none;
  pointer-events: none;
  user-select: none;
  z-index: -1;
}

@media (max-width: 767.98px) {
  html.winter .b-burger-spruce {
    bottom: -120px;
    width: 210px;
  }
}
