/* Загрузка шрифта Bounded */
@font-face {
    font-family: 'Bounded';
    src: url('../fonts/Bounded-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Bounded';
    src: url('../fonts/Bounded-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Bounded';
    src: url('../fonts/Bounded-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Bounded';
    src: url('../fonts/Bounded-Variable.ttf') format('truetype');
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}


*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


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

body {
    font-family: 'Bounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #ffffff;
    color: #000;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Шапка */
header {
    padding: 16px 20px;
    border-bottom: 1px solid #e7e8ea;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 900;
    font-size: 18px;
    color: #000;
    letter-spacing: -0.5px;
}

/* Бургер-меню */
.burger {
    width: 24px;
    height: 24px;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #000;
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 1px;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}


/* Мобильное меню */
.menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    padding-top: 80px;
    overflow-y: auto;
}

.menu.active {
    right: 0;
}

.menu ul {
    list-style: none;
    padding: 0 20px;
}

.menu li {
    border-bottom: 1px solid #f0f0f0;
}

.menu a {
    display: block;
    padding: 16px 0;
    font-size: 16px;
    font-weight: 500;
    color: #000;
    transition: color 0.2s;
}

.menu a:hover {
    color: #0077ff;
}

/* Основной контент */
main {
    flex: 1;
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.hero {
    text-align: center;
    margin-bottom: 48px;
}

.hero h1 {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 12px;
    color: #000;
    letter-spacing: -0.8px;
}

.hero p {
    font-size: 16px;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

.email {
    text-align: center;
    margin: 32px 0;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 400;
}

.email a {
    color: #0077ff;
    font-weight: 500;
}


/* Карточки разделов */
.sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
}

@media (min-width: 600px) {
    .sections {
        grid-template-columns: repeat(3, 1fr);
    }
}

.section-card {
    background: #fff;
    border: 1px solid #e7e8ea;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.section-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.section-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: #f0f0f0;
}

.section-content {
    padding: 20px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #000;
}

.section-desc {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

.task-image {
    max-width: min(100%, 600px); /* Не шире 600px, но и не шире экрана */
    height: auto;
    display: block;
    margin: 24px auto;
    border-radius: 6px;
    background: #f9f9f9;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}



/* Подвал */
footer {
    padding: 24px 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
    border-top: 1px solid #e7e8ea;
    font-weight: 400;
}

/* Мобильная адаптация */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 24px;
    }
    main {
        padding: 24px 16px;
    }
    .menu {
        width: 100%;
    }
}