.gth-ending {
  --reference-diameter: clamp(200px, calc(100vw - 104px), 320px);
  --footer-text-size: 20px;
  box-sizing: border-box;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  color: #1e3859;
  font-family: "raleway", Arial, sans-serif;
  font-size: var(--footer-text-size);
  line-height: 1.5;
  text-align: center;
}

.gth-ending *,
.gth-ending *::before,
.gth-ending *::after { box-sizing: inherit; }

.gth-ending .testimonials {
  padding: 65px 20px 25px;
  background: #f1faee;
}

.gth-ending .testimonials h2 {
  margin: 0 0 20px;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.08;
}

.gth-ending .testimonial-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.gth-ending .testimonial-content {
  flex: 1;
  min-width: 0;
  max-width: 650px;
}

.gth-ending .testimonial-content img {
  display: block;
  width: var(--reference-diameter);
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  margin: 0 auto 25px;
  border-radius: 50%;
}

.gth-ending .testimonial-content blockquote {
  margin: 0 auto 20px;
  font-size: inherit;
  font-style: italic;
  font-weight: 400;
  line-height: inherit;
}

.gth-ending #testimonial-name {
  display: block;
  margin: 0;
  font-weight: 700;
}

.gth-ending .slider-arrow {
  padding: 10px;
  border: 0;
  background: transparent;
  color: #4b8ca6;
  font-family: inherit;
  font-size: 38px;
  cursor: pointer;
}

.gth-ending .slider-arrow:hover { color: #d93b58; }

.gth-ending .slider-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.gth-ending .slider-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #a7d9d9;
  cursor: pointer;
}

.gth-ending .slider-dot.active { background: #d93b58; }

.gth-ending .footer-navigation {
  display: grid;
  justify-items: center;
  padding: 32px 12px;
}

.gth-ending .footer-nav-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: var(--reference-diameter);
  max-width: 100%;
  aspect-ratio: 1;
  padding: 0 20px;
  border-radius: 50%;
  background: #ce3455;
}

.gth-ending .footer-nav-circle a {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding-inline: 6px;
  color: #fff;
  font-size: clamp(15px, 4.5vw, 19px);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: underline;
}

.gth-ending .footer-info {
  padding: 40px 20px;
  background: #1e3859;
  color: #fff;
}

.gth-ending .footer-info p {
  margin: 12px 0;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
}

.gth-ending .footer-info a {
  color: #fff;
  font-weight: 400;
  text-decoration: underline;
}

.gth-ending .footer-info .footer-logo {
  width: 65%;
  max-width: 600px;
  margin: 0 auto 20px;
}

.gth-ending .footer-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.gth-ending a:focus-visible,
.gth-ending button:focus-visible { outline: 2px solid #1e3859; }

.gth-ending .footer-nav-circle a:focus-visible,
.gth-ending .footer-info a:focus-visible {
  outline-color: #fff;
  outline-offset: -2px;
}

@media (min-width: 768px) {
  .gth-ending .footer-info .footer-logo { width: min(400px, 100%); }
}

@media (max-width: 767px) {
  .gth-ending { --footer-text-size: 18px; }
}

@media (max-width: 650px) {
  .gth-ending .testimonials { padding: 45px 12px; }
  .gth-ending .testimonial-slider { gap: 4px; }
  .gth-ending .slider-arrow { padding: 5px; font-size: 27px; }
}

@media print {
  .gth-ending { display: none; }
}
