/* Общие стили страниц без Tilda: шрифты, цвета, шапка, футер, кнопки.
   Стили конкретной страницы лежат отдельно (например, assets/css/page-edo.css). */

/* GolosMabry — составное семейство, как в Tilda: 400/600 — Golos Text, 500/700 — Mabry Pro */
@font-face { font-family: 'GolosMabry'; src: url('../fonts/golos-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'GolosMabry'; src: url('../fonts/mabry-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'GolosMabry'; src: url('../fonts/golos-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'GolosMabry'; src: url('../fonts/mabry-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
    --c-dark: #003837;
    --c-dark-2: #194847;
    --c-teal: #15baaa;
    --c-green: #00e673;
    --c-orange: #ffa401;
    --c-blue: #7ca0ff;
    --c-text: #222222;
    --c-bg: #f3f3f3;
    --c-card: #f9fafd;
    --c-line: #e8edf1;
    --gradient: linear-gradient(141.84deg, #7ca0ff 0%, #15baaa 81%);
    --container: 1160px;
    --gutter: 20px;
    --header-h: 70px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: 'GolosMabry', Arial, sans-serif;
    color: var(--c-text);
    background: var(--c-dark);
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--c-green); outline-offset: 2px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- кнопки ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    height: 45px; padding: 0 16px; border: 0; border-radius: 10px;
    font-size: 14px; line-height: 1; cursor: pointer;
    transition: background-color .2s, color .2s, opacity .2s;
}
.btn--teal { background: var(--c-teal); color: #fff; }
.btn--teal:hover { background: #13a596; }
.btn__arrow { width: 16px; height: 16px; flex: none; }

/* ---------- шапка ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--header-h); padding: 0 30px;
    display: flex; align-items: center; gap: 40px;
    background: var(--c-dark); border-radius: 0 0 20px 20px;
    color: #fff; font-size: 14px;
}
.site-header__logo { flex: none; }
.site-header__logo img { width: 76px; height: auto; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; min-width: 0; }  /* на узких десктопах — в две строки, как в Tilda */
.site-nav > li { position: relative; }
.site-nav__link {
    display: inline-flex; align-items: center; gap: 4px; padding: 6px 0;
    font-weight: 500; white-space: nowrap; background: none; border: 0; cursor: pointer;
    transition: color .2s;
}
.site-nav__link:hover, .site-nav__link[aria-current="page"], .site-nav__item--open > .site-nav__link { color: var(--c-green); }
.site-nav__chevron { width: 10px; height: 10px; transition: transform .2s; }
.site-nav__item--open .site-nav__chevron { transform: rotate(180deg); }
.site-nav__sub {
    position: absolute; top: 100%; left: -20px; min-width: 230px; padding: 10px 0;
    background: var(--c-dark); border-radius: 0 0 16px 16px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .2);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .2s, transform .2s, visibility .2s;
}
.site-nav__item--open > .site-nav__sub,
.site-nav__item--dropdown:focus-within > .site-nav__sub { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) {
    .site-nav__item--dropdown:hover > .site-nav__sub { opacity: 1; visibility: visible; transform: none; }
    .site-nav__item--dropdown:hover > .site-nav__link { color: var(--c-green); }
}
.site-nav__sub a { display: block; padding: 9px 20px; white-space: nowrap; transition: color .2s; }
.site-nav__sub a:hover { color: var(--c-green); }
.site-nav__sub a[aria-current="page"] { opacity: .6; }

.site-header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.site-header__ofd { margin-right: 20px; white-space: nowrap; transition: color .2s; }
.site-header__ofd:hover { color: var(--c-green); }
.hbtn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 40px; padding: 0 30px; border-radius: 12px; white-space: nowrap;
    transition: opacity .2s;
}
.hbtn:hover { opacity: .85; }
.hbtn--dark { background: var(--c-dark-2); color: #fff; }
.hbtn--light { background: #fff; color: var(--c-dark); }

.lang { position: relative; margin-left: 20px; }
.lang__btn {
    display: flex; align-items: center; gap: 6px; padding: 6px 0;
    background: none; border: 0; cursor: pointer; font-size: 14px; font-weight: 500;
}
.lang__btn svg { width: 17px; height: 17px; }
.lang__list {
    position: absolute; top: 100%; right: -10px; padding: 6px 0; min-width: 70px;
    background: var(--c-dark); border-radius: 12px; box-shadow: 0 12px 24px rgba(0, 0, 0, .2);
    opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.lang--open .lang__list, .lang:focus-within .lang__list { opacity: 1; visibility: visible; }
@media (hover: hover) { .lang:hover .lang__list { opacity: 1; visibility: visible; } }
.lang__list a { display: block; padding: 6px 14px; font-weight: 500; }
.lang__list a:hover { color: var(--c-green); }
.lang__list a[aria-current="true"] { opacity: .6; }

.burger {
    display: none; width: 34px; height: 34px; margin-left: auto; padding: 0;
    align-items: center; justify-content: center;
    background: #fff; border: 0; border-radius: 6px; cursor: pointer;
}
.burger span, .burger span::before, .burger span::after {
    display: block; width: 20px; height: 2px; background: var(--c-dark); border-radius: 1px; position: relative;
}
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

/* мобильное меню — выезжает справа */
.mmenu { position: fixed; inset: 0; z-index: 200; visibility: hidden; overflow: hidden; }
.mmenu--open { visibility: visible; }
.mmenu__overlay {
    position: absolute; inset: 0; background: rgba(0, 56, 55, .4);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    opacity: 0; transition: opacity .3s;
}
.mmenu--open .mmenu__overlay { opacity: 1; }
.mmenu__panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(300px, 85vw);
    display: flex; flex-direction: column; padding: 40px 25px 30px;
    background: var(--c-dark); color: #fff; overflow-y: auto;
    transform: translateX(100%); transition: transform .3s;
}
.mmenu--open .mmenu__panel { transform: none; }
.mmenu__close {
    position: absolute; top: 12px; right: 14px; width: 30px; height: 30px; padding: 0;
    background: none; border: 0; cursor: pointer;
}
.mmenu__close svg { width: 22px; height: 22px; margin: auto; }
.mmenu__nav > li { border-bottom: 1px solid rgba(255, 255, 255, .7); }
.mmenu__nav > li > a, .mmenu__toggle {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    padding: 20px 0; font-size: 18px; font-weight: 500; line-height: 1.35; text-align: left;
    background: none; border: 0; cursor: pointer;
}
.mmenu__toggle svg { width: 12px; height: 12px; transition: transform .2s; }
.mmenu__toggle[aria-expanded="true"] svg { transform: rotate(90deg); }
.mmenu__sub { display: none; padding: 0 0 14px 12px; }
.mmenu__toggle[aria-expanded="true"] + .mmenu__sub { display: block; }
.mmenu__sub a { display: block; padding: 8px 0; font-size: 16px; }
.mmenu__sub a[aria-current="page"] { opacity: .6; }
.mmenu__bottom { margin-top: auto; padding-top: 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.mmenu__bottom .site-header__ofd { margin: 0 0 10px; }
.mmenu__langs { display: flex; gap: 16px; margin-top: 6px; font-weight: 500; }
.mmenu__langs a { display: flex; align-items: center; gap: 6px; }
.mmenu__langs a[aria-current="true"] { color: var(--c-green); }
body.no-scroll { overflow: hidden; }

@media (max-width: 1500px) {
    .site-header { gap: 24px; padding: 0 20px; }
    .site-nav { gap: 0 16px; }
    .site-header__ofd { margin-right: 6px; }
    .hbtn { padding: 0 18px; }
    .lang { margin-left: 8px; }
}
@media (max-width: 1279px) {
    :root { --header-h: 60px; }
    .site-header { padding: 0 16px; border-radius: 0 0 16px 16px; }
    .site-header__logo img { width: 64px; }
    .site-nav, .site-header__actions { display: none; }
    .burger { display: flex; }
}

/* ---------- футер ---------- */
.site-footer {
    position: relative; overflow: hidden;
    padding: 53px 0 40px; color: #fff;
    background: var(--c-dark) url('../img/6534-643-Frame_2087325622_1.webp') center top / cover no-repeat;
    border-radius: 30px 30px 0 0;
    font-size: 12px;
}
.site-footer .container { max-width: calc(1188px + 2 * var(--gutter)); }
.site-footer__top { display: grid; grid-template-columns: 400px 298px 300px minmax(0, 1fr); }
.site-footer__logo img { width: 95px; height: auto; }
.site-footer__social { display: flex; gap: 9px; margin-top: 30px; }
.site-footer__social a {
    display: flex; align-items: center; justify-content: center;
    width: 29px; height: 29px; border-radius: 50%;
    background: rgba(241, 241, 241, .24); transition: background-color .2s;
}
.site-footer__social a:hover { background: rgba(241, 241, 241, .4); }
.site-footer__social img { width: 13px; height: 13px; }
.site-footer__phone { display: inline-block; margin-top: 32px; font-size: 20px; }
.site-footer__mail { display: block; margin-top: 18px; font-size: 18px; font-weight: 500; }
.site-footer__note { margin-top: 18px; max-width: 264px; line-height: 1.05; opacity: .7; }
.site-footer__cyber { display: block; margin-top: 4px; font-size: 18px; font-weight: 500; }
.site-footer__col h2 { margin-top: 18px; font-size: 18px; font-weight: 500; }
.site-footer__col ul { margin-top: 26px; display: grid; gap: 13px; }
.site-footer__col a, .site-footer__col span { display: inline-block; font-size: 12px; line-height: 14px; transition: opacity .2s; }
.site-footer a:hover { opacity: .75; }
.site-footer__bottom {
    display: grid; grid-template-columns: 400px 298px minmax(0, 1fr); margin-top: 36px; padding-top: 36px;
    border-top: 1px solid rgba(255, 255, 255, .58); line-height: 1.2;
}
.site-footer__bottom > * { opacity: .7; }
.site-footer__bottom a { max-width: 153px; }

@media (max-width: 959px) {
    .site-footer { padding: 36px 0 20px; background-image: url('../img/3034-633-Frame_2087325622_2.webp'); border-radius: 20px 20px 0 0; }
    .site-footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 20px; }
    .site-footer__brand { grid-row: span 2; }
    .site-footer__col h2 { margin-top: 0; font-size: 14px; }
    .site-footer__col ul { margin-top: 12px; gap: 10px; }
    .site-footer__phone { margin-top: 22px; font-size: 16px; }
    .site-footer__mail { font-size: 16px; }
    .site-footer__cyber { font-size: 14px; }
    .site-footer__bottom { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 28px; padding-top: 24px; font-size: 11px; }
    .site-footer__bottom address { grid-column: 1 / -1; }
}
@media (max-width: 479px) {
    .site-footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .site-footer__brand { grid-row: auto; grid-column: 1 / -1; }
    .site-footer__social { margin-top: 20px; }
}
.site-footer address { font-style: normal; }

/* ---------- FAQ-аккордеон: <details class="qa"> (его же читает scripts/schema.py) ---------- */
.qa { border-top: 1px solid #527977; }
.qa:last-child { border-bottom: 1px solid #527977; }
.qa summary {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 20px 0; cursor: pointer; list-style: none;
    font-size: 24px; font-weight: 600; line-height: 32.4px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa__icon { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; background: #245453; transition: transform .25s; }
.qa__icon::before, .qa__icon::after {
    content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 1px; margin: -.5px 0 0 -7px; background: #fff;
}
.qa__icon::after { transform: rotate(90deg); }
.qa[open] .qa__icon { transform: rotate(45deg); }
.qa__a { padding: 0 60px 32px 0; font-size: 14px; line-height: 1.55; }
@media (max-width: 639px) {
    .qa summary { padding: 14px 0; font-size: 15px; line-height: 1.35; }
    .qa__icon { width: 32px; height: 32px; }
    .qa__a { padding: 0 0 20px; font-size: 12px; }
}

/* ---------- сообщения форм (их выводит site.js) ---------- */
.form-msg { margin-top: 10px; font-size: 14px; line-height: 1.35; }
.form-msg--error { color: #d03030; }
/* ошибка под полем (site.js): поверх отступа до следующего поля, чтобы форма не прыгала */
.field, .check { position: relative; }
.field-err { position: absolute; left: 0; top: 100%; margin-top: 3px; font-size: 12px; line-height: 1.2; color: #f95d51; white-space: nowrap; }
.field-err:empty { display: none; }
/* плотные формы (платформенная занятость, 1С): ошибка — плашкой внутри поля справа, у галочки — только красная рамка */
.pz-form .field-err, .c1-form .field-err {
    top: 50%; left: auto; right: 8px; margin: 0; translate: 0 -50%; padding: 2px 6px; border-radius: 4px;
    background: #f95d51; color: #fff; font-size: 11px; pointer-events: none;
}
.pz-form .check .field-err, .c1-form .check .field-err { display: none; }
/* ЭДО: подпись над полем — ошибка в той же строке справа */
.feedback__form .field-err { top: 0; left: auto; right: 0; margin: 0; }
/* строка о согласии на обработку персональных данных под кнопкой */
.form-consent { margin: 0; font-size: 12px; line-height: 1.4; opacity: .7; }
.form-consent a { color: inherit; text-decoration: underline; }
.form-done { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; min-height: 300px; text-align: center; gap: 12px; }
.form-done svg { width: 56px; height: 56px; }
.form-done p { font-size: 18px; line-height: 1.35; }
.form-done__title { font-size: 24px; font-weight: 600; line-height: 1.2; }
/* переход после отправки (data-success-url): кнопка-ссылка и индикатор ожидания */
.form-done__go { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 10px 44px; border-radius: 0; background: #000; color: #fff; font-size: 16px; font-weight: 500; text-decoration: none; }
.form-done__wait { width: 20px; height: 20px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: form-wait .8s linear infinite; opacity: .6; }
@keyframes form-wait { to { transform: rotate(360deg); } }

/* ---------- попап на <dialog class="popup"> (открывает site.js по data-popup) ---------- */
.popup {
    width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0;
    background: transparent; color: #fff; overflow: visible;
}
.popup::backdrop { background: rgba(0, 0, 0, .8); }
.popup[open] { animation: popup-in .25s ease-out; }
@keyframes popup-in { from { opacity: 0; transform: translateY(20px); } }
.popup__box { position: relative; padding: 50px 40px 40px; background: var(--c-dark); border-radius: 20px; max-height: calc(100vh - 32px); overflow-y: auto; }
.popup__close {
    position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    background: none; border: 0; cursor: pointer; opacity: .8; transition: opacity .2s;
}
.popup__close:hover { opacity: 1; }
.popup__close svg { width: 20px; height: 20px; }
.popup__title { font-size: 26px; font-weight: 600; line-height: 1.23; text-align: center; }

/* ---------- появление при прокрутке (как анимации Zero-блоков Tilda) ----------
   data-anim="fadein | fadeinup | fadeindown | fadeinleft | fadeinright | zoomin"; длительность/задержка/сдвиг — через style="--anim-dur:1.5s; --anim-delay:.2s; --anim-dist:50px".
   Прячем только когда site.js включил наблюдение (класс anim-on у <html>), без JS всё видно сразу. */
.anim-on [data-anim] {
    opacity: 0;
    --anim-ease: cubic-bezier(.19, 1, .22, 1); /* кривая Tilda */
    transition: opacity var(--anim-dur, 1s) var(--anim-ease) var(--anim-delay, 0s), transform var(--anim-dur, 1s) var(--anim-ease) var(--anim-delay, 0s);
}
.anim-on [data-anim="fadeinup"] { transform: translateY(var(--anim-dist, 100px)); }
.anim-on [data-anim="fadeindown"] { transform: translateY(calc(-1 * var(--anim-dist, 100px))); }
.anim-on [data-anim="fadeinleft"] { transform: translateX(var(--anim-dist, 100px)); }
.anim-on [data-anim="fadeinright"] { transform: translateX(calc(-1 * var(--anim-dist, 100px))); }
.anim-on [data-anim="zoomin"] { transform: scale(var(--anim-scale, .9)); }
.anim-on [data-anim].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .anim-on [data-anim] { opacity: 1; transform: none; transition: none; }
}
