/* Shared site refresh: preserve existing Razor content and navigation. */
:root {
    --home-ink: #172b43;
    --home-muted: #64748b;
    --home-blue: #0b5b8e;
    --home-orange: #e87932;
    --home-surface: #fff;
    --home-soft: #f4f7fa;
    --home-radius: 18px;
}

/* Shared design language for home, editorial and category pages. */
html { scroll-behavior: smooth; }
body {
    color: var(--home-ink);
    background: #fff;
    font-family: inherit;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}
a { transition: color .18s ease, background-color .18s ease; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid rgba(11,91,142,.35);
    outline-offset: 2px;
}
main { min-height: 55vh; }
.container { max-width: 1200px; }

/* Shared header and navigation */
.header {
    border-bottom: 1px solid rgba(23,43,67,.06);
    box-shadow: 0 6px 26px rgba(23,43,67,.08);
}
.header .container { max-width: 1320px; }
.header .search-box-form .form-control {
    min-height: 44px;
    border: 1px solid #e3e9ef;
    border-radius: 12px;
    background: #f7f9fb;
}
.header .btn-chat {
    border: 0;
    border-radius: 10px;
    padding: 11px 18px;
    color: #fff;
    background: var(--home-blue);
    box-shadow: 0 6px 14px rgba(11,91,142,.18);
}
.header .btn-chat:hover { color: #fff; background: #084a74; }
.header .left-content .lang-box,
.menu-mobile .left-content .lang-box {
    display: grid;
    flex: 0 0 46px !important;
    width: 46px;
    min-width: 46px;
    max-width: 46px;
    height: 44px;
    place-items: center;
    overflow: hidden;
    border: 1px solid #d7e5ee;
    border-radius: 10px;
    background: #edf4f8;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.header .left-content .lang-box a,
.menu-mobile .left-content .lang-box a {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: var(--home-blue) !important;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}
.header .left-content .lang-box:hover,
.menu-mobile .left-content .lang-box:hover {
    border-color: #b6d1e0;
    background: #dfeef5;
    transform: translateY(-1px);
}
.header .left-content,
.menu-mobile .left-content {
    align-items: center;
    gap: 8px;
}
.header .left-content .dropdown,
.menu-mobile .left-content .dropdown { align-self: center; }
.header .left-content .btn-chat,
.menu-mobile .left-content .btn-chat {
    display: inline-flex;
    min-height: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}
.main-menu { z-index: 20; }
.main-menu .menu > ul > li > a {
    border-radius: 9px;
    transition: color .2s ease, background .2s ease;
}
.main-menu .menu > ul > li > a:hover { background: #f1f6f9; }
.main-menu .menu > ul > li > .megamenu,
.main-menu .menu .sub-menu {
    border: 1px solid #e8edf2;
    border-top: 3px solid var(--home-orange);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 16px 38px rgba(23,43,67,.14);
}
.menu-mobile .menu-toggle-btn { border-radius: 10px; }

/* Consistent controls across forms, search and consultation flows */
.btn, .btn-lg, .btn-sch, .article-button a, .news-button a,
.number-button a, .destination-button a {
    border-radius: 10px;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.article-button a, .news-button a, .destination-button a, .number-button a {
    border: 0;
    color: #fff;
    background: var(--home-blue);
    text-decoration: none;
}
.article-button a:hover, .news-button a:hover, .destination-button a:hover,
.number-button a:hover { color: #fff; background: var(--home-orange); }
.btn:hover, .btn-lg:hover, .btn-sch:hover, .article-button a:hover, .news-button a:hover {
    transform: translateY(-1px);
}
input.form-control, select.form-control, textarea.form-control {
    min-height: 44px;
    border: 1px solid #dce4eb;
    border-radius: 10px;
    box-shadow: none;
}
input.form-control:focus, select.form-control:focus, textarea.form-control:focus {
    border-color: #6ea6c7;
    box-shadow: 0 0 0 3px rgba(11,91,142,.1);
}

/* Editorial and category pages */
.section-content { padding-top: 24px; padding-bottom: 24px; }
.section-content > .container > nav[aria-label="breadcrumb"] { margin-bottom: 18px; }
.section-content .breadcrumb {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    padding: 14px 18px;
    border: 1px solid #dce8ef;
    border-right: 3px solid var(--home-orange);
    border-radius: 12px;
    background: linear-gradient(110deg, #fff, #f4f8fb);
    box-shadow: 0 5px 18px rgba(23,43,67,.05);
    font-size: .9rem;
}
.section-content .breadcrumb-item { color: var(--home-muted); }
.section-content .breadcrumb-item a {
    color: var(--home-blue);
    text-decoration: none;
}
.section-content .breadcrumb-item a:hover { color: var(--home-orange); }
.section-content .breadcrumb-item.active { color: var(--home-ink); font-weight: 700; }
.section-content .breadcrumb-item + .breadcrumb-item::before { color: #9aabb8; }
.section-content > .container > .card {
    overflow: hidden;
    border: 1px solid #e9eef2 !important;
    border-radius: 18px;
    box-shadow: 0 12px 38px rgba(23,43,67,.07) !important;
}
.section-content > .container > .card > .card-body { padding: clamp(20px, 4vw, 48px) !important; }
.section-content h1, .section-content h2, .section-content h3,
.section-content h4 { color: var(--home-ink); line-height: 1.55; }
.section-content h1 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
.section-content article { color: #34475b; font-size: 1.02rem; line-height: 2; }
.section-content article p { margin-bottom: 1.35rem; }
.section-content article img { max-width: 100%; height: auto; border-radius: 12px; }
.section-content article table { width: 100%; margin: 1.5rem 0; border-collapse: collapse; }
.section-content article th, .section-content article td {
    padding: 12px 14px;
    border: 1px solid #e3e9ef;
}
.section-content article th { background: #f2f6f8; }
.section-content .badge-light { border-radius: 8px; }
.section-content .pagination { gap: 5px; }
.section-content .page-link { border-radius: 8px !important; }
.section-content#cat-article > .container > .mb-3 h1 { margin-bottom: 8px !important; }
.section-content#cat-article .item > .d-flex {
    overflow: hidden;
    padding: 0 !important;
    border: 1px solid #e8edf2;
    border-radius: 14px !important;
    box-shadow: 0 8px 25px rgba(23,43,67,.07) !important;
    transition: transform .2s ease, box-shadow .2s ease;
}
.section-content#cat-article .item > .d-flex:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(23,43,67,.12) !important;
}
.section-content#cat-article .product-img { overflow: hidden; }
.section-content#cat-article .product-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.section-content#cat-article .product-title { min-height: 68px; padding: 12px 16px !important; }
.section-content#cat-article .product-title a { color: var(--home-ink); font-weight: 700; text-decoration: none; }
.section-content#cat-article .product-title a:hover { color: var(--home-blue); }

/* Shared section titles, news blocks and footer */
.service-section .title p, .destination-title .title p,
.article-title .title p, .news-title .title p {
    color: var(--home-ink);
    font-size: clamp(1.45rem, 2.4vw, 2rem) !important;
    line-height: 1.55;
}
.news-section .items {
    padding: 14px;
    border: 1px solid #e9eef2;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 24px rgba(23,43,67,.06);
}
.news-section .items .img-news { overflow: hidden; border-radius: 10px; }
.news-section .items .img-news img { border-radius: 10px; }
.news-section .last-news-right .img-news,
.news-section .last-news-right .img-news img { width: 100%; }
.news-section .last-news-right .img-news img { aspect-ratio: 2.4; object-fit: cover; }
.news-section .list-news-left .img-news { flex: 0 0 105px; }
.news-section .list-news-left .img-news img { width: 105px; height: 114px; object-fit: cover; }
.news-section .text-news { min-width: 0; padding: 6px 14px; }
.news-section .text-news .title a p { color: var(--home-ink); line-height: 1.7; }
.news-section .text-news .content { color: var(--home-muted); line-height: 1.8; }
.newsletter-box {
    align-items: center;
    gap: 18px;
    padding: clamp(20px, 4vw, 36px);
    border: 1px solid #e5edf2;
    border-radius: 16px;
    background: var(--home-soft);
}
.newsletter-box .newsletter-text p { color: var(--home-muted); line-height: 1.9; }
.newsletter-box .rss-form .form { gap: 8px; }
.newsletter-box .rss-form .icon {
    width: 44px;
    flex: 0 0 44px;
    justify-content: center;
    border-radius: 10px;
    background: #e7eef3;
}
.newsletter-box .rss-form input.form-control {
    min-width: 0;
    max-width: none;
    height: 46px;
    border-radius: 10px;
    background: #fff;
}
.newsletter-box .rss-form .btn-submit.form-control {
    width: auto;
    min-width: 120px;
    height: 46px;
    border-radius: 10px;
    background: var(--home-blue);
}
.newsletter-box .rss-form .btn-submit.form-control:hover { background: var(--home-orange); }
.bg-counseling .counseling-title .content {
    padding: clamp(20px, 4vw, 36px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    color: rgba(255,255,255,.9);
    background: #0c3953;
    box-shadow: 0 12px 30px rgba(12,57,83,.2);
}
.bg-counseling .counseling-title .content h1,
.bg-counseling .counseling-title .content h2,
.bg-counseling .counseling-title .content h3,
.bg-counseling .counseling-title .content strong { color: #fff; }
.bg-counseling .counseling-title .content a { color: #ffc08d; }
.footer {
    background: linear-gradient(120deg, rgba(11,37,61,.97), rgba(13,65,91,.95)), url("/assets/img/back-footer.jpg") center / cover;
    color: rgba(255,255,255,.82);
}
.footer .footer-box { padding-top: 48px !important; padding-bottom: 36px !important; }
.footer .about-footer img { max-width: 210px; height: auto; object-fit: contain; }
.footer .footer-box .menu-box,
.footer .contact-box { padding-top: 10px; }
.footer .quick-menu .title,
.footer .contacts .title,
.footer .social-share .right-tilte p {
    position: relative;
    margin-bottom: 18px !important;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}
.footer .quick-menu .title::after,
.footer .contacts .title::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    width: 34px;
    height: 2px;
    content: "";
    border-radius: 2px;
    background: var(--home-orange);
}
[dir="ltr"] .footer .quick-menu .title::after,
[dir="ltr"] .footer .contacts .title::after { right: auto; left: 0; }
.footer .quick-menu .menu-list ul li { padding: 7px 0; }
.footer .footer-box .menu-box .quick-menu .menu-list ul li a,
.footer .footer-box .contact-box .contacts ul li .text a {
    color: rgba(255,255,255,.78) !important;
    line-height: 1.8;
    transition: color .18s ease, transform .18s ease;
}
.footer .footer-box .menu-box .quick-menu .menu-list ul li a:hover,
.footer .footer-box .contact-box .contacts ul li .text a:hover {
    color: #ffb27e !important;
}
.footer .footer-box .contact-box .contacts ul li .icon-box {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 10px;
    background: rgba(255,255,255,.09);
}
.footer .social-share { gap: 12px; }
.footer .social-share ul li { width: 38px; height: 38px; margin: 0; }
.footer .social-share ul li a {
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.1);
    transition: transform .2s ease, background .2s ease;
}
.footer .social-share ul li a:hover {
    background: var(--home-orange);
    transform: translateY(-3px);
}
.footer .mini-footer { border-top-color: rgba(255,255,255,.16); }
.footer .mini-footer .copyright-text { gap: 10px; line-height: 1.8; }
.footer .about-footer { color: rgba(255,255,255,.78); line-height: 1.9; }
.footer a { color: rgba(255,255,255,.88); }
.footer a:hover { color: #f3a36f; }
.footer .scroll-top { border-radius: 50%; box-shadow: 0 7px 18px rgba(0,0,0,.2); }

body {
    color: var(--home-ink);
    background: #fff;
    font-family: inherit;
}

.header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000000;
    background: rgba(255,255,255,.97);
    box-shadow: 0 5px 24px rgba(23,43,67,.07);
}

.header .container { max-width: 1320px; }
.header .search-box-form .form-control {
    min-height: 44px;
    border: 1px solid #e3e9ef;
    border-radius: 12px;
    background: #f7f9fb;
}
.header .btn-chat {
    border: 0;
    border-radius: 10px;
    padding: 11px 18px;
    color: #fff;
    background: var(--home-blue);
    box-shadow: 0 6px 14px rgba(11,91,142,.18);
}

.top-section {
    position: relative;
    height: clamp(430px, 48vw, 630px);
    background-size: cover;
    background-position: center 42%;
    background-attachment: scroll;
    isolation: isolate;
}
.top-section::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(10,29,49,.06), rgba(10,29,49,.20));
}
.top-section .top-slide { max-width: 1200px; }
.top-section .slide-box {
    right: 15px;
    bottom: 54px !important;
    width: min(560px, calc(100% - 30px));
    max-width: 560px !important;
    max-height: none !important;
    padding: clamp(24px, 4vw, 42px) !important;
    border: 1px solid rgba(255,255,255,.65);
    border-radius: var(--home-radius);
    background: rgba(255,255,255,.93) !important;
    box-shadow: 0 24px 70px rgba(10,29,49,.2);
    backdrop-filter: blur(10px);
}
.top-section .slide-box .content { padding: 0 0 12px !important; }
.top-section .slide-box .content p {
    margin: 0;
    color: var(--home-ink);
    font-size: clamp(1.15rem, 2vw, 1.65rem) !important;
    line-height: 1.8;
    font-weight: 700 !important;
}
.top-section .btn-free a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 10px;
    background: var(--home-orange) !important;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.top-section .btn-free a:hover {
    background: #cf6422 !important;
    box-shadow: 0 9px 20px rgba(232,121,50,.25);
    transform: translateY(-2px);
}

.about-section { padding: 26px 0 10px; }
.about-section .title { padding-bottom: 22px !important; }
.about-section .title h1,
.service-section .title p,
.destination-title .title p,
.article-title .title p {
    color: var(--home-ink);
    font-size: clamp(1.45rem, 2.4vw, 2rem) !important;
    line-height: 1.55;
}
.about-section .content {
    max-width: 920px;
    margin: 0 auto;
    color: var(--home-muted);
    font-size: 1rem;
    line-height: 2.1;
}
.about-section .content p { line-height: 2.1; }

.resident-section { gap: 14px; }
.resident-section .resident-box,
.destination-section .destination-box,
.article-section .article-box,
.last-news-section .news-box {
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(23,43,67,.09);
    transition: transform .22s ease, box-shadow .22s ease;
}
.resident-section .resident-box:hover,
.destination-section .destination-box:hover,
.article-section .article-box:hover,
.last-news-section .news-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(23,43,67,.15);
}
.resident-section .resident-box .title { background: transparent; }
.resident-section .resident-box .title a {
    background: linear-gradient(0deg, rgba(8,24,40,.76), rgba(8,24,40,0) 75%);
}
.resident-section .resident-box .title p { font-size: clamp(1rem, 1.7vw, 1.4rem); }
.resident-section .resident-box .img-back img,
.destination-section .destination-box img { display: block; object-fit: cover; }

.bg-gray { background: linear-gradient(180deg, #fff 0%, #f6f8fa 34%, #fff 100%) !important; }
.service-box { gap: 20px; }
.service-box .circle-box {
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(23,43,67,.12);
}
.service-box .circle-box .img-back { height: 100%; }
.service-box .circle-box .img-back img { width: 100%; height: 100%; object-fit: cover; }
.service-box .circle-box .title a {
    display: grid;
    place-items: center;
    padding: 16px;
    background: linear-gradient(0deg, rgba(8,24,40,.74), rgba(8,24,40,.08));
}
.service-box .circle-box .title p { font-size: 1.15rem; line-height: 1.7; }
.service-box .circle-box:hover { transform: translateY(-5px); }

.emigration-title .title p, .newsletter-title .title p {
    color: var(--home-ink);
    font-size: clamp(1.45rem, 2.4vw, 2rem) !important;
    line-height: 1.55;
}
.emigration-section { gap: 18px; }
.emigration-section .emigration-box {
    max-width: 340px;
    flex: 1 1 240px;
    overflow: hidden;
    border: 1px solid #e9eef2;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(23,43,67,.08);
    transition: transform .22s ease, box-shadow .22s ease;
}
.emigration-section .emigration-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 34px rgba(23,43,67,.15);
}
.emigration-section .emigration-box .img-back { overflow: hidden; }
.emigration-section .emigration-box .img-back img {
    display: block;
    width: 100%;
    aspect-ratio: 1.65;
    object-fit: cover;
    transition: transform .35s ease;
}
.emigration-section .emigration-box:hover .img-back img { transform: scale(1.035); }
.emigration-section .emigration-box > a {
    position: absolute;
    inset: auto 0 0;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(0deg, rgba(10,29,49,.88), rgba(10,29,49,.05));
}
.emigration-section .emigration-box > a .title {
    position: static;
    display: flex;
    min-height: 68px;
    height: auto;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background: transparent;
}
.emigration-section .emigration-box > a .title p { margin: 0; line-height: 1.6; }
.number-band {
    max-width: none;
    width: 100%;
    padding: 34px max(calc((100% - 1120px) / 2), 24px) !important;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(120deg, #0b4168, #126b91);
}
.number-band .number-section { gap: 20px; }
.number-band .number-box { flex: 1 1 180px; margin: 0 !important; text-align: center; }
.number-band .number-box .number span { color: #ffb27e; font-size: clamp(2rem, 4vw, 3rem); }
.number-band .number-box .text span { color: rgba(255,255,255,.92); font-size: 1rem; line-height: 1.7; }
.aparat-video {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 18px;
    background: #eaf0f4;
    box-shadow: 0 14px 38px rgba(23,43,67,.14);
}
.aparat-video iframe { width: 100%; height: 100%; border: 0; }

.bg-destination { background-attachment: scroll; }
.destination-title .content { max-width: 860px; color: var(--home-muted); line-height: 2; }
.destination-section { gap: 18px; }
.destination-section .destination-box { padding: 0; }
.destination-section .destination-box .img-back img { width: 100%; aspect-ratio: 1.55; }
.destination-section .destination-box .title {
    height: auto;
    min-height: 62px;
    border-bottom: 0;
    background: #fff;
}
.destination-section .destination-box .title a { text-decoration: none; color: var(--home-ink); }
.destination-button a,
.number-button a {
    border-radius: 10px;
    background: var(--home-blue);
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}
.destination-button a:hover,
.number-button a:hover { background: var(--home-orange); transform: translateY(-2px); }

.bg-counseling { background-color: var(--home-soft); }
.counseling-title .content { color: var(--home-muted); line-height: 2; }
.article-section .article-box,
.last-news-section .news-box { height: 100%; }

@media (max-width: 767.98px) {
    .section-content { padding-top: 14px; padding-bottom: 14px; }
    .section-content > .container > .card { border-radius: 14px; }
    .section-content > .container > .card > .card-body { padding: 18px !important; }
    .section-content article { font-size: .96rem; line-height: 1.9; }
    .news-section .items { padding: 10px; }
    .number-band { width: calc(100% - 28px); padding: 26px 18px !important; }
    .emigration-section { justify-content: center !important; }
    .emigration-section .emigration-box { flex-basis: min(100%, 340px); }
    .news-section .list-news-left { padding: 0; gap: 10px; }
    .newsletter-box .rss-form .form { flex-wrap: wrap; }
    .newsletter-box .rss-form .btn-submit.form-control { flex: 1 1 100%; }
    .footer .footer-box { padding-top: 30px !important; padding-bottom: 24px !important; }
    .footer .footer-box .about-footer,
    .footer .footer-box .menu-box { border-bottom-color: rgba(255,255,255,.16); }
    .footer .footer-box .menu-box .quick-menu { padding: 0 12px 18px; }
    .footer .footer-box .contact-box { padding: 8px 0 !important; }
    .top-section { height: 410px; background-position: center; }
    .top-section .top-slide { margin-top: 0 !important; }
    .top-section .slide-box {
        right: 5%;
        bottom: 20px !important;
        width: 90%;
        padding: 22px !important;
    }
    .top-section .slide-box .content p { font-size: 1.05rem !important; }
    .resident-section { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .resident-section .resident-box:nth-child(n) { grid-column: auto; grid-row: auto; min-height: 150px; }
    .resident-section .resident-box:last-child { grid-column: 1 / -1; }
    .resident-section .resident-box .img-back,
    .resident-section .resident-box .img-back img { height: 100%; }
}
@media (max-width: 480px) {
    .top-section { height: 370px; }
    .resident-section { grid-template-columns: 1fr; }
    .resident-section .resident-box:nth-child(n) { grid-column: 1; min-height: 190px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
