.roof-page {
  container-name: exterior roof;
  --roof-dark: #102c47;
  --roof-surface: #eaf1f7;
}
.roof-page .roof-hero .ext-hero__copy { width: 49%; }
.roof-hero .ext-hero__photo { left: 35%; }
.roof-hero .ext-hero__photo img { object-position: 66% 41%; }
.roof-hero .ext-hero__photo::after { background: linear-gradient(90deg,#f8fafb,#f8fafbea 15%,#f8fafb90 27%,transparent 49%); }
.roof-hero .ext-benefits span { max-width: 19ch; }
.roof-page .ext-paper { background: linear-gradient(135deg,#fdfefe,#f2f6fa); }
.roof-page .roof-comparison { background: var(--roof-surface); }
.roof-situations .ext-materials__cards { grid-template-columns: repeat(4,minmax(0,1fr)); }
.roof-situations article h3, .roof-materials article h3 { font-size: clamp(16px,1.52cqi,20px); }
.roof-situations article img { aspect-ratio: 1.62; }
.roof-situations article:nth-child(2) img { object-position: center 23%; }
.roof-situations header, .roof-materials header, .roof-works header { align-self: start; }
.roof-comparison__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--ext-gap); margin-top: 16px; }
.roof-comparison article { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); align-items: center; min-width: 0; overflow: hidden; border: 1px solid #fff; border-radius: 15px; background: #fff; }
.roof-comparison article img { height: 100%; min-height: 160px; aspect-ratio: 1.65; object-fit: cover; }
.roof-comparison article > div { padding: 15px; }
.roof-comparison article h3 { font-size: clamp(18px,1.7cqi,24px); }
.roof-comparison article p { margin-top: 7px; font-size: 15px; }

.roof-technical { display: grid; grid-template-columns: minmax(0,1fr); gap: var(--ext-gap); align-items: start; }
.roof-technical__system { display: grid; grid-template-columns: minmax(0,2.1fr) minmax(0,1fr); gap: 11px; align-items: start; }
.roof-technical__render { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; background: #e3ecf4; }
.roof-technical__render img { height: 100%; object-fit: fill; }
.roof-technical figure figcaption { margin-top: 7px; font-size: 13px; color: var(--ext-muted); line-height: 1.35; }
.roof-point {
  position: absolute;
  z-index: 1;
  top: var(--roof-y);
  left: var(--roof-x);
  transform: translate(-50%,-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.roof-point[hidden] { display: none; }
.roof-point span { display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid white; border-radius: 50%; background: #bc4b00; box-shadow: 0 3px 8px #102c4764; font-size: 22px; font-weight: 650; line-height: 1; transition: transform .16s ease,background-color .16s ease; }
.roof-point:is([aria-expanded="true"],.is-highlighted,:focus-visible) span { transform: scale(1.15); background: var(--roof-dark); }
.roof-point[data-roof-point="cover"] { --roof-x: 63%; --roof-y: 31%; }
.roof-point[data-roof-point="frame"] { --roof-x: 29%; --roof-y: 48%; }
.roof-point[data-roof-point="slope"] { --roof-x: 83%; --roof-y: 36%; }
.roof-point[data-roof-point="fixing"] { --roof-x: 15.8%; --roof-y: 66%; }
.roof-point[data-roof-point="joint"] { --roof-x: 44%; --roof-y: 22%; }
.roof-technical__details { display: grid; gap: 7px; }
.roof-technical__details details { border: 1px solid #dbe6ee; border-radius: 9px; background: #fff; overflow: hidden; }
.roof-technical__details details[open] { border-color: #e5b595; background: #fff5eb; }
.roof-technical__details summary { display: flex; align-items: center; gap: 8px; min-height: 43px; padding: 7px 9px; list-style: none; font-weight: 740; font-size: 14px; line-height: 1.22; cursor: pointer; }
.roof-technical__details summary::-webkit-details-marker { display: none; }
.roof-technical__details summary::before { content: ""; width: 7px; height: 7px; flex: none; border: 1px solid #c05712; border-radius: 50%; }
.roof-technical__details details[open] summary::before { background: #c05712; }
.roof-technical__details summary:focus-visible { outline-offset: -3px; }
.roof-technical__details details p { padding: 0 9px 10px 24px; font-size: 14px; }
.roof-technical__details details.is-highlighted { border-color: #c05712; }
.roof-technical .roof-preparation { grid-column: auto; }
.roof-preparation h3 { color: #fff; font-size: clamp(18px,1.7cqi,24px); }
.roof-preparation h3 em { color: var(--ext-highlight); }
.roof-preparation p:last-child { grid-column: 1 / -1; font-size: 13px; padding-top: 10px; border-top: 1px solid #ffffff38; }

.roof-works__gallery { display: grid; grid-template-columns: minmax(0,1.35fr) repeat(2,minmax(0,1fr)); grid-auto-rows: clamp(106px,12.5cqi,175px); gap: 9px; }
.roof-works__gallery a { display: block; overflow: hidden; border-radius: 12px; background: #e0eaf1; }
.roof-works__gallery a:first-of-type { grid-row: span 2; }
.roof-works__gallery a:last-of-type { grid-column: span 2; }
.roof-works__gallery img { height: 100%; object-fit: cover; transition: transform .22s ease; }
.roof-works__gallery a:hover img { transform: scale(1.045); }
.roof-works__gallery a:nth-of-type(2) img { object-position: center 42%; }
.roof-works__gallery a:nth-of-type(3) img { object-position: center 35%; }
.roof-works__gallery a:last-of-type img { object-position: center 41%; }
.roof-contact .ext-contact__photo img { object-position: 47% center; }

@container roof (min-width: 1020px) {
  .roof-technical { grid-template-columns: minmax(0,1fr) minmax(0,3.7fr); align-items: center; }
  .roof-technical .roof-preparation { grid-column: 1 / -1; }
}
@container roof (min-width: 1250px) {
  .roof-technical { grid-template-columns: minmax(0,.92fr) minmax(0,3.2fr) minmax(0,1.27fr); }
  .roof-technical .roof-preparation { grid-column: auto; grid-template-columns: minmax(0,1fr); gap: 10px; }
  .roof-preparation ul { grid-template-columns: minmax(0,1fr); }
}
@container roof (min-width: 1101px) {
  .roof-price { grid-template-columns: minmax(0,1.62fr) minmax(0,3.8fr) minmax(0,1fr); }
  .ovd-main .roof-price h2 { font-size: clamp(27px,2.55cqi,36px); }
}
@container roof (max-width: 970px) {
  .roof-situations { grid-template-columns: minmax(0,1fr); }
}
@container roof (max-width: 780px) {
  .roof-comparison article { grid-template-columns: minmax(0,1fr); align-content: start; }
  .roof-comparison article img { height: auto; min-height: 0; }
  .roof-technical__system { grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); }
}
@container roof (max-width: 620px) {
  .roof-page .roof-hero .ext-hero__copy { width: auto; grid-row: 1; }
  .roof-hero { min-height: 0; }
  .roof-hero .ext-hero__photo { position: relative; inset: auto; grid-row: 2; height: clamp(210px,57cqi,290px); }
  .roof-hero .ext-hero__photo::after { background: linear-gradient(180deg,#f8fafb,transparent 24%); }
  .roof-situations .ext-materials__cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .roof-situations article { display: block; }
  .roof-situations article img { height: auto; aspect-ratio: 1.35; }
  .roof-works__gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .roof-works__gallery a:first-of-type { grid-row: span 2; grid-column: span 2; }
}
@container roof (max-width: 510px) {
  .roof-technical__system { grid-template-columns: minmax(0,1fr); }
  .roof-comparison__grid { grid-template-columns: minmax(0,1fr); }
  .roof-comparison article { grid-template-columns: minmax(0,1fr); }
  .roof-comparison article img { aspect-ratio: 1.9; }
}
@media (prefers-reduced-motion: reduce) {
  .roof-point span, .roof-works__gallery img { transition: none; }
}
.roof-works__gallery[data-service-case-list] > a:only-child { grid-column: 1/-1; }
