:root {
    --navy: #061b3d;
    --navy-2: #0c2b57;
    --teal: #089a9d;
    --mint: #58cdb8;
    --orange: #ef8f26;
    --blue-soft: #eef7ff;
    --mint-soft: #effbf8;
    --orange-soft: #fff6eb;
    --paper: #ffffff;
    --surface: #f6f9fc;
    --line: #dce7f1;
    --text: #12213d;
    --muted: #63708a;
    --shadow: 0 14px 34px rgba(6, 27, 61, .09);
    --radius: 8px;
    --container: 1380px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 48%, #ffffff 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(var(--container), calc(100% - 48px));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.header-inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand img {
    width: 238px;
    height: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #101d38;
    font-weight: 750;
    font-size: 15px;
    white-space: nowrap;
}

.nav a {
    padding: 10px 0;
    border-bottom: 2px solid transparent;
}

.nav a:hover {
    border-color: var(--teal);
}

.nav-cta {
    padding: 10px 14px !important;
    color: #fff;
    background: var(--navy);
    border: 0 !important;
    border-radius: var(--radius);
}

.nav-offer {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-offer .nav-cta {
    min-height: 46px;
    padding-inline: 16px !important;
}

.nav-deal-card {
    min-height: 54px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1px 8px;
    align-content: center;
    padding: 6px 10px;
    background: linear-gradient(135deg, #fff6eb 0%, #effbf8 100%);
    border: 1px solid rgba(8, 154, 157, .22);
    border-radius: var(--radius);
    line-height: 1.05;
    box-shadow: 0 8px 18px rgba(6, 27, 61, .06);
}

.deal-old {
    grid-column: 1;
    align-self: end;
    color: #8a4d05;
    font-size: 12px;
    font-weight: 900;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.deal-price {
    grid-column: 2;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.deal-price em {
    color: var(--muted);
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
}

.deal-price strong {
    color: var(--teal);
    font-size: 18px;
    font-weight: 950;
}

.nav-deal-card small {
    grid-column: 1 / -1;
    color: var(--navy);
    font-size: 11px;
    font-weight: 800;
}

.mobile-nav {
    display: none;
    position: relative;
}

.mobile-nav summary {
    cursor: pointer;
    list-style: none;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-weight: 800;
}

.mobile-menu-panel {
    position: absolute;
    right: 0;
    top: 44px;
    min-width: 230px;
    display: grid;
    gap: 4px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.mobile-menu-panel > a,
.mobile-menu-panel > span {
    padding: 9px 10px;
    border-radius: 6px;
}

.mobile-menu-panel a.mobile-menu-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #fff;
    background: var(--navy);
    font-weight: 900;
}

.mobile-menu-cta span {
    display: grid;
    justify-items: end;
    line-height: 1.08;
}

.mobile-menu-cta del {
    color: #ffce99;
    font-size: 11px;
    font-weight: 850;
}

.mobile-menu-cta strong {
    color: #bfeee5;
    font-size: 15px;
    font-weight: 950;
}

.mobile-menu-cta small {
    color: #bfeee5;
    font-size: 10px;
    font-weight: 850;
}

.mobile-menu-panel > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.notice {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #fff;
}

.notice.success {
    border-color: rgba(8, 154, 157, .28);
    background: var(--mint-soft);
}

.notice.error {
    border-color: rgba(198, 54, 54, .24);
    background: #fff2f2;
}

.ad-band {
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 16px 0;
}

.sponsor-card {
    min-height: 112px;
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 16px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.sponsor-card.tone-1 {
    background: var(--blue-soft);
}

.sponsor-card.tone-2 {
    background: var(--mint-soft);
}

.sponsor-card.tone-3 {
    background: var(--orange-soft);
}

.sponsor-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    color: var(--navy);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 50%;
    font-weight: 900;
}

.sponsor-icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.sponsor-card strong,
.sponsor-card small,
.sponsor-card b {
    display: block;
}

.sponsor-card strong {
    color: var(--navy);
    font-size: 17px;
}

.sponsor-card small {
    color: var(--muted);
    margin: 4px 0 9px;
}

.sponsor-card b {
    color: var(--teal);
    font-size: 13px;
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 36px 0 22px;
    border-bottom: 1px solid var(--line);
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 40px;
    right: 34%;
    z-index: 0;
    width: min(34vw, 460px);
    height: 320px;
    background: url("../img/hero/medical-line.png") center / contain no-repeat;
    opacity: .13;
    pointer-events: none;
}

.hero-medical-art {
    display: none !important;
    width: min(44vw, 560px);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(380px, .88fr);
    gap: 42px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    color: #067879;
    background: var(--mint-soft);
    border: 1px solid rgba(8, 154, 157, .26);
    border-radius: 999px;
    padding: 7px 12px;
    font-weight: 850;
    font-size: 13px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 780px;
    margin: 18px 0 16px;
    color: var(--navy);
    font-size: clamp(36px, 4.4vw, 64px);
    line-height: 1.04;
    font-weight: 950;
}

.hero-copy p,
.page-hero p {
    max-width: 690px;
    color: #3f4d68;
    font-size: 18px;
}

.search-panel {
    max-width: 820px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.search-input {
    display: block;
}

.search-input span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.search-input input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.search-controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr) 130px;
    gap: 10px;
    margin-top: 10px;
}

select,
input,
textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

textarea {
    resize: vertical;
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    color: #fff;
    background: var(--teal);
    border: 1px solid var(--teal);
    border-radius: var(--radius);
    font-weight: 850;
    cursor: pointer;
}

.button.secondary,
button.secondary {
    color: var(--navy);
    background: #fff;
    border-color: var(--line);
}

.button.full {
    width: 100%;
}

.button.large {
    min-height: 54px;
    padding-inline: 24px;
}

.popular-searches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    color: var(--muted);
}

.popular-searches a,
.tag-row a,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 10px;
    color: #075d72;
    background: var(--mint-soft);
    border: 1px solid rgba(8, 154, 157, .22);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.showcase-panel,
.filters-panel,
.profile-contact,
.payment-box,
.admin-login,
.info-section {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.showcase-panel {
    padding: 22px;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.panel-head strong,
.panel-head small {
    display: block;
}

.panel-head small {
    color: var(--muted);
}

.panel-head b {
    align-self: start;
    color: #087665;
    background: var(--mint-soft);
    border: 1px solid rgba(8, 154, 157, .22);
    border-radius: 999px;
    padding: 8px 12px;
}

.mini-company-list {
    display: grid;
    gap: 10px;
}

.mini-company {
    display: grid;
    grid-template-columns: 86px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.mini-company small {
    color: var(--muted);
}

.mini-company b,
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #087665;
    background: var(--mint-soft);
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    white-space: nowrap;
}

.badge.muted {
    color: var(--navy);
    background: var(--blue-soft);
}

.badge.urgent {
    color: #8a4d05;
    background: #fff3de;
}

.logo-box,
.firm-logo,
.company-logo,
.profile-logo,
.article-thumb {
    display: grid;
    place-items: center;
    color: var(--navy);
    background: #f5fbff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-weight: 950;
    text-align: center;
}

.logo-box {
    min-height: 54px;
    font-size: 11px;
}

.panel-link {
    display: block;
    margin-top: 14px;
    color: var(--navy);
    font-weight: 850;
    text-align: right;
}

.emergency-section {
    padding: 22px 0 4px;
}

.emergency-shell {
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f3fbff 58%, #effbf8 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 28px rgba(6, 27, 61, .07);
}

.emergency-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.emergency-head h2 {
    margin: 0 0 4px;
    color: var(--navy);
    font-size: 24px;
}

.emergency-head p {
    margin: 0;
    color: var(--muted);
}

.emergency-head > a {
    color: var(--navy);
    font-weight: 850;
    white-space: nowrap;
}

.emergency-type-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.emergency-type-card {
    min-height: 118px;
    display: grid;
    grid-template-columns: 54px 1fr;
    grid-template-rows: 1fr auto;
    gap: 4px 12px;
    align-items: center;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.emergency-type-card span {
    grid-row: 1 / 3;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: var(--teal);
    background: var(--mint-soft);
    border: 1px solid rgba(8, 154, 157, .24);
    border-radius: 50%;
    font-weight: 950;
    font-size: 18px;
}

.emergency-type-card strong {
    color: var(--navy);
    font-size: 16px;
    line-height: 1.25;
}

.emergency-type-card small {
    color: var(--muted);
    font-weight: 850;
}

.emergency-type-card.tone-all span {
    color: var(--navy);
    background: var(--blue-soft);
}

.emergency-type-card.tone-vet span {
    color: #8a4d05;
    background: #fff3de;
    border-color: rgba(239, 143, 38, .28);
}

.emergency-type-card.tone-dental span {
    color: #075d72;
    background: #eff7ff;
}

.emergency-company-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.emergency-company-card,
.emergency-empty {
    min-height: 190px;
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.emergency-company-top {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
}

.emergency-pill,
.emergency-verified {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
}

.emergency-pill {
    color: #8a4d05;
    background: #fff3de;
}

.emergency-verified {
    color: var(--navy);
    background: var(--blue-soft);
}

.emergency-company-card h3 {
    margin: 2px 0 0;
    color: var(--navy);
    font-size: 18px;
    line-height: 1.28;
}

.emergency-company-card p,
.emergency-empty p {
    margin: 0;
    color: var(--muted);
}

.emergency-company-card small {
    color: #33415f;
    font-weight: 800;
}

.emergency-company-card b {
    color: #4f5d76;
    font-size: 13px;
}

.emergency-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.emergency-actions a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    color: var(--navy);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-weight: 850;
}

.emergency-actions a:first-child {
    color: #fff;
    background: var(--teal);
    border-color: var(--teal);
}

.emergency-empty {
    grid-column: 1 / -1;
    align-content: center;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    padding: 20px 0 8px;
}

.quick-card {
    min-height: 134px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 5px;
    padding: 16px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 22px rgba(6, 27, 61, .06);
}

.quick-card .quick-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f5fbff;
}

.quick-card .quick-icon img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.quick-card strong {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-card small {
    color: var(--teal);
    font-weight: 800;
}

.section-block {
    padding: 28px 0;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.section-head h2 {
    margin: 0;
    color: var(--navy);
    font-size: 24px;
}

.section-head a {
    color: var(--navy);
    font-weight: 850;
}

.feature-grid,
.product-grid,
.article-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.firm-card,
.product-card,
.article-card,
.company-result-card,
.result-ad,
.empty-state {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 22px rgba(6, 27, 61, .06);
}

.firm-card.compact {
    min-height: 106px;
    display: grid;
    grid-template-columns: 92px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
}

.firm-logo {
    min-height: 72px;
    padding: 8px;
    font-size: 12px;
}

.firm-card h3,
.product-card strong,
.article-card h3 {
    color: var(--navy);
    margin: 0 0 4px;
    font-size: 16px;
}

.firm-card p,
.product-card p,
.article-card p {
    color: var(--muted);
    margin: 0;
}

.product-card {
    min-height: 148px;
    padding: 18px;
}

.product-card small {
    display: inline-block;
    margin-top: 12px;
    color: var(--teal);
    font-weight: 850;
}

.article-card {
    min-height: 102px;
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 14px;
    padding: 12px;
}

.article-thumb {
    min-height: 78px;
    color: var(--teal);
}

.article-card.visual {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    align-items: stretch;
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.article-card.visual > div {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 18px;
}

.article-card.visual .article-image {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 5 / 3;
    object-fit: cover;
    object-position: center;
    background: var(--surface);
}

.article-grid.large .article-card.visual {
    min-height: 0;
    grid-template-columns: 1fr;
}

.article-grid.large .article-card.visual .article-image {
    min-height: 0;
}

.article-card small {
    color: var(--muted);
    font-weight: 750;
}

.pagination-wrap {
    margin: 22px 0 0;
}

.pagination-summary {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 16px;
    font-weight: 750;
}

.pagination,
ul.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination li,
ul.pagination li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination a,
.pagination span,
.pagination .page-link {
    min-width: 38px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    color: var(--navy);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-weight: 850;
    box-shadow: 0 8px 18px rgba(6, 27, 61, .05);
}

.pagination a:hover {
    color: #fff;
    background: var(--teal);
    border-color: var(--teal);
}

.pagination .active span {
    color: #fff;
    background: var(--navy);
    border-color: var(--navy);
}

.pagination .disabled span {
    color: var(--muted);
    background: var(--surface);
    opacity: .65;
}

.footer {
    margin-top: 34px;
    padding: 30px 0;
    color: #d8e5f2;
    background: var(--navy);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.footer p {
    margin: 4px 0 0;
    color: #aabbd1;
}

.footer nav {
    display: flex;
    gap: 18px;
}

.page-hero {
    padding: 38px 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.compact-hero h1 {
    font-size: clamp(30px, 3.2vw, 48px);
}

.article-hero {
    background: linear-gradient(180deg, #ffffff 0%, #f4fbff 100%);
}

.article-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
    gap: 32px;
    align-items: center;
}

.article-hero-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-weight: 800;
}

.article-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    align-items: start;
    padding: 26px 0;
}

.article-body-card {
    display: grid;
    gap: 18px;
}

.article-body,
.article-sponsor-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 22px rgba(6, 27, 61, .06);
}

.article-body {
    padding: 28px;
    font-size: 17px;
}

.article-body h2,
.article-body h3 {
    color: var(--navy);
    margin-top: 26px;
}

.article-body p {
    color: #33415f;
}

.article-body ul,
.article-body ol {
    color: #33415f;
    padding-left: 22px;
}

.article-inline-figure {
    margin: 26px 0 0;
}

.article-inline-figure img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.article-inline-figure figcaption {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

.article-sponsor-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px 18px;
    align-items: center;
    padding: 18px;
    background: var(--mint-soft);
}

.article-sponsor-box strong {
    color: var(--navy);
    font-size: 18px;
}

.article-sponsor-box p {
    margin: 0;
    color: #33415f;
}

.article-sidebar {
    position: sticky;
    top: 108px;
    display: grid;
    gap: 16px;
}

.related-article-list {
    display: grid;
    gap: 10px;
}

.related-article-card {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 10px;
    align-items: center;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-weight: 850;
}

.related-article-card img {
    width: 86px;
    height: 62px;
    object-fit: cover;
    border-radius: 6px;
}

.inline-search {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 10px;
    max-width: 720px;
    margin-top: 20px;
}

.results-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 22px;
    padding: 26px 0;
    align-items: start;
}

.filters-panel {
    position: sticky;
    top: 108px;
    padding: 18px;
}

.filters-panel h2,
.profile-contact h2,
.payment-box h2,
.info-section h2 {
    color: var(--navy);
    margin-bottom: 12px;
    font-size: 20px;
}

.filters-panel form,
.company-form,
.admin-login,
.profile-contact {
    display: grid;
    gap: 14px;
}

label {
    display: grid;
    gap: 7px;
    color: #2c3a55;
    font-weight: 800;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 750;
}

.check-row input,
.check-grid input,
.product-choice-grid input {
    width: auto;
    min-height: auto;
}

.results-list {
    display: grid;
    gap: 14px;
}

.results-list.single-column {
    max-width: 1080px;
    padding: 26px 0;
}

.result-ad {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    background: var(--orange-soft);
}

.result-ad.inline {
    background: var(--blue-soft);
}

.result-ad span {
    color: var(--muted);
}

.company-result-card {
    display: grid;
    grid-template-columns: 96px 1fr 140px;
    gap: 16px;
    align-items: center;
    padding: 16px;
}

.company-logo {
    width: 96px;
    min-height: 86px;
    overflow: hidden;
    font-size: 12px;
}

.company-title-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
}

.company-title-row > span {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.company-title-row h2 {
    margin: 0;
    color: var(--navy);
    font-size: 21px;
}

.company-result-main p {
    margin: 8px 0;
    color: var(--muted);
}

.meta-lines {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: #33415f;
    font-size: 14px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tag-row.big a,
.tag-row.big span {
    min-height: 38px;
    padding-inline: 14px;
}

.company-actions {
    display: grid;
    gap: 10px;
}

.empty-state {
    padding: 24px;
}

.profile-cover {
    padding: 28px 0 0;
}

.cover-box {
    min-height: 270px;
    display: flex;
    align-items: end;
    padding: 22px;
    background: linear-gradient(135deg, #eaf7ff, #f4fffc);
    background-size: cover;
    background-position: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.profile-summary {
    width: 100%;
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 18px;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.profile-logo {
    width: 118px;
    height: 96px;
    overflow: hidden;
    padding: 8px;
}

.profile-summary h1 {
    margin: 10px 0 0;
    font-size: clamp(28px, 3vw, 42px);
}

.profile-layout,
.product-page-layout,
.form-layout,
.admin-company-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 22px;
    align-items: start;
    padding: 26px 0;
}

.profile-contact,
.payment-box {
    padding: 18px;
}

.profile-contact {
    position: sticky;
    top: 108px;
}

.map-box {
    min-height: 160px;
    display: grid;
    place-items: center;
    color: var(--muted);
    background: var(--surface);
    border: 1px dashed #b8c8d8;
    border-radius: var(--radius);
}

.profile-content {
    display: grid;
    gap: 16px;
}

.info-section {
    padding: 20px;
}

.info-section.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

details {
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

summary {
    cursor: pointer;
    color: var(--navy);
    font-weight: 850;
}

.product-list {
    display: grid;
    gap: 10px;
}

.product-list a,
.product-list span {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.form-layout {
    grid-template-columns: 330px 1fr;
}

.payment-box {
    position: sticky;
    top: 108px;
    background: var(--mint-soft);
}

.company-form {
    gap: 18px;
}

.form-section {
    padding: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 22px rgba(6, 27, 61, .06);
}

.form-section h2 {
    color: var(--navy);
    margin-bottom: 14px;
}

.form-section h3 {
    color: var(--navy-2);
    margin: 20px 0 10px;
    font-size: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-grid .wide {
    grid-column: 1 / -1;
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.check-grid label,
.product-choice-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-weight: 750;
}

.product-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.product-choice-grid > div {
    display: grid;
    gap: 7px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.help-text {
    color: var(--muted);
}

.narrow {
    max-width: 460px;
    padding: 26px 0;
}

.admin-login {
    padding: 20px;
}

.admin-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.admin-stat-grid a {
    padding: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 22px rgba(6, 27, 61, .06);
}

.admin-stat-grid strong {
    display: block;
    color: var(--teal);
    font-size: 34px;
}

.admin-table {
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

th {
    color: var(--navy);
    background: var(--surface);
}

td a {
    color: var(--teal);
    font-weight: 850;
}

@media (max-width: 1100px) {
    .sponsor-grid,
    .hero-grid,
    .results-layout,
    .profile-layout,
    .product-page-layout,
    .form-layout,
    .admin-company-layout,
    .article-hero-grid,
    .article-page-layout {
        grid-template-columns: 1fr;
    }

    .filters-panel,
    .profile-contact,
    .payment-box,
    .article-sidebar {
        position: static;
    }

    .quick-grid,
    .feature-grid,
    .product-grid,
    .article-grid,
    .admin-stat-grid,
    .emergency-type-grid,
    .emergency-company-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 860px) {
    .container {
        width: min(100% - 28px, var(--container));
    }

    .desktop-nav {
        display: none;
    }

    .mobile-nav {
        display: block;
    }

    .brand img {
        width: 184px;
    }

    .header-inner {
        min-height: 72px;
    }

    .search-controls,
    .inline-search,
    .form-grid,
    .check-grid,
    .product-choice-grid,
    .info-section.two-col,
    .company-result-card,
    .mini-company,
    .profile-summary {
        grid-template-columns: 1fr;
    }

    .emergency-head {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .emergency-head > a {
        justify-self: start;
    }

    .company-logo,
    .profile-logo {
        width: 100%;
    }

    .company-actions {
        grid-template-columns: 1fr 1fr;
    }

    .result-ad {
        align-items: start;
        flex-direction: column;
    }

    .hero-section::before {
        right: -80px;
        width: 380px;
        height: 240px;
        opacity: .08;
    }

    .hero-medical-art {
        display: none !important;
    }

    .article-sponsor-box {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    h1 {
        font-size: 32px;
    }

    .hero-section::before {
        display: none;
    }

    .sponsor-grid,
    .quick-grid,
    .feature-grid,
    .product-grid,
    .article-grid,
    .admin-stat-grid,
    .emergency-type-grid,
    .emergency-company-grid {
        grid-template-columns: 1fr;
    }

    .article-card,
    .firm-card.compact {
        grid-template-columns: 1fr;
    }

    .article-card.visual,
    .article-grid.large .article-card.visual {
        grid-template-columns: 1fr;
    }

    .article-card.visual .article-image,
    .article-grid.large .article-card.visual .article-image {
        height: auto;
        min-height: 0;
    }

    .article-body {
        padding: 20px;
    }

    .company-actions {
        grid-template-columns: 1fr;
    }

    .footer-inner,
    .footer nav,
    .admin-head {
        flex-direction: column;
        align-items: start;
    }
}
