/**
 * Contact page — premium light redesign.
 * Loaded after contact.css and scoped to the contact template.
 */

body.page-template-page-contact {
  --ct-ink: #102c45;
  --ct-muted: #64798a;
  --ct-blue: #147cac;
  --ct-teal: #18b8a5;
  --ct-orange: #ed6b18;
  --ct-line: #d9e6ec;
  background: #f4f8fb;
}

/* Hero */
body.page-template-page-contact .cHero {
  min-height: 620px;
  padding: 78px 0 120px;
  background:
    radial-gradient(circle at 86% 15%, rgba(24, 184, 165, .18), transparent 30%),
    linear-gradient(118deg, #082f4c 0%, #0b3f5b 50%, #0c6573 100%);
}

body.page-template-page-contact .cHero::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to right, transparent, #000);
}

body.page-template-page-contact .cHero::after {
  height: 96px;
  background: linear-gradient(to top, #f4f8fb, transparent);
}

body.page-template-page-contact .cHeroDeco1 {
  top: -180px;
  right: -70px;
  width: 560px;
  height: 560px;
  border-color: rgba(255, 255, 255, .12);
  box-shadow:
    0 0 0 76px rgba(255, 255, 255, .025),
    0 0 0 158px rgba(255, 255, 255, .018);
}

body.page-template-page-contact .cHeroDeco2 {
  display: none;
}

body.page-template-page-contact .cHeroDeco3,
body.page-template-page-contact .cHeroDeco4 {
  background: #8ce0d5;
}

body.page-template-page-contact .cHeroInner {
  max-width: 1265px;
  padding: 0 24px;
  grid-template-columns: minmax(0, .92fr) minmax(500px, 1.08fr);
  gap: 64px;
}

body.page-template-page-contact .cHeroBreadcrumbs {
  display: inline-flex;
  min-height: 38px;
  margin: 0 0 27px;
  padding: 0 14px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .65);
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

body.page-template-page-contact .cHeroBreadcrumbs a {
  margin-right: 7px;
  color: rgba(255, 255, 255, .78);
}

body.page-template-page-contact .cHeroTitle {
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(54px, 6vw, 76px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.055em;
}

body.page-template-page-contact .cHeroTitleAccent {
  color: #7eddd1;
}

body.page-template-page-contact .cHeroDesc {
  max-width: 535px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, .72);
  font-size: 16px;
  line-height: 1.7;
}

body.page-template-page-contact .cHeroActions {
  gap: 12px;
}

body.page-template-page-contact .cHeroBtn {
  min-height: 54px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
}

body.page-template-page-contact .cHeroBtnPrimary {
  background: linear-gradient(135deg, #f27a27, #e75d09);
  box-shadow: 0 13px 28px rgba(231, 93, 9, .27);
}

body.page-template-page-contact .cHeroBtnPrimary:hover {
  box-shadow: 0 17px 34px rgba(231, 93, 9, .34);
}

body.page-template-page-contact .cHeroBtnOutline {
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .07);
  backdrop-filter: blur(10px);
}

body.page-template-page-contact .cHeroBtnOutline:hover {
  border-color: rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .12);
}

body.page-template-page-contact .cHeroCards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.page-template-page-contact .cHeroCard {
  min-height: 154px;
  padding: 20px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 17px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 22px;
  background: rgba(255, 255, 255, .075);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
}

body.page-template-page-contact .cHeroCard:hover {
  border-color: rgba(126, 221, 209, .32);
  background: rgba(255, 255, 255, .11);
  transform: translateY(-3px);
}

body.page-template-page-contact .cHeroCardIcon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #147cac, #18b8a5);
  box-shadow: 0 10px 22px rgba(10, 42, 65, .2);
}

body.page-template-page-contact .cHeroCardLabel {
  margin-bottom: 5px;
  color: rgba(255, 255, 255, .48);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
}

body.page-template-page-contact .cHeroCardValue {
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

body.page-template-page-contact .cHeroCardValue a {
  overflow-wrap: anywhere;
}

/* Map and schedule */
body.page-template-page-contact .cMapSection {
  padding: 0 0 48px;
  background:
    radial-gradient(circle at 3% 25%, rgba(24, 184, 165, .07), transparent 24%),
    #f4f8fb;
}

body.page-template-page-contact .cMapContainer {
  max-width: 1265px;
  margin-top: -72px;
  padding: 0 24px;
}

body.page-template-page-contact .cMapContainer::before {
  content: "Как нас найти";
  display: block;
  position: relative;
  z-index: 3;
  width: max-content;
  margin: 0 0 18px 5px;
  color: var(--ct-ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
}

body.page-template-page-contact .cMapFrame {
  height: 540px;
  overflow: hidden;
  border: 7px solid #fff;
  border-radius: 30px;
  background: #e9f1f5;
  box-shadow: 0 24px 60px rgba(16, 51, 74, .14);
}

body.page-template-page-contact .cMapOverlay {
  top: 25px;
  right: 25px;
  width: 338px;
  overflow: hidden;
  border: 1px solid rgba(210, 225, 232, .92);
  border-radius: 22px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 20px 48px rgba(16, 51, 74, .16);
}

body.page-template-page-contact .cMapOverlayHead {
  padding: 18px 20px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 255, 255, .13), transparent 38%),
    linear-gradient(135deg, #0b5c79, #18aa9d);
}

body.page-template-page-contact .cMapOverlayHeadText {
  font-size: 16px;
  font-weight: 800;
}

body.page-template-page-contact .cMapOverlayHeadSub {
  margin-top: 3px;
  font-size: 11px;
}

body.page-template-page-contact .cMapOverlayBody {
  padding: 13px 20px 17px;
}

body.page-template-page-contact .cSchedRow {
  min-height: 38px;
  padding: 0;
  border-color: #edf2f5;
  font-size: 12px;
}

body.page-template-page-contact .cSchedRow.today {
  margin: 4px -8px;
  padding: 0 8px;
  border-radius: 9px;
  background: #eaf8f5;
}

/* Licenses */
body.page-template-page-contact .cLicSection {
  padding: 58px 0 70px;
  background: #fff;
}

body.page-template-page-contact .cLicInner {
  max-width: 1265px;
  padding: 0 24px;
}

body.page-template-page-contact .cLicHeader {
  margin-bottom: 30px;
}

body.page-template-page-contact .cLicHeaderIcon {
  width: 58px;
  height: 58px;
  border-radius: 17px;
  background: linear-gradient(135deg, #147cac, #18b8a5);
  box-shadow: 0 11px 25px rgba(20, 124, 172, .2);
}

body.page-template-page-contact .cLicTitle {
  color: var(--ct-ink);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -.035em;
}

body.page-template-page-contact .cLicSubtitle {
  max-width: 720px;
  color: var(--ct-muted);
  font-size: 14px;
}

body.page-template-page-contact .cLicGrid {
  gap: 18px;
  margin-bottom: 28px;
}

body.page-template-page-contact .cLicCard {
  min-height: 250px;
  padding: 25px 23px;
  gap: 14px;
  border: 1px solid var(--ct-line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0, rgba(24, 184, 165, .055), transparent 35%),
    #fff;
  box-shadow: 0 12px 30px rgba(16, 51, 74, .055);
}

body.page-template-page-contact .cLicCard:hover {
  border-color: rgba(20, 124, 172, .24);
  box-shadow: 0 20px 44px rgba(16, 51, 74, .1);
}

body.page-template-page-contact .cLicCard::before {
  display: none;
}

body.page-template-page-contact .cLicCardIcon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

body.page-template-page-contact .cLicCardIcon.medical,
body.page-template-page-contact .cLicCardIcon.contract,
body.page-template-page-contact .cLicCardIcon.org {
  background: #eef7fa;
  color: var(--ct-blue);
}

body.page-template-page-contact .cLicCardTitle {
  color: var(--ct-ink);
  font-size: 16px;
  font-weight: 800;
}

body.page-template-page-contact .cLicCardDesc {
  color: var(--ct-muted);
  font-size: 12px;
  line-height: 1.6;
}

body.page-template-page-contact .cLicCardCount {
  background: #f0f6f8;
  color: #607789;
}

body.page-template-page-contact .cLicCardArrow {
  background: #eef7fa;
}

body.page-template-page-contact .cLicCard:hover .cLicCardArrow {
  background: linear-gradient(135deg, #147cac, #18b8a5);
}

body.page-template-page-contact .cLicAllBtn {
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid #d6e5eb;
  border-radius: 14px;
  background: #f5fafb;
  color: var(--ct-blue);
  font-size: 13px;
}

body.page-template-page-contact .cLicAllBtn:hover {
  border-color: transparent;
  background: linear-gradient(135deg, #147cac, #18b8a5);
  color: #fff;
  box-shadow: 0 10px 25px rgba(20, 124, 172, .18);
}

/* Reviews */
body.page-template-page-contact .cRevSection {
  padding: 82px 0 92px;
  background:
    radial-gradient(circle at 18% 20%, rgba(24, 184, 165, .16), transparent 27%),
    linear-gradient(125deg, #082f4c, #0b455f 58%, #0b6170);
}

body.page-template-page-contact .cRevInner {
  max-width: 1265px;
  padding: 0 24px;
}

body.page-template-page-contact .cRevHeader {
  margin-bottom: 34px;
}

body.page-template-page-contact .cRevTitle {
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: -.04em;
}

body.page-template-page-contact .cRevRatingNum {
  color: #7eddd1;
}

body.page-template-page-contact .cRevTrack {
  gap: 18px;
}

body.page-template-page-contact .cRevCard {
  flex-basis: 350px;
  min-height: 260px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 22px;
  box-shadow: 0 16px 36px rgba(4, 31, 49, .15);
}

body.page-template-page-contact .cRevCardAvatar {
  background: linear-gradient(135deg, #147cac, #18b8a5);
}

body.page-template-page-contact .cRevNav {
  background: rgba(255, 255, 255, .13);
}

body.page-template-page-contact .cRevNav:hover {
  background: #18aa9d;
  border-color: #18aa9d;
}

body.page-template-page-contact .cRevDot.active {
  background: #7eddd1;
}

@media (max-width: 1080px) {
  body.page-template-page-contact .cHeroInner {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  body.page-template-page-contact .cHeroCards {
    margin-top: 0;
  }

  body.page-template-page-contact .cMapOverlay {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 330px;
    margin: 0;
  }
}

@media (max-width: 760px) {
  body.page-template-page-contact .cHero {
    min-height: 0;
    padding: 48px 0 110px;
  }

  body.page-template-page-contact .cHeroInner {
    padding: 0 16px;
  }

  body.page-template-page-contact .cHeroTitle {
    font-size: clamp(46px, 14vw, 62px);
  }

  body.page-template-page-contact .cHeroDesc {
    font-size: 14px;
  }

  body.page-template-page-contact .cHeroActions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  body.page-template-page-contact .cHeroBtn {
    justify-content: center;
  }

  body.page-template-page-contact .cHeroCards {
    grid-template-columns: 1fr;
  }

  body.page-template-page-contact .cHeroCard {
    min-height: 0;
    padding: 17px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }

  body.page-template-page-contact .cMapContainer {
    margin-top: -62px;
    padding: 0 16px;
  }

  body.page-template-page-contact .cMapFrame {
    display: grid;
    height: auto;
    border-width: 5px;
    border-radius: 23px;
  }

  body.page-template-page-contact .cMapFrame iframe {
    height: 340px;
  }

  body.page-template-page-contact .cMapOverlay {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    margin: 0;
    border: 0;
    border-top: 1px solid var(--ct-line);
    border-radius: 0;
    box-shadow: none;
  }

  body.page-template-page-contact .cLicSection {
    padding: 62px 0 68px;
  }

  body.page-template-page-contact .cLicInner,
  body.page-template-page-contact .cRevInner {
    padding: 0 16px;
  }

  body.page-template-page-contact .cLicHeader {
    align-items: flex-start;
    text-align: left;
  }

  body.page-template-page-contact .cLicCard {
    min-height: 0;
  }

  body.page-template-page-contact .cRevSection {
    padding: 66px 0 72px;
  }
}

@media (max-width: 520px) {
  body.page-template-page-contact .cHeroActions {
    grid-template-columns: 1fr;
  }

  body.page-template-page-contact .cHeroBreadcrumbs {
    margin-bottom: 22px;
  }

  body.page-template-page-contact .cMapFrame iframe {
    height: 290px;
  }

  body.page-template-page-contact .cLicHeader {
    flex-direction: row;
  }

  body.page-template-page-contact .cLicHeaderIcon {
    width: 48px;
    height: 48px;
  }

  body.page-template-page-contact .cLicTitle {
    font-size: 25px;
  }

  body.page-template-page-contact .cLicAllBtn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-template-page-contact .cHeroCard,
  body.page-template-page-contact .cHeroBtn,
  body.page-template-page-contact .cLicCard,
  body.page-template-page-contact .cRevCard {
    transition: none;
  }
}
