/* Shared responsive rules for the archived page templates. */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
#dc-root :is(img, video, iframe) { max-inline-size: 100%; }
#dc-root :is(h1, h2, h3, h4, p, a, label, button, summary) {
  overflow-wrap: anywhere;
}
#dc-root :is(input, select, textarea, button) { max-inline-size: 100%; }
#dc-root :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.layout-mobile-nav, .layout-scroll-hint { display: none; }
.home-category-photo { display: block; width: 100%; height: 160px; object-fit: cover; }
.home-partner-logo { display: block; width: 90%; height: 50px; object-fit: contain; }
.home-comparison-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.layout-table-scroll { max-inline-size: 100%; }
.layout-header-contacts button { border: 0; }
#dc-root header nav > div:focus-within > .layout-submenu { display: block !important; }
#dc-root .layout-dialog > .layout-dialog-panel {
  max-block-size: calc(100dvh - 32px);
  overflow-y: auto;
}

@media (max-width: 1050px) {
  html { scroll-padding-block-start: 170px; }
  #dc-root {
    --layout-gutter: clamp(16px, 4vw, 32px);
    --layout-gap: clamp(16px, 3vw, 28px);
  }
  #dc-root .layout-shell { padding-inline: var(--layout-gutter) !important; }
  #dc-root .layout-section { padding-block: clamp(36px, 6vw, 64px) !important; }
  #dc-root .layout-page { overflow-x: clip !important; }
  #dc-root :is(.layout-sticky-header, .sc-host:has(> header .layout-mobile-nav)) {
    position: sticky !important;
    top: 0;
    z-index: 60;
  }
  #dc-root header:has(.layout-mobile-nav) { position: relative; }
  #dc-root .layout-header-row { flex-wrap: wrap; gap: 12px !important; }
  #dc-root .layout-header-row { padding-inline-end: calc(var(--layout-gutter) + 56px) !important; }
  #dc-root .layout-header-brand { flex: 1 1 280px !important; min-inline-size: 0; }
  #dc-root .layout-header-mark { flex: 0 0 42px; }
  #dc-root .layout-header-contacts { flex: 1 1 auto !important; flex-wrap: wrap; }
  #dc-root .layout-header-contacts a[href^="tel:"] { white-space: nowrap !important; }
  #dc-root .layout-header-phones { align-items: flex-start !important; }
  #dc-root .layout-desktop-nav { display: none !important; }
  #dc-root .layout-mobile-nav { display: block; padding-inline: var(--layout-gutter); }
  .layout-mobile-nav > summary {
    position: absolute;
    inset-block-start: 12px;
    inset-inline-end: var(--layout-gutter);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    list-style: none;
    border: 1px solid var(--pal-border);
    border-radius: 10px;
    color: var(--pal-ink);
    background: #fff;
  }
  .layout-mobile-nav summary::-webkit-details-marker { display: none; }
  .layout-menu-icon { display: grid; gap: 5px; }
  .layout-menu-icon > span { width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
  .layout-mobile-nav[open] .layout-menu-icon > span:first-child { transform: translateY(7px) rotate(45deg); }
  .layout-mobile-nav[open] .layout-menu-icon > span:nth-child(2) { visibility: hidden; }
  .layout-mobile-nav[open] .layout-menu-icon > span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .layout-mobile-links {
    display: block;
    padding-block: 8px 12px;
    max-block-size: clamp(64px, min(54dvh, 100dvh - 180px), 420px);
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }
  .layout-mobile-nav:not([open]) .layout-mobile-links { display: none; }
  #dc-root .layout-mobile-links :is(a, summary) { color: var(--pal-ink); }
  .layout-mobile-links a { display: flex; align-items: center; min-block-size: 44px; padding: 6px 0; }
  .layout-mobile-links > * + * { border-block-start: 1px solid var(--pal-border); }
  .layout-mobile-group > summary {
    display: flex; align-items: center; justify-content: space-between;
    min-block-size: 44px; gap: 12px; cursor: pointer; list-style: none;
  }
  .layout-mobile-group > summary::after {
    content: ""; width: 8px; height: 8px; margin-inline-end: 8px;
    border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg);
  }
  .layout-mobile-group[open] > summary::after { transform: rotate(225deg); }
  .layout-mobile-group > div { padding-inline-start: 16px; border-inline-start: 2px solid var(--pal-border); }
  .layout-mobile-group:not([open]) > div { display: none; }
  #dc-root .layout-flow {
    grid-template-columns: repeat(var(--layout-columns, 2), minmax(0, 1fr)) !important;
    gap: var(--layout-gap) !important;
  }
  #dc-root .layout-flow > * { min-inline-size: 0; }
  #dc-root .layout-feature { --layout-columns: 1; }
  #dc-root .layout-feature > * { grid-area: auto !important; }
  #dc-root .layout-profile { padding: var(--layout-gutter) !important; }
  #dc-root .layout-wrap { flex-wrap: wrap; }
  #dc-root .layout-flex-child { min-inline-size: 0 !important; max-inline-size: 100%; }
  #dc-root .layout-nowrap { white-space: normal !important; }
  #dc-root h1 { font-size: clamp(30px, 5.4vw, 52px) !important; }
  #dc-root h2 { font-size: clamp(25px, 4.2vw, 38px) !important; }
  #dc-root .layout-hero {
    min-block-size: 0 !important;
    flex-direction: column;
    align-items: stretch !important;
    padding: clamp(30px, 6vw, 64px) var(--layout-gutter);
    gap: 22px;
    isolation: isolate;
  }
  #dc-root .layout-hero > :first-child { z-index: -1; }
  #dc-root .layout-hero-ribbon { position: static !important; align-self: flex-start; }
  #dc-root .layout-hero-content { box-sizing: border-box !important; margin: 0 !important; padding: 0 !important; }
  #dc-root .layout-lead-copy {
    position: relative !important;
    inset: auto !important;
    padding: var(--layout-gutter);
  }
  #dc-root .layout-lead-media {
    display: flex; flex-direction: column; justify-content: end;
    min-height: 220px !important; height: auto !important;
  }
  #dc-root .layout-table-scroll { overflow-x: auto; }
  #dc-root .layout-table { min-inline-size: 650px; }
  #dc-root .layout-scroll-hint { display: block; margin: 0 0 8px; font-size: 14px; }
  #dc-root .layout-media { height: clamp(180px, 45vw, 420px) !important; }
  #dc-root .layout-hero-actions { flex-wrap: wrap; }
  #dc-root [style*="scroll-snap-type: x"] {
    grid-auto-columns: min(320px, 100%) !important;
  }
}

@media (max-width: 620px) {
  #dc-root .layout-flow { --layout-columns: 1; }
  #dc-root .layout-compact { --layout-columns: 2; gap: 10px !important; }
  #dc-root .layout-spec-row { gap: 5px !important; padding-block: 8px; }
  #dc-root .layout-header-contacts { flex-basis: 100% !important; gap: 8px !important; }
  #dc-root .layout-header-contacts button { flex: 1 1 100%; min-block-size: 44px; }
  #dc-root .layout-header-contacts a[title] { min-width: 44px; min-height: 44px; }
  #dc-root .layout-header-row { padding-inline-end: var(--layout-gutter) !important; }
  #dc-root .layout-header-brand { flex-basis: 100% !important; padding-inline-end: 56px; }
  #dc-root .layout-hero-actions > * { flex: 1 1 100%; text-align: center; }
  #dc-root .layout-footer > div > .layout-flow:first-child { --layout-columns: 2; }
  #dc-root .layout-footer > div > .layout-flow:first-child > :first-child { grid-column: 1 / -1; }
  #dc-root .layout-dialog { padding: 12px !important; }
  #dc-root .layout-dialog-panel { padding: 24px 16px 16px !important; }
  #dc-root .layout-dialog-panel :is(input, select, textarea) { font-size: 16px !important; }
}
.lead-consent { display:flex; align-items:flex-start; gap:10px; font:400 14px/1.5 Manrope, sans-serif; color:#332a2c; text-align:left; }
.lead-consent input { flex:none; width:20px; height:20px; margin:1px 0; accent-color:#591627; }
.lead-consent a, .legal-document a { color:inherit; text-decoration:underline; text-underline-offset:2px; }
form[data-dark] :is(.lead-consent,.lead-status) { color:#fff; }
.lead-status { font-size:14px; margin:0; }
.lead-status:empty { display:none; }
.lead-quiz-form { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; }
.lead-quiz-form button { justify-content:center; min-height:44px; border:0; }
.legal-document { max-width:820px; margin:auto; padding:40px clamp(16px,4vw,42px); font:16px/1.65 system-ui,sans-serif; color:#292226; overflow-wrap:anywhere; }
.legal-document h1 { font-size:clamp(26px,4vw,38px); line-height:1.2; }
.legal-document footer { margin-top:36px; padding-top:20px; border-top:1px solid #d5cdcb; display:grid; gap:8px; }
