/* Shared layout: keep navigation, cards and actions usable at every width. */
:root { --header-height: 72px; }
html { scroll-padding-top: calc(var(--header-height) + 20px); }
body { padding-top: var(--header-height); }
*, *::before, *::after { box-sizing: border-box; }
main, section, article, div, a, button, span, li, form { min-width: 0; }
img { max-width: 100%; }
:where(a, button, input, select):focus-visible { outline: 3px solid #9110c9; outline-offset: 4px; }
button, a { -webkit-tap-highlight-color: transparent; }
.btnanim { min-height: 44px; max-width: 100%; }
.btnanim > svg, .btnanim > img, .flex > svg { flex-shrink: 0; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 80;
  display: flex; align-items: center; gap: 24px;
  height: var(--header-height); padding: 0 max(24px, calc((100% - 1320px) / 2));
  background: #fff; border-bottom: 1px solid #eee7f2;
}
.site-header.is-compact { box-shadow: 0 6px 24px #2514300d; }
.site-brand { display: flex; flex-shrink: 0; align-items: center; }
.site-brand img { width: 106px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 22px; margin: auto; }
.site-nav a { display: flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #9110c9; }
.site-header__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.site-login, .site-quote, .site-menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.site-login { background: #16101c; color: #fff; }
.site-quote { background: #9110c9; color: #fff; }
.site-login:hover { background: #37283e; }
.site-quote:hover { background: #73119f; }
.site-header__actions svg { width: 20px; height: 20px; flex-shrink: 0; }
.site-menu-toggle { display: none; width: 44px; padding: 0; border: 1px solid #eadff0; color: #16101c; background: #fff; cursor: pointer; }
.menu-cross { display: none; }
.site-menu-toggle[aria-expanded="true"] .menu-lines { display: none; }
.site-menu-toggle[aria-expanded="true"] .menu-cross { display: block; }

.site-footer { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; max-width: 1320px; margin: 32px auto 0; padding: 40px 24px 24px; border-top: 1px solid #eee7f2; color: #62586d; font-size: 14px; line-height: 1.6; }
.site-footer h2 { margin-bottom: 12px; color: #16101c; font-size: 14px; font-weight: 700; }
.site-footer nav a, .site-footer__contact > a { display: flex; align-items: center; min-height: 44px; width: fit-content; }
.site-footer a:hover { color: #9110c9; }
.site-footer__brand > a { display: inline-flex; }
.site-footer__brand img { width: 106px; height: auto; }
.site-footer__brand p { max-width: 270px; margin: 16px 0; }
.site-footer__social { display: flex; gap: 8px; color: #9110c9; }
.site-footer__social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #eadff0; border-radius: 50%; }
.site-footer svg { width: 20px; height: 20px; }
.site-footer .footer-quote { gap: 8px; margin-top: 12px; color: #9110c9; font-weight: 700; }
.site-footer__copyright { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid #eee7f2; font-size: 12px; }

.integration-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.integration-card { display: flex; flex-direction: column; align-items: center; padding: 32px 24px; border: 1px solid #eadff0; border-radius: 20px; background: white; text-align: center; box-shadow: 0 10px 28px #2c14380a; }
.integration-card__logo { display: flex; align-items: center; justify-content: center; height: 84px; width: 100%; margin-bottom: 24px; }
.integration-card__logo img { width: 170px; max-height: 76px; object-fit: contain; }
.integration-card h3 { font-size: 22px; font-weight: 700; }
.integration-card p { margin: 12px 0 24px; color: #62586d; font-size: 15px; line-height: 1.6; }
.integration-card__action { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; margin-top: auto; padding: 8px 16px; border-radius: 99px; background: #f5e5ff; color: #73119f; font-size: 14px; font-weight: 700; }
.integration-card__action svg { width: 18px; height: 18px; }
.integration-card__action:hover { background: #e8c5fb; }
.integration-logo-links { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 100%; gap: 12px; }
.integration-logo-links a { transition: border-color 180ms, box-shadow 180ms; }
.integration-logo-links a:hover { border-color: #9110c9; box-shadow: 0 6px 20px #9110c91a; }
.home-pricing { grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr) minmax(0, .8fr); }
.home-pricing > div:nth-child(2) { padding: 40px 24px; }
.home-pricing .home-price { font-size: clamp(48px, 6vw, 82px); line-height: 1; }
.pricing-benefits { grid-template-columns: 92px minmax(0, 1fr) minmax(220px, .8fr); }
.coverage-price { grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, 1fr); }
.contact-start { align-self: center; border: 1px solid #eadff0; border-radius: 24px; padding: clamp(24px, 4vw, 48px); background: #fbf4ff; }
.contact-start > svg { width: 48px; height: 48px; color: #9110c9; }
.contact-start h3 { margin-top: 24px; font-size: 28px; font-weight: 700; line-height: 1.15; }
.contact-start p { margin: 16px 0 24px; color: #62586d; font-size: 16px; line-height: 1.6; }
.contact-start .btnanim { padding: 12px 20px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.contact-start small { display: block; margin-top: 16px; color: #62586d; font-size: 12px; }
.quote-modal__panel { grid-template-rows: auto minmax(0, 1fr) auto; }
.quote-modal__body { min-height: 0; overscroll-behavior: contain; }
.quote-modal__close { width: 44px; height: 44px; }
.quote-field input { font-size: 16px; }
.faq-answer, .faq-answer-wide { padding-left: 0; padding-right: 32px; }
.home-integration-flow p { overflow-wrap: normal; }
.home-integration-flow { max-width: 680px; margin: 72px auto 0; align-items: center; }
.coverage-highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.coverage-highlights > span { gap: 8px; }
.coverage-highlights svg { width: 32px; height: 32px; }
.operation-badges { grid-template-columns: 1fr; width: 100%; }
.operation-badges > span { border-right: 0; }
.operation-laptop img { width: 100%; max-width: 100%; }

@media (min-width: 1024px) {
  .home-integration-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .home-integration-flow > span { display: none; }
  .home-integration-flow > div { flex-direction: column; justify-content: center; gap: 10px; min-height: 128px; padding: 12px 8px; text-align: center; }
  .home-integration-flow > div:has(img) { width: 100%; max-width: 116px; height: 116px; min-height: 0; }
}

@media (min-width: 640px) and (max-width: 1279px) {
  .home-integration-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .home-integration-benefits > div { border: 0; padding: 0; }
}

@media (max-width: 1199px) {
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 16px 24px 24px; border-bottom: 1px solid #eadff0; background: #fff; box-shadow: 0 16px 24px #25143014; max-height: calc(100dvh - var(--header-height)); overflow-y: auto; }
  .site-header.is-menu-open .site-nav { display: grid; gap: 4px; }
  .site-nav a { padding: 10px 16px; border-radius: 12px; font-size: 16px; }
  .site-nav a[aria-current="page"] { background: #fbf4ff; }
  .site-header__actions { margin-left: auto; }
  .site-menu-toggle { display: inline-flex; }
  .home-pricing { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .home-pricing > ul { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 24px; }
  .pricing-benefits { grid-template-columns: 80px minmax(0, 1fr); }
  .pricing-benefits > :last-child { grid-column: 2; padding: 0; border: 0; }
  .coverage-price { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coverage-price > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 1023px) {
  main > section:first-child { min-height: auto; }
  .hero-side-fade, .photo-left-fade { min-height: 300px; }
  .hero-side-fade::after, .photo-left-fade::after { background: linear-gradient(180deg, #fff 0%, transparent 35%); }
  .site-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .integration-cards { grid-template-columns: 1fr; max-width: 620px; margin-left: auto; margin-right: auto; }
  .integration-card { padding: 28px; }
  .home-integration-flow { grid-template-columns: 1fr; gap: 12px; max-width: 520px; margin-top: 28px; }
  .home-integration-flow > span { display: flex; transform: rotate(90deg); }
  .home-integration-flow > div { width: 100%; }
  .home-integration-flow > div:has(img) { width: 100px; height: 100px; }
}

@media (max-width: 639px) {
  :root { --header-height: 64px; }
  .site-header { padding: 0 12px; gap: 6px; }
  .site-brand img { width: 80px; }
  .site-header__actions { gap: 6px; }
  .site-login { width: 44px; padding: 0; }
  .site-login span { display: none; }
  .site-quote { padding: 0 12px; gap: 6px; font-size: 11px; }
  .site-quote svg { width: 16px; }
  .site-nav { padding: 12px 12px 20px; }
  main h1 { font-size: clamp(34px, 9.8vw, 42px) !important; line-height: 1.08 !important; }
  main h2[class] { font-size: clamp(26px, 7.5vw, 32px); line-height: 1.15; }
  main > section:first-child > div:first-child { padding-top: 28px; }
  .btnanim { white-space: normal; text-align: center; }
  .home-pricing { grid-template-columns: minmax(0, 1fr); }
  .home-pricing > div:first-child { min-height: 240px; }
  .home-pricing > ul { grid-template-columns: 1fr; }
  .home-pricing .home-price { font-size: clamp(48px, 15vw, 72px); }
  .pricing-benefits, .coverage-price { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .pricing-benefits > :last-child, .coverage-price > :first-child { grid-column: auto; }
  .integration-logo-links { gap: 8px; }
  .integration-logo-links a { height: 76px; padding: 8px; }
  .integration-logo-links img { max-width: 100%; }
  .coverage-map { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 10px; min-height: 360px; padding: 24px 16px; }
  .coverage-map > span { position: relative; top: auto; left: auto; z-index: 1; padding: 8px 10px; font-size: 12px; }
  .coverage-map > div:last-child { position: relative; bottom: auto; left: auto; width: 100%; margin-top: 12px; padding: 16px; }
  .site-footer { gap: 28px 20px; padding: 32px 20px 24px; font-size: 13px; }
  .site-footer__brand, .site-footer__contact { grid-column: 1 / -1; }
  .site-footer__brand p { max-width: none; }
}

@media (max-width: 359px) {
  .site-brand img { width: 72px; }
  .site-quote { padding: 0 8px; }
  .site-header__actions { gap: 4px; }
}

@media (max-width: 760px) {
  .quote-modal__panel, .quote-modal--scenario .quote-modal__panel { width: 100%; height: 100vh; height: 100dvh; max-height: none; border: 0; border-radius: 0; background: #fff; }
  .quote-modal__header { padding-top: max(16px, env(safe-area-inset-top)); }
  .quote-modal__footer { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .quote-field input { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
