/* ==========================================================================
   RosMigrant Main Page Redesign Styles (BEM Methodology)
   ========================================================================== */

/* Typography & Reset Variables */
:root {
    --rm-primary: #4a90e2;
    --rm-primary-hover: #357abd;
    --rm-text-main: #333333;
    --rm-text-muted: #666666;
    --rm-bg-light: #f8f9fa;
    --rm-bg-white: #ffffff;
    --rm-radius-lg: 12px;
    --rm-radius-md: 8px;
    --rm-radius-sm: 8px;
    --rm-shadow-card: 0 4px 16px rgba(0, 0, 0, 0.06);
    --rm-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.08);
    --rm-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.rm-main-page {
    font-family: inherit; /* Fallback to theme font */
    color: var(--rm-text-main);
    overflow-x: hidden;
}

/* Base Components */
.rm-section {
    padding: 80px 0;
}
.rm-section__header {
    margin-bottom: 40px;
}
.rm-section__header--center {
    text-align: center;
}
.rm-section__title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: #333;
    margin: 0;
}
.rm-card {
    background: var(--rm-bg-white);
    border-radius: var(--rm-radius-lg);
    box-shadow: var(--rm-shadow-card);
    transition: var(--rm-transition);
    overflow: hidden;
}
.rm-card:hover {
    box-shadow: var(--rm-shadow-hover);
    transform: translateY(-4px);
}
.rm-image-glow {
    position: relative;
}
.rm-image-glow::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80%; height: 80%;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.15) 0%, rgba(74, 144, 226, 0) 70%);
    z-index: -1;
    border-radius: 50%;
    filter: blur(40px);
}

/* ================= Hero Section ================= */
.rm-hero {
    padding: 60px 0 100px;
    background: linear-gradient(135deg, #f4f7fb 0%, #e0eaf5 100%);
    position: relative;
}
.rm-hero__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.rm-hero__content {
    flex: 1 1 55%;
    max-width: 600px;
}
.rm-hero__title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #1a1a1a;
}
.rm-hero__subtitle {
    font-size: 20px;
    line-height: 1.5;
    color: var(--rm-text-muted);
    margin-bottom: 40px;
}
.rm-hero__qr-block {
    display: inline-flex;
    align-items: center;
    background: var(--rm-bg-white);
    padding: 16px 24px 16px 16px;
    border-radius: var(--rm-radius-lg);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    gap: 24px;
}
.rm-hero__qr-img {
    width: 90px;
    height: 90px;
    background: #fff;
    border-radius: var(--rm-radius-sm);
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.rm-hero__qr-img img {
    width: 100%; height: 100%; object-fit: contain;
}
.rm-hero__qr-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--rm-text-main);
    max-width: 180px;
    line-height: 1.4;
}
.rm-hero__play-btn {
    width: 56px;
    height: 56px;
    background: var(--rm-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: var(--rm-transition);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.4);
}
.rm-hero__play-btn:hover {
    background: var(--rm-primary-hover);
    transform: scale(1.05);
}
.rm-hero__play-btn img {
    width: 24px; height: 24px; filter: brightness(0) invert(1);
}
.rm-hero__image-wrapper {
    flex: 1 1 45%;
    position: relative;
    display: flex;
    justify-content: center;
}
.rm-hero__image {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
}

/* ================= ID Section ================= */
.rm-id-section {
    background: var(--rm-bg-white);
}
.rm-id-section__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}
.rm-id-section__content {
    flex: 0 0 45%;
    max-width: 45%;
}
.rm-id-section__image {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    justify-content: flex-end;
}
.rm-id-section__image svg, .rm-id-section__image img {
    max-width: 100%;
    height: auto;
    transform-origin: center right;
}
.rm-id-title-highlight {
    font-size: 1.3em;
    color: var(--rm-primary);
    display: block;
    margin-bottom: 8px;
    line-height: 1.1;
}
.rm-id-list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 24px;
}
.rm-id-list__item {
    display: flex; align-items: flex-start; gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: var(--rm-radius-lg);
    box-shadow: var(--rm-shadow-card);
    transition: var(--rm-transition);
}
.rm-id-list__item:hover {
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transform: translateX(5px);
}
.rm-id-list__number {
    width: 40px; height: 40px;
    background: var(--rm-primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-weight: bold; font-size: 18px;
    flex-shrink: 0;
}
.rm-id-list__text {
    font-size: 18px; line-height: 1.5; color: var(--rm-text-main);
    padding-top: 6px;
}

/* ================= Instruction Section ================= */
.rm-instruction {
    background: #fdfdfd;
}
.rm-section__title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    color: #333;
    margin: 0;
}
.rm-instruction__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}
.rm-instruction-card {
    padding: 20px;
    text-align: center;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    background: #ffffff;
    border-radius: var(--rm-radius-lg);
    box-shadow: var(--rm-shadow-card);
    border: none;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.rm-instruction-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    transform: translateY(-6px);
}
.rm-instruction-card__image {
    width: 100%;
    height: 240px;
    margin-bottom: 20px;
    display: flex; align-items: flex-end; justify-content: center;
    background-color: #f0f6ff;
    background-image: radial-gradient(circle, #d2e4fc 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    border-radius: var(--rm-radius-md);
    position: relative;
    overflow: hidden;
}
.rm-instruction-card__image::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.12) 0%, rgba(74, 144, 226, 0) 65%);
    z-index: 0;
    pointer-events: none;
    transition: transform 0.6s ease, opacity 0.6s ease;
    opacity: 0.9;
}
.rm-instruction-card:hover .rm-instruction-card__image::before {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 1;
}
.rm-instruction-card__image::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #ffffff 100%);
    z-index: 2;
    pointer-events: none;
}
.rm-instruction-card__image svg, .rm-instruction-card__image img {
    height: 90%; width: auto; max-width: 90%; object-fit: contain; object-position: bottom;
    position: relative; z-index: 1;
    transform-origin: bottom center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.rm-instruction-card:hover .rm-instruction-card__image svg,
.rm-instruction-card:hover .rm-instruction-card__image img {
    transform: scale(1.05);
}
.rm-instruction-card__text {
    font-size: 16px; line-height: 1.5; color: #444; font-weight: normal;
    padding: 0;
}

/* ================= Exam Section ================= */
.rm-exam {
    background: #fdfdfd;
}
.rm-exam__wrapper {
    display: flex; align-items: flex-start; gap: 80px; flex-direction: row-reverse;
}
.rm-exam__image {
    flex: 1 1 45%;
    margin-top: -20px;
}
.rm-exam__content {
    flex: 1 1 55%;
}
.rm-exam-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 24px; margin-top: 40px;
}
.rm-exam-list__item {
    display: flex; align-items: flex-start; gap: 16px;
    font-size: 17px; color: var(--rm-text-main);
    font-weight: 500;
}
.rm-exam-list__icon {
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; background: rgba(74, 144, 226, 0.1); border-radius: 50%;
    margin-top: 2px;
}
.rm-exam-list__icon svg {
    width: 14px; height: 14px;
}
.rm-exam-list__text {
    display: flex; flex-direction: column; gap: 8px; line-height: 1.4;
}
.rm-exam-list__stars {
    height: 20px; margin-top: 6px;
}

/* ================= Services Section ================= */
.rm-services {
    background: #f4f7fa;
    position: relative;
    padding-top: 100px; padding-bottom: 120px;
}
.rm-services__badge {
    position: absolute;
    top: -24px; left: 50%; transform: translateX(-50%);
    background: var(--rm-primary); color: #fff;
    padding: 12px 32px; border-radius: 30px;
    font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    box-shadow: 0 8px 24px rgba(74, 144, 226, 0.4);
    z-index: 10;
    white-space: nowrap;
}
.rm-services__grid {
    display: flex; flex-direction: column; gap: 80px;
}
.rm-service-block {
    background: #ffffff;
    border-radius: var(--rm-radius-lg);
    padding: 40px;
    box-shadow: var(--rm-shadow-card);
    border: none;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.rm-service-block:hover {
    box-shadow: 0 24px 60px rgba(0,0,0,0.07);
    transform: translateY(-4px);
}
.rm-service-block .rm-section__header {
    text-align: left;
}
.rm-service-block .rm-section__title {
    font-size: 32px;
    letter-spacing: normal;
}
.rm-service-block__content {
    display: flex; align-items: center; gap: 80px; margin-top: 60px;
}
.rm-service-block__image {
    flex: 0 0 400px;
    display: flex; justify-content: center;
    position: relative;
    z-index: 2;
}
.rm-service-block__image svg, .rm-service-block__image img {
    max-width: 100%; height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.08));
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center center;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}
.rm-service-block:hover .rm-service-block__image svg,
.rm-service-block:hover .rm-service-block__image img {
    transform: translateZ(0) scale(1.08) translateY(-6px);
    filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.12));
}
.rm-service-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 32px; flex: 1;
}
.rm-service-list__item {
    font-size: 20px; line-height: 1.5; font-weight: 500;
    color: var(--rm-text-main);
    display: flex; align-items: center; gap: 20px;
    transition: all 0.3s ease;
    cursor: default;
}
.rm-service-list__item:hover {
    transform: translateX(10px);
    color: #1a1a1a;
}
.rm-service-list__item::before {
    content: ''; 
    display: block; width: 8px; height: 8px; flex-shrink: 0;
    background: var(--rm-primary); border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(74, 144, 226, 0.12);
    transition: all 0.3s ease;
}
.rm-service-list__item:hover::before {
    background: #2e7ac1;
    box-shadow: 0 0 0 8px rgba(74, 144, 226, 0.2);
}

.rm-uslugi-wrapper {
    padding: 0; background: transparent; box-shadow: none; border-radius: 0; margin-top: 0;
    border: none;
}
.rm-uslugi-wrapper:hover {
    box-shadow: none;
    transform: none;
}
.rm-uslugi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
}
.rm-uslugi-item {
    background: #ffffff;
    border-radius: var(--rm-radius-lg);
    padding: 20px;
    text-align: center;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    box-shadow: var(--rm-shadow-card);
    border: none;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.rm-uslugi-item:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    transform: translateY(-6px);
}
.rm-uslugi-item__image {
    width: 100%;
    height: 190px;
    margin-bottom: 20px;
    display: flex; align-items: flex-end; justify-content: center;
    background-color: #f0f6ff;
    background-image: radial-gradient(circle, #d2e4fc 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    border-radius: var(--rm-radius-md);
    position: relative;
    overflow: hidden;
}
.rm-uslugi-item__image::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.12) 0%, rgba(74, 144, 226, 0) 65%);
    z-index: 0;
    pointer-events: none;
    transition: transform 0.6s ease, opacity 0.6s ease;
    opacity: 0.9;
}
.rm-uslugi-item:hover .rm-uslugi-item__image::before {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 1;
}
.rm-uslugi-item__image::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 70px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #ffffff 100%);
    z-index: 2;
    pointer-events: none;
}
.rm-uslugi-item__image svg, .rm-uslugi-item__image img {
    height: 85%; width: auto; max-width: 90%; object-fit: contain; object-position: bottom;
    position: relative; z-index: 1;
    transform-origin: bottom center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}
.rm-uslugi-item:hover .rm-uslugi-item__image svg,
.rm-uslugi-item:hover .rm-uslugi-item__image img {
    transform: translateZ(0) scale(1.05);
}
.rm-uslugi-item__text {
    font-size: 16px; font-weight: normal; margin: 0; color: #444; line-height: 1.5;
    padding: 0;
}

/* ================= Posts Section ================= */
.rm-articles {
    padding: 80px 0;
    background: #F4F8FE;
}
.rm-articles__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}
.rm-articles__header .rm-section__title {
    margin: 0;
}
.rm-articles__link {
    color: var(--rm-primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    transition: var(--rm-transition);
}
.rm-articles__link:hover {
    color: var(--rm-primary-hover);
    transform: translateX(3px);
}
.rm-articles__arrow {
    font-size: 18px;
}
.rm-articles__link._mobile {
    margin: 30px auto 0;
    width: max-content;
    justify-content: center;
}

/* ================= Wrapping Posts ================= */
.rm-posts-wrapper {
    background: #F4F8FE; padding: 40px 0;
}

/* ================= Responsive (Mobile First Override format) ================= */
@media (max-width: 991px) {
    .rm-hero__body, .rm-id-section__wrapper, .rm-exam__wrapper, .rm-service-block__content {
        flex-direction: column; text-align: center; align-items: center;
        gap: 40px;
    }
    .rm-hero__content, .rm-hero__image-wrapper,
    .rm-id-section__content, .rm-id-section__image,
    .rm-exam__content, .rm-exam__image,
    .rm-service-block__image {
        max-width: 100%;
        flex: 1 1 100%;
        width: 100%;
        justify-content: center;
    }
    .rm-hero__title { font-size: 36px; }
    .rm-hero__qr-block { justify-content: center; margin: 0 auto; display: flex; }
    .rm-id-list__item { text-align: left; }
    .rm-service-list__item { text-align: left; }
    .rm-exam-list__item { text-align: left; }
    .rm-service-block { padding: 30px 20px; }
    .rm-service-block__content { margin-top: 40px; }
    .rm-uslugi-grid { grid-template-columns: repeat(2, 1fr); }
}
.rm-articles__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}
.rm-articles__grid .articles-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: var(--rm-radius-lg);
    box-shadow: var(--rm-shadow-card);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    padding: 20px;
    border: none;
}
.rm-articles__grid .articles-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}
.rm-articles__grid .articles-item__img {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    height: 240px !important;
    overflow: hidden;
    background-color: #f0f6ff;
    border-radius: var(--rm-radius-md);
    position: relative;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
}
/* Replicate Bento background for images just in case */
.rm-articles__grid .articles-item__img::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.12) 0%, rgba(74, 144, 226, 0) 65%);
    z-index: 0;
    pointer-events: none;
    transition: transform 0.6s ease, opacity 0.6s ease;
    opacity: 0.9;
}
.rm-articles__grid .articles-item:hover .articles-item__img::before {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 1;
}
.rm-articles__grid .articles-item__img img {
    height: 100%; width: 100%; object-fit: cover; object-position: center;
    position: relative; z-index: 1;
    border-radius: inherit;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.rm-articles__grid .articles-item:hover .articles-item__img img {
    transform: scale(1.05);
}
.rm-articles__grid .articles-item__title {
    display: block;
    padding: 20px 0 0 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #333;
    font-family: 'Montserrat', sans-serif !important;
    text-decoration: none;
    transition: color 0.3s ease;
    flex-grow: 1;
}
.rm-articles__grid .articles-item:hover .articles-item__title {
    color: var(--rm-primary);
}

@media (max-width: 991px) {
    .rm-articles__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ================= Breadcrumbs ================= */
.breadcrumbs {
    margin-bottom: 0 !important;
}
.breadcrumbs ul li {
    font-size: 14px !important;
    color: #555 !important;
}
.breadcrumbs ul li a {
    color: var(--rm-primary) !important;
    font-weight: 500;
    transition: color 0.3s;
}
.breadcrumbs ul li a:hover {
    color: var(--rm-primary-hover) !important;
}
.breadcrumbs ul li div {
    background-color: #aaa !important;
    width: 4px !important;
    height: 4px !important;
    opacity: 0.8 !important;
}

/* ================= Single Post & Archive Page ================= */
.single-page, .articles-page {
    font-family: 'Montserrat', sans-serif !important;
    background: #f8f9fa;
    padding: 24px 0 60px 0;
}
.single-page .section__body.rm-single-card {
    padding: 30px;
    border-radius: var(--rm-radius-lg);
    background: #ffffff;
    box-shadow: var(--rm-shadow-card);
}
.single-page__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center; /* Center vertically against the bounding box */
    gap: 24px !important;
    margin-bottom: 24px !important; /* Force tight gap */
}
.single-page__top picture,
.single-page__top img {
    flex: 0 0 auto;
    width: 220px;
    height: auto;
    max-height: 220px;
    object-fit: cover; /* cover inside the rounded boundary */
    background: transparent;
    border-radius: var(--rm-radius-md); 
    margin: 0 !important;
}
.single-page__top > div {
    flex: 1;
    min-width: 250px;
}
.otryvok-text {
    margin-top: 0 !important;
    margin-bottom: 24px !important;
    padding-bottom: 24px !important;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.otryvok-text * {
    font-size: 18px !important;
    font-weight: 500 !important;
    color: #444 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    font-family: 'Montserrat', sans-serif !important;
}
.otryvok-text p:empty,
.single-page ._text-box > p:empty {
    display: none !important;
}
/* Ensure the first element of the main content doesn't push down */
.single-page > ._text-box > *:first-child,
.single-page .section__body > ._text-box > *:first-child {
    margin-top: 0 !important;
}
.articles-page h1 {
    font-family: 'Montserrat', sans-serif !important;
    color: #333;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}
.articles-page .section__body {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}
.single-page__name {
    font-family: 'Montserrat', sans-serif !important;
    color: #333;
    font-size: 32px !important;
    font-weight: 700 !important;
    margin-bottom: 16px !important;
    line-height: 1.3;
}
.single-page label {
    color: #555 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    margin-bottom: 24px !important;
    display: inline-block;
}
.single-page ._text-box h2,
.single-page ._text-box h3,
.single-page ._text-box h4 {
    font-family: 'Montserrat', sans-serif !important;
    color: #333;
    font-weight: 700;
}
.single-page ._text-box h2 {
    font-size: 32px;
    margin-top: 40px;
    margin-bottom: 24px;
}
.single-page ._text-box h3 {
    font-size: 24px;
    margin-top: 32px;
    margin-bottom: 20px;
}
.single-page ._text-box p,
.single-page ._text-box li {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    font-weight: 400;
    margin-bottom: 16px;
}
.single-page ._text-box strong,
.single-page ._text-box b {
    font-weight: 700;
}
.single-page ._text-box ul {
    list-style: none;
    padding-left: 0;
}
.single-page ._text-box ul li {
    position: relative;
    padding-left: 24px;
    list-style: none !important;
}
.single-page ._text-box ul li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 11px;
    width: 6px;
    height: 6px;
    background-color: var(--rm-primary);
    border-radius: 50%;
}
.single-page ._text-box a {
    color: var(--rm-primary);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .rm-section { padding: 50px 0; }
    .rm-section__title { font-size: 28px; }
    .rm-hero__title { font-size: 32px; }
    .rm-hero__qr-block { flex-direction: column; padding: 24px; text-align: center; gap: 16px; }
    .rm-hero__qr-text { max-width: 100%; }
    .rm-id-list__item { flex-direction: column; align-items: center; text-align: center; }
    .rm-uslugi-grid { grid-template-columns: 1fr; }
    .rm-instruction__grid { grid-template-columns: 1fr; }
    .rm-articles__header { flex-direction: column; align-items: flex-start; gap: 16px; }
    .rm-articles__grid { grid-template-columns: 1fr; }
    .rm-single-card { padding: 24px 16px; border-radius: 16px; }
    .articles-page h1 { font-size: 32px; margin-bottom: 24px; }
    .single-page__name { font-size: 28px !important; }
}
