.p-footer {
  position: relative;
  margin-top: 61px;
  padding-bottom: 46px;
  background: #009142;
}

.p-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: max(-132px, -9.663250366vw);
  height: min(198px, 14.474vw);
  background: url("../images/img_com-wave-green.svg") no-repeat center bottom/100% 100%;
  pointer-events: none;
}

.p-footer__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  width: 100%;
  max-width: 1134px;
  margin-inline: auto;
}

.p-footer__profile {
  display: grid;
  grid-template-columns: 81px minmax(0, 1fr);
  column-gap: 17px;
}

.p-footer__logo {
  grid-row: 1/3;
  width: 81px;
}
@media (hover: hover) and (pointer: fine) {
  .p-footer__logo:hover {
    transform: scale(1.05);
  }
}

.p-footer__name {
  align-self: start;
  padding-top: 38px;
}

.p-footer__address {
  grid-column: 2;
  margin-top: 58px;
  margin-left: -98px;
}

.p-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  column-gap: 40px;
  row-gap: 39px;
  max-width: 400px;
  padding-top: 39px;
}

.p-footer__navItem {
  display: inline-block;
  transform-origin: center;
  position: relative;
}
.p-footer__navItem::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .p-footer__navItem:hover::after {
    transform: scaleX(1);
  }
}
@media (hover: hover) and (pointer: fine) {
  .p-footer__navItem:hover {
    transform: scale(1.05);
  }
}

.p-footer__copyright {
  grid-column: 1/-1;
  margin-top: 120px;
  text-align: center;
}

.p-pageTop {
  position: fixed;
  right: 111px;
  bottom: 24px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 102px;
  height: 102px;
  padding-top: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.p-pageTop.is-visible {
  opacity: 1;
  visibility: visible;
}

.p-pageTop:hover {
  transform: scale(1.05);
}

.p-pageTop__arrow {
  width: 0;
  height: 0;
  border-right: 4px solid transparent;
  border-bottom: 7px solid #009142;
  border-left: 4px solid transparent;
  transition: transform 0.3s ease;
}

.p-pageTop:hover .p-pageTop__arrow {
  transform: translateY(-3px);
}

.p-pageTop__label {
  margin-top: 21px;
  text-align: center;
}

.p-contactCta {
  position: relative;
  padding-top: 112px;
  padding-bottom: 190px;
}

.p-contactCta__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.p-contactCta__bgImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-contactCta__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(58, 220, 193, 0.1);
  pointer-events: none;
}

.p-contactCta::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  z-index: 1;
  height: 60px;
  background: url("../images/img_com-waveCap-white.svg") no-repeat center top/100% 100%;
  pointer-events: none;
}

.p-contactCta--onPale::before {
  background-image: url("../images/img_com-waveCap-paleGreen.svg");
}

.p-contactCta__list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 558px);
  column-gap: 36px;
  justify-content: center;
  max-width: 1152px;
  margin-inline: auto;
}

.p-contactCta__link {
  position: relative;
  display: block;
  height: 100%;
  min-height: 345px;
  padding: 48px 50px 60px;
  border: 1px solid transparent;
  border-radius: 30px;
  background: #fff;
  overflow: hidden;
  box-shadow: 7px 7px 14px rgba(114, 114, 114, 0.3);
}
@media (hover: hover) and (pointer: fine) {
  .p-contactCta__link:hover .p-contactCta__tab {
    width: 100px;
  }
}

.p-contactCta__head {
  padding-left: 7px;
}

.p-contactCta__titleRow {
  display: flex;
  align-items: center;
  min-height: 41px;
  margin-top: 13.5px;
}

.p-contactCta__title {
  display: flex;
  align-items: baseline;
}

.p-contactCta__titleRow::before {
  content: "";
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.p-contactCta__item--mail .p-contactCta__titleRow::before {
  width: 35.75px;
  height: 27.5px;
  margin-right: 15px;
  background-image: url("../images/icon_top-mail.svg");
}

.p-contactCta__item--entry .p-contactCta__titleRow::before {
  width: 27.45px;
  height: 41px;
  margin-right: 19px;
  background-image: url("../images/icon_top-entry.svg");
}

.p-contactCta__text {
  margin-top: 39.5px;
}

.p-contactCta__tab {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 86px;
  height: 64px;
  border-radius: 30px 0 30px 0;
  transition: width 0.3s ease;
}

.p-contactCta__tab::after {
  content: "";
  width: 17px;
  height: 17px;
  background: url("../images/icon_com-arrow-right.svg") no-repeat center/contain;
}

.p-contactCta__item--mail .p-contactCta__tab {
  background: #00a468;
}

.p-contactCta__item--entry .p-contactCta__tab {
  background: #6cb92b;
}

@media screen and (max-width: 1240px) {
  .p-pageTop {
    right: 50px;
  }
}
@media screen and (max-width: 1200px) {
  .p-footer__inner {
    padding-inline: 24px;
  }
  .p-footer::before {
    top: -100px;
    height: 150px;
  }
  .p-footer__copyright {
    margin-top: 120px;
  }
  .p-contactCta {
    padding-top: 81px;
    padding-bottom: 137px;
  }
  .p-contactCta__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
    padding-inline: 24px;
  }
  .p-contactCta__link {
    padding: 40px 36px 60px;
  }
  .p-contactCta::before {
    height: 45px;
  }
}
@media screen and (max-width: 900px) {
  .p-contactCta {
    padding-top: 69px;
    padding-bottom: 118px;
  }
}
@media screen and (max-width: 860px) {
  .p-contactCta {
    padding-top: 80px;
    padding-bottom: 110px;
  }
  .p-contactCta__list {
    column-gap: 20px;
  }
  .p-contactCta__link {
    min-height: 0;
    padding: 32px 24px 56px;
  }
  .p-contactCta__text {
    margin-top: 28px;
  }
  .p-contactCta::before {
    height: 33px;
  }
  .p-contactCta__titleRow {
    min-height: 0;
  }
  .p-contactCta__title {
    flex-wrap: wrap;
  }
  .p-contactCta__titlePart {
    white-space: nowrap;
  }
  .p-contactCta__item--mail .p-contactCta__titleRow::before {
    width: 28px;
    height: 21.5px;
    margin-right: 10px;
  }
  .p-contactCta__item--entry .p-contactCta__titleRow::before {
    width: 19px;
    height: 28px;
    margin-right: 12px;
  }
}
@media screen and (max-width: 768px) {
  .p-footer {
    padding-bottom: 32px;
  }
  .p-footer::before {
    top: -93px;
    height: 100px;
  }
  .p-footer__inner {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 32px;
  }
  .p-footer__profile {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .p-footer__logo {
    width: 64px;
  }
  .p-footer__name {
    grid-row: 1/3;
    align-self: center;
    padding-top: 0;
  }
  .p-footer__address {
    grid-column: 1/-1;
    margin-top: 24px;
    margin-left: 0;
  }
  .p-footer__nav {
    justify-content: center;
    max-width: none;
    column-gap: 24px;
    row-gap: 16px;
    padding-top: 0;
  }
  .p-footer__copyright {
    margin-top: 40px;
  }
  .p-pageTop {
    width: 78px;
    height: 78px;
    padding-top: 8px;
  }
  .p-pageTop__label {
    margin-top: 12px;
  }
}
@media screen and (max-width: 600px) {
  .p-contactCta__list {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 24px;
  }
  .p-contactCta__link {
    padding: 32px 28px 60px;
  }
  .p-contactCta__item--mail .p-contactCta__titleRow::before {
    width: 35.75px;
    height: 27.5px;
    margin-right: 15px;
  }
  .p-contactCta__item--entry .p-contactCta__titleRow::before {
    width: 27.45px;
    height: 41px;
    margin-right: 19px;
  }
  .p-contactCta {
    padding-top: 49px;
    padding-bottom: 84px;
  }
}
@media screen and (max-width: 480px) {
  .p-contactCta__link {
    padding: 32px 24px 56px;
  }
  .p-contactCta__tab {
    width: 72px;
    height: 54px;
  }
}
