/* Homepage Hero — one layout system. Desktop: separated text/image columns;
   tablet and phone: original banner above the complete text block. */
.wp-site-blocks > .medessa-home-banner{margin-block-start:0}
.medessa-home-banner{width:100%;max-width:none;margin:0;line-height:normal}
.medessa-home-banner .wp-block-shortcode{margin:0}
.medessa-home-hero{display:grid;grid-template-columns:minmax(0,42%) minmax(0,58%);align-items:stretch;overflow:hidden;isolation:isolate;width:100%;max-width:1920px;min-height:clamp(440px,39vw,690px);margin-inline:auto;--medessa-hero-paper:#eaeff0;background:var(--medessa-hero-paper)}
.medessa-home-hero__copy{grid-column:1;grid-row:1;display:flex;flex-direction:column;justify-content:center;min-width:0;padding:clamp(24px,3.2vw,64px) clamp(15px,1.8vw,36px) clamp(24px,3.2vw,64px) clamp(46px,6.5vw,122px)}
.medessa-home-hero__visual{grid-column:2;grid-row:1;display:flex;align-items:stretch;justify-content:center;min-width:0;overflow:hidden;pointer-events:none;background:var(--medessa-hero-paper)}
.medessa-home-hero__picture{display:flex;width:100%;height:100%;align-items:center;justify-content:center}
.medessa-home-hero__image{display:block;width:100%;height:100%;max-width:100%;object-fit:contain;object-position:center center}
.medessa-home-hero__title{margin:0 0 clamp(17px,2.2vw,32px);font-size:clamp(54px,3.65vw,72px);font-weight:850;line-height:1.08;letter-spacing:-.027em;white-space:nowrap}
.medessa-home-hero__mri{color:var(--md-teal)}
.medessa-home-hero__tesla{color:var(--md-green)}
.medessa-home-hero__lead{margin:0 0 clamp(22px,2.65vw,42px);font-size:clamp(16px,1.65vw,29px);line-height:1.38;color:#293d41}
.medessa-home-hero__lead strong{display:inline-block;color:var(--md-teal);font-weight:850}
.medessa-home-hero__benefits{display:flex;align-items:center;justify-content:flex-start;gap:clamp(26px,4.1vw,78px);margin:0 0 clamp(23px,2.8vw,44px)}
.medessa-home-hero__benefit{display:flex;align-items:center;gap:clamp(6px,.75vw,12px);min-width:0}
.medessa-home-hero__benefit img{flex-shrink:0;width:clamp(28px,2.9vw,46px);height:clamp(28px,2.9vw,46px);object-fit:contain}
.medessa-home-hero__benefit span{font-size:clamp(10px,1vw,18px);line-height:1.07;font-weight:820;color:#25363b;letter-spacing:.005em}
.medessa-home-hero__action{display:flex;justify-content:center;margin:0}
.medessa-home-hero__cta{display:flex;text-transform:uppercase;align-items:center;justify-content:center;align-self:center;width:min(100%,340px);min-height:54px;padding:13px 20px;margin:0;border:0;border-radius:999px;font-family:inherit;cursor:pointer;background:var(--md-action-teal);color:#fff;text-decoration:none;text-align:center;font-size:clamp(12px,1vw,16px);line-height:1.25;font-weight:830;letter-spacing:.012em;transition:background-color .15s ease}
.medessa-home-hero__cta:hover,.medessa-home-hero__cta:focus-visible{box-shadow:inset 0 0 0 2px #fff;color:#fff}
@media (min-width:1000px) and (max-width:1240px){
  .medessa-home-hero{grid-template-columns:minmax(0,44%) minmax(0,56%)}
  .medessa-home-hero__copy{padding:22px clamp(14px,1.4vw,22px) 22px clamp(40px,5.8vw,72px)}
  .medessa-home-hero__title{font-size:clamp(45px,4.35vw,54px)}
  .medessa-home-hero__lead{font-size:clamp(15px,1.5vw,19px)}
  .medessa-home-hero__benefit span{font-size:clamp(10px,1vw,12px)}
}
@media (min-width:600px) and (max-width:999px){
  .medessa-home-hero{grid-template-columns:minmax(0,54%) minmax(0,46%);min-height:clamp(300px,42vw,405px)}
  .medessa-home-hero__copy{padding:24px clamp(12px,2vw,20px) 40px clamp(19px,4vw,40px)}
  .medessa-home-hero__title{font-size:clamp(38px,5.4vw,54px);margin-bottom:16px}
  .medessa-home-hero__lead{font-size:clamp(15px,2.15vw,21px);margin-bottom:18px}
  .medessa-home-hero__benefits{gap:clamp(12px,2.7vw,28px);margin-bottom:22px}
  .medessa-home-hero__benefit span{font-size:clamp(10.5px,1.25vw,13px)}
  .medessa-home-hero__cta{min-height:48px;padding-inline:12px}
}
@media (max-width:599px){
  .medessa-home-hero{display:flex;flex-direction:column;min-height:0}
  .medessa-home-hero__visual{display:none}
  .medessa-home-hero__copy{width:min(100%,480px);margin-inline:auto;padding:var(--md-card-gap) 17px;text-align:center}
  .medessa-home-hero__title{font-size:clamp(36px,8vw,49px);white-space:normal;margin:0 0 var(--md-card-gap)}
  .medessa-home-hero__lead{font-size:clamp(15px,4vw,20px);line-height:1.35;margin-bottom:var(--md-card-gap)}
  .medessa-home-hero__benefits{justify-content:center;gap:var(--md-card-gap);margin-bottom:var(--md-card-gap)}
  .medessa-home-hero__benefit{gap:7px;text-align:left}
  .medessa-home-hero__benefit img{width:clamp(28px,8.4vw,40px);height:clamp(28px,8.4vw,40px)}
  .medessa-home-hero__benefit span{font-size:clamp(10.5px,2.8vw,12px)}
  .medessa-home-hero__cta{width:100%;min-height:44px;padding:8px 12px;font-size:clamp(12px,3.3vw,15px)}
}

/* Home stage: cards overlap the hero on wider screens; mobile DOM order follows home-order.js. */
.medessa-home-stage{display:flex;flex-direction:column;width:100%;max-width:none;margin:0;isolation:isolate}
.medessa-home-main > :is(.medessa-home-stage,.medessa-home-booking-slot,.medessa-front-page) { margin-block:0; }
.medessa-home-booking-slot { width:100%; }
.medessa-home-booking-slot > .wp-block-shortcode { margin:0; }
.medessa-home-booking-slot > p:empty { display:none; }
.medessa-home-stage>.medessa-home-banner{order:1;width:100%;margin:0}
.medessa-home-stage>.medessa-home-services-slot{order:2;position:relative;z-index:2;width:100%;margin:-36px 0 0}
.medessa-home-services{width:100%;margin:0;background:transparent;padding:0 clamp(10px,2vw,16px)}
.medessa-home-services__inner{width:min(1180px,100%);margin-inline:auto}
.medessa-home-services__title{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.medessa-home-services__grid{display:grid;grid-template-columns:repeat(var(--medessa-home-card-columns,4),minmax(0,1fr));gap:var(--md-card-gap)}
.medessa-home-services--chornomorsk{--medessa-home-card-columns:3}
/* MEDESSA Flow Cards — one source of styles. Decorative waves are CSS-only. */
.medessa-home-service{position:relative;isolation:isolate;display:flex;align-items:center;gap:12px;box-sizing:border-box;min-height:90px;min-width:0;overflow:hidden;padding:12px 16px;border-radius:17px;background:var(--md-teal);border:1px solid rgba(4,81,88,.28);box-shadow:0 9px 24px rgba(9,80,85,.17);color:#fff;text-decoration:none;transition:transform .2s ease,box-shadow .2s ease}
.medessa-home-service:nth-child(even){background:var(--md-green);border-color:var(--md-green)}
.medessa-home-service::before{content:"";position:absolute;z-index:-1;pointer-events:none;width:110%;height:88px;bottom:-56px;left:-5%;border-radius:50% 50% 0 0;transform:rotate(-7deg);background:rgba(0,0,0,.08)}
.medessa-home-service::after{content:"";position:absolute;z-index:-1;pointer-events:none;width:75%;height:90px;bottom:-68px;right:-12%;border-radius:50% 50% 0 0;transform:rotate(12deg);background:rgba(0,0,0,.07)}
.medessa-home-service__icon{display:grid;place-items:center;flex:0 0 55px;width:55px;height:55px;border:1px solid rgba(255,255,255,.22);border-radius:15px;background:rgba(255,255,255,.14)}
.medessa-home-service:nth-child(even) .medessa-home-service__icon{border-color:rgba(255,255,255,.35);background:rgba(255,255,255,.32)}
.medessa-home-service:nth-child(even) .medessa-home-service__icon img{filter:brightness(0) invert(1)}
.medessa-home-service__icon img{width:45px;height:45px;display:block}
.medessa-home-service__body{display:flex;flex-direction:column;gap:5px;min-width:0;overflow-wrap:anywhere}
.medessa-home-service__body strong{font-size:clamp(16px,1.35vw,21px);font-weight:830;line-height:1.18;color:inherit}
.medessa-home-service__body>span{font-size:clamp(11px,.9vw,13px);line-height:1.35;color:inherit;opacity:.99}
.medessa-home-service__arrow{position:absolute;right:11px;top:11px;display:grid;place-items:center;width:29px;height:29px;border-radius:50%;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.17);color:inherit;font-size:18px;line-height:1;transition:transform .2s ease,background .2s ease}
.medessa-home-service:nth-child(even) .medessa-home-service__arrow{border-color:rgba(21,59,62,.16);background:rgba(255,255,255,.28)}
.medessa-home-service:is(:hover,:focus-visible){transform:translateY(-4px);box-shadow:0 16px 32px rgba(9,80,85,.25)}
.medessa-home-service:is(:hover,:focus-visible) .medessa-home-service__arrow{transform:translate(2px,-2px);background:rgba(255,255,255,.28)}
.medessa-home-service:focus-visible{outline:3px solid #153b3e;outline-offset:3px}
.medessa-home-service--unlinked{cursor:default}
.medessa-home-service--unlinked:hover{transform:none;box-shadow:0 9px 24px rgba(9,80,85,.17)}
@media(min-width:600px) and (max-width:999px){.medessa-home-stage>.medessa-home-services-slot{margin-top:-16px}}
@media(min-width:600px) and (max-width:900px){.medessa-home-services:not(.medessa-home-services--chornomorsk){--medessa-home-card-columns:2}}
@media(max-width:599px){
  .medessa-home-stage>.medessa-home-services-slot{order:1;margin:0}
  .medessa-home-stage>.medessa-home-banner{order:2}
  .medessa-home-services{--medessa-home-card-columns:2;padding:var(--md-card-gap) 10px var(--md-section-gap)}
  .medessa-home-services--chornomorsk .medessa-home-service:last-child{grid-column:1/-1;min-height:64px;flex-direction:row;align-items:center;padding:9px 44px 9px 11px}
  .medessa-home-service{flex-direction:column;align-items:flex-start;gap:6px;min-height:128px;padding:11px;border-radius:13px}
  .medessa-home-service__icon{flex-basis:auto;width:43px;height:43px;border-radius:12px}
  .medessa-home-service__icon img{width:36px;height:36px}
  .medessa-home-service__body strong{font-size:clamp(13px,4.3vw,18px);hyphens:auto;overflow-wrap:normal}
  .medessa-home-service__body>span{font-size:clamp(11px,2.9vw,12px)}
  .medessa-home-service__arrow{width:25px;height:25px;right:9px;top:9px;font-size:17px}
}
@media(prefers-reduced-motion:reduce){.medessa-home-service,.medessa-home-service__arrow{transition:none}.medessa-home-service:is(:hover,:focus-visible){transform:none}.medessa-home-service:is(:hover,:focus-visible) .medessa-home-service__arrow{transform:none}}

@media (prefers-reduced-motion:reduce){.medessa-home-hero__cta{transition:none}}

@media (max-width: 599px) {
    .medessa-home-stage .medessa-home-hero { background: linear-gradient(145deg, #f8fcfb, #e4f5f3 68%, #eef5db); }
}


#medessa-city-choice,
#medessa-city-choice * {
  box-sizing: border-box;
}

#medessa-city-choice {
  --mc-teal: #1da6b0;
  --mc-green: #8cc63f;
  --mc-ink: #293e41;
  --mc-row-gap: 10px;
  max-width: 1160px;
  width: calc(100% - 32px);
  margin: var(--md-section-gap) auto;
  padding: 0;
  font-family: inherit;
  color: var(--mc-ink);
}

#medessa-city-choice .mc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

#medessa-city-choice .mc-card {
  display: flex;
  align-items: center;
  gap: 19px;
  min-width: 0;
  min-height: 132px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid #e0ebe9;
  border-top: 4px solid var(--mc-teal);
  border-radius: 15px;
  box-shadow: 0 5px 18px rgba(29,71,70,.065);
}

#medessa-city-choice .mc-card--green {
  border-top-color: var(--mc-green);
}

#medessa-city-choice .mc-symbol {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e9f8f8;
  color: #168e98;
}

#medessa-city-choice .mc-card--green .mc-symbol {
  background: #f0f8e4;
  color: #639c18;
}

#medessa-city-choice .mc-symbol svg {
  display: block;
  width: 23px;
  height: 23px;
}

#medessa-city-choice :is(.mc-info, .mc-location, .mc-phones) {
  display: grid;
  gap: var(--mc-row-gap);
  min-width: 0;
  margin: 0;
}

#medessa-city-choice .mc-info {
  flex: 1;
}

#medessa-city-choice .mc-phones:empty {
  display: none;
}

#medessa-city-choice .mc-city {
  margin: 0;
  padding: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
  color: #293e41;
}

#medessa-city-choice .mc-address {
  margin: 0;
  color: #647477;
  font-size: 13px;
  line-height: 1.4;
}

#medessa-city-choice .mc-mri {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #314a4d;
}

#medessa-city-choice .mc-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--mc-teal);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  transition: background .15s ease;
}

#medessa-city-choice .mc-link:hover,
#medessa-city-choice .mc-link:focus-visible {
  background: #168690;
  color: #fff;
  text-decoration: none;
}

#medessa-city-choice .mc-card--green .mc-link {
  background: #77b62d;
}

#medessa-city-choice .mc-card--green .mc-link:hover,
#medessa-city-choice .mc-card--green .mc-link:focus-visible {
  background: #5d9623;
}

#medessa-city-choice .mc-link:focus-visible {
  outline: 3px solid #253b3e;
  outline-offset: 3px;
}

@media (min-width: 600px) and (max-width: 900px) {
  #medessa-city-choice .mc-card {
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px;
  }

  #medessa-city-choice .mc-info {
    flex: 1 1 calc(100% - 60px);
  }

  #medessa-city-choice .mc-link {
    width: 100%;
  }
}

/* ===== CITY AND ADDRESS: GOOGLE MAPS / CLICK-TO-CALL ===== */
#medessa-city-choice .mc-location {
  color: inherit;
  text-decoration: none;
  border-radius: 5px;
}
#medessa-city-choice .mc-location:hover .mc-city,
#medessa-city-choice .mc-location:hover .mc-address {
  color: #168690;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#medessa-city-choice .mc-card--green .mc-location:hover .mc-city,
#medessa-city-choice .mc-card--green .mc-location:hover .mc-address {
  color: #5d9623;
}
#medessa-city-choice .mc-location:focus-visible,
#medessa-city-choice .mc-phone:focus-visible {
  outline: 3px solid var(--mc-teal);
  outline-offset: 3px;
}
#medessa-city-choice .mc-phone {
  display: flex;
  align-items: center;
  min-height: 24px;
  margin: 0;
  color: #168690;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 750;
  text-decoration: none;
  overflow-wrap: anywhere;
}
#medessa-city-choice .mc-card--green .mc-phone {
  color: #578f1b;
}
#medessa-city-choice .mc-phone:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
#medessa-city-choice .mc-link span {
  margin-inline-start: .35em;
}

@media (max-width: 599px) {
  #medessa-city-choice {
    margin-block: var(--md-card-gap);
  }

  #medessa-city-choice .mc-grid {
    gap: var(--md-card-gap);
  }

  #medessa-city-choice .mc-card {
    flex-direction: column;
    align-items: center;
    gap: 0;
    min-height: 0;
    padding: 9px 6px;
    border-radius: 24px;
    text-align: center;
  }

  #medessa-city-choice .mc-symbol {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    margin-bottom: 4px;
  }

  #medessa-city-choice .mc-info {
    flex: none;
    width: 100%;
  }

  #medessa-city-choice .mc-city {
    font-size: clamp(15px, 4.2vw, 20px);
    line-height: 1.15;
  }

  #medessa-city-choice :is(.mc-address, .mc-phone) {
    font-size: clamp(11px, 3.4vw, 15px);
    line-height: 1.22;
  }

  #medessa-city-choice .mc-phone {
    justify-content: center;
  }

  #medessa-city-choice .mc-mri {
    font-size: 11px;
    line-height: 1.2;
  }

  #medessa-city-choice .mc-link {
    min-height: 34px;
    margin: 5px 0 0;
    padding: 4px 12px;
  }
}

@media (max-width: 520px) {
  #medessa-city-choice .mc-symbol svg {
    width: 19px;
    height: 19px;
  }

  #medessa-city-choice .mc-link {
    font-size: 12px;
  }
}

/* Desktop and tablet: completely hidden */
#medessa-mobile-quicknav,
#medessa-mobile-quicknav * {box-sizing:border-box}
#medessa-mobile-quicknav {display:none}

@media (max-width:599px) {
  #medessa-mobile-quicknav {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    width:calc(100% - 20px);
    max-width:1160px;
    margin:-13px auto 26px;
    padding:0 10px;
    font-family:inherit;
  }
  #medessa-mobile-quicknav .mq-link {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    min-width:0;
    min-height:43px;
    padding:8px 9px;
    border:1.5px solid #b7e4e6;
    border-radius:999px;
    color:#168e99;
    background:#fff;
    text-align:center;
    text-decoration:none;
    font-size:13px;
    line-height:1.2;
    font-weight:800;
    box-shadow:0 2px 7px rgba(29,71,70,.045);
    transition:background-color .15s ease,border-color .15s ease;
  }
  #medessa-mobile-quicknav .mq-link--price {
    border-color:#cce5b5;
    color:#679c25;
  }
  #medessa-mobile-quicknav .mq-link--contacts {
    min-height:43px;
    border-color:#b7e4e6;
    color:#168e99;
  }
  #medessa-mobile-quicknav .mq-link svg {
    display:block;
    flex:0 0 17px;
    width:17px;
    height:17px;
    stroke:currentColor;
  }
  #medessa-mobile-quicknav .mq-link--contacts svg:last-child {
    width:15px;
    height:15px;
    flex-basis:15px;
  }
  #medessa-mobile-quicknav .mq-link--contacts:hover {background:#ecf9f9;border-color:#1da6b0}
  #medessa-mobile-quicknav .mq-link--price:hover {background:#f4f9e9;border-color:#8cc63f}
  #medessa-mobile-quicknav .mq-link:focus-visible {outline:3px solid #293e41;outline-offset:3px}
}
@media (max-width:380px) {
  #medessa-mobile-quicknav .mq-link {font-size:12px;gap:5px;padding:8px 5px}
}
@media (prefers-reduced-motion:reduce) {
  #medessa-mobile-quicknav .mq-link {transition:none}
}

@media (max-width: 599px) {
  .medessa-home-main #medessa-mobile-quicknav {
    width: 100%;
    padding: 0;
    margin: 6px auto 0;
    gap: var(--md-card-gap);
  }
  .medessa-home-main #medessa-mobile-quicknav .mq-link { border-radius: 24px; }
  .medessa-home-main .medessa-home-hero__copy > .medessa-mobile-logo { margin: 0 auto 3px; }
  .medessa-home-main .medessa-home-hero__copy > h1.medessa-home-hero__title { margin-block-start: 0; }
}
.medessa-mobile-logo img { display: block; width: 100%; }
#medessa-city-choice p:empty { display: none; }
#medessa-city-choice .mc-card > p:has(> .mc-link) { margin: 0; }
