/* Contacts page: isolated layout and responsive styles. */
.contact-page-redesign {
  --contact-bg: #f2f2f5;
  --contact-card: #fff;
  --contact-text: #1a1a1a;
  --contact-muted: #5b5b60;
  --contact-purple: #695270;
}

.contact-page-redesign .section-title,
.contact-page-redesign h1,
.contact-page-redesign h2,
.contact-page-redesign h3 {
  text-wrap: balance;
}

.contact-process .about-us-text {
  max-width: 940px;
  margin: 0 0 30px;
}

.contact-process .about-us-number {
  flex: 1 1 0;
  max-width: none;
}

.contact-process .number-title {
  margin: 0 0 10px;
}

.contact-process .number-text {
  margin: 0;
}

.contact-task-list .info-with-icons-list,
.contact-prep-list .info-with-icons-list {
  overflow: visible;
}

.contact-task-list .info-with-icons-list .swiper-wrapper,
.contact-prep-list .info-with-icons-list .swiper-wrapper {
  display: grid;
  height: auto;
  transform: none !important;
}

.contact-task-list .info-with-icons-list .swiper-wrapper {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.contact-task-list .info-with-icons-item,
.contact-prep-list .info-with-icons-item {
  width: auto !important;
  max-width: none;
  min-height: 0;
  margin: 0 !important;
  border: 1px solid #e4e4e5;
  background: var(--contact-card);
}

.contact-task-list .info-with-icons-list .info-with-icons-item {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 4px 20px;
  align-items: center;
  min-height: 120px;
  padding: 24px 30px;
  border-radius: 24px;
}

.contact-task-list .info-with-icons-item:last-child {
  grid-column: auto;
}

.contact-task-list .info-with-icons-list .info-with-icons-icon {
  grid-row: 1 / span 2;
  width: 50px;
  min-width: 50px;
  height: 50px;
  margin: 0;
}

.contact-task-list .info-with-icons-icon img,
.contact-prep-list .info-with-icons-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-task-list .info-with-icons-title,
.contact-prep-list .info-with-icons-title {
  margin: 0;
  color: var(--contact-text);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.contact-task-list .info-with-icons-title {
  align-self: end;
}

.contact-task-list .info-with-icons-text {
  align-self: start;
  margin: 0;
  color: var(--contact-muted);
  font-size: 16px;
  line-height: 1.3;
}

.contact-primary-form .contacts-block {
  align-items: stretch;
}

.contact-primary-form .contacts-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.contact-primary-form .contacts-form h2 {
  margin: 0 0 24px;
}

.contact-primary-form .contacts-person-text {
  width: 100%;
  margin: 14px 0 18px;
  color: var(--contact-muted);
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
}

.contact-primary-form .contacts-social {
  margin-top: 0;
}

.contact-prep-list .info-with-icons-list .swiper-wrapper {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.contact-prep-list .info-with-icons-list .info-with-icons-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  min-height: 120px;
  padding: 24px 30px;
  text-align: left;
  border-radius: 24px;
}

.contact-prep-list .info-with-icons-item:last-child {
  grid-column: 1 / -1;
}

.contact-prep-list .info-with-icons-list .info-with-icons-icon {
  width: 50px;
  min-width: 50px;
  height: 50px;
  margin: 0;
}

.contact-prep-list .info-with-icons-title {
  font-size: 24px;
}

.contact-socials .social-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.contact-socials .social-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 88px;
  padding: 18px;
  border: 1px solid #e4e4e5;
  border-radius: 20px;
  background: var(--contact-card);
  color: var(--contact-text);
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

.contact-socials .social-list a:hover,
.contact-socials .social-list a:focus-visible {
  border-color: var(--contact-purple);
  transform: translateY(-2px);
}

.contact-socials .social-list img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
}

.contact-club .partners-club-text p {
  margin: 0 0 12px;
}

.contact-club .partners-club-text p:last-child {
  margin-bottom: 0;
}

.contact-club .button {
  margin-top: 22px;
}

.contact-page-redesign .ratings-section .ratings-list {
  position: relative;
  overflow: hidden;
}

.contact-page-redesign .ratings-section .ratings-list::before,
.contact-page-redesign .ratings-section .ratings-list::after {
  position: absolute;
  top: 0;
  z-index: 2;
  width: 120px;
  height: 100%;
  content: "";
  pointer-events: none;
}

.contact-page-redesign .ratings-section .ratings-list::before {
  left: 0;
  background: linear-gradient(90deg, var(--contact-bg), rgba(242, 242, 245, 0));
}

.contact-page-redesign .ratings-section .ratings-list::after {
  right: 0;
  background: linear-gradient(270deg, var(--contact-bg), rgba(242, 242, 245, 0));
}

.contact-page-redesign .ratings-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: contact-ratings-marquee 50s linear infinite;
}

.contact-page-redesign .ratings-list:hover .ratings-track {
  animation-play-state: paused;
}

.contact-page-redesign .ratings-item {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  height: 130px;
  margin-right: 20px;
  overflow: hidden;
  background: #fff;
}

.contact-page-redesign .ratings-item img {
  display: block;
  width: auto;
  height: 100%;
}

@keyframes contact-ratings-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.contact-geography-copy {
  width: 100%;
  max-width: none;
  margin-bottom: 30px;
}

.contact-geography-copy p {
  margin: 0 0 12px;
  color: var(--contact-muted);
  font-size: 18px;
  line-height: 24px;
  text-align: justify;
}

.contact-geography #map {
  width: 100%;
  height: 500px;
  overflow: hidden;
  border-radius: 30px;
  background: #e4e4e5;
}

.contact-geography #map .ymaps-2-1-79-map-bg,
.contact-geography #map .ymaps-2-1-79-inner-panes {
  border-radius: 30px;
}

@media (max-width: 1024px) {
  .contact-task-list .info-with-icons-list .swiper-wrapper,
  .contact-prep-list .info-with-icons-list .swiper-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-task-list .info-with-icons-item:last-child,
  .contact-prep-list .info-with-icons-item:last-child {
    grid-column: auto;
  }

  .contact-socials .social-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-geography #map {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .contact-page-redesign .breadcrumbs,
  .contact-page-redesign .breadcrumbs a,
  .contact-page-redesign .breadcrumbs span {
    font-size: 14px;
    line-height: 1.3;
  }

  .contact-page-redesign .contact-hero .first-section-content p {
    font-size: 16px;
    line-height: 1.3;
  }

  .contact-process .about-us-text {
    margin-bottom: 20px;
  }

  .contact-process .about-us-numbers {
    flex-direction: column;
    gap: 12px;
  }

  .contact-process .about-us-numbers .about-us-number {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 24px;
    border-radius: 18px;
    text-align: left;
  }

  .contact-process .number-count {
    margin-bottom: 10px;
    font-size: 52px;
    line-height: 1;
  }

  .contact-process .number-title {
    margin-bottom: 8px;
    font-size: 20px;
    line-height: 1.2;
  }

  .contact-process .number-text {
    font-size: 16px;
    line-height: 1.35;
  }

  .contact-task-list .info-with-icons-list .info-with-icons-item {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 3px 12px;
    min-height: 0;
    padding: 16px;
    border-radius: 18px;
  }

  .contact-task-list .info-with-icons-list .info-with-icons-icon {
    width: 46px;
    min-width: 46px;
    height: 46px;
  }

  .contact-task-list .info-with-icons-title {
    font-size: 16px;
  }

  .contact-prep-list .info-with-icons-list .info-with-icons-title {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
  }

  .contact-task-list .info-with-icons-text {
    font-size: 13px;
  }

  .contact-primary-form .contacts-form h2 {
    margin-bottom: 16px;
  }

  .contact-primary-form .contacts-person-text {
    font-size: 14px;
  }

  .contact-prep-list .info-with-icons-list .info-with-icons-item {
    gap: 12px;
    min-height: 0;
    padding: 14px 16px;
    border-radius: 18px;
  }

  .contact-prep-list .info-with-icons-list .info-with-icons-icon {
    width: 46px;
    min-width: 46px;
    height: 46px;
  }

  .contact-socials .social-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .contact-socials .social-list a {
    flex-direction: column;
    gap: 8px;
    min-height: 92px;
    padding: 10px 4px;
    border-radius: 14px;
    font-size: 12px;
  }

  .contact-socials .social-list img {
    width: 38px;
    height: 38px;
  }

  .contact-page-redesign .ratings-section .ratings-list::before,
  .contact-page-redesign .ratings-section .ratings-list::after {
    width: 45px;
  }

  .contact-page-redesign .ratings-item {
    height: 90px;
    margin-right: 14px;
  }

  .contact-geography-copy {
    margin-bottom: 20px;
  }

  .contact-geography-copy p {
    font-size: 14px;
    line-height: 20px;
  }

  .contact-geography #map {
    height: 250px;
    border-radius: 20px;
  }
}

@media (max-width: 480px) {
  .contact-process .number-count {
    font-size: 28px;
  }

  .contact-geography #map {
    height: 230px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-page-redesign .ratings-section .ratings-list {
    overflow-x: auto;
  }

  .contact-page-redesign .ratings-track {
    animation: none;
  }
}
