.contacts {
  --contacts-bg: #f7f9f4;
  --contacts-forest: #103e36;
  --contacts-green: #759b78;
  --contacts-mint: #e9f1e7;
  --contacts-text: #4f6864;
  --contacts-muted: #6d8580;
  --contacts-card: #fff;
  --contacts-border: rgba(16, 62, 54, .08);
  --contacts-shadow: 0 18px 48px rgba(24, 61, 44, .07);
  position: relative;
  isolation: isolate;
  overflow: visible;
  margin-top: 100px;
  padding: clamp(112px, 10vw, 144px) 0 clamp(88px, 8vw, 116px);
  color: var(--contacts-forest);
  background: var(--contacts-bg);
  scroll-margin-top: calc(var(--site-nav-height, 88px) + 24px);
}

/* Белый зазор между секциями мягко перетекает в фон контактов. */
.contacts::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: -100px;
  right: 0;
  left: 0;
  height: 100px;
  pointer-events: none;
  background: linear-gradient(to bottom, #fff 0%, #fff 28%, rgba(255, 255, 255, .7) 65%, rgba(247, 249, 244, .98) 100%);
}

/* Фон и декоративная заливка мягко уходят в белый перед волной футера. */
.contacts::after {
  content: '';
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: -1px;
  left: 0;
  height: clamp(160px, 17vw, 260px);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, .35) 30%, rgba(255, 255, 255, .88) 75%, #fff);
  pointer-events: none;
}

.contacts__wash {
  position: absolute;
  z-index: 0;
  inset: 0;
  transform: translateY(14px);
  pointer-events: none;
}
.contacts__wash svg { display: block; width: 100%; height: 100%; overflow: visible; }
.contacts__inner {
  position: relative;
  z-index: 1;
  margin: 0 auto;
}
.contacts__grid {
  display: grid;
  grid-template-columns: minmax(300px, .38fr) minmax(0, .62fr);
  gap: clamp(34px, 3.2vw, 52px);
  align-items: start;
}
.contacts__copy { position: relative; z-index: 2; padding-top: 2px; }
.contacts__badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 47px;
  margin-bottom: clamp(26px, 2.2vw, 34px);
  padding: 5px 20px 5px 6px;
  border-radius: 100px;
  color: #386b58;
  background: rgba(232, 241, 229, .84);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
}
.contacts__badge-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  color: #27705c;
  background: #dcebdc;
}
.contacts__badge-icon svg { width: 22px; height: 22px; }
.contacts__title {
  max-width: 520px;
  margin: 0 0 26px;
  color: var(--contacts-forest);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(56px, 4.4vw, 70px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: .94;
}
.contacts__title em { color: var(--contacts-green); font-weight: 500; }
.contacts__lead {
  max-width: 500px;
  margin: 0 0 30px;
  color: var(--contacts-text);
  font-size: clamp(16px, 1.22vw, 18px);
  line-height: 1.48;
}
.contacts__details { display: grid; gap: 10px; max-width: 560px; }
.contacts__detail {
  display: flex;
  align-items: center;
  min-height: 77px;
  gap: 15px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 25px;
  color: inherit;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 9px 25px rgba(31, 78, 56, .035);
  text-decoration: none;
  transition: background-color .24s ease, box-shadow .24s ease, transform .24s ease;
}
.contacts__detail[href]:hover { background: #fff; box-shadow: 0 12px 28px rgba(31, 78, 56, .08); transform: translateY(-1px); }
.contacts__detail:focus-visible,
.contacts__route:focus-visible,
.contacts__map-link:focus-visible,
.contacts__quick-actions a:focus-visible { outline: 3px solid rgba(90, 143, 105, .48); outline-offset: 3px; }
.contacts__detail--static { cursor: default; }
.contacts__detail-icon {
  display: grid;
  place-items: center;
  flex: 0 0 45px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  color: #17634f;
  background: var(--contacts-mint);
}
.contacts__detail-icon svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.contacts__detail-content { display: grid; min-width: 0; gap: 3px; }
.contacts__detail-content > span { color: #83a098; font-size: 13px; line-height: 1.15; }
.contacts__detail-content strong { overflow-wrap: anywhere; color: var(--contacts-forest); font-size: 16px; font-weight: 600; line-height: 1.25; }
.contacts__detail-content small { color: var(--contacts-muted); font-size: 12px; line-height: 1.25; }
.contacts__detail-arrow { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; margin-left: auto; border-radius: 50%; color: #2d735d; background: #eff6ef; transition: background-color .22s ease, transform .22s ease; }
.contacts__detail-arrow .ui-arrow { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.contacts__detail[href]:hover .contacts__detail-arrow { background: #dfeee2; transform: translateX(2px); }
.contacts__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 21px; margin-top: 28px; }
.contacts__cta {
  justify-content: space-between;
  width: min(100%, 330px);
  min-height: 62px;
  padding: 7px 9px 7px 17px;
  font-size: 14px;
  letter-spacing: .01em;
}
.contacts__cta-icon { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; color: #d7e9c8; }
.contacts__cta-icon svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.contacts__cta-arrow { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; color: #fff; background: rgba(115, 164, 126, .45); transition: background-color .22s ease, transform .22s ease; }
.contacts__cta-arrow .ui-arrow { width: 23px; height: 23px; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.contacts__cta:hover .contacts__cta-arrow { background: rgba(144, 185, 144, .6); transform: translateX(2px); }
.contacts__route { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: #356f5a; font-size: 14px; font-weight: 600; text-decoration: none; }
.contacts__route:hover { color: #124d40; }
.contacts__route-icon { display: grid; place-items: center; flex: 0 0 39px; width: 39px; height: 39px; border-radius: 50%; color: #28765d; background: #e6f0e5; }
.contacts__route-icon svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.contacts__signature { margin: 32px 0 0 34%; color: #719b77; font-family: 'Caveat', cursive; font-size: clamp(22px, 2vw, 30px); font-weight: 600; line-height: .98; transform: rotate(-5deg); }
.contacts__signature span { display: inline-block; margin-left: 12px; font-family: Georgia, serif; font-size: 35px; font-weight: 400; transform: rotate(6deg); }

.contacts__visual { min-width: 0; }
.contacts__map-card {
  position: relative;
  min-height: clamp(390px, 33vw, 500px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 42px;
  background: #eef3eb;
  box-shadow: var(--contacts-shadow);
}
.contacts__map { position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity .3s ease; }
.contacts__map iframe { display: block; width: 100%; height: 100%; border: 0; }
.contacts__map-card[data-map-state="ready"] .contacts__map { opacity: 1; }
.contacts__map-fallback {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  padding: 34px;
  overflow: hidden;
  color: var(--contacts-text);
  text-align: center;
  background:
    radial-gradient(circle at 18% 20%, rgba(199, 224, 192, .8), transparent 28%),
    radial-gradient(circle at 84% 76%, rgba(211, 231, 207, .84), transparent 30%),
    linear-gradient(135deg, #f1f6ef, #e7f0e4);
}
.contacts__map-fallback::before,
.contacts__map-fallback::after { content: ''; position: absolute; pointer-events: none; border: 1px solid rgba(103, 151, 111, .14); border-radius: 46% 54% 58% 42%; transform: rotate(-13deg); }
.contacts__map-fallback::before { width: 72%; height: 54%; top: 13%; left: -11%; }
.contacts__map-fallback::after { width: 62%; height: 48%; right: -9%; bottom: 7%; transform: rotate(17deg); }
.contacts__map-card[data-map-state="ready"] .contacts__map-fallback { display: none; }
.contacts__map-fallback-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; color: #17614d; background: #dcebd9; }
.contacts__map-fallback-icon svg { width: 35px; height: 35px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.contacts__map-fallback p { position: relative; z-index: 1; max-width: 350px; margin: 0; color: #456b61; font-size: 16px; line-height: 1.45; }
.contacts__map-link { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; min-height: 47px; padding: 0 18px; border-radius: 100px; color: #fff; background: var(--contacts-forest); font-size: 14px; font-weight: 600; text-decoration: none; box-shadow: 0 10px 24px rgba(16, 62, 54, .16); transition: transform .22s ease, background-color .22s ease; }
.contacts__map-link .ui-arrow { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.contacts__map-link:hover { background: #1b5b4c; transform: translateY(-1px); }
.contacts__map-retry { position: relative; z-index: 1; min-height: 42px; padding: 0 17px; border: 1px solid var(--contacts-border); border-radius: 100px; color: var(--contacts-forest); background: rgba(255, 255, 255, .7); font-size: 13px; font-weight: 600; }
.contacts__map-credit { position: absolute; z-index: 4; right: 16px; bottom: 12px; padding: 4px 8px; border-radius: 7px; color: #6f8580; background: rgba(255, 255, 255, .82); font-size: 10px; }
.contacts__marker { position: relative; display: flex; align-items: center; gap: 10px; transform: translate(-18px, -100%); white-space: nowrap; pointer-events: none; }
.contacts__marker-pin { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50% 50% 50% 8px; color: #fff; background: #135b4d; box-shadow: 0 13px 23px rgba(20, 76, 59, .26); transform: rotate(-45deg); }
.contacts__marker-pin svg { width: 29px; height: 29px; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transform: rotate(45deg); }
.contacts__marker-label { padding: 11px 17px; border-radius: 18px; color: #15453d; background: rgba(255, 255, 255, .96); box-shadow: 0 10px 28px rgba(22, 66, 49, .12); font-size: 15px; font-weight: 600; line-height: 1.12; }
.contacts__find-card { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); min-height: 292px; margin-top: 18px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .72); border-radius: 39px; background: rgba(255, 255, 255, .86); box-shadow: var(--contacts-shadow); }
.contacts__entrance { min-height: 292px; margin: 0; overflow: hidden; }
.contacts__entrance img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 66% 59%; }
.contacts__find-copy { display: flex; flex-direction: column; padding: clamp(25px, 2.7vw, 40px) clamp(23px, 2.7vw, 40px) 24px; }
.contacts__find-copy h3 { margin: 0 0 13px; color: var(--contacts-forest); font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(28px, 2.4vw, 39px); font-weight: 600; letter-spacing: -.045em; line-height: .98; }
.contacts__find-copy p { margin: 0; color: var(--contacts-text); font-size: 14px; line-height: 1.45; }
.contacts__quick-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 22px; }
.contacts__quick-actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 5px 15px 5px 7px;
  border: 1px solid rgba(79, 126, 92, .16);
  border-radius: 100px;
  color: #2e6754;
  background: #f1f7ef;
  box-shadow: 0 7px 16px rgba(31, 78, 56, .06);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .22s ease, border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.contacts__quick-actions a[data-route-action] { flex: 1 1 180px; }
.contacts__quick-actions a[data-contact-phone-link] { flex: 1 1 135px; }
.contacts__quick-actions a:hover { border-color: rgba(79, 126, 92, .28); background: #e7f2e5; box-shadow: 0 10px 20px rgba(31, 78, 56, .1); transform: translateY(-1px); }
.contacts__quick-actions a > span:first-child { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; color: #27745c; background: #dcecdc; }
.contacts__quick-actions svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.contacts__botanicals { position: absolute; z-index: 0; inset: 0; pointer-events: none; }
.contacts__branch { position: absolute; width: 230px; height: auto; opacity: .96; pointer-events: none; user-select: none; }
.contacts__branch--right { top: -105px; right: -48px; width: 270px; transform: rotate(-7deg) scaleX(-1); }

@media (max-width: 1180px) {
  .contacts__grid { grid-template-columns: minmax(270px, .38fr) minmax(0, .62fr); gap: 30px; }
  .contacts__title { font-size: clamp(52px, 5.3vw, 64px); }
  .contacts__find-card { grid-template-columns: minmax(0, 1fr); }
  .contacts__entrance { min-height: 230px; max-height: 280px; }
  .contacts__find-copy { min-height: 240px; }
}
@media (max-width: 900px) {
  .contacts__grid { grid-template-columns: 1fr; gap: 48px; }
  .contacts__copy { max-width: 650px; }
  .contacts__title { font-size: clamp(58px, 8vw, 76px); }
  .contacts__lead { max-width: 570px; }
  .contacts__details { max-width: 620px; }
  .contacts__visual { width: 100%; }
  .contacts__map-card { min-height: 450px; }
  .contacts__find-card { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
  .contacts__entrance { min-height: 275px; max-height: none; }
  .contacts__find-copy { min-height: 275px; }
}
@media (max-width: 600px) {
  .contacts {
    padding: 82px 0 74px;
    background: #fff;
  }
  .contacts::before,
  .contacts::after,
  .contacts__wash,
  .contacts__botanicals { display: none; }
  .contacts__grid { gap: 38px; }
  .contacts__badge { margin-bottom: 25px; font-size: 13px; }
  .contacts__badge-icon { width: 34px; height: 34px; }
  .contacts__title { margin-bottom: 22px; font-size: clamp(44px, 12.4vw, 58px); line-height: .96; }
  .contacts__lead { margin-bottom: 25px; font-size: 15px; }
  .contacts__detail { min-height: 72px; padding: 10px 13px; gap: 11px; border-radius: 21px; }
  .contacts__detail-icon { flex-basis: 40px; width: 40px; height: 40px; }
  .contacts__detail-icon svg { width: 20px; height: 20px; }
  .contacts__detail-content > span { font-size: 11px; }
  .contacts__detail-content strong { font-size: 14px; }
  .contacts__detail-content small { font-size: 10px; }
  .contacts__detail-arrow { flex-basis: 34px; width: 34px; height: 34px; font-size: 23px; }
  .contacts__actions { display: grid; gap: 11px; margin-top: 23px; }
  .contacts__cta { width: 100%; min-height: 62px; }
  .contacts__route { justify-content: center; }
  .contacts__signature { display: none; }
  .contacts__map-card { min-height: 350px; border-radius: 27px; }
  .contacts__map-fallback { padding: 26px 20px; }
  .contacts__map-fallback p { max-width: 280px; font-size: 14px; }
  .contacts__marker { transform: translate(-11px, -100%) scale(.78); transform-origin: right bottom; }
  .contacts__find-card { display: block; margin-top: 14px; border-radius: 27px; }
  .contacts__entrance { height: 230px; min-height: 0; }
  .contacts__find-copy { min-height: 0; padding: 26px 23px 25px; }
  .contacts__find-copy h3 { font-size: 32px; }
  .contacts__quick-actions { margin-top: 20px; padding-top: 0; }
  .contacts__branch { display: none; }
}
@media (max-width: 380px) {
  .contacts__title { font-size: 43px; }
  .contacts__detail-content strong { font-size: 13px; }
  .contacts__detail-content small { max-width: 170px; }
}
@media (prefers-reduced-motion: reduce) {
  .contacts__detail,
  .contacts__map,
  .contacts__map-link { transition: none; }
}
