/* Dinamica Insure — final polish for doma.html only. 2026-09-17. */

/* Keep the viewport width stable when overlays/menus change body scrolling. */
html { scrollbar-gutter: stable; }

/* Header stability: geometry never changes between initial/scroll states. */
.page-doma .header,
.page-doma .header.scrolled {
  height: 72px !important;
  min-height: 72px !important;
  background: #20214c !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: 0 7px 28px rgba(15,20,48,.20) !important;
  transition: none !important;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.page-doma .header-inner {
  height: 72px !important;
  min-height: 72px !important;
  align-items: center !important;
}
.page-doma .logo,
.page-doma .logo img,
.page-doma .logo-text,
.page-doma .nav,
.page-doma .header-socials,
.page-doma .header-phone,
.page-doma .header > .header-inner > .service-cta-button {
  transform: none !important;
}
.page-doma .logo img {
  aspect-ratio: 80 / 69;
  object-fit: contain;
  flex: 0 0 auto !important;
}
.page-doma .header .service-cta-button:hover {
  transform: none !important;
}

/* Hero and sections: small rhythm refinements without changing the design language. */
.page-doma .house-hero-copy .hero-btns { align-items: center; }
.page-doma .house-hero-copy .btn-primary,
.page-doma .house-hero-copy .btn-outline { min-height: 44px; }
.page-doma .house-cover-card,
.page-doma .house-factor-row,
.page-doma .house-risk-compact,
.page-doma .house-process-step {
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
@media (hover:hover) and (pointer:fine) {
  .page-doma .house-cover-card:hover,
  .page-doma .house-process-step:hover {
    transform: translateY(-2px);
    border-color: rgba(13,167,160,.28);
    box-shadow: 0 10px 28px rgba(23,31,48,.07);
  }
  .page-doma .house-cover-main:hover {
    border-color: rgba(49,197,188,.34);
    box-shadow: 0 14px 34px rgba(17,38,66,.16);
  }
  .page-doma .house-factor-row:hover,
  .page-doma .house-risk-compact:hover {
    border-color: rgba(49,197,188,.22);
    background: rgba(255,255,255,.065);
  }
}

/* External widgets keep stable space while their content loads. */
.page-doma .house-widget .polis-widget-slot { min-height: 330px; }
.page-doma .house-form-widget { min-height: 315px; }
.page-doma .house-widget .privacy-inline-consent,
.page-doma .house-form-widget .privacy-inline-consent { margin-top: 10px; }

/* FAQ: real buttons, stable icon, keyboard focus. */
.page-doma .faq-q {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #171b28;
  font: inherit;
  text-align: left;
  appearance: none;
}
.page-doma .faq-q > span:first-child { min-width: 0; }
.page-doma .faq-q-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(13,167,160,.22);
  border-radius: 50%;
  color: #0da7a0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  transition: transform .2s ease, background .2s ease;
}
.page-doma .faq-item.open .faq-q-icon { transform: rotate(45deg); background: rgba(13,167,160,.08); }
.page-doma .faq-q:focus-visible,
.page-doma a:focus-visible,
.page-doma button:focus-visible {
  outline: 3px solid rgba(49,197,188,.55);
  outline-offset: 3px;
}

/* Better anchor landing under the fixed header. */
.page-doma #widget,
.page-doma #form { scroll-margin-top: 92px; }

@media (max-width: 880px) {
  html { scrollbar-gutter: auto; }
  .page-doma .header,
  .page-doma .header.scrolled {
    height: 60px !important;
    min-height: 60px !important;
  }
  .page-doma .header-inner {
    height: 60px !important;
    min-height: 60px !important;
  }
  .page-doma #widget,
  .page-doma #form { scroll-margin-top: 76px; }
}

@media (max-width: 560px) {
  .page-doma .house-hero-copy .hero-btns { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .page-doma .house-hero-copy .btn-primary,
  .page-doma .house-hero-copy .btn-outline { width: 100%; justify-content: center; }
  .page-doma .house-widget .polis-widget-slot { min-height: 350px; }
  .page-doma .house-form-widget { min-height: 330px; }
  .page-doma .faq-q { gap: 12px; padding: 17px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .page-doma *,
  .page-doma *::before,
  .page-doma *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


/* 2026-09-18: replace the house blueprint with KASKO-like fact cards. */
.page-doma .house-hero-facts {
  align-self: center;
  max-width: 570px;
  width: 100%;
}
.page-doma .house-hero-card {
  min-height: 102px;
  padding: 24px 20px !important;
  border-radius: 16px;
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.page-doma .house-hero-card .hero-info-num {
  margin-bottom: 8px;
  color: #fff;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
}
.page-doma .house-hero-card .hero-info-label {
  color: rgba(255,255,255,.62);
  font-size: 14px;
  line-height: 1.5;
}
@media (hover:hover) and (pointer:fine) {
  .page-doma .house-hero-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,.18) !important;
    box-shadow: 0 14px 28px rgba(10, 15, 35, .18);
  }
}
@media (max-width: 980px) {
  .page-doma .house-hero-facts { max-width: 760px; }
}
@media (max-width: 560px) {
  .page-doma .house-hero-card { min-height: 88px; padding: 18px 16px !important; }
  .page-doma .house-hero-card .hero-info-num { font-size: 18px; }
  .page-doma .house-hero-card .hero-info-label { font-size: 12px; }
}


/* 2026-09-18: make Doma widget match the mortgage widget section and fix hero cards. */
.page-doma .house-hero-facts {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
  align-self: center;
  max-width: 540px;
  width: 100%;
}
.page-doma .house-hero-card {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 20px !important;
  border-radius: 16px;
}
.page-doma .house-hero-card .hero-info-num {
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.page-doma .house-hero-card .hero-info-label {
  font-size: 13px;
  line-height: 1.45;
}

.page-doma .house-widget {
  padding: 56px 0 62px;
  background: #f4f5f7;
}
.page-doma .house-widget-centered {
  max-width: 1120px;
}
.page-doma .house-widget-header {
  margin-bottom: 24px;
}
.page-doma .house-widget-header .section-title {
  margin-bottom: 10px;
}
.page-doma .house-widget-header .section-sub {
  margin: 0 auto;
  max-width: 760px;
  color: #69707c;
}
.page-doma .house-polis-widget-wrap {
  width: 100%;
  max-width: none;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.page-doma .house-widget .polis-widget-slot {
  min-height: 330px;
}
.page-doma .house-widget-afterlink {
  margin-top: 12px;
  text-align: center;
}
.page-doma .house-widget-link {
  margin-top: 0;
  font-size: 13px;
}

@media (max-width: 980px) {
  .page-doma .house-hero-facts {
    max-width: 760px;
  }
}

@media (max-width: 560px) {
  .page-doma .house-hero-facts {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .page-doma .house-hero-card {
    min-height: 96px;
    padding: 18px 16px !important;
  }
  .page-doma .house-widget {
    padding: 42px 0 48px;
  }
}


/* 2026-09-18: remove dark manager wrapper and leave only the white form. */
.page-doma .house-manager-card {
  position: sticky;
  top: 92px;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.page-doma .house-manager-copy {
  margin-bottom: 18px;
}
.page-doma .house-manager-card .section-tag {
  color: #0da7a0 !important;
  background: rgba(13,167,160,.10) !important;
}
.page-doma .house-manager-copy h2 {
  color: #20214c !important;
  margin: 12px 0 10px;
}
.page-doma .house-manager-copy > p {
  color: #69707c !important;
  font-size: 14px !important;
}
.page-doma .house-form-mini span {
  background: #fff !important;
  border: 1px solid #d9e0e8 !important;
  color: #5f6774 !important;
}
.page-doma .house-form-widget {
  background: #fff !important;
  border: 1px solid #e2e7ee;
  border-radius: 18px !important;
  padding: 12px !important;
  box-shadow: 0 12px 34px rgba(23,31,48,.06) !important;
  overflow: hidden;
}
.page-doma .house-form-widget .amo-form-wrap {
  background: #fff !important;
  border-radius: 14px;
}
@media (max-width: 880px) {
  .page-doma .house-manager-card { position: static; top: auto; }
}


/* 2026-09-18: unified Doma footer with the main site footer. */
.page-doma .footer {
  padding: 48px 0 24px !important;
  background: #1b1f45 !important;
}
.page-doma .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 42px;
  margin-bottom: 38px;
}
.page-doma .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.page-doma .footer-logo img {
  width: auto;
  height: 34px;
  object-fit: contain;
}
.page-doma .footer-logo-text {
  color: #fff;
  font-weight: 800;
  font-size: 16px;
}
.page-doma .footer-desc {
  max-width: 300px;
  color: rgba(255,255,255,.48);
  font-size: 13px;
  line-height: 1.7;
}
.page-doma .footer-col-title {
  margin-bottom: 15px;
  color: rgba(255,255,255,.52);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.35px;
}
.page-doma .footer-col a {
  display: block;
  margin-bottom: 9px;
  color: rgba(255,255,255,.57);
  font-size: 13px;
  line-height: 1.45;
}
.page-doma .footer-col a.active { color: #48d2c9; }
.page-doma .footer-bottom {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 20px !important;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.page-doma .footer-copy {
  max-width: 720px;
  color: rgba(255,255,255,.32);
  font-size: 11px;
  line-height: 1.55;
}
.page-doma .footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
}
.page-doma .footer-bottom-links a {
  color: rgba(255,255,255,.4);
  font-size: 11px;
}
.page-doma .ins-partners {
  border-bottom: 0;
}
@media (max-width: 980px) {
  .page-doma .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; }
  .page-doma .footer-grid > div:first-child { grid-column: 1 / -1; }
  .page-doma .footer-desc { max-width: 520px; }
}
@media (max-width: 700px) {
  .page-doma .footer { padding-top: 38px !important; }
  .page-doma .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 22px; }
  .page-doma .footer-grid > div:first-child { grid-column: 1 / -1; }
  .page-doma .footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .page-doma .footer-bottom-links { justify-content: flex-start; }
}
@media (max-width: 460px) {
  .page-doma .footer-grid { grid-template-columns: 1fr; }
  .page-doma .footer-grid > div:first-child { grid-column: auto; }
}


/* 2026-09-18: bare manager form + standard final CTA before footer. */
/* No card around the manager form: the embedded amoCRM form is the only white surface. */
.page-doma .house-form-widget,
.page-doma .house-form-widget--bare {
  width: 100%;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}
.page-doma .house-form-widget .amo-form-wrap {
  padding: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.page-doma .house-form-widget .amo-form-wrap iframe {
  margin-top: 0 !important;
}
.page-doma .house-form-widget .privacy-inline-consent {
  margin: 10px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Same closing request block used by the other service pages. */
.page-doma .doma-final-form {
  position: relative;
}
.page-doma .doma-final-form .amo-form-wrap {
  margin-left: auto !important;
  margin-right: auto !important;
}
.page-doma #manager-form,
.page-doma #footer-form {
  scroll-margin-top: 92px;
}
@media (max-width: 880px) {
  .page-doma #manager-form,
  .page-doma #footer-form { scroll-margin-top: 76px; }
}


/* 2026-09-18: match Doma form text styling to OSAGO. */
.page-doma .house-help,
.page-doma .doma-final-form {
  color: #171b28;
}
.page-doma .house-form-widget .amo-form-wrap,
.page-doma .doma-final-form .amo-form-wrap {
  color: #171b28 !important;
}
.page-doma .house-form-widget .amo-form-wrap iframe,
.page-doma .doma-final-form .amo-form-wrap iframe {
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}
.page-doma .house-form-widget .privacy-inline-consent,
.page-doma .doma-final-form .privacy-inline-consent {
  color: #596273 !important;
}
.page-doma .house-form-widget .privacy-inline-consent a,
.page-doma .doma-final-form .privacy-inline-consent a {
  color: #d8535c !important;
}
