/* ========== GLOBAL RESPONSIVE STYLES ========== */
:root {
    --container-padding: 20px;
    --section-padding: 60px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
    box-sizing: border-box;
}

header {
  padding: 10px;
}

/* ========== LANGUAGE BLOCK ========== */
.language-block {
    padding: 110px 0 20px 0;
    min-height: calc(90vh - var(--header-height));
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.language-block .container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
    padding-top: 17px;
}

.language-block .image {
    display: flex;
    align-items: stretch;
    height: 100%;
}

.language-block .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 28px;
}

.language-block h1 {
    font-size: 36px;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    color: #0F3077;
}

.language-block .title {
    color: #1189BF;
    font-size: 24px;
    margin-bottom: 12px;
    font-weight: bold;
    text-transform: lowercase;
    background: transparent;
    border-radius: 30px;
    display: inline-block;
    padding: 12px 24px;
    text-align: center;
    border: 1px solid rgba(17, 137, 191, 0.5);
    box-shadow: 0 0 15px rgba(17, 137, 191, 0.3), inset 0 0 10px rgba(17, 137, 191, 0.1);
    backdrop-filter: blur(2px);
}

.features {
    list-style: none;
    margin-bottom: 45px;
    padding: 0;
    background: white;
}

.features li {
    padding-left: 55px;
    margin-bottom: 22px;
    font-size: 22px;
    position: relative;
    color: #000;
    line-height: 1.6;
    font-weight: 300;
    min-height: 48px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.features li:hover {
    transform: translateX(8px);
}

.feature-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    z-index: 1;
}

.feature-icon-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
}

.feature-text {
    flex: 1;
    font-size: 22px;
    color: #000;
}

.feature-text span {
    font-weight: 600;
    color: #000;
}

.btn-primary {
    min-width: 450px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    background: linear-gradient(135deg, #FDBD24, #FDBD24);
    border: none;
    border-radius: 40px;
    padding: 20px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(253, 189, 36, 0.3);
}

/* ========== ABOUT MINI SECTION ========== */
.about-mini {
    padding: 80px 20px 0 20px;
    background: #f5f7fb;
    font-family: 'Inter', sans-serif;
}

.title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
}

.title span {
    color: #2d9cdb;
}

.subtitle {
    text-align: center;
    font-size: 18px;
    color: #444;
    margin-bottom: 40px;
}

.content-box {
    background: rgba(17, 137, 191, 0.24);
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    padding: 0 0 40px;
    border-radius: 25px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.top-box {
    background: white;
    border: 2px solid #2d9cdb;
    border-radius: 25px;
    padding: 20px 25px;
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
    padding-inline: 20px;
}

.list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
}

.list li:last-child {
    padding-left: 0;
}

.list li:not(:last-child)::before {
    content: "";
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 8px;
}

.feature-icon-about-mini {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding-left: 0;
    align-items: center;
}

.feature-text-about-mini {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.6px;
}

/* ========== WHO SECTION ========== */
.who {
    background: #f5f7fb;
    padding: 80px 20px;
    font-family: 'Inter', sans-serif;
    padding-bottom: 0;
}

.who .container {
    max-width: 1200px;
    margin: 0 auto;
}

.who .title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    color: #1189BF;
    margin-bottom: 50px;
}

.who-wrapper {
    position: relative;
}

.who-items {
    background: #1189BF;
    border-radius: 20px;
    padding: 60px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.feature-icon-mini {
    display: flex;
    gap: 10px;
    align-items: center;
}

.circle {
    background: white;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    font-weight: 600;
    color: #222;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    font-size: 16px;
}

.kids {
    position: absolute;
    right: 38px;
    bottom: -80px;
    height: 220px;
    width: 220px;
}

.result-text {
    margin-top: 40px;
    font-size: 24px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ========== DIRECTIONS SECTION ========== */
.directions {
    padding: 80px 20px 0 20px;
    background: #f5f7fb;
    font-family: 'Inter', sans-serif;
    overflow: visible;
    position: relative;
}

/* Левая декоративная картинка */
.directions::before {
    content: '';
    position: absolute;
    left: clamp(10px, 4vw, 90px);
    top: clamp(65%, 75%, 82%);
    transform: translateY(-50%);
    width: clamp(120px, 12vw, 250px);
    height: clamp(120px, 12vw, 250px);
    background-image: url('/images/why-block-icon-11.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
    transition: all 0.3s ease;
}

/* Правая декоративная картинка */
.directions::after {
    content: '';
    position: absolute;
    right: clamp(10px, 4vw, 90px);
    top: clamp(20%, 30%, 40%);
    transform: translateY(-50%) rotateY(180deg);
    width: clamp(120px, 12vw, 250px);
    height: clamp(120px, 12vw, 250px);
    background-image: url('/images/why-block-icon-2.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.directions .container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.directions .title {
    font-size: 42px;
    font-weight: 700;
    color: #1189BF;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 50px;
    overflow: visible;
}

.tab {
    padding: 12px 25px;
    border-radius: 30px;
    border: none;
    background: #1189BF;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    z-index: 2;
    min-width: 23%;
    font-size: 16px;
    letter-spacing: 1px;
}

.tab:hover {
    background: #FDBD24;
    transform: translateY(-2px);
    border: 1px solid #1189BF;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 45px;
    margin-bottom: 20px;
    overflow: visible;
    position: relative;
}

.card {
    background: white;
    border: 2px solid #2d9cdb;
    border-radius: 20px;
    padding: 25px;
    padding-bottom: 45px;
    position: relative;
    min-height: 220px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: visible;
    z-index: 1;
}

.card:last-child:nth-child(7) {
    grid-column: 2 / 3;
    max-width: 350px;
    margin: 0 auto;
    width: 100%;
}

/* Альтернативный вариант - 7-я карточка на всю ширину */
/* .card:last-child:nth-child(7) {
    grid-column: 1 / -1;
    max-width: 350px;
    margin: 0 auto;
} */

.card.highlight,
.directions .card.highlight {
    transform: translateY(-10px) scale(1.02) !important;
    box-shadow: 0 20px 40px rgba(45, 156, 219, 0.3) !important;
    border: 2px solid #fbbf24 !important;
    background: linear-gradient(135deg, #fff, #fff9f0) !important;
}

.card.highlight h3,
.directions .card.highlight h3 {
    color: #ff6b6b !important;
    transform: scale(1.05) !important;
}

.card.highlight p,
.directions .card.highlight p {
    color: #1a1a2e !important;
}

.card.highlight .price-btn,
.directions .card.highlight .price-btn {
    background: #fbbf24 !important;
    color: #000 !important;
    transform: translateX(-50%) translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.4) !important;
    border: 1px solid #1189BF !important;
}


.card h3 {
    font-size: 18px;
    color: #1189BF;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.card p {
    font-size: 16px;
    color: #333;
    margin-bottom: auto;
    flex: 1;
    transition: all 0.3s ease;
}

.price-btn {
    width: 90%;
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: #1189BF;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
    z-index: 10;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-btn:hover {
background: #fbbf24;
border: 1px solid #1189BF;
}

.cta {
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.cta button {
    background: #fbbf24;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* ========== MINI COURSES SECTION ========== */
.mini-courses {
    padding: 80px 20px;
    background: #f5f7fb;
    font-family: 'Inter', sans-serif;
    overflow: visible;
}

.mini-courses .container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    overflow: visible;
}

.mini-courses .title {
    font-size: 42px;
    font-weight: 700;
    color: #0F3077;
    margin-bottom: 70px;
}

.mini-courses .features {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid #1189BF;
    border-radius: 25px;
    padding: 50px 30px 30px 30px;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    overflow: visible;
    background: white;
}

.mini-courses .feature {
    flex: 1;
    min-width: 180px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mini-courses .feature-circle {
    background: #1189BF;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -90px auto 15px auto;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.mini-courses .feature-circle img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    display: block;
    transition: all 0.3s ease;
}

.mini-courses .feature-circle.lion img {
    width: 120px;
    height: 120px;

}

.mini-courses .feature-circle.reverse img {
    transform: scaleX(-1);
}

.mini-courses .feature-title {
    font-size: 18px;
    font-weight: 600;
    color: #1189BF;
    margin-top: 10px;
    margin-bottom: 5px;
}

.mini-courses .result {
    margin-top: 60px;
    position: relative;
}

.mini-courses .result-content {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 20px;
    background: linear-gradient(90deg, #1189BF, #1189BF);
    color: white;
    padding: 20px 30px;
    border-radius: 50px;
    position: relative;
}

.mini-courses .result-content img {
    width: 120px;
    height: auto;
    position: absolute;
    top: -45px;
}

.mini-courses .result-content p {
    font-size: 20px;
    font-weight: 500;
    margin: 0;
    text-align: left;
    color: white;
    letter-spacing: 0.7px;
}

.mini-courses .result-content p span{
font-weight: 900;

}

.faq-list {
  font-size: 16px;
}

.section-title {
  text-align: center;
  padding-bottom: 30px;
}

/* ========== RESPONSIVE BREAKPOINTS ========== */



/* Desktop Large (1200px - 1400px) */
@media (max-width: 1200px) {
    .container {
        max-width: 1100px;
    }
    
    .cards {
        gap: 25px;
    }
    
    .circle {
        width: 160px;
        height: 160px;
        font-size: 14px;
    }
}

/* Плавное уменьшение прозрачности и размера */
@media (max-width: 1600px) {
    .directions::before,
    .directions::after {
        opacity: 0.6;
    }
}

@media (max-width: 1400px) {
    .directions::before,
    .directions::after {
        opacity: 0.5;
    }
}

@media (max-width: 1200px) {
    .directions::before,
    .directions::after {
        opacity: 0.4;
    }
}

@media (max-width: 1024px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    /* На планшете 7-я карточка на всю ширину */
    .card:last-child:nth-child(7) {
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 992px) {
    .directions::before,
    .directions::after {
        opacity: 0.3;
    }
}

@media (max-width: 768px) {
    /* Скрываем декорации на мобильных устройствах */
    .directions::before,
    .directions::after {
        display: none;
    }
}

/* Desktop Medium (992px - 1199px) */
@media (max-width: 992px) {
    .language-block h1 {
        font-size: 32px;
    }
    
    .features li {
        font-size: 18px;
    }
    
    .feature-text {
        font-size: 18px;
    }
    
    .title {
        font-size: 36px;
    }
    
    .cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .directions::before,
    .directions::after {
        width: 180px;
        height: 180px;
        opacity: 0.5;
    }
    
    .directions::before {
        left: 20px;
        top: 75%;
    }
    
    .directions::after {
        right: 20px;
        top: 20%;
    }
    
    .tab {
        min-width: 200px;
    }
    
    .mini-courses .features {
        padding: 50px 20px 30px 20px;
    }
    
    .mini-courses .feature-circle {
        width: 100px;
        height: 100px;
        margin: -50px auto 15px auto;
    }
    
    .mini-courses .feature-circle img {
        width: 55px;
        height: 55px;
    }
}

/* Tablet (768px - 991px) */
@media (max-width: 768px) {
    :root {
        --container-padding: 15px;
        --section-padding: 50px 15px;
    }
    
    .language-block {
        padding: 60px 0 30px 0;
    }
    
    .language-block .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .language-block .image {
        order: -1;
        max-height: 300px;
    }
    
    .language-block .image img {
        max-height: 300px;
    }
    
    .language-block h1 {
        font-size: 28px;
    }
    
    .language-block .title {
        font-size: 18px;
        padding: 8px 16px;
    }
    
    .features li {
        padding-left: 50px;
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .feature-icon {
        width: 35px;
        height: 35px;
    }
    
    .feature-icon-img {
        width: 35px;
        height: 35px;
    }
    
    .feature-text {
        font-size: 16px;
    }
    
    .btn-primary {
        min-width: 100%;
        padding: 15px 25px;
        font-size: 14px;
    }
    
    .title {
        font-size: 28px;
    }
    
    .subtitle {
        font-size: 16px;
        padding: 0 15px;
    }
    
    .content-box {
        padding: 0 0 30px;
    }
    
    .top-box {
        font-size: 14px;
        padding: 15px 20px;
    }
    
    .list li {
        font-size: 14px;
        padding-left: 20px;
    }
    
    .who {
        padding: 50px 15px 0 15px;
    }
    
    .who .title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .who-items {
        padding: 30px 20px;
        justify-content: center;
    }
    
    .circle {
        width: 130px;
        height: 130px;
        font-size: 13px;
        padding: 15px;
    }
    
    .kids {
        position: static;
        display: block;
        margin: 30px auto 0;
        height: 180px;
        width: 180px;
    }
    
    .result-text {
        font-size: 18px;
        justify-content: center;
    }
    
    .directions {
        padding: 50px 15px 0 15px;
    }
    
    .directions .title {
        font-size: 28px;
    }
    
    .directions::before,
    .directions::after {
        display: none;
    }
    
    .tabs {
        gap: 10px;
    }
    
    .tab {
        padding: 10px 20px;
        font-size: 14px;
        min-width: auto;
        flex: 1;
    }
    
    .cards {
        gap: 35px;
                overflow-y: visible !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .card {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        margin-bottom: 30px;
    }

        .directions,
    .directions .container,
    .directions {
        overflow: visible !important;
        overflow-y: visible !important;
        overflow-x: hidden !important;
    }
    
    .card h3 {
        font-size: 16px;
    }
    
    .card p {
        font-size: 14px;
    }
    
    .price-btn {
        width: 85%;
        padding: 10px 15px;
        font-size: 12px;
        bottom: -15px;
        white-space: normal;
    }
    
    .cta button {
        padding: 14px 30px;
        font-size: 16px;
        width: 100%;
        max-width: 350px;
    }
    
    .mini-courses {
        padding: 50px 15px;
    }
    
    .mini-courses .title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .mini-courses .features {
        flex-direction: column;
        padding: 40px 20px 20px 20px;
    }
    
    .mini-courses .feature {
        min-width: auto;
        width: 100%;
    }
    
    .mini-courses .feature-circle {
        width: 90px;
        height: 90px;
        margin: -45px auto 15px auto;
    }
    
    .mini-courses .feature-circle img {
        width: 50px;
        height: 50px;
    }
    
    .mini-courses .result-content {
        display: flex;
        flex-direction: row; /* Оставляем в строку на мобильных */
        align-items: center;
        text-align: left;
        padding: 15px 20px;
        gap: 15px;
    }

    
    .mini-courses .result-content img {
        width: 50px;
        height: auto;
        display: block;
    }
    
    .mini-courses .result-content p {
        font-size: 14px;
        text-align: left;
        flex: 1;
    }

    .mini-courses .result-content p {
        font-size: 16px;
    }
    
    .mini-courses .cta button {
        padding: 14px 30px;
        font-size: 16px;
        width: 100%;
        max-width: 350px;
    }

        /* На мобильных все карточки в колонку */
    .card:last-child:nth-child(7) {
        grid-column: auto;
    }
}

/* Mobile Landscape (576px - 767px) */
@media (max-width: 576px) {
    .cards {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .card {
        max-width: 100%;
    }
    
    .card.highlight {
        transform: translateY(-5px) scale(1.01);
    }
    
    .tab {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .circle {
        width: 110px;
        height: 110px;
        font-size: 12px;
    }
    
    .feature-icon-mini img {
        width: 30px;
        height: 30px;
    }
}

/* Mobile Portrait (320px - 575px) */
@media (max-width: 480px) {
    .language-block {
        padding: 60px 0 20px 0;
    }

    .features {
      background: #fff;
    }
    
    .language-block h1 {
        font-size: 24px;
    }
    
    .language-block .title {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .features li {
        padding-left: 40px;
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .feature-icon {
        width: 28px;
        height: 28px;
    }
    
    .feature-icon-img {
        width: 28px;
        height: 28px;
    }
    
    .feature-text {
        font-size: 15px;
    }
    
    .btn-primary {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .title {
        font-size: 24px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    .top-box {
        font-size: 15px;
        padding: 12px 15px;
    }
    
    .list li {
        font-size: 15px;
        padding-left: 18px;
    }
    
    .list li:not(:last-child)::before {
        width: 6px;
        height: 6px;
        top: 6px;
    }
    
    .feature-text-about-mini {
        font-size: 15px;
    }
    
    .who .title {
        font-size: 24px;
    }
    
    .circle {
        width: 100px;
        height: 100px;
        font-size: 14px;
        padding: 10px;
    }
    
    .result-text {
        font-size: 16px;
    }
    
    .directions .title {
        font-size: 24px;
    }
    
    .tab {
        font-size: 14px;
        padding: 6px 10px;
    }
    
    .card h3 {
        font-size: 16px;
    }
    
    .card p {
        font-size: 15px;
    }
    
    .price-btn {
        font-size: 15px;
        padding: 8px 12px;
        width: 90%;
    }
    
    .cta button {
        font-size: 15px;
        padding: 12px 20px;
    }
    
    .mini-courses .title {
        font-size: 24px;
    }
    
    .mini-courses .feature-title {
        font-size: 16px;
    }
    
    .mini-courses .feature span {
        font-size: 14px;
    }
    
    .mini-courses .feature-circle {
        width: 75px;
        height: 75px;
        margin: 0px auto 10px auto;
    }
    
    .mini-courses .feature-circle img {
        width: 60px;
        height: 60px;
    }
    
    .mini-courses .result-content p {
        font-size: 15px;
        padding-top: 20px;
    }

    .result-content .feature img {
      position: absolute;
      width: 100px;
      height: 80px;
      top: -50px;
    }
}

/* Small Mobile (up to 360px) */
@media (max-width: 360px) {
    .language-block h1 {
        font-size: 22px;
    }
    
    .circle {
        width: 90px;
        height: 90px;
        font-size: 10px;
    }
    
    .tab {
        font-size: 10px;
        padding: 5px 8px;
    }
    
    .card {
        padding: 15px;
        padding-bottom: 45px;
    }
    
    .price-btn {
        padding: 6px 10px;
        font-size: 9px;
    }
}

/* Fix для overflow на мобильных */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .container,
    .features,
    .who-items {
        overflow-x: hidden;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
}

/* Улучшение читаемости на мобильных */
@media (max-width: 768px) {
    .card.highlight::before,
    .card.highlight::after {
        display: none;
    }
    
    .card.highlight {
        border: 2px solid #fbbf24;
    }
}