/* Header & footer redesign — flat CSS, load after template.css */

.header {
  height: 7rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f6f4 50%, #f0eeeb 100%);
  border-bottom: none;
  -webkit-backdrop-filter: blur(1.2rem);
  backdrop-filter: blur(1.2rem);
  -webkit-box-shadow: 0 0.6rem 3rem rgba(47, 47, 47, 0.09);
  box-shadow: 0 0.6rem 3rem rgba(47, 47, 47, 0.09);
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.5rem;
  background: linear-gradient(90deg, #e51a38 0%, #ec566c 55%, #2ab03c 100%);
  z-index: 1;
}

.header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 5%;
  right: 5%;
  height: 0.1rem;
  background: linear-gradient(90deg, transparent, rgba(229, 26, 56, 0.3) 30%, rgba(42, 176, 60, 0.3) 70%, transparent);
  z-index: 1;
}

.header .container {
  gap: 1.2rem;
}

.header .logo {
  position: relative;
  padding-left: 1.6rem;
  padding-right: 2rem;
}

.header .logo::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  width: 0.45rem;
  height: 4.2rem;
  border-radius: 0.3rem;
  background: linear-gradient(180deg, #e51a38, #ec566c);
  -webkit-box-shadow: 0 0.2rem 0.8rem rgba(229, 26, 56, 0.35);
  box-shadow: 0 0.2rem 0.8rem rgba(229, 26, 56, 0.35);
}

.header .logo::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  width: 0.1rem;
  height: 3.6rem;
  background: linear-gradient(180deg, transparent, rgba(47, 47, 47, 0.15), transparent);
}

.header__nav a[aria-current="page"] img {
  outline: 0.2rem solid #e51a38;
  outline-offset: 0.15rem;
}

.header__nav img {
  display: block;
  border-radius: 0.4rem;
  -webkit-transition: transform 0.2s, box-shadow 0.2s;
  transition: transform 0.2s, box-shadow 0.2s;
  -webkit-box-shadow: 0 0.15rem 0.5rem rgba(0, 0, 0, 0.1);
  box-shadow: 0 0.15rem 0.5rem rgba(0, 0, 0, 0.1);
}

.header__nav a:hover img,
.header__nav a:focus img {
  -webkit-transform: translateY(-0.1rem);
  transform: translateY(-0.1rem);
  -webkit-box-shadow: 0 0.3rem 0.8rem rgba(0, 0, 0, 0.15);
  box-shadow: 0 0.3rem 0.8rem rgba(0, 0, 0, 0.15);
}

@media screen and (min-width: 1200px) {
  .header__nav ul {
    gap: 0.8rem;
    padding: 0.6rem 1.1rem;
    border-radius: 999rem;
    background: rgba(255, 255, 255, 0.85);
    border: 0.1rem solid rgba(47, 47, 47, 0.12);
    -webkit-box-shadow: inset 0 0.1rem 0 rgba(255, 255, 255, 0.9), 0 0.2rem 0.8rem rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 0.1rem 0 rgba(255, 255, 255, 0.9), 0 0.2rem 0.8rem rgba(0, 0, 0, 0.05);
  }
}

@media screen and (max-width: 1199px) {
  .header__nav {
    top: 6.9rem;
  }
  .header .logo::after {
    display: none;
  }
}

.wrapper {
  padding-top: 7rem;
}

.footer {
  position: relative;
  padding: 3rem 0 4rem;
  color: #f5f5f5;
  background-color: #1a1a1a;
  background-image:
    radial-gradient(circle at 20% 0%, rgba(229, 26, 56, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 80% 100%, rgba(42, 176, 60, 0.1) 0%, transparent 40%),
    linear-gradient(180deg, rgba(22, 22, 22, 0.75) 0%, rgba(22, 22, 22, 0.88) 100%),
    url("../img/footer_bg-xs.png");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.5rem;
  background: linear-gradient(90deg, #2ab03c 0%, #e51a38 50%, #ec566c 100%);
  z-index: 2;
}

.footer .container {
  position: relative;
  z-index: 2;
  max-width: 98rem;
  margin: 0 auto;
  padding: 3rem 2rem 2.5rem;
  border-radius: 1.2rem;
  background: linear-gradient(160deg, #2d2d2d 0%, #222222 100%);
  border: 0.1rem solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.35);
}

.footer .container > * {
  position: relative;
  z-index: 1;
}

.footer__subtitle {
  display: block;
  margin: 0 auto 2.5rem;
  max-width: 48rem;
  padding: 1.1rem 2rem;
  border-radius: 999rem;
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  color: #5eea72;
  background: rgba(42, 176, 60, 0.18);
  border: 0.1rem solid rgba(42, 176, 60, 0.5);
  box-shadow: 0 0.4rem 1.2rem rgba(42, 176, 60, 0.12);
}

.footer__info {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  margin-bottom: 2.5rem;
  padding: 2rem 1.8rem;
  border-radius: 0.8rem;
  background: rgba(0, 0, 0, 0.35);
  border: 0.1rem solid rgba(255, 255, 255, 0.1);
}

.footer__info-imgs {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0;
}

.footer__info-imgs img {
  display: block;
  border-radius: 0.6rem;
  border: 0.1rem solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0.3rem 1rem rgba(0, 0, 0, 0.25);
}

.footer__info-help {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 18rem;
  flex: 1 1 18rem;
  display: block;
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.55;
  color: #ececec;
  text-decoration: none;
  border-bottom: 0.1rem dashed rgba(255, 255, 255, 0.3);
}

.footer__info-help:hover,
.footer__info-help:focus {
  color: #ffffff;
  border-bottom-color: #5eea72;
  text-decoration: none;
}

.footer__tel {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin: 0;
  padding: 0.6rem 1.2rem;
  border-radius: 0.6rem;
  font-size: 1.8rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 0.1rem solid rgba(255, 255, 255, 0.12);
}

.footer__tel svg {
  width: 1.6rem;
  height: 1.6rem;
  margin-right: 0.5rem;
  fill: #ffffff;
}

.footer__desc {
  margin: 0 0 2.5rem;
  padding: 1.8rem 2rem;
  border-radius: 0.8rem;
  font-size: 1.2rem;
  line-height: 1.7;
  color: #d4d4d4;
  background: rgba(0, 0, 0, 0.3);
  border-left: 0.4rem solid #e51a38;
}

.footer__desc b {
  color: #ffffff;
}

.footer__bottom {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 2rem 0 0;
  border-top: 0.1rem solid rgba(255, 255, 255, 0.14);
  font-size: 1.2rem;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 0.8rem 1.2rem;
}

.footer__bottom li:nth-child(2) {
  position: relative;
  margin-left: 0;
  padding-left: 1.2rem;
}

.footer__bottom li:nth-child(2)::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 0.1rem;
  height: 1.3rem;
  background: #8a8a8a;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}

.footer__bottom a {
  display: inline-block;
  padding: 0.55rem 1.3rem;
  border-radius: 999rem;
  color: #f5f5f5;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: 0.1rem solid rgba(255, 255, 255, 0.14);
  -webkit-transition: background 0.2s, border-color 0.2s, color 0.2s;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.footer__bottom a:hover,
.footer__bottom a:focus {
  color: #ffffff;
  background: rgba(229, 26, 56, 0.2);
  border-color: rgba(229, 26, 56, 0.45);
}

.footer__bottom li:last-child {
  width: 100%;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  text-align: center;
  color: #9a9a9a;
}

@media screen and (min-width: 576px) {
  .footer {
    background-image:
      radial-gradient(circle at 20% 0%, rgba(229, 26, 56, 0.12) 0%, transparent 45%),
      radial-gradient(circle at 80% 100%, rgba(42, 176, 60, 0.1) 0%, transparent 40%),
      linear-gradient(180deg, rgba(22, 22, 22, 0.72) 0%, rgba(22, 22, 22, 0.85) 100%),
      url("../img/footer_bg-sm.png");
  }
}

@media screen and (min-width: 992px) {
  .footer {
    padding: 5rem 0 4rem;
    background-image:
      radial-gradient(circle at 15% 0%, rgba(229, 26, 56, 0.14) 0%, transparent 50%),
      radial-gradient(circle at 85% 100%, rgba(42, 176, 60, 0.12) 0%, transparent 45%),
      linear-gradient(180deg, rgba(22, 22, 22, 0.68) 0%, rgba(22, 22, 22, 0.82) 100%),
      url("../img/footer_bg-lg.png");
  }

  .footer .container {
    padding: 4rem 3.5rem 3rem;
  }

  .footer__subtitle {
    margin-bottom: 3rem;
    font-size: 2.2rem;
  }

  .footer__info {
    padding: 2.5rem 2.5rem;
  }

  .footer__bottom {
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
  }

  .footer__bottom li:last-child {
    width: auto;
    margin-top: 0;
    margin-left: auto;
    padding-top: 0;
    text-align: right;
  }
}

@media screen and (max-width: 767px) {
  .footer__info {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
  }

  .footer__tel {
    width: 100%;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
  }
}

/* Override legacy template.css footer rules */
.footer {
  overflow: visible;
}

.footer__info-imgs {
  margin-bottom: 0;
}

.footer__info-imgs img:nth-child(n+2) {
  margin-left: 0;
}

.footer__info-help {
  margin-bottom: 0;
}

.footer__tel {
  margin-bottom: 0;
  color: #ffffff;
}

.footer__bottom li:last-child::before {
  display: none;
}

@media screen and (min-width: 576px) {
  .footer__bottom li:last-child {
    margin-left: 0;
    padding-left: 0;
  }
}

@media screen and (min-width: 992px) {
  .footer {
    padding: 5rem 0 4rem;
  }

  .footer__subtitle {
    margin-bottom: 3rem;
    font-size: 2.2rem;
  }

  .footer__bottom li:last-child {
    margin-left: auto;
    padding-left: 0;
  }
}

/* Utility pages with site chrome */
.wrapper--utility {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  min-height: calc(100vh - 7rem);
}

.page-standalone--in-site {
  min-height: auto;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding: 4rem 2rem 6rem;
  color: #ffffff;
  text-align: center;
  background: #323232 url("../img/intro-home_bg-sm.png") center top/cover no-repeat;
}

.redirection-page--in-site {
  min-height: auto;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding: 4rem 2rem 6rem;
  background: #323232 url("../img/intro-home_bg-sm.png") center top/cover no-repeat;
}

.redirection-page__card {
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  padding: 3rem 2.5rem;
  border-radius: 1.2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.97);
  -webkit-box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.18);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.18);
}

.redirection-page--in-site h1 {
  margin: 0 0 1rem;
  color: #484040;
  font-size: 2.4rem;
  font-weight: 700;
}

.redirection-page__hint {
  margin: 1.5rem 0 0;
  font-size: 1.4rem;
}

.redirection-page__hint a {
  color: #e51a38;
  text-decoration: none;
}

.redirection-page__hint a:hover,
.redirection-page__hint a:focus {
  text-decoration: underline;
}
