/*
 * Порт реального CSS текущего сайта (docs/css/site.css, ~1715 строк).
 * Взято дословно: сброс, шрифты, сеточные примитивы (.wrapper/.table/.tr/.td),
 * шапка (#top, .ml/.mr, #callback/#getmoney, #phone/#city), подвал (.bmenu,
 * .logo2), суб-меню (.smenu), кнопки (.btn), карточка новости (a.news),
 * FAQ-аккордеон (.qa_on/.qa_off), боковая колонка (.right/#data), модалка
 * обратного звонка (.form), cookie-banner — все брейкпоинты сохранены как
 * в оригинале (900px переключение desktop/mobile меню, 480px — td в block).
 *
 * НЕ портировано (специфика конкретных старых страниц, не общая тема):
 * калькулятор главной страницы (#calc*, .slogan, .block190*, .rew, .tdabout) —
 * будет сделано вместе с front-page.php как отдельная задача;
 * vacancy.css / calendar.css / news.css / qa.css (частично, .qa_on/off взят) —
 * доверстать вместе с соответствующими archive-*.php / single-*.php при
 * необходимости.
 */

html, body {
    width: 100%;
    padding: 0;
    margin: 0;
    height: 100%;
}

@font-face {
    font-family: 'HelveticaLight';
    src: url('../fonts/HelveticaLight.woff') format('woff'),
         url('../fonts/HelveticaLight.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body, div, p {
    font-family: 'HelveticaLight';
}

a {
    color: #690;
}

a:hover {
    color: #690;
    text-decoration: none;
}

section {
    width: 100%;
}

.wrapper {
    max-width: 1000px;
    margin: auto;
}

.wrapper2 {
    max-width: 880px;
    padding: 40px 10px;
    margin: auto;
}

.clear {
    clear: both;
}

/* ---- сеточные примитивы (table/tr/td как в оригинале) ---- */

.table {
    display: table;
}

.tr {
    display: table-row;
}

.td {
    display: table-cell;
    padding: 10px;
    font-size: 14px;
    vertical-align: top;
}

@media (max-width: 480px) {
    .td {
        display: block;
    }
}

/* .shadow — docs/css/forms.css:149-154, used by the offices listing
   (.table.shadow around each office's address+map block) */
.shadow {
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
}

/* "Как взять заём" step cells — docs/modules/zajm/zajm.php's own inline
   <style> (not a shared site.css file, hence missed on the first pass).
   Each .td gets its step icon as an inline background-image (left top,
   no-repeat), .l1 indents the text to clear it. The legacy markup also
   uses a `30p` class on each .td for width — confirmed via grep across
   every legacy CSS file (docs/css/*.css + every inline <style> block)
   that no such class is ever defined anywhere, including on the live
   site's own current CSS — genuinely dead, not something to port. */
.l1 {
    width: 300px;
    height: 100px;
    vertical-align: top;
}

.l1 b,
.l1 i {
    font-family: 'HelveticaLight';
    display: block;
    font-size: 18px;
    margin: 0 0 0 65px;
    font-style: normal;
}

.l1 i {
    font-size: 16px;
    margin: 20px 0 0 65px;
}

/* "Сумма сбережений/Ставка/..." 6-icon feature grid on /sberezenija/ —
   docs/modules/sber/sber.php's own inline <style>, same kind of gap as
   .l1 above (page-local style block, not in docs/css/*.css). Each .td
   gets its icon as an inline background-image (left center, no-repeat),
   .p50 clears the icon and sets the light-on-dark text colors for the
   #405e5c section background. */
.p50 {
    height: 100px;
    padding-left: 70px;
}

.p50 b {
    display: block;
    color: #b0cb1f;
    font-weight: normal;
    font-size: 22px;
    margin-bottom: 10px;
}

.p50 i {
    display: block;
    color: #fff;
    font-size: 18px;
    font-style: normal;
}

.w45 {
    display: inline-block;
    vertical-align: middle;
    width: 45%;
}

@media (max-width: 700px) {
    .w45 {
        display: block;
        width: auto;
    }
}

.w425 {
    width: 425px;
    display: inline-block;
}

/* ==================== ШАПКА ==================== */

#top {
    background: #eeeef1;
}

#top .wrapper.menu_desk {
    padding: 10px 0;
}

#callback {
    background: #fff;
    color: #000;
    height: 32px;
    width: 130px;
    padding: 10px;
    display: inline-block;
    font-size: 14px;
    line-height: 14px;
    text-transform: uppercase;
    margin-right: 24px;
    margin-left: 40px;
    cursor: pointer;
}

#getmoney {
    background: #85bc3c;
    color: #fff;
    height: 32px;
    width: 120px;
    padding: 10px;
    display: inline-block;
    margin-right: 25px;
    font-size: 14px;
    line-height: 14px;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
}

#phone {
    width: 170px;
    float: right;
    font-size: 18px;
    font-family: 'HelveticaLight';
}

/* Номер в шапке стал ссылкой tel: (header.php) — гасим оформление ссылки,
   чтобы визуально ничего не изменилось: глобальное правило `a { color: #690 }`
   перекрасило бы номер в зелёный, плюс браузер добавил бы подчёркивание. */
#phone .phone-number {
    color: inherit;
    text-decoration: none;
}

#city {
    display: inline-block;
    border-bottom: solid 2px #999;
    margin-bottom: 5px;
    width: 170px;
}

#city select {
    border: none;
    overflow: hidden;
    background-color: #fff;
    background: transparent url(../images/sel_marker.png) right center no-repeat;
    box-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 2px 30px 2px 5px;
    outline: none;
}

.ml,
.mr {
    margin-top: 20px;
    border-top: solid 2px #dfdfe1;
    text-align: right;
}

.mr {
    text-align: left;
}

.ml a,
.mr a {
    font-family: 'HelveticaLight';
    display: inline-block;
    padding: 5px;
    text-decoration: none;
    color: #333;
    margin: 0 0 0 20px;
    border-bottom: solid 2px #eeeef1;
}

.mr a {
    margin: 0 20px 0 0;
}

.ml a:hover,
.ml a.act,
.mr a:hover,
.mr a.act {
    border-bottom: solid 2px #fecc00;
}

.menu_mob {
    display: none;
}

@media (max-width: 900px) {
    .menu_desk {
        display: none;
    }

    .menu_mob {
        display: block;
        padding: 10px;
    }

    #phone {
        padding-top: 15px;
    }

    #callback,
    #getmoney {
        margin: 0;
    }
}

@media (max-width: 700px) {
    #callback,
    #getmoney {
        margin: 0 10px 10px 10px;
    }

    .top {
        text-align: center;
    }
}

/* суб-меню раздела (второй уровень, под шапкой) */

.smenu a {
    display: inline-block;
    color: #659C1C;
    padding: 5px 10px;
    text-decoration: none;
}

.smenu a:hover,
.smenu a:active {
    color: #457C00;
    text-decoration: underline;
}

/* ==================== ПОДВАЛ ==================== */

.bmenu {
    width: 25%;
}

.bmenu a {
    font-family: 'HelveticaLight';
    display: block;
    padding: 5px;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
}

.bmenu a:first-child {
    color: #85bc3c;
    text-transform: uppercase;
    padding-bottom: 10px;
}

@media (max-width: 700px) {
    .bmenu a {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .bmenu {
        width: 100%;
        text-align: center;
    }

    .bmenu a {
        font-size: 18px;
    }
}

.logo2 {
    position: relative;
    height: 1px;
}

.logo2 img {
    position: absolute;
    left: 50px;
    top: -60px;
}

@media (max-width: 640px) {
    .logo2 {
        display: none;
    }
}

.phone2 {
    text-align: center;
    color: #aec920;
    font-size: 40px;
    font-family: 'HelveticaLight';
    padding-bottom: 20px;
}

.addr2 {
    text-align: center;
    color: #eee;
    font-size: 24px;
    padding-bottom: 20px;
}

/* ==================== ОБЩИЕ КОМПОНЕНТЫ ==================== */

.btn {
    background: #85BC3C;
    color: #fff;
    padding: 10px 20px;
    display: inline-block;
    font-size: 14px;
    line-height: 14px;
    text-transform: uppercase;
    text-align: center;
    border: none;
    text-decoration: none;
}

.btn:hover,
.btn:active {
    background: #459C0C;
    text-decoration: none;
    color: #fff;
}

/* News card grid — ported from docs/modules/news/news.php's OWN inline
   <style> (a real 240x300px floated card grid with cover-cropped images),
   not from docs/css/news.css's a.news (a narrow single-column variant
   meant for some other sidebar-widget context, not the actual news
   listing). The single-column version was what got ported here initially
   and then stretched to the full 880px .wrapper2 width, which is why
   images looked horizontally distorted — this replaces it with the real
   card layout. Used by both archive-news.php and front-page.php's news
   preview. inline-block (not the legacy's float:left) so cards wrap
   naturally without needing a clearfix. */
a.news {
    display: inline-block;
    vertical-align: top;
    width: 240px;
    height: 300px;
    margin: 10px;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
    overflow: hidden;
    text-decoration: none;
    background: #fff;
    color: #000;
    font-size: 11px;
}

a.news:hover {
    box-shadow: 0 0 10px #690;
}

a.news i {
    display: block;
    margin: 0 0 5px 0;
    color: #666;
    font-size: 12px;
}

a.news b {
    display: block;
    margin: 5px 0;
    color: #000;
    font-size: 12px;
}

a.news img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.right {
    width: 25%;
    float: right;
}

#data {
    display: inline-block;
    width: 70%;
    height: auto;
    margin: 0 1% 0 0;
    text-align: justify;
}

@media (max-width: 1000px) {
    .right,
    #data {
        width: 100%;
        float: none;
        display: block;
        margin: 0;
    }
}

/* FAQ-аккордеон */

.qa_on,
.qa_off {
    margin-bottom: 20px;
}

.qa_on .q,
.qa_off .q {
    font-size: 18px;
    font-weight: bold;
    padding: 15px 50px 15px 35px;
    background-color: #ebecec;
    background-image: url(../images/down.png);
    background-position: top 10px right 10px;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: all .7s ease;
}

.qa_on .q {
    background-color: #fecc00;
    background-image: url(../images/up.png);
}

.qa_on .a,
.qa_off .a {
    font-size: 16px;
    font-weight: normal;
    padding: 15px 10% 15px 35px;
    background: #ebecec;
    transition: all .7s ease;
}

.qa_off .a {
    display: none;
}

/* ==================== ГЛАВНАЯ СТРАНИЦА ====================
   Порт оставшихся блоков docs/homepage.php: слайдер, "4 шага", "нам доверяют",
   отзывы. (.slogan из homepage.php закомментирован в самом оригинале — не
   портируется, реально не используется на сайте.) */

/* слайдер — фон меняется каждые 5с, старая CMS: docs/homepage.php set_s() */
section.s1,
section.s0 {
    background-position: center center;
    background-size: cover;
    height: 300px;
    transition: height ease 1s;
}

section.s0 {
    height: 0;
}

/* "4 шага" (block190) и "нам доверяют" (block190w) — статичные инфоблоки,
   текст в оригинале захардкожен прямо в шаблоне, не из БД */
.blocks,
.blocks2 {
    width: 900px;
    margin: auto;
    overflow: hidden;
    text-align: center;
}

.block190,
.block190w {
    display: inline-block;
    width: 220px;
    text-align: center;
    color: #2b2a29;
    font-size: 24px;
    vertical-align: top;
}

.block190 img,
.block190w img {
    display: block;
    margin: 20px auto;
}

.block190w {
    color: #fff;
    font-size: 14px;
    height: 280px;
    vertical-align: top;
}

.block190w b {
    display: block;
    color: #fff;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: normal;
    height: 45px;
}

b.h1,
b.h2,
b.h100,
b.h100i {
    font-family: 'HelveticaLight';
    color: #405e5c;
    font-size: 34px;
    line-height: 34px;
    text-transform: uppercase;
    font-weight: normal;
    display: block;
    padding: 0 150px 0 0;
}

b.h100 {
    padding: 0 0 30px;
    font-size: 32px;
    line-height: 32px;
}

b.h100i {
    display: inline-block;
    color: #333;
    padding: 0 0 10px;
    font-size: 32px;
    line-height: 32px;
    text-align: left;
    text-transform: none;
}

b.h2 {
    color: #fff;
}

b.h3 {
    color: #000;
    font-size: 26px;
    line-height: 26px;
    font-weight: normal;
    display: block;
    padding: 0 0 20px;
}

a.all {
    display: inline-block;
    color: #333;
    text-decoration: none;
    margin-left: 50px;
}

@media (max-width: 900px) {
    .blocks {
        width: 450px;
        margin: auto;
    }

    b.h1,
    b.h2 {
        font-size: 36px;
        padding: 0;
    }
}

/* отзывы — карточка .rew (docs/_reviews.php) */
.rew {
    display: inline-block;
    flex-shrink: 0;
    width: 420px;
    height: 220px;
    background: #fff;
    position: relative;
    margin: 20px 10px;
    vertical-align: top;
    cursor: pointer;
    text-decoration: none;
}

.rew img {
    position: absolute;
    left: 36px;
    top: -10px;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background-position: center center;
    background-size: cover;
}

.rew b {
    display: inline-block;
    position: absolute;
    right: 30px;
    top: 25px;
    color: #000;
    font-size: 22px;
    font-weight: normal;
    width: 200px;
    text-align: center;
}

.rew i {
    display: block;
    color: #000;
    font-size: 16px;
    font-weight: normal;
    font-style: normal;
    padding: 110px 36px 0;
}

@media (max-width: 960px) {
    .rew {
        width: 300px;
        height: 280px;
        margin: 0 5px 20px;
    }

    .rew b {
        right: 20px;
        font-size: 18px;
        width: 150px;
    }

    .rew i {
        padding: 110px 20px 0;
    }
}

/* reviews carousel shell (docs/_reviews.php: #scroller_container1 + .arr) —
   the .rew card itself is unchanged above; this just clips the track to
   show 2 cards (880px viewport / 440px per card) and pages the rest via
   JS transform instead of the legacy left-position animation. */
.rew-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.rew-carousel__viewport {
    width: 880px;
    overflow: hidden;
}

.rew-carousel__track {
    display: flex;
    transition: transform .5s ease;
}

.rew-carousel__arr {
    flex: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.rew-carousel__arr:disabled {
    visibility: hidden;
}

@media (max-width: 960px) {
    .rew-carousel__viewport {
        width: 310px;
    }
}

/* "О компании" блок (docs/homepage.php: .tdabout) */
.tdabout {
    width: 260px;
    padding: 50px;
    background: #85bc3c;
    color: #393c43;
    font-size: 18px;
}

.w100 {
    width: 100%;
}

@media (max-width: 480px) {
    .tdabout {
        width: auto;
        padding: 20px;
    }

    .desktop,
    td.desktop {
        display: none;
    }
}

/* Сетка мини-карточек для листингов CPT без отдельной вёрстки под превью
   (сотрудники/вакансии/офисы/документы) — page.php: palata_card_grid(),
   template-parts/{staff,office,vacancy,document}-card-mini.php. Полная
   карточка при переходе на single — свои стили (.staff-card/.office-card/
   .document-card ниже, .vac_* для вакансий). */
.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.card-mini {
    display: flex;
    flex-direction: column;
    width: 200px;
    padding: 16px;
    border: 1px solid #eeeeee;
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease;
}

.card-mini:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}

.card-mini__photo {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.card-mini__title {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.card-mini__subtitle {
    font-size: 13px;
    color: #666;
}

.card-mini--doc {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: auto;
    min-width: 240px;
}

.card-mini__badge {
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    background: #1F5BFF;
    border-radius: 2px;
    padding: 2px 6px;
    margin-left: 12px;
}

/* карточка программы сбережений в списке (docs/_sber.php: .b190) */

.b190 {
    display: inline-block;
    vertical-align: top;
    width: 120px;
    height: 215px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(100, 100, 100, .1);
    text-align: center;
    margin: 20px;
    font-size: 12px;
}

.b190 img {
    display: block;
    margin: 5px auto;
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
}

.b190 b {
    display: block;
    color: #333;
    font-size: 18px;
    font-weight: normal;
    height: 45px;
}

/* "Подробнее" button — docs/css/site.css:351-370, class was dropped when
   _sber.php was ported to savings-program-card.php (see GAP-ANALYSIS
   Group C); shared by the homepage, /zajmy/ and /sberezenija/. */
a.gr1 {
    display: block;
    min-height: 40px;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(133, 188, 60, .8);
    background: #85bc3c;
    color: #fff;
    font-size: 18px;
    line-height: 40px;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
}

a.gr1:hover,
a.gr1:active {
    background: #659c1c;
}

/* "Оставить заявку" CTA — docs/css/site.css:373-392 (a.gr2). Legacy uses
   this on an <a>, our calculators use a <button> instead (same pattern as
   .btn), so the selector isn't scoped to `a` — same visual pill button,
   orange rather than gr1's green. */
.gr2 {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 40px;
    border: none;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(255, 150, 0, .8);
    background: #f30;
    color: #fff;
    font-size: 18px;
    line-height: 40px;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
}

.gr2:hover,
.gr2:active {
    background: #d30;
}

/* ==================== КАЛЬКУЛЯТОР СБЕРЕЖЕНИЙ ====================
   Порт инлайн-<style> из docs/homepage.php + адаптивные правила
   #calc и .calc21 из docs/css/site.css (брейкпоинты 800px/480px). */

/* .slogan — hero-заголовок над калькулятором на /zajmy/ и /sberezenija/
   (docs/css/site.css:264-287). Пропущен при первом проходе портирования
   CSS: на главной .slogan закомментирован в самом оригинале и не
   используется, поэтому казался мёртвым кодом — но на архивах займов и
   сбережений это активная разметка (docs/modules/{zajm,sber}/*.php). */
.slogan {
    width: 400px;
    padding: 50px 0;
}

.slogan b {
    font-family: 'HelveticaLight';
    color: #34622b;
    font-size: 48px;
    line-height: 48px;
    text-transform: uppercase;
    font-weight: normal;
    display: block;
}

.slogan i {
    color: #333;
    font-size: 20px;
    font-weight: bold;
    font-style: normal;
    display: block;
    margin-top: 20px;
}

#calc {
    margin: 0 auto 40px;
    padding: 20px 0;
    text-align: center;
}

#calc1,
#calc2 {
    display: inline-block;
    vertical-align: top;
    font-family: 'HelveticaLight';
    text-align: left;
}

/* box look for the two calculator panels — docs/css/site.css:303-322,
   dropped entirely during the initial CSS port (that pass only checked
   docs/css/*.css for #calc*, not that these two id rules also apply here;
   see GAP-ANALYSIS visual-fixes follow-up). Shared by both calculators
   (savings-calculator.php and loan-calculator.php). */
#calc1 {
    background: #fff;
    padding: 25px;
}

#calc2 {
    background: #dbe285;
    padding: 25px 45px 20px 45px;
}

#calc1 b {
    font-size: 24px;
    color: #666;
    display: block;
    margin-bottom: 10px;
}

.calc21 {
    display: inline-block;
    width: 110px;
    font-size: 18px;
    line-height: 20px;
    vertical-align: top;
}

.calc23 {
    display: inline-block;
    width: 20px;
}

.w150 {
    width: 150px;
}

#calc [data-calc-sum],
#calc [data-calc-term] {
    border: none;
    margin-top: 15px;
    font-size: 20px;
    color: #333;
    background: #eee;
    width: 100px;
    padding: 5px;
    outline: none;
}

.w150 [data-calc-sum],
.w150 [data-calc-term] {
    width: 130px;
}

[data-calc-total],
[data-calc-income] {
    font-size: 20px;
}

@media (max-width: 800px) {
    #calc1,
    #calc1a,
    #calc2,
    #calc2a {
        display: block;
        float: none;
        margin: 0 auto;
        padding: 10px 0;
    }
}

@media (max-width: 480px) {
    .calc21 {
        font-size: 18px;
    }
}

/* ==================== МОДАЛКА (обратный звонок) ==================== */

div#fade {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(255, 255, 255, .5);
    display: none;
    z-index: 100;
}

.form {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    background: rgba(0, 0, 0, .9);
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .5);
    padding: 10px 50px;
    z-index: 200;
    color: #fff;
}

.form td {
    color: #fff;
}

.form input[type="button"],
.form input[type="submit"] {
    background: #85bc3c;
    color: #fff;
    padding: 10px;
    display: inline-block;
    font-size: 14px;
    line-height: 14px;
    text-transform: uppercase;
    text-align: center;
    border: none;
    cursor: pointer;
}

.form input[type="text"],
.form select,
.form textarea {
    background: #fff;
    color: #000;
    padding: 10px;
    display: inline-block;
    font-size: 14px;
    line-height: 14px;
    outline: none;
    border: none;
}

.form textarea {
    font-family: arial;
    text-transform: none;
}

.req {
    color: #ff0000;
}

/* ==================== COOKIE BANNER ====================
   (готовый виджет по образцу mgn-car.ru, см. wordpress-migration/PLAN.md) */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: flex-end;
    padding: 0 16px 16px;
    pointer-events: none;
    box-sizing: border-box;
}

.cookie-banner--visible {
    display: flex;
}

.cookie-banner__inner {
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    padding: 24px 28px 20px;
    max-width: 740px;
    width: 100%;
    pointer-events: all;
    box-sizing: border-box;
    animation: cookieBannerIn 0.3s ease-out both;
}

@keyframes cookieBannerIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cookie-banner__title {
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #111111;
    margin: 0 0 10px;
}

.cookie-banner__text {
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #444444;
    margin: 0 0 16px;
}

.cookie-banner__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cookie-banner__btn {
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    border-radius: 2px;
    padding: 10px 20px;
    transition: opacity 0.2s ease, background-color 0.2s ease;
    line-height: 1;
}

.cookie-banner__btn--accept {
    background-color: #111111;
    color: #ffffff;
}
.cookie-banner__btn--accept:hover {
    background-color: #333333;
}

.cookie-banner__btn--reject {
    background: transparent;
    color: #111111;
    padding-left: 0;
    padding-right: 0;
    text-decoration: none;
    font-weight: 400;
}
.cookie-banner__btn--reject:hover {
    opacity: 0.6;
}

.cookie-banner__btn--settings {
    background: transparent;
    color: #111111;
    padding-left: 0;
    padding-right: 0;
    text-decoration: none;
    font-weight: 400;
    margin-left: auto;
}
.cookie-banner__btn--settings:hover {
    opacity: 0.6;
}

.cookie-banner__settings {
    display: none;
}

.cookie-banner__settings-header {
    margin-bottom: 16px;
}

.cookie-banner__back {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: #111111;
    padding: 0;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.cookie-banner__back:hover { opacity: 1; }

.cookie-banner__settings-title {
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #111111;
    margin: 0 0 8px;
}

.cookie-banner__settings-text {
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #666666;
    margin: 0 0 16px;
}

.cookie-category {
    border-top: 1px solid #eeeeee;
    padding: 12px 0;
}

.cookie-category__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.cookie-category__name {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #111111;
}

.cookie-category__always {
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: #1F5BFF;
    font-weight: 600;
}

.cookie-category__desc {
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.5;
    color: #888888;
}

.cookie-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.cookie-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle__track {
    width: 40px;
    height: 22px;
    background-color: #cccccc;
    border-radius: 11px;
    position: relative;
    transition: background-color 0.2s ease;
    display: block;
}

.cookie-toggle__thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.2s ease;
    display: block;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.cookie-toggle input:checked + .cookie-toggle__track {
    background-color: #1F5BFF;
}

.cookie-toggle input:checked + .cookie-toggle__track .cookie-toggle__thumb {
    transform: translateX(18px);
}

.cookie-banner__settings-footer {
    border-top: 1px solid #eeeeee;
    padding-top: 14px;
    margin-top: 4px;
}

@media screen and (max-width: 640px) {
    .cookie-banner {
        padding: 0;
    }

    .cookie-banner__inner {
        border-radius: 4px 4px 0 0;
        padding: 20px 16px 16px;
        max-height: calc(100vh - 20px);
        overflow-y: auto;
    }

    .cookie-banner__actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-banner__btn {
        width: 100%;
        text-align: center;
    }

    .cookie-banner__btn--reject,
    .cookie-banner__btn--settings {
        padding-left: 0;
        margin-left: 0;
    }
}

/* ======================================================
   Карточки single-*.php для staff/office/document — не было
   отдельной вёрстки в легаси для этих модулей (docs/css/*.css
   не содержит pers_/filial/doc_ классов), оформление ниже —
   новое, в стиле остальной темы (см. GAP-ANALYSIS-2026-08-08.md п.1.1).
   ====================================================== */

.staff-card {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.staff-card__photo {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.staff-card__name {
    margin: 0 0 6px;
}

.staff-card__position {
    color: #666;
    margin: 0 0 12px;
}

.staff-card__contact {
    margin: 0 0 4px;
}

.staff-card__contact a {
    color: #1F5BFF;
    text-decoration: none;
}

.staff-card__bio {
    margin-top: 16px;
}

@media screen and (max-width: 640px) {
    .staff-card {
        flex-direction: column;
    }
}

.office-card__meta {
    list-style: none;
    margin: 16px 0;
    padding: 0;
}

.office-card__meta li {
    margin-bottom: 6px;
}

.office-card__meta a {
    color: #1F5BFF;
    text-decoration: none;
}

.document-card__download {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #111111;
    color: #ffffff;
    text-decoration: none;
    border-radius: 2px;
    font-weight: 600;
}

.document-card__download:hover {
    background-color: #333333;
}

/* ======================================================
   Вакансии (.vac / .vac_*) — портировано из docs/css/vacancy.css,
   этот файл не был перенесён в тему вообще. Убраны table-эры
   атрибуты legacy (frf/x* префиксы — закомментированные в
   оригинале свойства), font-family заменён на базовый шрифт темы.
   ====================================================== */

.vac {
    padding: 0;
    text-align: left;
    margin: 0 0 20px;
    clear: both;
    font-size: 14pt;
}

.vac_full {
    margin-bottom: 20px;
}

.vac_name,
.vac_phone {
    text-decoration: none;
    font-weight: normal;
    color: #000000;
    font-size: 14pt;
    display: block;
    margin: 0 0 3px;
}

.vac_phone a,
.vac_name a {
    color: #1F5BFF;
    text-decoration: none;
}

.vac_intro,
a.vac_intro {
    font-family: 'HelveticaLight';
    color: #4D4D4D;
    font-weight: normal;
    display: block;
    text-decoration: none;
    margin: 5px 0 0;
}

a.vac_intro:hover {
    text-decoration: none;
    color: #000000;
}

a.vac_more {
    font-size: 10pt;
    font-weight: normal;
    color: #0099dd;
    text-decoration: none;
}

a.vac_more:hover {
    color: #0099dd;
    text-decoration: underline;
}

.vac_div_more {
    display: none;
}

/* ======================================================
   Форма "Обратный звонок" (footer.php #callback-form,
   inc/forms-handler.php) — honeypot-поле и статус отправки.
   ====================================================== */

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

#c_msg.ok {
    color: #2ecc71;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

#c_msg.alert {
    color: #e74c3c;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

/* Липкая кнопка звонка (footer.php) — скрыта на десктопе, включается
   через display:flex внутри @media (max-width: 900px) в style.css. */
#call-bar { display: none; }
