/*
Theme Name: Maverick SK Graphite
Template: mavericksk-modern
Description: Graphite and Maverick red visual layer for the Maverick SK showroom site. Requires the Maverick SK Modern Craft parent theme.
Author: Maverick SK
Version: 1.4.2
Requires PHP: 8.2
Requires at least: 6.9
Text Domain: mavericksk-graphite
*/

/* Layout: plaster page, white panels, graphite type; photos in white "door jamb" frames;
   the logo's red slash is the one accent. Everything is an override of the parent's site.css. */

:root {
  --mav-bg: #f3f2ef;
  --mav-bg-soft: #f8f7f5;
  --mav-surface: #ffffff;
  --mav-surface-muted: #e8e6e1;
  --mav-ink: #1c1d1f;
  --mav-muted: #5c5b56;
  --mav-oak: #1c1d1f;
  --mav-charcoal: #1c1d1f;
  --mav-charcoal-2: #2a2b2e;
  --mav-gold: #c8102e;
  --mav-sage: #6a6964;
  --mav-outline: rgba(28, 29, 31, 0.13);
  --mav-outline-strong: rgba(28, 29, 31, 0.3);
  --mav-shadow: none;
  --mav-radius: 2px;

  --mavg-red: #c8102e;
  --mavg-oak: #9a6b3e;
  --mavg-display: "Fraunces", Georgia, serif;
  --mavg-body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  /* Labels use the body face; the name is kept so existing rules still apply. */
  --mavg-mono: var(--mavg-body);
}

body {
  font-family: var(--mavg-body);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--mavg-red);
  outline-offset: 3px;
}

/* ---------- Type ---------- */

.mav-page-title,
.mav-section-title,
.mav-home-hero h1,
.mav-home-hero__mobile-static h2,
.mav-card h2,
.mav-card h3,
.mav-contact-card h2,
.mav-offer-section h2,
.mav-hours-card h2,
.mav-map-section h2,
.mav-sample-group h3,
.mav-legacy-content h1,
.mav-legacy-content h2,
.mav-legacy-content h3,
.mav-content h1,
.mav-content h2,
.mav-content h3,
.mav-footer h2,
.mav-footer h3 {
  color: var(--mav-ink);
  font-family: var(--mavg-display);
  font-variation-settings: "SOFT" 60, "WONK" 0;
  font-weight: 560;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.mav-page-title {
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1;
}

/* The logo's slanted underline, reused under page titles. */
.mav-page-title::after,
.mav-home-hero__mobile-static h2::after {
  background: var(--mavg-red);
  content: "";
  display: block;
  height: 3px;
  margin-top: 22px;
  transform: skewX(-35deg);
  transform-origin: left;
  width: min(220px, 50%);
}

.mav-section-title {
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.04;
}

.mav-kicker,
.mav-card__index,
.mav-hero-proof span,
.mav-hours th {
  color: var(--mav-sage);
  font-family: var(--mavg-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mav-kicker {
  margin-bottom: 10px;
}

.mav-content p,
.mav-content li,
.mav-legacy-content p,
.mav-legacy-content li {
  color: var(--mav-muted);
}

.mav-content a,
.mav-contact-card a:not(.mav-text-link) {
  text-decoration-color: var(--mavg-red);
  text-decoration-thickness: 1.5px;
}

/* ---------- Buttons and links ---------- */

.mav-button,
.mav-form button,
.mav-download {
  border-radius: 2px;
  border-width: 1.5px;
  font-family: var(--mavg-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.mav-button:hover,
.mav-form button:hover,
.mav-download:hover {
  background: var(--mavg-red);
  border-color: var(--mavg-red);
  color: #fff;
  transform: none;
}

.mav-button--ghost {
  background: transparent;
  border-color: var(--mav-charcoal);
  color: var(--mav-charcoal);
}

.mav-button--ghost:hover {
  background: var(--mav-charcoal);
  border-color: var(--mav-charcoal);
}

.mav-text-link {
  color: var(--mav-ink);
  font-family: var(--mavg-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-transform: none;
}

.mav-text-link::after {
  content: "→";
  margin-left: 8px;
  transition: transform 160ms ease;
}

a:hover .mav-text-link::after,
.mav-text-link:hover::after {
  transform: translateX(4px);
}

/* ---------- Top bar and header ---------- */

.mavg-topbar {
  background: var(--mav-charcoal);
  color: #d6d4cf;
  font-family: var(--mavg-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.mavg-topbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  justify-content: space-between;
  padding-bottom: 9px;
  padding-top: 9px;
}

.mavg-topbar strong,
.mavg-topbar a {
  color: #fff;
  font-weight: 500;
}

.mavg-topbar a:hover {
  text-decoration: underline;
  text-decoration-color: var(--mavg-red);
}

/* The header stays put instead of hiding on scroll. */
.mav-header,
.mav-header.is-hidden {
  background: #fff;
  backdrop-filter: none;
  box-shadow: none;
  position: sticky;
  top: 0;
  transform: none;
}

.mav-header__inner {
  min-height: 84px;
}

.mav-page,
body.mav-header-visible .mav-page {
  padding-top: 64px;
}

.mav-front-content,
.mav-front-content:has(.mav-home-hero--video),
body.mav-header-visible .mav-front-content:has(.mav-home-hero--video),
body.mav-header-hidden .mav-front-content:has(.mav-home-hero--video) {
  padding-top: 0;
}

.mav-logo {
  min-width: 0;
}

/* The logo file is a square with wide margins; crop to the wordmark. */
.mav-logo img {
  height: 66px;
  object-fit: cover;
  object-position: 50% 42%;
  width: 156px;
}

.mav-logo span {
  border-left: 1px solid var(--mav-outline);
  color: var(--mav-sage);
  font-family: var(--mavg-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.5;
  padding-left: 14px;
  text-transform: uppercase;
}

.mav-nav {
  gap: 30px;
}

.mav-nav a,
.mav-dropdown-toggle {
  border-bottom: 2px solid transparent;
  color: var(--mav-ink);
  font-size: 15px;
  font-weight: 500;
  padding-bottom: 3px;
  padding-top: 5px;
}

.mav-nav a:hover,
.mav-dropdown-toggle:hover,
.mav-nav .is-active {
  border-bottom-color: var(--mav-ink);
  color: var(--mav-ink);
}

.mav-dropdown {
  border-radius: 2px;
  box-shadow: 0 18px 40px rgba(28, 29, 31, 0.12);
  padding: 6px;
}

.mav-dropdown a {
  border-bottom: 0;
  border-radius: 0;
  padding: 10px 12px;
}

.mav-dropdown a:hover {
  background: var(--mav-bg);
}

.mav-menu-toggle {
  background: var(--mav-charcoal);
  border-radius: 2px;
  box-shadow: none;
}

/* ---------- Homepage hero ---------- */

@media (min-width: 861px) {
  /* The whole hero (headline, buttons and photo) fits the first screen below the top bar and header. */
  .mav-home-hero--video {
    align-items: center;
    display: grid;
    gap: clamp(32px, 5vw, 80px);
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    margin: 0;
    padding: clamp(24px, 4vh, 48px) 0 clamp(32px, 5vh, 64px);
    width: auto;
  }

  .mav-home-hero--video .mav-home-hero__mobile-static h2 {
    font-size: clamp(40px, min(6.4vw, 9.5vh), 84px);
    margin-bottom: 22px;
  }

  .mav-home-hero--video .mav-home-hero__mobile-static h2::after {
    margin-top: 20px;
  }

  .mav-home-hero__mobile-static {
    display: contents;
  }

  /* The parent's widescreen video has headline text baked in, which would be cut off in a
     portrait frame, so desktop shows the still interior photo instead. */
  .mav-home-hero--video .mav-home-hero__media,
  .mav-home-hero__overlay {
    display: none;
  }

  .mav-home-hero__copy {
    grid-column: 1;
    grid-row: 1;
    padding-bottom: 0;
  }

  .mav-home-hero__mobile-static p {
    color: var(--mav-muted);
    font-size: 18px;
    margin: 0 0 28px;
    max-width: 46ch;
  }

  /* The showroom photo sits in a tall, door-proportioned frame. */
  .mav-home-hero__mobile-media {
    aspect-ratio: 4 / 5;
    background: var(--mav-surface-muted);
    border: 0;
    border-radius: 0;
    box-shadow: 0 0 0 1px var(--mav-outline);
    grid-column: 2;
    grid-row: 1;
    height: clamp(320px, calc(100svh - 290px), 640px);
    justify-self: end;
    margin: 0;
    max-width: 100%;
    min-height: 0;
    outline: 12px solid #fff;
    outline-offset: -12px;
    width: auto;
  }

  .mav-home-hero__mobile-media img {
    height: 100%;
    min-height: 0;
    object-fit: cover;
  }

  .mav-home-hero__mobile-media figcaption {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 0;
    bottom: 12px;
    color: var(--mav-ink);
    font-family: var(--mavg-mono);
    font-size: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
    right: 12px;
  }
}

.mav-home-hero__mobile-static h2 {
  font-size: clamp(44px, 6.4vw, 84px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 28px;
}

.mav-home-hero__mobile-static h2::after {
  margin-top: 26px;
}

@media (max-width: 860px) {
  .mav-home-hero--video {
    background: var(--mav-bg);
    padding: 48px 28px 40px;
  }

  .mav-home-hero__mobile-media {
    border: 0;
    border-radius: 0;
    box-shadow: 0 0 0 1px var(--mav-outline);
    outline: 10px solid #fff;
    outline-offset: -10px;
  }

  .mav-home-hero__mobile-media figcaption {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 0;
    bottom: 10px;
    color: var(--mav-ink);
    font-family: var(--mavg-mono);
    font-size: 12px;
    left: 10px;
    max-width: calc(100% - 20px);
  }
}

/* ---------- Sections ---------- */

.mav-section {
  padding-bottom: clamp(64px, 8vw, 104px);
  padding-top: clamp(64px, 8vw, 104px);
}

/* Category grid: the three main lines as large photo tiles, the rest as compact links. */
.mav-home-categories {
  background: #fff;
  border-bottom: 1px solid var(--mav-outline);
  border-top: 1px solid var(--mav-outline);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}

.mav-category-grid {
  column-gap: 20px;
  row-gap: 0;
}

.mav-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.mav-category-card .mav-card__image {
  aspect-ratio: 3 / 4;
  background: var(--mav-bg);
}

.mav-category-card .mav-card__body {
  gap: 6px;
  min-height: 0;
  padding: 16px 0 40px;
}

.mav-category-card .mav-card__index,
.mav-category-card .mav-text-link {
  display: none;
}

.mav-category-card h3 {
  align-items: baseline;
  display: flex;
  font-size: 26px;
  justify-content: space-between;
}

.mav-category-card h3::after {
  content: "→";
  font-family: var(--mavg-body);
  font-weight: 400;
  transition: transform 160ms ease;
}

.mav-category-card a:hover h3::after {
  transform: translateX(4px);
}

.mav-category-card p {
  font-size: 15px;
  max-width: 40ch;
}

/* The parent's frame close-up reads poorly at this size; show a full door and frame instead. */
.mav-category-card:nth-child(2) .mav-card__image {
  background: url("assets/img/zarubne-siva.jpg") 30% 50% / cover no-repeat;
}

.mav-category-card:nth-child(2) .mav-card__image img {
  opacity: 0;
}

.mav-category-card:nth-child(n + 4) {
  border-top: 1px solid var(--mav-ink);
}

.mav-category-card:nth-child(n + 4) .mav-card__image {
  display: none;
}

.mav-category-card:nth-child(n + 4) .mav-card__body {
  padding: 20px 0 8px;
}

.mav-category-card:nth-child(n + 4) h3 {
  font-size: 22px;
}

.mav-category-card:nth-child(n + 4) p {
  font-size: 14px;
}

/* Showroom process band */
.mav-showroom-band {
  background: var(--mav-bg);
  color: var(--mav-ink);
}

.mav-showroom-band__image {
  background: url("assets/img/dvere-orech-chodba.jpg") 70% 60% / cover no-repeat;
}

.mav-showroom-band__image img {
  opacity: 0;
}

.mav-showroom-band .mav-section-title {
  color: var(--mav-ink);
}

.mav-showroom-band .mav-kicker {
  color: var(--mav-sage);
}

.mav-step-list li {
  border-top-color: var(--mav-outline);
  color: var(--mav-muted);
}

.mav-step-list span {
  color: var(--mavg-red);
  font-family: var(--mavg-mono);
  font-weight: 500;
}

/* Supplier logos: a quiet monochrome row */
.mav-logo-grid {
  gap: 0;
}

.mav-logo-tile {
  background: transparent;
  border: 0;
  border-radius: 0;
  border-top: 1px solid var(--mav-outline);
  min-height: 96px;
}

.mav-logo-tile img {
  max-height: 56px;
}

/* Visit call to action */
.mav-visit-cta {
  background: var(--mav-charcoal);
  border: 0;
  border-radius: 0;
  color: #fff;
}

.mav-visit-cta .mav-section-title,
.mav-visit-cta h2 {
  color: #fff;
}

.mav-visit-cta .mav-kicker {
  color: #ff8a98;
}

.mav-visit-cta p {
  color: #c9c7c1;
}

.mav-visit-cta .mav-button {
  background: #fff;
  border-color: #fff;
  color: var(--mav-ink);
}

.mav-visit-cta .mav-button:hover {
  background: var(--mavg-red);
  border-color: var(--mavg-red);
  color: #fff;
}

.mav-visit-cta .mav-button--ghost {
  background: transparent;
  color: #fff;
}

/* ---------- Ponuka (offer) page ---------- */

.mav-offer-hero {
  border-bottom-color: var(--mav-outline-strong);
}

.mav-anchor-nav {
  gap: 0;
}

.mav-anchor-nav a {
  background: transparent;
  border: 0;
  border-radius: 0;
  border-top: 1px solid var(--mav-outline-strong);
  color: var(--mav-ink);
  font-weight: 600;
  padding: 14px 4px;
}

.mav-anchor-nav a::after {
  content: "↓";
  float: right;
  font-weight: 400;
}

.mav-anchor-nav a:hover {
  background: transparent;
  border-color: var(--mav-ink);
  color: var(--mavg-red);
}

.mav-offer-section__image {
  background: #fff;
  border-radius: 0;
  box-shadow: 0 0 0 1px var(--mav-outline);
  outline: 12px solid #fff;
  outline-offset: -12px;
}

.mav-offer-section__body {
  background: transparent;
  border: 0;
  border-radius: 0;
  border-top: 1px solid var(--mav-ink);
  padding: 28px 0 0;
}

.mav-offer-section h2 {
  font-size: clamp(30px, 3.4vw, 44px);
}

.mav-check-list li::before {
  background: var(--mavg-red);
  height: 2px;
  top: 13px;
  transform: skewX(-35deg);
  width: 12px;
}

.mav-gallery-tile,
.mav-sample-card,
.mav-restored-gallery__item {
  background: #fff;
  border-color: var(--mav-outline);
  border-radius: 0;
}

.mav-gallery-tile figcaption,
.mav-sample-card figcaption {
  color: var(--mav-muted);
  font-family: var(--mavg-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mav-gallery-details summary {
  color: var(--mav-ink);
  font-weight: 600;
}

.mav-gallery-details--material {
  background: #fff;
  border-radius: 0;
}

.mav-chip {
  border-radius: 2px;
  font-family: var(--mavg-mono);
  font-weight: 500;
}

/* ---------- Content pages (Voster, Na stiahnutie, Výpredaj…) ---------- */

.mav-legacy-content img,
.mav-content img {
  border-radius: 0;
  box-shadow: 0 0 0 1px var(--mav-outline);
}

.mav-pdf-card {
  align-items: center;
  background: #fff;
  border-left: 3px solid var(--mavg-red);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  justify-content: space-between;
  padding: 22px 24px;
}

.mav-spec-table,
.mav-legacy-content table {
  border-radius: 0;
  box-shadow: 0 0 0 1px var(--mav-outline);
}

/* ---------- Kontakt ---------- */

.mav-contact-card,
.mav-hours-card,
.mav-map-section,
.mav-contact-photo {
  border-radius: 0;
  box-shadow: none;
}

.mav-contact-card {
  border: 0;
  border-top: 2px solid var(--mav-ink);
}

.mav-contact-card h2,
.mav-hours-card h2,
.mav-map-section h2 {
  font-size: 24px;
}

.mav-hours td {
  font-variant-numeric: tabular-nums;
}

.mav-map-section iframe {
  border-radius: 0;
  filter: grayscale(0.6);
}

/* ---------- Footer ---------- */

.mav-footer {
  background: var(--mav-charcoal);
  color: #b9b7b1;
}

.mav-footer h3 {
  font-size: 20px;
}

.mav-footer .mav-logo img {
  background: #fff;
  height: 72px;
  padding: 6px 10px;
  width: 150px;
}

.mav-footer .mav-logo span {
  border-left-color: rgba(255, 255, 255, 0.2);
  color: #b9b7b1;
}

.mav-footer a {
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.mav-footer a:hover {
  color: #fff;
  text-decoration-color: var(--mavg-red);
}

.mav-footer-trust figure {
  border-radius: 0;
}

/* ---------- Mobile ---------- */

@media (max-width: 860px) {
  .mav-header__inner {
    min-height: 68px;
  }

  .mav-logo img {
    height: 44px;
    width: 118px;
  }

  .mav-logo span {
    display: none;
  }

  .mav-nav {
    border-radius: 2px;
    top: 100%;
  }

  .mav-nav > a,
  .mav-nav-item--has-dropdown .mav-dropdown-toggle {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--mav-outline);
    border-radius: 0;
  }

  .mav-page,
  body.mav-header-visible .mav-page {
    padding-top: 40px;
  }

  body.mav-header-visible .mav-front-content:has(.mav-home-hero--video) {
    padding-top: 0;
  }

  .mav-mobile-sticky-contact {
    background: var(--mavg-red);
    border-radius: 2px;
    box-shadow: 0 12px 28px rgba(28, 29, 31, 0.28);
    font-family: var(--mavg-body);
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
  }

  .mav-category-card .mav-card__body {
    padding-bottom: 28px;
  }
}

@media (max-width: 520px) {
  .mavg-topbar__inner > span:first-child {
    display: none;
  }

  .mav-home-hero--video {
    padding: 36px 20px 32px;
  }

  .mav-category-grid {
    grid-template-columns: 1fr;
  }

  .mav-category-card .mav-card__image {
    aspect-ratio: 4 / 3;
  }
}

/* ---------- Dvere and Zárubne pages ---------- */

.mavg-preview-note {
  background: #fff4c2;
  border-left: 3px solid #b38600;
  color: #4d3d00;
  font-size: 14px;
  margin: 0 0 32px;
  padding: 10px 14px;
}

.mavg-core-hero {
  align-items: end;
  display: grid;
  gap: clamp(32px, 5vw, 80px);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  padding-bottom: clamp(48px, 6vw, 88px);
}

.mavg-core-hero__copy .mav-page-lead {
  font-size: 18px;
  margin: 0 0 32px;
  max-width: 48ch;
}

.mavg-core-facts {
  border-top: 1px solid var(--mav-outline);
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 40px 0 0;
  padding: 20px 0 0;
}

.mavg-core-facts li {
  color: var(--mav-muted);
  font-size: 14px;
  line-height: 1.4;
}

.mavg-core-facts strong {
  color: var(--mav-ink);
  display: block;
  font-family: var(--mavg-display);
  font-size: 20px;
  font-weight: 560;
  margin-bottom: 4px;
}

.mavg-core-hero__media {
  aspect-ratio: 4 / 5;
  box-shadow: 0 0 0 1px var(--mav-outline);
  justify-self: end;
  margin: 0;
  max-height: 640px;
  max-width: 520px;
  outline: 12px solid #fff;
  outline-offset: -12px;
  overflow: hidden;
  width: 100%;
}

.mavg-core-hero__media img {
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
  width: 100%;
}

.mavg-core-hero__media--contain {
  background: #fff;
}

.mavg-core-hero__media--contain img {
  object-fit: contain;
  padding: 24px;
}

.mavg-core-section {
  border-top: 1px solid var(--mav-outline);
  padding-bottom: clamp(48px, 6vw, 88px);
  padding-top: clamp(48px, 6vw, 88px);
  scroll-margin-top: 110px;
}

/* Door models in tall white "door frame" tiles */
.mavg-doors {
  display: grid;
  gap: 32px 20px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.mavg-door {
  margin: 0;
}

.mavg-door__image {
  aspect-ratio: 3 / 4.6;
  background: #fff;
  box-shadow: 0 0 0 1px var(--mav-outline);
  overflow: hidden;
}

.mavg-door__image img {
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 300ms ease;
  width: 100%;
}

.mavg-door:hover .mavg-door__image img {
  transform: scale(1.05);
}

.mavg-door figcaption {
  font-family: var(--mavg-display);
  font-size: 19px;
  font-weight: 560;
  line-height: 1.2;
  padding-top: 12px;
}

.mavg-door figcaption span {
  color: var(--mavg-red);
  display: block;
  font-family: var(--mavg-body);
  font-size: 13px;
  font-weight: 600;
  margin-top: 2px;
}

/* Diagram and option tiles */
.mavg-spec-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.mavg-spec-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mavg-spec {
  margin: 0;
}

.mavg-spec__image {
  align-items: center;
  aspect-ratio: 4 / 3;
  background: #fff;
  box-shadow: 0 0 0 1px var(--mav-outline);
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.mavg-spec__image img {
  max-height: 100%;
  object-fit: contain;
  padding: 18px;
  width: 100%;
}

.mavg-spec--photo .mavg-spec__image img {
  height: 100%;
  object-fit: cover;
  padding: 0;
}

.mavg-spec figcaption {
  color: var(--mav-muted);
  font-size: 15px;
  line-height: 1.5;
  padding-top: 14px;
}

.mavg-spec figcaption strong {
  color: var(--mav-ink);
  display: block;
  font-size: 17px;
  margin-bottom: 4px;
}

.mavg-split {
  align-items: center;
  display: grid;
  gap: clamp(28px, 4vw, 64px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-top: 40px;
}

.mavg-spec-grid + .mavg-split {
  margin-top: 56px;
}

.mav-section-head + .mavg-split {
  margin-top: 0;
}

.mavg-spec--wide .mavg-spec__image {
  aspect-ratio: 5 / 4;
}

.mavg-split__text h3 {
  font-family: var(--mavg-display);
  font-size: 28px;
  font-weight: 560;
  margin: 0 0 14px;
}

.mavg-split__text p {
  font-size: 17px;
}

.mavg-wide-photo {
  margin: 48px 0 0;
}

.mavg-wide-photo img {
  aspect-ratio: 16 / 7;
  box-shadow: 0 0 0 1px var(--mav-outline);
  object-fit: cover;
  width: 100%;
}

.mavg-wide-photo figcaption {
  color: var(--mav-sage);
  font-size: 14px;
  padding-top: 10px;
}

/* Size tables */
.mavg-table {
  background: #fff;
  border-collapse: collapse;
  box-shadow: 0 0 0 1px var(--mav-outline);
  font-variant-numeric: tabular-nums;
  margin-bottom: 24px;
  min-width: 560px;
  width: 100%;
}

.mavg-table th,
.mavg-table td {
  border-bottom: 1px solid var(--mav-outline);
  padding: 14px 16px;
  text-align: left;
}

.mavg-table thead th {
  background: var(--mav-charcoal);
  color: #fff;
  font-weight: 600;
}

.mavg-table tbody th {
  color: var(--mav-muted);
  font-weight: 500;
  width: 34%;
}

.mavg-table td {
  font-weight: 600;
}

.mavg-table--heights {
  max-width: 760px;
}

/* Wall thickness chart */
.mavg-walls {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.mavg-walls li {
  align-items: baseline;
  background: #fff;
  box-shadow: 0 0 0 1px var(--mav-outline);
  display: flex;
  font-variant-numeric: tabular-nums;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 14px;
  white-space: nowrap;
}

.mavg-walls strong {
  font-weight: 700;
}

.mavg-walls span {
  color: var(--mav-muted);
}

.mavg-walls li.is-one-piece {
  box-shadow: inset 3px 0 0 var(--mavg-red), 0 0 0 1px var(--mav-outline);
}

.mavg-legend {
  align-items: center;
  color: var(--mav-sage);
  display: flex;
  font-size: 14px;
  gap: 8px;
  margin-top: 14px;
}

.mavg-legend__mark {
  background: var(--mavg-red);
  display: inline-block;
  height: 14px;
  width: 3px;
}

/* Atypical options */
.mavg-options {
  display: grid;
  margin: 0 0 24px;
}

.mavg-options div {
  border-top: 1px solid var(--mav-outline);
  padding: 14px 0;
}

.mavg-options dt {
  font-weight: 700;
}

.mavg-options dd {
  color: var(--mav-muted);
  margin: 2px 0 0;
}

/* Teaser from Dvere to Zárubne */
.mavg-teaser {
  align-items: center;
  border-top: 1px solid var(--mav-outline);
  display: grid;
  gap: clamp(28px, 4vw, 64px);
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  padding: clamp(48px, 6vw, 88px) 0;
}

.mavg-teaser figure {
  aspect-ratio: 1 / 1;
  background: #fff;
  box-shadow: 0 0 0 1px var(--mav-outline);
  margin: 0;
}

.mavg-teaser img {
  height: 100%;
  object-fit: contain;
  padding: 20px;
  width: 100%;
}

.mavg-core-cta {
  margin-top: 24px;
}

@media (max-width: 1180px) {
  .mavg-spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .mavg-core-hero,
  .mavg-split,
  .mavg-teaser {
    grid-template-columns: 1fr;
  }

  .mavg-core-hero__media {
    aspect-ratio: 4 / 3;
    justify-self: stretch;
    max-width: none;
  }

  .mavg-spec-grid--three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .mavg-core-facts {
    grid-template-columns: 1fr;
  }

  .mavg-doors {
    gap: 24px 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mavg-spec-grid,
  .mavg-spec-grid--two {
    grid-template-columns: 1fr;
  }
}

/* ---------- Zameriavacie protokoly ---------- */

.mavg-protocols-head {
  max-width: 820px;
  padding-bottom: clamp(36px, 5vw, 64px);
}

.mavg-protocols-head a {
  text-decoration: underline;
  text-decoration-color: var(--mavg-red);
  text-underline-offset: 4px;
}

.mavg-protocols {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mavg-protocol {
  background: #fff;
  box-shadow: 0 0 0 1px var(--mav-outline);
  display: grid;
  grid-template-rows: auto 1fr;
}

.mavg-protocol .mavg-spec__image {
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--mav-outline);
  box-shadow: none;
}

.mavg-protocol__body {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 36px);
}

.mavg-protocol__body h2 {
  font-family: var(--mavg-display);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 560;
  line-height: 1.1;
  margin: 0 0 22px;
}

.mavg-protocol__body h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 18px 0 10px;
}

.mavg-protocol__tips {
  color: var(--mav-muted);
  display: grid;
  font-size: 15px;
  gap: 8px;
  margin: 0 0 28px;
  padding-left: 18px;
}

.mavg-protocol__body .mav-button {
  align-self: flex-start;
  margin-top: auto;
}

@media (max-width: 860px) {
  .mavg-protocols {
    grid-template-columns: 1fr;
  }
}

.mavg-core-section .mav-section-head p a {
  color: var(--mav-ink);
  text-decoration: underline;
  text-decoration-color: var(--mavg-red);
  text-underline-offset: 4px;
}

.mavg-spec figcaption .mav-text-link {
  margin-top: 6px;
}
