/**
 * Avaleht LCP — minimaalne above-the-fold CSS (päis + hero).
 * Oluline: .miu-home-hero__grid peab olema display:contents,
 * et copy/photo oleksid .miu-home-hero gridi lapsed (nagu miu-bundle).
 */
:root {
  --miu-header-footer: #3e4e59;
  --miu-ee-mustard: #c9a227;
  --miu-radius: 12px;
  --miu-dark: #0b2b3b;
  --miu-hdr-h: 64px;
  --bs-gutter-x: 1.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Mulish, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--miu-dark);
  background: #fff;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
}

.container,
.container-md {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-left: max(12px, calc(var(--bs-gutter-x) * 0.5));
  padding-right: max(12px, calc(var(--bs-gutter-x) * 0.5));
}

@media (min-width: 768px) {
  .container,
  .container-md {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container,
  .container-md {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container,
  .container-md {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container,
  .container-md {
    max-width: 1320px;
  }
}

#header {
  position: relative;
  z-index: 100;
  background: #fff;
}

#header .miu-hdr,
#header .header-bottom.miu-hdr {
  background: #fff;
  border-bottom: 1px solid #e9edef;
}

#header .miu-hdr__container,
#header .header-bottom__container {
  min-height: var(--miu-hdr-h);
}

#header .miu-hdr__row,
#header .header-bottom__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--miu-hdr-h);
}

#header .header-bottom__logo img,
#header .miu-hdr__logo img {
  height: 48px;
  width: auto;
  max-height: 48px;
  display: block;
}

body.page-index .miu-home-shell {
  padding: 0 0 2rem;
}

body.page-index .miu-home-shell__hero-wrap {
  margin: 0 0 1.25rem;
}

/* Hero grid elab .miu-home-hero peal; wrapper peab olema contents */
body.page-index .miu-home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1.18fr);
  align-items: stretch;
  color: #fff;
  background-color: var(--miu-header-footer);
  border-radius: 0 0 calc(var(--miu-radius) + 6px) calc(var(--miu-radius) + 6px);
  padding: 0;
  min-height: 280px;
}

body.page-index .miu-home-hero__grid {
  display: contents;
}

body.page-index .miu-home-hero__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.85rem 1.85rem 1.75rem;
  background: transparent;
}

body.page-index .miu-home-hero__brand {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

body.page-index .miu-home-hero__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  line-height: 1.1;
  font-weight: 800;
  max-width: 14ch;
  color: #fff;
}

body.page-index .miu-home-hero__lead {
  margin: 0 0 1rem;
  max-width: 34ch;
  line-height: 1.4;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
}

body.page-index .miu-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.page-index .miu-home-hero__aside {
  display: none;
}

body.page-index .miu-home-hero__photo {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  height: 100%;
  background: #2f3c44;
}

body.page-index .miu-home-hero__variant,
body.page-index .miu-home-hero__slide,
body.page-index .miu-home-hero__slide picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

body.page-index .miu-home-hero__slide picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  body.page-index .miu-home-shell__hero-wrap > .container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-left: max(12px, calc(var(--bs-gutter-x) * 0.5));
    padding-right: max(12px, calc(var(--bs-gutter-x) * 0.5));
  }

  body.page-index .miu-home-hero__variant--desktop {
    display: block !important;
  }

  body.page-index .miu-home-hero__variant--mobile {
    display: none !important;
  }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
  body.page-index .miu-home-hero {
    grid-template-columns: minmax(190px, 0.76fr) minmax(0, 1fr);
  }
}

@media (max-width: 767.98px) {
  body.page-index .page-content--home {
    padding-top: 0;
  }

  body.page-index .miu-home-shell__hero-wrap {
    margin: 0 0 1rem;
    width: 100%;
  }

  body.page-index .miu-home-shell__hero-wrap > .container {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  body.page-index .miu-home-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 0;
  }

  body.page-index .miu-home-hero__photo {
    order: -1;
    width: 100%;
    aspect-ratio: 8 / 5;
    height: auto;
  }

  body.page-index .miu-home-hero__copy {
    padding: 1.05rem 1.15rem 1.25rem;
    background-color: var(--miu-header-footer);
  }

  body.page-index .miu-home-hero__variant--desktop {
    display: none !important;
  }

  body.page-index .miu-home-hero__variant--mobile {
    display: block !important;
  }
}
