/* ========== CONTACTS PAGE ========== */

.contacts-page .about-title,
.contacts-page h1,
.contacts-page h2 {
  color: var(--text-color);
}

/* ---------- Hero (map + branch cards) ---------- */

.contacts-hero__title {
  font-size: 32px;
  font-weight: 600;
  margin: 0 0 24px;
  color: var(--text-color);
}

.contacts-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}


.contacts-hero__map {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 360px;
  background: #F8F8F8;
  margin:0;
}

.map {
    position: relative;
}
.map iframe {
    margin:0;
    /*pointer-events: none;*/
}

/* Banner container (position over map) */
.map__banner {
    position: absolute;
    top: 50px;
    right: 20px;
    z-index: 10;
}

/* Clickable area */
.map__banner-link {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 300px;
    padding: 18px 20px;

    border-radius: 16px;
    text-decoration: none;
    color: #fff;

    background: linear-gradient(135deg, #00AECB, #94DEEA);

    position: relative;
    overflow: hidden;

    transition: all 0.2s ease;
}

/* Decorative shape (top-right soft blob) */
.map__banner::after {
    content: "";
    position: absolute;
    right: 10px;
    top: -13px;
    width: 80px;
    height: 110px;

    background-image: url("/static/img/contacts/praking_background.f75272750cbb.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    opacity: 0.33; /* soft like in your design */
}

/* Text block */
.map__banner-content {
    z-index: 1;
}

/* Title */
.map__banner-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
}

/* Subtitle */
.map__banner-subtitle {
    font-size: 14px;
    opacity: 0.9;
}

/* Arrow */
.map__banner-arrow {
    font-size: 20px;
    font-weight: bold;
    z-index: 1;
    align-self: end;
    line-height: 1;
}

/* Hover effect */
.map__banner-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    color: #fff;

}

.contacts-hero__map > iframe,
.contacts-hero__map > ymaps,
.contacts-hero__map [class*="ymaps"] {
  border-radius: 20px;
}

.contacts-hero__cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  background: #F8F8F8;

  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-card__address {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.35;
  margin: 0;
}

.contact-card__address svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--primary-color);
}

.contact-card__phones {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-card__phones a {
  color: var(--text-color);
  font-size: 15px;
  text-decoration: none;
}

.contact-card__phones a:hover {
  color: var(--primary-color);
}

.contact-card__phone-title {
  /*color: var(--secondary-color);*/
  font-size: 13px;
  margin-left: 4px;
}

.contact-card__email {
  /*color: var(--primary-color);*/
  text-decoration: none;
  font-size: 15px;
}

.contact-card__email:hover {
  text-decoration: underline;
}

.contact-card__hours {
  font-size: 14px;
  color: var(--primary-color);
  margin: 0;
  line-height: 1.45;
}

.contact-card__hours span {
  color: var(--text-color);
}

/* ---------- Socials card ---------- */

.socials-card {
  background: linear-gradient(135deg, #00AECB, #94DEEA);
  color: #fff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.socials-card::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -30px;
  width: 140px;
  height: 140px;
  background-image: url("/static/img/contacts/praking_background.f75272750cbb.svg");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.18;
  pointer-events: none;
}

.socials-card__text {
  position: relative;
  z-index: 1;
}

.socials-card__title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #fff;
}

.socials-card__subtitle {
  font-size: 14px;
  margin: 0;
  opacity: 0.95;
  line-height: 1.4;
}

.socials-card__icons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.socials-card__link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.socials-card__link:hover {
  background: #fff;
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.socials-card__img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
  transition: filter 0.2s ease;
}

.socials-card__link:hover .socials-card__img {
  filter: brightness(0) saturate(100%) invert(54%) sepia(91%) saturate(2476%) hue-rotate(157deg) brightness(94%) contrast(101%);
}

.socials-card__svg {
  width: 22px;
  height: 22px;
  transition: color 0.2s ease;
}

/* ---------- Departments carousel ---------- */

.departments {
  position: relative;
}

.departments__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 16px;
}

.departments__title {
  font-size: 28px;
  font-weight: 600;
  margin: 0;
  color: var(--text-color);
}

.departments__arrows {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.departments__arrow {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #E6ECF0;
  background: #fff;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.departments__arrow:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.departments__arrow.slick-disabled {
  opacity: 0.35;
  cursor: default;
}

.departments__arrow.slick-disabled:hover {
  background: #fff;
  color: var(--primary-color);
  border-color: #E6ECF0;
}

.departments__carousel .slick-slide {
  height: auto;
}

.departments__carousel .slick-slide > div {
  height: 100%;
}

.departments__carousel .slick-list {
}

.departments__carousel .slick-track {
  display: flex !important;
  gap: 24px;
}

.departments__card {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  background: #F8F8F8;
  border-radius: 20px;
  overflow: hidden;
  height: 100% !important;
  min-height: 260px;
}

.departments__card-media {
  flex: 0 0 44%;
  /*max-width: 44%;*/
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.departments__card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.departments__card-body {
  flex: 1 1 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.departments__card-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-color);
  margin: 0;
}

.departments__card-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-color);
  margin: 0;
}

.departments__card-text p {
  margin: 0 0 6px;
}

.departments__card-text p:last-child {
  margin-bottom: 0;
}

.departments__card-contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.departments__card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.3;
}

.departments__card-link:hover {
  text-decoration: underline;
}

.departments__card-link span {
  color: var(--text-color);
}

.departments__card-link[href^="mailto:"] span {
  color: var(--primary-color);
}

.departments__card-icon {
  flex-shrink: 0;
  color: var(--primary-color);
}

.departments__card-hours {
  font-size: 13px;
  color: var(--secondary-color);
  margin: 4px 0 0;
  line-height: 1.45;
}

.departments__carousel .slick-dots {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  margin: 32px 0 0;
  position: static;
  list-style: none;
  height: 20px;
}

.departments__carousel .slick-dots li {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
}

.departments__carousel .slick-dots li button {
  padding: 0;
  border: none;
  background: #D9E3EA;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  font-size: 0;
  line-height: 0;
  color: transparent;
  cursor: pointer;
  transition: background 0.2s ease;
}

.departments__carousel .slick-dots li button::before,
.departments__carousel .slick-dots li button:before {
  content: none !important;
  display: none !important;
}

.departments__carousel .slick-dots li.slick-active button {
  background: var(--primary-color);
}

.departments__carousel.slick-dotted.slick-slider {
  margin-bottom: 0;
}

@media screen and (max-width: 767px) {
  .departments__card {
    flex-direction: column;
    min-height: 0;
  }

  .departments__card-media {
    flex: 0 0 auto;
    max-width: 100%;
    aspect-ratio: 16 / 10;
  }

  .departments__card-body {
    padding: 20px;
  }

  .departments__title {
    font-size: 22px;
  }
}

/* ---------- Info block (about_info photo + text) ---------- */

.contacts__info-block__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

.contacts__info-block__content {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.contacts__info-block__title {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  color: var(--text-color);
  line-height: 1.3;
}

.contacts__info-block__text {
  font-size: 15px;
  color: var(--text-color);
  line-height: 1.55;
  margin: 0;
}

.contacts__info-block__text p {
  margin: 0 0 12px;
}

.contacts__info-block__text p:last-child {
  margin-bottom: 0;
}

.contacts__info-block__image {
  border-radius: 20px;
  overflow: hidden;
  min-height: 240px;
  background: var(--background-color);
  height: 100%;
}

.contacts__info-block__image img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  display: block;
}

.contacts__info-block__button {
  align-self: flex-start;
  margin-top: 8px;
}

/* ========== RESPONSIVE ========== */

.contacts-hero__grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .contacts-hero__map {
        order: 2;
    }

    .contacts-hero__cards {
        order: 1;
    }

@media screen and (min-width: 768px) {
  .contacts-hero__title {
    font-size: 36px;
    margin-bottom: 32px;
  }

  .contacts__info-block__grid {
    grid-template-columns: 1fr 1fr;
  }

}

@media screen and (min-width: 992px) {

  .contacts-hero__grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 24px;
  }

  .contacts-hero__map {
      order: 1;
  }

  .contacts-hero__cards {
      order: 2;
  }

  .contacts-hero__map {
    min-height: 480px;
  }

  .contact-card {
    padding: 28px;
  }

  .contacts__info-block__grid {
    grid-template-columns: minmax(0, 46%) minmax(0, 54%);
    gap: 0;
    min-height: 420px;
  }

  .contacts__info-block__content {
    padding: 48px;
    margin-right: -8%;
  }

  .contacts__info-block__title {
    font-size: 26px;
  }
}

@media screen and (max-width: 767px) {
  .contacts__info-block__content {
    padding: 24px;
  }
}

@media (max-width: 767px) {

    .map__banner {
        position: static; /* ключевой момент */
        margin: 0 0 16px;
    }
    .contacts-hero__map {
        display: flex;
        flex-direction: column;
        background: none;
    }

    .contacts__info-block__content{
        order: 2;
    }
    .contacts__info-block__image{
        order: 1;
    }

    .map-container {
        order: 2;
    }

    .map__banner {
        order: 1;
    }
    .map__banner-link {
            width: 100%;
        }

    #map{
        height: 300px !important;
        margin: auto;
    }
}


.contacts-consult {
    position: relative;
    overflow: hidden;
    padding: 4rem 3rem;
    z-index: 9;
    border-radius: 20px;
    background: linear-gradient(327deg, #4FC6DC 0%, #EBF7FF 100%);
}

.contacts-consult .contacts-consult__img {
    right: -30px;
    position: absolute;
    bottom: 0;
    top: 0;
    width: 50%;
    z-index: 1;
    pointer-events: none;
}

.contacts-consult .contacts-consult__img picture {
    display: block;
    width: 100%;
    height: 100%;
}

.contacts-consult .contacts-consult__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contacts-consult h2 {
    position: relative;
    z-index: 2;
    max-width: 354px;
    font-size: 26.73px;
    font-weight: 600;
    margin-bottom: 22px;
}

.contacts-consult a {
    position: relative;
    z-index: 2;
    font-weight: 500;
}

.contacts-consult .contacts-consult__mobile {
    display: none;
}

.directions-feedback.contacts .directions-form__form {
    width: 568px;
}

.contacts-consult .contacts-consult__desktop {
    display: block;
}

@media (max-width: 1200px) {
    /*.contacts-consult {
        background: linear-gradient(271.77deg, #C6F1F8 -2.8%, #CFEAFC 95%) !important;
    }*/
}

@media (max-width: 768px) {
    .contacts-consult {
        margin-left: 0px !important;
        margin-right: 0px !important;
    }

    .contacts-consult h2 {
        font-size: 20px;
    }

    .contacts-consult .contacts-consult__img {
        right: -120px !important;
        bottom: -80px !important;
    }

    .contacts-consult .contacts-consult__img img {
        object-position: left top;
        transform: rotate(180deg) scaleX(-1);
    }

    .directions-feedback.mrt{
        margin-left: 0px !important;
        margin-right: 0px !important;
    }
}

@media (max-width: 576px) {
    .contacts-consult h2 {
        max-width: 206px;
        font-size: 16px;
    }

    .contacts-consult .contacts-consult__img {
        right: -50px !important;
        bottom: -50px !important;
    }

    .contacts-consult {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
        padding-left: 20px !important;
    }

    .contacts-consult .contacts-consult__mobile {
        display: block !important;
    }

    .contacts-consult .contacts-consult__desktop {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .contacts-consult .contacts-consult__img {
        top: -20px !important;
        right: -30px !important;
        bottom: -30px !important;
    }
}

/* ===================================================================
   Contacts page — callback form
   =================================================================== */

.contacts-form__wrap {
    position: relative;
    background: #DBEDFA;
    border-radius: 24px;
    padding: 40px;
    overflow: visible;
    display: flex;
    align-items: stretch;
}

.contacts-form__form {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    width: 75%;
    max-width: 100%;
}

.contacts-form__title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--text-color);
}

.contacts-form__subtitle {
    font-size: 14px;
    color: #959593;
    margin: 0 0 24px;
}

.contacts-form__inputs {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.contacts-form__row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.contacts-form__field input,
.contacts-form__field textarea {
    width: 100%;
    background: #F4F4F4;
    border: none;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-color);
    outline: none;
    transition: background 0.2s ease;
}

.contacts-form__field input:focus,
.contacts-form__field textarea:focus {
    background: #EEEEEE;
}

.contacts-form__field--textarea textarea {
    min-height: 110px;
    resize: vertical;
    display: block;
}

.contacts-form__field input::placeholder,
.contacts-form__field textarea::placeholder {
    color: #6B6B6B;
}

.contacts-form__submit {
    background: #00AECB;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 32px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s ease;
}

.contacts-form__submit:hover {
    background: #009BB5;
}

.contacts-form__privacy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 20px;
    cursor: pointer;
    user-select: none;
}

.contacts-form__privacy-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.contacts-form__privacy-box {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border: 1px solid #C4C4C4;
    border-radius: 4px;
    background: #fff;
    position: relative;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.contacts-form__privacy-box::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 2px;
    background: #00AECB;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.contacts-form__privacy-input:checked + .contacts-form__privacy-box {
    border-color: #00AECB;
}

.contacts-form__privacy-input:checked + .contacts-form__privacy-box::after {
    opacity: 1;
}

.contacts-form__privacy-input:focus-visible + .contacts-form__privacy-box {
    outline: 2px solid rgba(0, 174, 203, 0.25);
    outline-offset: 2px;
}

.contacts-form__privacy-text {
    font-size: 12px;
    color: #959593;
    line-height: 1.4;
}

.contacts-form__privacy-text a {
    color: #00AECB;
}

.contacts-form__error {
    color: #d32f2f;
    margin: 8px 0;
    font-size: 14px;
}

.contacts-form__img--desktop {
    position: absolute;
    right: -13%;
    top: 44%;
    transform: translateY(-50%) scaleY(-1);
    width: 70%;
    height: auto;
    pointer-events: none;
    z-index: 1;
}

.contacts-form__img--desktop img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.contacts-form__img--mobile {
    display: none;
}

@media (max-width: 992px) {
    .contacts-form__img--desktop {
        width: 300px;
        height: 300px;
        right: -30px;
    }

    .contacts-form__form {
        width: 80%;
    }
}

@media (max-width: 768px) {
    .contacts__feedback{
        margin-bottom: 0;
        overflow-x: clip;
    }
    .contacts-form__wrap {
        position: relative;
        padding: 140px 16px 24px;
        background: #DBEDFA;
        display: block;
        overflow: visible;
        border-radius: 0;
    }

    .contacts-form__img--desktop {
        display: none;
    }

    .contacts-form__img--mobile {
        display: block;
        position: absolute;
        top: -13%;
        left: 50%;
        transform: translateX(-50%) scaleY(-1)  rotate(-70deg);
        width: 115%;
        height: auto;
        pointer-events: none;
        z-index: 1;
        margin: 0;
    }

    .contacts__feedback .container{
        padding-right: 0;
        padding-left: 0;
    }

    .contacts-form__img--mobile img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

    .contacts-form__form {
        position: relative;
        z-index: 2;
        width: 100%;
        padding: 32px 24px;
        border-radius: 20px;
        background: #fff;
    }

    .contacts-form__row {
        grid-template-columns: 1fr;
    }

    .contacts-form__submit {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .contacts-form__form {
        padding: 28px 20px;
    }

    .contacts-form__title {
        font-size: 22px;
    }
}
