body{
    background: url();
}

header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 30px;
    background: linear-gradient(90deg, #f0f4ff 0%, #e0e7ff 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding-right: 48px;
    padding-left: 48px;
}
header h1 {
    flex: 0 0 auto;
    margin-right: 32px;
    z-index: 1;
}
nav {
    flex: 1 1 0%;
    display: flex;
    justify-content: center;
    z-index: 0;
}

.horizontal-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
    width: 100%;
}
.horizontal-menu li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.2s;
    border-bottom: 2px solid transparent;
    padding: 4px 0;
}
.horizontal-menu li a:hover {
    color: #007bff;
    border-bottom: 2px solid #007bff;
}

main {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0;
    background: linear-gradient(120deg, #f8faff 60%, #e0e7ff 100%);
    border-radius: 40px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    gap: 60px;
    overflow: hidden;
}

section {
    display: flex;
    align-items: center;
    gap: 64px;
    margin-bottom: 0;
    position: relative;
    padding: 64px 96px;
    border-left: none;
    background: #fff;
    border-radius: 0 40px 40px 0;
    box-shadow: 0 4px 24px rgba(0,123,255,0.08);
    min-height: 320px;
}
section:before {
    display: none;
}
section img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 32px;
    box-shadow: 0 4px 24px #007bff22;
    background: #f0f4ff;
}
section > div, section > ul, section > p {
    flex: 1;
    font-size: 1.35rem;
    line-height: 1.7;
}

.footer-contacts {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: 48px 0 24px 0;
    background: linear-gradient(90deg, #f0f4ff 0%, #e0e7ff 100%);
}
.footer-contacts__img img {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    box-shadow: 0 2px 12px #007bff22;
    background: #f0f4ff;
}
.footer-contacts__info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 1.1rem;
    color: #222;
}
.footer-contacts__info h2 {
    margin: 0 0 8px 0;
    font-size: 1.4rem;
    color: #007bff;
}
.footer-contacts__socials {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1rem;
}
.footer-contacts__socials a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.footer-contacts__socials a:hover {
    color: #0056b3;
    text-decoration: underline;
}
.footer-copyright {
    text-align: center;
    color: #888;
    font-size: 0.95rem;
    padding: 12px 0 8px 0;
    background: none;
}

.header-actions {
    display: flex;
    gap: 18px;
    margin-left: 32px;
    flex: 0 0 auto;
}
.header-btn {
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    background: #f0f4ff;
    color: #007bff;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,123,255,0.07);
    text-decoration: none;
    display: inline-block;
}
.header-btn--register {
    background: #007bff;
    color: #fff;
}
.header-btn--register:hover {
    background: #0056b3;
    color: #fff;
}
.header-btn--login:hover {
    background: #e0e7ff;
    color: #0056b3;
}

@media (max-width: 1200px) {
    main {
        max-width: 98vw;
        border-radius: 24px;
        gap: 40px;
    }
    section {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 16px;
        border-radius: 0 24px 24px 0;
        gap: 24px;
        min-height: 220px;
    }
    section img {
        width: 120px;
        height: 120px;
        border-radius: 16px;
    }
    section > div, section > ul, section > p {
        font-size: 1rem;
    }
    .footer-contacts {
        flex-direction: column;
        gap: 18px;
        padding: 32px 0 16px 0;
    }
    .footer-contacts__img img {
        width: 80px;
        height: 80px;
        border-radius: 12px;
    }
    .footer-contacts__info h2 {
        font-size: 1.1rem;
    }
    .header-actions {
        margin-left: 0;
        gap: 10px;
    }
    .header-btn {
        padding: 8px 14px;
        font-size: 0.95rem;
    }
}

@media (max-width: 900px) {
    main {
        max-width: 98vw;
        border-radius: 18px;
        gap: 24px;
    }
    section {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 12px;
        border-radius: 0 18px 18px 0;
        gap: 16px;
    }
    section img {
        width: 100px;
        height: 100px;
        border-radius: 12px;
    }
    header {
        flex-direction: column;
        align-items: stretch;
        padding-right: 12px;
        padding-left: 12px;
    }
    header h1 {
        margin-right: 0;
        margin-bottom: 10px;
    }
    .horizontal-menu {
        gap: 16px;
    }
    .header-actions {
        margin-left: 0;
        gap: 10px;
        justify-content: center;
    }
}

