* {
    box-sizing: border-box;
    font-family: sans-serif;
}

body {
    padding: 0;
    margin: 0;
    line-height: 1.6;
    color: #222;
    background-color: #f8f8f8;
}

a {
    color: #b30000;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #d00000;
}
.decimal-ul {
    list-style: decimal;
}

/* === SELECT === */
select {
  width: 100%;         
  max-width: 500px;    
  padding: 8px 12px;
  font-size: 16px;
  line-height: 1.4;
  box-sizing: border-box;
  white-space: normal;       
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.img-map {
    max-width: 100%;   
    height: auto;      
    display: block;    
}

.wrapping-pictures {
    float: left;
    margin: 0 15px 15px 0;
}
@media (max-width: 768px) {
    .wrapping-pictures {
        float: none;           
        display: block;       
        margin: 0 auto 15px;  
    }
}

/* option, optgroup */
select option,
select optgroup {
  white-space: normal;       
  word-wrap: break-word;
  overflow-wrap: break-word;
  padding: 4px 8px;
  line-height: 1.4;
}

select::-ms-expand {
  display: none;
}

.select-container {
  width: 100%;
  max-width: 500px;
}


/* === ОСНОВНОЙ КОНТЕЙНЕР === */
.container {
    max-width: 1200px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-areas:
        "header header"
        "content sidebar"
        "footer footer";
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto 1fr auto;
    grid-gap: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* === HEADER === */
header {
    grid-area: header;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

header h1 {
    color: #b30000;
    font-size: 2rem;
    margin-bottom: 10px;
}

/* === НАВИГАЦИЯ === */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

nav li a.nav-header {
    padding: 8px 14px;
    background: #b30000;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

nav li a.nav-header:hover {
    background: #d00000;
}

/* === КОНТЕНТ === */
section {
    grid-area: content;
}

article {
    padding: 10px 0;
}

article h2 {
    color: #b30000;
    margin-bottom: 10px;
}

article ul {
    margin: 15px 0;
    padding-left: 20px;
}

article footer {
    margin-top: 20px;
    font-style: italic;
    color: #555;
}

/* === ASIDE === */
aside {
    grid-area: sidebar;
    background: #f2f2f2;
    padding: 15px;
    border-radius: 8px;
}

aside section {
    margin-bottom: 25px;
}

aside h2 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #333;
    border-left: 4px solid #b30000;
    padding-left: 8px;
}

aside img,
aside iframe {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.aside-nav {
    list-style: inside;
    padding: 0;
    margin: 0;
    display: block;
}

.aside-nav li {
    margin-bottom: 8px;
}

.aside-nav li a {
    text-decoration: none;
    color: #b30000;
    transition: color 0.3s;
}

.aside-nav li a:hover {
    color: #d00000;
}

/* === FOOTER === */
footer {
    grid-area: footer;
    text-align: center;
    padding: 15px 0;
    border-top: 2px solid #eee;
    font-size: 0.9rem;
    color: #666;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 900px) {
    .container {
        grid-template-areas:
            "header"
            "content"
            "sidebar"
            "footer";
        grid-template-columns: 1fr;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }
}