/* DiVi Accounting — дизайн „Б — Смел лилав“ (docs/design/ДИЗАЙН_Б.md). Собствен CSS, без външни ресурси. */

/* --- Шрифтове: локално, лиценз OFL (fonts/oswald/OFL.txt, fonts/open-sans/OFL.txt) ------------------------------------------- */
@font-face {
    font-family: "Oswald";
    font-style: normal;
    font-display: swap;
    font-weight: 200 700;
    src: url("../fonts/oswald/oswald-cyrillic-wght-normal.cc1b6b81da7e.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Oswald";
    font-style: normal;
    font-display: swap;
    font-weight: 200 700;
    src: url("../fonts/oswald/oswald-latin-wght-normal.22c3b00d2e65.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-display: swap;
    font-weight: 300 800;
    src: url("../fonts/open-sans/open-sans-cyrillic-wght-normal.0b3ff9e42ed8.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-display: swap;
    font-weight: 300 800;
    src: url("../fonts/open-sans/open-sans-latin-wght-normal.dcf31ebe1074.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Open Sans";
    font-style: italic;
    font-display: swap;
    font-weight: 300 800;
    src: url("../fonts/open-sans/open-sans-cyrillic-wght-italic.c5e3aaed8298.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Open Sans";
    font-style: italic;
    font-display: swap;
    font-weight: 300 800;
    src: url("../fonts/open-sans/open-sans-latin-wght-italic.b577bb8d8c25.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Цветове и мерки ------------------------------------------------------------------------- */
:root {
    --purple: #61356a;
    --purple-hover: #4a2650;
    --purple-light: #a086a6;
    --purple-deco: #6f4279;
    --green: #82a77b;
    --text: #5c5e60;
    --text-on-green: #2a1630;
    --text-on-purple: #efe8f1;
    --blog-bg: #f6f1f7;
    --line: #e6dde9;
    --line-2: #ddd1e0;
    --title-dark: #3d2342;
    --footer-bg: #2f1a35;
    --footer-text: #d9cbdc;
    --white: #ffffff;
    --heading: "Oswald", "Arial Narrow", Arial, sans-serif;
    --body: "Open Sans", Arial, Helvetica, sans-serif;
    --max: 1200px;
    --gutter: 40px;
    --tap: 44px;
}
@media (max-width: 700px) {
    :root { --gutter: 16px; }
}

/* --- Основа ---------------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--white);
    color: var(--text);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.6;
    overflow-wrap: break-word;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--purple); text-underline-offset: 0.15em; }
a:hover { color: var(--purple-hover); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading);
    font-weight: 600;
    color: var(--purple);
    line-height: 1.2;
    margin: 1.2em 0 0.5em;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); text-transform: uppercase; letter-spacing: 0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.site-main { display: block; min-height: 50vh; overflow-x: clip; }

.skip-link {
    position: absolute;
    left: 8px;
    top: -100px;
    z-index: 100;
    padding: 12px 18px;
    background: var(--white);
    color: var(--purple);
    font-weight: 700;
    border-radius: 999px;
}
.skip-link:focus { top: 8px; }

/* --- Бутони ---------------------------------------------------------------------------------- */
.button, .site-main .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--tap);
    padding: 10px 26px;
    border: 2px solid var(--green);
    border-radius: 999px;
    background: var(--green);
    color: var(--text-on-green);
    font-family: var(--heading);
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.2;
    cursor: pointer;
}
.button:hover { background: #95b98e; border-color: #95b98e; color: var(--text-on-green); }
.button-outline { background: transparent; border-color: var(--purple); color: var(--purple); }
.button-outline:hover { background: var(--purple); border-color: var(--purple); color: var(--white); }

/* --- Хедър ----------------------------------------------------------------------------------- */
.site-header { background: var(--purple); color: var(--white); }
.header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 84px;
}
.site-nav { flex: 1; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 28px; }
.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    padding: 6px 0;
    border-bottom: 3px solid transparent;
    color: var(--white);
    font-family: var(--heading);
    font-weight: 500;
    font-size: 20px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
}
.site-nav a:hover { border-bottom-color: var(--purple-light); color: var(--white); }
.site-nav a.is-active { border-bottom-color: var(--green); }

.lang-switch {
    display: flex;
    align-items: center;
    margin: 0 0 0 auto;
    border: 1px solid var(--purple-light);
    border-radius: 999px;
    padding: 0 8px;
    font-family: var(--heading);
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--white);
}
.lang-switch a, .lang-switch .lang-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--tap);
    min-height: var(--tap);
    color: var(--white);
    text-decoration: none;
}
.lang-switch a { color: var(--text-on-purple); text-decoration: underline; text-decoration-color: var(--purple-light); }
.lang-switch a:hover { color: var(--white); text-decoration-color: var(--green); }
.lang-switch .lang-current { font-weight: 700; }
.lang-sep { color: var(--purple-light); padding: 0 2px; }

.nav-toggle { display: none; }

/* Телефонът горе (етап 4, стъпка В): иконка + номер; на тесен екран само иконката (≥44 px) */
.header-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: var(--tap);
    min-height: var(--tap);
    margin-left: auto;
    padding: 0 6px;
    color: var(--white);
    font-family: var(--heading);
    font-weight: 500;
    font-size: 18px;
    letter-spacing: 0.04em;
    text-decoration: none;
    white-space: nowrap;
}
.header-phone:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--green); }
.header-phone-icon { flex: none; color: var(--green); }
.header-phone + .lang-switch { margin-left: 0; }
@media (max-width: 1100px) {
    .header-phone-number {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
    .header-phone { border: 1px solid var(--purple-light); border-radius: 999px; padding: 0; }
}

@media (max-width: 900px) {
    .header-inner { flex-wrap: wrap; min-height: 64px; gap: 8px; }
    .js .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: var(--tap);
        height: var(--tap);
        margin: 10px 0;
        padding: 0;
        border: 1px solid var(--purple-light);
        border-radius: 8px;
        background: transparent;
        color: var(--white);
        cursor: pointer;
    }
    .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
        display: block;
        width: 22px;
        height: 2px;
        background: currentColor;
        border-radius: 2px;
        position: relative;
    }
    .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
    .nav-toggle-bars::before { top: -7px; }
    .nav-toggle-bars::after { top: 7px; }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

    .site-nav { order: 3; flex-basis: 100%; }
    .js .site-nav { display: none; }
    .js .site-nav.is-open { display: block; }
    .site-nav ul { flex-direction: column; gap: 0; padding-bottom: 12px; }
    .site-nav li { border-top: 1px solid var(--purple-deco); }
    .site-nav a { display: flex; width: 100%; min-height: 48px; font-size: 18px; }
    .header-phone { order: 2; margin: 10px 0 10px auto; }
    .lang-switch { order: 2; }
}

/* --- Футър ----------------------------------------------------------------------------------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); margin-top: 64px; }
.footer-inner { padding-top: 40px; padding-bottom: 32px; display: grid; gap: 20px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 28px; align-items: center; }
.site-footer a {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    color: var(--footer-text);
    text-decoration: underline;
    text-decoration-color: var(--purple-light);
}
.site-footer a:hover { color: var(--white); text-decoration-color: var(--green); }
.footer-contact { font-size: 1.05rem; }
.footer-address { padding: 10px 0; }
.footer-facebook { justify-content: center; min-width: var(--tap); border: 1px solid var(--purple-light); border-radius: 999px; }
.footer-links { font-family: var(--heading); letter-spacing: 0.04em; text-transform: uppercase; }
.footer-copy { margin: 0; padding-top: 16px; border-top: 1px solid #4a2f50; font-size: 0.9rem; }

/* --- Начална --------------------------------------------------------------------------------- */
.home { position: relative; overflow: hidden; }
.home-hero-art {
    position: absolute;
    top: 0;
    right: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
    width: 380px;
    height: 560px;
    z-index: 1;
    pointer-events: none;
    clip-path: inset(0 -100vw 0 -100vw);   /* декоративният кръг не излиза под лилавия блок */
}
.hero-logo {
    position: absolute;
    top: 110px;
    left: 20px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: var(--white);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px rgba(20, 5, 25, 0.35);
}
.hero-logo img { width: 78%; height: auto; }
.hero-dot { position: absolute; border-radius: 50%; display: block; }
.hero-dot-green { width: 64px; height: 64px; background: var(--green); top: 80px; right: 0; z-index: 2; }
.hero-dot-light { width: 36px; height: 36px; background: var(--purple-light); top: 440px; left: 0; z-index: 2; }
.hero-dot-big { width: 520px; height: 520px; background: var(--purple-deco); right: -260px; top: 300px; }

.home-blog { background: var(--blog-bg); padding: 48px 0 56px; margin-top: 48px; }
.home-blog-title { margin-top: 0; text-transform: uppercase; }
.home-blog-list { list-style: none; margin: 0; padding: 0; }
.home-blog-list li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-2); align-items: baseline; }
.home-blog-list time { font-family: var(--heading); color: var(--purple); letter-spacing: 0.04em; }
.home-blog-list a { color: var(--title-dark); font-family: var(--heading); font-size: 1.3rem; font-weight: 500; text-decoration: none; }
.home-blog-list a:hover { color: var(--purple); text-decoration: underline; }
.home-blog-all a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 700; }

@media (max-width: 900px) {
    .home-hero-art {
        position: relative;
        right: auto;
        width: 100%;
        height: 240px;
        background: var(--purple);
        clip-path: none;
        overflow: hidden;
    }
    .hero-logo { width: 180px; height: 180px; top: 30px; left: 50%; margin-left: -90px; }
    .hero-dot-green { width: 44px; height: 44px; top: 24px; right: auto; left: calc(50% + 70px); }
    .hero-dot-light { width: 26px; height: 26px; top: 180px; left: calc(50% - 110px); }
    .hero-dot-big { width: 300px; height: 300px; right: -150px; top: 120px; }
    .home-blog-list li { grid-template-columns: 1fr; gap: 2px; }
}

/* --- Статия ---------------------------------------------------------------------------------- */
.article { max-width: 900px; }
.article-header { padding-top: 40px; }
.article-header h1 { margin: 0.2em 0 0.3em; text-transform: none; color: var(--purple); }
.article-cats, .post-cats {
    margin: 0;
    font-family: var(--heading);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.9rem;
}
.article-cats a, .post-cats a { color: var(--purple); }
.article-meta, .post-date { margin: 0 0 24px; color: var(--text); font-size: 0.95rem; }
.article-image { margin: 0 0 24px; }
.article-terms { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.95rem; }
.article-terms p { margin: 0.4em 0; }
.terms-label { font-weight: 700; }
.article-terms a, .post-cats a, .article-cats a { display: inline-block; padding: 6px 0; }

.comments { margin-top: 48px; }
.comments-title { font-size: 1.4rem; text-transform: uppercase; }
.comment-list, .comment-replies { list-style: none; margin: 0; padding: 0; }
.comment-replies { margin-left: 32px; border-left: 3px solid var(--line); padding-left: 16px; }
.comment-inner { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-author { margin: 0; color: var(--title-dark); }
.comment-content p { margin: 0.4em 0; }
.comment-date { margin: 0; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
@media (max-width: 700px) { .comment-replies { margin-left: 8px; } }

/* --- Списъци (блог, тагове, категории) ------------------------------------------------------- */
.archive { max-width: 900px; }
.archive-title {
    margin: 40px 0 8px;
    font-family: var(--heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--purple);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.post-list { list-style: none; margin: 0; padding: 0; }
.post-item { padding: 28px 0; border-bottom: 1px solid var(--line-2); }
.post-title { margin: 0.2em 0 0.2em; font-size: 1.6rem; font-weight: 500; }
.post-title a { color: var(--title-dark); text-decoration: none; }
.post-title a:hover { color: var(--purple); text-decoration: underline; }
.post-date { margin-bottom: 8px; }
.post-excerpt { margin: 0 0 8px; }
.post-more { margin: 0; }
.post-more a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 700; }

.pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 32px 0 0; }
.pagination a, .pagination .page-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--tap);
    min-height: var(--tap);
    border: 1px solid var(--line-2);
    border-radius: 999px;
    font-family: var(--heading);
    font-size: 1.1rem;
    text-decoration: none;
}
.pagination .page-current { background: var(--purple); border-color: var(--purple); color: var(--white); }
.pagination a:hover { border-color: var(--purple); }
.pagination .page-arrow { font-size: 1.5rem; }

/* --- Обикновена страница, Контакти, 404 ------------------------------------------------------ */
.page-body { padding-top: 24px; }
/* Етап 6.1в: на тесен екран — една колона (формата, после телефон/имейл); на широк — две колони. */
.contact-layout { display: grid; gap: 28px; margin-top: 32px; }
@media (min-width: 901px) {
    .contact-layout { grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr); gap: 48px; align-items: start; }
    .contact-layout .contact-direct { grid-column: 1; grid-row: 1; flex-direction: column; align-items: flex-start; }
    .contact-layout .contact-form-section { grid-column: 2; grid-row: 1; }
}
.contact-direct { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
/* Телефон и имейл: по-леки (контур), по-ниски от ИЗПРАТИ и леко различни помежду си — не изглеждат като бутон за изпращане. */
.contact-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 5px 18px;
    border: 1px solid var(--purple);
    border-radius: 999px;
    color: var(--purple);
    font-family: var(--heading);
    font-size: 1rem;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.contact-link-phone { background: var(--blog-bg); }
.contact-link-email { background: transparent; border-color: var(--purple-light); }
.contact-link:hover { border-color: var(--purple); background: var(--line); color: var(--purple-hover); }

/* --- Етап 6.1: формата в „Контакти“ (без JavaScript) ------------------------------------------- */
.contact-form-section { max-width: 640px; margin: 0; }
.contact-field { margin: 0 0 18px; }
.contact-field label { display: block; margin-bottom: 6px; font-family: var(--heading); color: var(--purple); letter-spacing: 0.02em; }
.contact-form input[type="email"], .contact-form input[type="text"], .contact-form input[type="tel"], .contact-form textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: var(--tap);
    padding: 10px 12px;
    border: 1px solid var(--line-2);
    border-radius: 8px;
    background: var(--white);
    color: var(--text);
    font: inherit;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form [aria-invalid="true"] { border-color: #b3261e; }
.contact-field-error { display: block; margin-top: 6px; color: #b3261e; font-size: 0.95rem; }
.contact-consent label { display: flex; gap: 10px; align-items: flex-start; font-family: var(--body); color: var(--text); letter-spacing: 0; }
.contact-consent input { flex: none; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--purple); }
.contact-submit { margin: 0; text-align: left; }
.contact-form-alert { margin: 0 0 18px; padding: 12px 14px; border: 1px solid #b3261e; border-radius: 8px; background: #fdf2f1; color: #8c1d18; }
.contact-form-alert p { margin: 0; }
.contact-form-success { margin: 0; padding: 14px 16px; border: 1px solid var(--green); border-radius: 8px; background: #f1f6f0; color: var(--text-on-green); text-align: center; }
/* Скритото поле срещу роботи: извън екрана (не display:none — някои роботи го пропускат). */
.contact-form-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.not-found { padding-top: 56px; text-align: center; }
.not-found-code { margin: 0; font-family: var(--heading); font-size: clamp(5rem, 16vw, 9rem); font-weight: 700; line-height: 1; color: var(--purple); }
.not-found-title { text-transform: none; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.not-found-links { list-style: none; padding: 0; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
/* Етап 6.1б: страницата при блокирана бисквитка (отказ на CSRF). */
.csrf-failure { max-width: 720px; padding-top: 56px; }
.csrf-failure-title { text-transform: none; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.csrf-failure-steps { padding-left: 1.4em; }
.csrf-failure-steps li { margin-bottom: 8px; }
.csrf-failure a:not(.button) { overflow-wrap: anywhere; }
.csrf-failure-links { margin-top: 28px; text-align: center; }
.page-home .site-footer { margin-top: 0; }

/* --- Банер за бисквитки (етап 5.9) ----------------------------------------------------------- */
.footer-pref-btn {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--footer-text);
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    text-decoration: underline;
    text-decoration-color: var(--purple-light);
    text-underline-offset: 0.15em;
    cursor: pointer;
}
.footer-pref-btn:hover { color: var(--white); text-decoration-color: var(--green); }

/* Етап 8.1: sticky вместо fixed — банерът стои долу на екрана върху съдържанието (нищо не бута),
   но заема място в края на страницата, затова при превъртане до долу футърът се вижда целият. */
.pref-bar {
    position: sticky;
    bottom: 0;
    z-index: 1000;
    background: var(--white);
    color: var(--title-dark);
    border-top: 3px solid var(--purple);
    box-shadow: 0 -6px 24px rgba(47, 26, 53, 0.18);
    max-height: 85vh;
    overflow-y: auto;
}
.pref-bar[hidden],
.pref-panel[hidden] { display: none; }

.pref-bar-inner {
    padding-top: 16px;
    padding-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
}
.pref-bar-copy { flex: 1 1 360px; }
.pref-bar-title {
    margin: 0 0 4px;
    font-family: var(--heading);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--purple);
}
.pref-bar-text { margin: 0; font-size: 0.92rem; line-height: 1.45; color: var(--text); }
.pref-bar-text a { color: var(--purple); font-weight: 600; }

.pref-bar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.pref-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--tap);
    padding: 8px 18px;
    border: 2px solid var(--purple);
    border-radius: 999px;
    background: var(--white);
    color: var(--purple);
    font-family: var(--heading);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.2;
    cursor: pointer;
}
.pref-btn:hover { background: var(--purple); color: var(--white); }

.pref-panel {
    flex: 1 0 100%;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}
.pref-fieldset {
    border: 0;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}
.pref-legend {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.pref-option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    font-size: 0.95rem;
    color: var(--title-dark);
    cursor: pointer;
}
.pref-option-disabled { color: var(--text); cursor: default; }
.pref-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex: none;
    accent-color: var(--purple);
}
.pref-save { margin-top: 12px; }

@media (max-width: 700px) {
    .pref-bar-actions { width: 100%; }
    .pref-bar-actions .pref-btn { flex: 1 1 auto; }
}

/* --- Етап 6.3: картата в „Контакти“ — поле до клик (на мястото и с размера на старата карта) ------ */
.page-contacts .legacy-content .map-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 400px;
    margin: 24px auto;
    padding: 24px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--blog-bg);
    text-align: center;
}
.map-slot-show {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--tap);
    padding: 10px 26px;
    border: 2px solid var(--purple);
    border-radius: 999px;
    background: transparent;
    color: var(--purple);
    font-family: var(--heading);
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.2;
    cursor: pointer;
}
.map-slot-show:hover, .map-slot-show:focus-visible { background: var(--purple); color: var(--white); }
.map-slot-show[hidden] { display: none; }
.map-slot-open { color: var(--purple); text-decoration: underline; overflow-wrap: anywhere; }
@media (max-width: 700px) {
    .page-contacts .legacy-content .map-slot { min-height: 260px; }
}
