.cezar-back-to-top,
.motion-toggle {
  position: fixed;
  z-index: 4;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 39px;
  border: 1px solid #87a2bc;
  background: #0b223a;
  color: white;
  line-height: 1.15;
  text-decoration: none;
  box-shadow: 0 3px 9px #071a2d20;
}
.motion-toggle {
  right: calc(12px + env(safe-area-inset-right, 0px));
  min-width: 0;
  max-width: 175px;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 650;
}
.cezar-back-to-top { right: calc(194px + env(safe-area-inset-right, 0px)); width: 40px; height: 40px; border-radius: 50%; }
html:not(.motion-ready) body .cezar-back-to-top { right: calc(12px + env(safe-area-inset-right, 0px)) !important; }
.cezar-back-to-top .icon { width: 18px; height: 18px; }
.motion-toggle .icon { width: 14px; height: 14px; }
.motion-toggle:hover, .cezar-back-to-top:hover { background: #173e5f; }
.motion-toggle:focus-visible, .cezar-back-to-top:focus-visible { outline-color: #34a6d8; }
.motion-paused-icon, .motion-paused .motion-playing { display: none; }
.motion-paused .motion-paused-icon { display: inline; }

@property --annual-frame-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes annual-frame-sweep {
  to { --annual-frame-angle: 360deg; }
}

@supports (mask-composite: exclude) {
  .proof-line { --frame-core: #bbebffad; --frame-fade: #a6d8ff32; }
  .news-total { --frame-core: #b0e6ffe0; --frame-fade: #a6d8ff54; }
  .cezar-offer-guidance:not(.sample-identity) { --frame-core: #a6d8ff72; --frame-fade: #a6d8ff28; }
  .motion-ready :is(.proof-line, .news-total, .cezar-offer-guidance:not(.sample-identity))::after {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: conic-gradient(from var(--annual-frame-angle), transparent 0% 85%, var(--frame-fade) 90%, var(--frame-core) 95%, transparent 100%);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
    animation: annual-frame-sweep 7.2s linear infinite;
  }
  .motion-ready.motion-paused :is(.proof-line, .news-total, .cezar-offer-guidance:not(.sample-identity))::after {
    animation-play-state: paused;
  }
}

#faq { background: #eef3f6; }
section#faq.cfaq .faq-list::before { content: none !important; }
section#faq.cfaq .faq-list summary {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
section#faq.cfaq .faq-list :is(.faq-answer, .faq-answer p, .faq-answer a) {
  font-size: var(--annual-faq-text-size, .9375rem) !important;
}
@media (max-width: 1100px), (hover: none) and (pointer: coarse) {
  section#faq.cfaq .faq-list { --annual-faq-text-size: .875rem; }
}
@media (max-width: 640px) {
  section#faq.cfaq .faq-list { --annual-faq-text-size: .8125rem; }
}
#faq .faq-answer p, #faq .faq-answer a { color: #000 !important; }
#faq .faq-answer a { text-underline-offset: 3px; }

@layer cezar-faq-heading {
  #faq-title, .annual-faq-title-suffix { font-size: clamp(30px, calc(26px + .8vw), 41px) !important; }
  .annual-faq-title-suffix {
    display: block;
    color: var(--red);
    font-family: "Cezar FAQ Geist", Geist, Arial, sans-serif;
    font-weight: 710;
    line-height: 1.06;
    letter-spacing: -.045em;
  }
  @media (max-width: 1100px) {
    .annual-faq-title-suffix { line-height: 1.1; }
  }
}

.g1-section { padding-top: 0; background: #f9fbfd; }
.g1-intro {
  margin-bottom: 14px;
  padding: clamp(17px, 3vw, 32px);
  border: 1px solid #849daf;
  border-top: 4px solid var(--red);
  border-radius: 13px;
  background: linear-gradient(115deg, #193e61, #0a2137 74%);
  color: #f5f9ff;
  box-shadow: var(--card-shadow);
}
.g1-intro h2 { font-size: clamp(1.625rem, 3.15vw, 2.4375rem); font-weight: 730; letter-spacing: -.045em; }
.g1-intro > p { margin-top: 9px; max-width: 49rem; color: #dfedff; }
.g1-grid { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); gap: 14px; }
.g1-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: clamp(14px, 2.4vw, 25px);
  border: 1px solid #879fb3;
  border-radius: 9px;
  background: white;
  box-shadow: var(--card-shadow);
}
.g1-upgrade { border-top: 3px solid var(--red); }
.g1-stay { border-top: 3px solid #1978a3; background: #fbfdff; }
.g1-card h3 {
  color: var(--blue);
  font-size: clamp(1.38rem, 2.5vw, 1.9rem);
  letter-spacing: -.04em;
  font-weight: 720;
}
.g1-card-context {
  color: #a11b29;
  font-size: .78rem;
  font-weight: 710;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.g1-stay .g1-card-context { color: #0b5d81; }
.g1-card .check-list { margin: 1px 0; }
.g1-card .check-list strong { color: var(--blue); }
.g1-card .check-list p { margin-top: 1px; }
.g1-example {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #b5cbdc;
  border-radius: 7px;
  padding: 9px 12px;
  margin-top: 2px;
  background: #eaf4fc;
  font-size: .95rem;
  font-weight: 620;
}
.g1-example .icon { color: #146083; width: 21px; height: 21px; }
.g1-card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 14px; margin-top: auto; padding-top: 4px; }
.g1-stay-button { color: #fff; background: #0c658e; border-color: #0c658e; }
.g1-stay-button:hover { background: #0b516f; border-color: #0b516f; }

:is(#novinky-title, #dalsi-title, #instalace-title) span { color: var(--red); }
.news-card .check-list { margin-top: 0; }
.order-grid .order-form { min-width: 0; }
.order-form .efaktura-option {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 14px 0 16px;
  padding: 12px;
  border: 1px solid #9db4c6;
  border-radius: 8px;
  background: #f5faff;
  color: #123b55;
  cursor: pointer;
}
.order-form .efaktura-option input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #08729b;
}
.efaktura-option small, .efaktura-total { display: block; margin-top: 3px; }
.efaktura-option small { color: #29465d; font-size: .875rem; line-height: 1.4; }
.efaktura-total { display: none; }
.efaktura-option:has(input:checked) .efaktura-total { display: block; }
.efaktura-unavailable { margin: 14px 0 16px; color: #29465d; font-size: .875rem; }
#obj .inquiry-form-heading > span { font-size: 13px; }
#obj .inquiry-form-heading > p { margin-bottom: 12px; color: #425968; }
.g1-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.g1-choice-option {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid #617b8d;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
  scroll-margin-block-start: 19px;
}
.g1-choice-option:has(:checked) { border-color: #08729b; background: #e9f4fb; box-shadow: inset 0 0 0 1px #08729b; }
.g1-choice-option input { flex: 0 0 18px; width: 18px; height: 18px; margin: 1px 0 0; accent-color: #08729b; }
.g1-choice-option strong, .g1-choice-option small { display: block; line-height: 1.35; }
.g1-choice-option small { margin-top: 4px; color: #29465d; font-size: .86rem; }
.g1-choice + .sample-price, .transition-quote { margin-top: 12px; }
.transition-quote {
  padding: 11px 14px;
  border: 1px solid #9ab3c5;
  border-radius: 8px;
  background: #eef5fa;
  color: #183750;
  font-size: .92rem;
}
.transition-quote p { margin-top: 3px; }
.year-end-terms .inquiry-field select { width: 100%; min-width: 0; }
.year-end-terms .delivery-fixed p { min-height: 40px; padding-block: 7px; color: #29465d; font-size: 17px; font-weight: 600; }
.year-end-note { font-size: .875rem; color: #29465d; }

.sample-price {
  border: 1px solid #9ab3c5;
  border-radius: 8px;
  background: #eef5fa;
  padding: 13px 16px;
}
.sample-price-label { color: #425b71; font-size: 13px; font-weight: 600; }
.sample-price > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: 20px;
  row-gap: 5px;
  color: #183750;
  font-size: 17px;
  font-weight: 700;
}
.sample-price > div > p { white-space: nowrap; }
.sample-price strong { font-size: 1.5em; }
.sample-price small { display: block; font-size: 13px; line-height: 1.2; text-align: right; font-weight: 400; }

.preview-control-row {
  display: grid;
  grid-template-columns: minmax(112px, 175px) minmax(0, 1fr) auto;
  grid-template-areas: "check note submit";
  align-items: end;
  gap: 8px 12px;
  margin-top: 16px;
  color: #27475e;
}
.preview-control-row > label { grid-area: check; }
.preview-control-row > button {
  grid-area: submit;
  min-height: 40px;
  min-width: 0;
  padding: 9px 12px;
}
.preview-control-row .cezar-form-required-note {
  grid-area: note;
  align-self: end;
  min-width: 0;
  font-size: 12px;
  line-height: 1.2;
  padding-bottom: 3px;
}
.preview-status {
  color: #1e6242;
  overflow-wrap: anywhere;
  margin: 12px 0 0;
  border: 1px solid #89b7a3;
  border-radius: 6px;
  padding: 10px 12px;
  background: #ecf8f2;
  scroll-margin-top: 16px;
  font-size: .92rem;
}
.advice-dialog .advice-dialog-heading > p + p { margin-top: 5px !important; }
.advice-dialog .preview-control-row { margin-bottom: 4px; }
html:has(dialog[open]) { overflow: hidden; }

@media (max-width: 850px) {
  .g1-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .g1-choices { grid-template-columns: minmax(0, 1fr); }
  .g1-card-actions .button { width: 100%; }
  .order-form.cezar-module-form.inquiry-form { padding: 20px 16px; }
  .order-form.cezar-module-form.inquiry-form .inquiry-field-grid { grid-template-columns: minmax(0,1fr); }
  .preview-control-row {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    grid-template-areas: "check submit" "note note";
  }
  .preview-control-row > button { padding-inline: 8px; gap: 4px; }
  .preview-control-row > button .icon { display: none; }
  .sample-price small { text-align: left; }
  .footer-top { align-items: flex-start; }
}

@media (max-width: 420px) {
  .site-footer .cezar-footer-contact { flex-basis: 100%; }
}
