:root {
  --hipos-red: #B2101A;
  --hipos-red-dark: #870B13;
  --ink: #171717;
  --graphite: #252525;
  --steel: #828282;
  --line: #D8D8D8;
  --surface: #FFFFFF;
  --surface-soft: #F3F3F1;
  --shadow: 0 24px 70px rgba(23, 23, 23, 0.16);
  --radius: 8px;
  --max: 1180px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: "Sofia Sans", Inter, Archivo, Roboto, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

body.is-reduced-motion *,
body.is-reduced-motion *::before,
body.is-reduced-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
  transition-duration: 0.001ms !important;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
a {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--hipos-red);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 50;
  transform: translateY(-140%);
  background: var(--surface);
  color: var(--ink);
  padding: 0.7rem 1rem;
  border: 2px solid var(--hipos-red);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0.85rem clamp(1rem, 3vw, 2.5rem);
  background: rgba(255, 255, 255, 0.93);
  border-bottom: 1px solid rgba(23, 23, 23, 0.08);
  backdrop-filter: blur(14px);
}

.brand img {
  width: 148px;
  height: auto;
}

.progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: transparent;
}

.progress-bar {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--hipos-red);
}

.section-panel {
  min-height: 100vh;
  padding: calc(var(--header-height) + 3.2rem) clamp(1.1rem, 4vw, 3rem) 4.25rem;
  display: grid;
  align-items: center;
}

.section-panel > * {
  width: min(100%, var(--max));
  margin-inline: auto;
}

.is-dark {
  background: var(--graphite);
  color: var(--surface);
}

.hero {
  position: relative;
  min-height: 96vh;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  z-index: -2;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 23, 23, 0.9), rgba(23, 23, 23, 0.62) 44%, rgba(23, 23, 23, 0.16)),
    linear-gradient(0deg, rgba(23, 23, 23, 0.35), rgba(23, 23, 23, 0));
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.6) contrast(1.08);
}

.hero-outline {
  position: absolute;
  right: 13%;
  top: 30%;
  width: 34vw;
  max-width: 560px;
  aspect-ratio: 1.7;
  border: 4px solid var(--hipos-red);
  transform: rotate(-8deg);
  opacity: 0.86;
  box-shadow: 0 0 0 9999px rgba(23, 23, 23, 0.06);
}

.hero-outline::after {
  content: "řešená střecha";
  position: absolute;
  right: -1rem;
  top: -2.5rem;
  background: var(--hipos-red);
  color: var(--surface);
  padding: 0.45rem 0.65rem;
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-content {
  max-width: 780px;
  margin-inline: 0 auto;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--hipos-red);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.is-dark .eyebrow {
  color: #FFFFFF;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  max-width: 900px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.98;
}

h1 {
  font-size: 5.25rem;
}

h2 {
  font-size: 4.2rem;
}

h3 {
  margin: 0 0 0.75rem;
  font-size: 1.45rem;
  line-height: 1.12;
}

.hero-lead,
.section-heading p,
.section-copy > p,
.quote-content > p,
.contact-copy > p {
  max-width: 760px;
  font-size: 1.22rem;
  color: rgba(23, 23, 23, 0.74);
}

.is-dark .hero-lead,
.is-dark .quote-content > p {
  color: rgba(255, 255, 255, 0.82);
}

.brand-claim {
  display: inline-flex;
  margin: 0.6rem 0 0;
  padding: 0.5rem 0.7rem;
  background: var(--hipos-red);
  color: var(--surface);
  font-size: 0.95rem;
  font-weight: 950;
  text-transform: uppercase;
}

.meta-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(100%, 980px);
  margin: 1.55rem 0 0;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.meta-strip div {
  padding: 1rem;
  background: rgba(23, 23, 23, 0.5);
}

.meta-strip dt {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.meta-strip dd {
  margin: 0.2rem 0 0;
  font-weight: 900;
}

.split-section,
.layer-section,
.contact-section {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.plain-list {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  gap: 0.8rem;
}

.plain-list li {
  position: relative;
  padding-left: 1.4rem;
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--hipos-red);
}

.roof-hotspot-frame,
.video-stage,
.comparison-images,
.process-video,
.reference-card img {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.roof-hotspot-frame {
  position: relative;
  margin: 0;
  aspect-ratio: 1.24;
  background: var(--surface-soft);
}

.roof-hotspot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.roof-hotspot-frame figcaption,
.photo-strip figcaption,
.comparison-note {
  color: rgba(23, 23, 23, 0.68);
  font-size: 0.88rem;
  font-weight: 800;
}

.roof-hotspot-frame figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  max-width: calc(100% - 2rem);
  padding: 0.45rem 0.65rem;
  background: rgba(255, 255, 255, 0.92);
  border-left: 4px solid var(--hipos-red);
}

.roof-visual-stack {
  display: grid;
  gap: 1rem;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.photo-strip figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.photo-strip img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.photo-strip figcaption {
  padding: 0.6rem 0.75rem;
}

.hotspot {
  position: absolute;
  min-width: 2.1rem;
  min-height: 2.1rem;
  border: 0;
  border-radius: 999px;
  background: var(--hipos-red);
  color: var(--surface);
  cursor: pointer;
  box-shadow: 0 0 0 8px rgba(178, 16, 26, 0.2);
}

.hotspot::before {
  content: "";
  position: absolute;
  inset: -0.5rem;
  border: 1px solid rgba(178, 16, 26, 0.35);
  border-radius: inherit;
}

.hotspot span {
  position: absolute;
  left: 1.5rem;
  top: -0.3rem;
  width: max-content;
  max-width: 13rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.45rem 0.65rem;
  font-weight: 900;
  font-size: 0.86rem;
  box-shadow: var(--shadow);
}

.hotspot-one {
  left: 22%;
  bottom: 24%;
}

.hotspot-two {
  right: 23%;
  top: 33%;
}

.hotspot-three {
  right: 12%;
  bottom: 22%;
}

.section-heading {
  text-align: left;
  margin-bottom: 2.5rem;
}

.result-section {
  background: var(--surface-soft);
}

.video-stage {
  position: relative;
  margin: 0 auto;
  background: var(--ink);
}

.video-stage-secondary {
  margin-top: 1.25rem;
}

.video-stage video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-stage figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  background: var(--ink);
  color: var(--surface);
  font-size: 0.9rem;
}

.video-toggle {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--surface);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
}

.comparison {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.2rem;
}

.comparison-images {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
}

.comparison-images img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison-before {
  filter: saturate(0.78) contrast(1.05);
}

.comparison-after {
  clip-path: inset(0 0 0 var(--split));
}

.comparison-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 5px;
  background: var(--hipos-red);
  transform: translateX(-2.5px);
  pointer-events: none;
}

.comparison-handle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  background: var(--hipos-red);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.28);
}

.comparison-handle::after {
  content: "táhnout";
  position: absolute;
  top: calc(50% + 2.8rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--surface);
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.comparison-label {
  position: absolute;
  top: 1rem;
  z-index: 2;
  padding: 0.45rem 0.7rem;
  background: rgba(23, 23, 23, 0.78);
  color: var(--surface);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.comparison-label-before {
  left: 1rem;
}

.comparison-label-after {
  right: 1rem;
  background: var(--hipos-red);
}

.comparison-control {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  font-weight: 900;
}

.comparison-control input {
  accent-color: var(--hipos-red);
  width: 100%;
  min-height: 2rem;
  cursor: ew-resize;
}

.comparison-note {
  margin: 0;
  max-width: 820px;
}

.layer-section {
  background: var(--surface);
}

.process-video {
  margin-top: 2rem;
}

.process-video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.roof-layers {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.roof-layers li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-left: 6px solid var(--hipos-red);
  background: var(--surface);
  box-shadow: 0 12px 40px rgba(23, 23, 23, 0.06);
}

.roof-layers span {
  grid-row: span 2;
  color: var(--hipos-red);
  font-weight: 950;
}

.roof-layers strong {
  font-size: 1.08rem;
}

.roof-layers p {
  margin: 0;
  color: rgba(23, 23, 23, 0.72);
}

.packages-section {
  background: var(--surface-soft);
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(1.25rem, 2.2vw, 1.8rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 50px rgba(23, 23, 23, 0.08);
}

.package-card-featured {
  border: 3px solid var(--hipos-red);
  transform: translateY(-0.6rem);
}

.package-kicker,
.package-badge {
  margin: 0 0 0.7rem;
  color: var(--hipos-red);
  font-weight: 950;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.package-badge {
  width: fit-content;
  background: var(--hipos-red);
  color: var(--surface);
  padding: 0.4rem 0.62rem;
  border-radius: 999px;
}

.package-card h3 {
  font-size: 2.9rem;
  letter-spacing: 0;
}

.price-note {
  margin-top: 0;
  color: var(--steel);
  font-size: 0.95rem;
  font-weight: 800;
}

.package-card ul {
  display: grid;
  gap: 0.55rem;
  margin: auto 0 0;
  padding: 1.2rem 0 0;
  list-style: none;
}

.package-card li {
  position: relative;
  padding-left: 1.2rem;
}

.package-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--hipos-red);
}

.quote-section {
  min-height: 72vh;
}

.quote-content {
  max-width: 980px;
  border-left: 8px solid var(--hipos-red);
  padding-left: clamp(1.2rem, 3vw, 2rem);
}

blockquote {
  margin: 1.7rem 0;
  max-width: 980px;
  font-size: 5rem;
  font-weight: 950;
  line-height: 0.98;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 2rem;
  background: var(--line);
  border: 1px solid var(--line);
}

.stats-grid div {
  display: grid;
  gap: 0.35rem;
  padding: 1.3rem;
  background: var(--surface);
}

.stats-grid strong {
  font-size: 1.9rem;
  line-height: 1;
}

.stats-grid span {
  color: rgba(23, 23, 23, 0.7);
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.reference-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.reference-card img,
.reference-card video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.reference-card h3,
.reference-card p {
  padding-inline: 1rem;
}

.reference-card h3 {
  padding-top: 1rem;
}

.reference-card p {
  margin: 0 0 1.1rem;
  color: rgba(23, 23, 23, 0.72);
}

.contact-section {
  background:
    linear-gradient(90deg, var(--surface) 0 62%, var(--surface-soft) 62% 100%);
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.6rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: min(100%, 440px);
  background: var(--surface);
}

.contact-card strong,
.contact-card span,
.contact-card a {
  display: block;
}

.contact-card span:not(.contact-label) {
  color: var(--steel);
}

.contact-label {
  margin-bottom: 0.35rem;
  color: var(--hipos-red);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.contact-card a {
  color: var(--hipos-red);
  font-weight: 950;
  text-decoration: none;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.78rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 950;
}

.button-primary {
  background: var(--hipos-red);
  color: var(--surface);
}

.button-secondary {
  border: 1px solid var(--ink);
  background: var(--surface);
}

.next-step-panel {
  padding: clamp(1.2rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.next-step-panel h3 {
  max-width: 520px;
}

.next-step-panel ol {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 0.8rem;
}

.next-step-panel li {
  position: relative;
  counter-increment: step;
  padding: 0.9rem 0 0.9rem 3.2rem;
  color: rgba(23, 23, 23, 0.74);
  border-top: 1px solid var(--line);
}

.next-step-panel li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.85rem;
  color: var(--hipos-red);
  font-weight: 950;
}

.page-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem clamp(1rem, 3vw, 2.5rem);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.86rem;
}

.page-footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 3.1rem;
  }

  blockquote {
    font-size: 3.7rem;
  }

  .split-section,
  .layer-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .package-grid,
  .reference-grid {
    grid-template-columns: 1fr;
  }

  .package-card-featured {
    transform: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-section {
    background: var(--surface);
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 66px;
  }

  body {
    font-size: 16px;
  }

  .site-header {
    padding-inline: 0.85rem;
  }

  .brand img {
    width: 120px;
  }

  .section-panel {
    min-height: auto;
    padding-top: calc(var(--header-height) + 2.5rem);
    padding-bottom: 3.5rem;
  }

  h1 {
    font-size: 2.6rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  h3 {
    font-size: 1.28rem;
  }

  .hero-lead,
  .section-heading p,
  .section-copy > p,
  .quote-content > p,
  .contact-copy > p {
    font-size: 1.06rem;
  }

  .package-card h3 {
    font-size: 2.2rem;
  }

  blockquote {
    font-size: 2.55rem;
  }

  .stats-grid strong {
    font-size: 1.55rem;
  }

  .hero {
    min-height: 96vh;
  }

  .hero-media::after {
    background: rgba(23, 23, 23, 0.72);
  }

  .hero-outline {
    right: -10%;
    top: 16%;
    width: 70vw;
    opacity: 0.5;
  }

  .meta-strip {
    grid-template-columns: 1fr;
  }

  .hotspot {
    position: static;
    display: inline-flex;
    margin: 0.5rem 0.35rem 0 0.5rem;
  }

  .hotspot::before {
    display: none;
  }

  .hotspot span {
    position: static;
    transform: none;
    margin-left: 1.6rem;
  }

  .roof-hotspot-frame {
    aspect-ratio: auto;
    overflow: visible;
    background: transparent;
    box-shadow: none;
  }

  .roof-hotspot-frame img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .roof-hotspot-frame figcaption {
    position: static;
    margin-top: 0.65rem;
    max-width: none;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--hipos-red);
  }

  .photo-strip {
    grid-template-columns: 1fr;
  }

  .comparison-images {
    aspect-ratio: 4 / 3;
  }

  .comparison-control {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .cta-row {
    display: grid;
  }
}
