html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}

header {
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  width: 100%;
  height: 10vh;
  height: 10dvh;
  overflow: visible;
  background-color: #0099ee;
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  column-gap: 5%;
  overflow: visible;
}

.header-logo {
  flex: 0 0 auto;
  align-self: flex-start;
  width: 15vh;
  width: 15dvh;
  height: 15vh;
  height: 15dvh;
  margin-top: 2vh;
  margin-top: 2dvh;
}

.header-logo img {
  display: block;
  width: 100%;
  height: 100%;
}

.header-title {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  max-width: 100%;
  height: 8vh;
  height: 8dvh;
  object-fit: contain;
}

.header-menu {
  flex: 0 0 auto;
}

.header-menu .dropdown-menu {
  min-width: max-content;
}

.header-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 1.75rem;
  height: 1.15rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.header-menu-toggle span {
  display: block;
  width: 100%;
  height: 0.15rem;
  background-color: #fff;
  border-radius: 1px;
}

main {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  padding: 10vh 0 5vh;
  padding: 10dvh 0 5dvh;
  overflow: auto;
}

main .container {
  container-type: inline-size;
  container-name: page;
}

main .container > :last-child {
  margin-bottom: 0;
}

.home-illustration {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.home-intro {
  display: flow-root;
}

img.educator.float-start,
img.workshop.float-start {
  width: 33.333%;
  height: auto;
}

.card-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #333333;
}

a,
a:hover,
a:focus-visible {
  color: #0099ee;
}

.price {
  color: #0099ee;
}

footer {
  flex-shrink: 0;
  width: 100%;
  height: 5vh;
  height: 5dvh;
  background-color: #333333;
}

.footer-inner {
  display: flex;
  align-items: center;
  height: 100%;
  column-gap: 3%;
}

.footer-phone-slot {
  flex: 1 1 auto;
  min-width: 0;
  container-type: inline-size;
}

.footer-phone {
  display: flex;
  align-items: center;
  height: 4vh;
  height: 4dvh;
  text-decoration: none;
  color: #fff;
}

.footer-phone span {
  display: block;
  font-size: min(8vh, 8dvh, 9cqi);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.footer-phone:hover,
.footer-phone:focus-visible {
  color: #fff;
}

.footer-icons {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  column-gap: 2vw;
}

.footer-icons a {
  display: block;
}

.footer-icons img {
  display: block;
  width: auto;
  height: 4vh;
  height: 4dvh;
}

@media (hover: none), (pointer: coarse) {
  .container {
    padding-right: 5%;
    padding-left: 5%;
  }
}

@media (hover: hover) and (pointer: fine) {
  .container {
    max-width: min(1320px, 50vw);
  }

  .home-illustration {
    float: left;
    width: 50%;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
  }

  img.educator.float-start,
  img.workshop.float-start {
    width: 25%;
  }

  .home-intro > p:has(> .home-illustration) {
    margin: 0;
  }

  .card-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  @container page (max-width: 40rem) {
    .card-list {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  .header-title {
    display: none;
  }

  .header-menu {
    flex: 1 1 auto;
    align-self: stretch;
    min-width: 0;
  }

  .header-menu-toggle {
    display: none;
  }

  .header-menu-list {
    display: flex;
    justify-content: space-between;
    position: static;
    float: none;
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    background-image: none;
    box-shadow: none;
  }

  .header-menu-list > li {
    flex: 0 0 auto;
    height: 100%;
  }

  .header-menu-list .dropdown-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0;
    color: #fff;
    background-color: transparent;
    font-size: 2.5vh;
    font-size: 2.5dvh;
    white-space: nowrap;
  }

  .header-menu-list .dropdown-item:hover,
  .header-menu-list .dropdown-item:focus,
  .header-menu-list .dropdown-item:focus-visible,
  .header-menu-list .dropdown-item.active,
  .header-menu-list .dropdown-item:active {
    color: #fff;
    background-color: transparent;
  }

  .header-menu-list .dropdown-item:hover,
  .header-menu-list .dropdown-item:focus-visible {
    text-decoration: underline;
  }

  .footer-phone span {
    font-size: 4vh;
    font-size: 4dvh;
  }
}
