@font-face {
    font-family: "Tajawal";
    src: url("/fonts/tajawal/Tajawal-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Tajawal";
    src: url("/fonts/tajawal/Tajawal-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Tajawal";
    src: url("/fonts/tajawal/Tajawal-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #f6f4ff;
    --ink: #2b2b2b;
    --muted: #777;
    --brand: #7c5cff;
    --brand-ghost: #efeaff;
    --panel: #f0eef8;
    --card: #fff;
    --accent: #8b5cf6;
    --border: #e7e7ee;
    --shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
    --white: #fff;
    --bg-chip: #f4f4f6;

    --topbar-offset: 118px;
    --hero-bg-height: 180px;

    --hero-tint: rgba(129, 66, 255, 0.3);
    --hero-pill: rgba(129, 66, 255, 0.18);
    --hero-pill-border: rgba(129, 66, 255, 0.28);

    --btn-primary-bg: #8142ff;
    --btn-primary-bg-h: #6f32ff;
    --btn-ghost-bd: rgba(129, 66, 255, 0.35);
    --btn-ghost-bg-h: rgba(129, 66, 255, 0.08);

    /* Hero Banner (فقاعات) */
    --banner-bg: #d9c9ff;
    --banner-ink: #1b1b1b;
    --banner-ink-sub: #3a3a3a;
}

* {
    box-sizing: border-box;
}
html,
body {
    margin: 0;
    padding: 0;
    font-family: "Tajawal", system-ui, -apple-system, "Segoe UI", Roboto,
        "Noto Naskh Arabic UI", Arial, sans-serif;
}
html {
    scroll-behavior: smooth;
}
.section {
    scroll-margin-top: calc(var(--topbar-offset) + 20px);
}

a {
    color: inherit;
    text-decoration: none;
}
img {
    max-width: 100%;
    display: block;
}
.site {
    background: #fff;
    color: var(--ink);
}
.container {
    width: min(1100px, 92%);
    margin-inline: auto;
    background: transparent;
}

/* Topbar */
.topbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    background: transparent;
    border: 0;
    padding-top: 18px;
    overflow: visible;
    pointer-events: none;
}
.topbar__shell {
    position: relative;
    z-index: 2;
    pointer-events: auto;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(22, 20, 60, 0.08);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.topbar__shell::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0.6;
    background: linear-gradient(
        140deg,
        rgba(124, 92, 255, 0.28),
        rgba(124, 92, 255, 0) 40%,
        rgba(0, 0, 0, 0) 60%,
        rgba(124, 92, 255, 0.22)
    );
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask: linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 1px;
}
.topbar__links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-inline-start: auto;
}
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    height: 40px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1;
    color: var(--ink);
    background: var(--bg-chip);
    border: 1px solid transparent;
    transition: background 0.2s ease, transform 0.08s ease;
    position: relative;
    isolation: isolate;
}
.pill--ghost {
    background: transparent;
}
.pill--active,
.pill:hover {
    background: #efeff2;
}
.pill:focus-visible {
    outline: 2px solid rgba(124, 92, 255, 0.45);
    outline-offset: 2px;
}
.pill.is-active::after {
    content: "";
    position: absolute;
    inset: auto 10px -6px 10px;
    height: 3px;
    background: linear-gradient(
        90deg,
        rgba(124, 92, 255, 0),
        rgba(124, 92, 255, 0.7),
        rgba(124, 92, 255, 0)
    );
    border-radius: 2px;
}
.sep {
    opacity: 0.45;
    margin-inline: 4px;
}
.brand-area {
    display: inline-grid;
    grid-template-columns: auto;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.brand__logo {
    width: 220px;
    height: 42px;
    object-fit: contain;
}

.topbar__menu-btn {
    appearance: none;
    border: 1px solid rgba(140, 140, 160, 0.3);
    background: #fff;
    border-radius: 12px;
    height: 40px;
    padding-inline: 12px;
    display: none;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0;
    transition: transform 0.15s ease, background 0.2s ease,
        border-color 0.2s ease;
}
.topbar__menu-btn:hover {
    background: #f9f9ff;
}
.topbar__menu-btn:focus-visible {
    outline: 2px solid rgba(129, 66, 255, 0.45);
    outline-offset: 2px;
}
.topbar__menu-btn .bars {
    display: inline-block;
    width: 20px;
    height: 14px;
    position: relative;
}
.topbar__menu-btn .bars::before,
.topbar__menu-btn .bars::after,
.topbar__menu-btn .bars .b {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.topbar__menu-btn .bars::before {
    top: 0;
}
.topbar__menu-btn .bars .b {
    top: 6px;
}
.topbar__menu-btn .bars::after {
    bottom: 0;
}
.topbar.nav-open .topbar__menu-btn .bars::before {
    transform: translateY(6px) rotate(45deg);
}
.topbar.nav-open .topbar__menu-btn .bars::after {
    transform: translateY(-6px) rotate(-45deg);
}
.topbar.nav-open .topbar__menu-btn .bars .b {
    opacity: 0;
}

main {
    padding-top: var(--topbar-offset);
}

/* ===== Hero (الافتراضي القديم لبعض الصفحات) ===== */
.hero {
    margin-top: calc(var(--topbar-offset) * -1);
    padding-top: calc(var(--topbar-offset) + 36px);
    padding-bottom: 24px;
    position: relative;
    overflow: visible;
    background: radial-gradient(
            1400px 420px at 20% -10%,
            rgba(255, 255, 255, 0.1),
            transparent 60%
        ),
        linear-gradient(
            180deg,
            rgba(129, 66, 255, 0.3),
            rgba(129, 66, 255, 0.22) 40%,
            rgba(129, 66, 255, 0.1) 100%
        );
}
.hero__inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    z-index: 1;
}
.hero__panel {
    margin-inline-start: 0;
    margin-inline-end: auto;
    padding: 30px 32px 26px;
    background: radial-gradient(
            1200px 240px at 70% -10%,
            rgba(255, 255, 255, 0.22),
            transparent 60%
        ),
        var(--hero-tint);
    border: 1px solid rgba(129, 66, 255, 0.22);
    border-radius: 22px;
    box-shadow: 0 16px 44px rgba(129, 66, 255, 0.16),
        inset 0 2px 0 rgba(255, 255, 255, 0.18);
    max-width: 760px;
    color: #fff;
    position: relative;
}
.hero__panel::before {
    content: "";
    position: absolute;
    inset-block: 10% 10%;
    inset-inline-start: -10px;
    width: 4px;
    border-radius: 8px;
    background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.2));
    opacity: 0.6;
}
.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 12px;
    letter-spacing: 0.3px;
    margin-bottom: 12px;
}
.hero__eyebrow i {
    font-style: normal;
    opacity: 0.9;
}
.hero__title {
    text-align: right;
}
.hero__title h1 {
    margin: 0 0 10px 0;
    font-size: 36px;
    line-height: 1.25;
}
.hero__subtitle {
    margin: 0 0 20px 0;
    opacity: 0.96;
}

/* ===== Hero Banner الجديد (فقاعات خافتة) ===== */
.hero.hero--banner {
    margin-top: calc(var(--topbar-offset) * -1);
    padding-top: calc(var(--topbar-offset) + 22px);
    padding-bottom: 30px;
    position: relative;
    overflow: hidden;
    background: var(--banner-bg);
    /* border-radius: 18px; */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}
.hero--banner .hero__inner {
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.hero--banner .hero__content {
    max-width: 720px;
    text-align: right;
    margin-inline-end: auto;
}
.hero--banner .hero__title h1 {
    margin: 0 0 10px 0;
    font-size: 40px;
    line-height: 1.25;
    color: var(--banner-ink);
    font-weight: 800;
}
.hero--banner .hero__subtitle {
    margin: 0 0 18px 0;
    font-size: 22px;
    line-height: 1.7;
    color: var(--banner-ink-sub);
}

.btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.08s ease, background 0.2s ease,
        border-color 0.2s ease, opacity 0.2s ease;
}
.btn:active {
    transform: translateY(1px);
}
.btn--primary {
    background: var(--btn-primary-bg);
    color: #fff;
}
.btn--primary:hover {
    background: var(--btn-primary-bg-h);
}
.btn--ghost {
    background: transparent;
    color: #fff;
    border-color: var(--btn-ghost-bd);
}
.btn--ghost:hover {
    background: var(--btn-ghost-bg-h);
}
.btn--sm {
    height: 38px;
    padding: 0 14px;
    font-size: 14px;
    border-radius: 10px;
}
.btn--ghost-dark {
    background: #fff;
    color: #3b2ea8;
    border-color: #d8d1ff;
}
.btn--ghost-dark:hover {
    background: #f5f2ff;
}

.kpis {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.kpi {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}
.kpi__num {
    font-weight: 700;
    font-size: 18px;
}
.kpi__label {
    font-size: 12px;
    opacity: 0.92;
}

.banner-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(
            160px 160px at 18% 28%,
            rgba(255, 255, 255, 0.35) 0 35%,
            rgba(0, 0, 0, 0.04) 36%,
            transparent 60%
        ),
        radial-gradient(
            120px 120px at 72% 22%,
            rgba(255, 255, 255, 0.32) 0 32%,
            rgba(0, 0, 0, 0.035) 33%,
            transparent 58%
        ),
        radial-gradient(
            140px 140px at 12% 64%,
            rgba(255, 255, 255, 0.3) 0 34%,
            rgba(0, 0, 0, 0.03) 35%,
            transparent 62%
        ),
        radial-gradient(
            110px 110px at 58% 68%,
            rgba(255, 255, 255, 0.28) 0 30%,
            rgba(0, 0, 0, 0.03) 31%,
            transparent 60%
        ),
        radial-gradient(
            90px 90px at 86% 70%,
            rgba(255, 255, 255, 0.26) 0 28%,
            rgba(0, 0, 0, 0.025) 29%,
            transparent 58%
        ),
        radial-gradient(
            130px 130px at 38% 86%,
            rgba(255, 255, 255, 0.24) 0 30%,
            rgba(0, 0, 0, 0.02) 31%,
            transparent 58%
        );
    background-repeat: no-repeat;
    filter: blur(0.1px);
    opacity: 0.4;
}

.hero--banner .hero__panel,
.hero--banner .hero__eyebrow,
.hero--banner .hero-bg,
.hero--banner .hero-decor {
    display: none !important;
}

/* Sections */
.section {
    padding: 55px 0;
}
.section--panel {
    background: var(--panel);
    border-block: 1px solid var(--border);
}
.sec-title,
.sec-title1 {
    margin: 0 0 6px 0;
    text-align: center;
    font-size: 24px;
}
.sec-sub {
    margin: 0 0 18px 0;
    text-align: center;
    color: var(--muted);
}

/* About */
.section--about {
    position: relative;
    background: radial-gradient(
            900px 200px at 15% 0%,
            rgba(129, 66, 255, 0.06),
            transparent 60%
        ),
        linear-gradient(180deg, #fff, #faf9ff);
    border-block: 1px solid var(--border);
}
.about-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 28px;
    align-items: center;
}
.about__media {
    position: relative;
}
.about__frame {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(145deg, #f3efff, #ffffff);
    border: 1px solid var(--border);
    box-shadow: 0 18px 40px rgba(129, 66, 255, 0.12);
    aspect-ratio: 4/3;
    display: grid;
    place-items: center;
}
.about__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}
.ring {
    position: absolute;
    border-radius: 999px;
    border: 2px dashed rgba(129, 66, 255, 0.25);
    pointer-events: none;
}
.r1 {
    inset: 10px;
}
.r2 {
    inset: 24px;
    border-style: solid;
    border-color: rgba(129, 66, 255, 0.18);
}
.about__text h2 {
    margin: 0 0 10px 0;
    font-size: 26px;
}
.lead {
    margin: 0 0 14px 0;
    color: #4a4a4a;
    line-height: 1.9;
}
.feature-list {
    margin: 0 0 14px 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
}
.feature-list .check {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: #efeaff;
    color: #5c3df1;
    font-size: 12px;
    line-height: 1;
    margin-top: 2px;
}

.img-placeholder {
    height: 180px;
    border: 2px dashed #cfcfe8;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #9c9cbb;
    background: #f6f5ff;
}

/* ===== Forms ===== */
.forms-sec {
    background: #f6f6f6;
    border-block: 1px solid var(--border);
}
.forms-head .sec-title {
    font-size: 32px;
    margin-bottom: 6px;
}
.forms-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.form-pill {
    display: flex;
    align-items: stretch;
    border-radius: 12px;
    border: 3px solid #e6e6eb;
    box-shadow: 0 14px 36px rgba(30, 10, 80, 0.08);
    overflow: hidden;
    background: #fff;
    transition: transform 0.12s ease, box-shadow 0.2s ease,
        border-color 0.2s ease;
}
.form-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(30, 10, 80, 0.12);
    border-color: #e0e1e8;
}
.form-pill .f-ico {
    width: 70px;
    display: grid;
    place-items: center;
    background: #6f2cff;
}
.form-pill .f-ico svg {
    width: 30px;
    height: 30px;
    fill: #fff;
}
.form-pill .f-title {
    flex: 1;
    display: grid;
    place-items: center;
    background: #fff;
    padding: 10px 24px;
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
    color: #1f1f1f;
    font-weight: 700;
}

/* ===== Health ===== */
.h-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.h-card {
    text-align: center;
    background: #fff;
    border: 3px solid #e6e6eb;
    border-radius: 24px;
    padding: 28px 32px 24px;
    box-shadow: 0 14px 36px rgba(30, 10, 80, 0.08);
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: transform 0.12s ease, box-shadow 0.2s ease,
        border-color 0.2s ease;
}
.h-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(30, 10, 80, 0.12);
    border-color: #e0e1e8;
}
.h-card__title {
    margin: 0;
    font-size: 18px;
    line-height: 1.8;
    color: #2c2c2c;
    font-weight: 700;
}
.h-card .dl {
    --bd: #e6e6eb;
    --violet: #6f2cff;
    height: 50px;
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    margin-inline: auto;
    border: 3px solid var(--bd);
    border-radius: 14px;
    background: #fff;
    text-decoration: none;
    overflow: hidden;
    margin-top: auto;
    align-self: center;
}
.h-card .dl-ico {
    width: 64px;
    height: 40px;
    margin-inline-end: 5px;
    display: grid;
    place-items: center;
    background: var(--violet);
    border-radius: 10px;
}
.dl-ico svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}
.dl-label {
    flex: 1;
    height: 100%;
    display: grid;
    place-items: center;
    background: #f7f8fb;
    color: #2f2f2f;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.1px;
}
.dl:hover .dl-label {
    background: #f1f3f7;
}

/* ===== Links Panel ===== */
.links-sec {
    background: #f6f6f6;
    border-block: 1px solid var(--border);
}
.links-sec .links-panel {
    background: transparent;
    border-radius: 0;
    padding: 28px 0 34px;
}
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 20px;
}
.link-card {
    display: block;
    width: 100%;
    max-width: 350px;
    aspect-ratio: 3/2;
    border-radius: 25px;
    background: #fff;
    border: 1px solid #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.12s ease, box-shadow 0.2s ease,
        border-color 0.2s ease;
}
.link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
    border-color: #e9e9f1;
}
.link-card:focus-visible {
    outline: 2px solid rgba(124, 92, 255, 0.45);
    outline-offset: 2px;
}
.link-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid #fff;
}

.sec-title,
.sec-title1 {
    position: relative;
    font-size: 24px;
    margin-bottom: 8px;
}

/* .sec-title::before,
.sec-title::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 140px;
    height: 6px;
    background: #e9e9ec;
    border-radius: 6px;
} */
[dir="rtl"] .sec-title::before {
    right: calc(50% + 140px);
    transform: translateY(-50%);
}
[dir="rtl"] .sec-title::after {
    left: calc(50% + 140px);
    transform: translateY(-50%);
}

/* Contact & Footer */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 10px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
}
.contact-item .icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #f1ecff;
}
.muted {
    color: var(--muted);
    font-size: 13px;
}
.footer {
    background: #efefef;
    margin-top: 40px;
}
.footer__top {
    padding: 34px 0 26px;
    background: #efefef;
}
.footer__grid--top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 38px;
}

.ft-title {
    margin: 0 0 14px 0;
    font-size: 20px;
    font-weight: 700;
    color: #2b2b2b;
}

/* ===== Footer links columns ===== */
.ft-links {
    display: grid;
    grid-template-columns: auto auto;
    gap: 24px 40px;
    align-items: start;
    justify-content: center;
}

.ft-links__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
    justify-items: start;
}

.ft-links__list a {
    color: #2f2f2f;
    text-decoration: none;
    font-weight: 600;
}
.ft-links__list a:hover {
    text-decoration: underline;
}

.ft-logo {
    display: grid;
    justify-items: end;
}

.ft-logo img {
    height: 84px;
    object-fit: contain;
}

.footer__rule {
    background: #efefef;
}
.footer__rule .container {
    padding: 8px 0 16px;
}
.footer__rule span {
    display: block;
    height: 2px;
    width: 100%;
    background: #e3e3e8;
    border-radius: 2px;
}

/* حقوق النشر */
.footer__copy {
    text-align: center;
    color: #555;
    font-weight: 600;
    padding: 10px 0 26px;
    background: #efefef;
}

/* ===== RC Box (مربع الزر) ===== */
.rc-box {
    width: 100%;
    border: 3px solid #e6e6eb;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(30, 10, 80, 0.08);
    padding: 26px 22px;
    display: grid;
    gap: 16px;
    justify-items: center;
    text-align: center;
}
.rc-text {
    margin: 0;
    font-size: 16px;
    line-height: 1.9;
    color: #2f2f2f;
}
.rc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 50px;
    padding: 0 20px;
    border-radius: 14px;
    border: 3px solid #e6e6eb;
    background: #6f2cff;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.1px;
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.2s ease,
        border-color 0.2s ease, background 0.2s ease;
}
.rc-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 44px rgba(30, 10, 80, 0.12);
    border-color: #e0e1e8;
    background: #5d22ff;
}
.rc-btn:focus-visible {
    outline: 2px solid rgba(124, 92, 255, 0.45);
    outline-offset: 2px;
}
.rc-btn__ico {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

@media (max-width: 1000px) {
    :root {
        --topbar-offset: 104px;
    }
    .cards {
        grid-template-columns: 1fr 1fr;
    }
    .hero__panel {
        max-width: 680px;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .forms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .form-pill .f-title {
        font-size: 16px;
    }
    .h-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 900px) {
    .topbar__menu-btn {
        display: inline-flex;
        margin-inline-start: auto;
    }
    .topbar__links {
        margin-inline-start: 0;
        position: absolute;
        inset: calc(100% + 10px) 0 auto 0;
        margin-inline: 16px;
        padding: 10px;
        background: rgba(255, 255, 255, 0.9);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(140, 140, 160, 0.25);
        border-radius: 14px;
        box-shadow: 0 10px 30px rgba(22, 20, 60, 0.12);
        display: none;
        flex-direction: column;
        gap: 8px;
    }
    .topbar.nav-open .topbar__links {
        display: flex;
    }
    .kpis {
        grid-template-columns: 1fr 1fr;
    }
    .links-grid {
        grid-auto-rows: 150px;
        gap: 18px;
    }
    .hero.hero--banner {
        padding-top: calc(var(--topbar-offset) + 18px);
        padding-bottom: 24px;
    }
    .hero--banner .hero__inner {
        min-height: 220px;
        justify-content: center;
    }
    .hero--banner .hero__content {
        text-align: center;
    }
    .hero--banner .hero__title h1 {
        font-size: 34px;
    }
    .hero--banner .hero__subtitle {
        font-size: 18px;
    }
    .hero.hero--banner .hero__inner {
        justify-content: center;
    }
    .hero.hero--banner .hero__content {
        text-align: center;
        margin-inline: auto;
    }
    .hero.hero--banner .hero__title {
        text-align: center;
    }
    .footer__grid--top {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .ft-logo {
        justify-items: center;
    }
    .ft-links {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
    .ft-links__list {
        justify-items: center;
    }
}
@media (max-width: 640px) {
    :root {
        --topbar-offset: 96px;
        --hero-bg-height: 160px;
    }
    .hero {
        padding-bottom: 36px;
    }
    .hero__panel {
        padding: 22px;
        max-width: 100%;
    }
    .hero__title {
        text-align: center;
    }
    .hero__panel::before {
        display: none;
    }
    .hero-decor .sq {
        opacity: 0.12;
        transform: rotate(8deg);
    }

    .cards {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .about__frame {
        border-radius: 16px;
    }
    .forms-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .form-pill .f-ico {
        width: 96px;
    }
    .form-pill .f-title {
        font-size: 16px;
    }

    .h-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .h-card {
        padding: 22px;
        border-radius: 20px;
    }
    .h-card__title {
        font-size: 22px;
        line-height: 1.7;
    }
    .dl {
        width: 100%;
        height: 52px;
        border-width: 2px;
    }
    .dl-ico {
        width: 56px;
        height: 44px;
    }
    .dl-label {
        font-size: 18px;
    }
    .links-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 14px;
    }
    .hero--banner .hero__title h1 {
        font-size: 28px;
    }
    .hero--banner .hero__subtitle {
        font-size: 16px;
    }
    .banner-bg {
        opacity: 0.95;
    }
    .hero.hero--banner {
        padding-top: calc(var(--topbar-offset) + 14px);
        padding-bottom: 22px;
    }
    .hero--banner .hero__inner {
        min-height: 200px;
    }
}
