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

.page-funtik-service {
  --funtik-service-green: var(--hogart-green, #408d47);
  --funtik-service-green-dark: var(--hogart-green-dark, #32743a);
  --funtik-service-green-soft: #8bc891;
  --funtik-service-ink: var(--hogart-ink, #242424);
  --funtik-service-muted: #666d68;
  --funtik-service-line: #dfe8e0;
  color: var(--funtik-service-ink);
}

.funtik-service {
  padding: clamp(34px, 4vw, 62px) 0 clamp(74px, 8vw, 122px);
}

.funtik-service-hero {
  position: relative;
  min-height: clamp(250px, 29vw, 360px);
  overflow: hidden;
  border-radius: 16px;
  background: #111827;
  isolation: isolate;
}

.funtik-service-hero__image,
.funtik-service-hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.funtik-service-hero__image {
  z-index: -2;
  object-fit: cover;
  object-position: center;
}

.funtik-service-hero__overlay {
  z-index: -1;
  background: linear-gradient(90deg, rgba(3, 8, 14, 0.88) 0%, rgba(3, 8, 14, 0.6) 47%, rgba(3, 8, 14, 0.08) 100%);
}

.funtik-service-hero__content {
  display: flex;
  min-height: inherit;
  max-width: 760px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(30px, 5vw, 66px);
  color: #fff;
}

.funtik-service-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.funtik-service-hero p {
  margin: 8px 0 0;
  font-size: clamp(1.25rem, 2.4vw, 2.35rem);
  font-weight: 400;
  line-height: 1.15;
}

.funtik-service-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: clamp(28px, 4vw, 46px);
  padding: 12px 28px;
  border-radius: 7px;
  background: var(--funtik-service-green);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transform: scale(1);
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.funtik-service-button:hover {
  background: var(--funtik-service-green-dark);
  color: #fff;
  box-shadow: 0 10px 24px rgba(39, 100, 46, 0.2);
  transform: scale(1.018);
}

.funtik-service-button:focus-visible,
.funtik-service-submit:focus-visible,
.funtik-service-map-link:focus-visible {
  outline: 3px solid rgba(64, 141, 71, 0.28);
  outline-offset: 4px;
}

.funtik-service-section {
  margin-top: clamp(58px, 8vw, 110px);
}

.funtik-service-section__header {
  max-width: 800px;
  margin-bottom: clamp(30px, 4vw, 48px);
}

.funtik-service-section__header h2,
.funtik-service-contacts__info h2 {
  position: relative;
  margin: 0;
  padding-left: 38px;
  color: #3e3e3e;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.funtik-service-section__header h2::before,
.funtik-service-contacts__info h2::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 22px;
  height: 42px;
  background: var(--funtik-service-green);
  clip-path: polygon(0 0, 0 100%, 100% 100%);
  content: "";
  transform: translateY(-50%);
}

.funtik-service-section__header p {
  margin: 26px 0 0 40px;
  color: var(--funtik-service-ink);
  font-size: clamp(1rem, 1.35vw, 1.17rem);
  line-height: 1.55;
}

.funtik-service-section__header--compact {
  margin-bottom: clamp(42px, 5vw, 64px);
}

.funtik-service-works {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 42px);
}

.funtik-service-work {
  display: flex;
  min-height: 245px;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 10px;
  background: var(--funtik-service-green);
  box-shadow: 0 12px 30px rgba(42, 91, 47, 0.1);
  color: #fff;
  transform: scale(1);
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}

.funtik-service-work:hover {
  background: #3a8542;
  box-shadow: 0 16px 34px rgba(42, 91, 47, 0.15);
  transform: scale(1.014);
}

.funtik-service-work img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 300 / 207;
  margin: 0;
  object-fit: contain;
  object-position: left top;
  opacity: 1;
  pointer-events: none;
}

.funtik-service-work h3 {
  margin: 0;
  padding: 20px 18px 18px;
  font-size: clamp(0.92rem, 1.25vw, 1.08rem);
  font-weight: 500;
  line-height: 1.36;
}

.funtik-service-request {
  scroll-margin-top: 120px;
}

.funtik-service-form {
  padding: clamp(24px, 3.5vw, 46px);
  border: 1px solid var(--funtik-service-line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 16px 46px rgba(32, 58, 37, 0.06);
}

.funtik-service-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(44px, 7vw, 88px);
}

.funtik-service-form__column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 25px;
}

.funtik-service-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.funtik-service-field label,
.funtik-service-captcha__label {
  color: #777d78;
  font-size: 0.82rem;
  font-weight: 500;
}

.funtik-service-field input,
.funtik-service-field textarea,
.funtik-service-field select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #69706b;
  border-radius: 0;
  background: transparent;
  color: var(--funtik-service-ink);
  font: inherit;
  line-height: 1.45;
  outline: 0;
  transition: border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.funtik-service-field input,
.funtik-service-field select {
  min-height: 42px;
  padding: 7px 0;
}

.funtik-service-field textarea {
  min-height: 148px;
  resize: vertical;
  padding: 8px 0 12px;
}

.funtik-service-field input:focus,
.funtik-service-field textarea:focus,
.funtik-service-field select:focus {
  border-bottom-color: var(--funtik-service-green);
  box-shadow: 0 1px 0 var(--funtik-service-green);
}

.funtik-service-field.has-error label,
.funtik-service-captcha.has-error .funtik-service-captcha__label {
  color: #b23b3b;
}

.funtik-service-field.has-error input,
.funtik-service-field.has-error textarea,
.funtik-service-field.has-error select {
  border-bottom-color: #c65353;
  box-shadow: 0 1px 0 rgba(198, 83, 83, 0.55);
}

.funtik-service-field__error {
  display: block;
  max-height: 0;
  overflow: hidden;
  margin: -4px 0 0;
  color: #ad3535;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 180ms ease, margin 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.funtik-service-field__error.is-visible {
  max-height: 4.2em;
  margin-top: 2px;
  opacity: 1;
  transform: translateY(0);
}

.funtik-service-form__notice {
  position: relative;
  margin: 0 0 28px;
  padding: 14px 18px 14px 48px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.funtik-service-form__notice::before {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
}

.funtik-service-form__notice::after {
  position: absolute;
  top: 50%;
  left: 26px;
  width: 2px;
  height: 7px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 9px 0 -0.2px currentColor;
  content: "";
  transform: translate(-50%, -70%);
}

.funtik-service-form__notice.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.funtik-service-form__notice.is-error {
  border-color: #efcaca;
  background: #fff6f6;
  color: #9e3030;
}

.funtik-service-form__notice.is-success {
  border-color: #c9e4cc;
  background: #f3faf4;
  color: var(--funtik-service-green-dark);
}

.funtik-service-form__notice.is-success::after {
  width: 8px;
  height: 5px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  background: transparent;
  box-shadow: none;
  transform: translate(-50%, -70%) rotate(45deg);
}

.funtik-service-field--select {
  position: relative;
}

.funtik-service-field select {
  appearance: none;
  padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--funtik-service-green) 50%), linear-gradient(135deg, var(--funtik-service-green) 50%, transparent 50%);
  background-position: calc(100% - 13px) 19px, calc(100% - 8px) 19px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.funtik-service-captcha {
  min-height: 58px;
}

.funtik-service-captcha .cf-captcha-local-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.funtik-service-captcha img.captcha {
  max-width: 150px;
  height: auto;
}

.funtik-service-captcha input[type="text"] {
  min-width: 110px;
  max-width: 170px;
  min-height: 40px;
  border: 1px solid var(--funtik-service-line);
  border-radius: 7px;
  padding: 8px 10px;
}

.funtik-service-captcha .cf-captcha-refresh-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--funtik-service-line);
  border-radius: 7px;
  background: #fff;
}

.funtik-service-submit {
  min-height: 48px;
  border: 0;
  border-radius: 4px;
  background: #079b20;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: background-color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.funtik-service-submit:hover {
  background: #07891d;
  transform: scale(1.006);
}

.funtik-service-submit:disabled {
  cursor: wait;
  opacity: 0.62;
}

.funtik-service-consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #686e69;
  font-size: 0.78rem;
  line-height: 1.45;
}

.funtik-service-consent input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--funtik-service-green);
}

.funtik-service-consent a {
  color: var(--funtik-service-green-dark);
  text-decoration-color: rgba(50, 116, 58, 0.35);
  text-underline-offset: 0.18em;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.funtik-service-consent a:hover {
  color: #65a76b;
  text-decoration-color: rgba(101, 167, 107, 0.65);
}

.funtik-service-consent.has-error {
  color: #9e3030;
}

.funtik-service-consent__error {
  margin-top: -6px;
}


.funtik-service-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 46px);
}

.funtik-service-stat {
  min-width: 0;
  padding-inline: clamp(2px, 0.8vw, 14px);
  text-align: center;
}

.funtik-service-stat__heading {
  display: flex;
  min-height: 3.15em;
  max-width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin: 0 auto;
  color: var(--funtik-service-green);
  font-size: clamp(1.28rem, 1.42vw, 1.62rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-align: center;
  text-wrap: balance;
}

.funtik-service-stat__heading span {
  display: block;
  max-width: 100%;
  overflow-wrap: break-word;
}

.funtik-service-stat p {
  max-width: 230px;
  margin: 17px auto 0;
  color: var(--funtik-service-ink);
  font-size: 0.86rem;
  line-height: 1.46;
}

.funtik-service-contacts {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.8fr);
  gap: clamp(38px, 6vw, 78px);
  align-items: stretch;
}

.funtik-service-contacts__info {
  min-width: 0;
}

.funtik-service-contacts__info h2 {
  margin-bottom: 30px;
}

.funtik-service-contacts address {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  font-style: normal;
  line-height: 1.45;
}

.funtik-service-contacts address span {
  color: var(--funtik-service-muted);
}

.funtik-service-contacts address strong {
  font-size: 1rem;
}

.funtik-service-contacts address a {
  width: fit-content;
  color: var(--funtik-service-green);
  text-decoration: none;
  transition: color 180ms ease, opacity 180ms ease;
}

.funtik-service-contacts address a:hover {
  color: #69ad70;
  opacity: 0.9;
  text-decoration: none;
}

.funtik-service-map-link {
  display: inline-flex;
  margin-top: 24px;
  color: var(--funtik-service-green-dark);
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.funtik-service-map {
  min-height: 340px;
  overflow: hidden;
  border: 1px solid var(--funtik-service-line);
  border-radius: 12px;
  background: #eff5ed;
}

.funtik-service-map iframe,
.funtik-service-map img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  object-fit: cover;
}

.funtik-service-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--funtik-service-muted);
}

@media (max-width: 1199.98px) {
  .funtik-service-works {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .funtik-service-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 46px;
  }
}

@media (max-width: 991.98px) {
  .funtik-service-hero__overlay {
    background: linear-gradient(90deg, rgba(3, 8, 14, 0.9), rgba(3, 8, 14, 0.46));
  }

  .funtik-service-works {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .funtik-service-form__grid,
  .funtik-service-contacts {
    grid-template-columns: 1fr;
  }

  .funtik-service-form__grid {
    gap: 30px;
  }

  .funtik-service-map,
  .funtik-service-map iframe,
  .funtik-service-map img {
    min-height: 380px;
  }
}

@media (max-width: 575.98px) {
  .funtik-service {
    padding-top: 24px;
  }

  .funtik-service-hero {
    min-height: 360px;
    border-radius: 12px;
  }

  .funtik-service-hero__image {
    object-position: 68% center;
  }

  .funtik-service-hero__overlay {
    background: linear-gradient(180deg, rgba(3, 8, 14, 0.56), rgba(3, 8, 14, 0.92));
  }

  .funtik-service-hero__content {
    justify-content: flex-end;
    padding: 28px 24px 32px;
  }

  .funtik-service-hero p {
    max-width: 280px;
  }

  .funtik-service-section__header h2,
  .funtik-service-contacts__info h2 {
    padding-left: 28px;
  }

  .funtik-service-section__header h2::before,
  .funtik-service-contacts__info h2::before {
    width: 14px;
  }

  .funtik-service-section__header p {
    margin-left: 0;
  }

  .funtik-service-works {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .funtik-service-work {
    min-height: 190px;
  }

  .funtik-service-work img {
    width: min(100%, 300px);
  }

  .funtik-service-form {
    padding: 22px 18px;
  }

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

  .funtik-service-stat p {
    max-width: 300px;
  }

  .funtik-service-map,
  .funtik-service-map iframe,
  .funtik-service-map img {
    min-height: 270px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .funtik-service-button,
  .funtik-service-work,
  .funtik-service-submit,
  .funtik-service-field__error,
  .funtik-service-form__notice {
    transition: none;
  }
}
