/* Шапка и подвал публичного сайта */
:root {
  --sh-dark: #22253b;
  --sh-text: #3d4052;
  --sh-muted: #6b6f80;
  --sh-line: #e7e6f0;
  --sh-soft: #f4f3fa;
  --sh-blue: #38bff2;
  --sh-blue-dark: #1ea9de;
  --sh-blue-soft: #e9f8fe;
  --sh-accent: #ff5f00;
  --sh-accent-soft: #fff1e8;
  --sh-h: 64px;
}

body { padding-top: var(--sh-h); }
html.sh-lock, html.sh-lock body { overflow: hidden; }

/* ---------- Шапка ---------- */
.sh { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--sh-h); background: #fff; border-bottom: 1px solid var(--sh-line); font-family: inherit; }
.sh *, .sh *::before, .sh *::after { box-sizing: border-box; }
.sh a, .sh button { font-family: inherit; }
.sh__in { max-width: 1170px; height: 100%; margin: 0 auto; padding: 0 15px; display: flex; align-items: center; gap: 24px; }
.sh__logo { flex: 0 0 auto; display: block; line-height: 0; }
.sh__logo img { display: block; height: 38px; width: auto; }

.sh-nav { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 16px; }
.sh-nav__head, .sh-nav__close { display: none; }
.sh-list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.sh-item { position: relative; margin: 0; padding: 0; }

.sh-link { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 0; border-radius: 10px; background: none; font-size: 15px; line-height: 20px; font-weight: 500; color: var(--sh-text); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.sh-link:hover { background: var(--sh-soft); color: var(--sh-dark); }
.sh-link:focus-visible, .sh-btn:focus-visible, .sh-cart:focus-visible, .sh-burger:focus-visible, .sh-drop__link:focus-visible { outline: 2px solid var(--sh-blue); outline-offset: 2px; }
.sh-item.is-active > .sh-link { color: var(--sh-dark); font-weight: 600; }
.sh-item.is-active > .sh-link::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; border-radius: 2px; background: var(--sh-accent); }
.sh-chev { flex: 0 0 auto; width: 14px; height: 14px; transition: transform .2s; }
.sh-item.is-open > .sh-link .sh-chev { transform: rotate(180deg); }

.sh-drop { display: none; position: absolute; top: 100%; left: 0; z-index: 5; min-width: 290px; margin: 0; padding: 8px; list-style: none; background: #fff; border: 1px solid var(--sh-line); border-radius: 14px; box-shadow: 0 14px 34px rgba(34, 37, 59, .12); }
.sh-drop::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.sh-drop li { margin: 0; padding: 0; }
.sh-drop__link { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--sh-dark); transition: background .15s; }
.sh-drop__link:hover { background: var(--sh-soft); color: var(--sh-dark); }
.sh-drop__link.is-active { background: var(--sh-blue-soft); }
.sh-drop__t { display: block; font-size: 15px; line-height: 20px; font-weight: 600; }
.sh-drop__d { display: block; margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--sh-muted); }
.sh-item.is-open > .sh-drop { display: block; }
@media (min-width: 1001px) and (hover: hover) {
  .sh-item--group:hover > .sh-drop { display: block; }
  .sh-item--group:hover > .sh-link .sh-chev { transform: rotate(180deg); }
}
.sh-item--group:has(:focus-visible) > .sh-drop { display: block; }

.sh-foot { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.sh-phone { font-size: 15px; font-weight: 600; color: var(--sh-dark); text-decoration: none; white-space: nowrap; }
.sh-phone:hover { color: var(--sh-blue-dark); }
.sh-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border-radius: 10px; border: 2px solid var(--sh-blue); background: var(--sh-blue); color: #fff; font-size: 15px; line-height: 20px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s; }
.sh-btn:hover { background: var(--sh-blue-dark); border-color: var(--sh-blue-dark); color: #fff; }

.sh-cart { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--sh-line); border-radius: 10px; background: #fff; font-size: 15px; line-height: 20px; font-weight: 500; color: var(--sh-dark); text-decoration: none; white-space: nowrap; transition: border-color .15s, background .15s; }
.sh-cart:hover { border-color: var(--sh-accent); color: var(--sh-dark); }
.sh-cart svg { display: block; flex: 0 0 auto; }
.sh-cart__n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--sh-accent); color: #fff; font-size: 12px; line-height: 20px; font-weight: 700; text-align: center; }
.sh-cart.has-items { border-color: var(--sh-accent); background: var(--sh-accent-soft); }
.sh-cart--bar { display: none; }

.sh-burger { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--sh-line); border-radius: 10px; background: #fff; color: var(--sh-dark); cursor: pointer; }
.sh-overlay { display: none; position: fixed; inset: 0; z-index: 1; background: rgba(34, 37, 59, .55); }
html.sh-lock .sh { z-index: 3000; }

@media (max-width: 1180px) {
  .sh-phone { display: none; }
}

@media (max-width: 1000px) {
  :root { --sh-h: 60px; }
  .sh__in { gap: 12px; }
  .sh__logo { margin-right: auto; }
  .sh__logo img { height: 34px; }
  .sh-cart--bar { display: inline-flex; padding: 8px 10px; }
  .sh-cart--bar .sh-cart__t { display: none; }
  .sh-burger { display: inline-flex; }
  .sh-overlay.is-open { display: block; }

  .sh-nav { position: fixed; top: 0; right: 0; bottom: 0; z-index: 2; width: min(400px, 100%); flex-direction: column; align-items: stretch; gap: 0; padding: 0 0 24px; background: #fff; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; box-shadow: -8px 0 30px rgba(34, 37, 59, .2); }
  .sh-nav.is-open { transform: none; visibility: visible; transition: transform .25s ease; }
  .sh-nav__head { display: flex; align-items: center; justify-content: space-between; height: var(--sh-h); padding: 0 15px; border-bottom: 1px solid var(--sh-line); flex: 0 0 auto; }
  .sh-nav__head img { display: block; height: 34px; width: auto; }
  .sh-nav__close { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--sh-line); border-radius: 10px; background: #fff; color: var(--sh-dark); cursor: pointer; }

  .sh-list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 15px; }
  .sh-item { border-bottom: 1px solid var(--sh-line); }
  .sh-item:last-child { border-bottom: 0; }
  .sh-link { width: 100%; justify-content: space-between; padding: 14px 4px; border-radius: 0; font-size: 17px; line-height: 24px; }
  .sh-link:hover { background: none; }
  .sh-item.is-active > .sh-link::after { left: 4px; right: auto; width: 28px; bottom: 6px; }
  .sh-chev { width: 18px; height: 18px; }

  .sh-drop { position: static; min-width: 0; padding: 0 0 10px 0; border: 0; border-radius: 0; box-shadow: none; background: none; }
  .sh-drop::before { display: none; }
  .sh-drop__link { padding: 10px 12px; }
  .sh-drop__t { font-size: 16px; }
  .sh-item--group:has(:focus-visible) > .sh-drop { display: none; }
  .sh-item--group.is-open:has(:focus-visible) > .sh-drop { display: block; }

  .sh-foot { margin-left: 0; flex-direction: column; align-items: stretch; gap: 12px; padding: 12px 15px 0; }
  .sh-foot .sh-cart { display: none; }
  .sh-phone { display: block; text-align: center; padding: 8px 0; font-size: 17px; }
  .sh-btn { padding: 14px 18px; font-size: 16px; }
}

/* ---------- Подвал ---------- */
.sf { margin-top: 0px; background: var(--sh-dark); color: #c9cbe0; font-size: 15px; line-height: 1.55; }
.sf *, .sf *::before, .sf *::after { box-sizing: border-box; }
.sf a { color: inherit; text-decoration: none; transition: color .15s; }
.sf a:hover { color: #fff; }
.sf__in { max-width: 1170px; margin: 0 auto; padding: 0 15px; }
.sf__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding: 48px 0 36px; }
.sf__logo { display: inline-block; line-height: 0; padding: 8px 14px; border-radius: 12px; background: #fff; }
.sf__logo img { display: block; height: 36px; width: auto; }
.sf__about { margin: 16px 0 20px; max-width: 320px; font-size: 14px; line-height: 1.6; color: #a9acc4; }
.sf__social { display: flex; gap: 10px; }
.sf__social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .08); color: #fff; transition: background .15s, transform .15s; }
.sf__social a:hover { background: var(--sh-blue); transform: translateY(-2px); }
.sf__social svg { width: 20px; height: 20px; fill: currentColor; }
.sf__social img { width: 22px; height: 22px; display: block; border-radius: 6px; }
.sf__h { margin: 0 0 16px; font-size: 13px; line-height: 1.3; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.sf__list { margin: 0; padding: 0; list-style: none; }
.sf__list li { margin: 0 0 10px; padding: 0; }
.sf__phone { display: inline-block; margin-bottom: 8px; font-size: 22px; line-height: 1.2; font-weight: 700; color: #fff; }
.sf__mail { display: inline-block; margin-bottom: 18px; }
.sf__addr { margin: 0; font-size: 14px; color: #a9acc4; }
.sf__bar { border-top: 1px solid rgba(255, 255, 255, .12); }
.sf__bar-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding: 18px 0 8px; font-size: 13px; color: #a9acc4; }
.sf__legal { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.sf__pay { display: flex; align-items: center; gap: 8px; }
.sf__pay span { padding: 3px 9px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 6px; font-size: 12px; font-weight: 700; color: #dfe1f0; }
.sf__bar-in--end { padding: 8px 0 22px; }
.sf__org { margin: 0; }
.sf__dev { margin: 0; }
.sf__dev a { color: #dfe1f0; border-bottom: 1px solid rgba(255, 255, 255, .3); }

@media (max-width: 1000px) {
  .sf__grid { grid-template-columns: 1fr 1fr; gap: 32px 28px; }
  .sf__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .sf { margin-top: 40px; }
  .sf__grid { grid-template-columns: 1fr; padding: 36px 0 24px; }
  .sf__bar-in { flex-direction: column; align-items: flex-start; }
}

/* ---------- Чекбокс согласия в формах заявки ---------- */
.registration_form label.consent { display: flex; align-items: flex-start; gap: 14px; margin: 0; padding: 4px 0; cursor: pointer; font-size: 14px; line-height: 1.5; color: #4b4f63; }
.registration_form label.consent input[type="checkbox"] { -webkit-appearance: none; appearance: none; flex: 0 0 auto; width: 26px; height: 26px; margin: 0; padding: 0; border: 3px solid #8f95ad; border-radius: 7px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.registration_form label.consent:hover input[type="checkbox"] { border-color: #38bff2; }
.registration_form label.consent input[type="checkbox"]:checked { border-color: #38bff2; background: #38bff2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m4.5 10.5 3.5 3.5 7.5-8' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.registration_form label.consent input[type="checkbox"]:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(56, 191, 242, .35); }
.registration_form label.consent input[type="checkbox"]:invalid:focus { border-color: #dc3545; }
.registration_form label.consent .consent__text a { color: #0e8fc2; text-decoration: underline; text-underline-offset: 2px; }
.registration_form label.consent .consent__text a:hover { text-decoration: none; }

/* ---------- Кнопка связи (справа внизу) ---------- */
.sw { position: fixed; right: 16px; bottom: 18px; z-index: 900; display: flex; flex-direction: column; align-items: center; }
.sw__main { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin: 0; padding: 0; border: 0; border-radius: 50%; background-color: #ff5f00; box-shadow: 0 10px 25px rgba(255, 95, 0, .4); line-height: 0; cursor: pointer; animation: swColor 3.6s ease-in-out infinite; transition: box-shadow .2s; }
.sw__main:hover { box-shadow: 0 14px 30px rgba(255, 95, 0, .5); }
.sw__main:focus-visible { outline: 3px solid #22253b; outline-offset: 3px; }
.sw__main img { position: relative; z-index: 1; display: block; width: 26px; height: 26px; }
.sw__btn { display: block; margin: 0 0 10px; line-height: 0; border-radius: 50%; opacity: 0; transform: translateY(30px) scale(.8); pointer-events: none; transition: opacity .4s cubic-bezier(.34, 1.56, .64, 1), transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.sw__btn img { display: block; width: 46px; height: 46px; }
.sw__btn:focus-visible { outline: 3px solid #22253b; outline-offset: 2px; }
.sw.is-open .sw__btn { opacity: 1; transform: none; pointer-events: auto; }
.sw.is-open .sw__btn:nth-child(1) { transition-delay: .05s; }
.sw.is-open .sw__btn:nth-child(2) { transition-delay: .1s; }
.sw.is-open .sw__btn:nth-child(3) { transition-delay: .15s; }
.sw.is-open .sw__btn:nth-child(4) { transition-delay: .2s; }
.sw.is-open .sw__btn:nth-child(5) { transition-delay: .25s; }
@keyframes swColor { 0%, 100% { background-color: #ff5f00; } 50% { background-color: #ff8433; } }
@media (prefers-reduced-motion: reduce) {
  .sw__main { animation: none; }
  .sw__btn { transition: none; }
}

/* ---------- Блок заявки внизу страницы ---------- */
section.registration { background: #e2e6f0; }
section.registration .registration__form_block {
  border: 1px solid #cfd3e2;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(34, 37, 59, .08);
  background: #fff;
  overflow: hidden;
}