*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #2d3748;
    background-color: #f7fafc;
}

body > span {
    display: block;
    max-width: 1200px;
    margin: 0 auto 20px auto;
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    padding: 16px 24px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    border-left: 6px solid #2b6cb0;
}

#main-text {
    max-width: 1200px;
    margin: 0 auto 30px auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

#main-text h1 {
    font-size: 30px;
    line-height: 1.3;
    color: #1a202c;
    margin-top: 0;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

#main-text h2 {
    font-size: 24px;
    line-height: 1.35;
    color: #2b6cb0;
    margin-top: 36px;
    margin-bottom: 16px;
}

#main-text h3 {
    font-size: 20px;
    line-height: 1.4;
    color: #4a5568;
    margin-top: 28px;
    margin-bottom: 14px;
}

#main-text p {
    margin-top: 0;
    margin-bottom: 18px;
    text-align: justify;
    color: #4a5568;
}

#main-text ul {
    margin: 24px 0;
    padding: 20px 24px 20px 40px;
    background: #edf2f7;
    border-radius: 8px;
    border-left: 4px solid #3182ce;
}

#main-text ul li {
    margin-bottom: 10px;
    color: #2d3748;
}

#main-text ul li:last-child {
    margin-bottom: 0;
}

table[width="100%"] {
    width: 100% !important;
    max-width: 1200px;
    border-collapse: separate;
    border-spacing: 20px 0;
    margin: 0 auto;
}

table[width="100%"] > tbody > tr > td {
    vertical-align: top;
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

td[background="img/fon_01.jpg"] {
    width: 250px !important;
    background-color: #2d3748 !important;
    color: #e2e8f0;
}

table.t {
    width: 100% !important;
    border: none !important;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table.t tbody,
table.t tr,
table.t td {
    display: block;
    width: 100%;
    border: none !important;
    padding: 0;
    margin-bottom: 6px;
}

table.t a {
    display: block;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: background-color 0.2s ease, padding-left 0.2s ease;
}

table.t a:hover {
    background-color: #3182ce;
    padding-left: 18px;
}

a.a {
    display: inline-block;
    color: #3182ce;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

a.a:hover {
    color: #2b6cb0;
    text-decoration: underline;
}

td[background="img/fon_01.jpg"] a.a {
    color: #90cdf4;
}

td[background="img/fon_01.jpg"] a.a:hover {
    color: #bee3f8;
}

td.body {
    padding: 30px 36px;
}

td.body h4 {
    font-size: 24px;
    color: #1a202c;
    margin-top: 0;
    margin-bottom: 24px;
    text-align: center;
}

td.body h5 {
    font-size: 18px;
    color: #2b6cb0;
    margin-top: 28px;
    margin-bottom: 14px;
    padding-bottom: 6px;
    border-bottom: 1px solid #edf2f7;
}

td.body p {
    margin-top: 0;
    margin-bottom: 18px;
    text-align: justify;
}

td.body strong {
    color: #1a202c;
}

td.body img {
    max-width: 100%;
    height: auto;
    border: none !important;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    margin: 4px 18px 14px 0 !important;
}

td.body:last-child {
    width: 180px !important;
    background: #edf2f7;
    text-align: center;
}

table[align="center"] {
    margin: 40px auto 20px auto;
    border-collapse: collapse;
}

table[align="center"] td {
    padding: 8px 12px;
}

body > a.a {
    margin: 8px 14px;
    display: inline-block;
}

@media (max-width: 900px) {
    body {
        padding: 12px;
    }

    #main-text {
        padding: 20px;
    }

    #main-text h1 {
        font-size: 22px;
    }

    #main-text h2 {
        font-size: 19px;
    }

    #main-text h3 {
        font-size: 17px;
    }

    #main-text ul {
        padding-left: 24px;
    }

    table[width="100%"],
    table[width="100%"] > tbody,
    table[width="100%"] > tbody > tr,
    table[width="100%"] > tbody > tr > td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border-spacing: 0;
    }

    table[width="100%"] > tbody > tr > td {
        margin-bottom: 20px;
    }

    td[background="img/fon_01.jpg"] {
        width: 100% !important;
    }

    table.t {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    table.t tbody,
    table.t tr,
    table.t td {
        display: inline-block !important;
        width: auto !important;
        margin: 0 !important;
    }

    table.t a {
        display: inline-block !important;
        padding: 8px 12px;
    }

    td.body img {
        float: none !important;
        display: block;
        margin: 0 auto 16px auto !important;
    }

    td.body:last-child {
        width: 100% !important;
    }
}

table.t a {
    display: block;
    padding: 10px 14px;
    background: rgb(0 0 0 / 98%);
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: background-color 0.2s ease, padding-left 0.2s ease;
}
