:root {
    --red: #ae1520;
    --red-dark: #85101a;
    --red-light: #fbf0f1;
    --ink: #202126;
    --muted: #686b75;
    --border: #e8e8ed;
    --background: #f6f6f8;
    --white: #fff;
    --radius: 22px;
    --shadow: 0 16px 48px rgba(25, 25, 35, .06);

    /* Цветове, вдъхновени от фона на логото */
    --graphite: #24282b;
    --graphite-dark: #171b1e;
    --graphite-light: #34393d;
    --dark-text: #f3f3f4;
    --dark-muted: #c0c3c7;
    --dark-border: rgba(255, 255, 255, .12);
    --red-accent: #f0848b;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font: 16px/1.65 Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--red);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
select {
    cursor: pointer;
}

button {
    border: 0;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.12;
    letter-spacing: -.045em;
}

h1 {
    font-size: clamp(2.5rem, 4.7vw, 4.4rem);
}

h2 {
    font-size: clamp(1.9rem, 3.2vw, 2.9rem);
}

h3 {
    font-size: 1.3rem;
}

:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 4px;
}

.container {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 100;
    padding: 12px 18px;
    background: #fff;
}

.skip-link:focus {
    top: 16px;
}

/* Горна лента */

.topbar {
    background: #131719;
    color: #d5d7da;
    font-size: .73rem;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-block: 9px;
}

.topbar a {
    color: #fff;
}

/* Хедър */

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.public-body .site-header {
    background: linear-gradient(110deg, #1c2023, #2c3135);
    border-bottom-color: var(--dark-border);
}

.header-inner {
    min-height: 108px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    padding-block: 8px;
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
}

.brand img {
    width: 163px;
    height: auto;
}

.public-body .brand img {
    border-radius: 10px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    color: var(--ink);
    font-size: .88rem;
    font-weight: 700;
}

.main-nav a:hover {
    color: var(--red);
    text-decoration: none;
}

.public-body .main-nav a {
    color: #f1f2f3;
}

.public-body .main-nav a:hover {
    color: var(--red-accent);
}

.header-phone {
    display: flex;
    flex-direction: column;
    color: var(--ink);
    white-space: nowrap;
}

.header-phone span {
    font-size: .72rem;
    color: var(--muted);
}

.header-phone strong {
    font-size: 1.13rem;
    letter-spacing: -.03em;
}

.public-body .header-phone {
    color: #fff;
}

.public-body .header-phone span {
    color: var(--dark-muted);
}

/* Бутони */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 52px;
    padding: 14px 24px;
    border: 1px solid var(--red);
    border-radius: 12px;
    background: var(--red);
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    transition:
        background .18s,
        border-color .18s,
        transform .18s;
}

.button:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

.button-outline {
    background: transparent;
    border-color: #d5d6dd;
    color: var(--ink);
}

.button-light {
    background: #fff;
    border-color: #fff;
    color: var(--red);
}

.button-light:hover {
    background: #f7e7e9;
    border-color: #f7e7e9;
    color: var(--red);
}

.button-small {
    min-height: 40px;
    padding: 9px 14px;
    font-size: .8rem;
}

.button-full {
    width: 100%;
}

button:disabled {
    opacity: .6;
    cursor: not-allowed;
}

button:disabled:hover {
    transform: none;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.eyebrow {
    display: block;
    margin-bottom: 20px;
    color: var(--red);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .14em;
    line-height: 1.6;
}

/* Начална секция — графитен фон */

.hero {
    padding: 76px 0 84px;
    overflow: hidden;
    color: var(--dark-text);
    background:
        radial-gradient(
            ellipse at 78% 25%,
            rgba(174, 21, 32, .13),
            transparent 48%
        ),
        radial-gradient(
            ellipse at 45% 35%,
            #383d41,
            transparent 72%
        ),
        linear-gradient(
            135deg,
            #1b1f22,
            #292e32 55%,
            #171b1e
        );
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.12fr .88fr;
    align-items: center;
    gap: 66px;
}

.hero-copy {
    min-width: 0;
}

.hero .eyebrow {
    color: var(--red-accent);
}

.hero h1 {
    margin-bottom: 26px;
}

.hero h1 span {
    color: var(--red-accent);
}

.hero-description {
    max-width: 535px;
    color: var(--dark-muted);
    font-size: 1.05rem;
    margin-bottom: 30px;
}

.hero .button-outline {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .3);
    color: #fff;
}

.hero .button-outline:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .55);
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 25px;
    color: var(--dark-muted);
    font-size: .73rem;
}

.hero-points span::before {
    content: "✓";
    margin-right: 7px;
    color: var(--red-accent);
    font-weight: 800;
}

.hero-visual {
    position: relative;
    min-width: 0;
    padding: 25px 12px 70px;
}

.visual-orbit {
    position: absolute;
    width: 380px;
    height: 380px;
    top: -25px;
    right: -30px;
    border: 1px solid rgba(240, 132, 139, .22);
    border-radius: 50%;
}

.visual-orbit::after {
    content: "";
    position: absolute;
    inset: 28px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
}

.finance-card {
    position: relative;
    padding: 32px;
    color: var(--ink);
    background: linear-gradient(145deg, #fff, #f1f2f3);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 26px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .3);
    transform: rotate(-3deg);
}

.finance-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 38px;
}

.mini-brand {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -.04em;
}

.mini-brand span {
    color: var(--red);
}

.card-symbol {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    background: var(--red-light);
    border-radius: 50%;
    color: var(--red);
    font-size: 1.5rem;
}

.card-caption {
    color: var(--muted);
    font-size: .65rem;
    letter-spacing: .13em;
}

.finance-card h2 {
    font-size: clamp(1.65rem, 2.5vw, 2.2rem);
    margin-bottom: 24px;
}

.amount-illustration {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 17px;
    background: #e9ebed;
    border-radius: 12px;
    font-size: .85rem;
}

.amount-illustration strong {
    color: var(--red);
}

.card-divider {
    height: 1px;
    background: #dcdfe2;
    margin: 25px 0;
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.card-bottom span {
    display: block;
    font-size: .72rem;
    color: var(--muted);
}

.card-bottom strong {
    font-size: .9rem;
}

.card-bottom > a {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--red);
    color: #fff;
    border-radius: 12px;
    font-size: 1.3rem;
}

.floating-note {
    position: absolute;
    right: -10px;
    bottom: 34px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #202528;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, .3);
}

.note-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: var(--red-accent);
}

.floating-note strong {
    display: block;
    font-size: .83rem;
}

.floating-note div > span {
    color: #d1d1da;
    font-size: .7rem;
}

.visual-disclaimer {
    position: absolute;
    bottom: -20px;
    left: 12px;
    right: 0;
    color: var(--dark-muted);
    font-size: .65rem;
    text-align: center;
}

/* Лента под началната секция */

.benefits-strip {
    color: var(--dark-text);
    background: #1c2124;
    border-top: 1px solid var(--dark-border);
    border-bottom: 1px solid var(--dark-border);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.benefits-grid > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 27px 15px;
}

.benefits-grid > div + div {
    border-left: 1px solid var(--dark-border);
}

.benefits-grid span {
    color: var(--red-accent);
    font-size: .78rem;
}

.benefits-grid strong {
    font-size: .85rem;
}

/* Секции и услуги */

.section {
    padding: 88px 0;
}

.section-heading {
    margin-bottom: 42px;
}

.section-heading h2 {
    margin-bottom: 0;
}

.heading-split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.heading-split > p {
    max-width: 355px;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: .96rem;
}

.centered {
    max-width: 680px;
    margin-inline: auto;
    text-align: center;
}

.centered p {
    color: var(--muted);
    margin: 18px 0 0;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 23px;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    transition: box-shadow .2s, border-color .2s;
}

.feature:hover {
    border-color: #e8c5c9;
    box-shadow: var(--shadow);
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 51px;
    height: 51px;
    margin-bottom: 28px;
    border-radius: 15px;
    background: var(--red-light);
    color: var(--red);
    font-size: 1.7rem;
}

.feature h3 {
    line-height: 1.25;
}

.feature p {
    color: var(--muted);
    font-size: .9rem;
    margin-bottom: 26px;
}

.text-link {
    font-size: .87rem;
    font-weight: 700;
}

.feature .text-link {
    margin-top: auto;
}

.text-link span {
    margin-left: 8px;
}

.section-note {
    margin: 24px 0 0;
    color: var(--muted);
    font-size: .73rem;
}

/* За нас */

.about-section {
    color: var(--dark-text);
    background:
        radial-gradient(
            ellipse at 85% 30%,
            rgba(255, 255, 255, .05),
            transparent 60%
        ),
        linear-gradient(135deg, #252a2e, #1c2124);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-card {
    padding: 48px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 26px;
    background:
        radial-gradient(circle at 100% 0, #bd3540, transparent 65%),
        linear-gradient(140deg, #971621, #631019);
    box-shadow: 0 22px 50px rgba(0, 0, 0, .18);
}

.about-card .eyebrow {
    color: #ffdce0;
}

.about-card h2 {
    margin-bottom: 23px;
}

.about-card p {
    color: #f6d5d9;
    margin-bottom: 30px;
}

.about-copy {
    min-width: 0;
}

.about-copy .eyebrow {
    color: var(--red-accent);
}

.about-copy > p {
    color: var(--dark-muted);
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 25px 0 0;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    margin: 13px 0;
    font-size: .9rem;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--red);
    font-weight: 800;
}

.about-section .check-list li::before {
    color: var(--red-accent);
}

/* Стъпки */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.step {
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.step-number {
    display: block;
    margin-bottom: 25px;
    color: var(--red);
    font-size: 1.2rem;
    font-weight: 800;
}

.step p {
    color: var(--muted);
    font-size: .9rem;
    margin-bottom: 0;
}

/* Секция с формуляра */

.application-section {
    background:
        radial-gradient(
            ellipse at 0 100%,
            rgba(126, 30, 41, .2),
            transparent 65%
        ),
        radial-gradient(
            ellipse at 70% 20%,
            #353a3e,
            transparent 70%
        ),
        #1d2225;
    color: #fff;
}

.application-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 72px;
    align-items: center;
}

.application-copy {
    min-width: 0;
}

.application-copy > .eyebrow {
    color: var(--red-accent);
}

.application-copy h2 {
    font-size: clamp(2.3rem, 4vw, 3.5rem);
}

.application-copy h2 span {
    color: var(--red-accent);
}

.application-copy > p {
    color: #d2d4d7;
    max-width: 380px;
}

.application-direct {
    border-top: 1px solid var(--dark-border);
    padding-top: 25px;
    margin-top: 30px;
}

.application-direct > span {
    display: block;
    color: var(--dark-muted);
    font-size: .8rem;
}

.application-direct > a {
    display: block;
    color: #fff;
    font-size: 1.9rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.application-direct .application-email {
    font-size: .85rem;
    font-weight: 400;
    margin-top: 6px;
}

.application-copy .application-disclaimer {
    font-size: .75rem;
    margin: 25px 0 0;
    color: var(--dark-muted);
}

.application-panel {
    min-width: 0;
    padding: 35px;
    color: var(--ink);
    background: #fff;
    border-radius: 25px;
    box-shadow: 0 30px 65px rgba(0, 0, 0, .24);
}

.form-heading .eyebrow {
    margin-bottom: 10px;
}

.form-heading h3 {
    font-size: 1.65rem;
    margin-bottom: 12px;
}

.form-heading p {
    color: var(--muted);
    font-size: .79rem;
    margin-bottom: 25px;
}

.form-fields {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    min-width: 0;
}

.field label {
    font-size: .8rem;
    font-weight: 700;
}

.field-help {
    color: var(--muted);
    font-size: .67rem;
    line-height: 1.5;
}

input:not([type="checkbox"]):not([type="hidden"]),
select,
textarea {
    width: 100%;
    min-height: 51px;
    padding: 12px 14px;
    border: 1px solid #dedfe6;
    border-radius: 10px;
    color: var(--ink);
    background: #fafafb;
}

input::placeholder {
    color: #878995;
    font-size: .84rem;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--red);
}

textarea {
    resize: vertical;
}

fieldset:disabled input {
    color: #85858c;
}

.data-note {
    padding: 14px 16px;
    background: #f6f6f8;
    border-radius: 10px;
    color: var(--muted);
    font-size: .71rem;
}

.data-note strong {
    color: var(--ink);
}

.data-note p {
    margin: 6px 0 0;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
    color: var(--muted);
    font-size: .73rem;
    cursor: pointer;
}

.checkbox input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 3px 0 0;
    accent-color: var(--red);
}

.checkbox a,
.form-note a {
    text-decoration: underline;
}

.form-note {
    color: var(--muted);
    text-align: center;
    font-size: .68rem;
    margin: 16px 0 0;
}

/* Съобщения */

.alert {
    padding: 15px 18px;
    border: 1px solid;
    border-radius: 12px;
    font-size: .84rem;
    margin-bottom: 20px;
}

.alert ul {
    padding-left: 18px;
    margin: 0;
}

.alert p {
    margin: 10px 0 0;
}

.alert-success {
    color: #24553a;
    background: #eef7f1;
    border-color: #c8e2d0;
}

.alert-error {
    color: #89101a;
    background: #fff1f2;
    border-color: #ebc5ca;
}

.alert-info {
    color: #444956;
    background: #f2f4f8;
    border-color: #dce1ea;
}

.honeypot,
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Въпроси */

.faq-layout {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 80px;
}

.faq {
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
}

.faq:first-child {
    padding-top: 0;
}

.faq summary {
    font-weight: 700;
    cursor: pointer;
    font-size: .95rem;
    padding-right: 10px;
}

.faq p {
    color: var(--muted);
    margin: 15px 0 0;
    font-size: .88rem;
}

/* Контакти */

.contact-section {
    padding: 48px 0;
    color: var(--dark-text);
    background:
        radial-gradient(
            ellipse at 90% 50%,
            rgba(174, 21, 32, .12),
            transparent 65%
        ),
        linear-gradient(120deg, #2c3135, #1c2124);
    border-top: 1px solid var(--dark-border);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    gap: 35px;
}

.contact-grid > div {
    min-width: 0;
}

.contact-section .eyebrow {
    margin-bottom: 12px;
    color: var(--red-accent);
}

.contact-section h2 {
    font-size: 1.7rem;
    margin-bottom: 12px;
}

.contact-section p {
    color: var(--dark-muted);
    margin-bottom: 0;
}

.contact-links {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 8px;
}

.contact-links a {
    color: #f3f3f4;
    overflow-wrap: anywhere;
}

.contact-phone {
    color: var(--ink);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.04em;
}

.contact-links .button-outline {
    margin-top: 8px;
    max-width: 100%;
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .25);
    color: #fff;
    gap: 10px;
}

.contact-links .button-outline:hover {
    background: var(--red);
    border-color: var(--red);
}

.contact-links svg {
    flex-shrink: 0;
}

/* Футър */

.site-footer {
    padding: 35px 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.footer-brand {
    color: var(--ink);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -.05em;
}

.footer-brand span {
    color: var(--red);
}

.footer-inner p {
    margin: 6px 0 0;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 23px;
}

.footer-nav a {
    color: var(--muted);
    font-size: .76rem;
}

.small {
    font-size: .79rem;
}

.muted {
    color: var(--muted);
}

.public-body .site-footer {
    background: #151a1d;
    border-top-color: var(--dark-border);
}

.public-body .footer-brand {
    color: #f2f3f4;
}

.public-body .footer-brand span {
    color: var(--red-accent);
}

.public-body .footer-nav a,
.public-body .site-footer .muted {
    color: var(--dark-muted);
}

.public-body .footer-nav a:hover {
    color: #fff;
}

/* Фокус върху тъмен фон */

.public-body .site-header :focus-visible,
.hero :focus-visible,
.about-section :focus-visible,
.application-copy :focus-visible,
.contact-section :focus-visible,
.public-body .site-footer :focus-visible {
    outline-color: var(--red-accent);
}

/* Информационни страници */

.panel {
    min-width: 0;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.legal-content {
    max-width: 850px;
}

.legal-content h1 {
    font-size: 2.4rem;
}

.legal-content h2 {
    font-size: 1.3rem;
    margin-top: 30px;
}

.legal-content p {
    overflow-wrap: anywhere;
}

.back-link {
    display: inline-block;
    margin-bottom: 26px;
}

/* Администрация */

.admin-body {
    min-height: 100vh;
    background: var(--background);
}

.admin-main {
    padding-top: 40px;
    padding-bottom: 65px;
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.login-panel {
    max-width: 450px;
    margin: 25px auto;
    padding: 35px;
}

.login-panel h1 {
    font-size: 2.3rem;
    margin-bottom: 14px;
}

.admin-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    margin-bottom: 30px;
}

.admin-title .eyebrow {
    margin-bottom: 12px;
}

.admin-title h1 {
    font-size: 2.8rem;
    margin-bottom: 9px;
}

.admin-title p {
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 17px;
    margin-bottom: 25px;
}

.stat-card {
    padding: 23px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 15px;
}

.stat-card span {
    display: block;
    font-size: .8rem;
    color: var(--muted);
}

.stat-card strong {
    display: block;
    margin-top: 8px;
    color: var(--red);
    font-size: 2.1rem;
    line-height: 1.2;
}

.filter-form {
    display: grid;
    grid-template-columns: 2fr 1fr auto auto;
    align-items: end;
    gap: 16px;
    margin-bottom: 25px;
}

.filter-form .field {
    margin-bottom: 0;
}

.reset-link {
    padding-bottom: 13px;
    font-size: .8rem;
}

.results-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 17px;
}

.inquiry-list {
    display: grid;
    gap: 23px;
}

.inquiry-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.inquiry-heading h2 {
    font-size: 1.5rem;
    margin: 8px 0 0;
}

.status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 7px;
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
}

.status-new {
    color: var(--red);
    background: var(--red-light);
}

.status-contacted {
    color: #49516b;
    background: #edf0f8;
}

.status-closed {
    color: #365b3d;
    background: #edf5ef;
}

.inquiry-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin: 0;
}

.inquiry-details dt {
    color: var(--muted);
    font-size: .73rem;
}

.inquiry-details dd {
    margin: 7px 0 0;
    overflow-wrap: anywhere;
    font-size: .91rem;
}

.amount-value {
    font-weight: 800;
    color: var(--red);
}

.masked-value {
    letter-spacing: .12em;
}

.reveal-form {
    margin-top: 9px;
}

.sensitive-value {
    display: block;
    letter-spacing: .05em;
}

.consent-version {
    margin-top: 24px;
}

.inquiry-message {
    margin-top: 20px;
    padding: 17px;
    background: var(--background);
    border-radius: 10px;
    font-size: .86rem;
    overflow-wrap: anywhere;
}

.inquiry-message p {
    margin: 7px 0 0;
}

.inquiry-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    border-top: 1px solid var(--border);
    padding-top: 22px;
    margin-top: 24px;
}

.status-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-form select {
    width: auto;
    min-height: 40px;
    padding-block: 8px;
    font-size: .8rem;
}

.delete-details {
    margin-top: 23px;
    font-size: .77rem;
    color: var(--muted);
}

.delete-details summary {
    cursor: pointer;
}

.delete-details .checkbox {
    max-width: 520px;
}

.empty-state {
    padding: 45px 25px;
    text-align: center;
}

.empty-state h2 {
    font-size: 1.7rem;
}

.empty-state p {
    margin-bottom: 0;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

/* Таблети и по-малки екрани */

@media (max-width: 1000px) {
    .main-nav {
        gap: 18px;
    }

    .hero-grid {
        gap: 34px;
    }

    .hero {
        padding-top: 58px;
    }

    .finance-card {
        padding: 25px;
    }

    .about-grid,
    .application-grid,
    .faq-layout {
        gap: 40px;
    }

    .application-panel {
        padding: 28px;
    }

    .about-card {
        padding: 34px;
    }

    .inquiry-details {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 780px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 10px 20px;
    }

    .brand img {
        width: 145px;
    }

    .main-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        border-top: 1px solid var(--border);
        padding-block: 13px 8px;
    }

    .public-body .main-nav {
        border-top-color: var(--dark-border);
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        max-width: 620px;
    }

    .hero-visual {
        max-width: 460px;
        width: 100%;
        margin: 15px auto 0;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 7vw, 4rem);
    }

    .hero {
        padding-bottom: 60px;
    }

    .benefits-grid > div {
        padding: 20px 10px;
        gap: 8px;
    }

    .benefits-grid strong {
        font-size: .73rem;
    }

    .section {
        padding: 60px 0;
    }

    .heading-split {
        display: block;
    }

    .heading-split > p {
        max-width: 580px;
        margin-top: 23px;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .feature {
        padding: 28px;
    }

    .feature-icon {
        margin-bottom: 20px;
    }

    .about-grid,
    .application-grid,
    .faq-layout {
        grid-template-columns: 1fr;
    }

    .about-card {
        padding: 38px;
    }

    .steps-grid {
        gap: 24px;
    }

    .application-copy > p {
        max-width: 580px;
    }

    .application-copy h2 br {
        display: none;
    }

    .application-copy h2 {
        max-width: 530px;
    }

    .application-panel {
        padding: 32px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .contact-links {
        align-items: flex-start;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .filter-form {
        grid-template-columns: 1fr 1fr;
    }

    .admin-title {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Телефони */

@media (max-width: 480px) {
    .container {
        width: calc(100% - 32px);
    }

    .topbar-inner {
        justify-content: center;
    }

    .topbar-inner > span {
        display: none;
    }

    .brand img {
        width: 125px;
    }

    .header-phone strong {
        font-size: 1rem;
    }

    .main-nav {
        gap: 12px 19px;
    }

    .main-nav a {
        font-size: .77rem;
    }

    .hero {
        padding-top: 38px;
    }

    .hero h1 {
        font-size: 2.6rem;
    }

    .hero-description {
        font-size: .95rem;
    }

    .hero-points {
        gap: 9px 13px;
        font-size: .68rem;
    }

    .actions > .button {
        width: 100%;
    }

    .hero-visual {
        padding-inline: 9px;
    }

    .finance-card {
        padding: 24px;
        transform: rotate(-2deg);
    }

    .floating-note {
        right: 0;
        padding: 14px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid > div {
        justify-content: flex-start;
        padding: 13px 6px;
        gap: 15px;
    }

    .benefits-grid > div + div {
        border-left: 0;
        border-top: 1px solid var(--dark-border);
    }

    .benefits-grid strong {
        font-size: .82rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .step-number {
        margin-bottom: 16px;
    }

    .about-card {
        padding: 28px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .application-panel {
        padding: 24px 20px;
        border-radius: 19px;
    }

    .form-heading h3 {
        font-size: 1.5rem;
    }

    .application-copy h2 {
        font-size: 2.3rem;
    }

    .panel {
        padding: 23px;
    }

    .contact-phone {
        font-size: 1.8rem;
    }

    .filter-form,
    .inquiry-details {
        grid-template-columns: 1fr;
    }

    .inquiry-heading,
    .results-heading {
        flex-direction: column;
        gap: 12px;
    }

    .status-form {
        width: 100%;
        flex-wrap: wrap;
    }

    .status-form select {
        flex: 1;
        min-width: 140px;
    }

    .stat-card {
        padding: 18px;
    }

    .admin-header-actions {
        gap: 10px;
    }

    .legal-content h1 {
        font-size: 1.9rem;
    }
}

/* Намалено движение */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .button:hover {
        transform: none;
    }
}

/* Лого без фон, вляво в хедъра */
.public-body .header-inner {
    width: calc(100% - 40px);
    max-width: none;
    margin-inline: auto;
}

.public-body .brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    text-decoration: none;
}

.public-body .brand img {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

@media (max-width: 780px) {
    .public-body .brand img {
        width: 145px;
    }
}

@media (max-width: 480px) {
    .public-body .header-inner {
        width: calc(100% - 24px);
    }

    .public-body .brand img {
        width: 125px;
    }
}