.vye-page {
    background: #f3f3f3;
    padding: 34px 0 72px;
}
.vye-container {
    width: 1340px;
    max-width: 100%;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}
.vye-hero {
    background: linear-gradient(135deg, #f0ebff 0%, #ffffff 62%);
    border-radius: 24px;
    padding: 42px 48px;
    margin-bottom: 28px;
}
.vye-eyebrow {
    color: #522bee;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.vye-title {
    color: #20242b;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.05;
    margin: 0 0 14px;
    font-weight: 700;
}
.vye-lead {
    color: #6b7079;
    font-size: 18px;
    line-height: 1.55;
    max-width: 720px;
    margin: 0;
}
.vye-section {
    margin-top: 36px;
}
.vye-section__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}
.vye-section__title {
    margin: 0;
    color: #20242b;
    font-size: 30px;
    line-height: 1.15;
}
.vye-muted {
    color: #747982;
}
.vye-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.vye-grid--courses {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.vye-card {
    background: #fff;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(34, 31, 65, .05);
    border: 1px solid rgba(82, 43, 238, .08);
}
.vye-card__logo,
.vye-card__thumb {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0ebff;
    color: #522bee;
    font-size: 24px;
    font-weight: 700;
    object-fit: contain;
    margin-bottom: 18px;
}
.vye-card__thumb {
    width: 100%;
    height: 150px;
    margin: -22px -22px 18px;
    width: calc(100% + 44px);
    border-radius: 20px 20px 0 0;
}
.vye-card__title {
    color: #20242b;
    font-size: 20px;
    line-height: 1.22;
    margin: 0 0 10px;
}
.vye-card__title a {
    color: inherit;
    text-decoration: none;
}
.vye-card__title a:hover {
    color: #522bee;
}
.vye-card__text {
    color: #747982;
    font-size: 14px;
    line-height: 1.45;
    margin: 0 0 16px;
}
.vye-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 12px 0 18px;
}
.vye-tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #522bee;
    background: #f0ebff;
    font-size: 12px;
    line-height: 1.15;
}
.vye-card__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
}
.vye-price {
    color: #20242b;
    font-size: 20px;
    font-weight: 700;
}
.vye-price small {
    display: block;
    color: #747982;
    font-size: 12px;
    font-weight: 400;
    margin-top: 2px;
}
.vye-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 13px;
    background: #522bee;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: transform .2s ease, background .2s ease;
}
.vye-btn:hover {
    background: #4320d0;
    transform: translateY(-1px);
}
.vye-btn--light {
    background: #f0ebff;
    color: #522bee !important;
}
.vye-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}
.vye-filter {
    background: #fff;
    color: #343941;
    border: 1px solid #e6e4ed;
    border-radius: 12px;
    padding: 11px 14px;
    font-size: 14px;
    text-decoration: none;
}
.vye-filter:hover,
.vye-filter.is-active {
    color: #522bee;
    border-color: #522bee;
}
.vye-school-meta,
.vye-course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: #747982;
    font-size: 13px;
}
.vye-rating {
    color: #522bee;
    font-weight: 700;
}
.vye-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: 24px;
    align-items: start;
}
.vye-detail__main,
.vye-detail__side {
    background: #fff;
    border-radius: 22px;
    padding: 30px;
}
.vye-detail__side {
    position: sticky;
    top: 24px;
}
.vye-fact-list {
    display: grid;
    gap: 1px;
    margin: 22px 0 0;
    background: #ecebf1;
    border-radius: 14px;
    overflow: hidden;
}
.vye-fact {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    background: #fafafd;
    font-size: 14px;
}
.vye-fact span:first-child {
    color: #747982;
}
.vye-fact span:last-child {
    color: #20242b;
    text-align: right;
    font-weight: 600;
}
.vye-content {
    color: #343941;
    font-size: 16px;
    line-height: 1.7;
}
.vye-content h2,
.vye-content h3 {
    color: #20242b;
    line-height: 1.2;
    margin: 28px 0 12px;
}
.vye-empty {
    padding: 28px;
    border-radius: 18px;
    background: #fff;
    color: #747982;
}
@media (max-width: 991px) {
    .vye-grid,
    .vye-grid--courses {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .vye-detail {
        grid-template-columns: 1fr;
    }
    .vye-detail__side {
        position: static;
    }
}
@media (max-width: 640px) {
    .vye-page {
        padding-top: 20px;
    }
    .vye-container {
        width: min(100% - 20px, 1254px);
    }
    .vye-hero {
        padding: 28px 22px;
        border-radius: 18px;
    }
    .vye-title {
        font-size: 34px;
    }
    .vye-lead {
        font-size: 16px;
    }
    .vye-grid,
    .vye-grid--courses {
        grid-template-columns: 1fr;
    }
    .vye-section__head,
    .vye-card__bottom {
        align-items: flex-start;
        flex-direction: column;
    }
    .vye-detail__main,
    .vye-detail__side {
        padding: 22px;
        border-radius: 18px;
    }
    .vye-fact {
        flex-direction: column;
        gap: 5px;
    }
    .vye-fact span:last-child {
        text-align: left;
    }
}

/* School identity, SEO content and FAQ */
.vye-school-card__top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.vye-school-card__logo {
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f0ebff;
    color: #522bee;
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
}
.vye-school-card__logo .vye-card__logo-image,
.vye-school-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    border-radius: 0;
}
.vye-school-card__identity {
    min-width: 0;
}
.vye-school-card__identity .vye-card__title {
    margin-bottom: 8px;
}
.vye-school-profile__logo {
    width: 112px;
    height: 112px;
    border-radius: 22px;
    object-fit: cover;
    display: block;
    margin: 0 0 20px;
    background: #f0ebff;
}
.vye-seo-block,
.vye-faq-block {
    margin-top: 38px;
    padding-top: 30px;
    border-top: 1px solid #ecebf1;
}
.vye-seo-block__title,
.vye-faq-block__title {
    margin: 0 0 18px;
    color: #20242b;
    font-size: 28px;
    line-height: 1.2;
}
.vye-faq-list {
    display: grid;
    gap: 10px;
}
.vye-faq-item {
    padding: 18px 20px;
    border-radius: 14px;
    background: #fafafd;
    border: 1px solid #ecebf1;
}
.vye-faq-item__question {
    margin: 0;
    color: #20242b;
    font-size: 17px;
    line-height: 1.35;
}
.vye-faq-item__answer {
    margin: 10px 0 0;
    color: #5f646d;
    font-size: 15px;
    line-height: 1.6;
}
.vye-price--old {
    display: inline-block;
    margin-right: 8px;
    color: #8a8f98;
    font-size: 15px;
    font-weight: 400;
}
.vye-price--new {
    color: #20242b;
}
.vye-school-link-note {
    display: block;
    margin-top: 8px;
    color: #747982;
    font-size: 12px;
    line-height: 1.4;
    word-break: break-word;
}
@media (max-width: 640px) {
    .vye-school-card__top {
        align-items: flex-start;
    }
    .vye-school-card__logo {
        flex-basis: 64px;
        width: 64px;
        height: 64px;
        border-radius: 15px;
    }
    .vye-seo-block__title,
    .vye-faq-block__title {
        font-size: 24px;
    }
}

/* Course listing redesign: wider cards, feed image and Sravni-like information hierarchy */
.vye-detail {
    grid-template-columns: minmax(0, 1fr) 397px;
}
.vye-detail__side {
    width: 397px;
    max-width: 397px;
    box-sizing: border-box;
}
.vye-detail__main .vye-grid--courses {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.vye-course-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    padding: 0;
    border-radius: 20px;
}
.vye-course-card__image-link {
    position: relative;
    display: block;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
}
.vye-course-card__image {
    display: block;
    width: 100%;
    height: 192px;
    object-fit: cover;
    margin: 0;
    border-radius: 0;
    background: #edf0f5;
}
.vye-course-card__image--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #747982;
    font-size: 14px;
}
.vye-course-card__image-badges {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.vye-course-card__image-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    background: #fff;
    color: #20242b;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(20, 20, 40, .08);
}
.vye-course-card__image-badge--muted {
    font-weight: 500;
}
.vye-course-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 20px 22px 22px;
}
.vye-course-card__school {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 28px;
    margin-bottom: 12px;
    color: #20242b;
    font-size: 15px;
    font-weight: 700;
}
.vye-course-card__school-logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: cover;
    background: #f0ebff;
}
.vye-course-card .vye-card__title {
    min-height: 50px;
    margin-bottom: 12px;
    font-size: 21px;
}
.vye-course-card__tags {
    min-height: 30px;
    margin: 0 0 18px;
}
.vye-course-card__pricing {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: auto;
    padding-top: 14px;
    color: #747982;
    font-size: 14px;
    line-height: 1.35;
}
.vye-course-card__pricing strong {
    color: #20242b;
    font-size: 24px;
    line-height: 1.15;
}
.vye-course-card__pricing del {
    color: #91959d;
}
.vye-course-card__bottom {
    margin-top: 16px;
}
.vye-btn--wide {
    width: 100%;
    box-sizing: border-box;
}
.vye-school-sidebar-logo {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 58px;
    object-fit: contain;
    object-position: left center;
    margin: 0 0 22px;
}
@media (max-width: 991px) {
    .vye-detail {
        grid-template-columns: minmax(0, 1fr);
    }
    .vye-detail__side {
        width: 100%;
        max-width: none;
    }
    .vye-detail__main .vye-grid--courses {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .vye-detail__main .vye-grid--courses {
        grid-template-columns: 1fr;
    }
    .vye-course-card__image {
        height: 180px;
    }
    .vye-course-card .vye-card__title {
        min-height: 0;
    }
}

/* Detail course cover and flexible listing width */
.vye-detail__main > .vye-card__thumb {
    width: 100%;
    height: auto;
    max-height: none;
    margin: 0 0 24px;
    overflow: hidden;
    border-radius: 20px;
    background: #edf0f5;
}
.vye-detail__main > .vye-card__thumb img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    margin: 0;
}
.vye-detail__main .vye-grid--courses {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}
@media (max-width: 640px) {
    .vye-detail__main .vye-grid--courses {
        grid-template-columns: 1fr;
    }
    .vye-detail__main > .vye-card__thumb img {
        max-height: 260px;
    }
}

/* Hard reset for the detail-page cover against legacy card-thumb rules */
.vye-detail__main > .vye-card__thumb {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 0 24px !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 20px !important;
}
.vye-detail__main > .vye-card__thumb img {
    position: static !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: 420px !important;
    margin: 0 !important;
    object-fit: cover !important;
}

/* School profile flow: no sidebar, full-width course grid and school information block */
.vye-school-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    color: #747982;
    font-size: 14px;
}
.vye-school-summary .vye-rating {
    color: #522bee;
    font-weight: 700;
}
.vye-school-page__main {
    width: 100%;
}
.vye-school-page__directions {
    margin-top: 8px;
}
.vye-school-page__courses .vye-grid--courses {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.vye-school-page__courses .vye-course-card__image {
    height: 160px;
}
.vye-school-page__courses .vye-course-card .vye-card__title {
    min-height: 54px;
    font-size: 19px;
}
.vye-school-about {
    margin-top: 38px;
    padding: 30px;
    background: #fff;
    border: 1px solid rgba(82, 43, 238, .08);
    border-radius: 22px;
    box-shadow: 0 8px 24px rgba(34, 31, 65, .05);
}
.vye-school-about__logo {
    display: block;
    width: auto;
    max-width: min(100%, 300px);
    max-height: 58px;
    height: auto;
    object-fit: contain;
    object-position: left center;
    margin: 0 0 18px;
}
.vye-school-about__logo--square {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    object-fit: cover;
}
.vye-school-about__title {
    margin: 0 0 18px;
    color: #20242b;
    font-size: 28px;
    line-height: 1.2;
}
.vye-school-about__cta {
    display: flex;
    justify-content: center;
    margin: 4px 0 14px;
}
.vye-school-about__cta .vye-btn {
    min-width: 220px;
}
.vye-school-about__site {
    text-align: center;
    margin-bottom: 22px;
}
.vye-school-about .vye-fact-list {
    margin-top: 0;
}
@media (max-width: 991px) {
    .vye-school-page__courses .vye-grid--courses {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .vye-school-page__courses .vye-grid--courses {
        grid-template-columns: 1fr;
    }
    .vye-school-about {
        padding: 22px;
        border-radius: 18px;
    }
    .vye-school-about__title {
        font-size: 24px;
    }
    .vye-school-summary {
        gap: 8px;
        font-size: 13px;
    }
}

/* Education breadcrumbs */
.vye-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    color: #747982;
    font-size: 13px;
    line-height: 1.4;
}
.vye-breadcrumbs a {
    color: #747982;
    text-decoration: none;
    transition: color .2s ease;
}
.vye-breadcrumbs a:hover {
    color: #522bee;
}
.vye-breadcrumbs__sep {
    color: #b0b3ba;
}
.vye-breadcrumbs__current {
    color: #343941;
    font-weight: 500;
}
@media (max-width: 640px) {
    .vye-breadcrumbs {
        margin-bottom: 14px;
        font-size: 12px;
    }
}

/* Education directory and home navigation */
.vye-directory-intro {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 28px;
    align-items: end;
    margin: 34px 0 18px;
    padding: 26px 30px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(82, 43, 238, .08);
}
.vye-directory-intro .vye-section__title { margin-top: 5px; }
.vye-directory-intro p { margin: 0; color: #747982; font-size: 16px; line-height: 1.6; }
.vye-directory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.vye-directory-group {
    padding: 24px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(82, 43, 238, .09);
    box-shadow: 0 8px 24px rgba(34, 31, 65, .04);
}
.vye-directory-group__head { margin-bottom: 16px; }
.vye-directory-group__head h2 { margin: 0 0 8px; color: #20242b; font-size: 23px; line-height: 1.2; }
.vye-directory-group__head p { margin: 0; color: #747982; font-size: 14px; line-height: 1.5; }
.vye-directory-group__links { display: grid; gap: 8px; }
.vye-directory-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 12px;
    background: #fafafd;
    border: 1px solid #ecebf1;
    color: #343941;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.vye-directory-link:hover { color: #522bee; border-color: #522bee; transform: translateY(-1px); }
.vye-directory-link__arrow { color: #522bee; font-size: 18px; }
.vye-start-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.vye-start-card {
    display: flex;
    flex-direction: column;
    min-height: 170px;
    padding: 22px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(82, 43, 238, .09);
    box-shadow: 0 8px 24px rgba(34, 31, 65, .04);
    color: inherit;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.vye-start-card:hover { transform: translateY(-2px); border-color: rgba(82, 43, 238, .35); box-shadow: 0 12px 28px rgba(34, 31, 65, .08); }
.vye-start-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 28px; margin-bottom: 22px; border-radius: 999px; background: #f0ebff; color: #522bee; font-size: 12px; font-weight: 700; }
.vye-start-card__title { color: #20242b; font-size: 18px; font-weight: 700; line-height: 1.25; }
.vye-start-card__text { margin-top: 8px; color: #747982; font-size: 14px; line-height: 1.5; }
.vye-home-direction-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.vye-home-direction { padding: 22px; border-radius: 20px; background: #fff; border: 1px solid rgba(82, 43, 238, .09); }
.vye-home-direction h3 { margin: 0 0 8px; color: #20242b; font-size: 19px; line-height: 1.25; }
.vye-home-direction p { margin: 0 0 14px; color: #747982; font-size: 13px; line-height: 1.45; }
.vye-home-direction__links { display: flex; flex-wrap: wrap; gap: 7px; }
.vye-home-direction__links a { padding: 7px 10px; border-radius: 999px; background: #f0ebff; color: #522bee; font-size: 12px; line-height: 1.2; text-decoration: none; }
.vye-home-direction__links a:hover { background: #522bee; color: #fff; }
.vye-home-direction__more { display: inline-block; margin-top: 14px; color: #522bee; font-size: 13px; font-weight: 700; text-decoration: none; }
.vye-directions-seo, .vye-home-seo { margin-top: 48px; padding: 30px; border-radius: 22px; background: #fff; }
.vye-directions-seo .vye-content, .vye-home-seo .vye-content { max-width: 960px; }
@media (max-width: 991px) {
    .vye-directory-grid, .vye-home-direction-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vye-start-grid { grid-template-columns: 1fr; }
    .vye-directory-intro { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 640px) {
    .vye-directory-grid, .vye-home-direction-grid { grid-template-columns: 1fr; }
    .vye-directory-intro, .vye-directory-group, .vye-start-card, .vye-home-direction, .vye-directions-seo, .vye-home-seo { padding: 22px; border-radius: 18px; }
    .vye-education-hero .vye-card__bottom { align-items: stretch; }
    .vye-education-hero .vye-btn { width: 100%; box-sizing: border-box; }
}
