/* Desktop and mobile composition from the owner-provided references. */

body { background: var(--page); }
.site-header { grid-template-columns: max-content minmax(0, 1fr) max-content; gap: clamp(14px, 2vw, 28px); background: rgb(18 23 26 / 82%); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand__mark { display: none; }
.brand__name { font-size: 23px; letter-spacing: -.025em; line-height: 1; }
.brand__tagline { color: var(--muted); font-size: 9px; line-height: 1.2; }
.brand__copy { gap: 3px; }
.desktop-nav { gap: clamp(10px, 1vw, 18px); }
.desktop-nav a { font-size: 12px; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phones { gap: 2px; }
.header-phone { min-height: 19px; grid-template-columns: 15px max-content; gap: 4px; align-items: center; }
.header-phone .ui-icon { width: 14px; height: 14px; color: var(--accent); }
.header-phone__label { display: none; }
.header-phone__number { font-size: 12px; }
.header-cta { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 7px; padding-inline: 20px; }
.header-cta .ui-icon { width: 16px; height: 16px; }
.mobile-call { display: none; }

.hero { display: flex; min-height: clamp(630px, 56.2vw, 810px); flex-direction: column; justify-content: space-between; padding: calc(var(--shell-header-height) + 24px) 0 24px; }
.hero::before, .hero::after { display: none; }
/* Keep the complete desktop image between the header and the 94px contact rail. */
.hero__visual { position: absolute; inset: var(--shell-header-height) 0 94px; z-index: -1; overflow: hidden; background: #171d20; container-type: size; }
.hero__image-plane { position: absolute; top: 50%; right: 0; width: min(100cqw, 177.683cqh); aspect-ratio: 1672 / 941; transform: translateY(-50%); }
.hero__visual img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hero__visual::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(18 23 26 / 95%) 0%, rgb(18 23 26 / 80%) 25%, rgb(18 23 26 / 12%) 58%, transparent 100%), linear-gradient(0deg, #12171a 0%, transparent 27%); content: ""; }
.hero__script { position: absolute; top: 26%; left: 48%; z-index: 1; transform: rotate(-7deg); color: #f1efeb; font: italic clamp(15px, 1.45vw, 21px)/1.2 "Segoe Script", "Brush Script MT", cursive; text-shadow: 0 2px 6px rgb(0 0 0 / 80%); white-space: nowrap; }
.hero__grid { display: flex; flex: 1; align-items: center; min-height: 0; margin-bottom: 24px; }
.hero__content { max-width: 470px; padding-top: 0; }
.hero__title { max-width: 430px; margin-bottom: 24px; font-size: clamp(39px, 3.5vw, 52px); line-height: 1.05; }
.hero__title-accent { display: block; }
.hero__lead, .hero__assurance { max-width: 450px; color: var(--text); font-size: 15px; line-height: 1.42; }
.hero__lead { margin-bottom: 16px; }
.hero__assurance { margin-bottom: 30px; }
.hero__actions { gap: 12px; }
.hero__actions .btn { display: inline-flex; min-height: 45px; align-items: center; justify-content: center; gap: 8px; padding: 9px 17px; font-size: 13px; }
.hero__actions .btn .ui-icon { width: 18px; height: 18px; }
.hero__contacts { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 28px; padding-top: 18px; border: 0; font-size: 12px; line-height: 1.35; }
.hero__contacts::before { position: absolute; z-index: -1; top: 0; bottom: -24px; left: calc(50% - 50vw); width: 100vw; border-top: 1px solid rgb(228 229 230 / 30%); background: rgb(18 23 26 / 92%); content: ""; }
.hero__contact-group { display: grid; gap: 10px; min-width: 0; }
.hero__contact-group > * { display: flex; min-width: 0; align-items: center; gap: 9px; color: var(--text); text-decoration: none; }
.hero__contact-group > * > span { overflow-wrap: anywhere; }
.hero__contacts .ui-icon { flex: none; width: 21px; height: 21px; color: var(--accent); }
.hero__contacts a:hover, .hero__contacts a:focus-visible { color: var(--accent); }

@media (max-width: 1100px) and (min-width: 901px) {
  .brand__name { font-size: 20px; }
  .brand__tagline { font-size: 8px; }
  .desktop-nav a { font-size: 11px; }
  .header-phone__number { font-size: 10px; }
  .hero__script { display: none; }
  .hero__contacts { gap: 20px; }
}

@media (max-width: 900px) {
  :root { --header-height: 54px; --gutter: 14px; }
  .site-header { grid-template-columns: minmax(0, 1fr) 42px 42px; min-height: 54px; padding: 4px 14px; gap: 10px; }
  .brand__name { font-size: 21px; }
  .brand__tagline { font-size: 9px; }
  .header-actions { display: none; }
  .mobile-call { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); text-decoration: none; }
  .mobile-call .ui-icon { width: 23px; height: 23px; }
  .mobile-menu__toggle { width: 40px; min-height: 40px; justify-content: center; padding: 6px; border: 0; }
  .mobile-menu__toggle > span:last-child { display: none; }
  .mobile-menu__bars { width: 25px; gap: 6px; }
  .mobile-menu__bars span { height: 2px; }
  .hero { min-height: 650px; padding-top: calc(var(--shell-header-height) + 24px); }
  .hero__grid { min-height: 0; }
  .hero__script { display: none; }
  .hero__title { max-width: 380px; font-size: 40px; }
  .hero__lead, .hero__assurance { max-width: 360px; font-size: 14px; line-height: 1.4; }
  .hero__actions { display: flex; width: auto; }
  .hero__actions .btn { min-height: 42px; width: auto; padding: 9px 13px; font-size: 12px; }
  .hero__contacts { gap: 16px; }
}

@media (max-width: 760px) {
  .hero { display: flex; min-height: min(760px, 100svh); padding: calc(var(--shell-header-height) + 24px) 0 20px; }
  .hero__visual { position: absolute; inset: 0; z-index: -1; width: auto; aspect-ratio: auto; margin: 0; }
  .hero__image-plane { inset: 0; width: 100%; height: 100%; aspect-ratio: auto; transform: none; }
  .hero__visual img { position: static; width: 100%; height: 100%; object-fit: cover; object-position: 68% center; }
  .hero__visual::after { background: linear-gradient(90deg, rgb(18 23 26 / 96%) 0%, rgb(18 23 26 / 78%) 42%, rgb(18 23 26 / 18%) 100%), linear-gradient(0deg, #12171a 0%, rgb(18 23 26 / 50%) 31%, transparent 68%); }
  .hero__script { display: none; }
  .hero__grid { display: flex; min-height: 0; }
  .hero__content { max-width: none; padding-top: 0; }
  .hero__title { max-width: min(270px, 70vw); margin-bottom: 22px; font-size: clamp(29px, 7.4vw, 36px); line-height: 1.07; }
  .hero__lead, .hero__assurance { max-width: min(330px, 88vw); font-size: 14px; line-height: 1.43; }
  .hero__lead { margin-bottom: 14px; }
  .hero__assurance { margin-bottom: 26px; }
  .hero__actions { display: grid; width: min(100%, 240px); gap: 10px; }
  .hero__actions .btn { min-height: 44px; width: 100%; padding: 9px 12px; font-size: 12px; }
  .hero__contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 0; padding-top: 16px; font-size: 11px; }
  .hero__contacts::before { bottom: -20px; }
  .hero__contact-group { gap: 9px; }
  .hero__contact-group > * { align-items: flex-start; gap: 6px; }
  .hero__contacts .ui-icon { width: 18px; height: 18px; }
}

@media (max-width: 380px) {
  .hero__title { max-width: 245px; }
  .hero__contacts { font-size: 10px; }
}
