/* Общий стиль */
html, body {
    background: linear-gradient(to right, #e0c3fc, #8ec5fc);
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Заголовки */
header h1, section h2 {
    text-align: center;
    letter-spacing: 0.1cm;
    font-variant: small-caps;
    color: black;
}

/* HEADER */
header {
    background-color: lightpink;
    text-align: center;
    font-size: 16px;
    padding: 20px;
    border-bottom: 2px solid black;
}

/* FOOTER */
footer {
    text-align: center;
    font-weight: bold;
    padding: 20px;
    background-color: lightskyblue;
    border-top: 2px solid #8e96ec;
    margin-top: auto;
}

/* НАВИГАЦИЯ */
nav {
    width: 100%;
    background-color: #8e96ec;
    padding: 10px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

nav ul li {
    position: relative;
    padding: 10px 20px;
    border-radius: 10px;
    margin: 0 10px;
    transition: background-color 0.3s ease;
}

nav ul li:hover {
    background-color: #f5d7aa;
}

nav ul li a {
    text-decoration: none;
    color: black;
    font-size: 20px;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    background-color: #fff6f6;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    display: none;
    flex-direction: column;
    z-index: 1000;
}

nav ul li:hover .submenu {
    display: block;
}

.submenu li {
    padding: 10px;
}

.submenu li:hover {
    background-color: #fde2cd;
}

.submenu li a {
    color: #4a4a4a;
}

/* Общий контейнер */
.container {
    width: 100%;
    margin: auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

/* Кнопка "назад" */
.back-button {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #f9f871;
    color: black;
    padding: 10px 15px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid #999;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s;
    z-index: 999;
}

.back-button:hover {
    background-color: #f2a29f;
    transform: scale(1.1);
}
