/*
 * Additional page styles (wall-st.ru template)
 * -------------------------------------------
 * Online English course page (/kursy/en-online-gp, article 45).
 * Moved here from the inline <style> of the article. All rules are scoped to .en-online,
 * the former global rules (* {margin:0; padding:0}, .container, hr) no longer affect the rest of the site.
 */

.en-online,
.en-online * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.en-online {
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Intro */
.en-online .hero-section {
    text-align: center;
    margin-bottom: 3rem;
}
.en-online .hero-section p {
    font-size: 1.2rem;
    color: #475569;
    max-width: 700px;
    margin: 0 auto;
}

/* Section headings */
.en-online .section-title {
    font-size: 1.9rem;
    font-weight: 700;
    margin: 2rem 0 0.5rem 0;
    color: #0f2b64;
    border-left: 5px solid #2563eb;
    padding-left: 1rem;
}
.en-online .section-lead {
    margin-bottom: 1rem;
    color: #334155;
}

/* Cards grid */
.en-online .courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0 2.5rem;
}
.en-online .individual-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 1.5rem 0 2rem;
}

@media (max-width: 900px) {
    .en-online .courses-grid,
    .en-online .individual-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .en-online .courses-grid,
    .en-online .individual-grid {
        grid-template-columns: 1fr;
    }
    .en-online {
        padding: 1rem;
    }
}

/* Course card */
.en-online .course-card {
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s;
    overflow: hidden;
    border: 1px solid #eef2ff;
    display: flex;
    flex-direction: column;
}
.en-online .course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.1);
}
.en-online .card-header {
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
}
.en-online .card-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.en-online .age-badge {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.75rem;
    border-radius: 30px;
    margin-top: 0.5rem;
}
.en-online .price {
    padding: 0 1.5rem;
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin: 1rem 0 0.25rem 0;
}
.en-online .price small {
    font-size: 0.9rem;
    font-weight: 400;
    color: #64748b;
}
.en-online .course-details {
    padding: 0 1.5rem 1rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    flex: 1;
}
.en-online .course-details p {
    margin: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

/* "Sign up" button (the "Pay" buttons were removed) */
.en-online .button-group {
    display: flex;
    gap: 12px;
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin-top: auto;
}
.en-online .button-group .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
    border-radius: 60px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
    letter-spacing: 0.5px;
    padding: 12px 8px;
    height: 44px;
    flex: 1 1 0;
    margin: 0;
}
.en-online .button-group .btn-sign-red {
    background-color: #dc2626;
    color: #fff;
}
.en-online .button-group .btn-sign-red:hover {
    background-color: #b91c1c;
    transform: scale(0.98);
}

@media (max-width: 480px) {
    .en-online .button-group .btn {
        font-size: 11px;
        padding: 8px 5px;
        height: 38px;
    }
    .en-online .button-group {
        gap: 8px;
    }
}

/* "Why choose us" block */
.en-online .info-block {
    background: #eff6ff;
    border-radius: 1.5rem;
    padding: 1.8rem;
    margin-top: 2rem;
    text-align: center;
}
.en-online .info-block h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}
.en-online .info-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}
.en-online .info-list > div {
    flex: 1;
    min-width: 180px;
}

/* "What is included" block */
.en-online .price-includes {
    margin-top: 2.5rem;
}
.en-online .price-includes h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.en-online .price-includes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}
.en-online .price-includes-grid > div {
    background: #fff;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 1px 2px #cbd5e1;
}

/* course cards: left-aligned text (template sets #content p { text-align: justify }) */
#content .en-online .course-card p,
#content .en-online .info-list div,
#content .en-online .price-includes-grid div {
    text-align: left;
}
#content .en-online .hero-section p,
#content .en-online .info-block {
    text-align: center;
}
/* Home page course blocks (.text-curs: English, German, Chinese): the container is a wrapping flexbox,
   the title and subtitle must take a full row, otherwise a short subtitle shares the row with the first card */
.text-curs h2,
.text-curs h3 {
    width: 100%;
    flex-basis: 100%;
    clear: both;
}
/* === Наши преимущества (модуль 231, главная) === */
.moduletable-adv {
    padding: 30px 20px;
    clear: both;
}
.moduletable-adv h2 {
    text-transform: uppercase;
    text-align: center;
    font-size: 20pt;
    margin: 0 0 25px;
}
.moduletable-adv .adv-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
}
.moduletable-adv .adv-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 4px 4px 15px #ccc;
    padding: 95px 25px 25px;
    position: relative;
}
.moduletable-adv .adv-item:before {
    content: "";
    position: absolute;
    top: 25px;
    left: 25px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff0f1 no-repeat center / 30px 30px;
}
.moduletable-adv .adv-license:before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fa2531' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.5-3 8.3-7 10-4-1.7-7-5.5-7-10V6z'/%3E%3Cpath d='M8.5 12l2.5 2.5 4.5-5'/%3E%3C/svg%3E"); }
.moduletable-adv .adv-bonus:before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fa2531' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='4' rx='1'/%3E%3Cpath d='M5 12v9h14v-9M12 8v13M12 8C10 4 6.5 4.5 7.5 7c.5 1 2.5 1 4.5 1zM12 8c2-4 5.5-3.5 4.5-1-.5 1-2.5 1-4.5 1z'/%3E%3C/svg%3E"); }
.moduletable-adv .adv-club:before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fa2531' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h11a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2H9l-4 3v-3H4a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2z'/%3E%3Cpath d='M17 9h3a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-1v3l-4-3h-4a2 2 0 0 1-2-2v-1'/%3E%3C/svg%3E"); }
.moduletable-adv .adv-events:before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fa2531' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.6 5.4 5.9.8-4.3 4.1 1 5.8L12 16.4l-5.2 2.7 1-5.8-4.3-4.1 5.9-.8z'/%3E%3C/svg%3E"); }
.moduletable-adv .adv-item h3 {
    font-size: 14pt;
    line-height: 1.3;
    margin: 0 0 10px;
    color: #000;
}
.moduletable-adv .adv-item p {
    margin: 0 0 8px;
    line-height: 1.5;
    color: #5b5b5b;
}
.moduletable-adv .adv-item a {
    color: #fa2531;
}
@media (max-width: 1100px) {
    .moduletable-adv .adv-list { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 600px) {
    .moduletable-adv { padding: 20px 15px; }
    .moduletable-adv h2 { font-size: 16pt; }
    .moduletable-adv .adv-list { grid-template-columns: 1fr; }
}