body {
    font-family: Raleway, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #f7f9fa;
    margin: 0;
    padding: 0;
}
*{
    box-sizing: border-box;
}
.flex{
    display: flex;
}
/* Ограничивающий контейнер (не более 960px) */
.container {
    max-width: 960px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 40px;
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Шапка статьи */
.meta-info {
    font-size: 14px;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.reading-time {
    background-color: #eef2f5;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    font-weight: bold;
    color: #4a5568;
}

h1 {
    font-size: 36px;
    line-height: 1.3;
    color: #1a202c;
    margin-top: 10px;
    margin-bottom: 25px;
}

h2 {
    font-size: 24px;
    color: #2d3748;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 8px;
}

h3 {
    font-size: 20px;
    color: #4a5568;
    margin-top: 30px;
}

p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #2d3748;
}

/* Важные акценты и цитаты */
.highlight-box {
    background-color: #fffaf0;
    border-left: 4px solid #dd6b20;
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.alert-box {
    background-color: #fff5f5;
    border-left: 4px solid #e53e3e;
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
    font-weight: 500;
}

/* Стили для заглушек картинок и мемов */
.media-block {
    background-color: #edf2f7;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    margin: 30px 0;
    color: #4a5568;
}

.media-block img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.meme-caption {
    font-size: 14px;
    color: #718096;
    margin-top: 8px;
    font-style: italic;
}
.videos{
    justify-content: center;
    gap: 2%;
    flex-wrap: wrap;
}
.video{
    width: 32%;
}
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 177.77%; /* 16:9 соотношение сторон (9 / 16 * 100) */
    height: 0;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
/* Ссылки на видео */
.video-link {
    display: inline-flex;
    align-items: center;
    background-color: #ebf8ff;
    color: #2b6cb0;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    margin: 10px 0;
    border: 1px solid #bee3f8;
}

.video-link:hover {
    background-color: #dee2e6;
}

/* Блок с подарками и оффером в конце */
.offer-section {
    background-color: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 35px;
    margin-top: 50px;
}

.gift-list {
    list-style: none;
    padding: 0;
}

.gift-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    font-size: 18px;
}

.gift-icon {
    font-size: 24px;
    margin-right: 15px;
    line-height: 1;
}

/* Большая кнопка призыва к действию */
.cta-button {
    display: block;
    width: fit-content;
    text-align: center;
    background-color: #38a169;
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    padding: 18px 30px;
    border: 1px solid #38a169;
    border-radius: 8px;
    margin: 30px auto;
    box-shadow: 0 4px 6px rgba(56, 161, 105, 0.2);
    transition: background-color 0.2s;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #2f855a;
}

.input-row{
    display: flex;
    margin-bottom: 1rem;
    gap: 1rem;
}
.input-wrap{
    width: 100%;
}
.input-wrap.half{
    width: 50%;
}
.input-wrap.tret{
    width: calc(100% / 3);
}
.input-wrap input{
    width: 100%;
    height: 3rem;
    border-radius: .5rem;
    border: 1px solid #aaa;
    padding: 20px;
    font-family: inherit;
}
.input-wrap textarea{
    width: 100%;
    height: 8rem;
    border-radius: .5rem;
    border: 1px solid #aaa;
    padding: 20px;
    font-family: inherit;
}
form .cta-button{
    margin-top: 0;
    width: 100%;
}
.agree-wrap{
    display: flex;
}
.agree-wrap .checkbox {
    display: none;
}
.checkbox:checked + .check {
    background: #38a169;
}
.agree-wrap .check {
    display: inline-flex;
    background: #fff;
    width: 1rem;
    height: 1rem;
    border-radius: .125rem;
    border: 1px solid rgb(0 0 0 / 20%);
    margin-right: .5rem;
    position: relative;
}
.agree-wrap .check:before{
    content: '✔';
    color: #ffffff;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    line-height: 1rem;
    font-size: .8rem;
}
.agree-wrap label {
    display: inline-block;
    color: #939393;
    font-size: .75rem;
    margin-bottom: 0;
    cursor: pointer;
}
.form-footer{
    font-size: .75rem;
}
.center{
    text-align: center;
}
.modal{
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .8);
    z-index: 100;
    display: none;
}
.modal-body{
    max-width: 520px;
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    position: relative;   
    margin: 5rem auto;
}
.modal-close{
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 3rem;
    line-height: 1rem;
    cursor: pointer;
}
.modal-title{
    font-size: 2rem;
    line-height: 1.2;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-align: center;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 20px;
    }

    p {
        font-size: 16px;
    }

    .cta-button {
        font-size: 16px;
        padding: 15px 20px;
    }
    .videos{
        gap: 15px;
    }
    .video{
        width: 100%;
        max-width: 270px;
    }
    .input-row{
        flex-wrap: wrap;
    }
    .input-wrap.tret{
        width: 100%;
    }
    .form-footer{
        font-size: .7rem;
    }
}

