/* =========================================================
   ГЛАВНАЯ СТРАНИЦА
   Стили вынесены из page-home.php
========================================================= */

.hero-simple {
    background: linear-gradient(135deg, #0070BE 0%, #005a99 50%, #0070BE 100%);
    padding: 45px 0;
}

.hero-simple__title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
	letter-spacing: 0.2px;
  box-shadow: 0 6px 25px rgba(0,112,190,0.25);
    text-align: center;
}

.hero-simple__title span {
    color: #ffd700;
}

@media (max-width: 768px) {
    .hero-simple {
        padding: 40px 0;
    }
    .hero-simple__title {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .hero-simple__title {
        font-size: 20px;
    }
}

/* Летняя школа */
.ls,
.ls * {
    box-sizing: border-box;
}

.ls {
    padding: 120px 0;
    background: #0070be;
    color: #fff;
}

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

.ls-title {
    margin: 0 0 15px;
    color: #fff;
    font-size: clamp(38px, 5.5vw, 70px);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: 2px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, .3);
    transform-origin: top center;
    animation: ls-swing 2.8s ease-in-out infinite;
}

.ls-title span {
    color: #fcd34d;
    text-shadow: 0 0 30px rgba(252, 211, 77, .5);
}

.ls-sub {
    margin: 0;
    font-size: 24px;
    line-height: 1.6;
}

.ls-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.ls-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .08));
    box-shadow: 0 10px 30px rgba(0, 39, 80, .14);
    transition: transform .25s ease, box-shadow .25s ease;
}

.ls-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(0, 39, 80, .24);
}

.ls-num {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    display: grid;
    width: 38px;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #fcd34d, #f59e0b);
    color: #1a1a2e;
    font: 800 18px/1 Arial, sans-serif;
    box-shadow: 0 4px 15px rgba(252, 211, 77, .4);
}

.ls-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e8eef5;
}

.ls-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .35s ease;
}

.ls-card:hover .ls-img img {
    transform: scale(1.035);
}

.ls-body {
    display: flex;
    min-height: 150px;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 24px;
}

.ls-body h3 {
    margin: 0 0 20px;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: .4px;
}

.ls-date {
    display: inline-flex;
    margin-top: auto;
    padding: 8px 18px;
    border: 2px solid #fcd34d;
    border-radius: 30px;
    background: rgba(252, 211, 77, .14);
    color: #fcd34d;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

.ls-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 40px;
    align-items: stretch;
    padding: 40px 45px;
    border: 2px solid rgba(255, 255, 255, .25);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .05));
    box-shadow: 0 20px 50px rgba(0, 0, 0, .15);
}

.ls-list {
    display: grid;
    gap: 16px;
}

.ls-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-left: 4px solid #fcd34d;
    border-radius: 16px;
    background: rgba(255, 255, 255, .08);
    font-size: 16px;
    line-height: 1.55;
}

.ls-item svg {
    width: 20px;
    min-width: 20px;
    fill: #fcd34d;
}

.ls-item a {
    color: #fcd34d;
    font-weight: 700;
    text-decoration: none;
}

/* Купон: одна лёгкая анимация */
.ls-coupon {
    display: flex;
    min-height: 210px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 25px;
    border: 4px dashed #1a1a2e;
    border-radius: 24px;
    background: linear-gradient(135deg, #fcd34d, #f59e0b);
    color: #1a1a2e;
    text-align: center;
    box-shadow: 0 12px 30px rgba(252, 211, 77, .3);
    animation: ls-pulse 2s ease-in-out infinite;
}

.ls-coupon span {
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.ls-coupon strong {
    margin: 12px 0 16px;
    font-size: 48px;
    line-height: 1;
    white-space: nowrap;
}

.ls-coupon small {
    padding: 9px 16px;
    border-radius: 24px;
    background: #1a1a2e;
    color: #fcd34d;
    font-size: 13px;
    font-weight: 700;
}

@keyframes ls-swing {
    0%,
    100% {
        transform: rotate(-1deg);
    }

    50% {
        transform: rotate(1deg);
    }
}

@keyframes ls-pulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.025);
    }
}

/* Планшет */
@media (max-width: 1024px) {
    .ls {
        padding: 80px 0;
    }

    .ls-head {
        margin-bottom: 36px;
    }

    .ls-sub {
        font-size: 19px;
    }

    .ls-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
        margin-bottom: 36px;
    }

    .ls-body {
        min-height: 135px;
        padding: 18px 20px 20px;
    }

    .ls-body h3 {
        margin-bottom: 16px;
        font-size: 22px;
    }

    .ls-info {
        grid-template-columns: minmax(0, 1fr) 250px;
        gap: 24px;
        padding: 28px;
    }

    .ls-coupon {
        min-height: 200px;
        padding: 26px 18px;
    }

    .ls-coupon strong {
        font-size: 40px;
    }
}

/* Мобильный */
@media (max-width: 767px) {
    .ls {
        padding: 52px 0;
    }

    .ls-head {
        margin-bottom: 28px;
    }

    .ls-title {
        font-size: clamp(28px, 9vw, 42px);
        letter-spacing: .5px;
        animation-duration: 4s;
    }

    .ls-sub {
        font-size: 15px;
        line-height: 1.5;
    }

    .ls-sub br {
        display: none;
    }

    .ls-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-bottom: 28px;
    }

    .ls-card {
        border-radius: 17px;
        box-shadow: 0 8px 22px rgba(0, 39, 80, .18);
    }

    .ls-card:hover,
    .ls-card:hover .ls-img img {
        transform: none;
    }

    .ls-img {
        aspect-ratio: 1;
    }

    .ls-num {
        top: 8px;
        right: 8px;
        width: 30px;
        font-size: 14px;
    }

    .ls-body {
        min-height: 118px;
        padding: 13px 12px 14px;
    }

    .ls-body h3 {
        margin-bottom: 12px;
        font-size: 20px;
        line-height: 1.3;
        letter-spacing: 0;
    }

    .ls-date {
        width: 100%;
        justify-content: center;
        padding: 6px 8px;
        border-width: 1px;
        font-size: 16px;
    }

    .ls-info {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 18px;
        border-radius: 22px;
    }

    .ls-list {
        gap: 12px;
    }

    .ls-item {
        gap: 10px;
        padding: 14px;
        border-left-width: 3px;
        border-radius: 13px;
        font-size: 14px;
        line-height: 1.45;
    }

    .ls-item svg {
        width: 18px;
        min-width: 18px;
    }

    .ls-coupon {
        min-height: 180px;
        padding: 25px 18px;
        border-width: 3px;
        border-radius: 19px;
        animation-duration: 2.4s;
    }

    .ls-coupon strong {
        font-size: 40px;
    }
}

/* Узкие экраны */
@media (max-width: 380px) {
    .ls-grid {
        gap: 9px;
    }

    .ls-body {
        min-height: 110px;
        padding: 11px 9px 12px;
    }

    .ls-body h3 {
        font-size: 16px;
    }

    .ls-date {
        font-size: 14px;
    }

    .ls-info {
        padding: 14px;
    }

    .ls-coupon strong {
        font-size: 35px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ls-title,
    .ls-coupon {
        animation: none;
    }

    .ls-card,
    .ls-img img {
        transition: none;
    }
}

/* ============================================
       ACTIVITIES SECTION
    ============================================ */
    .activities-section {
        color: white;
        position: relative;
        overflow: hidden;
        padding: 80px 0;
        background-color: #0070BE;
    }
    
    .activities-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: 
            radial-gradient(ellipse at 30% 70%, rgba(252,211,77,0.1) 0%, transparent 50%),
            radial-gradient(ellipse at 70% 30%, rgba(255,255,255,0.08) 0%, transparent 50%);
        opacity: 0.8;
        pointer-events: none;
    }
    
    .container {
        position: relative;
        z-index: 2;
    }
    
    /* ===== ЗАГОЛОВОК СЕКЦИИ ===== */
    .section-title {
        text-align: center;
        margin-bottom: 60px;
    }
    
    .section-title h2 {
        font-size: 3rem;
        font-weight: 900;
        margin-bottom: 15px;
        letter-spacing: 3px;
        text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }
    
    .section-title p {
        font-size: 1.3rem;
        opacity: 0.9;
        max-width: 700px;
        margin: 0 auto;
        line-height: 1.6;
    }
    
    /* ===== СЕТКА КАРТОЧЕК ===== */
    .activities-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        margin-bottom: 60px;
    }
    
    .activity-card {
        background: linear-gradient(145deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.08) 100%);
        border-radius: 28px;
        padding: 0;
        border: 2px solid rgba(255,255,255,0.25);
        box-shadow: 0 15px 40px rgba(0,0,0,0.2);
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        overflow: hidden;
    }
    
    .activity-card:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 25px 50px rgba(0,0,0,0.25), 0 0 40px rgba(252,211,77,0.1);
        border-color: rgba(252,211,77,0.4);
    }
    
    .activity-image-wrapper {
        width: 100%;
        height: 350px;
        overflow: hidden;
        position: relative;
    }
    
    .activity-image-wrapper::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    }
    
    .activity-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }
    
    .activity-card:hover .activity-image {
        transform: scale(1.1);
    }
    
    .activity-card-content {
        padding: 30px 35px 35px;
    }
    
    .activity-title {
        font-size: 1.8rem;
        font-weight: 800;
        margin-bottom: 25px;
        text-align: center;
        color: white;
        text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }
    
    .activity-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .activity-list li {
        background: rgba(255, 255, 255, 0.1);
        margin: 12px 0;
        padding: 18px 22px;
        border-radius: 14px;
        font-size: 1.1rem;
        font-weight: 500;
        border-left: 4px solid #fcd34d;
        transition: all 0.3s ease;
        line-height: 1.5;
    }
    
    .activity-list li:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateX(10px);
        border-left-width: 6px;
    }
    
    /* ===== БЛОК "И МНОГОЕ ДРУГОЕ!" ===== */
    .more-block {
        text-align: center;
        padding: 30px 0 50px;
        margin-bottom: 20px;
    }
    
    .more-title {
    display: inline-flex;
    align-items: center;
    gap: 30px;
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 4px;
    text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.more-title::before,
.more-title::after {
    content: "";
    width: 60px;
    height: 3px;
    flex-shrink: 0;
}

.more-title::before {
    background: linear-gradient(90deg, transparent, #fcd34d);
}

.more-title::after {
    background: linear-gradient(90deg, #fcd34d, transparent);
}
    
    /* ===== БЛОК С QR-КОДАМИ ===== */
    .qr-block {
        text-align: center;
        padding-top: 20px;
    }
    
    .qr-title {
        font-size: 2.2rem;
        font-weight: 800;
        margin-bottom: 35px;
        text-shadow: 0 2px 10px rgba(0,0,0,0.2);
        line-height: 1.3;
    }
    
    .ls-qr-group {
        display: flex;
        gap: 40px;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
    }
    
    .ls-qr-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        transition: transform 0.3s ease;
    }
    
    .ls-qr-item:hover {
        transform: scale(1.05);
    }
    
    .ls-qr-item img {
        width: 180px;
        height: 180px;
        border-radius: 20px;
        border: 4px solid rgba(255,255,255,0.5);
        object-fit: contain;
        background: white;
        box-shadow: 0 8px 30px rgba(0,0,0,0.25);
        transition: all 0.3s ease;
        padding: 15px;
    }
    
    .ls-qr-item:hover img {
        border-color: #fcd34d;
        box-shadow: 0 12px 40px rgba(0,0,0,0.35);
        transform: scale(1.02);
    }
    
    /* ===== АДАПТИВНОСТЬ ===== */
    @media (max-width: 992px) {
        .activities-grid {
            gap: 30px;
        }
        
        .more-title {
            font-size: 2.5rem;
        }
        
        .more-title::before,
        .more-title::after {
            width: 40px;
        }
        
        .qr-title {
            font-size: 1.8rem;
        }
    }
    
    @media (max-width: 768px) {
        .activities-section {
            padding: 50px 0;
        }
        
        .section-title h2 {
            font-size: 2.2rem;
        }
        
        .section-title p {
            font-size: 1.1rem;
            padding: 0 15px;
        }
        
        .activities-grid {
            grid-template-columns: 1fr;
            gap: 25px;
            margin-bottom: 40px;
        }
        
        .activity-image-wrapper {
            height: 200px;
        }
        
        .activity-card-content {
            padding: 25px;
        }
        
        .activity-title {
            font-size: 1.5rem;
        }
        
        .activity-list li {
            font-size: 1rem;
            padding: 15px 18px;
        }
        
        .more-block {
            padding: 20px 0 30px;
        }
        
        .more-title {
            font-size: 2rem;
            letter-spacing: 2px;
        }
        
        .more-title::before,
        .more-title::after {
            display: none;
        }
        
        .qr-title {
            font-size: 1.5rem;
            padding: 0 15px;
        }
        
        .ls-qr-group {
            gap: 25px;
        }
        
        .ls-qr-item img {
            width: 130px;
            height: 130px;
            padding: 10px;
        }
    }
    
    @media (max-width: 480px) {
        .section-title h2 {
            font-size: 1.8rem;
        }
        
        .section-title p {
            font-size: 1rem;
        }
        
        .more-title {
            font-size: 1.6rem;
        }
        
        .qr-title {
            font-size: 1.2rem;
        }
        
        .ls-qr-item img {
            width: 110px;
            height: 110px;
            padding: 8px;
        }
        
        .ls-qr-group {
            gap: 15px;
        }
    }

.hs,
.hs * {
    box-sizing: border-box;
}

.hs {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    background: #a3e2f6;
    color: #06375d;
}

.hs .container {
    width: min(1440px, calc(100% - 48px));
    max-width: 1440px;
    min-height: inherit;
}

.hs-in {
    display: grid;
    min-height: inherit;
    grid-template-columns: 43% 57%;
    align-items: stretch;
}

.hs-txt {
    position: relative;
    z-index: 2;
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 150px 0 88px;
}

.hs-name {
    display: grid;
    gap: 13px;
    color: #082f51;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.15;
}

.hs-name strong {
    font-weight: 700;
}

.hs h1 {
    margin: 76px 0 0;
    color: #07395f;
    font-size: clamp(35px, 2.7vw, 47px);
    font-weight: 700;
    letter-spacing: .3px;
    line-height: 1.08;
}

.hs h1 em,
.hs h1 b {
    color: #2476c1;
    font-style: normal;
    font-weight: 700;
}

.hs-btn {
    display: inline-flex;
    width: fit-content;
    min-height: 80px;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 15px 38px;
    border-radius: 8px;
    background: #ffd238;
    color: #111;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease;
}

.hs-btn:hover {
    background: #ffc91b;
    transform: translateY(-2px);
}

/* Картинка центрируется по вертикали */
.hs-img {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}

.hs-img img {
    display: block;
    width: 100%;
    max-width: 900px;
    height: auto;
    object-fit: contain;
}

.hs-dot {
    position: absolute;
    z-index: 4;
    bottom: 14px;
    left: 50%;
    width: 17px;
    height: 17px;
    border: 6px solid #fff;
    border-radius: 50%;
    background: #1e779e;
    transform: translateX(-50%);
}

/* Планшет */
@media (max-width: 1100px) {
    .hs {
        min-height: 610px;
    }

    .hs .container {
        width: min(100% - 36px, 1240px);
    }

    .hs-in {
        grid-template-columns: 44% 56%;
    }

    .hs-txt {
        padding: 100px 0 68px;
    }

    .hs-name {
        gap: 10px;
        font-size: 21px;
    }

    .hs h1 {
        margin-top: 55px;
        font-size: 34px;
    }

    .hs-btn {
        min-height: 62px;
        padding: 13px 25px;
        font-size: 16px;
    }

    .hs-img img {
        width: calc(100% + 30px);
        max-width: none;
        margin-right: -20px;
    }
}

/* Мобильный */
@media (max-width: 767px) {
    .hs {
        min-height: 0;
        padding: 42px 0;
    }

    .hs .container {
        width: calc(100% - 30px);
    }

    .hs-in {
        display: flex;
        flex-direction: column;
    }

    .hs-txt {
        display: contents;
    }

    .hs-name {
        order: 1;
        display: grid;
        gap: 7px;
        margin-bottom: 18px;
        color: #082f51;
        font-size: 17px;
        font-weight: 700;
        letter-spacing: .5px;
        text-align: center;
    }

    .hs-img {
        order: 2;
        display: flex;
        height: 300px;
        align-items: center;
        justify-content: center;
        margin-bottom: 18px;
    }

    .hs-img img {
        width: 100%;
        max-width: 360px;
        height: 100%;
        margin: 0;
        object-fit: contain;
    }

    .hs h1 {
        order: 3;
        margin: 0;
        font-size: clamp(27px, 8vw, 36px);
        line-height: 1.08;
        text-align: center;
    }

    .hs h1 br {
        display: none;
    }

    .hs-btn {
        order: 4;
        display: flex;
        width: 100%;
        min-height: 58px;
        align-items: center;
        justify-content: center;
        margin-top: 24px;
        padding: 12px 18px;
        font-size: 15px;
    }

    .hs-dot {
        display: none;
    }
}

@media (max-width: 480px) {
    .hs {
        padding: 32px 0;
    }

    .hs-name {
        font-size: 15px;
    }

    .hs-img {
        height: 250px;
    }

    .hs-img img {
        max-width: 300px;
    }

    .hs h1 {
        font-size: 28px;
    }

    .hs-btn {
        min-height: 54px;
        font-size: 14px;
    }
}

/* Вместе создаём будущее */
.ft,
.ft * {
    box-sizing: border-box;
}

.ft {
    padding: 110px 0;
    overflow: hidden;
    background: #fff;
    color: #171717;
}

.ft-in {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 520px;
    gap: 70px;
    align-items: center;
}

.ft-txt {
    min-width: 0;
}

.ft h2 {
    max-width: 650px;
    margin: 0 0 30px;
    font-size: 42px;
    line-height: 1.18;
    letter-spacing: -.8px;
}

.ft h2 span {
    color: #2671b9;
}

.ft h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    margin-top: 20px;
    background: #2671b9;
}

.ft-lead {
    max-width: 650px;
    margin: 0 0 26px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.5;
}

.ft-list {
    max-width: 680px;
    margin: 0 0 52px;
    padding-left: 22px;
    font-size: 16px;
    line-height: 1.65;
}

.ft-list li + li {
    margin-top: 10px;
}

.ft-btn {
    display: flex;
    width: 100%;
    max-width: 580px;
    min-height: 68px;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 7px;
    background: #ffd641;
    color: #111;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(255, 214, 65, .25);
    transition: .25s ease;
}

.ft-btn:hover {
    background: #ffca0a;
    color: #111;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 202, 10, .32);
}

.ft-img img {
    display: block;
    width: 100%;
    max-height: 560px;
    object-fit: contain;
}

/* Планшет */
@media (max-width: 1024px) {
    .ft {
        padding: 75px 0;
    }

    .ft-in {
        grid-template-columns: minmax(0, 1fr) 400px;
        gap: 40px;
    }

    .ft h2 {
        font-size: 35px;
    }

    .ft-lead {
        font-size: 19px;
    }

    .ft-list {
        margin-bottom: 38px;
        font-size: 15px;
    }

    .ft-btn {
        min-height: 60px;
        font-size: 16px;
    }
}

/* Мобильная версия */
@media (max-width: 767px) {
    .ft {
        padding: 52px 0 60px;
    }

    .ft-in {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .ft-txt {
        width: 100%;
    }

    .ft h2 {
        margin-bottom: 25px;
        font-size: 30px;
        letter-spacing: -.4px;
    }

    .ft h2::after {
        margin-top: 17px;
    }

    .ft-lead {
        font-size: 17px;
        line-height: 1.45;
    }

    .ft-list {
        margin-bottom: 30px;
        padding-left: 20px;
        font-size: 15px;
        line-height: 1.55;
    }

    .ft-btn {
        max-width: none;
        min-height: 58px;
        padding: 13px 18px;
        font-size: 15px;
    }

    .ft-img {
        order: -1;
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
    }

    .ft-img img {
        max-height: none;
    }
}

@media (max-width: 480px) {
    .ft {
        padding: 42px 0 50px;
    }

    .ft-in {
        gap: 25px;
    }

    .ft h2 {
        font-size: 25px;
        line-height: 1.22;
    }

    .ft h2::after {
        width: 48px;
        margin-top: 14px;
    }

    .ft-lead {
        margin-bottom: 20px;
        font-size: 16px;
    }

    .ft-list {
        margin-bottom: 27px;
        font-size: 14px;
    }

    .ft-list li + li {
        margin-top: 8px;
    }

    .ft-btn {
        min-height: 54px;
        border-radius: 6px;
        font-size: 14px;
    }
}

.bg-img-cover{
    width:100%;
    height:143px;
    inset:auto 0 0;
    background:url("/wp-content/uploads/2026/07/bghr.webp") center center / cover no-repeat;
}

/* ===================================================
   БЛОК: О ШКОЛЕ
=================================================== */

.about-school {
    padding: 70px 0;
    background: #ffffff;
}

.about-school__inner {
    display: grid;
    grid-template-columns: 376px minmax(0,1fr); 
    gap: 50px;
    align-items: stretch;
    height: 400px;
}

/* Изображение */
.about-school__image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: #a9e8fa;
}

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

/* Текстовый блок */
.about-school__text {
    height: 400px;
    min-width: 0;
    overflow-y: auto;
    padding: 20px 28px 20px 0;
    scrollbar-width: thin;
    scrollbar-color: #1684c5 #e8f6fb;
}

/* Scrollbar Chrome, Edge, Safari */
.about-school__text::-webkit-scrollbar {
    width: 8px;
}

.about-school__text::-webkit-scrollbar-track {
    background: #e8f6fb;
    border-radius: 20px;
}

.about-school__text::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        #29b8df 0%,
        #0875b9 100%
    );
    border: 2px solid #e8f6fb;
    border-radius: 20px;
}

.about-school__text::-webkit-scrollbar-thumb:hover {
    background: #066ca9;
}

/* Текст */
.formatted-text {
    color: #171717;
    font-size: 16px;
    line-height: 1.9;
}

.formatted-text p {
    margin: 0 0 22px;
}

.formatted-text h2 {
    margin: 34px 0 18px;
    color: #176eb1;
    font-size: 27px;
	width: 90%;
    font-weight: 700;
    line-height: 1.3;
}

h2.tit {
    max-width: 518px;
    margin: 0 0 24px;
    color: #171827;
    font-size: clamp(34px, 3.2vw, 48px);
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -.7px;
}

.formatted-text ul {
    margin: 0 0 24px;
    padding-left: 24px;
}

.formatted-text li {
    margin-bottom: 7px;
}

.formatted-text a {
    color: #0879bd;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.formatted-text a:hover {
    color: #f0a900;
}

/* ===================================================
   ПЛАНШЕТ
=================================================== */

@media (max-width: 1024px) {
    .about-school {
        padding: 60px 0;
    }

    .about-school__inner {
        grid-template-columns:32% minmax(0,1fr);
        gap: 28px;
    }

    .formatted-text {
        font-size: 15px;
        line-height: 1.8;
    }

    .formatted-text h2 {
        font-size: 23px;
    }
}

/* ===================================================
   МОБИЛЬНАЯ ВЕРСИЯ
=================================================== */

@media (max-width: 767px) {
    .about-school {
        padding: 45px 0;
    }

    .about-school__inner {
        display: flex;
        flex-direction: column;
        height: auto;
        gap: 25px;
    }

    .about-school__image {
        height: 300px;
    }

    .about-school__text {
        height: 400px;
        padding: 20px 18px;
        border: 1px solid #dceef5;
        border-radius: 12px;
        background: #ffffff;
    }

    .formatted-text {
        font-size: 14px;
        line-height: 1.7;
    }

    .formatted-text p {
        margin-bottom: 18px;
    }

    .formatted-text h2 {
        margin: 28px 0 15px;
        font-size: 21px;
    }
}

@media (max-width: 480px) {
    .about-school {
        padding: 35px 0;
    }

    .about-school__image {
        height: 240px;
    }

    .about-school__text {
        height: 400px;
        padding: 17px 14px;
    }

    .formatted-text {
        font-size: 13px;
    }

    .formatted-text h2 {
        font-size: 19px;
    }
}

/* Программы */

.np {
    padding: 100px 0;
    background: url('/wp-content/uploads/2026/07/bg-p2.webp') center/cover;
    color: #172235;
}

.np-head {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}

.np-label,
.np-mini {
    display: inline-block;
    color: #0878b7;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.np-head h2 {
    margin: 10px 0 14px;
    color: #08233f;
    font-size: clamp(36px, 4vw, 54px);
    line-height: 1.1;
}

.np-head p {
    margin: 0;
    font-size: 18px;
    line-height: 1.55;
}

.np-about {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 28px;
    margin-bottom: 20px;
}

.np-about-main,
.np-skills {
    border: 1px solid rgba(8, 120, 183, .14);
    border-radius: 24px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 18px 50px rgba(8, 35, 63, .08);
}

.np-about-main {
    padding: 36px;
}

.np-about-main h3 {
    margin: 12px 0 16px;
    color: #102943;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.22;
}

.np-about-main h3 em {
    display: block;
    color: #0878b7;
    font-style: normal;
}

.np-about-main p {
    margin: 0;
    color: #536273;
    font-size: 16px;
    line-height: 1.65;
}

.np-main-btn {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    margin-top: 25px;
    padding: 12px 24px;
    border-radius: 10px;
    background: #ffd43b;
    color: #111;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease;
}

.np-main-btn:hover,
.np-body a:hover {
    background: #f5c400;
    transform: translateY(-2px);
}

.np-skills {
    display: grid;
    gap: 1px;
    overflow: hidden;
}

.np-skills article {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 16px;
    align-items: center;
    padding: 22px 26px;
    background: rgba(255, 255, 255, .78);
}

.np-skills article + article {
    border-top: 1px solid #e7edf2;
}

.np-skills article > span {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 16px;
    background: #eaf7ff;
    font-size: 25px;
}

.np-skills h4 {
    margin: 0 0 5px;
    color: #102943;
    font-size: 19px;
}

.np-skills p {
    margin: 0;
    color: #5c6876;
    font-size: 15px;
    line-height: 1.5;
}

.np-result {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 44px;
    padding: 18px 22px;
    border-radius: 16px;
    background: #0878b7;
    color: #fff;
}

.np-result strong {
    margin-right: 4px;
}

.np-result span {
    padding: 7px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .16);
    font-size: 14px;
}

.np-slider {
    position: relative;
}

.np-swiper {
    width: calc(100% - 92px);
}

.np-swiper .swiper-wrapper {
    align-items: stretch;
}

.np-card {
    display: flex;
    height: auto;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e1e8ee;
    border-radius: 20px;
    background: #fff;
}

.np-img {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e8eef3;
}

.np-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.np-card:hover .np-img img {
    transform: scale(1.04);
}

.np-price {
    position: absolute;
    top: 18px;
    right: 0;
    padding: 9px 15px;
    border-radius: 9px 0 0 9px;
    background: #f40b4f;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
}

.np-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px;
}

.np-body h3 {
    min-height: 58px;
    margin: 0 0 10px;
    color: #102943;
    font-size: 23px;
    line-height: 1.25;
}

.np-body p {
    margin: 0 0 22px;
    color: #566473;
    font-size: 14px;
    line-height: 1.65;
}

.np-body a {
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 10px 14px;
    border-radius: 9px;
    background: #ffd43b;
    color: #111;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease;
}

.np-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    display: grid;
    width: 46px;
    height: 46px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #ffd43b;
    color: #102943;
    box-shadow: 0 8px 22px rgba(8, 35, 63, .16);
    cursor: pointer;
    transform: translateY(-50%);
}

.np-arrow svg {
    width: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.np-prev {
    left: 0;
}

.np-next {
    right: 0;
}

.np-dots {
    position: static;
    display: none;
    margin-top: 22px;
}

.np-dots .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    background: #81909e;
    opacity: .45;
}

.np-dots .swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 8px;
    background: #0878b7;
    opacity: 1;
}

/* Планшет */
@media (max-width: 1024px) {
    .np {
        padding: 70px 0;
    }

    .np-about {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    .np-about-main {
        padding: 28px;
    }

    .np-skills article {
        grid-template-columns: 44px 1fr;
        gap: 12px;
        padding: 18px;
    }

    .np-skills article > span {
        width: 44px;
        height: 44px;
        border-radius: 13px;
        font-size: 21px;
    }

    .np-swiper {
        width: calc(100% - 72px);
    }

    .np-body h3 {
        min-height: 52px;
        font-size: 20px;
    }

    .np-arrow {
        width: 40px;
        height: 40px;
    }
}

/* Мобильный */
@media (max-width: 767px) {
    .np {
        padding: 48px 0 54px;
    }

    .np-head {
        margin-bottom: 28px;
    }

    .np-head h2 {
        font-size: 32px;
    }

    .np-head p {
        font-size: 15px;
    }

    .np-about {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .np-about-main,
    .np-skills {
        border-radius: 18px;
    }

    .np-about-main {
        padding: 22px 18px;
    }

    .np-about-main h3 {
        font-size: 26px;
    }

    .np-about-main p {
        font-size: 14px;
    }

    .np-main-btn {
        width: 100%;
    }

    .np-skills article {
        grid-template-columns: 42px 1fr;
        padding: 16px;
    }

    .np-skills h4 {
        font-size: 16px;
    }

    .np-skills p {
        font-size: 13px;
    }

    .np-result {
        gap: 7px;
        margin-bottom: 28px;
        padding: 15px;
    }

    .np-result strong {
        width: 100%;
    }

    .np-result span {
        font-size: 12px;
    }

    .np-swiper {
        width: 100%;
        overflow: visible;
    }

    .np-card {
        border-radius: 17px;
    }

    .np-body {
        padding: 18px;
    }

    .np-body h3 {
        min-height: 0;
        font-size: 21px;
    }

    .np-arrow {
        display: none;
    }

    .np-dots {
        display: block;
    }
}

@media (max-width: 380px) {
    .np-head h2 {
        font-size: 28px;
    }

    .np-about-main h3 {
        font-size: 23px;
    }

    .np-skills article {
        padding: 14px 12px;
    }

    .np-price {
        top: 12px;
        font-size: 15px;
    }
}

/* Вводное занятие */
.fl,
.fl * {
    box-sizing: border-box;
}

.fl {
    padding: 100px 0;
    overflow: hidden;
    background: #edf6ff;
}

.fl-box {
    position: relative;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 65px 24px 40px;
    border: 2px solid #2673bd;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(38, 115, 189, .11);
}

.fl-tag {
    position: absolute;
    top: -19px;
    left: 50%;
    min-width: 185px;
    padding: 13px 24px;
    border-radius: 13px;
    background: #2c72b8;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 6px 16px rgba(38, 115, 189, .22);
    transform: translateX(-50%);
}

.fl-body {
    max-width: 625px;
    margin: 0 auto;
    text-align: center;
}

.fl-title,
.fl-sub {
    margin: 0;
    color: #111;
    font-weight: 700;
    line-height: 1.35;
}

.fl-title {
    font-size: 21px;
}

.fl-sub {
    margin-top: 13px;
    font-size: 20px;
}

.fl-sub span {
    color: #2673bd;
}

/* За 45 минут */
.fl-time {
    position: relative;
    display: inline-flex;
    min-height: 58px;
    align-items: center;
    gap: 13px;
    overflow: hidden;
    margin: 25px 0 27px;
    padding: 8px 20px 8px 20px;
    border-radius: 30px;
    background: linear-gradient(135deg, #52cc8b, #159fd3);
    color: #fff;
    box-shadow: 0 9px 24px rgba(38, 115, 189, .25);
    animation: fl-time-pulse 2.8s ease-in-out infinite;
}


.fl-time strong {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.fl-time::after {
    content: "";
    position: absolute;
    top: 0;
    left: -45%;
    width: 28%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, .45),
        transparent
    );
    transform: skewX(-24deg);
    animation: fl-time-light 3.5s ease-in-out infinite;
}

.fl-list {
    width: fit-content;
    margin: 0 auto 34px;
    padding: 0;
    list-style: none;
    text-align: left;
}

.fl-list li {
    position: relative;
    min-height: 25px;
    margin-bottom: 12px;
    padding-left: 36px;
    color: #111;
    font-size: 16px;
    line-height: 1.45;
}

.fl-list li:last-child {
    margin-bottom: 0;
}

.fl-list li::before {
    content: "✓";
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: #52cc8b;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .08);
}

.fl-gift-title {
    position: relative;
    display: inline-flex;
    min-height: 62px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 24px;
    padding: 12px 25px;
    border: 2px solid transparent;
    border-radius: 15px;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(90deg, #2673bd, #6fd3ff, #2673bd) border-box;
    color: #2673bd;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(38, 115, 189, .12);
    animation: fl-gift-pulse 3s ease-in-out infinite;
}

.fl-gift-title::after {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 35%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, .95),
        transparent
    );
    transform: skewX(-25deg);
    animation: fl-gift-light 4s ease-in-out infinite;
}

.fl-gift {
    margin-bottom: 18px;
    padding: 15px 30px;
    border-radius: 9px;
    background: #e2efff;
    color: #111;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.75;
}

.fl-btn {
    display: flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    background: #ffd43c;
    color: #080808;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 5px 13px rgba(205, 158, 0, .18);
    transition: transform .2s ease, background .2s ease;
}

.fl-btn:hover {
    background: #ffc928;
    color: #080808;
    transform: translateY(-2px);
}

.fl-note {
    margin: 12px 0 0;
    color: #2673bd;
    font-size: 12px;
    font-weight: 700;
}

.fl-foot {
    margin: 9px 0 0;
    color: #111;
    font-size: 12px;
    line-height: 1.5;
}

@keyframes fl-time-light {
    0%,
    35% {
        transform: translateX(0) skewX(-24deg);
    }

    70%,
    100% {
        transform: translateX(520%) skewX(-24deg);
    }
}

@keyframes fl-time-pulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 9px 24px rgba(38, 115, 189, .25);
    }

    50% {
        transform: scale(1.025);
        box-shadow: 0 12px 32px rgba(38, 115, 189, .34);
    }
}

@keyframes fl-gift-light {
    0%,
    35% {
        transform: translateX(0) skewX(-25deg);
    }

    70%,
    100% {
        transform: translateX(420%) skewX(-25deg);
    }
}

@keyframes fl-gift-pulse {
    0%,
    100% {
        box-shadow: 0 10px 25px rgba(38, 115, 189, .12);
    }

    50% {
        box-shadow: 0 12px 35px rgba(38, 115, 189, .25);
    }
}

@media (max-width: 767px) {
    .fl {
        padding: 70px 0 55px;
    }

    .fl-box {
        padding: 58px 18px 30px;
        border-radius: 15px;
    }

    .fl-tag {
        min-width: 165px;
        padding: 11px 18px;
        font-size: 15px;
    }

    .fl-title {
        font-size: 19px;
    }

    .fl-sub {
        font-size: 18px;
    }

    .fl-time {
        min-height: 54px;
        margin: 22px 0 24px;
    }

    .fl-time strong {
        font-size: 16px;
    }

    .fl-list {
        width: 100%;
    }

    .fl-list li {
        font-size: 15px;
    }

    .fl-gift {
        padding: 14px 18px;
        font-size: 14px;
        line-height: 1.65;
    }
}

@media (max-width: 480px) {
    .fl {
        padding: 60px 0 45px;
    }

    .fl-box {
        padding: 52px 14px 25px;
        border-radius: 13px;
    }

    .fl-title {
        font-size: 17px;
    }

    .fl-sub {
        font-size: 16px;
    }



    .fl-time span {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        font-size: 14px;
    }

    .fl-time strong {
        font-size: 14px;
    }

    .fl-list li {
        margin-bottom: 10px;
        padding-left: 32px;
        font-size: 14px;
    }

    .fl-gift-title {
        min-height: 56px;
        margin-bottom: 18px;
        padding: 10px 14px;
        font-size: 14px;
    }

    .fl-gift {
        padding: 13px 12px;
        font-size: 13px;
        line-height: 1.55;
    }

    .fl-btn {
        min-height: 50px;
        padding: 11px 15px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fl-time,
    .fl-time::after,
    .fl-gift-title,
    .fl-gift-title::after {
        animation: none;
    }
}

/* ===================================================
   НАШИ УЧИТЕЛЯ
=================================================== */

.tc {
    position: relative;
    width: 100%;
    padding: 100px 0 100px;
    overflow: hidden;
    background-image: url('/wp-content/uploads/2026/07/bg-p2.webp');
    background-repeat: repeat;
    background-position: center;
    background-size: cover;
    color: #151515;
}

.tc-head {
    text-align: center;
}

.tc-head h2 {
    margin: 0 0 30px;
    color: #101735;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
}

.tc-info {
    display: inline-block;
    margin-bottom: 48px;
    text-align: left;
}

.tc-info p {
    margin: 0 0 14px;
    color: #171717;
    font-size: 16px;
}

.tc-info ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tc-info li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 34px;
    color: #171717;
    font-size: 16px;
    line-height: 1.4;
}

.tc-info li:last-child {
    margin-bottom: 0;
}

.tc-info li::before {
    content: "✓";
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    background: #4fc98a;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
}

/* ===================================================
   БЕГУЩИЙ СВЕТ ПО РАМКЕ
=================================================== */

@property --tc-a {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.tc-msg {
    --tc-a: 0deg;

    position: relative;
    z-index: 0;
    overflow: hidden;

    max-width: 590px;
    margin: 0 auto 65px;
    padding: 20px 35px;

    border: 2px solid transparent;
    border-radius: 15px;

    background:
        linear-gradient(
            rgba(255,255,255,.94),
            rgba(255,255,255,.94)
        ) padding-box,

        conic-gradient(
            from var(--tc-a),
            #2673bd 0deg,
            #2673bd 270deg,
            #73cfff 300deg,
            #ffffff 318deg,
            #ffffff 326deg,
            #73cfff 340deg,
            #2673bd 360deg
        ) border-box;

    color:#2673bd;
    font-size:16px;
    font-weight:700;
    line-height:1.8;

    box-shadow:
        0 10px 30px rgba(38,115,189,.12),
        0 0 18px rgba(83,190,255,.12);

    animation:tc-border 4s linear infinite;
}


/* свечение возле молнии */
.tc-msg::after {
    content:"";

    position:absolute;
    z-index:-1;
    inset:-6px;

    border-radius:20px;

    background:
        conic-gradient(
            from var(--tc-a),
            transparent 0deg,
            transparent 300deg,
            rgba(255,255,255,.95) 320deg,
            rgba(115,207,255,.7) 335deg,
            transparent 355deg
        );

    filter:blur(8px);
    opacity:.8;
    pointer-events:none;
}


@keyframes tc-border {

    from {
        --tc-a:0deg;
    }

    to {
        --tc-a:360deg;
    }

}


/* ===================================================
   МЕДЛЕННЫЙ БЛИК ПО НИЖНЕЙ НАДПИСИ
=================================================== */

.tc-call {

    position:relative;
    overflow:hidden;

    max-width:570px;
    margin-bottom:40px;
    padding:20px 28px;

    border:2px solid #2673bd;
    border-radius:15px;

    background:#fff;

    color:#2673bd;

    font-size:16px;
    font-weight:700;
    line-height:1.5;
    text-align:center;

    box-shadow:
        0 8px 25px rgba(38,115,189,.12);
}


/* бегущая молния по блоку */
.tc-call::after {

    content:"";

    position:absolute;

    top:0;
    left:-40%;

    width:35%;
    height:100%;

    transform:skewX(-25deg);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.9),
            transparent
        );

    animation:tc-call-light 5s ease-in-out infinite;

    pointer-events:none;
}


@keyframes tc-call-light {

    0%,
    30% {
        transform:translateX(0) skewX(-25deg);
    }

    70%,
    100% {
        transform:translateX(420%) skewX(-25deg);
    }

}


/* Карточки */
.tc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.tc-card {
    overflow: hidden;
    border-radius: 22px;
    background: #0878bd;
    box-shadow: 0 14px 35px rgba(15, 77, 122, .18);
    opacity: 0;
    transform: translateY(70px) rotate(2deg) scale(.94);
    transition:
        opacity .7s ease,
        transform .8s cubic-bezier(.2, .8, .2, 1),
        box-shadow .3s ease;
}

.tc-card:nth-child(even) {
    transform: translateY(70px) rotate(-2deg) scale(.94);
}

.tc-card.show {
    opacity: 1;
    transform: translateY(0) rotate(0) scale(1);
}

.tc-card:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 22px 45px rgba(15, 77, 122, .28);
}

.tc-img {
    height: 400px;
    overflow: hidden;
    background: #d8edf7;
}

.tc-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.tc-card:hover .tc-img img {
    transform: scale(1.05);
}

.tc-body {
    min-height: 480px;
    padding: 25px 22px 32px;
    color: #fff;
    text-align: center;
}

.tc-body h3 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.25;
}

.tc-body p {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.8;
}

.tc-body p:last-child {
    margin-bottom: 0;
}

.tc-body strong {
    font-weight: 700;
}

/* Низ */
.tc-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 65px;
}

.tc-call{
    position:relative;
    overflow:hidden;

    max-width:570px;
    margin-bottom:40px;
    padding:20px 28px;

    border:2px solid #2673bd;
    border-radius:15px;

    background:#fff;

    color:#2673bd;
    font-size:16px;
    font-weight:700;
    text-align:center;
    line-height:1.5;

    box-shadow:
        0 0 0 rgba(38,115,189,.25);

    animation:tcPulse 2.8s infinite;
}

/* бегущий блик по тексту */
.tc-call::before{

    content:"";

    position:absolute;
    inset:0;

    background:
        linear-gradient(
            110deg,
            transparent 20%,
            rgba(255,255,255,0) 40%,
            rgba(255,255,255,.95) 50%,
            rgba(255,255,255,0) 60%,
            transparent 80%
        );

    transform:translateX(-160%);
    animation:tcText 3s infinite;

}

@keyframes tcText{

    100%{
        transform:translateX(170%);
    }

}

@keyframes tcPulse{

    0%,100%{
        box-shadow:
        0 0 0 rgba(38,115,189,.2);
    }

    50%{
        box-shadow:
        0 0 30px rgba(38,115,189,.35);
    }

}

.tc-btn {
    display: flex;
    min-width: 325px;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    border-radius: 8px;
    background: #ffd43c;
    color: #111;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 7px 18px rgba(207, 156, 0, .2);
    transition: transform .2s ease, background .2s ease;
}

.tc-btn:hover {
    background: #ffc925;
    color: #111;
    transform: translateY(-3px);
}

/* Планшет */
@media (max-width: 1024px) {
    .tc-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tc-head h2 {
        font-size: 36px;
    }

    .tc-img {
        height: 380px;
    }

    .tc-body {
        min-height: 400px;
    }
}

/* Мобильная */
@media (max-width: 767px) {
    .tc {
        padding: 60px 0;
    }

    .tc-head h2 {
        font-size: 29px;
    }

    .tc-head h2 br {
        display: none;
    }

    .tc-info {
        width: 100%;
        max-width: 420px;
        margin-bottom: 35px;
    }

    .tc-msg {
        margin-bottom: 45px;
        padding: 17px 20px;
        font-size: 14px;
    }

    .tc-grid {
        grid-template-columns: 1fr;
        max-width: 430px;
        margin: 0 auto;
        gap: 25px;
    }

    .tc-img {
        height: 420px;
    }

    .tc-body {
        min-height: auto;
        padding: 25px 20px 30px;
    }

    .tc-body h3 {
        font-size: 25px;
    }

    .tc-bottom {
        margin-top: 45px;
    }

    .tc-call {
        margin-bottom: 28px;
        padding: 17px 20px;
        font-size: 14px;
    }

    .tc-btn {
        width: 100%;
        min-width: 0;
        max-width: 430px;
    }
}

@media (max-width: 480px) {
    .tc {
        padding: 50px 0;
    }

    .tc-head h2 {
        margin-bottom: 25px;
        font-size: 25px;
    }

    .tc-info p,
    .tc-info li {
        font-size: 14px;
    }

    .tc-img {
        height: 350px;
    }

    .tc-body h3 {
        font-size: 23px;
    }

    .tc-body p {
        font-size: 13px;
        line-height: 1.7;
    }

    .tc-btn {
        min-height: 52px;
        font-size: 14px;
    }
}

/* ===================================================
   УСПЕХИ УЧЕНИКОВ
=================================================== */
.sc,
.sc * {
    box-sizing: border-box;
}

.sc {
    padding: 90px 0;
    overflow: hidden;
    background: #eef1f4;
    color: #111;
}

.sc-head {
    margin-bottom: 52px;
    text-align: center;
}

.sc-head h2 {
    margin: 0 0 24px;
    color: #08233f;
    font-size: 42px;
    line-height: 1.2;
}

.sc-head p {
    margin: 0 0 25px;
    font-size: 21px;
}

.sc-head ul {
    display: inline-grid;
    gap: 13px;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.sc-head li {
    position: relative;
    padding-left: 30px;
    font-size: 15px;
    line-height: 1.45;
}

.sc-head li::before {
    content: "✓";
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    width: 19px;
    height: 19px;
    place-items: center;
    border-radius: 3px;
    background: #48c982;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.sc-slider {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.sc-slider .swiper-wrapper {
    height: auto;
    align-items: flex-start;
}

.sc-slider .swiper-slide {
    height: auto;
}

.sc-item {
    display: grid;
    min-height: 690px;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 45px;
    padding: 45px;
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 15px 45px rgba(8, 35, 63, .09);
}

.sc-user {
    text-align: center;
}

.sc-user img {
    display: block;
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .16);
}

.sc-user h3 {
    margin: 27px 0 22px;
    color: #08233f;
    font-size: 27px;
    line-height: 1.25;
}

.sc-tag {
    padding: 17px 20px;
    border-radius: 28px;
    background: #0878bd;
    color: #fff;
    font-size: 15px;
    line-height: 1.65;
}

.sc-data {
    min-width: 0;
    padding-top: 35px;
}

.sc-top {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.sc-box {
    margin: 0;
    text-align: center;
}

.sc-box h4 {
    margin: 0 0 17px;
    padding: 15px;
    border-radius: 11px;
    font-size: 20px;
}

.sc-before h4 {
    background: #ffeded;
    color: #ef493d;
}

.sc-after h4 {
    background: #eafbea;
    color: #16a64a;
}

.sc-box img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 13px;
    box-shadow: 0 7px 17px rgba(0, 0, 0, .14);
}

.sc-box figcaption {
    margin-top: 15px;
    font-size: 14px;
    font-style: italic;
    line-height: 1.7;
}

.sc-table-wrap {
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 9px 24px rgba(0, 0, 0, .09);
}

.sc-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
}

.sc-table th,
.sc-table td {
    padding: 17px 20px;
    border: 1px solid #dedede;
    overflow-wrap: anywhere;
    font-size: 14px;
    line-height: 1.45;
}

.sc-table th {
    background: #0878bd;
    color: #fff;
    font-size: 16px;
    text-align: center;
}

.sc-table th:first-child,
.sc-table td:first-child {
    width: 50%;
    text-align: left;
}

.sc-table td:not(:first-child) {
    text-align: center;
}

.sc-table tbody tr:nth-child(even) {
    background: #f6f7f8;
}

.sc-bad {
    color: #f04c43;
}

.sc-good {
    color: #0ca143;
    font-weight: 700;
}

.sc-notes {
    margin-top: 18px;
    font-size: 13px;
    line-height: 1.55;
}

.sc-notes p {
    margin: 0 0 8px;
}

.sc-result {
    margin-top: 24px;
    padding: 22px 25px;
    border-radius: 14px;
    background: #f5f6f7;
    font-size: 14px;
    line-height: 1.8;
}

/* Навигация компактно рядом с точками */
.sc-nav {
    display: flex;
    width: max-content;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 42px auto 0;
}

.sc-prev,
.sc-next {
    display: inline-flex;
    min-width: 125px;
    min-height: 56px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 25px;
    border: 0;
    border-radius: 30px;
    background: #0878bd;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, opacity .2s ease;
}

.sc-prev:hover,
.sc-next:hover {
    background: #066aa8;
    transform: translateY(-2px);
}

.sc-prev span,
.sc-next span {
    font-family: Arial, sans-serif;
    font-size: 29px;
    line-height: 1;
}

.sc-prev.swiper-button-disabled,
.sc-next.swiper-button-disabled {
    background: #c8c8c8;
    opacity: .75;
    cursor: default;
    pointer-events: none;
}

.sc-dots {
    position: static;
    display: flex;
    width: auto;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
}

.sc-dots .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0;
    background: #d2d2d2;
    opacity: 1;
    transition: width .2s ease, background .2s ease;
}

.sc-dots .swiper-pagination-bullet-active {
    width: 20px;
    border-radius: 10px;
    background: #0878bd;
}

.sc-call {
    max-width: 555px;
    margin: 55px auto 35px;
    padding: 20px 25px;
    border: 2px solid #2673bd;
    border-radius: 15px;
    background: rgba(255, 255, 255, .82);
    color: #2673bd;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    box-shadow: 0 8px 22px rgba(38, 115, 189, .1);
    animation: sc-shake 3.2s ease-in-out infinite;
}

@keyframes sc-shake {
    0%,
    82%,
    100% {
        transform: translateX(0) rotate(0);
    }

    86% {
        transform: translateX(-5px) rotate(-.5deg);
    }

    90% {
        transform: translateX(5px) rotate(.5deg);
    }

    94% {
        transform: translateX(-3px) rotate(-.3deg);
    }

    97% {
        transform: translateX(2px) rotate(.2deg);
    }
}

.sc-btn {
    display: flex;
    width: min(345px, 100%);
    min-height: 58px;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 13px 25px;
    border-radius: 9px;
    background: #ffd43c;
    color: #111;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(205, 158, 0, .18);
    transition: transform .2s ease, background .2s ease;
}

.sc-btn:hover {
    background: #ffc928;
    color: #111;
    transform: translateY(-2px);
}

/* Планшет */
@media (max-width: 1024px) {
    .sc-item {
        grid-template-columns: 280px minmax(0, 1fr);
        gap: 28px;
        padding: 30px;
    }

    .sc-user img {
        height: 390px;
    }

    .sc-data {
        padding-top: 15px;
    }

    .sc-table th,
    .sc-table td {
        padding: 14px;
    }
}

/* Мобильная */
@media (max-width: 767px) {
    .sc {
        padding: 55px 0;
    }

    .sc-head {
        margin-bottom: 35px;
    }

    .sc-head h2 {
        font-size: 31px;
    }

    .sc-head p {
        font-size: 18px;
    }

    .sc-slider,
    .sc-slider .swiper-wrapper,
    .sc-slider .swiper-slide {
        height: auto;
    }

    .sc-item {
        display: block;
        width: 100%;
        min-height: 0;
        padding: 18px;
        border-radius: 18px;
    }

    .sc-user {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }

    .sc-user img {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 5;
        object-fit: cover;
    }

    .sc-user h3 {
        margin: 22px 0 17px;
        font-size: 23px;
    }

    .sc-tag {
        padding: 14px 18px;
        font-size: 14px;
    }

    .sc-data {
        width: 100%;
        min-width: 0;
        margin-top: 30px;
        padding: 0;
    }

    .sc-top {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .sc-box {
        min-width: 0;
    }

    .sc-box img {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    /* Таблица полностью помещается на мобильном */
    .sc-table-wrap {
        overflow: hidden;
        border-radius: 12px;
    }

    .sc-table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }

    .sc-table th,
    .sc-table td {
        padding: 9px 5px;
        font-size: 11px;
        line-height: 1.35;
    }

    .sc-table th {
        font-size: 12px;
    }

    .sc-table th:first-child,
    .sc-table td:first-child {
        width: 46%;
    }

    .sc-table th:nth-child(2),
    .sc-table td:nth-child(2),
    .sc-table th:nth-child(3),
    .sc-table td:nth-child(3) {
        width: 27%;
    }

    .sc-notes {
        font-size: 12px;
    }

    .sc-result {
        margin-top: 20px;
        padding: 17px;
        font-size: 13px;
    }

    /* На мобильном остаются только точки */
    .sc-nav {
        width: 100%;
        margin-top: 25px;
    }

    .sc-prev,
    .sc-next {
        display: none;
    }

    .sc-dots {
        width: 100%;
        gap: 7px;
    }

    .sc-dots .swiper-pagination-bullet {
        width: 9px;
        height: 9px;
    }

    .sc-dots .swiper-pagination-bullet-active {
        width: 20px;
    }

    .sc-call {
        margin-top: 42px;
        padding: 17px;
        font-size: 14px;
    }
}

@media (max-width: 380px) {
    .sc-item {
        padding: 13px;
    }

    .sc-user h3 {
        font-size: 21px;
    }

    .sc-table th,
    .sc-table td {
        padding: 8px 3px;
        font-size: 10px;
    }

    .sc-table th {
        font-size: 11px;
    }

    .sc-result {
        padding: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sc-call {
        animation: none;
    }
}

/* Nitcoin */
.nc,
.nc * {
    box-sizing: border-box;
}

.nc {
    position: relative;
    overflow: hidden;
    padding: 75px 0 85px;
    background:
        radial-gradient(circle at 50% 20%, rgba(45,170,231,.22), transparent 34%),
        linear-gradient(#0878ba, #0874b5);
    color: #fff;
}

.nc .container {
    position: relative;
    z-index: 2;
}

/* Заголовок */
.nc-head {
    max-width: 1100px;
    margin: 0 auto 60px;
    text-align: center;
}

.nc-head h2 {
    margin: 0;
    color: #ffd400;
    font-size: clamp(35px, 3.5vw, 58px);
    line-height: 1.22;
    text-shadow: 0 4px 3px rgba(0,45,89,.4);
}

.nc-head h2 span {
    display: inline-block;
    margin-right: 12px;
    font-size: .8em;
    animation: nc-coin 2.8s ease-in-out infinite;
}

.nc-label {
    display: inline-flex;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    padding: 10px 22px;
    border: 2px solid #fff;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
}

/* Одинаковые блоки */
.nc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.nc-card,
.nc-result {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid rgba(164,223,255,.48);
    border-radius: 24px;
    background: rgba(63,157,211,.47);
    box-shadow: 0 18px 40px rgba(0,72,124,.1);
}

/* Одинаковая ширина и высота всех четырёх карточек */
.nc-card {
    width: 100%;
    height: 720px;
    min-width: 0;
    padding: 55px 40px 45px;
}

.nc-icon {
    margin-bottom: 38px;
    font-size: 50px;
    line-height: 1;
    text-align: center;
    filter: drop-shadow(0 7px 7px rgba(0,79,132,.2));
    animation: nc-float 3.2s ease-in-out infinite;
}

.nc-card h3 {
    margin: 0 0 32px;
    font-size: clamp(27px, 2vw, 34px);
    line-height: 1.3;
    text-align: center;
    text-shadow: 0 3px 2px rgba(0,75,126,.22);
}

/* Шаги и польза */
.nc-steps,
.nc-list {
    display: grid;
    gap: 15px;
}

.nc-step,
.nc-list li {
    background: rgba(91,177,224,.42);
    font-size: 19px;
    line-height: 1.45;
    transition: .25s ease;
}

.nc-step {
    display: flex;
    min-height: 83px;
    align-items: center;
    padding: 17px 21px;
    border-left: 4px solid #2d75cf;
    border-radius: 17px;
}

.nc-step:hover,
.nc-list li:hover {
    background: rgba(107,190,235,.53);
    transform: translateX(6px);
}

.nc-step b {
    margin-right: 8px;
}

.nc-step mark {
    padding: 0;
    background: none;
    color: #ffd400;
}

/* Товары */
.nc-goods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 42px;
}

.nc-good {
    min-width: 0;
    min-height: 285px;
    padding: 38px 12px 22px;
    border-radius: 18px;
    background: rgba(91,177,224,.42);
    text-align: center;
    transition: transform .25s ease;
}

.nc-good:hover {
    transform: translateY(-7px);
}

.nc-good-icon {
    min-height: 65px;
    font-size: 47px;
    line-height: 1;
}

.nc-good h4 {
    margin: 20px 0 16px;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.25;
}

.nc-good p {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
}

/* Список пользы */
.nc-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nc-list li {
    position: relative;
    display: flex;
    min-height: 83px;
    align-items: center;
    padding: 17px 22px 17px 60px;
    border-radius: 17px;
}

.nc-list li::before {
    content: "";
    position: absolute;
    left: 28px;
    width: 9px;
    height: 9px;
    background: #347ee1;
    box-shadow: 0 0 9px rgba(62,129,231,.65);
    transform: rotate(45deg);
}

/* Фото */
.nc-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 28px;
}

.nc-photo img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 15px 32px rgba(0,72,118,.27);
}

/* Подпись */
.nc-note {
    width: fit-content;
    max-width: 760px;
    margin: 45px auto 55px;
    padding: 18px 26px;
    border-radius: 14px;
    background: #fff;
    color: #2869b0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    box-shadow: 0 12px 26px rgba(0,68,118,.17);
}

/* Результат */
.nc-result {
    min-height: 230px;
    padding: 42px 30px;
    border: 2px solid #ffd400;
    text-align: center;
}

.nc-result p {
    margin: 0 0 13px;
    font-size: 21px;
    font-weight: 700;
}

.nc-result strong {
    display: block;
    color: #ffd400;
    font-size: clamp(30px, 3vw, 45px);
    line-height: 1.25;
}

.nc-result em {
    display: block;
    font-size: 1.35em;
    font-style: normal;
}

/* Бегущая рамка */
@property --nc-a {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.nc-light::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -2px;
    padding: 2px;
    border-radius: inherit;
    background: conic-gradient(
        from var(--nc-a),
        transparent 0 13%,
        #fff8a5 17%,
        #ffd400 19%,
        transparent 23% 49%,
        #9cecff 52%,
        #fff 54%,
        transparent 57% 84%,
        #ffd400 87%,
        transparent 90%
    );
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: nc-border 4.5s linear infinite;
    pointer-events: none;
}

/* Фоновые круги */
.nc-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.nc-bg i {
    position: absolute;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(87,189,239,.13);
    animation: nc-bubble 8s ease-in-out infinite;
}

.nc-bg i:nth-child(1) {
    top: 11%;
    left: 18%;
}

.nc-bg i:nth-child(2) {
    top: 34%;
    right: 9%;
    width: 23px;
    height: 23px;
    animation-delay: -2s;
}

.nc-bg i:nth-child(3) {
    top: 57%;
    left: 4%;
    width: 16px;
    height: 16px;
    animation-delay: -4s;
}

.nc-bg i:nth-child(4) {
    bottom: 20%;
    left: 17%;
    animation-delay: -6s;
}

.nc-bg i:nth-child(5) {
    right: 22%;
    bottom: 8%;
    width: 25px;
    height: 25px;
    animation-delay: -3s;
}

@keyframes nc-border {
    to {
        --nc-a: 360deg;
    }
}

@keyframes nc-float {
    50% {
        transform: translateY(-8px) rotate(3deg);
    }
}

@keyframes nc-coin {
    50% {
        transform: translateY(-7px) rotate(6deg);
    }
}

@keyframes nc-bubble {
    50% {
        opacity: .7;
        transform: translateY(-30px) scale(1.15);
    }
}

/* Планшет */
@media (max-width: 1024px) {
    .nc {
        padding: 65px 0 70px;
    }

    .nc-grid {
        gap: 20px;
    }

    .nc-card {
        height: 650px;
        padding: 42px 25px 35px;
    }

    .nc-icon {
        margin-bottom: 28px;
        font-size: 44px;
    }

    .nc-card h3 {
        min-height: 75px;
        margin-bottom: 25px;
        font-size: 26px;
    }

    .nc-step,
    .nc-list li {
        font-size: 17px;
    }

    .nc-goods {
        gap: 10px;
        margin-top: 30px;
    }

    .nc-good {
        min-height: 260px;
        padding-inline: 8px;
    }

    .nc-good h4 {
        font-size: 17px;
    }

    .nc-good p {
        font-size: 13px;
    }
}

/* Мобильный */
@media (max-width: 767px) {
    .nc {
        padding: 52px 0 60px;
    }

    .nc-head {
        margin-bottom: 38px;
    }

    .nc-head h2 {
        font-size: 30px;
    }

    .nc-head h2 br {
        display: none;
    }

    .nc-head h2 span {
        display: block;
        margin: 0 0 10px;
        font-size: 43px;
    }

    .nc-label {
        min-height: 47px;
        margin-top: 23px;
        padding: 8px 16px;
        font-size: 15px;
    }

    .nc-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* На телефоне высота по содержимому */
    .nc-card {
        height: auto;
        min-height: 0;
        padding: 38px 17px 30px;
        border-radius: 19px;
    }

    .nc-icon {
        margin-bottom: 25px;
        font-size: 42px;
    }

    .nc-card h3 {
        min-height: 0;
        margin-bottom: 27px;
        font-size: 24px;
    }

    .nc-step {
        min-height: 72px;
        padding: 14px 16px;
        font-size: 16px;
    }

    .nc-goods {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 0;
    }

    .nc-good {
        display: grid;
        grid-template-columns: 58px 1fr;
        min-height: 112px;
        align-items: center;
        padding: 16px;
        text-align: left;
    }

    .nc-good-icon {
        grid-row: span 2;
        min-height: 0;
        font-size: 39px;
    }

    .nc-good h4 {
        margin: 0 0 5px;
        font-size: 19px;
    }

    .nc-good p {
        font-size: 14px;
        line-height: 1.5;
    }

    .nc-list {
        gap: 11px;
    }

    .nc-list li {
        min-height: 72px;
        padding: 14px 14px 14px 45px;
        font-size: 16px;
    }

    .nc-list li::before {
        left: 21px;
        width: 8px;
        height: 8px;
    }

    .nc-photo {
        height: 430px;
        padding: 14px;
    }

    .nc-note {
        margin: 30px auto 40px;
        padding: 15px 17px;
        font-size: 15px;
    }

    .nc-result {
        min-height: 200px;
        padding: 32px 17px;
    }

    .nc-result p {
        font-size: 18px;
    }

    .nc-result strong {
        font-size: 26px;
    }
}

@media (max-width: 380px) {
    .nc-head h2 {
        font-size: 26px;
    }

    .nc-card {
        padding-inline: 13px;
    }

    .nc-result strong {
        font-size: 23px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nc *,
    .nc *::before {
        animation: none;
    }
}

/* ==================================================
   ФОТОГАЛЕРЕЯ УЧЕНИКОВ
================================================== */
.sg {
    padding: 110px 0 105px;
    overflow: hidden;
    background: rgb(249, 249, 249);
    color: #181827;
}

.sg-head {
    max-width: 940px;
    margin: 0 auto 65px;
    text-align: center;
}

/* Заголовок */
.sg-title {
    margin: 0;
    color: #181827;
    font-size: 56px;
    font-weight: 800;
    line-height: 1.38;
    letter-spacing: -1px;
}

/* Текст под заголовком */
.sg-text {
    display: grid;
    gap: 53px;
    margin-top: 38px;
}

.sg-text p {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    margin: 0;
    color: #1b1b1b;
    font-size: 23px;
    line-height: 2.05;
    text-align: center;
}

.sg-text strong,
.sg-text b {
    font-weight: 700;
}

.sg-ico {
    flex: 0 0 auto;
    margin-top: 3px;
    font-family: Arial, sans-serif;
    font-size: 27px;
    line-height: 1.5;
}

/* ==================================================
   ГАЛЕРЕЯ
================================================== */
.sg-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 64px 36px;
}

.sg-photo {
    position: relative;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 14px;
    background: #edf1f4;
}

.sg-photo--sm {
    height: 417px;
}

.sg-photo--big {
    grid-column: span 2;
    height: 495px;
}

.sg-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform .45s ease,
        filter .45s ease;
}

.sg-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        145deg,
        transparent 55%,
        rgba(0, 112, 190, .1)
    );
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}

.sg-photo:hover img {
    transform: scale(1.035);
    filter: saturate(1.08);
}

.sg-photo:hover::after {
    opacity: 1;
}

/* ==================================================
   CTA С МОЛНИЕЙ ПО ТЕКСТУ
================================================== */
.sg-call {
    position: relative;
    isolation: isolate;
    margin: 90px auto 0;
    padding: 25px 25px;
    overflow: visible;
    border: 2px solid #2472c5;
    border-radius: 16px;
    background: #fff;
    box-shadow:
        0 8px 24px rgba(31, 107, 190, .07),
        inset 0 0 20px rgba(39, 118, 207, .025);
}

/* Бегущий свет по рамке */
.sg-call::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: -3px;
    padding: 3px;
    border-radius: 18px;
    background: conic-gradient(
        from var(--sg-angle),
        transparent 0 18%,
        #1c72d2 21%,
        #77dfff 23%,
        #fff 24%,
        #2b83df 26%,
        transparent 30% 66%,
        #1f73d0 70%,
        #a8ecff 72%,
        transparent 76%
    );

    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;

    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;

    animation: sgBorder 4s linear infinite;
    pointer-events: none;
}

/* Молния проходит непосредственно по буквам */
.sg-call p {
    position: relative;
    z-index: 2;
    margin: 0;
    color: #2367ae;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;

    background:
        linear-gradient(
            110deg,
            #2367ae 0%,
            #2367ae 38%,
            #54bfff 44%,
            #fff 48%,
            #1687e0 52%,
            #2367ae 58%,
            #2367ae 100%
        );
    background-size: 260% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Вспышка поверх текста */
.sg-call p::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -8%;
    width: 20%;
    height: 48px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(75, 191, 255, .5),
        rgba(255, 255, 255, .9),
        transparent
    );
    filter: blur(8px);
    opacity: 0;
    transform: translateY(-50%) skewX(-22deg);
    animation: sgFlash 3.2s linear infinite;
    pointer-events: none;
}

/* Декоративные молнии по углам */
.sg-bolt {
    position: absolute;
    z-index: 4;
    color: #42c5ff;
    font-family: Arial, sans-serif;
    font-size: 46px;
    line-height: 1;
    text-shadow:
        0 0 6px #fff,
        0 0 13px #5acaff,
        0 0 23px #168bdf;
    filter: drop-shadow(0 0 8px rgba(48, 176, 255, .85));
    animation: sgBolt 1.2s ease-in-out infinite;
    pointer-events: none;
}

.sg-bolt--one {
    top: -25px;
    right: 24px;
    transform: rotate(12deg);
}

.sg-bolt--two {
    bottom: -26px;
    left: 25px;
    transform: rotate(190deg);
    animation-delay: -.6s;
}

/* Кнопка */
.sg-action {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.sg-btn {
    display: inline-flex;
    min-width: 118px;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    border-radius: 10px;
    background: #ffd23f;
    color: #111;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(255, 194, 17, .2);
    transition:
        transform .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}

.sg-btn:hover {
    background: #ffc817;
    color: #111;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 190, 0, .3);
}

/* ==================================================
   АНИМАЦИИ
================================================== */
@property --sg-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes sgBorder {
    to {
        --sg-angle: 360deg;
    }
}

@keyframes sgTextBolt {
    0% {
        background-position: 120% 0;
        filter: drop-shadow(0 0 0 transparent);
    }

    42% {
        filter: drop-shadow(0 0 0 transparent);
    }

    50% {
        filter: drop-shadow(0 0 7px rgba(66, 190, 255, .7));
    }

    58% {
        filter: drop-shadow(0 0 0 transparent);
    }

    100% {
        background-position: -120% 0;
        filter: drop-shadow(0 0 0 transparent);
    }
}

@keyframes sgFlash {
    0%,
    30% {
        left: -12%;
        opacity: 0;
    }

    40% {
        opacity: .35;
    }

    50% {
        opacity: 1;
    }

    60% {
        opacity: .3;
    }

    70%,
    100% {
        left: 95%;
        opacity: 0;
    }
}

@keyframes sgBolt {
    0%,
    100% {
        opacity: .65;
        scale: .94;
    }

    40% {
        opacity: 1;
        scale: 1.08;
    }

    55% {
        opacity: .55;
        scale: .98;
    }

    70% {
        opacity: 1;
        scale: 1.04;
    }
}

/* ==================================================
   ПЛАНШЕТ
================================================== */
@media (max-width: 1024px) {
    .sg {
        padding: 85px 0;
    }

    .sg-title {
        font-size: 45px;
    }

    .sg-text p {
        font-size: 20px;
    }

    .sg-grid {
        gap: 30px 22px;
    }

    .sg-photo--sm {
        height: 340px;
    }

    .sg-photo--big {
        height: 420px;
    }

    .sg-call {
        margin-top: 65px;
    }
}

/* ==================================================
   МОБИЛЬНАЯ ВЕРСИЯ
================================================== */
@media (max-width: 767px) {
    .sg {
        padding: 55px 0 60px;
    }

    .sg-head {
        margin-bottom: 40px;
    }

    .sg-title {
        font-size: 31px;
        line-height: 1.3;
        letter-spacing: -.4px;
    }

    .sg-title br {
        display: none;
    }

    .sg-text {
        gap: 26px;
        margin-top: 28px;
    }

    .sg-text p {
        align-items: flex-start;
        gap: 11px;
        font-size: 17px;
        line-height: 1.65;
        text-align: left;
    }

    .sg-text br {
        display: none;
    }

    .sg-ico {
        margin-top: 0;
        font-size: 23px;
    }

    .sg-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .sg-photo {
        border-radius: 10px;
    }

    .sg-photo--sm {
        height: 240px;
    }

    .sg-photo--big {
        grid-column: span 2;
        height: 285px;
    }

    .sg-call {
        margin-top: 45px;
        padding: 24px 25px;
        border-radius: 14px;
    }

    .sg-call p {
        font-size: 16px;
        line-height: 1.55;
    }

    .sg-bolt {
        font-size: 35px;
    }

    .sg-bolt--one {
        top: -20px;
        right: 10px;
    }

    .sg-bolt--two {
        bottom: -21px;
        left: 10px;
    }

    .sg-action {
        margin-top: 27px;
    }

    .sg-btn {
        min-width: 115px;
        min-height: 54px;
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .sg {
        padding: 45px 0 50px;
    }

    .sg-title {
        font-size: 26px;
    }

    .sg-text p {
        font-size: 15px;
    }

    .sg-grid {
        gap: 9px;
    }

    .sg-photo--sm {
        height: 190px;
    }

    .sg-photo--big {
        height: 230px;
    }

    .sg-call {
        margin-top: 35px;
        padding: 22px 17px;
    }

    .sg-call p {
        font-size: 14px;
    }

    .sg-bolt {
        font-size: 30px;
    }

    .sg-btn {
        min-height: 50px;
        padding: 12px 25px;
        font-size: 16px;
    }
}

/* Отключаем анимацию при соответствующей настройке устройства */
@media (prefers-reduced-motion: reduce) {
    .sg *,
    .sg *::before,
    .sg *::after {
        animation: none;
    }
}

/* ==================================================
   ПОЧЕМУ ВЫБИРАЮТ НАС
================================================== */
.wc {
    padding: 105px 0 110px;
    overflow: hidden;
    background: #fff;
    color: #161616;
}

.wc,
.wc * {
    box-sizing: border-box;
}

/* Верхняя часть */
.wc-top {
    display: grid;
    grid-template-columns: 520px minmax(0, 1fr);
    align-items: center;
    gap: 85px;
}

/* Изображение */
.wc-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
}

.wc-img img {
    display: block;
    width: 100%;
    height: 470px;
    object-fit: contain;
}

/* Контент */
.wc-info {
    min-width: 0;
}

.wc-title {
    margin: 0;
    color: #0b345a;
    font-size: 56px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
}

.wc-line {
    display: block;
    width: 56px;
    height: 2px;
    margin: 20px 0 54px;
    background: #3178d4;
}

.wc-list {
    margin: 0 0 38px;
    padding-left: 20px;
    color: #161616;
    font-size: 16px;
    line-height: 1.75;
}

.wc-list li {
    margin-bottom: 8px;
    padding-left: 2px;
}

.wc-list li:last-child {
    margin-bottom: 0;
}

/* Кнопка */
.wc-btn {
    display: inline-flex;
    width: 100%;
    max-width: 415px;
    min-height: 64px;
    align-items: center;
    justify-content: center;
    padding: 15px 28px;
    border-radius: 6px;
    background: #ffd13f;
    color: #111;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(255, 195, 20, .18);
    transition:
        transform .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}

.wc-btn:hover {
    background: #ffc712;
    color: #111;
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(255, 190, 0, .3);
}

/* ==================================================
   ВИДЖЕТ ОТЗЫВОВ
================================================== */
.wc-reviews {
    position: relative;
    width: 595px;
    height: 950px;
    margin: 55px auto 0;
    overflow: hidden;
    border-radius: 9px;
    background: #fff;
}

.wc-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
}

.wc-map-link {
    position: absolute;
    bottom: 8px;
    left: 0;
    display: block;
    width: 100%;
    max-height: 14px;
    overflow: hidden;
    padding: 0 16px;
    color: #b3b3b3;
    font-family: "YS Text", Arial, sans-serif;
    font-size: 10px;
    line-height: 14px;
    text-align: center;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==================================================
   ПЛАНШЕТ
================================================== */
@media (max-width: 1024px) {
    .wc {
        padding: 80px 0 90px;
    }

    .wc-top {
        grid-template-columns: 430px minmax(0, 1fr);
        gap: 50px;
    }

    .wc-img img {
        height: 410px;
    }

    .wc-title {
        font-size: 45px;
    }

    .wc-line {
        margin-bottom: 38px;
    }

    .wc-list {
        font-size: 15px;
    }

    .wc-btn {
        max-width: 390px;
        min-height: 60px;
        font-size: 16px;
    }
}

/* ==================================================
   МОБИЛЬНАЯ ВЕРСИЯ
================================================== */
@media (max-width: 767px) {
    .wc {
        padding: 55px 0 65px;
    }

    .wc-top {
        display: flex;
        flex-direction: column;
        gap: 35px;
    }

    .wc-img {
        order: 1;
    }

    .wc-info {
        order: 2;
        width: 100%;
    }

    .wc-img img {
        height: auto;
        max-height: 390px;
    }

    .wc-title {
        font-size: 34px;
        line-height: 1.2;
        text-align: center;
    }

    .wc-line {
        margin: 18px auto 32px;
    }

    .wc-list {
        margin-bottom: 30px;
        padding-left: 21px;
        font-size: 15px;
        line-height: 1.65;
    }

    .wc-list li {
        margin-bottom: 12px;
    }

    .wc-btn {
        max-width: 100%;
        min-height: 58px;
        font-size: 16px;
    }

    .wc-reviews {
        width: 100%;
        max-width: 595px;
        height: 520px;
        margin-top: 45px;
    }
}

@media (max-width: 480px) {
    .wc {
        padding: 45px 0 55px;
    }

    .wc-top {
        gap: 28px;
    }

    .wc-img img {
        max-height: 300px;
    }

    .wc-title {
        font-size: 28px;
    }

    .wc-line {
        width: 48px;
        margin-bottom: 27px;
    }

    .wc-list {
        font-size: 14px;
        line-height: 1.6;
    }

    .wc-btn {
        min-height: 54px;
        padding: 13px 18px;
        font-size: 15px;
    }

    .wc-reviews {
        height: 500px;
        margin-top: 35px;
    }
}

/* Быстрый рендер длинной главной страницы */
.main-home > section:not(.ls),
.main-home > .bg-img-cover {
    content-visibility: auto;
    contain-intrinsic-size: 1px 900px;
}

/* Hover-эффекты запускаются только на устройствах с мышью */
@media (hover: none), (pointer: coarse) {
    .ls-title,
    .ls-coupon,
    .fl-time,
    .fl-gift,
    .tc,
    .tc-call,
    .tc-phone,
    .nc-coin,
    .nc-bg i,
    .sg,
    .sg *::before,
    .sg *::after {
        animation: none !important;
    }

    .ls-card,
    .ls-img img,
    .activity-card,
    .activity-image,
    .activity-list li,
    .ls-qr-item,
    .ls-qr-item img,
    .ft-btn,
    .hs-btn {
        transition: none !important;
    }

    .activity-card:hover,
    .activity-card:hover .activity-image,
    .activity-list li:hover,
    .ls-qr-item:hover,
    .ls-qr-item:hover img {
        transform: none;
    }

    .activity-card,
    .activity-list li {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

@media (max-width: 767px) {
    /* На мобильном уменьшаем стоимость теней и перерисовок */
    .ls-card,
    .ls-info,
    .ls-coupon,
    .activity-card,
    .ls-qr-item img {
        box-shadow: none;
    }

    .main-home > section:not(.ls) {
        contain-intrinsic-size: 1px 700px;
    }
}
