/*
Theme Name: Ta'lim
Theme URI: https://example.com/talim
Author: Ta'lim
Description: Ta'lim muassasalari tarmog'i uchun yagona blok tema. Har bir sayt "Ko'rinish → Muharrir" bo'limida bloklar, ranglar, fon, shriftlar, shapka va footer'ni o'zi sozlaydi; tayyor uslublar muassasa turiga mos (maktab, o'quv markazi, repetitor, universitet, bolalar markazi).
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: medportal
*/

:root {
    /* Uslub (theme.json / sayt muharriri) ranglari — plaginlar ham shu o'zgaruvchilardan foydalanadi */
    --mp-bg: var(--wp--preset--color--base, #F4F7FB);
    --mp-surface: var(--wp--preset--color--surface, #FFFFFF);
    --mp-text: var(--wp--preset--color--ink, #333333);
    --mp-text-soft: var(--wp--preset--color--ink-soft, #5B6573);
    --mp-muted: var(--wp--preset--color--muted, #8A94A3);
    --mp-border: var(--wp--preset--color--line, #E3E7ED);
    --mp-accent: var(--wp--preset--color--accent, #1E56A0);
    --mp-accent-dark: var(--wp--preset--color--accent-dark, #16407A);
    --mp-accent-tint: var(--wp--preset--color--accent-tint, #E4ECF7);
    --mp-cta: var(--wp--preset--color--cta, var(--mp-accent));
    --mp-cta-dark: color-mix(in srgb, var(--mp-cta) 80%, #000);
    --mp-footer-bg: var(--wp--preset--color--footer, #16233A);
    --mp-footer-ink: var(--wp--preset--color--footer-ink, #C3D2E8);
    --mp-radius: var(--wp--custom--radius, 14px);
    --mp-max-width: 1240px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.medportal {
    margin: 0;
    -webkit-font-smoothing: antialiased;
}


img { max-width: 100%; height: auto; display: block; }

.mp-container {
    max-width: var(--mp-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Top bar ---------- */
.mp-topbar {
    background: var(--mp-surface);
    border-bottom: 1px solid var(--mp-border);
}
.mp-topbar__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
    padding: 16px 0;
}
.mp-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 800;
    color: var(--mp-text);
}
.mp-logo__mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--mp-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mp-logo__mark svg { stroke: #fff; }
.mp-logo__accent { color: var(--mp-accent); }

.mp-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.mp-nav ul { display: flex; flex-wrap: wrap; gap: 24px; margin: 0; padding: 0; list-style: none; }
.mp-nav a { color: var(--mp-text-soft); font-weight: 600; font-size: 15px; }
.mp-nav a:hover { color: var(--mp-accent); text-decoration: none; }

.mp-lang { display: flex; gap: 6px; font-size: 13px; font-weight: 700; color: var(--mp-muted); }
.mp-lang a { color: var(--mp-muted); }
.mp-lang a.is-current { color: var(--mp-accent); }
.mp-lang a:hover { text-decoration: none; color: var(--mp-accent); }

/* Hidir ostidagi qo'shimcha qator: vaqt + hisob (asosiy menyuga xalaqit bermasligi uchun) */
.mp-topbar__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    padding: 8px 0;
    border-top: 1px solid var(--mp-border);
    background: var(--mp-surface);
}

.mp-clock {
    font-size: 13px;
    font-weight: 600;
    color: var(--mp-muted);
    white-space: nowrap;
}

.mp-account { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.mp-account--guest {
    font-weight: 700;
    color: #fff;
    background: var(--mp-cta, var(--mp-accent));
    padding: 8px 16px;
    border-radius: 8px;
}
.mp-account--guest:hover { background: var(--mp-cta-dark, var(--mp-accent-dark)); color: #fff; text-decoration: none; }
.mp-account__name { font-weight: 700; color: var(--mp-text); }
.mp-account__name:hover { color: var(--mp-accent); text-decoration: none; }
.mp-account__logout { color: var(--mp-muted); font-weight: 600; }
.mp-account__logout:hover { color: var(--mp-accent); text-decoration: none; }

/* ---------- Hero ---------- */
.mp-hero {
    position: relative;
    background: linear-gradient(180deg, var(--mp-accent-tint) 0%, var(--mp-bg) 100%);
    padding: 64px 0 48px;
}
.mp-hero__meta {
    position: absolute;
    top: 16px;
    right: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}
.mp-hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.mp-hero__kicker { font-size: 13.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mp-accent); }
.mp-hero h1 { margin: 0; font-size: 38px; line-height: 1.2; font-weight: 800; max-width: 720px; }
.mp-hero p { margin: 0; color: var(--mp-text-soft); max-width: 600px; font-size: 16px; }

/* ---------- Sections ---------- */
.mp-section { padding: 56px 0; }
.mp-section--surface { background: var(--mp-surface); }
.mp-section__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 24px;
}
.mp-section__head h2 { margin: 0; font-size: 24px; font-weight: 800; }
.mp-section__head a { font-size: 14px; font-weight: 700; }

/* ---------- Doctors teaser ---------- */
.mp-cta-band {
    border-radius: 20px;
    background: var(--mp-footer-bg);
    padding: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    align-items: center;
    justify-content: space-between;
}
.mp-cta-band__text { flex: 2 1 320px; }
.mp-cta-band__kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #6FD4CC; }
.mp-cta-band h2 { color: #fff; margin: 6px 0; font-size: 24px; }
.mp-cta-band p { color: #C3D2E8; margin: 0; max-width: 460px; }
.mp-cta-band__action { flex: 0 0 auto; }
.mp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    border-radius: 10px;
    background: var(--mp-cta, var(--mp-accent));
    color: #fff;
    font-weight: 700;
    font-size: 14.5px;
    padding: 13px 22px;
    cursor: pointer;
}
.mp-btn:hover { background: var(--mp-cta-dark, var(--mp-accent-dark)); color: #fff; text-decoration: none; }

/* ---------- Generic content card (used by page.php fallback) ---------- */
.mp-page-content {
    background: var(--mp-surface);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    padding: 32px;
}
.mp-page-content h1.mp-page-title { font-size: 28px; font-weight: 800; margin: 0 0 20px; }

/* ---------- Footer ---------- */
.mp-footer { background: var(--mp-footer-bg); color: var(--mp-footer-ink); margin-top: 40px; }
.mp-footer__top { display: flex; flex-wrap: wrap; gap: 36px; justify-content: space-between; padding: 48px 0 28px; }
.mp-footer__brand { flex: 2 1 240px; }
.mp-footer__brand strong { color: #fff; font-size: 18px; }
.mp-footer__col { flex: 1 1 160px; display: flex; flex-direction: column; gap: 10px; }
.mp-footer__col-title { font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #5D7389; }
.mp-footer__col a { color: #C3D2E8; font-size: 14px; }
.mp-footer__bottom { border-top: 1px solid #1B2F42; padding: 18px 0; font-size: 13px; color: #5D7389; }

.mp-social { display: flex; gap: 10px; }
.mp-social__link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C3D2E8;
}
.mp-social__link svg { width: 17px; height: 17px; stroke: currentColor; }
.mp-social__link:hover { background: var(--mp-accent); color: #fff; text-decoration: none; }

.mp-footer__account .mp-account--guest { background: var(--mp-cta, var(--mp-accent)); }
.mp-footer__account .mp-account { gap: 14px; }
.mp-footer__account .mp-account__name { color: #fff; font-weight: 700; }
.mp-footer__account .mp-account__name:hover { color: #6FD4CC; }
.mp-footer__account .mp-account__logout { color: #8FA3B8; }
.mp-footer__account .mp-account__logout:hover { color: #fff; }

/* ---------- Layout with sidebar ---------- */
.mp-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}
.mp-layout__main { flex: 1 1 auto; min-width: 0; }
.mp-sidebar {
    flex: 0 0 300px;
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.mp-sidebar__widget {
    background: var(--mp-surface);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    padding: 22px;
}
.mp-sidebar__widget-title {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 800;
    color: var(--mp-text);
}

@media (max-width: 900px) {
    .mp-layout { flex-direction: column; }
    .mp-sidebar { flex: 1 1 auto; width: 100%; }
}

/* ---------- 404 ---------- */
.mp-404 { text-align: center; padding: 80px 0; }
.mp-404 h1 { font-size: 64px; margin: 0; color: var(--mp-accent); }

/* ---------- sarlavha: qidiruv va savat ---------- */
.mp-hsearch { display: flex; align-items: center; flex: 1 1 260px; max-width: 420px; position: relative; }
.mp-hsearch .mpd-sug { flex: 1; }
.mp-hsearch input[type=search] { width: 100%; height: 38px; border: 1px solid var(--mp-border, #e3e9ec); border-radius: 999px; padding: 0 40px 0 14px; font: inherit; font-size: 14px; background: #fff; }
.mp-hsearch input[type=search]:focus { outline: none; border-color: var(--mp-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mp-accent) 18%, transparent); }
.mp-hsearch button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--mp-muted, #5b6b73); cursor: pointer; display: grid; place-items: center; }
.mp-cart { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--mp-text, #1a2b33); }
.mp-cart:hover { background: color-mix(in srgb, var(--mp-accent) 10%, #fff); color: var(--mp-accent); text-decoration: none; }
.mp-cart__n { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--mp-cta, var(--mp-accent)); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.mp-cart__n[hidden] { display: none; }
.mp-topbar__meta, .mp-hero__meta { flex-wrap: wrap; }
.mp-cta-band--shop .mp-shopsearch { display: flex; gap: 8px; margin-top: 12px; max-width: 560px; }
.mp-cta-band--shop .mp-shopsearch > :first-child, .mp-cta-band--shop .mp-shopsearch .mpd-sug { flex: 1; }
.mp-cta-band--shop .mp-shopsearch input { width: 100%; height: 46px; border: 1px solid var(--mp-border, #e3e9ec); border-radius: 12px; padding: 0 14px; font: inherit; }
.mp-btn--ghost { background: transparent; color: var(--mp-accent); border: 1px solid var(--mp-accent); }
.mp-sres { display: grid; gap: 22px; }
.mp-sres__group h2 { font-size: 18px; margin: 0 0 10px; }
.mp-sres__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.mp-sres__list a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--mp-border, #e3e9ec); border-radius: 14px; background: #fff; color: inherit; }
.mp-sres__list a:hover { border-color: var(--mp-accent); text-decoration: none; }
.mp-sres__img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: 0 0 44px; display: grid; place-items: center; background: color-mix(in srgb, var(--mp-accent) 12%, #fff); color: var(--mp-accent); font-weight: 800; }
.mp-sres__img.is-logo { border-radius: 10px; }
.mp-sres__txt { display: grid; min-width: 0; }
.mp-sres__txt small { color: var(--mp-muted, #5b6b73); }
.mp-sres__price { margin-left: auto; font-weight: 700; color: var(--mp-accent); white-space: nowrap; }
@media (max-width: 720px) { .mp-hsearch { order: 5; max-width: none; flex-basis: 100%; } }

@media (max-width: 680px) {
    .mp-hero h1 { font-size: 28px; }
    .mp-cta-band { padding: 28px; }
    .mp-hero__meta { position: static; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
    .mp-hero { padding-top: 24px; }
}
.mp-hsearch { min-width: 260px; }
.mp-hsearch .mpd-sug__list { left: 0; right: auto; width: max(100%, 360px); max-width: calc(100vw - 32px); z-index: 60; }
@media (max-width: 720px) { .mp-hsearch { min-width: 0; } .mp-hsearch .mpd-sug__list { width: 100%; } }


/* ================= Blok tema (2.0) ================= */
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-site-blocks { min-height: 100vh; display: flex; flex-direction: column; }
.wp-site-blocks > .mp-main, .wp-site-blocks > main { flex: 1 0 auto; }

/* shapka */
.mp-topbar { background: var(--mp-surface); border-bottom: 1px solid var(--mp-border); }
.mp-topbar .mp-topbar__row { padding: 14px 0; gap: 20px; align-items: center; }
.mp-brand { gap: 10px; align-items: center; }
/* «Logotip chapda, menyu o'ngda»: menyu sig'masdan pastki qatorga tushsa ham o'ngda tursin (chapga yopishmasin) */
.mp-topbar.mph-layout-row .mp-topbar__row > .wp-block-navigation { margin-left: auto; }
:where(.mp-brand .wp-block-site-title) a { color: var(--mp-text); }
.mp-topbar .wp-block-navigation a:hover { color: var(--mp-accent); text-decoration: none; }
.mp-topbar .mp-topbar__meta { gap: 16px; align-items: center; }
.mp-tools { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; justify-content: flex-end; }
.mp-tools .mp-hsearch { flex: 1 1 260px; }
.mp-lang--list { flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.mp-lang--list a { color: inherit; }

/* asosiy qism */
.mp-main { padding-top: 32px; padding-bottom: 56px; }
.mp-front { padding: 0; }
.mp-page-title, .mp-main h1.wp-block-post-title { margin: 0 0 20px; }
.mp-meta { color: var(--mp-muted); font-size: 13px; font-weight: 600; }
.mp-card { background: var(--mp-surface); border: 1px solid var(--mp-border); border-radius: var(--mp-radius); padding: 18px 20px; gap: 8px; height: 100%; }
.mp-card .wp-block-post-featured-image { margin: -18px -20px 6px; }
.mp-card .wp-block-post-featured-image img { border-radius: var(--mp-radius) var(--mp-radius) 0 0; }
.mp-card .wp-block-post-title { font-size: 17px; margin: 0; }
.mp-card .wp-block-post-title a { color: var(--mp-text); }
.mp-card .wp-block-post-excerpt { color: var(--mp-text-soft); font-size: 14px; margin: 0; }
.mp-single .wp-block-post-featured-image img { border-radius: var(--mp-radius); }
:where(.mp-hero) .wp-block-site-title { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; margin: 0; }
:where(.mp-hero .wp-block-site-title) a { color: var(--mp-text); }
.mp-hero { padding-top: 56px; padding-bottom: 44px; }
.mp-hero > * { text-align: center; }
.mp-netlink { text-align: center; }
.mp-section .wp-block-heading { margin-top: 0; }
.mp-cta-band .wp-block-heading { color: #fff; margin: 6px 0; }
.mp-cta-band p:not(.mp-cta-band__kicker) { color: #C3D2E8; margin: 0; }
.mp-cta-band .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; border-color: rgba(255,255,255,.6); background: transparent; }
.mp-shopsearch { display: flex; gap: 8px; margin-top: 12px; max-width: 560px; }
.mp-shopsearch > :first-child, .mp-shopsearch .mpd-sug { flex: 1; }
.mp-shopsearch input { width: 100%; height: 46px; border: 1px solid var(--mp-border); border-radius: 12px; padding: 0 14px; font: inherit; }
.mp-module + .mp-module { margin-top: 40px; }
.mp-empty { color: var(--mp-muted); }
.mp-hsearch--big { max-width: 640px; margin: 0 0 20px; }
.mp-hsearch--big input[type=search] { height: 46px; font-size: 16px; }

/* footer */
.mp-footer { margin-top: 0; }
.mp-footer .mp-footer__top { padding: 48px 0 28px; gap: 36px; }
:where(.mp-footer .wp-block-site-title) a { color: #fff; }
/* Muharrirda blokka rang tanlansa (Tipografiya → Rang) — havola shu rangni oladi; «Elementlar → Havola» undan ham ustun */
:where(.wp-block-site-title.has-text-color) a, :where(.wp-block-site-tagline.has-text-color) a { color: inherit; }
.mp-footer .wp-block-site-tagline { color: var(--mp-footer-ink); font-size: 14px; max-width: 360px; }
.mp-footer a { color: var(--mp-footer-ink); }
.mp-footer a:hover { color: #fff; }
.mp-footer .mp-footer__col-title { margin: 0; }
.mp-footer .mp-account__name { color: #fff; }
.mp-footer .mp-footer__bottom { border-top: 1px solid color-mix(in srgb, var(--mp-footer-ink) 18%, transparent); padding: 18px 0; font-size: 13px; color: color-mix(in srgb, var(--mp-footer-ink) 70%, transparent); }
.mp-social-links .wp-social-link { background: rgba(255,255,255,.08); color: var(--mp-footer-ink); }

/* muharrir: dinamik blok oldindan ko'rinishi */
.mp-block-preview { min-height: 24px; }
.mp-block-preview .components-placeholder { min-height: 60px; }
@media (max-width: 720px) {
    .mp-topbar .mp-topbar__meta { justify-content: flex-start; }
    .mp-tools { flex-basis: 100%; }
}
/* telefon: shapka ixcham (soat yashirin, bo'shliqlar kichik) */
@media (max-width: 600px) {
    .mp-topbar .mp-topbar__row { padding: 8px 0; gap: 10px; }
    .mp-topbar .mp-topbar__meta { gap: 8px 12px; padding-top: 0; padding-bottom: 8px; }
    .mp-topbar .mp-clock { display: none; }
    .mp-topbar .mp-tools { gap: 8px; }
}

/* yon chekinish (blok guruhlar sahifa chetiga yopishmasin) */
.mp-topbar, .mp-footer, .mp-main, .mp-hero, .mp-front > .wp-block-group, .mp-section { padding-left: max(16px, var(--wp--style--root--padding-left, 24px)); padding-right: max(16px, var(--wp--style--root--padding-right, 24px)); }
.mp-front > .mp-section .mp-section { padding-left: 0; padding-right: 0; }

.mp-posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.mp-posts-grid .mp-card { display: flex; flex-direction: column; }
.mp-posts-grid .mp-card h3 { font-size: 17px; margin: 0; }
.mp-posts-grid .mp-card h3 a { color: var(--mp-text); }
.mp-posts-grid .mp-card p { margin: 0; }
.mp-posts-grid .mp-card p:last-child { color: var(--mp-text-soft); font-size: 14px; }
.mp-card__img { margin: -18px -20px 6px; display: block; }
.mp-card__img img { border-radius: var(--mp-radius) var(--mp-radius) 0 0; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.mp-section:empty, .mp-section:not(:has(*)) { display: none; }

/* Mobil menyu (ochilgan holat): chapdan, yirikroq, ajratilgan qatorlar */
.wp-block-navigation__responsive-container.is-menu-open { padding: 20px 20px 32px; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { align-items: stretch !important; padding-top: 48px; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: stretch !important; gap: 0 !important; width: 100%; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--wp--preset--color--line, #e5e7eb); }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { display: block; width: 100%; padding: 14px 4px !important; font-size: 1.05rem; font-weight: 600; text-align: left; color: var(--wp--preset--color--ink, #0f172a); }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--accent, #1e56a0); }

/* Бренд: оранжевый акцент в мелких элементах */
.mp-hero__kicker { color: var(--wp--preset--color--accent-2, #F7941E) !important; }
.mp-cta-band__kicker { color: var(--wp--preset--color--accent-2, #F7941E) !important; }

/* Hero: две иллюстрации по краям, поиск по центру */
.mp-hero--split {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(320px, 560px) minmax(240px, 1fr);
  gap: 26px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px 24px 10px;
}
.mp-hero__media { border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; box-shadow: 0 10px 26px rgba(16, 42, 80, .10); background: #fff; }
.mp-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-hero__center { text-align: center; }
.mp-hero__title { margin: 0 0 10px; font-size: clamp(24px, 2.6vw, 40px); line-height: 1.15; }
.mp-hero__lead { margin: 0 0 16px; color: var(--wp--preset--color--ink-soft, #5B6573); }
@media (max-width: 1100px) {
  .mp-hero--split { grid-template-columns: 1fr; }
  .mp-hero__media { display: none; }
}

/* Мобильная шапка и hero: убираем горизонтальный вылет */
@media (max-width: 700px) {
  .mp-hsearch { min-width: 0; width: 100%; }
  .mp-topbar__meta { flex-wrap: wrap; gap: 8px; justify-content: flex-start; }
  .mp-topbar__row { flex-wrap: wrap; gap: 10px; }
  .mp-hero--split { padding: 16px 14px 8px; gap: 14px; }
  .mp-hero__title { font-size: 26px; }
  .mp-hero__center > * { min-width: 0; max-width: 100%; }
}

/* Единый акцент для плагинов каталога, вакансий и ленты */
:root {
  --slp-accent: #1E56A0;
  --slp-accent-2: #2B6CB0;
}
body .slp-app, body .slp-loc, body .mpj-app, body .mpf-app {
  --slp-accent: #1E56A0;
  --slp-accent-2: #2B6CB0;
  --slp-ink: #333333;
  --slp-muted: #5B6573;
  --slp-line: #E3E7ED;
  --slp-soft: #F4F7FB;
}

/* Тарифы */
.mp-tariffs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 24px 0 10px;
}
.mp-tariff {
  border: 1px solid var(--wp--preset--color--line, #E3E7ED); border-radius: 18px; padding: 22px 22px 18px;
  background: #fff; display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 6px 20px rgba(16, 42, 80, .06);
}
.mp-tariff:nth-child(3) { border-color: var(--wp--preset--color--accent, #1E56A0); box-shadow: 0 10px 28px rgba(30, 86, 160, .16); }
.mp-tariff__name { margin: 0; font-size: 20px; }
.mp-tariff__price { font-size: 28px; font-weight: 800; color: var(--wp--preset--color--accent, #1E56A0); }
.mp-tariff__price span { font-size: 14px; font-weight: 500; color: var(--wp--preset--color--ink-soft, #5B6573); margin-left: 4px; }
.mp-tariff__year { font-size: 13px; color: var(--wp--preset--color--ink-soft, #5B6573); margin-top: -4px; }
.mp-tariff__desc { margin: 4px 0 8px; font-size: 14px; line-height: 1.5; color: var(--wp--preset--color--ink-soft, #5B6573); }
.mp-tariff__limits { list-style: none; margin: auto 0 0; padding: 0; font-size: 14px; }
.mp-tariff__limits li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px dashed var(--wp--preset--color--line, #E3E7ED); }
.mp-tariff__limits li span { color: var(--wp--preset--color--ink-soft, #5B6573); }

/* Новости */
.mp-news { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; margin: 8px 0 28px; }
.mp-news__card { background: #fff; border: 1px solid var(--wp--preset--color--line, #E3E7ED); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 6px 18px rgba(16, 42, 80, .06); }
.mp-news__media { display: block; aspect-ratio: 16 / 9; background: #EAF1FA; text-decoration: none; }
.mp-news__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-news__ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #2B6CB0, #1E56A0); }
.mp-news__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.mp-news__cat { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--wp--preset--color--accent-2, #F7941E); }
.mp-news__title { margin: 0; font-size: 18px; line-height: 1.3; }
.mp-news__title a { color: inherit; text-decoration: none; }
.mp-news__title a:hover { color: var(--wp--preset--color--accent, #1E56A0); }
.mp-news__excerpt { margin: 0; font-size: 14px; color: var(--wp--preset--color--ink-soft, #5B6573); }
.mp-news__meta { margin-top: auto; font-size: 12.5px; color: var(--wp--preset--color--muted, #8A94A3); }
.mp-news__empty { color: var(--wp--preset--color--ink-soft, #5B6573); }

.mp-news__more { margin: 4px 0 0; text-align: right; }
.mp-news__more a { font-weight: 600; text-decoration: none; color: var(--wp--preset--color--accent, #1E56A0); }

