/*
 * StudySo — light refresh (2026).
 * Loaded after main.min.css and footer.css and only overrides them: delete the <link> to
 * style/modern.css in layouts/client.blade.php to get the old look back.
 *
 * 1. Design tokens        4. Header            7. Cards & sliders
 * 2. Type                 5. Hero & search     8. Footer
 * 3. Buttons & forms      6. Sections          9. Cards (generated)
 *                                              10. Inner pages (after the colours, so it wins)
 */

/* ---- 1. Design tokens ---- */
:root {
    /* The site's original colours (red buttons, bright blue accents). */
    --ss-brand: #c7424d;          /* red buttons */
    --ss-brand-700: #d95d67;      /* red hover / light red */
    --ss-brand-50: #fdf0f1;
    --ss-navy: #3671f1;           /* bright blue accents */
    --ss-navy-700: #2e62d4;
    --ss-navy-50: #d4dff8;
    --ss-ink: #313131;
    --ss-muted: #6a6a6a;
    --ss-line: #e3e7ee;
    --ss-soft: #f5f7fa;
    --ss-radius: 14px;
    --ss-radius-sm: 10px;
    --ss-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 6px 20px rgba(16, 24, 40, .07);
    --ss-shadow-hover: 0 2px 4px rgba(16, 24, 40, .06), 0 14px 32px rgba(16, 24, 40, .12);
    --ss-shadow-brand: 0 8px 43px 0 rgba(230, 64, 77, .5);
    --ss-font-text: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --ss-font-head: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---- 2. Type ---- */
html { -webkit-text-size-adjust: 100%; }
body {
    font-size: 16px;
    line-height: 1.6;
    color: var(--ss-ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
/* The old styles set Montserrat on ~150 selectors: text now uses Manrope, headings keep
   Montserrat. Icon fonts are left alone. */
body *:not(i):not(.fa):not(.fas):not(.far):not(.fab):not([class^="fa-"]):not([class*=" fa-"]):not(.select2-selection__arrow b) {
    font-family: var(--ss-font-text) !important;
}
body h1, body h2, body h3,
body .title, body .tit, body .tit span, body .cpt .item, body .big,
body .hero-slider__cont .carousel-cell .txt .title,
body .country-selection__cont .tit,
body .learning .tit span,
body .why-us__cont .tit span,
body .why-us__video .cpt .item,
body .contact-form__head span.cpt,
body .blog__container--inner .blog__main--tit,
body .bestSaller__container--inner .bestSaller__main--tit,
body .university-info__body .name,
body .country--banner .infr .item,
body .partners--banner .infr .item {
    font-family: var(--ss-font-head) !important;
    letter-spacing: -0.01em;
}
.country-selection__cont .tit,
.learning .tit span,
.why-us__cont .tit span,
.why-us__video .cpt .item,
.contact-form__head span.cpt,
.blog__container--inner .blog__main--tit,
.bestSaller__container--inner .bestSaller__main--tit,
.university-info__map .tit,
.university-info__testimonials .testimonials__cont .tit {
    font-weight: 700;
    font-size: clamp(26px, 3.2vw, 38px);
    line-height: 1.2;
}
p, li { line-height: 1.65; }
a { text-underline-offset: 3px; }
::selection { background: var(--ss-brand); color: #fff; }
:focus-visible { outline: 3px solid rgba(199, 66, 77, .45); outline-offset: 2px; }

/* ---- 3. Buttons & forms ---- */
.cst-btn {
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    min-height: 48px;
    padding: 0 28px;
    transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.cst-btn:hover { transform: translateY(-1px); }
.cst-btn:active { transform: none; }
.cst-btn__low { min-height: 38px; padding: 0 16px; }

input.cst-inpt, textarea.cst-inpt, .cst-inpt input, .cst-inpt textarea,
.form-grp input:not([type=submit]):not([type=button]):not([type=checkbox]):not([type=radio]), .form-grp textarea, .form-grp select,
.modalWindow input[type="text"], .modalWindow input[type="email"], .modalWindow input[type="tel"], .modalWindow textarea,
.default-foem-tr input:not([type=submit]):not([type=button]):not([type=checkbox]):not([type=radio]), .default-foem-tr textarea, .default-foem-tr select {
    border: 1px solid var(--ss-line) !important;
    border-radius: var(--ss-radius-sm) !important;
    background: #fff !important;
    box-shadow: none !important;
    font-size: 15px !important;
    color: var(--ss-ink) !important;
    transition: border-color .2s, box-shadow .2s;
}
input.cst-inpt:focus, textarea.cst-inpt:focus, .cst-inpt input:focus, .cst-inpt textarea:focus,
.form-grp input:focus, .form-grp textarea:focus, .form-grp select:focus,
.modalWindow input:focus, .modalWindow textarea:focus,
.default-foem-tr input:focus, .default-foem-tr textarea:focus, .default-foem-tr select:focus {
    border-color: var(--ss-brand) !important;
    box-shadow: 0 0 0 3px rgba(199, 66, 77, .15) !important;
    outline: none;
}
::placeholder { color: #8a93a3; opacity: 1; }

.modalWindow__entity { border-radius: var(--ss-radius); overflow: hidden; box-shadow: var(--ss-shadow-hover); }
.select2-dropdown { border-radius: var(--ss-radius-sm) !important; border-color: var(--ss-line) !important; overflow: hidden; box-shadow: var(--ss-shadow); }

/* ---- 4. Header ---- */
.header {
    min-height: 76px;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    box-shadow: 0 1px 0 var(--ss-line), 0 4px 18px rgba(16, 24, 40, .05);
}
.header__cont.mobile { min-height: 64px; }
.site-container { padding-top: 76px; }
.header__cont .hidden-nav { border-radius: 0 0 var(--ss-radius) var(--ss-radius); box-shadow: var(--ss-shadow-hover); }
/* The menu hangs right under the header: on desktop it is positioned from the burger
   (28px from the top of the 76px header), on mobile from the header row. */
.header__cont.desktop .header__gumb .hidden-nav { top: 48px; }
.header__cont.mobile .hidden-nav { top: 70px; }
.header__cont .hidden-nav ul li .link { font-size: 15px; font-weight: 500; height: 44px; }
.header__lang { border-radius: 10px; }
.header__socials .ln { transition: background-color .2s, opacity .2s; }

/* ---- 5. Hero & search ---- */
.hero-slider__cont .carousel-cell { height: clamp(380px, 52vh, 540px); }
.hero-slider__cont .carousel-cell::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(13, 19, 34, .15) 0%, rgba(13, 19, 34, .55) 100%);
    pointer-events: none;
}
.hero-slider__cont .carousel-cell .txt .title {
    font-weight: 700;
    font-size: clamp(30px, 4.4vw, 54px);
    line-height: 1.12;
    max-width: 760px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .25);
}
.hero-slider__cont .carousel-cell .txt .subtitle { font-size: clamp(16px, 1.6vw, 20px); line-height: 1.5; opacity: .95; }

.programms-form .form .tit { font-weight: 600; }
.programms-form .form .select-group .select2-selection.select2-selection--single {
    border-radius: 12px;
}
.programms-form .form .select-group .select2-container--open .select2-selection.select2-selection--single { border-radius: 12px 12px 0 0; }

/* ---- 6. Sections ---- */
.country-selection { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 56px); }
.checklist-form .frm, .default-foem-tr .form-right {
    border-radius: var(--ss-radius);
    box-shadow: var(--ss-shadow-hover);
}
.why-us__cont .items .item {
    border-radius: var(--ss-radius);
    box-shadow: 0 10px 30px rgba(13, 19, 34, .2);
}
.why-us__cont .items .item .big { font-weight: 700; }

/* The programs slider takes the height of the current country, not of the tallest one. */
.country-selection .content-slider .flickity-viewport { transition: height .3s; }

/* Floating "free consultation" circle: hidden, not removed. Delete this rule to bring it back. */
.chance2 { display: none !important; }

/* Share buttons under articles, and social icons without an original SVG (Font Awesome). */
.social_share .link-group .link.tg { background: #229ed9; }
.social_share .link-group .link { border-radius: 50%; transition: transform .2s, opacity .2s; }
.social_share .link-group .link:hover { transform: translateY(-2px); opacity: .9; }
.header__socials .ln, .socials-btn .link { text-decoration: none; }
.header__socials .ln i { font-size: 21px; color: #bbb; transition: color .2s; }
.header__socials .ln:hover i { color: #fff; }
.socials-btn .link i { font-size: 21px; color: #fff; }

/* ---- 7. Cards & sliders ---- */
.country-selection .content-slider .carousel-cell .column:nth-child(1) ul li { transition: box-shadow .25s, transform .25s; }
.country-selection .content-slider .carousel-cell .column:nth-child(1) ul li:hover { box-shadow: var(--ss-shadow-hover); transform: translateY(-3px); }
.country-selection__slider .content-slider .carousel-cell .link-list .link:hover { background: transparent; padding-left: 0; }

.why-us__video--slider .carousel-cell .inf { padding: 20px 22px; }
.why-us__video--cont .slider-arrow, .learning .slider-nav .arr {
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--ss-shadow);
}

.learning__slider .carousel-cell { border-radius: var(--ss-radius); overflow: hidden; transition: opacity .3s; }
.learning__slider .carousel-cell .thumb { transition: transform .5s; }
.learning__slider .carousel-cell:hover .thumb { transform: scale(1.04); }
.learning__slider .carousel-cell::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(13, 19, 34, 0) 40%, rgba(13, 19, 34, .7) 100%);
}
.learning__slider .carousel-cell .tit { font-weight: 700; font-size: 22px; line-height: 1.25; }

.new-box, .blog__container--inner .blog__main--post, .bestSaller__container--inner .bestSaller__main--post {
    border-radius: var(--ss-radius);
}
img.thumb, .new-box img { border-radius: inherit; }

/* Rich text written in the admin editor: readable size everywhere. */
.about-block__cont p, .about-block__cont li,
.partners-block__cont .txt p, .partners-block__cont .txt li,
.blog__container--inner .blog__main--post p, .blog__container--inner .blog__main--post li,
.bestSaller__container--inner .bestSaller__main--post p, .bestSaller__container--inner .bestSaller__main--post li,
.intership_info__cont .intership_item .txt p, .intership_info__cont .intership_item .txt li,
.grants_info__cont .intership_item .txt p, .grants_info__cont .intership_item .txt li,
.university-info__body p, .university-info__body li {
    font-size: 16px;
    line-height: 1.7;
}
.blog__container--inner .blog__main--post a, .bestSaller__container--inner .bestSaller__main--post a,
.partners-block__cont .txt a, .about-block__cont a { font-size: inherit; line-height: inherit; color: var(--ss-brand); }

/* ---- 8. Footer ---- */
.footer__tabs .link { font-weight: 600; }
.footer__cont .menu--list ul .link { font-size: 16px; font-weight: 500; opacity: .9; transition: opacity .2s, color .2s; }
.footer__cont .menu--list ul .link:hover { opacity: 1; color: #fff; }
.footer__cont .infor .tit { font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .7; }
.footer__cont .infor .item .txt, .footer__cont .infor .item .txt a { font-size: 15px; }
.footer__cont .infor .item .txt a:hover { color: #ffb3bb; }

/* ---- 9. Cards (generated by tools/gen_colors.py from main.min.css and footer.css) ---- */
.true-prices__box .white { box-shadow: var(--ss-shadow); border-radius: var(--ss-radius); }
.why-us__video .why-us__video--slider .new-box { box-shadow: var(--ss-shadow); border-radius: var(--ss-radius); }
.country-selection .content-slider .carousel-cell .column:nth-child(1) ul li { box-shadow: var(--ss-shadow); border-radius: var(--ss-radius); }
.acc-title { box-shadow: var(--ss-shadow); border-radius: var(--ss-radius); }
.checklist-form .form { box-shadow: var(--ss-shadow); border-radius: var(--ss-radius); }
.checklist-form .form .input { box-shadow: none; border: 1px solid var(--ss-line); border-radius: var(--ss-radius-sm); }
.default-foem-tr .form-right { box-shadow: var(--ss-shadow); border-radius: var(--ss-radius); }
.default-foem-tr .form-right form .input { box-shadow: none; border: 1px solid var(--ss-line); border-radius: var(--ss-radius-sm); }
.default-foem-tr .form-right form textarea { box-shadow: none; border: 1px solid var(--ss-line); border-radius: var(--ss-radius-sm); }
.acc-shaddow { box-shadow: var(--ss-shadow); border-radius: var(--ss-radius); }

/* ---- 10. Inner pages ---- */

/* Breadcrumbs */
.breadcrumbs__cont { height: auto; min-height: 56px; padding-top: 12px; padding-bottom: 12px; }
.breadcrumbs__cont .link { font-size: 13px; transition: color .2s; }
.breadcrumbs__cont .link:hover { color: var(--ss-brand); }
.breadcrumbs__cont .link.no-parent { font-weight: 600; }
.breadcrumbs__cont .link::after { color: #c3c8d1; margin: 0 8px; }

/* Page banners (country, program, partners, about, internships…) */
.country--banner, .partners--banner { min-height: clamp(240px, 30vw, 380px); overflow: hidden; }
.country--banner::after, .partners--banner::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(13, 19, 34, .25) 0%, rgba(13, 19, 34, .6) 100%);
    pointer-events: none;
}
.country--banner .bg, .partners--banner .bg { z-index: 0; }
.country--banner .infr, .partners--banner .infr { position: relative; z-index: 2; padding: 40px 20px; }
.country--banner .infr .item, .partners--banner .infr .item {
    font-weight: 700;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.15;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .25);
}
.country--banner .infr .sub_item, .partners--banner .infr .sub_item {
    max-width: 680px;
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.6;
    opacity: .95;
}

/* Institution / grant cards in lists: photo first, the country chip on its edge, then the name. */
.studyplace__cont .item {
    overflow: hidden;
    background: #fff;
    padding-bottom: 8px;
    transition: box-shadow .25s, transform .25s;
}
.studyplace__cont .item:hover { box-shadow: var(--ss-shadow-hover); transform: translateY(-3px); }
.studyplace__cont .item .thumb { order: -2; height: 190px; overflow: hidden; }
.studyplace__cont .item .thumb img { transition: transform .5s; }
.studyplace__cont .item:hover .thumb img { transform: scale(1.05); }
.studyplace__cont .item .state { order: -1; position: relative; z-index: 1; }
.studyplace__cont .item .state .itm { min-width: 0; padding: 0 18px; min-height: 32px; font-weight: 600; box-shadow: 0 4px 12px rgba(16, 24, 40, .18); }
.studyplace__cont .item .name {
    min-height: 56px;
    margin-bottom: 8px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ss-ink);
}
.studyplace__cont .item .txt { font-size: 14px; line-height: 1.6; }
.studyplace__cont .item .rd_mr { font-size: 13px; color: var(--ss-navy); letter-spacing: .02em; border-left: 0 !important; }
.studyplace__cont .item .rd_mr::after { content: ' →'; transition: margin .2s; }
.studyplace__cont .item .rd_mr:hover { color: var(--ss-navy-700); }
.studyplace .studyplace__cont .tr-icon-row__box p { font-weight: 600; color: var(--ss-ink); }

/* Pagination */
.cst-pag .link { transition: background-color .2s, transform .2s; }
.cst-pag .link:hover { transform: translateY(-1px); }
.cst-pag .link.active { background: var(--ss-navy); }
.cst-pag__solid .link.active { color: var(--ss-brand); background: transparent; }

/* News and offers lists */
.blog__container--inner .blog__main--posts .item,
.bestSaller__container--inner .bestSaller__main--posts .item { border-radius: var(--ss-radius); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.blog__container--inner .blog__main--posts .item:hover,
.bestSaller__container--inner .bestSaller__main--posts .item:hover { box-shadow: var(--ss-shadow-hover); transform: translateY(-2px); }
.blog__container--inner .blog__main--posts .item .content .captin,
.bestSaller__container--inner .bestSaller__main--posts .item .content .captin { font-weight: 700; font-size: 19px; line-height: 1.3; }
.blog__container--inner .blog__main--posts .item .content .date,
.bestSaller__container--inner .bestSaller__main--posts .item .content .date { font-size: 12px; color: var(--ss-muted); letter-spacing: .04em; }
.blog__container--inner .blog__main--posts .item .content .read_more,
.bestSaller__container--inner .bestSaller__main--posts .item .content .read_more { font-size: 13px; }
.blog__container--inner .blog__sidebar .related-posts,
.bestSaller__container--inner .blog__sidebar .related-posts { border-radius: var(--ss-radius); overflow: hidden; }
.blog__container--inner .blog__sidebar .related-posts .cpt,
.bestSaller__container--inner .blog__sidebar .related-posts .cpt { font-size: 17px; font-weight: 700; padding: 16px 0; }
.blog__container--inner .blog__sidebar .related-posts__items .link,
.bestSaller__container--inner .blog__sidebar .related-posts__items .link { line-height: 1.45; }
.blog__container--inner .blog__sidebar .related-posts__items .link:hover,
.bestSaller__container--inner .blog__sidebar .related-posts__items .link:hover { color: var(--ss-brand); }
.blog__sidebar .banner, .blog__sidebar .banner img { border-radius: var(--ss-radius); overflow: hidden; }
.social_share .tit { font-size: clamp(22px, 2.6vw, 30px) !important; font-weight: 700; }

/* Special offer page /best-deal/… */
.special-offer-tr h2 { font-weight: 700; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.2; }
.special-offer-tr .first-row img, .special-offer-tr iframe { border-radius: var(--ss-radius); }
.special-offer-tr .cols-row .box {
    border: 0;
    border-top: 4px solid var(--ss-navy);
    border-radius: var(--ss-radius);
    background: #fff;
    box-shadow: var(--ss-shadow);
}
.special-offer-tr .cols-row .box h3 { font-size: 19px; font-weight: 700; margin-bottom: 14px; }
.special-offer-tr .cols-row .box p, .special-offer-tr .cols-row .box li,
.special-offer-tr .txt-content p, .special-offer-tr .txt-content li { font-size: 16px; line-height: 1.7; }

/* Institution page */
.university-info__body .name { font-weight: 700; line-height: 1.15; }
.university-info__desc .item { border-bottom-color: var(--ss-line) !important; }
.university-info__desc .item:first-child, .university-info__desc .item:first-of-type { border-top-color: var(--ss-line) !important; }
.university-info__desc .item .tt { color: var(--ss-muted); }
.university-info__desc .item .it { font-weight: 600; color: var(--ss-ink); }
.university-info__sel-line .tit { font-weight: 700; font-size: 18px; line-height: 1.35; color: var(--ss-brand-700); }
.slider-aside .carousel-cell img, .university-info--slider .carousel-cell { border-radius: var(--ss-radius); overflow: hidden; }
.university-info--slider__nav .carousel-cell { border-radius: var(--ss-radius-sm); overflow: hidden; }

/* FAQ accordion */
.tr-faq .tit { font-weight: 700; }
.acc-box { margin-bottom: 12px; }
.acc-title {
    border-radius: var(--ss-radius-sm);
    box-shadow: var(--ss-shadow);
    padding: 18px 20px 18px 60px;
    transition: box-shadow .2s, color .2s;
}
.acc-title:hover { color: var(--ss-brand); box-shadow: var(--ss-shadow-hover); }
.acc-title:before { left: 30px; }
.acc-body { padding: 18px 24px 8px; line-height: 1.7; }

/* Reviews page */
.reviews__cont .reviews__grid .item { border-radius: var(--ss-radius); }
.reviews__cont .reviews__grid .item .name { font-weight: 700; }
.reviews__cont .reviews__grid .item .video_thumb, .reviews__cont .reviews__grid .item .video_thumb img { border-radius: var(--ss-radius-sm); overflow: hidden; }

/* About / partners text blocks: comfortable reading width */
.about-block__cont .basic, .partners-block__cont .txt { max-width: 860px; margin-left: auto; margin-right: auto; }
.university-info__text p, .university-info__text li { font-size: 15px; line-height: 1.7; }
.university-info__text .toggle-txt, .university-info__text .toggle-txtReverse, .about-block__cont .toggle-txt, .about-block__cont .toggle-txtReverse {
    color: var(--ss-brand);
    font-weight: 700;
    font-size: 14px;
}

/* Phones: the course search band is compact, accordions use the full width. */
@media only screen and (max-width: 600px) {
    .programms-form .form { padding: 18px 0 14px; }
    .programms-form .form .select-group { margin: 0 0 10px 0; }
    .programms-form .form .select-group .select2-selection.select2-selection--single { height: 44px; }
    .programms-form .form .btn-group { padding: 6px 0 0; }
    .acc-title { padding: 14px 14px 14px 40px; }
    .acc-title:before { left: 20px; }
    .acc-body { padding: 14px 14px 4px; }
    .acc-box.acc-shaddow { padding: 12px 8px; }
    .acc-box.acc-shaddow .acc-title { padding-left: 36px; }
}

/* Checklist form on the home page: captcha and errors. */
.checklist-form .checklist-captcha { display: flex; justify-content: center; width: 100%; margin: 4px 0 12px; }
.checklist-form .checklist-errors { display: block; margin: 0 0 12px; color: #b91c1c; font-size: 14px; line-height: 1.5; text-align: center; }
