/* Страница контактов. Все селекторы изолированы префиксом funtik-contact(s). */

.page-funtik-contacts {
  --funtik-contacts-green: var(--hogart-green, #408d47);
  --funtik-contacts-green-dark: var(--hogart-green-dark, #32743a);
  --funtik-contacts-ink: var(--hogart-ink, #1f1f1f);
  --funtik-contacts-muted: #777d78;
  --funtik-contacts-line: #e5ece6;
  color: var(--funtik-contacts-ink);
}

.funtik-contacts {
  padding: clamp(36px, 4.5vw, 68px) 0 clamp(78px, 9vw, 132px);
}

.funtik-contacts__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(38px, 5vw, 72px);
}

.funtik-contacts__title {
  margin: 0;
  color: var(--funtik-contacts-ink);
  font-size: clamp(2rem, 3vw, 2.625rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.funtik-contacts__payment-link {
  display: inline-flex;
  min-height: 48px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 22px;
  border: 1px solid var(--funtik-contacts-green);
  border-radius: 999px;
  background: var(--funtik-contacts-green);
  color: #fff;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.funtik-contacts__payment-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease;
}

.funtik-contacts__payment-link:hover {
  border-color: var(--funtik-contacts-green-dark);
  background: var(--funtik-contacts-green-dark);
  color: #fff;
  transform: translateY(-1px);
}

.funtik-contacts__payment-link:hover svg {
  transform: translateX(2px);
}

.funtik-contacts__payment-link:focus-visible {
  color: #fff;
  outline: 3px solid rgba(64, 141, 71, 0.28);
  outline-offset: 4px;
}

.funtik-contacts__communication {
  display: grid;
  grid-template-columns: minmax(360px, 1.55fr) minmax(220px, 0.86fr) minmax(300px, 1fr);
  gap: 18px;
  align-items: stretch;
}

.funtik-contacts-feedback,
.funtik-contacts-social-intro {
  min-height: 156px;
  border: 1px solid var(--funtik-contacts-line);
  border-radius: 17px;
  box-shadow:
    0 3px 0 rgba(64, 141, 71, 0.58),
    0 12px 28px rgba(31, 67, 36, 0.07);
}

.funtik-contacts-feedback {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  align-items: center;
  justify-content: space-between;
  padding: 26px 28px;
  background: #66a96d;
  color: #fff;
  text-decoration: none;
  transform: scale(1);
  transition:
    transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 220ms ease,
    background-color 220ms ease;
}

.funtik-contacts-feedback:hover {
  color: #fff;
  background: #5ea266;
  box-shadow:
    0 3px 0 rgba(64, 141, 71, 0.68),
    0 16px 34px rgba(31, 67, 36, 0.12);
  transform: scale(1.012);
}

.funtik-contacts-feedback:focus-visible {
  color: #fff;
  outline: 3px solid rgba(64, 141, 71, 0.28);
  outline-offset: 4px;
}

.funtik-contacts-feedback__content {
  position: relative;
  z-index: 2;
  display: flex;
  max-width: 240px;
  flex-direction: column;
  gap: 15px;
}

.funtik-contacts-feedback__content strong,
.funtik-contacts-social-intro strong {
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.25;
}

.funtik-contacts-feedback__content > span,
.funtik-contacts-social-intro > span {
  font-size: 0.86rem;
  line-height: 1.45;
}

.funtik-contacts-feedback__icon {
  position: absolute;
  right: 24px;
  bottom: 12px;
  width: 118px;
  height: 94px;
  color: #fff;
  transform: rotate(-4deg);
  transition: transform 220ms ease;
}

.funtik-contacts-feedback:hover .funtik-contacts-feedback__icon {
  transform: rotate(-4deg) scale(1.025);
}

.funtik-contacts-social-intro {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  padding: 26px 28px;
  background: #fff;
}

.funtik-contacts-social-intro strong {
  max-width: 190px;
  color: var(--funtik-contacts-ink);
}

.funtik-contacts-socials {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px 4px;
}

.funtik-contacts-social {
  position: relative;
  display: inline-flex;
  width: clamp(54px, 5vw, 70px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition:
    transform 220ms cubic-bezier(0.2, 0.72, 0.2, 1),
    filter 220ms ease;
}

.funtik-contacts-social img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1);
  transform-origin: center;
  transition:
    transform 220ms cubic-bezier(0.2, 0.72, 0.2, 1),
    filter 220ms ease;
}

.funtik-contacts-social:hover {
  transform: translateY(-1px);
}

.funtik-contacts-social:hover img {
  filter:
    brightness(1.05)
    saturate(1.05)
    drop-shadow(0 8px 12px rgba(32, 48, 36, 0.18));
  transform: scale(1.06);
}

.funtik-contacts-social[href]:focus-visible {
  outline: 3px solid rgba(64, 141, 71, 0.28);
  outline-offset: 4px;
}

.funtik-contacts-social[href]:focus-visible img {
  filter: drop-shadow(0 7px 9px rgba(32, 48, 36, 0.14));
  transform: scale(1.045);
}

.funtik-contacts-socials__empty {
  color: var(--funtik-contacts-muted);
  font-size: 0.9rem;
  text-align: center;
}

.funtik-contacts__cities {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6vw, 76px);
  margin-top: clamp(60px, 7vw, 98px);
}

.funtik-contact-city__heading {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 clamp(28px, 3vw, 40px);
  color: var(--funtik-contacts-green);
  font-size: clamp(1.35rem, 2vw, 1.72rem);
  font-weight: 700;
  line-height: 1.2;
}

.funtik-contact-city__heading svg {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.funtik-contact-city__offices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 7vw, 104px);
  padding-left: 14px;
}

.funtik-contact-office {
  min-width: 0;
}

.funtik-contact-office__title {
  margin: 0 0 16px;
  color: var(--funtik-contacts-ink);
  font-size: clamp(1.08rem, 1.6vw, 1.36rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.012em;
}

.funtik-contact-office__details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  color: var(--funtik-contacts-ink);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  font-style: normal;
  line-height: 1.52;
}

.funtik-contact-office__details > span {
  min-height: 3.04em;
}

.funtik-contact-office__details a {
  width: fit-content;
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease, opacity 180ms ease;
}

.funtik-contact-office__details a:hover {
  color: #67a96d;
  opacity: 0.9;
  text-decoration: none;
}

.funtik-contact-office__route {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  color: var(--funtik-contacts-green);
  font-size: 0.88rem;
  line-height: 1.3;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.funtik-contact-office__route svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease;
}

.funtik-contact-office__route:hover {
  color: var(--funtik-contacts-green-dark);
}

.funtik-contact-office__route:hover svg {
  transform: translateX(3px);
}

.funtik-contact-office__route:focus-visible,
.funtik-contact-office__details a:focus-visible {
  border-radius: 3px;
  outline: 3px solid rgba(64, 141, 71, 0.25);
  outline-offset: 3px;
}

.funtik-contact-city__empty,
.funtik-contacts__empty {
  color: var(--funtik-contacts-muted);
}

/* Переиспользуем существующую защищённую форму, не показывая второй CTA. */
.funtik-contact-form-host .cf-elite {
  padding-top: 0;
  padding-bottom: 0;
  background: transparent;
}

.funtik-contact-form-host .cf-head {
  display: none;
}

.funtik-contact-form-host .cf-flow {
  margin-top: 0;
}

.funtik-contact-form-host .cf-panel.is-active {
  margin-top: 0;
  padding: clamp(34px, 5vw, 70px) 0;
  background: #fbfbfb;
}

@media (max-width: 1199.98px) {
  .funtik-contacts__communication {
    grid-template-columns: minmax(340px, 1.35fr) minmax(230px, 0.9fr);
  }

  .funtik-contacts-socials {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding: 14px 0 0;
  }
}

@media (max-width: 767.98px) {
  .funtik-contacts {
    padding-top: 30px;
  }

  .funtik-contacts__header {
    margin-bottom: 32px;
  }

  .funtik-contacts__communication {
    grid-template-columns: 1fr;
  }

  .funtik-contacts-feedback,
  .funtik-contacts-social-intro {
    min-height: 142px;
  }

  .funtik-contacts-social-intro {
    gap: 16px;
  }

  .funtik-contacts-socials {
    grid-column: auto;
    justify-content: center;
    padding-top: 12px;
  }

  .funtik-contact-city__offices {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-left: 0;
  }

  .funtik-contact-office__details > span {
    min-height: 0;
  }
}

@media (max-width: 479.98px) {
  .funtik-contacts__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .funtik-contacts__payment-link {
    width: 100%;
  }

  .funtik-contacts-feedback {
    padding: 24px 22px;
  }

  .funtik-contacts-feedback__content {
    max-width: 58%;
  }

  .funtik-contacts-feedback__icon {
    right: 13px;
    width: 104px;
  }

  .funtik-contacts-socials {
    gap: 10px;
  }

  .funtik-contacts-social {
    width: 54px;
  }

  .funtik-contact-city__heading {
    gap: 14px;
  }

  .funtik-contact-city__heading svg {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .funtik-contacts__payment-link,
  .funtik-contacts__payment-link svg,
  .funtik-contacts-feedback,
  .funtik-contacts-feedback__icon,
  .funtik-contacts-social,
  .funtik-contacts-social img,
  .funtik-contact-office__route svg {
    transition: none;
  }
}
