/* --- Overrides / hotfixes for Beget static build --- */

.map-card-full{
  overflow:hidden;
}

.map-clip{
  width:100%;
  height:520px;
  background:#f3f4f6;
  border-radius:40px;
  overflow:hidden;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.75);
}
.map-clip iframe{
  width:100%;
  height:100%;
  border:0;
  display:block;
}

.so-modal-overlay{
  position:fixed;
  inset:0;
  z-index:99998;
  background:rgba(2,6,23,.48);
  backdrop-filter:blur(10px);
  display:none;
  align-items:center;
  justify-content:center;
  padding:16px;
}
.so-modal{
  width:min(760px,96vw);
  max-height:92vh;
  overflow:auto;
  background:rgba(249,247,244,.94);
  border:1px solid rgba(255,255,255,.92);
  border-radius:32px;
  box-shadow:0 35px 90px rgba(0,0,0,.22);
}
.so-modal header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:22px 22px 8px;
}
.so-kicker{
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  text-transform:uppercase;
  letter-spacing:.16em;
  color:#94a3b8;
  font-size:12px;
  font-weight:800;
  margin-bottom:6px;
}
.so-modal header h3{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  font-weight:900;
  font-size:28px;
  letter-spacing:-.03em;
  color:#0f172a;
}
.so-modal header button{
  border:0;
  background:rgba(255,255,255,.75);
  width:42px;
  height:42px;
  border-radius:14px;
  font-size:26px;
  line-height:1;
  cursor:pointer;
  color:#334155;
  box-shadow:0 10px 20px rgba(15,23,42,.08);
}
.so-modal .body{padding:10px 22px 22px}
.so-modal .row{display:grid;grid-template-columns:1fr;gap:14px}
.so-modal label{
  display:block;
  font-weight:800;
  color:#94a3b8;
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  margin:0 0 8px;
}
.so-modal input,.so-modal textarea{
  width:100%;
  padding:18px 18px;
  border-radius:22px;
  border:1.5px solid rgba(15,23,42,.08);
  background:rgba(255,255,255,.86);
  outline:none;
  font-size:17px;
  color:#1e293b;
  box-shadow:0 8px 20px rgba(15,23,42,.04), inset 0 0 0 1px rgba(255,255,255,.6);
}
.so-modal input:focus,.so-modal textarea:focus{
  border-color:rgba(16,185,129,.55);
  box-shadow:0 0 0 4px rgba(16,185,129,.12);
}
.so-modal textarea{min-height:96px;resize:vertical}
.so-modal .actions{display:grid;grid-template-columns:minmax(0,1fr) 140px 140px;gap:12px;flex-wrap:wrap;margin-top:16px}
.so-modal .btn{
  padding:18px 20px;
  border-radius:22px;
  border:1px solid rgba(15,23,42,.08);
  background:rgba(255,255,255,.9);
  font-weight:900;
  cursor:pointer;
  font-size:17px;
  color:#334155;
  box-shadow:0 10px 24px rgba(15,23,42,.06);
}
.so-modal .btn-primary{
  background:linear-gradient(180deg,#e6d17a,#d8bf5f);
  border:0;
  color:#0b1220;
}
.so-modal .btn-primary:disabled{opacity:.45;cursor:not-allowed}
.so-modal .hint{margin-top:14px;color:#475569;font-weight:800;font-size:15px}
.so-consent-row{
  display:flex !important;
  gap:12px;
  align-items:flex-start;
  margin-top:16px;
  padding:14px 16px;
  border-radius:18px;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(15,23,42,.06);
}
.so-consent-row input{
  width:20px;
  height:20px;
  margin:1px 0 0;
  flex:0 0 20px;
}
.so-consent-row span{
  font-size:14px;
  line-height:1.45;
  color:#475569;
  font-weight:700;
  text-transform:none;
  letter-spacing:0;
}
.so-consent-row a{color:#0f766e;font-weight:800;text-decoration:none}
.so-consent-row a:hover{text-decoration:underline}

.hide-by-text{display:none !important}

#successToast{
  position:fixed;
  left:50%;
  top:18px;
  transform:translateX(-50%);
  z-index:99999;
  background:rgba(255,255,255,0.9);
  backdrop-filter:blur(14px);
  border:1px solid rgba(255,255,255,0.95);
  box-shadow:0 20px 60px rgba(0,0,0,0.18);
  border-radius:18px;
  padding:14px 18px;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:#0f172a;
  max-width:92vw;
}
#successToast strong{display:block;font-weight:800;margin-bottom:2px}
#successToast small{opacity:.82;font-weight:600}

#cookieBanner{position:fixed;left:16px;right:16px;bottom:16px;z-index:9999}
#cookieBanner .cookie-inner{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  border-radius:20px;
  background:rgba(255,255,255,0.88);
  backdrop-filter:blur(14px);
  box-shadow:0 18px 60px rgba(0,0,0,0.18);
}
#cookieBanner .cookie-text{font-size:14px;color:#111827;line-height:1.45}
#cookieBanner .cookie-text a{color:#0b6;font-weight:800;text-decoration:none}
#cookieBanner .cookie-btn{border:0;padding:11px 16px;border-radius:14px;font-weight:900;cursor:pointer;background:#111827;color:#fff}

.tel-inline{margin-left:12px;font-weight:900;color:#111827;text-decoration:none;opacity:.92;white-space:nowrap}
.tel-inline:hover{opacity:1;text-decoration:underline}

#ratingBadge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:12px 0 18px;
  padding:10px 16px;
  border-radius:999px;
  background:rgba(255,255,255,.76);
  border:1px solid rgba(15,23,42,.08);
  box-shadow:0 12px 30px rgba(15,23,42,.08);
  font-weight:900;
  color:#0f172a;
}
#ratingBadge .ratingBadge-num{font-size:20px;line-height:1}
#ratingBadge .ratingBadge-stars{font-size:22px;line-height:1;color:#eab308;letter-spacing:.04em}

.legal-strip{margin-top:24px;padding:0 16px 20px}
.legal-strip__inner{
  display:flex;
  gap:16px;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  padding:16px 18px;
  border-radius:22px;
  background:rgba(255,255,255,.74);
  border:1px solid rgba(15,23,42,.06);
  box-shadow:0 12px 30px rgba(15,23,42,.06);
}
.legal-strip__left,.legal-strip__right{display:flex;gap:12px 18px;align-items:center;flex-wrap:wrap}
.legal-strip__left span,.legal-strip__left a,.legal-strip__right a{font-size:14px;color:#475569;text-decoration:none;font-weight:700}
.legal-strip__left a,.legal-strip__right a:hover{color:#0f172a}

input.is-invalid-phone{border-color:rgba(239,68,68,.45) !important;box-shadow:0 0 0 4px rgba(239,68,68,.08) !important}
input.is-valid-phone{border-color:rgba(16,185,129,.45)}

@media (max-width: 900px){
  .map-clip{height:420px;border-radius:30px}
  .so-modal .actions{grid-template-columns:1fr 1fr 1fr}
}

@media (max-width: 640px){
  .map-clip{height:340px;border-radius:26px}
  .so-modal{border-radius:28px}
  .so-modal header{padding:18px 18px 8px}
  .so-modal .body{padding:10px 18px 18px}
  .so-modal header h3{font-size:24px}
  .so-modal .actions{grid-template-columns:1fr;}
  #cookieBanner .cookie-inner{align-items:flex-start;flex-direction:column}
  .legal-strip{padding:0 12px 16px}
  .legal-strip__inner{padding:14px 16px}
}

/* hide old Viber footer button */
footer .inline-flex.items-center.justify-center.gap-2:nth-of-type(3),
footer button:nth-of-type(3),
footer a:nth-of-type(3) {
  display: none !important;
}

/* phone field visual error only after interaction */
input.is-invalid-phone {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.18) !important;
}

/* keep success toast above modal */
#successToast,
#success-toast,
#oaiSuccessToast {
  z-index: 99999 !important;
}

/* footer online pill centering */
footer .text-center.lg\:text-right .flex.items-center.justify-center.lg\:justify-end.gap-3.mt-6 {
  justify-content: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: fit-content !important;
}

@media (min-width: 1024px) {
  footer .relative.z-10.flex.flex-col.items-start.lg\:items-end.gap-8.w-full.lg\:w-auto {
    align-items: center !important;
  }

  footer .text-center.lg\:text-right {
    text-align: center !important;
  }
}

/* ===== MOBILE HOTFIX ===== */
@media (max-width: 768px) {
  h1 {
    font-size: clamp(42px, 11vw, 70px) !important;
    line-height: 0.95 !important;
    letter-spacing: -0.02em !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  #ratingBadge {
    position: static !important;
    transform: none !important;
    margin: 12px 0 24px auto !important;
    z-index: 1 !important;
  }

  footer .container > div:first-child {
    padding: 28px 20px !important;
    border-radius: 34px !important;
  }

  footer .relative.z-10.flex.flex-col.items-start.lg\:items-end.gap-8.w-full.lg\:w-auto {
    width: 100% !important;
    align-items: center !important;
  }

  footer .text-center.lg\:text-right {
    text-align: center !important;
    width: 100% !important;
  }

  footer a[href^="tel:"] {
    font-size: clamp(1.5rem, 6.5vw, 2.25rem) !important;
    letter-spacing: -0.03em !important;
    white-space: nowrap !important;
    word-break: normal !important;
    line-height: 1.1 !important;
  }

  footer .text-center.lg\:text-right .flex.items-center.justify-center.lg\:justify-end.gap-3.mt-6 {
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: fit-content !important;
  }
}

input.is-invalid-phone {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.18) !important;
}

/* ===== FINAL MOBILE / HERO HOTFIX ===== */

/* hero company line: allow newline from JS text */
.hero-company-line,
.oai-company-line,
[data-company-line] {
  white-space: pre-line !important;
}

/* footer online pill lower */
footer .text-center.lg\:text-right .flex.items-center.justify-center.lg\:justify-end.gap-3.mt-6,
footer .flex.items-center.justify-center.lg\:justify-end.gap-3.mt-6 {
  margin-top: 22px !important;
}

@media (max-width: 768px) {
  /* rating must not overlap arrows / buttons */
  #ratingBadge {
    position: static !important;
    display: inline-flex !important;
    margin: 10px 0 18px auto !important;
    transform: none !important;
    z-index: 1 !important;
  }

  /* extra spacing under map before reviews */
  .map-clip,
  iframe[src*="yandex"] {
    margin-bottom: 20px !important;
  }

  /* reviews heading + rating stack cleanly */
  h2[id*="review"],
  h2[class*="review"],
  h3[id*="review"],
  h3[class*="review"] {
    margin-bottom: 10px !important;
  }

  /* phone block a bit more balanced on mobile */
  footer .text-center.lg\:text-right .flex.items-center.justify-center.lg\:justify-end.gap-3.mt-6,
  footer .flex.items-center.justify-center.lg\:justify-end.gap-3.mt-6 {
    margin-top: 26px !important;
  }
}

/* ===== FINAL UX HOTFIX ===== */

/* footer online pill lower */
footer .text-center.lg\:text-right .flex.items-center.justify-center.lg\:justify-end.gap-3.mt-6,
footer .flex.items-center.justify-center.lg\:justify-end.gap-3.mt-6 {
  margin-top: 30px !important;
}

@media (max-width: 768px) {
  /* reviews header row: stack cleanly */
  .flex.justify-between.items-center.mb-16.px-4 {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 18px !important;
    margin-bottom: 28px !important;
  }

  .flex.justify-between.items-center.mb-16.px-4 > h2,
  .flex.justify-between.items-center.mb-16.px-4 > div:first-child {
    width: 100% !important;
  }

  .flex.justify-between.items-center.mb-16.px-4 > div:last-child {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
  }

  /* rating under heading, no overlap */
  #ratingBadge {
    position: static !important;
    display: inline-flex !important;
    margin: 8px 0 0 0 !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    z-index: 1 !important;
    order: -1 !important;
  }

  /* slider arrows stay below rating line */
  .flex.justify-between.items-center.mb-16.px-4 > div:last-child .inline-flex,
  .flex.justify-between.items-center.mb-16.px-4 > div:last-child button {
    position: static !important;
  }

  /* modal phone input visual */
  input[type="tel"], input[name*="phone" i] {
    letter-spacing: 0 !important;
  }

  /* company line wraps cleaner on mobile */
  p.text-lg.font-bold.text-\[\#759282\].uppercase.tracking-\[0\.3em\],
  .text-lg.font-bold.text-\[\#759282\].uppercase.tracking-\[0\.3em\] {
    max-width: 320px !important;
    line-height: 1.45 !important;
  }
}

/* ===== FINAL UX HOTFIX ===== */

/* lower bottom online pill */
footer .text-center.lg\:text-right .flex.items-center.justify-center.lg\:justify-end.gap-3.mt-6,
footer .flex.items-center.justify-center.lg\:justify-end.gap-3.mt-6 {
  margin-top: 38px !important;
}

/* mobile */
@media (max-width: 768px) {
  /* reviews header area */
  .flex.justify-between.items-center.mb-16.px-4 {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
  }

  .flex.justify-between.items-center.mb-16.px-4 > h2 {
    width: 100% !important;
    margin: 0 !important;
  }

  .flex.justify-between.items-center.mb-16.px-4 > div:last-child {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
  }

  /* rating goes below heading, never on top of text/buttons */
  #ratingBadge {
    position: static !important;
    display: inline-flex !important;
    align-self: flex-start !important;
    margin: 0 !important;
    transform: none !important;
    inset: auto !important;
    z-index: 1 !important;
    order: 1 !important;
  }

  /* slider arrows below rating */
  .flex.justify-between.items-center.mb-16.px-4 > div:last-child .inline-flex,
  .flex.justify-between.items-center.mb-16.px-4 > div:last-child > div {
    display: flex !important;
    gap: 12px !important;
  }

  /* hero company line wraps cleaner */
  p.text-lg.font-bold.text-\[\#759282\].uppercase.tracking-\[0\.3em\],
  .text-lg.font-bold.text-\[\#759282\].uppercase.tracking-\[0\.3em\] {
    max-width: 330px !important;
    line-height: 1.45 !important;
  }

  /* phone number in footer — one line, no wrapping */
  footer a[href^="tel:"] {
    font-size: clamp(1.5rem, 6.5vw, 2.25rem) !important;
    letter-spacing: -0.03em !important;
    white-space: nowrap !important;
    word-break: normal !important;
    line-height: 1.1 !important;
  }

  /* online pill in footer centered and lower */
  footer .text-center.lg\:text-right,
  footer .relative.z-10.flex.flex-col.items-start.lg\:items-end.gap-8.w-full.lg\:w-auto {
    width: 100% !important;
    text-align: center !important;
    align-items: center !important;
  }

  footer .text-center.lg\:text-right .flex.items-center.justify-center.lg\:justify-end.gap-3.mt-6,
  footer .flex.items-center.justify-center.lg\:justify-end.gap-3.mt-6 {
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 42px !important;
    width: fit-content !important;
  }
}


/* ===== LAST MOBILE FIX ===== */
@media (max-width: 768px) {
  /* reviews title/rating/arrows: full vertical stack */
  #ratingBadge {
    display: block !important;
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    width: fit-content !important;
    max-width: 100% !important;
    margin: 18px 0 18px 0 !important;
    z-index: 1 !important;
  }

  /* hide desktop placement wrappers influence */
  .flex.justify-between.items-center.mb-16.px-4 {
    display: block !important;
  }

  .flex.justify-between.items-center.mb-16.px-4 > * {
    float: none !important;
    clear: both !important;
  }

  /* arrows stay below rating */
  .flex.justify-between.items-center.mb-16.px-4 > div:last-child {
    display: flex !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    margin-top: 10px !important;
  }
}


/* =====================================================
   MOBILE ONE-LINE FIXES v5 — correct escaped selectors
   ===================================================== */

/* INN subtitle: kill huge letter-spacing and uppercase, fit on one line */
.tracking-\[0\.3em\] {
  letter-spacing: 0.015em !important;
  text-transform: none !important;
}
.text-\[\#759282\].uppercase {
  text-transform: none !important;
}

/* INN element specifically — small readable text */
p.text-lg.font-bold.text-\[\#759282\] {
  font-size: 12px !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.5 !important;
}

/* Phone number: one line on mobile */
a[href="tel:+79785511719"],
footer a[href="tel:+79785511719"] {
  white-space: nowrap !important;
  font-size: clamp(1.5rem, 6.5vw, 2.25rem) !important;
  letter-spacing: -0.03em !important;
  word-break: normal !important;
  display: block !important;
}

/* Rating badge — always a compact horizontal pill */
.oai-rating-badge {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  align-self: flex-start !important;
  width: auto !important;
  max-width: max-content !important;
  white-space: nowrap !important;
  flex-wrap: nowrap !important;
  padding: 6px 13px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  border: 1.5px solid #e5e7eb !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.07) !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  pointer-events: none !important;
  margin-top: 10px !important;
}


/* ПОЗВОНИТЬ button - proportional on mobile */
@media (max-width: 768px) {
  a[href="tel:+79785511719"].rounded-3xl.w-full {
    height: 3.5rem !important;
    font-size: 1.125rem !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* Ensure tel: links are tappable */
a[href^="tel:"] {
  pointer-events: auto !important;
  cursor: pointer !important;
  -webkit-tap-highlight-color: rgba(0,0,0,0.1) !important;
}

/* Hero spacing handled in bundle */


/* ── MAP: скрыть "© Яндекс Условия использования" ──────────────────────────
   Iframe вырастает на 42px вниз, копирайт уходит под overflow:hidden.
   Округлые углы и рамка контейнера остаются нетронутыми. */
.flex-1.h-\[550px\].rounded-\[3rem\].overflow-hidden > iframe {
  height: calc(100% + 42px) !important;
  margin-bottom: -42px !important;
}

/* Кнопка ПОЗВОНИТЬ — текст строго по центру */
a[href="tel:+79785511719"].rounded-3xl {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Hero: плашка не прилипает к верху на мобиле */
@media (max-width: 1023px) {
  .w-full.lg\:w-\[58\%\] {
    padding-top: 2rem !important;
  }
}

/* Плашка — отступ сверху на всех экранах */
.w-full.lg\:w-\[58\%\] {
  padding-top: 3rem !important;
}
