/* ============================================================
   Продлёнка.орг — Portal 2.0
   Главная страница. Префикс p20-.
   Шрифты наследуются с сайта.
   ============================================================ */

/* ---------- Переменные ---------- */
:root {
    --p20-navy: #10244d;
    --p20-blue: #f37e60;
    --p20-blue-2: #eaf4ff;
    --p20-orange: #ff9d24;
    --p20-orange-2: #fff0da;
    --p20-green: #23a963;
    --p20-green-2: #e5f7ed;
    --p20-purple: #7653d6;
    --p20-purple-2: #eee9ff;
    --p20-text: #17243b;
    --p20-muted: #61718c;
    --p20-line: #d4e4f3;
    --p20-soft: #f6f9fc;
    --p20-white: #fff;

    --p20-radius: 22px;
    --p20-radius-sm: 14px;
    --p20-radius-lg: 30px;

    --p20-shadow-sm: 0 4px 14px rgba(24, 50, 91, .05);
    --p20-shadow: 0 12px 36px rgba(24, 50, 91, .08);
    --p20-shadow-hover: 0 20px 44px rgba(24, 50, 91, .14);
}

/* ---------- Сброс локальный ---------- */

.p20-main button {
    font: inherit;
    cursor: pointer;
}

.p20-main img,
.p20-main svg {
    display: block;
    max-width: 100%;
}

/* ============================================================
   HERO
   ============================================================ */
.p20-hero {
    overflow: hidden;
}

.p20-hero-grid {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    min-height: 490px;
    align-items: center;
    gap: 40px;
}

.p20-eyebrow {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
    color: #4d7bb3;
    margin-bottom: 14px;
}

.p20-eyebrow-light {
    color: #b8dcff;
}

.p20-hero-title {
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.03;
    letter-spacing: -.045em;
    color: var(--p20-navy);
    margin: 0 0 32px;
    max-width: 760px;
    font-weight: 850;
}

.p20-hero-title span {
    color: var(--p20-blue);
}

.p20-hero-lead {
    font-size: 20px;
    color: #46658f;
    max-width: 700px;
    margin: 0 0 25px;
}

/* ----- Поиск ----- */
.p20-search {
    height: 70px;
    background: #fff;
    border: 1px solid #cfe1f5;
    border-radius: 17px;
    box-shadow: 0 10px 28px rgba(25, 79, 135, .08);
    display: flex;
    align-items: center;
    overflow: hidden;
    max-width: 760px;
    transition: border-color .2s, box-shadow .2s;
}

.p20-search:focus-within {
    border-color: var(--p20-blue);
    box-shadow: 0 12px 32px rgba(22, 119, 232, .18);
}

.p20-search-icon {
    width: 22px;
    height: 22px;
    margin: 0 16px;
    color: var(--p20-navy);
    flex-shrink: 0;
}

.p20-search input {
    border: 0;
    outline: 0;
    flex: 1;
    height: 100%;
    font-size: 16px;
    min-width: 0;
    color: var(--p20-text);
    background: transparent;
}

.p20-search input::placeholder {
    color: #94a3b8;
}

.p20-search button {
    height: 58px;
    margin-right: 6px;
    border: 0;
    border-radius: 13px;
    background: var(--p20-blue);
    color: #fff;
    font-weight: 800;
    padding: 0 35px;
    transition: background .2s;
}

.p20-search button:hover {
    background: #0d68d8;
}

.p20-search-examples {
    font-size: 13px;
    color: var(--p20-muted);
    margin: 10px 4px 0;
}

.p20-search-examples button {
    border: 0;
    background: none;
    color: #176dcc;
    text-decoration: underline;
    padding: 0;
    margin-left: 10px;
}

.p20-search-examples button:hover {
    color: var(--p20-navy);
}

/* ----- Trust ----- */
.p20-hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 23px;
    color: #55708f;
    font-size: 13px;
    font-weight: 650;
}

.p20-hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.p20-hero-trust svg {
    width: 16px;
    height: 16px;
    color: var(--p20-green);
    flex-shrink: 0;
}

/* ----- Hero-visual: плитки-иконки ----- */
.p20-hero-visual {
    position: relative;
    height: 480px;
    display: grid;
    place-items: center;
}

.p20-hero-blob {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 440px;
    height: 440px;
    max-width: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%,
            rgba(22, 119, 232, .18) 0%,
            rgba(22, 119, 232, .06) 55%,
            transparent 72%);
    filter: blur(2px);
}

.p20-hero-tile {
    position: absolute;
    width: 130px;
    height: 130px;
    background: #fff;
    border-radius: 26px;
    box-shadow: 0 20px 40px rgba(31, 69, 117, .14);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--p20-navy);
    transition: transform .35s ease, box-shadow .35s ease;
    animation: p20-float 5s ease-in-out infinite;
}

.p20-hero-tile svg {
    width: 42px;
    height: 42px;
}

.p20-hero-tile span {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
    color: var(--p20-muted);
}

.p20-hero-tile:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 28px 54px rgba(31, 69, 117, .2);
    animation-play-state: paused;
}

/* Цвета плиток */
.p20-tile-1 {
    color: var(--p20-blue);
    top: 40px;
    left: 10%;
    animation-delay: 0s;
}

.p20-tile-2 {
    color: var(--p20-orange);
    top: 30px;
    right: 8%;
    animation-delay: .6s;
}

.p20-tile-3 {
    color: var(--p20-green);
    top: 50%;
    left: 4%;
    animation-delay: 1.2s;
    transform: translateY(-50%);
}

.p20-tile-4 {
    color: var(--p20-purple);
    top: 50%;
    right: 4%;
    animation-delay: 1.8s;
    transform: translateY(-50%);
}

.p20-tile-5 {
    color: var(--p20-blue);
    bottom: 40px;
    left: 50%;
    animation-delay: 2.4s;
    transform: translateX(-50%);
}

/* Центральная плитка — крупнее */
.p20-tile-3,
.p20-tile-4 {
    width: 140px;
    height: 140px;
}

@keyframes p20-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Для плиток с предустановленным transform - отдельная анимация */
.p20-tile-3 {
    animation-name: p20-float-y;
}

.p20-tile-4 {
    animation-name: p20-float-y;
}

.p20-tile-5 {
    animation-name: p20-float-x;
}

@keyframes p20-float-y {

    0%,
    100% {
        transform: translateY(-50%);
    }

    50% {
        transform: translateY(calc(-50% - 10px));
    }
}

@keyframes p20-float-x {

    0%,
    100% {
        transform: translateX(-50%);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ============================================================
   QUICK CARDS
   ============================================================ */
.p20-quick {
    margin-top: 40px;
}

.p20-quick-title {
    font-size: 27px;
    font-weight: 850;
    color: var(--p20-navy);
}

.p20-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 20px 0;
}

.p20-quick-card {
    background: #fff;
    border: 1px solid var(--p20-line);
    border-radius: 19px;
    padding: 17px;
    display: grid;
    grid-template-columns: 62px 1fr 25px;
    gap: 13px;
    align-items: center;
    min-height: 125px;
    transition: transform .2s, box-shadow .2s;
}

.p20-quick-card:hover {
    transform: translateY(-3px);
}

.p20-quick-icon {
    width: 55px;
    height: 55px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.p20-quick-icon svg {
    width: 28px;
    height: 28px;
}

.p20-qc-blue .p20-quick-icon {
    background: var(--p20-blue-2);
    color: var(--p20-blue);
}

.p20-qc-orange .p20-quick-icon {
    background: var(--p20-orange-2);
    color: var(--p20-orange);
}

.p20-qc-green .p20-quick-icon {
    background: var(--p20-green-2);
    color: var(--p20-green);
}

.p20-qc-purple .p20-quick-icon {
    background: var(--p20-purple-2);
    color: var(--p20-purple);
}

.p20-quick-text b {
    display: block;
    font-size: 18px;
    color: var(--p20-navy);
    line-height: 1.2;
    margin-bottom: 6px;
}

.p20-quick-text small {
    display: block;
    color: var(--p20-muted);
    font-size: 14px;
    line-height: 1.4;
}

.p20-quick-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f2f6fb;
    display: grid;
    place-items: center;
    color: var(--p20-blue);
    font-style: normal;
    transition: background .2s, transform .2s;
}

.p20-quick-card:hover .p20-quick-arrow {
    background: var(--p20-blue);
    color: #fff;
    transform: translateX(3px);
}

/* ============================================================
   LIVE-STRIP
   ============================================================ */
.p20-live-strip {
    padding: 18px 0;
}

.p20-live-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr 1fr;
    background: #eef7ff;
    border-radius: 20px;
}

.p20-live-grid>a,
.p20-live-head {
    min-height: 96px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 20px;
}

.p20-live-grid>a {
    border-left: 1px solid #d4e4f3;
}

.p20-live-head b,
.p20-live-head small,
.p20-live-item b,
.p20-live-item small {
    display: block;
}

.p20-live-head b {
    font-size: 18px;
    color: var(--p20-navy);
}

.p20-live-head small {
    font-size: 12px;
    color: var(--p20-muted);
    margin-top: 4px;
}

.p20-live-item b {
    font-size: 18px;
    color: var(--p20-navy);
}

.p20-live-item small {
    font-size: 14px;
    color: var(--p20-muted);
    margin-top: 4px;
}

.p20-live-item i {
    margin-left: auto;
    font-style: normal;
    color: var(--p20-blue);
    transition: transform .2s;
}

.p20-live-item:hover i {
    transform: translateX(3px);
}

.p20-live-ico {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    color: var(--p20-blue);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(22, 119, 232, .12);
}

.p20-live-ico svg {
    width: 22px;
    height: 22px;
}

.p20-live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--p20-green);
    box-shadow: 0 0 0 0 rgba(35, 169, 99, .6);
    animation: p20-pulse 1.8s infinite;
    flex-shrink: 0;
}

@keyframes p20-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(35, 169, 99, .55);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(35, 169, 99, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(35, 169, 99, 0);
    }
}

/* ============================================================
   STATS
   ============================================================ */
.p20-stats {
    padding: 26px 0 18px;
}

.p20-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.p20-stat {
    padding: 8px 5px 8px 56px;
    position: relative;
}

.p20-stat-ico {
    position: absolute;
    left: 0;
    top: 8px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--p20-blue-2);
    color: var(--p20-blue);
    display: grid;
    place-items: center;
}

.p20-stat-ico svg {
    width: 22px;
    height: 22px;
}

.p20-stat b {
    display: block;
    font-size: 22px;
    color: var(--p20-navy);
    line-height: 1.15;
}

.p20-stat>span {
    font-size: 14px;
    color: var(--p20-muted);
}

/* ============================================================
   ОБЩИЕ СЕКЦИИ
   ============================================================ */
.p20-section {
    padding: 40px 0;
}

.p20-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.p20-section h2 {
    font-size: 39px;
    line-height: 1.1;
    color: var(--p20-navy);
    margin: 0;
    letter-spacing: -.025em;
    font-weight: 850;
}

.p20-section-lead {
    color: var(--p20-muted);
    margin: 0 0 28px;
    font-size: 16px;
}

.p20-section-soft {
    padding: 40px 120px;
    background: linear-gradient(135deg, #f5f9ff 0%, #ffffff 100%);
    border-radius: 30px;
}

.p20-text-link {
    color: var(--p20-blue);
    font-weight: 750;
    font-size: 14px;
    white-space: nowrap;
    transition: color .2s;
}

.p20-text-link:hover {
    color: var(--p20-navy);
}

/* Кнопки */
.p20-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    border: 1px solid transparent;
    transition: transform .15s, background .2s, box-shadow .2s;
    white-space: nowrap;
}

.p20-btn-primary {
    background: var(--p20-orange);
    color: #fff;
    box-shadow: 0 8px 18px rgba(255, 157, 36, .25);
}

.p20-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(255, 157, 36, .32);
    color: #fff;
}

.p20-btn-outline {
    border-color: #8bbcf4;
    color: #0868d0;
    background: #fff;
}

.p20-btn-outline:hover {
    background: var(--p20-blue-2);
}

.p20-btn-white {
    background: #fff;
    color: var(--p20-blue);
}

.p20-btn-white:hover {
    transform: translateY(-1px);
    color: var(--p20-blue);
}

.p20-btn-outline-white {
    border-color: rgba(255, 255, 255, .6);
    color: #fff;
}

.p20-btn-outline-white:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

/* Теги */
.p20-tag {
    display: inline-block;
    padding: 7px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
}

.p20-tag-orange {
    background: var(--p20-orange-2);
    color: #c66d00;
}

.p20-tag-blue {
    background: #e8f3ff;
    color: #0968c8;
}

.p20-tag-green {
    background: var(--p20-green-2);
    color: #15834a;
}

/* ============================================================
   БИБЛИОТЕКА
   ============================================================ */
.p20-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;
    margin-bottom: 32px;
}

.p20-cat-grid a {
    padding: 22px;
    background: #fff;
    border: 1px solid var(--p20-line);
    border-radius: 15px;
    font-weight: 750;
    color: var(--p20-navy);
    box-shadow: 0 7px 20px rgba(22, 50, 90, .04);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.p20-cat-grid a:hover {
    transform: translateY(-2px);
    border-color: #c8dcf3;
    box-shadow: 0 14px 30px rgba(22, 50, 90, .08);
}

.p20-cat-grid span {
    float: right;
    color: var(--p20-blue);
}

.p20-preview-grid,
.p20-cards-3 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding-top: 30px;
}

.p20-cards-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.p20-preview-card {
    background: #fff;
    border: 1px solid var(--p20-line);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--p20-shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform .2s, box-shadow .2s;
}

.p20-preview-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--p20-shadow);
}

.p20-preview-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.p20-preview-meta {
    font-size: 12px;
    color: var(--p20-muted);
}

.p20-preview-card h3 {
    font-size: 17px;
    color: var(--p20-navy);
    margin: 0;
    line-height: 1.35;
    font-weight: 750;
    flex: 1;
}

.p20-preview-card footer {
    border-top: 1px solid var(--p20-line);
    padding-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--p20-muted);
}

.p20-preview-card footer b {
    color: var(--p20-blue);
}

/* ============================================================
   ТЕСТЫ
   ============================================================ */
.p20-test-card {
    background: #fff;
    border: 1px solid var(--p20-line);
    border-radius: 22px;
    padding: 30px;
    box-shadow: var(--p20-shadow);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.p20-test-head {
    display: flex;
    align-items: center;
    gap: 16px;
}

.p20-test-ico {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.p20-test-ico svg {
    width: 28px;
    height: 28px;
}

.p20-test-ico-blue {
    background: var(--p20-blue-2);
    color: var(--p20-blue);
}

.p20-test-ico-green {
    background: var(--p20-green-2);
    color: var(--p20-green);
}

.p20-test-head b {
    display: block;
    font-size: 18px;
    color: var(--p20-navy);
    margin-bottom: 2px;
}

.p20-test-head small {
    font-size: 13px;
    color: var(--p20-muted);
}

.p20-test-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.p20-test-list li {
    position: relative;
    padding-left: 22px;
    font-size: 14px;
    color: #425976;
    margin-top: 0;
}

.p20-test-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--p20-blue);
    opacity: .6;
}

.p20-test-card .p20-btn {
    align-self: flex-start;
}

/* ============================================================
   КОНКУРСЫ
   ============================================================ */
.p20-contest-card {
    background: #fff;
    border: 1px solid var(--p20-line);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--p20-shadow);
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.p20-contest-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--p20-shadow-hover);
}

.p20-contest-cover {
    margin: -25px -25px 18px;
    overflow: hidden;
    background: var(--p20-soft);
}

.p20-contest-cover a {
    display: block;
    height: 100%;
    text-decoration: none;
}

.p20-contest-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.p20-contest-card h3 {
    font-size: 21px;
    color: var(--p20-navy);
    margin: 0 0 9px;
    font-weight: 800;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.p20-contest-card h3 a {
    color: inherit;
    text-decoration: none;
}

.p20-contest-card p {
    font-size: 14px;
    color: var(--p20-muted);
    margin: 0 0 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.p20-contest-card footer {
    border-top: 1px solid var(--p20-line);
    padding-top: 15px;
    font-size: 12px;
    color: var(--p20-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.p20-contest-card footer b {
    color: var(--p20-blue);
}

.p20-contest-card footer a {
    color: inherit;
    text-decoration: none;
}

.p20-contest-card .p20-tag {
    align-self: flex-start;
    margin-bottom: 10px;
}

/* ============================================================
   ОБУЧЕНИЕ
   ============================================================ */
.p20-learning-box {
    background: linear-gradient(135deg, #eef7ff, #f8fbff);
    border: 1px solid #dceafa;
    border-radius: 28px;
    padding: 52px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 45px;
    align-items: center;
}

.p20-learning-box h2 {
    font-size: 39px;
    color: var(--p20-navy);
    margin: 0 0 12px;
    letter-spacing: -.025em;
    font-weight: 850;
}

.p20-learning-box p {
    max-width: 700px;
    color: var(--p20-muted);
    margin: 0;
}

.p20-learning-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 22px 0;
}

.p20-learning-tabs a {
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #dce6f1;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 750;
    color: var(--p20-navy);
    transition: border-color .2s, color .2s;
}

.p20-learning-tabs a:hover {
    border-color: var(--p20-blue);
    color: var(--p20-blue);
}

.p20-learning-badge {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--p20-shadow);
    text-align: center;
}

.p20-learning-badge b {
    font-size: 31px;
    color: var(--p20-blue);
    display: block;
    line-height: 1.1;
}

.p20-learning-badge span {
    font-size: 12px;
    color: var(--p20-muted);
}

.p20-learning-badge hr {
    border: 0;
    border-top: 1px solid var(--p20-line);
    margin: 22px 0;
}

/* ============================================================
   ПУБЛИКАЦИИ ШКОЛЬНИКОВ
   ============================================================ */
.p20-pupil-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.p20-pupil-card {
    background: #fff;
    border: 1px solid var(--p20-line);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--p20-shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform .2s, box-shadow .2s;
}

.p20-pupil-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--p20-shadow);
}

.p20-pupil-type {
    display: inline-block;
    align-self: flex-start;
    padding: 6px 12px;
    background: var(--p20-purple-2);
    color: var(--p20-purple);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
}

.p20-pupil-card h3 {
    font-size: 17px;
    color: var(--p20-navy);
    margin: 0;
    line-height: 1.4;
    font-weight: 750;
    flex: 1;
}

.p20-pupil-card p {
    font-size: 13px;
    color: var(--p20-muted);
    margin: 0;
}

.p20-pupil-card footer {
    border-top: 1px solid var(--p20-line);
    padding-top: 14px;
    font-size: 13px;
}

.p20-pupil-card footer b {
    color: var(--p20-blue);
}

.p20-pupil-cta {
    margin-top: 24px;
    text-align: center;
}

/* ============================================================
   ISSN
   ============================================================ */
.p20-section-issn {
    background: linear-gradient(135deg, #f5f9ff 0%, #ffffff 100%);
}

.p20-issn-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 70px;
    align-items: center;
}

.p20-issn-visual {
    display: grid;
    place-items: center;
}

.p20-issn-book {
    width: 100%;
    max-width: 320px;
    filter: drop-shadow(0 30px 50px rgba(22, 119, 232, .22));
    animation: p20-float 6s ease-in-out infinite;
}

.p20-main .p20-issn-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 20px 45px rgba(16, 36, 77, .15);
}

.p20-issn-grid h2 {
    font-size: 39px;
    color: var(--p20-navy);
    margin: 0 0 14px;
    letter-spacing: -.025em;
    font-weight: 850;
}

.p20-issn-grid p {
    color: var(--p20-muted);
    max-width: 640px;
    margin: 0 0 22px;
}

.p20-issn-list {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
    display: grid;
    gap: 10px;
}

.p20-issn-list li {
    position: relative;
    padding-left: 28px;
    font-size: 14px;
    color: #425976;
}

.p20-issn-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--p20-green-2);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323a963' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='m4 12 5 5L20 6'/></svg>");
    background-size: 12px 12px;
    background-position: center;
    background-repeat: no-repeat;
}

/* ============================================================
   ПОРТФОЛИО
   ============================================================ */
.p20-portfolio-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 70px;
    align-items: center;
}

.p20-portfolio-visual {
    display: grid;
    place-items: center;
}

.p20-portfolio-mock {
    width: 100%;
    max-width: 460px;
    filter: drop-shadow(0 25px 45px rgba(24, 50, 91, .12));
}

.p20-portfolio-grid h2 {
    font-size: 39px;
    color: var(--p20-navy);
    margin: 0 0 12px;
    letter-spacing: -.025em;
    font-weight: 850;
}

.p20-portfolio-grid p {
    color: var(--p20-muted);
    max-width: 600px;
    margin: 0 0 20px;
}

.p20-portfolio-list {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: grid;
    gap: 10px;
}

.p20-portfolio-list li {
    position: relative;
    padding-left: 26px;
    font-size: 14px;
    color: #425976;
}

.p20-portfolio-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--p20-blue);
}

.p20-main .p20-portfolio-image {
    width: 100%;
    max-width: 560px;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(16, 36, 77, .15);
}

/* ============================================================
   СТАТЬИ
   ============================================================ */
.p20-article-card {
    background: #fff;
    border: 1px solid var(--p20-line);
    border-radius: 20px;
    padding: 22px;
    box-shadow: var(--p20-shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform .2s, box-shadow .2s;
}

.p20-article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--p20-shadow);
}

.p20-article-cover {
    border-radius: 14px;
    display: grid;
    place-items: center;
}

.p20-article-cover svg {
    width: 40px;
    height: 40px;
}

.p20-cover-1 {
    background: linear-gradient(135deg, #eaf4ff, #d5e8ff);
    color: var(--p20-blue);
}

.p20-cover-2 {
    background: linear-gradient(135deg, #fff0da, #ffe1b8);
    color: var(--p20-orange);
}

.p20-cover-3 {
    background: linear-gradient(135deg, #e5f7ed, #c9eed9);
    color: var(--p20-green);
}

.p20-article-cat {
    font-size: 11px;
    font-weight: 800;
    color: var(--p20-blue);
    letter-spacing: .06em;
    text-transform: uppercase;
}

.p20-article-card h3 {
    font-size: 17px;
    color: var(--p20-navy);
    margin: 0;
    line-height: 1.35;
    font-weight: 750;
    flex: 1;
}

.p20-article-card p {
    font-size: 13px;
    color: var(--p20-muted);
    margin: 0;
}

.p20-article-card footer {
    border-top: 1px solid var(--p20-line);
    padding-top: 12px;
    font-size: 12px;
    color: var(--p20-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.p20-article-card footer b {
    color: var(--p20-blue);
}

/* ============================================================
   ВЕБИНАРЫ
   ============================================================ */
.p20-event-card {
    background: #fff;
    border: 1px solid var(--p20-line);
    border-radius: 20px;
    padding: 26px;
    box-shadow: var(--p20-shadow);
    transition: transform .2s, box-shadow .2s;
}

.p20-event-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--p20-shadow-hover);
}

.p20-event-type {
    font-size: 12px;
    color: var(--p20-blue);
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.p20-event-card h3 {
    font-size: 20px;
    color: var(--p20-navy);
    margin: 16px 0 9px;
    line-height: 1.3;
    font-weight: 800;
}

.p20-event-card p {
    font-size: 14px;
    color: var(--p20-muted);
    margin: 0 0 14px;
}

.p20-event-card a {
    font-size: 13px;
    color: var(--p20-blue);
    font-weight: 750;
}

/* ============================================================
   ОТЗЫВЫ — слайдер
   ============================================================ */
.p20-reviews {
    background: #fff;
}

.p20-slider {
    position: relative;
    overflow: hidden;
}

.p20-slider-track {
    display: flex;
    gap: 18px;
    transition: transform .5s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}

.p20-review {
    flex: 0 0 calc((100% - 36px) / 3);
    background: #fff;
    border: 1px solid var(--p20-line);
    border-radius: 20px;
    padding: 26px;
    box-shadow: var(--p20-shadow);
    margin: 0;
    display: flex;
    flex-direction: column;
}

.p20-review p {
    color: #425976;
    font-size: 15px;
    line-height: 1.65;
    margin: 0;
    flex: 1;
}

.p20-review footer {
    border-top: 1px solid var(--p20-line);
    margin-top: 22px;
    padding-top: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.p20-review-avatar {
    display: block;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--p20-soft);
}

.p20-review-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.p20-review-author b {
    display: block;
    color: var(--p20-navy);
    font-size: 13px;
    line-height: 1.3;
}

.p20-review-author span {
    display: block;
    font-size: 11px;
    color: var(--p20-muted);
    margin-top: 3px;
}

.p20-slider-nav {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 22px;
}

.p20-slider-nav button {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--p20-line);
    background: #fff;
    color: var(--p20-navy);
    font-size: 18px;
    transition: background .2s, color .2s, border-color .2s;
}

.p20-slider-nav button:hover {
    background: var(--p20-blue);
    color: #fff;
    border-color: var(--p20-blue);
}

/* ============================================================
   ДОКУМЕНТЫ
   ============================================================ */
.p20-docs {
    background: #f8fafc;
}

.p20-docs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.p20-docs-grid h2 {
    font-size: 39px;
    color: var(--p20-navy);
    margin: 0 0 12px;
    letter-spacing: -.025em;
    font-weight: 850;
}

.p20-docs-grid p {
    color: var(--p20-muted);
    max-width: 600px;
    margin: 0 0 22px;
}

.p20-doc-stack {
    height: 340px;
    position: relative;
}

.p20-doc-stack span {
    position: absolute;
    background: #fff;
    border: 1px solid #dbe4ee;
    border-radius: 10px;
    padding: 26px;
    text-align: center;
    box-shadow: 0 20px 45px rgba(28, 54, 91, .12);
    width: 190px;
    font-size: 13px;
    font-weight: 750;
    color: var(--p20-navy);
    line-height: 1.4;
}

.p20-doc-1 {
    left: 8%;
    top: 45px;
    transform: rotate(-8deg);
}

.p20-doc-2 {
    left: 36%;
    top: 15px;
    z-index: 2;
    transform: rotate(3deg);
    padding-top: 45px;
    padding-bottom: 45px;
}

.p20-doc-3 {
    right: 5%;
    top: 75px;
    transform: rotate(8deg);
}

/* ============================================================
   CTA
   ============================================================ */
.p20-cta {
    padding: 62px 0;
    background: linear-gradient(115deg, #0d55aa, #147be7);
    color: #fff;
}

.p20-cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.p20-cta h2 {
    color: #fff;
    margin: 0 0 10px;
    font-size: 36px;
    letter-spacing: -.025em;
    font-weight: 850;
}

.p20-cta p {
    margin: 0;
    color: #dceeff;
}

.p20-cta-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* ============================================================
   ТОСТ
   ============================================================ */
.p20-toast {
    position: fixed;
    right: 25px;
    bottom: 25px;
    background: var(--p20-navy);
    color: #fff;
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: var(--p20-shadow);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity .25s, transform .25s;
    z-index: 100;
    font-size: 13px;
    max-width: 320px;
}

.p20-toast.show {
    opacity: 1;
    transform: none;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */

/* Планшет ---------- 1050px */
@media (max-width: 1050px) {
    .p20-hero-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .p20-hero-visual {
        height: 380px;
        max-width: 700px;
        width: 100%;
        margin: auto;
    }

    .p20-hero-tile {
        width: 110px;
        height: 110px;
        border-radius: 22px;
    }

    .p20-hero-tile svg {
        width: 34px;
        height: 34px;
    }

    .p20-hero-tile span {
        font-size: 11px;
    }

    .p20-tile-3,
    .p20-tile-4 {
        width: 120px;
        height: 120px;
    }

    .p20-quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .p20-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .p20-live-grid {
        grid-template-columns: 1fr 1fr;
    }

    .p20-live-grid>a:nth-child(3) {
        border-left: 0;
    }

    .p20-learning-box {
        grid-template-columns: 1fr;
        padding: 40px;
    }

    .p20-issn-grid,
    .p20-portfolio-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .p20-docs-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .p20-review {
        flex: 0 0 calc((100% - 18px) / 2);
    }
}

/* Мобильный ---------- 760px */
@media (max-width: 760px) {
    .p20-section-soft {
        padding: 0 !important;
        background: none;
    }
    
    .p20-hero {
        padding-top: 38px;
    }

    .p20-hero-title {
        font-size: 43px;
    }

    .p20-hero-lead {
        font-size: 17px;
    }

    .p20-search {
        height: 62px;
    }

    .p20-search button {
        height: 52px;
        padding: 0 20px;
    }

    .p20-search-icon {
        margin: 0 12px;
    }

    .p20-search-examples {
        line-height: 2;
    }

    .p20-hero-visual {
        height: 320px;
    }

    .p20-hero-blob {
        width: 320px;
        height: 320px;
    }

    .p20-hero-tile {
        width: 90px;
        height: 90px;
        border-radius: 18px;
    }

    .p20-hero-tile svg {
        width: 26px;
        height: 26px;
    }

    .p20-hero-tile span {
        font-size: 10px;
    }

    .p20-tile-3,
    .p20-tile-4 {
        width: 100px;
        height: 100px;
    }

    .p20-tile-1 {
        top: 20px;
        left: 6%;
    }

    .p20-tile-2 {
        top: 20px;
        right: 6%;
    }

    .p20-tile-3 {
        top: 50%;
        left: 2%;
    }

    .p20-tile-4 {
        top: 50%;
        right: 2%;
    }

    .p20-tile-5 {
        bottom: 20px;
    }

    .p20-quick-grid,
    .p20-cat-grid,
    .p20-preview-grid,
    .p20-cards-3,
    .p20-cards-2,
    .p20-pupil-grid {
        grid-template-columns: 1fr;
    }

    .p20-quick-title {
        font-size: 23px;
    }

    .p20-live-grid {
        grid-template-columns: 1fr;
    }

    .p20-live-grid>a {
        border-left: 0;
        border-top: 1px solid #d4e4f3;
        min-height: auto;
    }

    .p20-live-grid>a:first-child {
        border-top: 0;
    }

    .p20-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .p20-section h2,
    .p20-learning-box h2,
    .p20-issn-grid h2,
    .p20-portfolio-grid h2,
    .p20-docs-grid h2,
    .p20-cta h2 {
        font-size: 31px;
    }

    .p20-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .p20-learning-box {
        padding: 30px 22px;
    }

    .p20-issn-book {
        max-width: 240px;
    }

    .p20-doc-stack {
        height: 280px;
    }

    .p20-doc-stack span {
        width: 150px;
        padding: 20px;
        font-size: 12px;
    }

    .p20-doc-2 {
        padding-top: 34px;
        padding-bottom: 34px;
    }

    .p20-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .p20-cta-actions {
        flex-wrap: wrap;
    }

    .p20-review {
        flex: 0 0 100%;
    }

    .p20-toast {
        right: 15px;
        left: 15px;
        bottom: 15px;
        max-width: none;
    }
}

/* Очень маленькие ---------- 450px */
@media (max-width: 450px) {
    .p20-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .p20-live-head {
        min-height: auto;
    }

    .p20-quick-card {
        grid-template-columns: 52px 1fr 22px;
        min-height: auto;
    }

    .p20-quick-icon {
        width: 48px;
        height: 48px;
    }

    .p20-quick-icon svg {
        width: 24px;
        height: 24px;
    }

    .p20-hero-title {
        font-size: 36px;
    }

    .p20-search input {
        font-size: 13px;
    }

    .p20-search button {
        padding: 0 15px;
    }

    .p20-hero-tile {
        width: 78px;
        height: 78px;
    }

    .p20-hero-tile span {
        display: none;
    }
}

/* Уважение к настройкам пользователя */
@media (prefers-reduced-motion: reduce) {

    .p20-hero-tile,
    .p20-issn-book,
    .p20-live-dot {
        animation: none !important;
    }

    .p20-slider-track {
        transition: none;
    }
}



.p20-trust-bar {
  padding: 22px 0 4px;
}
.p20-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  background: #fff;
  border: 1px solid var(--p20-line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(24, 50, 91, .05);
}
.p20-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 10px;
  border-left: 1px solid var(--p20-line);
}
.p20-trust-item:first-child { border-left: 0; }

.p20-trust-ico {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.p20-trust-ico svg { width: 20px; height: 20px; }
.p20-trust-ico-blue   { background: var(--p20-blue-2);   color: var(--p20-blue); }
.p20-trust-ico-green  { background: var(--p20-green-2);  color: var(--p20-green); }
.p20-trust-ico-orange { background: var(--p20-orange-2); color: var(--p20-orange); }
.p20-trust-ico-purple { background: var(--p20-purple-2); color: var(--p20-purple); }

.p20-trust-item b {
  display: block;
  font-size: 13px;
  color: var(--p20-navy);
  line-height: 1.25;
  margin-bottom: 3px;
  font-weight: 800;
}
.p20-trust-item small {
  display: block;
  font-size: 11px;
  color: var(--p20-muted);
  line-height: 1.35;
}

@media (max-width: 1050px) {
  .p20-trust-grid { grid-template-columns: repeat(2, 1fr); }
  .p20-trust-item:nth-child(3) { border-left: 0; }
}
@media (max-width: 600px) {
  .p20-trust-grid { grid-template-columns: 1fr; padding: 14px; }
  .p20-trust-item { border-left: 0; border-top: 1px solid var(--p20-line); padding: 14px 4px; }
  .p20-trust-item:first-child { border-top: 0; }
}


/* --- ОБУЧЕНИЕ (крупный блок) --- */
.p20-learning {
    max-width: 1230px;
    margin: 0 auto;
}
.p20-section-head-center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}
.p20-section-head-center h2 { margin-bottom: 12px; }
.p20-learning-sub {
  color: var(--p20-muted);
  max-width: 720px;
  margin: 0 auto;
  font-size: 16px;
  text-align: center;
}

.p20-learning-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 38px 0 26px;
}

.p20-learn-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--p20-line);
  border-radius: 22px;
  padding: 30px;
  box-shadow: var(--p20-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.p20-learn-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--p20-shadow-hover);
  border-color: #c8dcf3;
}
.p20-learn-card-featured {
  border-color: var(--p20-orange);
  box-shadow: 0 18px 40px rgba(255, 157, 36, .15);
}

.p20-learn-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--p20-orange);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  padding: 5px 10px;
  border-radius: 20px;
}

.p20-learn-ico {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: grid;
  place-items: center;
}
.p20-learn-ico svg { width: 30px; height: 30px; }
.p20-learn-ico-blue   { background: var(--p20-blue-2);   color: var(--p20-blue); }
.p20-learn-ico-orange { background: var(--p20-orange-2); color: var(--p20-orange); }
.p20-learn-ico-green  { background: var(--p20-green-2);  color: var(--p20-green); }

.p20-learn-card h3 {
  font-size: 20px;
  color: var(--p20-navy);
  margin: 0;
  line-height: 1.25;
  font-weight: 850;
  letter-spacing: -.01em;
}
.p20-learn-card > p {
  font-size: 15px;
  color: var(--p20-muted);
  margin: 0;
  line-height: 1.55;
  font-weight: 750;
}

.p20-learn-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.p20-learn-list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: #425976;
  margin-top: 0;
}

.p20-learn-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--p20-green);
  opacity: .7;
}

.p20-learn-bottom {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--p20-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.p20-learn-price {
  font-size: 18px;
  font-weight: 850;
  color: var(--p20-navy);
}

/* Полоса преимуществ */
.p20-learn-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  background: #fff;
  border: 1px solid var(--p20-line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(24, 50, 91, .05);
}
.p20-learn-strip-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 14px;
  border-left: 1px solid var(--p20-line);
}
.p20-learn-strip-item:first-child { border-left: 0; padding-left: 0; }

.p20-learn-strip-ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--p20-green-2);
  color: var(--p20-green);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.p20-learn-strip-ico svg { width: 18px; height: 18px; }

.p20-learn-strip-item b {
  display: block;
  font-size: 13px;
  color: var(--p20-navy);
  line-height: 1.2;
  margin-bottom: 2px;
}
.p20-learn-strip-item small {
  display: block;
  font-size: 11px;
  color: var(--p20-muted);
}

@media (max-width: 1050px) {
  .p20-learning-cards { grid-template-columns: 1fr; }
  .p20-learn-strip { grid-template-columns: repeat(2, 1fr); }
  .p20-learn-strip-item:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 600px) {
  .p20-learn-card { padding: 24px; }
  .p20-learn-strip { grid-template-columns: 1fr; padding: 16px; }
  .p20-learn-strip-item { border-left: 0; border-top: 1px solid var(--p20-line); padding: 14px 0 0; }
  .p20-learn-strip-item:first-child { border-top: 0; padding-top: 0; }
  .p20-learn-bottom { flex-direction: column; align-items: stretch; }
}

/* --- ЛИЦЕНЗИИ --- */
.p20-licenses {
    background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
}

.p20-lic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 38px 0 30px;
}

.p20-lic-card {
  background: #fff;
  border: 1px solid var(--p20-line);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--p20-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.p20-lic-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--p20-shadow);
  border-color: #c8dcf3;
}

.p20-lic-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.p20-lic-ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--p20-blue-2);
  color: var(--p20-blue);
  display: grid;
  place-items: center;
}
.p20-lic-ico svg { width: 26px; height: 26px; }

.p20-lic-tag {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--p20-blue);
  background: var(--p20-blue-2);
  padding: 5px 10px;
  border-radius: 20px;
}

.p20-lic-card h3 {
  font-size: 17px;
  color: var(--p20-navy);
  margin: 4px 0 0;
  font-weight: 800;
  line-height: 1.3;
}
.p20-lic-num {
  font-size: 15px;
  font-weight: 850;
  color: var(--p20-navy);
  letter-spacing: -.01em;
  margin: 0;
  font-family: 'SFMono-Regular', 'Menlo', 'Consolas', monospace;
}
.p20-lic-card > p:not(.p20-lic-num) {
  font-size: 13px;
  color: var(--p20-muted);
  margin: 0;
  line-height: 1.5;
}

.p20-lic-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .p20-lic-grid { grid-template-columns: 1fr; }
  .p20-lic-cta { flex-direction: column; align-items: stretch; }
}


/* ============================================================
   Центральный логотип в Hero (с парением)
   ============================================================ */
.p20-hero-logo {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 20px 44px rgba(31, 69, 117, .14);
  display: grid;
  place-items: center;
  z-index: 1;
  animation: p20-logo-float 6s ease-in-out infinite;
  width: 130px;
  height: 130px;
}

.p20-hero-logo img {
  max-height: 100%;
  object-fit: contain;
  width: 42px;
  height: 42px;
}

/* Отдельная анимация — с учётом центрирования */
@keyframes p20-logo-float {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%      { transform: translate(-50%, calc(-50% - 8px)) scale(1.03); }
}

/* Планшет */
@media (max-width: 1050px) {
  .p20-hero-logo { width: 110px; height: 110px; }
}

/* Мобильный */
@media (max-width: 760px) {
  .p20-hero-logo { width: 90px; height: 90px; border-radius: 18px; }
}

/* Очень маленькие */
@media (max-width: 450px) {
  .p20-hero-logo { width: 78px; height: 78px; }
}

.p20-article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.p20-article-card h3 a {
    color: inherit;
    text-decoration: none;
}

.p20-article-card h3 a:hover {
    color: #4D51BC;
}



.p20-article-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.p20-article-more:hover {
    color: #4D51BC;
}

.p20-article-more b {
    transition: transform 0.2s ease;
}

.p20-article-more:hover b {
    transform: translateX(3px);
}