/* Post-migration additions on top of the original theme CSS.
   Kept deliberately tiny: the wiro theme owns the design. */
:focus-visible { outline: 2px solid #b8860b; outline-offset: 2px; }
.wpcf7-response-output { display: none; margin-top: 10px; font-weight: 600; }
input[name="website"] { position: absolute !important; left: -9999px !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* --- About page typography (presentation only; text untouched) ---------
   The theme leaves .about-info__text almost unstyled: headings hug the
   paragraphs, the measure runs the full viewport. Scoped to the about
   template (EN /en/about/ and RU /ru/o-nas/ share it). */
.page-template-template-about .about-info__text {
  max-width: 820px;
  font-size: 17px;
  line-height: 1.7;
  color: #2c3e50;
}
.page-template-template-about .about-info__text h2 {
  color: #172e49;
  font-size: 1.55rem;
  line-height: 1.3;
  margin: 1.7em 0 0.6em;
}
.page-template-template-about .about-info__text h2:first-child {
  margin-top: 0.4em;
}
.page-template-template-about .about-info__text p {
  margin: 0 0 1.05em;
}
.page-template-template-about .about-info__text strong {
  color: #172e49;
}
.page-template-template-about .about-info__text ul {
  margin: 0.4em 0 1.3em;
  padding-left: 1.4em;
}
.page-template-template-about .about-info__text li {
  margin: 0.45em 0;
  padding-left: 0.2em;
}
.page-template-template-about .about-info__text li::marker {
  color: #b8860b;
}
.page-template-template-about .about-page-head {
  margin-bottom: 1.6em;
}
.page-template-template-about .about-info__text ul {
  list-style: disc;
}

/* --- Home SEO text block (.custom__ed): same rhythm treatment as About --- */
.custom__ed {
  max-width: 860px;
  font-size: 17px;
  line-height: 1.7;
  color: #2c3e50;
}
.custom__ed h2 {
  color: #172e49;
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 1.7em 0 0.6em;
}
.custom__ed h3 {
  color: #172e49;
  font-size: 1.2rem;
  margin: 1.4em 0 0.45em;
}
.custom__ed p { margin: 0 0 1.05em; }
.custom__ed strong { color: #172e49; }
.custom__ed ul { list-style: disc; margin: 0.4em 0 1.3em; padding-left: 1.4em; }
.custom__ed li { margin: 0.45em 0; }
.custom__ed li::marker { color: #b8860b; }
.custom__ed a { color: #1e6091; }

/* Requisites cards (.hz-p4-nap): long emails must wrap inside the card */
.hz-p4-grid li { min-width: 0; }
.hz-p4-grid li, .hz-p4-grid a {
  overflow-wrap: anywhere;
  word-break: break-word;
}


/* --- Wide tables on mobile: compact booking-style listing.
   Roles are set at build: title | price | spec | note. --- */
@media (max-width: 820px) {
  table.hz-stack-table,
  table.hz-stack-table tbody { display: block; width: 100%; }
  table.hz-stack-table tr.hz-th-row { display: none !important; }
  table.hz-stack-table tr {
    display: grid !important;
    grid-template-columns: 1fr auto;
    gap: 1px 12px;
    padding: 12px 2px !important;
    border: 0 !important;
    border-bottom: 1px solid #e6ebf1 !important;
    background: transparent !important;
  }
  table.hz-stack-table tr:last-child { border-bottom: 0 !important; }
  table.hz-stack-table td, table.hz-stack-table tr > th {
    display: block;
    padding: 1px 0 !important;
    border: 0 !important;
    text-align: left !important;
    line-height: 1.45;
    background: transparent !important;
  }
  table.hz-stack-table [data-role="title"] {
    grid-column: 1; grid-row: 1;
    font-weight: 700; font-size: 16px; color: #172e49;
  }
  table.hz-stack-table [data-role="price"] {
    grid-column: 2; grid-row: 1;
    font-weight: 700; font-size: 15px; color: #172e49;
    text-align: right !important; align-self: start; max-width: 60vw;
  }
  table.hz-stack-table [data-role="spec"],
  table.hz-stack-table [data-role="note"] {
    grid-column: 1 / -1;
    font-size: 13.5px; color: #5b6b7b;
  }
  table.hz-stack-table [data-role="spec"] {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0 6px;
    align-items: baseline;
  }
  table.hz-stack-table [data-role="spec"] > * { margin: 0; }
  table.hz-stack-table [data-role="spec"]::before {
    content: attr(data-label) ": ";
    font-weight: 600; color: #44546a;
  }
  table.hz-stack-table [data-role="note"] { margin-top: 2px; }
}

/* Mobile: bare-URL link texts and long strings wrap instead of overflowing */
@media (max-width: 820px) {
  main a, main p, main li, main td {
    overflow-wrap: anywhere;
  }
}

/* --- New lead form (hzf) --- */
.hzf { display: block; }
.hzf-sub { font-size: 14px; color: #5b6b7b; margin: 4px 0 14px; line-height: 1.5; }
.hzf-lab { display: block; font-weight: 600; font-size: 14px; color: #172e49; margin: 12px 0 6px; }
.hzf-date, .hzf-phone {
  width: 100%; padding: 12px 14px; border: 1px solid #d7dee6; border-radius: 10px;
  font: inherit; font-size: 15px; background: #fff; color: #172e49;
}
.hzf-date:focus, .hzf-phone:focus { outline: none; border-color: #277e9c; box-shadow: 0 0 0 3px rgba(39,126,156,.15); }
.hzf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hzf-chip {
  padding: 8px 14px; border: 1px solid #d7dee6; border-radius: 999px; background: #fff;
  font: inherit; font-size: 14px; color: #172e49; cursor: pointer;
}
.hzf-chip.hzf-on { background: #172e49; color: #fff; border-color: #172e49; }
.hzf-chan { display: flex; gap: 8px; margin: 12px 0 6px; }
.hzf-chan-opt {
  flex: 1; text-align: center; padding: 8px 10px; border: 1px solid #d7dee6; border-radius: 10px;
  font-size: 14px; font-weight: 600; color: #5b6b7b; cursor: pointer;
}
.hzf-chan-opt input { position: absolute; opacity: 0; }
.hzf-chan-active { background: #eef6f9; border-color: #277e9c; color: #172e49; }
.hzf-hp { position: absolute !important; left: -9999px !important; }
.hzf-btn {
  width: 100%; margin-top: 14px; padding: 14px 18px; border: 0; border-radius: 10px;
  background: #1f6fb0; color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
}
.hzf-btn:hover { background: #277e9c; }
.hzf-note { font-size: 13px; color: #7a8896; text-align: center; margin: 10px 0 2px; }
.hzf-wa { display: block; text-align: center; font-size: 14px; font-weight: 600; color: #1f6fb0; margin-top: 6px; text-decoration: none; }
.hzf-status { font-weight: 600; margin: 10px 0 0; }
.hzf-status.ok { color: #2d6a4f; } .hzf-status.err { color: #c53030; }
.hzf-badges { display: flex; gap: 14px; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid #e6ebf1; }
.hzf-badges span { font-size: 12.5px; font-weight: 600; color: #44546a; line-height: 1.35; }

/* hzf card chrome (self-contained; no theme classes) */
.hzf-card {
  background: #fff;
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 10px 32px rgba(10, 30, 50, 0.18);
  box-sizing: border-box;
}
.hzf-card-hero {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  z-index: 6;
}
@media (max-width: 1100px) {
  .hzf-card-hero {
    position: static;
    transform: none;
    width: auto;
    margin: 18px 16px 0;
  }
}
.hzf-card-side { width: 100%; }
.hzf-title { margin: 0 0 4px; font-size: 22px; font-weight: 800; color: #172e49; letter-spacing: .01em; }
.hzf-ctx { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: #277e9c; }

