/* Эварус — новая шапка и подвал (templates/layouts/default.twig). 2026 */

.sh, .sf { font-family: 'Roboto', 'RobotoRegular', Arial, sans-serif; }
.sh *, .sf * { box-sizing: border-box; }
.sh-wrap { max-width: 1170px; margin: 0 auto; padding: 0 20px; }

/* ---------- Шапка ---------- */
header.sh { position: relative; z-index: 100; background: #fff; box-shadow: 0 1px 0 #e6eaed, 0 4px 18px rgba(0, 0, 0, .05); }
.sh > .sh-wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.sh-logo { flex: 0 0 auto; display: flex; align-items: center; }
.sh-logo img { display: block; width: 170px; height: auto; }

.sh-nav { display: flex; gap: 26px; flex: 1 1 auto; }
.sh-nav a { color: #49535a; font-size: 15px; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.sh-nav a:hover { color: #1da8e1; border-bottom-color: #1da8e1; }

.sh-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.sh-add, .sh-cab { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 10px; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
.sh-add { background: #1da8e1; color: #fff; box-shadow: 0 4px 14px rgba(29, 168, 225, .3); }
.sh-add:hover { background: #1497cd; color: #fff; }
.sh-add__short { display: none; }
.sh-cab__short { display: none; }
.sh-cab { border: 2px solid #1da8e1; color: #1479a6; background: #fff; }
.sh-cab:hover { background: #eaf7fd; color: #1479a6; }
.sh-cab_in { border-color: #2bb673; color: #1e8a4c; }
.sh-cab_in:hover { background: #e9f8ef; color: #1e8a4c; }
.sh-logout { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 44px; color: #9aa3ab; border-radius: 10px; }
.sh-logout:hover { color: #49535a; background: #f3f5f7; }

.sh-burger { display: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: #f3f5f7; cursor: pointer; position: relative; }
.sh-burger span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 1px; background: #49535a; transition: transform .2s, opacity .2s, top .2s; }
.sh-burger span:nth-child(1) { top: 15px; }
.sh-burger span:nth-child(2) { top: 21px; }
.sh-burger span:nth-child(3) { top: 27px; }
.sh-burger_open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.sh-burger_open span:nth-child(2) { opacity: 0; }
.sh-burger_open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.sh-menu { border-top: 1px solid #eef1f3; background: #fff; box-shadow: 0 16px 30px rgba(0, 0, 0, .12); }
.sh-menu[hidden] { display: none; }
.sh-menu .sh-wrap { padding-top: 14px; padding-bottom: 18px; }
.sh-menu__cab { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: #eaf7fd; color: #1479a6; text-decoration: none; }
.sh-menu__cab b { display: block; font-size: 17px; color: #145f80; }
.sh-menu__cab small { display: block; font-size: 13px; color: #4f7f95; margin-top: 2px; }
.sh-menu__add { display: block; margin: 10px 0 6px; padding: 14px 16px; border-radius: 12px; background: #1da8e1; color: #fff; font-weight: 700; font-size: 16px; text-align: center; text-decoration: none; }
.sh-menu__nav { display: flex; flex-direction: column; margin-top: 8px; }
.sh-menu__nav a { padding: 13px 4px; border-bottom: 1px solid #f0f2f4; color: #3a4148; font-size: 16px; text-decoration: none; }
.sh-menu__logout { display: inline-block; margin-top: 14px; color: #9aa3ab; font-size: 15px; }

@media (max-width: 1100px) {
  .sh-nav { gap: 18px; }
  .sh-nav a:nth-child(n+3) { display: none; }
}
@media (max-width: 860px) {
  .sh > .sh-wrap { height: 62px; gap: 12px; padding: 0 14px; }
  .sh-nav { display: none; }
  .sh-burger { display: inline-block; }
  .sh-logo img { width: 130px; }
  .sh-add__long { display: none; }
  .sh-add__short { display: inline; }
  .sh-cab__long { display: none; }
  .sh-cab__short { display: inline; }
}
@media (max-width: 520px) {
  .sh-actions { gap: 6px; }
  .sh-add { width: 44px; padding: 0; justify-content: center; box-shadow: none; }
  .sh-add__short { display: none; }
  .sh-cab { padding: 0 12px; height: 44px; font-size: 14px; }
    .sh-logout { display: none; }
  .sh-logo img { width: 112px; }
}

/* ---------- Подвал ---------- */
footer.sf { background: #2f363d; color: #aeb7be; padding: 44px 0 26px; margin-top: 30px; }
.sf a { color: #d9dfe3; text-decoration: none; }
.sf a:hover { color: #fff; text-decoration: underline; }
.sf-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid #424b53; }
.sf-logo { display: inline-block; font-size: 24px; font-weight: 900; color: #fff !important; letter-spacing: .3px; margin-bottom: 10px; }
.sf-brand p { margin: 0 0 18px; font-size: 14px; line-height: 1.6; color: #aeb7be; max-width: 320px; }
.sf-cta { display: inline-block; padding: 12px 18px; border-radius: 10px; background: #2bb673; color: #fff !important; font-weight: 700; font-size: 15px; }
.sf-cta:hover { background: #239e62; text-decoration: none !important; }
.sf-col { display: flex; flex-direction: column; gap: 10px; }
.sf-title { margin: 0 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .7px; color: #7f8a93; }
.sf-col a { font-size: 15px; }
.sf-bottom { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; padding-top: 20px; font-size: 13px; color: #8a959d; }
.sf-app { margin-left: auto; }
@media (max-width: 860px) {
  .sf-top { grid-template-columns: 1fr 1fr; }
  .sf-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  footer.sf { padding-top: 34px; }
  .sf-top { grid-template-columns: 1fr; gap: 24px; }
  .sf-app { margin-left: 0; }
}
@media (max-width: 370px) {
  .sh > .sh-wrap { padding: 0 10px; gap: 8px; }
  .sh-logo img { width: 92px; }
  .sh-cab { padding: 0 10px; gap: 6px; }
  .sh-add, .sh-burger { width: 40px; }
}

/* Цвета ссылок: на некоторых страницах (css/app/page-main.css) задано a:link { color: #000 } —
   перебиваем более точными правилами */
.sh a.sh-logo:link, .sh a.sh-logo:visited { color: inherit; }
.sh .sh-nav a:link, .sh .sh-nav a:visited { color: #49535a; }
.sh .sh-nav a:hover { color: #1da8e1; }
.sh a.sh-add:link, .sh a.sh-add:visited, .sh a.sh-add:hover { color: #fff; }
.sh a.sh-cab:link, .sh a.sh-cab:visited, .sh a.sh-cab:hover { color: #1479a6; }
.sh a.sh-cab_in:link, .sh a.sh-cab_in:visited, .sh a.sh-cab_in:hover { color: #1e8a4c; }
.sh a.sh-logout:link, .sh a.sh-logout:visited { color: #9aa3ab; }
.sh a.sh-logout:hover { color: #49535a; }
.sh a.sh-menu__cab:link, .sh a.sh-menu__cab:visited { color: #1479a6; }
.sh a.sh-menu__add:link, .sh a.sh-menu__add:visited { color: #fff; }
.sh .sh-menu__nav a:link, .sh .sh-menu__nav a:visited { color: #3a4148; }
.sh a.sh-menu__logout:link, .sh a.sh-menu__logout:visited { color: #9aa3ab; }
.sf a:link, .sf a:visited { color: #d9dfe3; }
.sf a:hover, .sf a:active { color: #fff; text-decoration: underline; }
.sf a.sf-logo:link, .sf a.sf-logo:visited, .sf a.sf-cta:link, .sf a.sf-cta:visited { color: #fff; text-decoration: none; }
