/* Block 17: project footer. */
.gd37-footer {
  --footer-ink: var(--gd37-ink, #14584e);
  --footer-green: var(--gd37-green, #71c43a);
  --footer-blue: var(--gd37-blue, #2bb5cf);
  --footer-orange: var(--gd37-orange-strong, #ff861c);
  position: relative;
  overflow: hidden;
  color: var(--footer-ink);
  background: #eaf4e1;
  font-family: "Noto Sans", sans-serif;
}

.gd37-footer a,
.gd37-footer a:visited { color: inherit; text-decoration: none; }

.gd37-footer__top-wave,
.gd37-footer__bottom-wave {
  position: absolute;
  right: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
}

.gd37-footer__top-wave { top: 0; height: 84px; }
.gd37-footer__bottom-wave { bottom: 0; height: 44px; }

.gd37-footer__inner {
  position: relative;
  z-index: 1;
  padding-top: 98px;
  padding-bottom: 26px;
}

.gd37-footer__main {
  display: grid;
  grid-template-columns: minmax(210px, .9fr) minmax(300px, 1.45fr) minmax(210px, .9fr) minmax(230px, 1fr);
  align-items: start;
  gap: clamp(18px, 2.4vw, 42px);
}

.gd37-footer__main > * { min-width: 0; }

.gd37-footer h2 {
  margin: 0 0 20px;
  font-family: "Adigiana 2", cursive;
  font-size: 23px;
  font-weight: 400;
  line-height: 1;
}

.gd37-footer-brand__logo {
  display: block;
  width: 240px;
  max-width: 100%;
}

.gd37-footer-brand__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.gd37-footer-brand__motto {
  margin: 14px 0 0 3px;
  font-family: "Adigiana 2", cursive;
  font-size: 22px;
  line-height: 1.28;
}

.gd37-footer-brand__caption {
  margin: 13px 0 0 4px;
  color: #78938c;
  font-size: 11px;
  font-weight: 700;
}

.gd37-footer-brand__social-title {
  margin: 12px 0 8px 4px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.gd37-footer-brand__socials { display: flex; gap: 12px; }

.gd37-footer-brand__socials > * {
  display: inline-flex;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #147668;
  background: #fffdf8;
  font-size: 17px;
  font-weight: 900;
}

.gd37-footer-brand__youtube span {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 12px solid var(--footer-orange);
}

.gd37-footer-brand__rutube { color: var(--footer-blue); }

.gd37-footer-project {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 11px;
  overflow: hidden;
}

.gd37-footer-project--current {
  min-height: 116px;
  padding: 16px 13px 15px 21px;
  border-radius: 43% 55% 44% 50% / 22% 24% 28% 30%;
  background: #fffdf8;
}

.gd37-footer-projects__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  margin-top: 15px;
}

.gd37-footer-project--branch {
  min-height: 102px;
  padding: 15px 10px 13px 13px;
  border-radius: 21% 18% 19% 16% / 20% 24% 22% 21%;
  color: #fff;
  background: var(--footer-ink);
  grid-template-columns: 40px minmax(0, 1fr) 23px;
  gap: 7px;
}

.gd37-footer-project--branch:nth-child(2) { background: #1c685d; }

.gd37-footer-project__icon {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff5df;
}

.gd37-footer-project__icon--house::before {
  position: absolute;
  top: 14px;
  left: 12px;
  width: 17px;
  height: 15px;
  border: 2px solid var(--footer-orange);
  border-top: 0;
  content: "";
}

.gd37-footer-project__icon--house::after {
  position: absolute;
  top: 10px;
  left: 13px;
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--footer-orange);
  border-left: 2px solid var(--footer-orange);
  content: "";
  transform: rotate(45deg);
}

.gd37-footer-project__icon--bag { background: #eff9e9; }

.gd37-footer-project__icon--bag::before {
  position: absolute;
  top: 14px;
  left: 12px;
  width: 17px;
  height: 17px;
  border: 2px solid var(--footer-green);
  border-radius: 2px;
  content: "";
}

.gd37-footer-project__icon--bag::after {
  position: absolute;
  top: 10px;
  left: 17px;
  width: 7px;
  height: 5px;
  border: 2px solid var(--footer-green);
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  content: "";
}

.gd37-footer-project__copy { min-width: 0; }

.gd37-footer-project__copy small,
.gd37-footer-project__copy strong,
.gd37-footer-project__copy em {
  display: block;
  font-style: normal;
}

.gd37-footer-project__copy small {
  margin-bottom: 4px;
  color: var(--footer-green);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.gd37-footer-project__copy strong {
  overflow: hidden;
  font-family: "Adigiana 2", cursive;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gd37-footer-project__copy em {
  margin-top: 9px;
  color: #78938c;
  font-size: 10px;
  font-weight: 700;
}

.gd37-footer-project--branch .gd37-footer-project__copy small { color: #f6c52f; }
.gd37-footer-project--branch:nth-child(2) .gd37-footer-project__copy small { color: #82d34c; }
.gd37-footer-project--branch .gd37-footer-project__copy strong { color: #fff !important; font-size: 17px; }
.gd37-footer-project--branch .gd37-footer-project__copy em { margin-top: 7px; color: #b8d0ca; font-size: 8px; }

.gd37-footer-project__arrow {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--footer-green);
  background: #edf7e6;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
}

.gd37-footer-project--branch .gd37-footer-project__arrow {
  width: auto;
  height: auto;
  color: #ffb72c;
  background: transparent;
}

.gd37-footer-nav__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.gd37-footer-nav__links div { display: grid; gap: 19px; align-content: start; }

.gd37-footer-nav__links a {
  position: relative;
  width: max-content;
  max-width: 100%;
  padding-bottom: 7px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.gd37-footer-nav__links a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: #8dcd70;
  content: "";
}

.gd37-footer-contact h2 { margin-bottom: 25px; }
.gd37-footer-contact { min-width: 0; }

.gd37-footer-contact__item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  margin-bottom: 17px;
}

.gd37-footer-contact__icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fffdf8;
}

.gd37-footer-contact__icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--footer-orange);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.gd37-footer-contact__icon--blue svg { stroke: var(--footer-blue); }

.gd37-footer-contact__item small,
.gd37-footer-contact__item strong,
.gd37-footer-contact__item em { display: block; font-style: normal; }

.gd37-footer-contact__item small {
  margin: 2px 0 5px;
  color: #8ca49e;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.gd37-footer-contact__item strong {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.gd37-footer-contact__item em {
  margin-top: 6px;
  color: #78938c;
  font-size: 10px;
  font-weight: 700;
}

.gd37-footer-contact__button {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  margin-top: 23px;
  padding: 0 clamp(16px, 1.5vw, 24px) 0 clamp(24px, 3vw, 50px);
  border-radius: 44% 56% 48% 52% / 40% 48% 52% 60%;
  color: #fff !important;
  background: var(--footer-orange);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.gd37-footer-contact__button span { min-width: 0; }
.gd37-footer-contact__button b { flex: 0 0 auto; font-size: 30px; font-weight: 300; }

.gd37-footer-docs {
  margin-top: 20px;
  padding: 20px 24px 17px;
  border-radius: 4% 4% 3% 3% / 16% 18% 15% 16%;
  background: #fffdf8;
}

.gd37-footer-docs h2 { margin: 0 0 17px 2px; font-size: 20px; }

.gd37-footer-docs__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px 8px;
}

.gd37-footer-doc {
  --doc-color: var(--footer-blue);
  --doc-bg: #dff5f9;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  min-height: 72px;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border-radius: 15% 18% 13% 16% / 30% 35% 27% 32%;
  background: var(--doc-bg);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.gd37-footer-doc--s2 { grid-column: span 2; }
.gd37-footer-doc--s3 { grid-column: span 3; }
.gd37-footer-doc--s4 { grid-column: span 4; }

.gd37-footer-doc i {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fffdf8;
}

.gd37-footer-doc i::before {
  position: absolute;
  top: 8px;
  left: 10px;
  width: 13px;
  height: 17px;
  border: 2px solid var(--doc-color);
  border-radius: 1px;
  content: "";
}

.gd37-footer-doc i::after {
  position: absolute;
  top: 12px;
  left: 13px;
  width: 8px;
  height: 2px;
  border-top: 2px solid var(--doc-color);
  border-bottom: 2px solid var(--doc-color);
  content: "";
}

.gd37-footer-doc b { color: var(--doc-color); font-size: 23px; font-weight: 300; }
.gd37-footer-doc--green { --doc-color: #71c43a; --doc-bg: #ebf6e6; }
.gd37-footer-doc--purple { --doc-color: #9b51d6; --doc-bg: #f1e7fb; }
.gd37-footer-doc--orange { --doc-color: #ff861c; --doc-bg: #fff0e5; }

.gd37-footer-doc--dark {
  --doc-color: #ffc327;
  --doc-bg: var(--footer-ink);
  grid-template-columns: 34px minmax(0, 1fr);
  color: #fff;
}

.gd37-footer-doc--dark span { color: #fff !important; }

.gd37-footer__bottom {
  display: grid;
  grid-template-columns: 1.25fr .8fr 1.4fr 1fr;
  align-items: center;
  gap: 23px;
  margin-top: 24px;
  padding: 18px 0 2px;
  border-top: 1px solid #9bc985;
  color: #719087;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.35;
}

.gd37-footer__bottom p { margin: 0; }
.gd37-footer__bottom > span { text-align: right; }
.gd37-footer__bottom > span a { margin-left: 18px; color: var(--footer-ink); font-family: "Adigiana 2", cursive; font-size: 13px; }

@media (max-width: 1180px) {
  .gd37-footer__main {
    grid-template-columns: minmax(180px, .82fr) minmax(285px, 1.35fr) minmax(190px, .9fr) minmax(210px, 1fr);
    gap: 18px;
  }

  .gd37-footer-brand__logo { width: 210px; }
  .gd37-footer-project__copy strong { font-size: 18px; }
  .gd37-footer-project--branch { grid-template-columns: 36px minmax(0, 1fr) 20px; }
  .gd37-footer-project--branch .gd37-footer-project__copy strong { font-size: 15px; }
  .gd37-footer-nav__links { gap: 18px; }
  .gd37-footer-contact__button { padding-left: 24px; font-size: 11px; }
  .gd37-footer-doc { padding-inline: 10px; font-size: 9px; }
}

@media (max-width: 1120px) {
  .gd37-footer__main { grid-template-columns: 1fr 1fr; gap: 42px 35px; }
  .gd37-footer-brand__logo { width: 240px; }
  .gd37-footer-projects { order: 2; }
  .gd37-footer-nav { order: 3; }
  .gd37-footer-contact { order: 4; }
  .gd37-footer-doc--s2,
  .gd37-footer-doc--s3,
  .gd37-footer-doc--s4 { grid-column: span 4; }
  .gd37-footer__bottom { grid-template-columns: 1fr 1fr; }
  .gd37-footer__bottom > span { text-align: left; }
}

@media (max-width: 640px) {
  .gd37-footer__top-wave { height: 58px; }

  .gd37-footer__inner {
    padding-top: 74px;
    padding-bottom: 33px;
  }

  .gd37-footer__main { grid-template-columns: 1fr; gap: 38px; }
  .gd37-footer-brand { text-align: center; }
  .gd37-footer-brand__logo { width: 230px; margin-inline: auto; }
  .gd37-footer-brand__motto { font-size: 22px; }
  .gd37-footer-brand__socials { justify-content: center; }
  .gd37-footer h2 { font-size: 24px; }
  .gd37-footer-projects { order: initial; }
  .gd37-footer-nav { order: initial; }
  .gd37-footer-contact { order: initial; }
  .gd37-footer-projects__row { grid-template-columns: 1fr; gap: 10px; }
  .gd37-footer-project--branch { border-radius: 45px; }
  .gd37-footer-nav__links { gap: 32px; }
  .gd37-footer-nav__links a { font-size: 13px; }
  .gd37-footer-contact__button { padding-left: 34px; }

  .gd37-footer-docs {
    margin-top: 42px;
    padding: 24px 16px 20px;
    border-radius: 28px;
  }

  .gd37-footer-docs__grid { grid-template-columns: 1fr; gap: 10px; }
  .gd37-footer-doc--s2,
  .gd37-footer-doc--s3,
  .gd37-footer-doc--s4 { grid-column: auto; }
  .gd37-footer-doc { min-height: 64px; border-radius: 25px; font-size: 10px; }
  .gd37-footer__bottom { grid-template-columns: 1fr; gap: 13px; margin-top: 28px; font-size: 9px; }
  .gd37-footer__bottom > span a { display: inline-block; margin-left: 8px; }
}
