/* Общие шапка и подвал сайта (эталон — главная index.html).
   Подключается на страницах, у которых нет собственных стилей .hdr/.ftr:
   o-nas, oferta, privacy, cookies, анкеты репетиторов (подвал), страницы найма (tutor-jobs). */

.hdr, .hdr *, .ftr, .ftr *, .drawer, .drawer *, .drawer-bg { box-sizing: border-box; margin: 0; padding: 0; }
.hdr, .ftr, .drawer { font-family: "Inter", -apple-system, sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; }

/* ===== Шапка ===== */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid #e5edf2;
  height: 64px;
}
.hdr-inner {
  max-width: 1280px; margin: 0 auto; height: 100%;
  padding: 0 24px;
  display: flex; align-items: center; gap: 32px;
}
.hdr-logo {
  font-weight: 800; font-size: 22px; color: #1a2b35; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.hdr-logo:hover { text-decoration: none; }
.hdr-logo-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: #3bc8f5; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800;
}
.hdr-nav { display: flex; gap: 24px; flex: 1; }
.hdr-nav a {
  color: #1a2b35; text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 8px 0; position: relative;
}
.hdr-nav a:hover { color: #0d8bb7; text-decoration: none; }
.hdr-right { display: flex; align-items: center; gap: 12px; }
.hdr-link {
  color: #1a2b35; font-size: 15px; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none;
}
.hdr-link:hover { background: #f7fafc; text-decoration: none; }

/* ===== Мобильное меню (бургер) ===== */
.hdr-burger { display: none; background: transparent; border: none; cursor: pointer; padding: 6px; color: #1a2b35; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 280px; background: #fff; z-index: 200; box-shadow: -10px 0 30px rgba(0,0,0,0.15); transform: translateX(100%); transition: transform 0.25s; display: flex; flex-direction: column; padding: 24px 20px; gap: 14px; }
.drawer.is-open { transform: translateX(0); }
.drawer-bg { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0,0,0,0.4); z-index: 199; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.drawer-bg.is-open { opacity: 1; pointer-events: auto; }
.drawer-close { align-self: flex-end; background: transparent; border: none; cursor: pointer; padding: 4px; color: #1a2b35; }
.drawer a { font-size: 16px; font-weight: 600; color: #1a2b35; padding: 12px 0; border-bottom: 1px solid #e5edf2; text-decoration: none; }
.drawer a:hover { color: #0d8bb7; text-decoration: none; }

@media (max-width: 960px) {
  .hdr-nav { display: none; }
}
@media (max-width: 720px) {
  .hdr-right { display: none; }
  .hdr-burger { display: flex; align-items: center; justify-content: center; }
  .hdr-inner { gap: 0; justify-content: space-between; }
  .hdr { height: 56px; }
  .hdr-logo { font-size: 18px; }
  .hdr-logo-mark { width: 28px; height: 28px; font-size: 14px; }
}

/* ===== Подвал ===== */
.ftr {
  background: #15212a; color: #b0bcc6; padding: 64px 24px 32px;
}
.ftr-inner { max-width: 1280px; margin: 0 auto; }

.ftr-top {
  display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid #2a3741;
}

.ftr-brand-logo {
  font-weight: 800; font-size: 24px; color: #fff; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.ftr-brand-mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: #3bc8f5; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
}
.ftr-brand-desc { font-size: 14px; line-height: 1.6; color: #8a99a3; margin-bottom: 20px; max-width: 360px; }

.ftr-col-title {
  color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 16px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.ftr-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ftr-col li a {
  color: #b0bcc6; text-decoration: none; font-size: 14px; line-height: 1.4;
  transition: color 0.15s;
}
.ftr-col li a:hover { color: #fff; text-decoration: none; }

.ftr-bottom {
  padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
  font-size: 13px; color: #6a7780;
}
.ftr-bottom a { color: #8a99a3; text-decoration: none; margin-right: 18px; }
.ftr-bottom a:hover { color: #fff; text-decoration: none; }
.ftr-bottom-legal { display: flex; flex-wrap: wrap; gap: 6px 0; }
.ftr-bottom-copy { font-size: 13px; }

@media (max-width: 880px) {
  .ftr { padding: 48px 16px 24px; }
  .ftr-top { grid-template-columns: 1fr 1fr; gap: 32px; padding-bottom: 32px; }
  .ftr-top > div:first-child { grid-column: 1 / -1; }
  .ftr-bottom { flex-direction: column; align-items: flex-start; }
}
