/* Presentation web (brands with Brand.web); colours and fonts come from the brand's variables. */
.container-wide { max-width: 1192px; }
.container-text { max-width: 760px; }
/* A section across the whole window inside a centred container. */
.full-bleed { width: 100vw; margin-left: calc(50% - 50vw); }
.more { font-weight: 600; }
.more a, a.more { color: var(--blue); text-decoration: none; border-bottom: 2px solid var(--orange); }
.eyebrow {
  margin: 0 0 4px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--orange);
}
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin: 0 0 16px; }
.section-head h2 { margin: 0; }

/* Home: the brand headline on navy next to a large photo (the photo is never covered by the text). */
.home { padding-top: 0; }
.hero { display: grid; background: var(--blue); color: #fff; }
.hero-media { position: relative; min-height: 300px; height: 62vw; max-height: 70vh; overflow: hidden; background: var(--blue-deep); }
.hero-image {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 60%;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-image.is-active { opacity: 1; }
.hero-dots { position: absolute; z-index: 1; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 4px; }
.hero-dots button {
  width: 28px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center;
}
.hero-dots button::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(10, 35, 64, 0.25); transition: background 0.2s, transform 0.2s;
}
.hero-dots button[aria-current]::before { background: #fff; transform: scale(1.25); }
.hero-dots button:focus-visible { outline: 2px solid var(--orange); outline-offset: -4px; border-radius: 50%; }
@media (prefers-reduced-motion: reduce) { .hero-image { transition: none; } }
.hero-content { padding: 36px 16px 44px; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.5rem); line-height: 1.08; margin: 0 0 16px; }
.hero-lead { font-size: 1.12rem; color: rgba(255, 255, 255, 0.86); }
.hero-lead p { margin: 0 0 8px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions .button { width: auto; margin: 0; padding: 14px 28px; }
@media (max-width: 640px) { .hero-actions .button { width: 100%; } }
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: clamp(480px, 70vh, 680px); }
  .hero-media { order: 2; height: auto; max-height: none; min-height: 100%; }
  .hero-content { order: 1; align-self: center; padding: 48px 48px 56px max(16px, calc((100vw - 1192px) / 2 + 16px)); }
}
.hero-plain .hero-content { max-width: 1192px; margin: 0 auto; }
.button-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85); }
.button-ghost:hover { background: rgba(255, 255, 255, 0.12); filter: none; }

/* Facts under the photo. */
.facts-strip { background: #fff; border-bottom: 1px solid var(--border); }
.facts-strip ul {
  list-style: none; margin: 0 auto; padding: 28px 16px; max-width: 1192px;
  display: grid; gap: 20px 32px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.facts-strip li { border-left: 3px solid var(--orange); padding-left: 14px; }
.facts-strip strong { display: block; font-family: var(--font-heading); font-weight: 600; color: var(--blue); font-size: 1.1rem; }
.facts-strip span { color: var(--muted); font-size: 0.95rem; }

.home-lines { margin: 56px 0 8px; }
.home-lines h2, .home-card h2 { font-size: 1.7rem; color: var(--blue); }

/* Warranty band. */
.warranty-band { background: var(--blue); color: rgba(255, 255, 255, 0.88); margin-top: 64px; }
.warranty-band-inner {
  max-width: 1192px; margin: 0 auto; padding: 48px 16px; display: grid; gap: 24px 40px; align-items: center;
}
@media (min-width: 760px) { .warranty-band-inner { grid-template-columns: auto 1fr; } }
.warranty-band h2 { color: #fff; font-size: 1.8rem; margin: 0 0 10px; }
.warranty-band p { max-width: 40rem; }
.warranty-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 20px; }
.warranty-actions .button { width: auto; margin: 0; padding: 14px 28px; }
.warranty-band a.more { color: #fff; }
.warranty-badge {
  display: grid; place-items: center; align-content: center; width: 132px; height: 132px; margin: 0; border-radius: 50%;
  background: var(--orange); color: var(--blue); font-family: var(--font-heading); font-weight: 600; line-height: 1;
  font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.08em;
}
.warranty-badge span { font-size: 3.4rem; letter-spacing: -0.02em; }

.home-columns { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 760px) { .home-columns { grid-template-columns: 1fr 1fr; } }
.home-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 24px 12px; }
.home-card h2 { font-size: 1.35rem; margin: 0 0 8px; }
.home-card p { margin: 0 0 12px; }

/* Mattress cards. */
.line-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
/* Home: one row per kind of core where it fits (5 spring, 4 foam lines). */
.home-lines .line-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.line-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}
.line-card:hover { box-shadow: 0 14px 34px rgba(15, 47, 81, 0.14); transform: translateY(-3px); }
.line-card-media { display: block; aspect-ratio: 4 / 3; background: var(--sand); }
.line-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.line-card-cutout .line-card-media { background: radial-gradient(ellipse at 50% 60%, #fff 0%, var(--sand) 78%); padding: 14px 10px; }
.line-card-cutout .line-card-media img { object-fit: contain; transition: transform 0.3s; }
.line-card-cutout:hover .line-card-media img { transform: scale(1.04); }
.line-card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.line-card-name { font-family: var(--font-heading); font-weight: 600; font-size: 1.2rem; color: var(--blue); }
.line-card-summary { font-size: 0.93rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.chip { font-size: 0.78rem; background: var(--blue-tint); color: var(--blue); border-radius: 999px; padding: 2px 10px; }

/* Filters of the mattress list. */
.filters { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: end; margin: 0 0 24px; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 0.9rem; }
.filters select { min-width: 200px; }
.filters-reset { font-size: 0.9rem; }

/* Product page. */
.breadcrumbs { font-size: 0.9rem; color: var(--muted); margin: 4px 0 16px; }
.breadcrumbs a { color: var(--muted); }
.line-top { display: grid; gap: 28px; }
@media (min-width: 1000px) { .line-top { grid-template-columns: minmax(0, 600px) 1fr; gap: 48px; align-items: start; } }
.gallery-main { display: block; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.gallery-main img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-main.gallery-cutout { background: radial-gradient(ellipse at 50% 60%, #fff 0%, var(--sand) 80%); padding: 24px 16px; }
.gallery-main.gallery-cutout img { object-fit: contain; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; margin-top: 10px; }
.gallery-thumb { display: block; border-radius: 10px; overflow: hidden; background: var(--sand); outline: 2px solid transparent; outline-offset: 1px; }
.gallery-thumb[aria-current] { outline-color: var(--orange); }
.gallery-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-thumb.gallery-cutout { background: #fff; }
.gallery-thumb.gallery-cutout img { object-fit: contain; padding: 4px; }
.line-intro h1 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; margin: 0 0 10px; }
.line-intro .lead { font-size: 1.1rem; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 20px 0 24px; border-top: 1px solid var(--border); }
.facts dt, .facts dd { padding: 9px 0; border-bottom: 1px solid var(--border); margin: 0; }
.facts dt { font-weight: 600; color: var(--muted); padding-right: 20px; }
.warranty-box {
  display: flex; align-items: center; gap: 18px; background: var(--blue); color: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius); padding: 18px 20px;
}
.warranty-box .warranty-badge { width: 78px; height: 78px; flex: none; font-size: 0.75rem; }
.warranty-box .warranty-badge span { font-size: 2rem; }
.warranty-box p { margin: 0 0 10px; }
.warranty-box strong { color: #fff; }
.warranty-box .button-link { margin: 0; width: auto; padding: 10px 22px; min-height: 0; font-size: 1rem; }
.line-section { margin: 56px 0 0; max-width: 820px; }
.line-section h2 { color: var(--blue); font-size: 1.6rem; }
.line-section h3 { font-size: 1.1rem; margin: 18px 0 6px; }
.line-layers { max-width: none; }
.layers-grid { display: grid; gap: 24px 40px; align-items: start; }
@media (min-width: 900px) { .layers-grid { grid-template-columns: minmax(0, 1.1fr) 1fr; } }
.layers-images figure { margin: 0 0 12px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.layers-images img { display: block; width: 100%; height: auto; }
.layers-images figcaption { padding: 0 16px 12px; font-family: var(--font-heading); font-weight: 600; color: var(--blue); text-align: center; }
@media (min-width: 600px) { .layers-images-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .layers-images-pair figure { margin: 0; } }
.layers { list-style: none; counter-reset: layer; padding: 0; margin: 0; }
.layers li { counter-increment: layer; position: relative; padding: 0 0 14px 46px; margin: 0 0 14px; border-bottom: 1px solid var(--border); }
.layers li::before {
  content: counter(layer); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--blue); color: #fff; font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem;
}
.layers strong { display: block; color: var(--blue); }
.layers span { color: var(--muted); font-size: 0.95rem; }
.downloads { padding-left: 1.2em; }

/* Text pages. */
.has-hero { padding-top: 0; }
.page-hero { position: relative; min-height: clamp(300px, 42vh, 440px); display: grid; align-items: end; background: var(--blue); overflow: hidden; margin-bottom: 32px; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 35, 64, 0.8) 0%, rgba(10, 35, 64, 0.1) 60%); }
.page-hero h1 { position: relative; z-index: 1; color: #fff; width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px 28px; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.1; }
.page h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.15; margin-top: 16px; }
.page h2 { color: var(--blue); font-size: 1.5rem; margin-top: 36px; }
.page h3 { font-size: 1.1rem; margin: 22px 0 6px; color: var(--blue); }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: 6px; }
.page > p:first-of-type { font-size: 1.1rem; }
.page-gallery { margin-top: 48px; }
.page-gallery-grid {
  max-width: 1192px; margin: 0 auto; padding: 0 16px; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.page-gallery figure { margin: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.page-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.page-gallery figcaption { padding: 10px 14px; font-family: var(--font-heading); font-weight: 600; color: var(--blue); }

/* Materials (Technologie a materiály): groups of cards as on chenotte.it/materiali. */
.materials { padding: 48px 0 16px; }
.materials:nth-of-type(odd) { background: #fff; }
.materials:first-of-type { margin-top: 40px; }
.materials-inner { max-width: 1192px; margin: 0 auto; padding: 0 16px; }
.materials h2 { color: var(--blue); font-size: 1.7rem; margin: 0 0 24px; }
.material-grid { display: grid; gap: 10px 16px; grid-template-columns: repeat(auto-fill, minmax(min(200px, 40vw), 1fr)); }
/* Name, photo and text of the cards in a row line up even when a name takes two lines. */
.material { display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start; margin-bottom: 28px; }
.material h3 { color: var(--blue); font-size: 1.08rem; margin: 0; align-self: end; }
.material img, .material-placeholder {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--border);
}
.material-placeholder { background: repeating-linear-gradient(135deg, var(--sand) 0 10px, #f6f1e8 10px 20px); }
.material p { margin: 2px 0 0; font-size: 0.93rem; color: var(--muted); }
