* { 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;
}

html, body { height: 100%; }
body{
    font-family: Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.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,.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,.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: .95; }
