:root {
    --bg: #f7f9fb;
    --surface: #ffffff;
    --text: #18212f;
    --muted: #5d6b7a;
    --line: #d9e1ea;
    --brand: #116149;
    --brand-strong: #0b4736;
    --accent: #d8a31a;
    --danger-soft: #fff7e1;
    --radius: 8px;
    --shadow: 0 10px 28px rgba(24, 33, 47, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    direction: rtl;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Open Sans', Arial, "Noto Sans Hebrew", sans-serif;
    line-height: 1.65;
}

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

.narrow {
    max-width: 760px;
}

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.logo img {
    display: block;
    height: auto;
    max-height: 40px;
}

.main-nav,
.site-footer nav,
.link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.main-nav a {
    color: var(--muted);
    font-weight: 700;
}

.hero {
    background: linear-gradient(180deg, #ffffff 0%, #f2f7f5 100%);
    border-bottom: 1px solid var(--line);
}

.hero-inner {
    padding: 64px 0 56px;
}

.eyebrow {
    color: var(--brand);
    font-weight: 700;
    margin: 0 0 8px;
}

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

h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.15;
    margin-bottom: 14px;
}

h2 {
    font-size: 1.35rem;
}

.lead {
    max-width: 720px;
    color: var(--muted);
    font-size: 1.15rem;
}

.search-form {
    display: flex;
    gap: 10px;
    max-width: 720px;
    margin: 28px 0 12px;
}

.search-form input {
    appearance: none;
    flex: 1;
    min-width: 0;
    width: 100%;
    min-height: 54px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 1rem;
    line-height: 1.4;
}

.search-form button {
    min-width: 112px;
    min-height: 54px;
    padding: 0 20px;
    border: 0;
    border-radius: var(--radius);
    background: var(--brand);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
}

.search-form button:hover {
    background: var(--brand-strong);
}

.trust,
.source-note {
    color: var(--muted);
    font-size: 0.95rem;
}

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

.content-section {
    padding: 36px 0;
}

.subtle {
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.grid {
    display: grid;
    gap: 18px;
}

.grid.three {
    grid-template-columns: repeat(3, 1fr);
}

.grid.two {
    grid-template-columns: repeat(2, 1fr);
}

.grid article,
.result-card,
.branch-card,
.empty-state,
.notice,
.details-table {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.page-title {
    padding: 36px 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

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

.details-block + .details-block {
    margin-top: 32px;
}

.guide-section + .guide-section {
    margin-top: 30px;
}

.faq-list details {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 10px;
}

.faq-list summary {
    cursor: pointer;
    font-weight: 800;
}

.faq-list p {
    margin: 10px 0 0;
}

.branch-list {
    display: grid;
    gap: 16px;
}

.result-card h3 {
    margin-bottom: 10px;
}

.branch-card h3 {
    margin-bottom: 14px;
}

dl {
    display: grid;
    gap: 8px;
    margin: 0 0 12px;
}

dl div,
.details-table div {
    display: grid;
    grid-template-columns: minmax(120px, 180px) 1fr;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}

.details-table.compact {
    box-shadow: none;
    padding: 4px 0;
    border: 0;
}

dl div:last-child,
.details-table div:last-child {
    border-bottom: 0;
}

dt,
.details-table strong {
    color: var(--muted);
    font-weight: 700;
}

dd {
    margin: 0;
}

.text-link {
    font-weight: 800;
}

.notice {
    margin-top: 22px;
    background: var(--danger-soft);
    box-shadow: none;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.pill-list li {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px 12px;
    font-weight: 700;
}

.site-footer {
    padding: 28px 0;
    background: #16232c;
    color: #e9eef3;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 760px) {
    .header-inner,
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .header-inner {
        padding: 16px 0;
    }

    .grid.three,
    .grid.two {
        grid-template-columns: 1fr;
    }

    dl div,
    .details-table div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}
