/*
 | Файл для быстрой интеграции готовых стилей из дизайна.
 | Замените содержимое на стили из папки design/ при необходимости.
 */
:root {
    color-scheme: light;
    --font-base: "Segoe UI", Arial, sans-serif;
    --color-primary: #3f4cd7;
    --color-accent: #28a745;
    --color-text: #1d1d1d;
    --color-muted: #5a6270;
    --color-border: #e4e7f0;
    --color-surface: #ffffff;
    --color-background: #f8f9fb;
    --shadow-soft: 0 6px 20px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 12px 30px rgba(37, 62, 207, 0.08);
    --shadow-cta: 0 8px 24px rgba(60, 75, 232, 0.25);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--color-text);
    background-color: var(--color-background);
    font-family: var(--font-base);
}

a {
    color: inherit;
}

.site-header {
    background-color: var(--color-surface);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.header-top {
    background-color: #f5f5f5;
    border-bottom: 1px solid var(--color-border);
}

.header-top__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    padding: 0.75rem 0;
    font-size: 0.95rem;
}

.header-top__contacts {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}

.header-top__phone {
    font-weight: 600;
    text-decoration: none;
}

.header-top__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    background-color: var(--color-primary);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    /* box-shadow: var(--shadow-cta); */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-top__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(60, 75, 232, 0.3);
}

.header-top__address {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--color-muted);
}

.header-top__address-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    border-radius: 50% 50% 50% 0;
    transform: rotate(45deg);
    background-color: var(--color-primary);
    position: relative;
}

.header-top__address-icon::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background-color: var(--color-surface);
}

.header-top__tools {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.header-top__tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.85rem;
    border: none;
    /* border: 1px solid #dfe3f3; */
    border-radius: 999px;
    background-color: var(--color-surface);
    color: var(--color-primary);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.header-top__tool:hover {
    background-color: var(--color-primary);
    color: #ffffff;
     border-color: var(--color-primary); 
}

.header-top__account {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    /* border: 1px solid #dfe3f3; */
    background-color: var(--color-surface);
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.header-top__account:hover {
    background-color: var(--color-primary);
    color: #ffffff;
}

.header-main {
    padding: 1.5rem 0;
}

.header-main__inner {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.site-logo {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-decoration: none;
    text-transform: uppercase;
    color: #1a2498;
    display: inline-block;
    line-height: 1;
}

.site-logo__img {
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #3d4452;
}

.site-nav a {
    position: relative;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.site-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: transparent;
    transition: background-color 0.2s ease;
}

.site-nav a:hover {
    color: var(--color-primary);
}

.site-nav a.is-active {
    color: var(--color-primary);
}

.site-nav a.is-active::after {
    background-color: var(--color-primary);
}

.header-main__social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    /*background-color: var(--color-primary);*/
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    /* box-shadow: var(--shadow-cta); */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(60, 75, 232, 0.3);
}

.social-link span {
    pointer-events: none;
}

.container {
    width: min(1100px, 92vw);
    margin: 0 auto;
}

.site-content {
    padding: 2rem 0 4rem;
}

/* --- Home banners section --- */
.home-banners {
    padding: 24px 24px 0;
    background: #f5f5f5;
}

.home-banners__image {
    border-radius: 80px;
}

/* --- Hero section --- */
.hero {
    padding: 48px 24px;
    background: #f5f5f5;
}

@media (min-width: 1440px) {
    .hero {
        padding: 64px 24px;
    }
}

.hero__container {
    max-width: 1320px;
    margin: 0 auto;
}

.hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.hero__card {
    position: relative;
    background: url('/storage/asset/bg1.jpg') center/cover no-repeat;
    border-radius: 32px;
    padding: 32px;
    /* box-shadow: 0 24px 60px rgba(17, 24, 39, 0.12); */
    height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    color: #ffffff;
    overflow: hidden;
}

.hero__card::before{
    content:'';
    position:absolute;
    inset:0;
    background:
      linear-gradient(180deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.16) 60%, rgba(255,255,255,.22) 100%);
    opacity:.75;
    pointer-events:none;
}

.hero__card::after{
    content:'';
    position:absolute;
    inset:0;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
    border-radius: inherit;
    pointer-events:none;
}

@media (max-width: 1024px) {
    .hero__card {
        height: auto;
        aspect-ratio: 4/3;
        padding: 24px;
    }
}

.hero__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
}

.hero__title {
    font-size: clamp(16px, 2vw, 24px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0.2px;
    color: #2D55F7;
    margin: 48px 0 0 0;
    align-self: flex-end;
    text-align: left;
    max-width: 55%;
    text-shadow: none;
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    padding: 16px 25px;
    border-radius: 999px;
    background: #0815a8;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 24px rgba(45, 85, 247, 0.35);
    transition: all 0.18s ease;
    align-self: flex-end;
    margin-top: 120px;
    margin-bottom: 0;
}

.hero__cta:hover {
    background: #1e3fd1;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(45, 85, 247, 0.45);
}

.hero__cta:focus {
    outline: 2px solid #2D55F7;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .hero__title {
        font-size: clamp(22px, 3.5vw, 18px) !important;
        margin-top: 16px !important;
        margin-right: 0 !important;
        margin-left: auto !important;
        text-align: right !important;
        align-self: flex-end !important;
        max-width: 75% !important;
    }

    .hero__cta {
        margin-top: 90px !important;
        height: 72px;
        padding: 18px 28px;
        font-size: 14px !important;
    }
}

.hero__features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 28px 36px;
    align-items: start;
}

.hero__feature {
    position: relative;
    background: url('/storage/asset/bg2.jpg') center/cover no-repeat;
    border-radius: 30px;
    padding: 28px 28px 24px;
    /* box-shadow: 0 18px 48px rgba(17, 24, 39, 0.10); */
    border: 1px solid rgba(13, 27, 82, 0.06);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    transition: all 0.18s ease;
    margin-top: 45px;
}

.hero__feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 56px rgba(17, 24, 39, 0.15);
}

.hero__feature::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../img/pattern-hex.svg');
    background-size: 180%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.35;
    pointer-events: none;
    border-radius: 20px;
}

.hero__feature-icon {
    position: absolute;
    top: -26px;
    left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 7px 13px rgba(45, 85, 247, 0.4);
    z-index: 2;
}

.hero__feature-icon img{
    width: auto;
    height: auto;
}

.hero__feature-icon::after{
    content:'';
    position:absolute;
    inset:6px;
    border-radius:50%;
    /* box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); */
}

.hero__feature-title {
    font-size: clamp(16px, 1.6vw, 18px);
    font-weight: 700;
    line-height: 1.25;
    color: #233e64;
    margin-top: 62px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.hero__feature-text {
    font-size: clamp(15px, 1.2vw, 16px);
    line-height: 1.7;
    color: #5B6477;
    position: relative;
    z-index: 1;
}

@media (max-width: 1024px) {
    .hero__layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero__features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero__features { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; gap: 14px; }
    .hero__feature { padding: 18px 16px; min-height: 160px; margin-top: 14px; }
    .hero__feature-icon { width: 64px; height: 64px; }
    .hero__feature-icon img { width: 64px; height: 64px; }
}

@media (max-width: 640px) {
    .hero { padding: 24px 16px; }
    .hero__card { align-items: flex-start; justify-content: flex-start; height: auto; min-height: 240px; padding: 20px; }
    .hero__title { font-size: clamp(15px, 5vw, 18px); text-align: left; margin-top: 8px; align-self: flex-start; max-width: 78%; }
    .hero__cta { height: 46px; padding: 0 24px; margin-top: 12px; margin-bottom: 0; border-radius: 9999px; align-self: flex-end; }
    .hero__features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .hero__feature { min-height: 150px; }
}

/* Generic buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    background-color: var(--color-primary);
    color: #ffffff;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-accent);
}

.hero {
    padding: 4rem 0;
    /* background: linear-gradient(135deg, #e3f2fd, #e8f5e9); */
}

.hero h1 {
    color: #020d7d;
    margin-top: 60px;
    font-size: clamp(2.5rem, 4vw, 2.2rem);
    font-weight: bold;
}

.doctors-grid .grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    padding-bottom: 3rem;
}

.doctor-card {
    background: var(--color-surface);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.doctor-photo {
    width: 100%;
    height: 160px;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #d1eaff, #f2f4f9);
}

.services-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.services-list li {
    background: var(--color-surface);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-soft);
}

.pricing-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-surface);
    border-radius: 12px;
    overflow: hidden;
}

.pricing-table th,
.pricing-table td {
    padding: 1rem;
    border-bottom: 1px solid #eef1f5;
    text-align: left;
}

.contacts-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    padding-bottom: 3rem;
}
.contacts-map{
    padding-bottom: 95px;
}

.contacts-map iframe {
    width: 100%;
    min-height: 450px;
    border: 0;
    border-radius: 12px;
}

/* Canvas for Yandex JS map */
.contacts-map #yandex-map {
    width: 100%;
    min-height: 320px;
    border: 0;
    border-radius: 12px;
}

.site-footer {
    background-color: #1f1f21;
    color: #f5f5f5;
    padding: 3.5rem 0 2.5rem;
    width: 100%;
}

.site-footer .container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-footer a {
    color: #f5f5f5;
}

.site-footer a:hover {
    color: #dde0ff;
}

.footer-top {
    margin-bottom: 2.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem 2.5rem;
    align-items: flex-start;
}

.footer-logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: #ffffff;
    margin: 0;
    display: inline-block;
    line-height: 1;
}

.footer-logo__img {
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-heading {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.footer-value {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

.footer-meta {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.9rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.footer-social__link {
    /* width: 40px;
    height: 40px; */
    border-radius: 50%;
    /* background-color: #3c4be8; */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    /* box-shadow: 0 12px 28px rgba(60, 75, 232, 0.25); */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-social__link img {
    /* width: 24px;
    height: 24px; */
    object-fit: contain;
}

.footer-social__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(60, 75, 232, 0.32);
}

.footer-bottom {
    margin-top: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

@media (max-width: 960px) {
    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: left;
    }

    .footer-social {
        justify-content: flex-start;
    }

    .footer-bottom {
        justify-content: flex-start;
        text-align: left;
    }
}.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 960px) {
    .header-main__inner {
        justify-content: center;
    }

    .header-main__social {
        margin-left: 0;
    }
}

@media (max-width: 720px) {
    .header-top__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-top__tools {
        justify-content: flex-start;
    }

    .site-nav {
        justify-content: center;
    }
}


@media (max-width: 560px) {
    .header-main {
        padding: 1rem 0;
    }

    .site-logo {
        font-size: 1.4rem;
    }

    .site-logo__img {
        max-height: 45px;
    }

    .header-main__social {
        gap: 0.5rem;
    }

    .social-link {
        width: 34px;
        height: 34px;
    }
}

/* Directions section */
.directions {
    padding: 64px 0 60px;
    background: url('/storage/asset/bg3.jpg') center/cover no-repeat;
}

.directions__panel {
    position: relative;
    border-radius: 48px;
    padding: 56px 0px;
    /* background: linear-gradient(135deg, #1c35b8 0%, #2a49ff 100%); */
    color: #ffffff;
    overflow: hidden;
}

.directions__panel::after {
    content: '';
    position: absolute;
    inset: 0;
    /* background: url('../img/pattern-hex.svg') center/140% no-repeat; */
    opacity: 0.18;
    pointer-events: none;
}

/* subtle diagonal grid like in design */
.directions__panel::before{
    content:'';
    position:absolute;
    inset:0;
    background:
      repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 2px, transparent 2px 38px),
      repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 2px, transparent 2px 38px);
    mix-blend-mode: overlay;
    pointer-events:none;
}

.directions__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    gap: 36px 48px;
    align-items: start;
    padding: 0 24px;
}

.directions__heading {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.directions__heading > .direction-card{
    margin-top: 30px;
}

.direction-card__body{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.direction-card__link{margin-top:0}

.directions__title {
    margin: 0;
    font-size: clamp(1.8rem, 2.6vw, 2.3rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.directions__subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
    font-size: 1.02rem;
}

.directions__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 48px;
}

.direction-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 10px 20px;
    border-radius: 22px;
    margin-left: 20px;
    background: url('/storage/asset/bg4.jpg') center/cover no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.4);
    /* box-shadow: 0 28px 56px rgba(10, 28, 110, 0.28), 0 8px 16px rgba(10, 28, 110, 0.1); */
    backdrop-filter: blur(2px);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    position: relative;
    overflow: visible;
    max-width: 95%;
}

.direction-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 28px 56px rgba(18, 36, 128, 0.28);
}

.direction-card__media {
    flex: 0 0 140px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(150deg, #f6f8ff 0%, #ffffff 75%);
    border: 4px solid rgba(221, 229, 255, 0.95);
    box-shadow: 0 22px 44px rgba(32, 62, 180, 0.28);
    overflow: hidden;
    margin-left: -60px;
    margin-top: -20px;
    margin-bottom: -20px;
    position: relative;
    z-index: 1;
}

.direction-card__media::after{
    content:'';
    position:absolute;
    inset:8px;
    border-radius:50%;
    /* box-shadow: inset 0 0 0 2px rgba(58,94,255,.45); */
    pointer-events:none;
}

.direction-card__media img {
    width: 110%;
    height: 110%;
    object-fit: cover;
}

.direction-card__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
}

.direction-card__title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #2b2b2b;
}

.direction-card__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    padding: 0 15px;
    margin-top: 6px;
    border-radius: 9999px;
    /* background: linear-gradient(135deg, #4a6dff 0%, #2a49ff 100%); */
    background-color: #3f4cd7;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    letter-spacing: 0.02em;
    /* box-shadow: 0 14px 28px rgba(55, 99, 255, 0.25); */
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.direction-card__link:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(55, 99, 255, 0.28);
}

.direction-card__link:active {
    transform: translateY(0);
    box-shadow: 0 10px 18px rgba(55, 99, 255, 0.22);
}

.direction-card__link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(55, 99, 255, 0.25);
}

@media (max-width: 1279px) {
    .directions__panel {
        padding: 56px 0px;
    }
}

@media (max-width: 1100px) {
    .directions__inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 24px;
    }

    .directions__heading {
        max-width: 520px;
    }
}

@media (max-width: 1023px) {
    .directions__list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .direction-card {
        flex-wrap: wrap;
        padding: 18px 20px;
    }

    .direction-card__body {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .directions {
        padding: 56px 0 48px;
    }

    .directions__panel {
        padding: 44px 28px;
        overflow: visible !important;
    }

    .directions__list {
        overflow: visible !important;
    }

    .directions__inner {
        overflow: visible !important;
    }

    .directions__heading {
        overflow: visible !important;
    }

    /* Keep cards horizontal on mobile like in design */
    .direction-card {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center;
        gap: 20px;
        padding: 0 20px 0 25px;
        margin-left: 0;
        overflow: visible !important;
        height: auto;
    }

    .direction-card__body {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        flex: 1 1 auto;
        width: auto !important;
        padding-right: 20px;
        padding-top: 15px;
        padding-bottom: 15px;
        justify-content: center;
        min-height: 90px;
    }

    .direction-card__media {
        flex: 0 0 140px;
        width: 140px;
        height: 140px;
        min-width: 140px;
        min-height: 140px;
        margin-left: -25px;
        margin-top: -25px;
        margin-bottom: -25px;
        margin-right: 0;
        align-self: center;
        border-radius: 50% !important;
        box-shadow: 0 22px 44px rgba(32, 62, 180, 0.28);
        flex-shrink: 0;
        position: relative;
        z-index: 2;
    }

    .direction-card__media img {
        width: 110%;
        height: 110%;
        object-fit: cover;
    }
    .direction-card__title {
        font-size: 1.1rem;
    }   

    .direction-card__link {
        height: 30px;
        padding: 0 25px;
        font-size: 0.95rem;
        justify-content: flex-start;
        width: auto;
    }
}

@media (max-width: 520px) {
    .direction-card {
        gap: 16px;
        padding: 0 16px 0 20px;
    }

    .direction-card__body {
        padding-top: 10px;
        padding-bottom: 10px;
        min-height: 80px;
    }

    .direction-card__media {
        flex: 0 0 120px;
        width: 120px;
        height: 120px;
        min-width: 120px;
        min-height: 120px;
        margin-left: -20px;
        margin-top: -20px;
        margin-bottom: -20px;
        border-radius: 50% !important;
        flex-shrink: 0;
        position: relative;
        z-index: 2;
    }

    .direction-card__body {
        padding-right: 16px;
    }

    .direction-card__link {
        height: 27px;
        padding: 0 20px;
        font-size: 0.8rem;
        justify-content: flex-start;
        width: auto;
    }
}

/* ===== Responsive: HERO and DIRECTIONS mobile adaptation ===== */
@media (max-width: 1024px) {
    /* HERO */
    .hero__layout { grid-template-columns: 1fr; gap: 28px; }
    .hero__card { height: auto; padding: 24px; }
    .hero__title { max-width: 100%; margin-top: 24px; font-size: clamp(16px, 3.6vw, 22px); }
    .hero__cta { height: 52px; padding: 14px 24px; margin-top: 24px; }

    /* DIRECTIONS */
    .directions__panel { padding: 44px 16px; }
    .directions__inner { grid-template-columns: 1fr; gap: 24px; padding: 0 8px; }
    .directions__list { grid-template-columns: 1fr; gap: 20px; }
    .direction-card { max-width: 100%; margin-left: 0; padding: 14px 18px; }
    .direction-card__media { width: 120px; height: 120px; flex: 0 0 120px; margin-left: -30px; }
}

@media (max-width: 768px) {
    /* HERO */
    .hero { padding: 24px 16px; }
    .hero__title { font-size: clamp(16px, 5vw, 20px); margin-top: 20px; }
    .hero__cta { height: 46px; padding: 12px 20px; margin-top: 20px; }

    /* DIRECTIONS */
    .directions { padding: 40px 0 36px; }
    .directions__panel { padding: 12px 0px 32px 0px; }
    .direction-card { gap: 16px; padding: 12px 16px; }
    .direction-card__media { width: 110px; height: 110px; flex: 0 0 110px; margin-left: -24px; }
}

@media (max-width: 560px) {
    /* HERO */
    .hero__title { font-size: clamp(15px, 6vw, 18px); }
    .hero__cta { height: 42px; padding: 10px 18px; }

    /* DIRECTIONS */
    .directions__title { font-size: clamp(1.4rem, 6vw, 1.8rem); }
    .direction-card { padding: 0px 14px; border-radius: 100px 50px 50px 100px; margin-top: 15px;}
    .direction-card__media { width: 96px; height: 96px; flex: 0 0 96px; margin-left: -16px; margin-top: -12px; margin-bottom: -12px; }
}

/* Contacts page */
.contacts-hero {
    padding: 3rem 0 2rem;
    background: linear-gradient(115deg, rgba(60, 75, 232, 0.08), rgba(88, 102, 255, 0.05));
}

.contacts-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 480px) minmax(0, 220px);
    gap: 2rem;
    align-items: center;
}

.contacts-hero__title {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 3vw, 2.6рем);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1a2498;
}

.contacts-hero__subtitle {
    margin: 0;
    color: #3a4563;
    line-height: 1.6;
}

.contacts-hero__media {
    justify-self: center;
}

.contacts-hero__media img {
    max-width: 240px;
    width: 100%;
    height: auto;
}

.contacts-info {
    padding: 3.5rem 0;
}

.contacts-info__grid {
    display: grid;
    grid-template-columns: 1.15fr 1.85fr; /* чуть ближе к равным колонкам */
    gap: 2.5rem;
    align-items: start;
}

.contacts-card {
    background-color: #ffffff;
    border-radius: 26px;
    padding: 2.8rem 2.2rem 4.2rem;
    /* box-shadow: 0 16px 34px rgba(37, 62, 207, 0.1); */
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.contacts-card__title {
    margin: 0;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-transform: none;
    color: #3f4cd7; /* сделать как на скрине */
    margin-top: 15px;
}

.contacts-card__value {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1f2b54;
}

.contacts-card__value a {
    color: inherit;
    text-decoration: none;
}

.contacts-card__social {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
}

.contacts-gallery {
    display: grid;
    gap: 1.6rem;
}

.contacts-gallery__item {
    border-radius: 35px;
    overflow: hidden;
    /* box-shadow: 0 18px 36px rgba(37, 62, 207, 0.12); */
}

.contacts-gallery__item img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 960px) {
    .contacts-hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contacts-info__grid {
        grid-template-columns: 1fr;
    }

    .contacts-gallery__item {
        justify-self: center;
        max-width: 520px;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .contacts-card {
        order: 2;
        width: 100%;
    }

    .contacts-gallery {
        order: 1;
    }
    .contacts-info{
        padding-top: 0px;
    }
}
/* Header visual refresh */
.container {
    max-width: 1320px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }
}

/* Full-width directions section */
.directions .container {
    max-width: 1320px;
}

@media (min-width: 1440px) {
    .directions .container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

.site-header {
    background-color: transparent;
    box-shadow: none;
}

.header-top {
    background-color: #f5f5f5;
    border-bottom: 1px solid #edeff6;
    color: rgba(43, 47, 54, 0.8);
}

.header-top__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    flex-wrap: wrap;
    min-height: 48px;
    padding: 0;
    font-size: 14px;
    line-height: 20px;
}

.header-top__contacts {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 24px;
}

.header-top__contacts > * {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    padding: 4px 8px;
    border-radius: 9999px;
}

.header-top__phone {
    font-size: 16px;
    line-height: 22px;
    font-weight: 600;
    color: #132b8a;
}

.header-top__phone:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(55, 99, 255, 0.22);
}

.header-top__cta {
    height: 32px;
    padding: 0 22px;
    border-radius: 9999px;
    /* background: linear-gradient(135deg, #4a6dff 0%, #2a49ff 100%); */
    /* box-shadow: 0 12px 24px rgba(58, 94, 255, 0.24); */
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    gap: 10px;
    cursor: pointer;
    justify-content: center;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.header-top__cta:hover {
    box-shadow: 0 16px 32px rgba(58, 94, 255, 0.28);
    transform: translateY(-1px);
}

.header-top__cta:active {
    /* box-shadow: 0 8px 18px rgba(58, 94, 255, 0.2); */
    transform: translateY(0);
}

.header-top__address {
    color: rgba(43, 47, 54, 0.8);
    font-weight: 500;
    line-height: 20px;
}

.header-top__address-text {
    white-space: nowrap;
    font-size: 16px;

}

.header-top__tools {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-left: auto;
}

.header-top__tool,
.header-top__account {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 36px;
    padding: 0 16px;
    border-radius: 9999px;
    /* border: 1px solid rgba(210, 218, 243, 0.9); */
    background-color: #ffffff;
    color: #2b2f36;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    /* box-shadow: 0 6px 20px rgba(60, 75, 232, 0.08); */
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}

.header-top__tool--contrast {
    letter-spacing: 0;
    font-weight: 600;
    padding: 0 9px;
}

.header-top__tool--search {
    padding: 0 9px;
}

.header-search-wrap {
    position: relative;
}

.header-search-panel {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    width: min(400px, calc(100vw - 24px));
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    padding: 12px;
    z-index: 100;
}

.header-search-panel[hidden] {
    display: none !important;
}

.header-search-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
}

.header-search-input:focus {
    border-color: #132b8a;
    box-shadow: 0 0 0 2px rgba(19, 43, 138, 0.2);
}

.header-search-results {
    max-height: 280px;
    overflow-y: auto;
    margin-top: 8px;
}

.header-search-results:empty {
    display: none;
}

.header-search-result-item {
    display: block;
    width: 100%;
    padding: 10px 12px;
    text-align: left;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #333;
    font-size: 0.9375rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
}

.header-search-result-item:hover,
.header-search-result-item:focus {
    background: #f0f2fa;
    color: #132b8a;
}

.header-search-result-item__name {
    font-weight: 500;
    display: block;
}

.header-search-result-item__meta {
    font-size: 0.8125rem;
    color: #666;
    margin-top: 2px;
}

.header-search-hint {
    font-size: 0.8125rem;
    color: #888;
    margin: 8px 0 0;
    padding: 0;
}

.header-search-results:not(:empty) + .header-search-hint {
    display: none;
}

.header-search-panel__bar {
    display: none;
}

.header-search-panel__body {
    /* desktop: no wrapper change */
}

@media (max-width: 768px) {
    body.header-search-open {
        overflow: hidden;
    }

    .header-search-wrap {
        position: static;
    }

    .header-search-panel {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        margin: 0;
        border-radius: 0;
        padding: 0;
        z-index: 9999;
        background: #fff;
        display: flex;
        flex-direction: column;
        max-height: 100vh;
        overflow: hidden;
    }

    .header-search-panel[hidden] {
        display: none !important;
    }

    .header-search-panel__bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-shrink: 0;
        padding: 12px 16px;
        padding-top: max(12px, env(safe-area-inset-top));
        border-bottom: 1px solid #eee;
        background: #fff;
    }

    .header-search-panel__title {
        font-size: 1.125rem;
        font-weight: 600;
        color: #132b8a;
    }

    .header-search-panel__close {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: none;
        border-radius: 8px;
        background: transparent;
        color: #333;
        font-size: 1.75rem;
        line-height: 1;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .header-search-panel__close:hover,
    .header-search-panel__close:focus {
        background: #f0f2fa;
        color: #132b8a;
    }

    .header-search-panel__body {
        flex: 1;
        overflow-y: auto;
        padding: 16px;
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }

    .header-search-input {
        padding: 14px 16px;
        font-size: 16px;
        min-height: 48px;
    }

    .header-search-results {
        max-height: none;
        margin-top: 12px;
    }

    .header-search-result-item {
        padding: 14px 16px;
        min-height: 48px;
        font-size: 1rem;
    }

    .header-search-result-item__meta {
        font-size: 0.875rem;
        margin-top: 4px;
    }

    .header-search-hint {
        margin-top: 12px;
        font-size: 0.875rem;
    }
}

.header-top__tool span:last-child {
    font-weight: 600;
}

.header-top__account {
    color: #132b8a;
    font-weight: 600;
    padding: 0 18px;
}

.header-top__tool:hover,
.header-top__account:hover {
    /* border-color: #cfd7f1; */
    background-color: #ffffff;
    box-shadow: 0 10px 24px rgba(58, 94, 255, 0.14);
    transform: translateY(-1px);
}

.header-top__tool:active,
.header-top__account:active {
    /* box-shadow: 0 4px 10px rgba(58, 94, 255, 0.12); */
    transform: translateY(0);
}

.header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
   
    /* color: #2a49ff; */
    flex-shrink: 0;
}
.header-icon--calendar{
    margin-top: -2px;
}

.header-icon svg {
    width: 100%;
    height: 100%;
}

.header-top__tool .header-icon {
    width: 18px;
    height: 18px;
}

.header-main {
    background-color: #ffffff;
}

.header-main__inner {
    display: flex;
    align-items: center;
    min-height: 70px;
    gap: 32px;
    padding: 0 24px;
}

.site-logo {
    color: #132b8a;
    letter-spacing: 0.08em;
}

.site-nav {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    gap: 30px;
    margin-left: 48px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 15px;
    line-height: 24px;
    color: rgba(43, 47, 54, 0.9);
}

.site-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 4px 0;
    color: inherit;
    text-decoration: none;
    transition: color 0.18s ease;
}

.site-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background-color: #3763ff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
    transform: scaleX(1);
}

.site-nav a.is-active {
    color: inherit;
}

.header-main__social {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: 32px;
}

.social-link {
    width:40px;
    height:40px;
    border-radius:50%;
    /* background:linear-gradient(135deg,#4a6dff 0%,#2a49ff 100%); */
    color:#fff;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    /* box-shadow:0 10px 24px rgba(58,94,255,.26); */
    transition:transform .18s ease,box-shadow .18s ease;
    cursor:pointer
}

.social-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(58, 94, 255, 0.3);
}

.social-link:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(58, 94, 255, 0.22);
}

.header-top__cta:focus-visible,
.header-top__tool:focus-visible,
.header-top__account:focus-visible,
.site-nav a:focus-visible,
.social-link:focus-visible,
.header-top__phone:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(55, 99, 255, 0.22);
}

@media (max-width: 1400px) {
    .site-nav {
        margin-left: 40px;
    }
}

@media (max-width: 1279px) {
    .site-nav {
        gap: 24px;
        margin-left: 36px;
    }

    .social-link {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 1100px) {
    .header-main__social {
        margin-left: 24px;
    }
}

@media (max-width: 1023px) {
    .site-nav {
        gap: 20px;
        letter-spacing: 0.03em;
    }

    .header-top__address-text {
        white-space: normal;
    }
}

@media (max-width: 960px) {
    .header-main__inner {
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 24px;
    }

    .header-main__social {
        margin-left: 0;
    }
}

@media (max-width: 900px) {
    .header-top__inner {
        row-gap: 10px;
    }

    .header-top__tools {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 720px) {
    .header-main__inner {
        gap: 20px;
    }

    .header-top__tools {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .site-nav {
        margin-left: 0;
    }
}
.header-top__tool:hover,
.header-top__tool:active,
.header-top__account:hover,
.header-top__account:active,
.header-top__tool:focus-visible,
.header-top__account:focus-visible {
    background-color: #ffffff;
    color: inherit;
}






.header-main {
    padding: 0;
}
/* Advantages section */
.advantages {
    padding: 72px 0;
}

.advantages__panel {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px 0px;
    border-radius: 28px;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
}

.advantages__panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/pattern-hex.svg') center/180% no-repeat;
    opacity: 0.16;
    pointer-events: none;
}

.advantages__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.advantages__title {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #132b8a;
}

.advantages__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 15px 0px;
}

.advantages__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 1rem;
    font-weight: bold;
    line-height: 1;
    color: rgba(43, 47, 54, 0.9);
}
.advantages__text{
    margin-top: 5px;
}

.advantages__marker {
    margin-top: 0px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: url('/storage/asset/pic11.png') center/cover no-repeat;
    flex-shrink: 0;
    display: inline-block;
}

.advantages__media {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.advantages__media {
    /* background:#fff url('../img/pattern-hex.svg') center/120% no-repeat; */
    border-radius:30px;
    box-shadow:0 18px 40px rgba(19,43,138,.12);
    /* min-height:300px; */
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden
}
.advantages__media img {
    border-radius: 22px;
    width:auto !important;
    height:auto;
    display:block;
    opacity:.85
}

/* white card behind bullets like in screenshot */
/* .advantages__content::before - commented out */

.advantages__box {
    padding: 38px 28px;
    background: url('/storage/asset/pic12.jpg') center/cover no-repeat;
    border-radius: 22px;
    position: relative;
    margin-top: 40px;
}

/* About highlight */
.about-highlight {
    padding: 22px 0 52px 0;
}

.about-highlight__panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
    gap: 48px 80px;
    padding: 56px 60px;
    border-radius: 44px;
    background: url('/storage/asset/bg5.jpg') center/cover no-repeat;
    box-shadow: 0 10px 24px rgba(19, 43, 138, 0.1);
    overflow: hidden;
}

.about-highlight__panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/pattern-hex.svg') right 20% top/180% no-repeat;
    opacity: 0.18;
    pointer-events: none;
}

.about-highlight__media,
.about-highlight__content {
    position: relative;
    z-index: 1;
    margin-left: 0px !important;
    margin-right: 0px;
}

.about-highlight__image-frame {
    /* padding: 20px; */
    border-radius: 40px;
    width: 100%;
    max-width: 480px;
    /* max-width: 100%; */
    /* background: linear-gradient(145deg, rgba(55, 99, 255, 0.18), rgba(19, 43, 138, 0.05)); */
    box-shadow: 0 22px 48px rgba(19, 43, 138, 0.12);
}

.about-highlight__image-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 28px;
}

/* About extra section */
.about-extra { padding: 10px 0 42px; }

.about-extra__panel {
    position: relative;
    display: grid;
    grid-template-columns: 1.6fr 1fr; /* текст > 50%, картинка < 50% */
    gap: 48px 10px;
    padding: 0;
    align-items: center;
}

.about-extra__content { display: flex; flex-direction: column; gap: 18px; }
.about-extra__title { margin: 0; font-size: clamp(1.6rem, 2.4vw, 2.1rem); letter-spacing: .06em; text-transform: uppercase; color: #132b8a; }

.about-extra__card {
    padding: 52px 58px;
    border-radius: 30px;
    background: url('/storage/asset/pic15.jpg') center/cover no-repeat;
    /* box-shadow: 0 18px 40px rgba(19,43,138,.12); */
    color: #ffffff;
}

.about-extra__text { margin: 0; font-weight: 700; line-height: 1.6; text-shadow: 0 1px 2px rgba(0,0,0,.2); }

.about-extra__media { 
    position: relative; 
    border-radius: 50px; 
    overflow: hidden; 
    margin-right: 0px;
    /* box-shadow: 0 18px 40px rgba(19,43,138,.12);  */
}
.about-extra__media img { 
    display: block; 
    width: 100%;
    height: auto; 
    border-radius: 30px; 
}

@media (max-width: 1024px) {
    .about-extra__panel { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 640px) {
    .about-extra { padding: 0px 0 56px; }
    .about-extra__card { border-radius: 24px; padding: 25px 25px; }

    .about-extra__panel {
        grid-template-columns: 1fr;
    }

    .about-extra__media {
        order: -1;
        border-radius: 24px;
        margin-left: 0px;
    }

    .about-extra__content {
        order: 1;
    }

}

.about-highlight__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}

.about-highlight__title {
    margin: 0;
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #132b8a;
}

.about-highlight__text {
    margin: 0;
    font-size: 1.02rem;
    font-weight: bold;
    line-height: 1.7;
    color: rgba(43, 47, 54, 0.8);
}

/* Testimonials */
.testimonials {
    padding: 82px 0 76px;
    background: url('/storage/asset/bg3.jpg') center/cover no-repeat;
}

.testimonials__panel {
    position: relative;
    border-radius: 48px;
    padding: 56px 48px 64px;
    /* background: linear-gradient(150deg, #132b8a 0%, #3763ff 100%); */
    color: #ffffff;
    overflow: hidden;
    /* box-shadow: 0 34px 70px rgba(10, 28, 110, 0.35); */
    display: grid;
    grid-template-columns: minmax(0, 570px) minmax(0, 1fr);
    gap: 28px 55px;
}

.testimonials__panel::after {
    content: '';
    position: absolute;
    inset: 0;
    /* background: url('../img/pattern-hex.svg') center/140% no-repeat; */
    opacity: 0.18;
    pointer-events: none;
}

.testimonials__header,
.testimonials__grid,
.testimonials__actions {
    position: relative;
    z-index: 1;
}

.testimonials__header {max-width: 520px;display:flex;flex-direction:column;gap:18px;grid-column:1}

.testimonials__title {
    margin: 0;
    font-size: clamp(2rem, 3.2vw, 2.6rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.testimonials__subtitle {
    margin: 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.02rem;
}

.testimonials__grid {
    margin-top: 0;
    display: contents; /* позволит карточкам участвовать в родительской сетке */
}

/* Первая карточка в первой строке справа от заголовка */
.testimonials__grid > .testimonial-card:first-child { grid-column: 2; }
.testimonials__grid > .testimonial-card.testimonial-card--wide:first-child { grid-column: 2; grid-column-end: auto; }

.testimonial-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-auto-rows: min-content; /* фиксируем компактные строки */
    gap: 12px; /* меньше вертикальный зазор */
    padding: 18px 24px; /* компактнее карточка */
    border-radius: 22px;
    background-color: #ffffff;
    color: #2b2f36;
    box-shadow: 0 18px 40px rgba(19, 43, 138, 0.18);
    position: relative;
    overflow: visible;
    margin-bottom: 30px;
}

.testimonial-card--wide {grid-column: span 2}

.testimonial-card__avatar {
    width: 116px;
    height: 116px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
    align-self: start;
    margin-top: -50px; /* выезжает над карточкой чуть сильнее */
}

.testimonial-card__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-card__body {
    display: contents; /* дети становятся грид-элементами карточки */
}

.testimonial-card__name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #000000;
    align-self: start;
    grid-column: 2;
    grid-row: 1; /* первая строка правой колонки */
}

.testimonial-card__source {
    margin: -50px 0 0; /* ближе к имени */
    font-size: 0.8rem;
    color: rgba(43, 47, 54, 0.6);
    align-self: start;
    grid-column: 2;
    grid-row: 2; /* сразу под именем */
}

.testimonial-card__quote {
    margin: 6px 0 0;
    line-height: 1.6;
    color: rgba(43, 47, 54, 0.85);
    font-style: italic;
    font-weight: 700; /* жирный текст */
    grid-column: 1 / -1; /* во всю ширину карточки */
    grid-row: 3; /* третья строка, под именем и источником */
    padding-bottom: 20px;
}

.testimonials__actions {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    grid-column: 1 / -1; /* по центру блока, на всю ширину сетки */
}

.testimonials__cta {cursor:pointer;display:inline-flex;align-items:center;justify-content:center;height:76px;padding:0 48px;border-radius:9999px;background:#3f4cd7;color:#fff;font-weight:600;text-decoration:none;letter-spacing:.02em;box-shadow:0 16px 32px rgba(55,99,255,.22);transition:transform .18s ease,box-shadow .18s ease}

.testimonials__cta:hover {transform: translateY(-1px); box-shadow: 0 18px 36px rgba(63, 76, 215, 0.32);}

.testimonials__cta:active {transform: translateY(0); box-shadow: 0 12px 22px rgba(63, 76, 215, 0.24);} 

/* Solution CTA */
.solution-cta {
    padding: 76px 0 88px;
}

.solution-cta__panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 680px) minmax(0, 0);
    gap: 48px;
    padding: 56px 64px 150px;
    border-radius: 48px;
    background: url('/storage/asset/bg7.jpg') center/cover no-repeat;
    /* box-shadow: 0 30px 64px rgba(19, 43, 138, 0.12); */
    overflow: hidden;
}

.solution-cta__panel::before {
    content: '';
    position: absolute;
    inset: 0;
    /* background: linear-gradient(135deg, rgba(58, 94, 255, 0.22), rgba(58, 94, 255, 0)); */
    opacity: 0.45;
    pointer-events: none;
}

.solution-cta__content,
.solution-cta__media {
    position: relative;
    z-index: 1;
}

.solution-cta__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}

.solution-cta__title {
    margin: 0;
    font-size: clamp(2rem, 3.2vw, 2.6rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #132b8a;
}

.solution-cta__text {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.7;
    color: rgba(43, 47, 54, 0.8);
    font-weight: bold;
}

.solution-cta__button {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    height: 60px;
    padding: 0 37px;
    border-radius: 9999px;
    background: #3f4cd7;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.02em;
    margin-top: 30px;
    /* box-shadow: 0 16px 32px rgba(55, 99, 255, 0.28); */
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.solution-cta__button:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 38px rgba(55, 99, 255, 0.32);
}

.solution-cta__button:active {
    transform: translateY(0);
    box-shadow: 0 12px 24px rgba(55, 99, 255, 0.24);
}

.solution-cta__media {
    display: flex;
    justify-content: flex-end;
}

.solution-cta__media img {
    max-width: 320px;
    width: 100%;
    height: auto;
    display: block;
}

/* Focus states reuse */
.testimonials__cta:focus-visible,
.solution-cta__button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(55, 99, 255, 0.25);
}

@media (max-width: 1200px) {
    .advantages__panel,
    .about-highlight__panel,
    .solution-cta__panel {
        grid-template-columns: 1fr;
        padding: 44px 36px;
    }

    .testimonials__grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card--wide {
        grid-column: auto;
    }
}

@media (max-width: 900px) {
    .advantages,
    .about-highlight,
    .testimonials,
    .solution-cta {
        padding: 56px 0;
    }

    .testimonials__panel {
        padding: 56px 40px;
    }

    .testimonials__grid {
        gap: 24px;
    }
}

@media (max-width: 640px) {
    /* Collapse testimonials grid to one column to avoid overflow */
    .testimonials__panel { grid-template-columns: 1fr; gap: 20px; }
    .testimonials__grid > .testimonial-card:first-child,
    .testimonials__grid > .testimonial-card.testimonial-card--wide:first-child { grid-column: auto; }

    .testimonials__title {
        font-size: clamp(1.5rem, 4vw, 2rem) !important;
    }

    .testimonials__title br {
        display: none;
    }

    .testimonials__subtitle {
        font-size: 0.9rem;
    }

    .advantages__panel,
    .about-highlight__panel,
    .solution-cta__panel {
        padding: 36px 15px;
        border-radius: 32px;
    }

    .solution-cta__title {
        font-size: clamp(1.5rem, 4vw, 2rem) !important;
    }

    .about-highlight__panel {
        box-shadow: none !important;
        padding: 36px 16px;
    }

    .about-highlight__title {
        font-size: clamp(1.4rem, 4vw, 1.8rem) !important;
    }

    .about-highlight__image-frame {
        box-shadow: 0 18px 40px rgba(19, 43, 138, 0.12) !important;
        width: calc(100% - 32px);
        max-width: calc(100% - 32px);
        margin-left: 16px;
        margin-right: 16px;
    }

    .about-highlight__image-frame img {
        width: 100%;
        max-width: 100%;
    }

    .about-highlight__content {
        padding: 0 16px;
    }

    .about-highlight__text {
        font-size: 0.875rem;
    }

    .advantages__panel {
        gap: 36px;
        grid-template-columns: 1fr;
        padding-left: 0;
        padding-right: 0;
        padding-top: 0;
        border-radius: 0 !important;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        width: 100vw;
        max-width: 100vw;
    }

    .advantages .container {
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
        width: 100%;
    }

    .advantages__box {
        margin-top: 0;
        padding-left: 16px;
        padding-right: 16px;
    }

    .advantages__content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .advantages__media {
        order: -1;
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        box-shadow: none !important;
        border-radius: 0;
        padding-left: 18px;
        padding-right: 18px;
        box-sizing: border-box;
    }

    .advantages__media img {
        width: calc(100vw - 36px) !important;
        max-width: calc(100vw - 36px) !important;
        height: auto;
        min-height: 200px;
        object-fit: cover;
        border-radius: 0;
        display: block;
        margin: 0 auto;
    }

    .advantages__item {
        font-size: 0.875rem;
    }

    .advantages__marker {
        width: 20px;
        height: 20px;
    }

    .advantages__content {
        order: 1;
    }

    .solution-cta__button {
        cursor: pointer;
        align-self: flex-start;
        width: auto;
    }

    .testimonials__panel {
        padding: 32px 12px;
    }
    /* .testimonial-card__source{
        margin-top: -30px;
    } */


    .about-highlight{
        padding-top: 0;
    }
    /* Testimonials – mobile layout to match design */
    .testimonial-card { grid-template-columns: 88px minmax(0,1fr); gap: 8px; padding: 12px 12px 12px 18px; border-radius: 20px; }
    .testimonial-card__avatar { width: 88px; height: 88px; align-self: start; margin: -22px 0 0 0; }
    .testimonial-card__name { grid-column: 2; grid-row: 1; margin: 2px 0 0; font-size: 1rem; }
    .testimonial-card__source { grid-column: 2; grid-row: 2; margin: -38px 0 0; font-size: .82rem; color: rgba(43,47,54,.6); }
    .testimonial-card__quote { grid-column: 1 / -1; grid-row: 3; margin: 10px 0 0; padding-bottom: 0; }
}

@media (max-width: 520px) {
    .advantages__panel,
    .about-highlight__panel {
        gap: 28px;
    }

    .advantages__media img {
        max-width: 100vw !important;
        width: 100vw !important;
    }

    .solution-cta__media {
        justify-content: center;
    }
}

/* Services page */
.breadcrumbs {
    padding: 18px 0;
    font-size: 0.95rem;
    color: rgba(43, 47, 54, 0.6);
}

/* --- Header top fine-tuning (match design) --- */
.header-top__inner{
    min-height:50px;
    padding:6px 24px;
}
.header-top__tools{gap:10px}
.header-top__cta{font-weight:700;padding:0 20px 0 18px}
.header-top__cta .header-icon{backdrop-filter:blur(2px);color:#fff}

.breadcrumbs a {
    color: rgba(43, 47, 54, 0.75);
    text-decoration: none;
    transition: color 0.18s ease;
}

.breadcrumbs a:hover {
    color: #132b8a;
}

/* current page in breadcrumbs: blue like on screenshot */
.breadcrumbs__current {
    color: #3763ff;
    font-weight: 600;
}

/* nicer chevron separator spacing */
.breadcrumbs__sep {
    margin: 0 6px;
    color: rgba(43, 47, 54, 0.45);
}

.services-hero {
    padding: 20px 0 48px;
}

.services-hero__panel {
    position: relative;
    padding: 48px 56px;
    border-radius: 44px;
    background: url('/storage/asset/pic30.jpg') center/cover no-repeat;
    /* box-shadow: 0 28px 60px rgba(19, 43, 138, 0.08); */
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 48px;
}

.services-hero__panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/pattern-hex.svg') center/160% no-repeat;
    opacity: 0.16;
    pointer-events: none;
}

.services-hero__content {
    position: relative;
    z-index: 1;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.services-hero__title {
    margin: 0;
    font-size: clamp(2rem, 3.4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #132b8a;
}

.services-hero__subtitle {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
    font-weight: bold;
    color: rgba(43, 47, 54, 0.78);
}

.services-hero__media {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-height: 180px;
    border-radius: 32px;
    background: none;
}

.services-list {
    padding: 24px 0 60px;
}

.services-list__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 60px;
}

/* Pagination (reused on services/doctors) */
.pagination { margin: 28px 0 8px; display: flex; justify-content: center; }
.pagination__list { list-style: none; margin: 0; padding: 0; display: inline-flex; gap: 8px; }
.pagination__link { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 9999px; background: #E8F0FF; color: #2c2c2c; text-decoration: none; font-weight: 600; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.pagination__link:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(45,85,247,.2); background: #D6E7FF; }
.pagination__link.is-active { background: #0815a8; color: #ffffff; box-shadow: 0 8px 20px rgba(14,27,82,.25); }

.service-card {
    position: relative;
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: start;
    gap: 20px 22px;
    padding: 28px 28px 40px;
    border-radius: 22px;
    background: #ffffff;
    /* border: 1px solid rgba(13, 27, 82, 0.06); */
    /* box-shadow: 0 18px 48px rgba(17, 24, 39, 0.10); */
    background-image: url('/storage/asset/pic36.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.service-card--wide {
    grid-column: span 2;
}

.service-card__media {
    position: relative;
    width: 200px;
    height: 200px;
    /* border-radius: 50%; */
    /* border: 15px solid rgba(221, 229, 255, 0.95); */
    /* box-shadow: 0 22px 44px rgba(32, 62, 180, 0.18); */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* background: #ffffff; */
    justify-self: start;
    margin-left: -63px;
    grid-column: 1;
    grid-row: 1;
}



.service-card__media img {
    width: 66%;
    height: 100%;
    object-fit: cover;
}

.service-card__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 4px;
    position: relative;
    z-index: 1;
    grid-column: 2;
    grid-row: 1;
}

.service-card__title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #0E1B52;
}

.service-card__description {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #5B6477;
    padding-bottom: 20px; /* compact spacing above separator */
    margin-bottom: 4px;
    border-bottom: 2px solid #d9ddfc; /* separator between description and list */
}

.service-card__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #5B6477;
}

.service-card__list li {
    position: relative;
    padding: 6px 0 4px 24px; /* меньше вертикальные отступы */
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: bold;
    /* margin-left: 20px; */
}

.service-card__list li::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: url('/storage/asset/pic11.png') center/cover no-repeat;
}

/* переопределяем общую стилизацию .services-list li внутри карточек */
.service-card .service-card__list li {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    margin: 0 0 0 20px;
    padding-right: 0;
}

.service-card__actions {
    display: flex;
    flex-direction: row; /* в одну линию */
    gap: 12px;
    margin-top: 8px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    grid-column: 2;
    grid-row: 2;
}

.service-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 16px;
    border-radius: 9999px;
    background: #0815a8;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.01em;
    box-shadow: none;
    transition: all 0.18s ease;
    align-self: auto;
    flex: 1.3;
    min-width: 0;
}

.service-card__button:hover { background: #0815a8; transform: translateY(-1px); box-shadow: none; }

.service-card__button:active { transform: translateY(0); box-shadow: none; }

.service-card__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 12px;
    border-radius: 9999px;
    background: #E8F0FF;
    color: #2c2c2c;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.18s ease;
    align-self: auto;
    flex: 0.7;
    min-width: 0;
}

.service-card__link:hover {
    background: #D6E7FF;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(45, 85, 247, 0.2);
}

.service-card__link:active {
    box-shadow: 0 6px 14px rgba(55, 99, 255, 0.14);
    transform: translateY(0);
}

.services-support {
    padding: 0px 0 0px;
    background: url('/storage/asset/bg3.jpg') center/cover no-repeat;
}

.services-support__panel {
    position: relative;
    border-radius: 48px;
    padding: 0px 5px;
   
    color: #ffffff;
    display: grid;
    grid-template-columns: minmax(0, 910px) minmax(0, 310px);
    gap: 48px;
    align-items: center;
    overflow: hidden;
    /* box-shadow: 0 34px 72px rgba(10, 28, 110, 0.35); */
}



.services-support__content,
.services-support__media {
    position: relative;
    z-index: 1;
    margin-bottom: 0px;
}

.services-support__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start; /* prevent children from stretching full-width */
}

.services-support__title {
    margin: 0;
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.services-support__text {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
}

.services-support__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 32px;
    border-radius: 9999px;
    background: #ffffff;
    color: #0b1ebe;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.02em;
    box-shadow: 0 18px 36px rgba(12, 30, 120, 0.32);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    width: auto;              /* prevent stretching in grid */
    justify-self: start;      /* pin to left, no full-width */
}

.services-support__button:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 44px rgba(12, 30, 120, 0.36);
}

.services-support__button:active {
    transform: translateY(0);
    box-shadow: 0 14px 24px rgba(12, 30, 120, 0.26);
}

.services-support__media {
    display: flex;
    justify-content: flex-end;
}

.services-support__media img {
    max-width: 260px;
    width: 100%;
    height: auto;
    display: block;
    margin-right: -16px; /* closer to the right edge */
}

.service-card__button,
.service-card__link,
.services-support__button {
    cursor: pointer;
}

.service-card__button:focus-visible,
.service-card__link:focus-visible,
.services-support__button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(55, 99, 255, 0.25);
}

@media (max-width: 1080px) {
    .services-list__grid {
        grid-template-columns: 1fr;
    }

    .service-card--wide {
        grid-column: auto;
    }
}

@media (max-width: 960px) {
    .services-hero__panel {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }

    .services-hero__media {
        align-self: stretch;
        min-height: 140px;
    }

    .services-support__panel {
        grid-template-columns: 1fr;
        padding: 52px 0px;
    }

    .services-support__content {
        text-align: left;
        align-items: flex-start;
    }

    .services-support__button {
        align-self: flex-start;
    }

    .services-support__media {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .services-list__grid {
        gap: 35px;
    }
    .services-hero__panel {
        padding: 36px 28px;
        border-radius: 32px;
        background-image: url('/storage/asset/pic29.jpg') !important;
    }

    .service-card {
        grid-template-columns: 120px minmax(0, 1fr);
        grid-template-rows: auto auto;
        padding: 20px 0px 40px;
        gap: 16px 16px;
        align-items: start;
    }

    .service-card__media {
        width: 120px;
        min-height: 120px;
        height: auto;
        margin-bottom: 0;
        margin-left: 0;
        grid-row: 1;
        grid-column: 1;
        align-self: start;
    }

    .service-card__body {
        grid-column: 2;
        grid-row: 1;
        margin-top: 0;
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding-right: 20px;
    }

    .service-card__actions {
        grid-column: 1 / -1;
        grid-row: 2;
        margin-top: 8px;
        width: 100%;
        display: flex;
        flex-direction: row;
        gap: 12px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .service-card__button,
    .service-card__link {
        justify-content: center;
        
    }
    .service-card__button{
        max-width: 13rem;
    }
    .service-card__link {
        max-width: 10rem;
        
    }

    .service-card__media img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .services-support__panel {
        padding: 44px 15px 0px 15px;
        border-radius: 36px;
    }

    .services-support__content {
        text-align: left;
        align-items: flex-start;
    }

    .services-support__button {
        width: auto; /* not full width on mobile */
        align-self: flex-start;
    }
}
/* Doctors page */
.team-hero {
    padding: 20px 0 48px;
}

.team-hero__panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 48px;
    padding: 52px 56px;
    border-radius: 44px;
    background: url('/storage/asset/pic22.jpg') center/cover no-repeat;
    /* box-shadow: 0 28px 60px rgba(19, 43, 138, 0.08); */
    overflow: hidden;
}

.team-hero__panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/pattern-hex.svg') center/170% no-repeat;
    opacity: 0.16;
    pointer-events: none;
}

.team-hero__content,
.team-hero__media {
    position: relative;
    z-index: 1;
}

.team-hero__content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 520px;
}

.team-hero__title {
    margin: 0;
    font-size: clamp(2rem, 3.4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #132b8a;
}

.team-hero__subtitle {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(43, 47, 54, 0.78);
}

.team-hero__media {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(55, 99, 255, 0.18), rgba(19, 43, 138, 0));
    box-shadow: 0 24px 52px rgba(19, 43, 138, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-list {
    padding: 24px 0 64px;
}

.team-list__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.doctor-card {
    position: relative;
    padding: 32px;
    padding-top: 0px;
    padding-bottom: 15px;
    border-radius: 36px;
    background: #ffffff;
    margin-top: 45px;
    margin-bottom: 25px;
    /* border: 1px solid #e0e6fb; */
    /* box-shadow: 0 24px 50px rgba(19, 43, 138, 0.08); */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-image: url('/storage/asset/pic25.jpg');
    background-size: cover;
    background-position: center;
}

.doctor-card__avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 18px 36px rgba(19, 43, 138, 0.18);
    margin-bottom: 20px;
    margin-top: -50px;
}

.doctor-card__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-card__content {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.doctor-card__name {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2b2b2b;
}

.doctor-card__role {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #3f4cd7;
}

.doctor-card__summary {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.6;
    color: rgba(43, 47, 54, 0.78);
    font-style: italic;
    text-align: justify;
    font-weight: 500;
    padding-bottom: 40px;
    margin-bottom: 8px;
    border-bottom: 2px solid #d9ddfc;
}

.doctor-card__details {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(43, 47, 54, 0.85);
}

.doctor-card__details div {
    display: block; /* labels + text on one line and wrap full width */
    margin: 0; /* reset from grid gaps */
}

.doctor-card__details dt {
    display: inline;
    font-weight: 700;
    color: #3f4cd7;
    margin-right: 6px;
}

.doctor-card__details dd {
    display: inline;
    margin: 0;
}

@media (max-width: 1200px) {
    .team-list__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .team-hero__panel {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .team-hero__content {
        align-items: center;
    }

    .team-list__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .team-hero__panel {
        padding: 36px 28px 160px;
        border-radius: 32px;
        gap: 28px;
        justify-items: flex-start;
        text-align: left;
        background-image: url('/storage/asset/pic26.jpg');
        background-position: right bottom;
        background-size: 110%;
    }

    .team-hero__content {
        align-items: flex-start;
        max-width: 100%;
    }

    .doctor-card {
        padding: 28px 24px;
    }

    .doctor-card__avatar {
        width: 240px;
        height: 240px;
    }

    .doctor-card__details div {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }

    .doctor-card__details {
        text-align: left;
    }
}
/* Pricing page */
.price-hero {
    padding: 20px 0 48px;
}

.price-hero__panel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 48px;
    padding: 52px 56px;
    border-radius: 44px;
    background: url('/storage/asset/pic38.jpg') center/cover no-repeat;
    /* box-shadow similar to services-hero for consistency */
    /* box-shadow: 0 28px 60px rgba(19, 43, 138, 0.08); */
    overflow: hidden;
}

.price-hero__panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/pattern-hex.svg') center/170% no-repeat;
    opacity: 0.16;
    pointer-events: none;
}

.price-hero__content,
.price-hero__media {
    position: relative;
    z-index: 1;
}

.price-hero__content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 520px;
}

.price-hero__title {
    margin: 0;
    font-size: clamp(2rem, 3.4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #132b8a;
}

.price-hero__subtitle {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(43, 47, 54, 0.78);
}

.price-hero__media {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-height: 180px;
    border-radius: 32px;
    background: none;
}

.price-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.price-accordion {
    padding: 24px 0 64px;
}

.price-search {
    margin-bottom: 24px;
}

.price-search__panel,
.price-search__empty {
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 255, 0.96));
    box-shadow: 0 18px 44px rgba(19, 43, 138, 0.08);
}

.price-search__panel {
    position: relative;
    overflow: hidden;
}

.price-search__panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/pattern-hex.svg') center/180% no-repeat;
    opacity: 0.1;
    pointer-events: none;
}

.price-search__content,
.price-search__empty {
    position: relative;
    z-index: 1;
}

.price-search__content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px 32px;
}

.price-search__label {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #132b8a;
}

.price-search__field {
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-search__input {
    width: 100%;
    min-height: 58px;
    padding: 0 20px;
    border: 1px solid rgba(19, 43, 138, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    font-size: 1rem;
    color: #2b2f36;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.price-search__input::placeholder {
    color: rgba(43, 47, 54, 0.48);
}

.price-search__input:focus {
    outline: none;
    border-color: rgba(11, 30, 190, 0.34);
    box-shadow: 0 0 0 4px rgba(11, 30, 190, 0.08);
}

.price-search__clear {
    flex: 0 0 auto;
    min-height: 58px;
    padding: 0 20px;
    border: 1px solid rgba(11, 30, 190, 0.16);
    border-radius: 18px;
    background: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0b1ebe;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.price-search__clear:hover,
.price-search__clear:focus-visible {
    background: #0b1ebe;
    border-color: #0b1ebe;
    color: #ffffff;
    outline: none;
}

.price-search__hint,
.price-search__empty {
    font-size: 0.98rem;
    line-height: 1.6;
    color: rgba(43, 47, 54, 0.76);
}

.price-search__empty {
    margin-top: 14px;
    padding: 18px 24px;
}

.price-accordion__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.price-item {
    border-radius: 32px;
    /* overflow не скрываем, чтобы при большом числе позиций контент не обрезался */
}

.price-item__summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 50px 24px 60px;
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #2b2b2b;
    background: url('/storage/asset/pic39.jpg') center/cover no-repeat;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 8px rgba(19, 43, 138, 0.08);
    border-radius: 32px;
}

.price-item__summary::-webkit-details-marker {
    display: none;
}

.price-item__toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0b1ebe;
    color: #ffffff;
    /* box-shadow: 0 2px 4px rgba(14, 27, 82, 0.25); */
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
    position: relative;
}

.price-item[open] .price-item__toggle {
    transform: rotate(180deg);
}

.price-item__toggle::before {
    content: '';
    display: block;
    width: 11px;
    height: 11px;
    border-right: 3px solid #ffffff;
    border-bottom: 3px solid #ffffff;
    transform: rotate(-135deg); /* chevron up */
    margin-top: 5px;
}

.price-item__toggle:hover {
    /* box-shadow: 0 12px 28px rgba(14, 27, 82, 0.3); */
}

.price-item__content {
    /* collapsed state */
    max-height: 0;
    overflow: hidden;
    padding: 0 45px 0;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease, padding 0.25s ease;
    /* background-image: url('../img/pattern-hex.svg'); */
    background-size: 220%;
    background-color: white;
    background-position: center;
    margin-top: 15px;
    border-radius: 30px;
}

.price-item[open] .price-item__content {
    /* expanded state — без ограничения по высоте, чтобы влезали все позиции (в т.ч. сотни) */
    max-height: 999999px;
    overflow: visible;
    padding: 10px 45px 45px;
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .price-item__content {
        transition: none;
    }
}

.price-item__subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(43, 47, 54, 0.9);
    margin: 1.25em 0 0.5em;
    padding-bottom: 0.25em;
}

.price-item__subtitle:first-child {
    margin-top: 0;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.98rem;
    color: rgba(43, 47, 54, 0.85);
}

.price-table th,
.price-table td {
    padding: 18px 16px;
    border-bottom: 2px solid #d9ddfc;
}

.price-table thead th {
    font-size: 1.1rem;
    text-transform: none;
    letter-spacing: 0.04em;
    color: #2b2b2b;
}

.price-item__summary:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 3px rgba(55, 99, 255, 0.22);
    border-radius: 32px;
}

.price-item__toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(55, 99, 255, 0.25);
}

@media (max-width: 960px) {
    .price-hero{
        padding-bottom: 15px;
    }
    .price-hero__panel {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
        text-align: left;
    }

    .price-hero__content {
        align-items: flex-start;
    }

    .price-hero__media {
        align-self: stretch;
        min-height: 140px;
    }
}

@media (max-width: 640px) {
    .price-search__panel,
    .price-search__empty {
        border-radius: 26px;
    }

    .price-search__content {
        padding: 22px 20px;
    }

    .price-search__field {
        flex-direction: column;
        align-items: stretch;
    }

    .price-search__clear {
        width: 100%;
    }

    .price-hero__panel {
        padding: 36px 28px;
        border-radius: 32px;
        gap: 28px;
    }

    .price-item__summary {
        padding: 20px 24px;
        font-size: 1rem;
    }

    .price-item__content {
        padding: 0 24px 24px 10px;
    }

    .price-item[open] .price-item__content {
        /* expanded state */
        padding: 10px 25px 45px;
    }
    .price-table{
        font-size: 0.9rem;
    }

    .price-table th:nth-child(4),
    .price-table td:nth-child(4) {
        display: none;
    }

    .price-table th:nth-child(3),
    .price-table td:nth-child(3) {
        white-space: nowrap;
        min-width: 90px;
    }

    .price-table th,
    .price-table td {
        padding: 14px 12px;
    }
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ХЕДЕРА ===== */

/* Бургер-меню */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle__line {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #132b8a;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__line:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__line:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Адаптация верхней части хедера */
@media (max-width: 900px) {
    .header-top__inner {
        padding: 10px 0;
        row-gap: 12px;
    }

    .header-top__contacts {
        gap: 12px 16px;
        flex-wrap: wrap;
    }

    .header-top__cta {
        height: 30px;
        padding: 0 16px;
        font-size: 13px;
        gap: 6px;
    }

    .header-top__address-text {
        font-size: 13px;
    }

    .header-top__tools {
        gap: 10px;
    }

    .header-top__tool,
    .header-top__account {
        height: 32px;
        padding: 0 12px;
        font-size: 13px;
    }

    .header-top__tool .header-icon {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 768px) {
    .header-top__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
    .header-top__contacts { display: flex; align-items: center; gap: 10px; }
    .header-top__phone { display: none; }
    .header-top__address { display: none; }
    .header-top__cta { flex: 0 0 auto; min-width: 0; height: 34px; padding: 0 16px; font-size: 14px; border-radius: 9999px; justify-content: center; margin-right: auto; }
    .header-top__tools { width: auto; justify-content: flex-start; gap: 10px; }
    .header-main__inner { padding: 0 16px; }
    .header-top__inner {}

    .header-top__tool--contrast {
        display: none; /* Скрываем кнопку контраста на мобильных */
    }

    .header-main {
        padding: 12px 0;
    }

    .header-main__inner {
        min-height: 56px;
        gap: 16px;
        flex-wrap: nowrap;
    }

    .site-logo {
        font-size: 1.4rem;
        flex: 1;
    }

    .site-logo__img {
        max-height: 40px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .site-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 80px 24px 24px;
        gap: 0;
        margin: 0;
        overflow-y: auto;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }

    .site-nav.active {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
    }

    .site-nav a {
        width: 100%;
        padding: 16px 0;
        border-bottom: 1px solid #edeff6;
        font-size: 16px;
        font-weight: 600;
        color: #132b8a;
        text-align: left;
    }

    .site-nav a::after {
        display: none;
    }

    .site-nav a.is-active {
        color: #3763ff;
        border-bottom-color: #3763ff;
    }

    .header-main__social {
        display: none; /* Скрываем соцсети в мобильном меню, можно добавить вниз навигации */
    }
}



@media (max-width: 560px) {
    .header-top__inner {
        padding: 8px 16px;
    }

    .header-top__contacts {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .header-top__phone {
        font-size: 15px;
        font-weight: 700;
    }

    .header-top__cta {
        width: 100%;
        height: 36px;
        font-size: 14px;
    }

    .header-top__address-text {
        font-size: 12px;
        line-height: 1.4;
    }

    .header-top__tools {
        gap: 8px;
    }

    .header-top__tool,
    .header-top__account {
        height: 36px;
        padding: 0 10px;
        font-size: 12px;
    }

    .header-main__inner {
        min-height: 52px;
        padding: 0 16px;
    }

    .site-logo {
        font-size: 1.25rem;
    }

    .site-logo__img {
        max-height: 35px;
    }

    .mobile-menu-toggle {
        width: 28px;
        height: 20px;
    }

    .site-nav {
        padding: 70px 20px 20px;
    }

    .site-nav a {
        padding: 14px 0;
        font-size: 15px;
    }
}

@media (max-width: 410px) {
    .header-top__inner {
        padding: 8px 8px !important;
    }        
    .header-top__tool--search{
        display: none !important;
    }
}
/* Оверлей для мобильного меню */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

@media (min-width: 769px) {
    .mobile-menu-overlay {
        display: none !important;
    }
}

.articles-hero {
    padding: 24px 0 12px;
}

.articles-hero__panel,
.related-articles__panel,
.article-page__header,
.article-page__content,
.articles-empty {
    background: #fff;
    border-radius: 28px;
    box-shadow: var(--shadow-card);
}

.articles-hero__panel {
    padding: 40px 48px;
}

.articles-hero__title,
.article-page__title,
.related-articles__title {
    margin: 0;
    color: #16206f;
    line-height: 1.1;
}

.articles-hero__title {
    font-size: clamp(2rem, 4vw, 3.25rem);
}

.articles-hero__text,
.article-page__excerpt,
.article-card__excerpt,
.article-page__content,
.articles-empty {
    color: var(--color-muted);
}

.articles-hero__text {
    margin: 16px 0 0;
    max-width: 760px;
    font-size: 1.05rem;
}

.articles-list,
.related-articles {
    padding: 16px 0 40px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.article-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--shadow-card);
}

.article-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.article-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
}

.article-card__meta,
.article-page__meta {
    font-size: 0.92rem;
    color: #7a8090;
}

.article-card__title {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.25;
}

.article-card__title a {
    text-decoration: none;
}

.article-card__link {
    margin-top: auto;
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
}

.article-page {
    padding: 12px 0 36px;
}

.article-page__header {
    padding: 40px 48px 28px;
}

.article-page__title {
    margin-top: 12px;
    font-size: clamp(2rem, 4vw, 3rem);
}

.article-page__excerpt {
    margin: 16px 0 0;
    font-size: 1.05rem;
}

.article-page__cover {
    margin: 28px 0 0;
    overflow: hidden;
    border-radius: 24px;
}

.article-page__cover img {
    width: 100%;
    display: block;
}

.article-page__content {
    margin-top: 24px;
    padding: 36px 48px;
    line-height: 1.75;
    font-size: 1.05rem;
    white-space: normal;
}

.article-page__content--markdown > *:first-child {
    margin-top: 0;
}

.article-page__content--markdown > *:last-child {
    margin-bottom: 0;
}

.article-page__content--markdown h2,
.article-page__content--markdown h3,
.article-page__content--markdown h4 {
    color: #16206f;
    line-height: 1.2;
    margin: 1.8em 0 .7em;
}

.article-page__content--markdown p,
.article-page__content--markdown ul,
.article-page__content--markdown ol,
.article-page__content--markdown blockquote {
    margin: 0 0 1rem;
}

.article-page__content--markdown ul,
.article-page__content--markdown ol {
    padding-left: 1.25rem;
}

.article-page__content--markdown blockquote {
    padding: .75rem 1rem;
    border-left: 4px solid var(--color-primary);
    background: #f7f9ff;
    color: #4b5565;
    border-radius: 0 12px 12px 0;
}

.article-page__content--markdown hr {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid #d9e0ef;
}

.article-page__content--markdown a {
    color: var(--color-primary);
}

.article-page__content--markdown img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    margin: 1.25rem 0;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

.related-articles__panel {
    padding: 36px 40px 40px;
}

.related-articles__title {
    margin-bottom: 24px;
    font-size: 2rem;
}

.articles-empty {
    padding: 32px;
    text-align: center;
}

@media (prefers-reduced-motion: no-preference) {
    ::view-transition-group(root) { animation-duration: .22s; }

    .site-body .site-main { animation: site-content-enter .22s ease-out; }
    :root:active-view-transition .site-main { animation: none; }

    .site-body .header-search-panel:not([hidden]) { animation: site-content-enter .18s ease-out; }
    .site-body :is(.direction-card, .doctor-card, .service-card, .article-card) { transition: transform .2s ease-out; }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
    .site-body :is(.direction-card, .doctor-card, .service-card, .article-card):hover { transform: translateY(-3px); }
}

@keyframes site-content-enter { from { opacity: .82; } to { opacity: 1; } }

@media (max-width: 991.98px) {
    .articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .articles-hero__panel,
    .article-page__header,
    .article-page__content,
    .related-articles__panel {
        padding: 28px;
    }
}

@media (max-width: 767.98px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .articles-hero__panel,
    .article-page__header,
    .article-page__content,
    .related-articles__panel,
    .articles-empty {
        padding: 24px 20px;
        border-radius: 22px;
    }
}
