/* Reset stylów */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #eef0f1;
  --wrap-bg: #f9f6e8;
  --header: #f39c12;
  --nav: #1f7ec9;
  --aside: #d9f1e3;
  --footer: #36b37e;
  --muted: #5a646a;
  --gap: 14px;
  --radius: 0;
  --text: #111111;
}

html,
body {
  height: 100%;
}

body {
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Hamburger menu styles */
.nav-toggle {
  display: none;
}

.nav-overlay {
  display: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 4px;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

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

.container {
  background: var(--wrap-bg);
  min-height: 100dvh;
  width: 100%;
  margin-inline: 0;
  display: grid;
  gap: 0;
  padding: 0;
  grid-template-columns: 1fr;
  grid-template-areas:
    'header'
    'nav'
    'main'
    'aside'
    'footer';
}

@media (min-width: 1024px) {
  .container {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    grid-template-columns: 1fr 300px;
    grid-template-areas:
      'header header'
      'nav    nav'
      'main   aside'
      'footer footer';
  }
}

@media (min-width: 1200px) {
  .container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
  }
}

header {
  grid-area: header;
  background: var(--header);
  color: #fff;
  border-radius: var(--radius);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;

  @media (min-width: 1024px) {
    padding: 8px 12px;
  }
}
header .logo {
  background: #fff;
  color: #555555;
  border-radius: 2px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

header .logo::before {
  content: 'Logo';
}

header h1 {
  font-size: 20px;
  font-weight: 800;
}

nav {
  grid-area: nav;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 16px;
  background: var(--nav);
  padding: 6px 10px;
  border-radius: 0;
}

nav a {
  background: transparent;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 4px 8px;
}

@media (min-width: 1024px) {
  nav {
    justify-content: flex-start;
    padding: 8px 20px;
    gap: 20px;
    background: var(--nav);
    border-radius: 0;
  }

  nav a {
    padding: 6px 12px;
    color: #fff;
    background: transparent;
    border-radius: 0;
  }

  nav a:hover,
  nav a:focus {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
  }
}

main {
  grid-area: main;
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);

  @media (min-width: 1024px) {
    background: #fff;
  }
}
main h2 {
  font-size: 20px;
  margin: 10px 0 8px;
}
main p {
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

aside {
  grid-area: aside;
  background: var(--aside);
  border-radius: var(--radius);
  padding: 14px;

  @media (min-width: 1024px) {
    padding: 16px 14px;
  }
}

aside h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

aside p {
  color: #3f4a52;
  margin-bottom: 10px;
  line-height: 1.5;
}
aside div {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(10px, 3vw, 20px);
  font-size: clamp(30px, 7vw, 44px);
  line-height: 1;
  overflow: hidden;
}

aside span {
  display: inline-grid;
  place-items: center;
  width: 1em;
  height: 1em;
}

@media (min-width: 1024px) {
  aside div {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
    column-gap: 12px;
    row-gap: 24px;
    font-size: 72px;
    overflow: visible;
  }
}

footer {
  grid-area: footer;
  background: var(--footer);
  color: #eafff5;
  border-radius: var(--radius);
  padding: 10px 12px;
  text-align: center;
  font-weight: 700;

  @media (min-width: 1024px) {
    padding: 12px;
  }
}

footer p {
  opacity: 0.95;
}

@media (max-width: 1023px) {
  .menu-toggle {
    display: inline-flex;
  }

  header {
    justify-content: space-between;
    position: relative;
    z-index: 1001;
  }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--nav);
    z-index: 1000;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 80px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 999;
    display: none;
    cursor: default;
  }

  .nav-toggle:checked ~ .container nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle:checked ~ .container .nav-overlay {
    display: block;
  }

  nav a {
    display: block;
    width: 200px;
    text-align: center;
    padding: 12px 16px;
    margin: 8px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 18px;
    position: relative;
    z-index: 1002;
  }

  nav a:hover,
  nav a:focus {
    background: rgba(255, 255, 255, 0.2);
  }

  .nav-toggle:checked ~ .container .menu-toggle .hamburger {
    display: none;
  }

  .nav-toggle:checked ~ .container .menu-toggle .close {
    display: inline;
  }
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }

  .nav-overlay {
    display: none !important;
  }

  nav {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto;
    padding: 8px 20px;
    flex-direction: row;
  }
}
