/* =========================================================
   Освіта · Івано-Франківська МТГ — макет
   ========================================================= */

:root {
  --sky-1: #8fd0fb;
  --sky-2: #5eb0f2;
  --sky-3: #3f97ea;
  --blue-50: #eef6fe;
  --blue-100: #deedfc;
  --blue-200: #c8e1fa;
  --blue-500: #2f80ed;
  --blue-700: #1a5fc4;
  --ink: #111318;
  --ink-2: #3b4250;
  --muted: #7d8696;
  --line: #e6ebf2;
  --surface: #ffffff;
  --page: #f6f9fd;
  --btn: #1c1c1e;
  --btn-hover: #000;
  --red: #c0281c;
  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px rgba(28, 74, 140, .08);
  --shadow-lg: 0 18px 50px rgba(28, 74, 140, .14);
  --container: 1240px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--page);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.icon { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Hero (блакитна шапка) ---------- */
.hero {
  position: relative;
  margin: 16px;
  border-radius: var(--radius-lg);
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 12% 10%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(50% 70% at 90% 30%, rgba(255,255,255,.28), transparent 65%),
    radial-gradient(70% 60% at 50% 110%, rgba(40,120,220,.35), transparent 70%),
    linear-gradient(160deg, var(--sky-1) 0%, var(--sky-2) 55%, var(--sky-3) 100%);
}
.hero--flush { margin: 0; border-radius: 0; }
.hero__inner { position: relative; padding: 24px 24px 56px; }
.hero--compact .hero__inner { padding-bottom: 44px; }

.hero__title {
  margin-top: 40px;
  text-align: center;
  font-weight: 800;
  font-size: clamp(34px, 6vw, 84px);
  letter-spacing: -.02em;
  line-height: 1.05;
  text-shadow: 0 4px 24px rgba(20, 80, 160, .25);
}
.hero--compact .hero__title { font-size: clamp(30px, 4.6vw, 64px); margin-top: 32px; }
.hero__subtitle {
  margin-top: 14px;
  text-align: center;
  font-size: clamp(16px, 2vw, 26px);
  font-weight: 500;
  opacity: .95;
}

/* ---------- Header ---------- */
.header { display: flex; align-items: center; gap: 20px; }
.header__brand { display: flex; align-items: center; gap: 18px; }
.header__cap { width: 46px; height: 46px; color: #fff; opacity: .95; }
.header__divider { width: 1px; height: 40px; background: rgba(255,255,255,.55); }
.header__spacer { flex: 1; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo__emblem { width: 44px; height: 44px; }
.logo__text { display: flex; flex-direction: column; align-items: center; line-height: 1.05; }
.logo__name { font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.logo__tag { margin-top: 3px; font-size: 11.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.logo__tag::before, .logo__tag::after { content: ""; width: 5px; height: 5px; border: solid var(--red); border-width: 0 0 2px 2px; transform: rotate(45deg); }
.logo__tag::after { transform: rotate(-135deg); }
.logo--chip { background: #fff; padding: 8px 16px; border-radius: 14px; box-shadow: 0 6px 20px rgba(20,80,160,.12); }

.nav {
  display: flex; align-items: center; gap: 4px;
  background: #fff; border-radius: 999px; padding: 6px;
  box-shadow: 0 6px 20px rgba(20,80,160,.10);
}
.nav a {
  padding: 9px 16px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap;
  transition: background .15s;
}
.nav a:hover { background: var(--blue-50); }
.nav a[aria-current="page"] { background: var(--blue-100); color: var(--blue-700); }

.account {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 150px; padding: 9px 22px; border-radius: 999px;
  background: #fff; color: var(--ink); box-shadow: 0 6px 20px rgba(20,80,160,.10);
  transition: transform .15s;
}
.account:hover { transform: translateY(-1px); }
.account__title { font-weight: 600; font-size: 16px; }
.account__sub { font-size: 12.5px; color: var(--muted); }

.btn-ghost-light { padding: 11px 24px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.85); color: #fff; font-weight: 500; background: transparent; cursor: pointer; }
.btn-ghost-light:hover { background: rgba(255,255,255,.15); }

.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 28px; border: 0; border-radius: 999px;
  background: var(--btn); color: #fff; font-weight: 600; font-size: 16px;
  cursor: pointer; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--btn-hover); }
.btn:active { transform: translateY(1px); }
.btn--block { width: 100%; }
.btn .icon { width: 20px; height: 20px; transition: transform .15s; }
.btn:hover .icon { transform: translateX(3px); }

.badge { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--blue-100); color: var(--blue-700); font-weight: 700; font-size: 14px; letter-spacing: .02em; }

/* ---------- Головна: картки напрямів ---------- */
.directions { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; }
.direction {
  display: flex; flex-direction: column; gap: 14px;
  padding: 32px 36px 36px; border-radius: var(--radius); background: #fff; color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.direction__title { font-size: clamp(26px, 3vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
.direction__text { font-size: clamp(16px, 1.6vw, 21px); color: var(--muted); max-width: 30ch; }
.direction .btn { margin-top: auto; height: 60px; font-size: 18px; }
.direction__body { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.direction__spacer { flex: 1; min-height: 12px; }

/* ---------- Notice ---------- */
.notice {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 24px; border-radius: var(--radius-sm);
  background: var(--blue-50); color: var(--blue-700); font-size: 16px;
}
.notice .icon { color: var(--blue-500); }
.notice--card { background: #fff; color: var(--ink-2); box-shadow: var(--shadow); justify-content: center; padding: 20px 24px; font-size: 18px; }
.notice__bubble { width: 56px; height: 56px; border-radius: 50%; background: var(--blue-100); display: grid; place-items: center; flex: none; }
.notice__bubble .icon { width: 26px; height: 26px; }

/* ---------- Breadcrumbs ---------- */
.crumbs { display: flex; gap: 10px; font-size: 14px; color: var(--muted); margin: 8px 0 18px; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-current] { color: var(--ink-2); }

/* ---------- Сторінка списку ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.page-title { font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 20px; }

.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.field {
  position: relative; display: flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 16px; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--line);
  transition: border-color .15s, box-shadow .15s;
}
.field:focus-within { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(47,128,237,.12); }
.field .icon { color: var(--muted); width: 20px; height: 20px; }
.field input, .field select { border: 0; outline: 0; background: transparent; width: 100%; height: 100%; font-size: 16px; }
.field input::placeholder { color: var(--muted); }
.field select { appearance: none; cursor: pointer; padding-right: 22px; color: var(--ink-2); }
.field--select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 7px; height: 7px; border: solid var(--ink-2); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.field--grow { flex: 1 1 260px; }
.field--select { flex: 0 1 180px; }

.search-panel { padding: 20px 24px 18px; border-radius: var(--radius); background: var(--blue-50); margin-bottom: 20px; }
.search-panel__grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px 20px; align-items: start; }
.search-panel label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 8px; color: var(--ink-2); }
.search-panel .hint { margin-top: 8px; font-size: 13px; color: var(--muted); }
.search-panel .btn { min-width: 160px; margin-top: 29px; }
.search-panel__col { min-width: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column;
  border-radius: var(--radius); background: #fff; overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card__photo {
  height: 150px; margin: 12px 12px 0; border-radius: var(--radius-sm);
  background: linear-gradient(160deg, var(--blue-100), var(--blue-200));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: #8fb3dc; font-size: 15px;
}
.card__photo .icon { width: 40px; height: 40px; stroke-width: 1.6; }
.card__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.card__title { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.card__owner { color: var(--ink-2); font-size: 16px; }
.card__row { display: flex; gap: 12px; color: var(--ink-2); font-size: 15px; padding: 10px 0; }
.card__row .icon { color: var(--muted); width: 20px; height: 20px; margin-top: 1px; }
.card__row + .card__row { border-top: 1px solid var(--line); }
.card__desc { color: var(--muted); font-size: 15.5px; margin-top: 4px; }
.card .btn { margin-top: auto; height: 46px; }
.card__actions { margin-top: auto; padding-top: 12px; }

.empty-result { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--muted); background: #fff; border-radius: var(--radius); border: 1px dashed var(--blue-200); }

/* ---------- Умови вступу ---------- */
.conditions { padding: 28px; border-radius: var(--radius); background: var(--blue-100); position: sticky; top: 20px; }
.conditions h2 { font-size: 28px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 14px; }
.conditions ul { list-style: none; margin: 0; padding: 0; }
.conditions li { display: flex; gap: 18px; padding: 18px 0; }
.conditions li + li { border-top: 1px solid rgba(47,128,237,.15); }
.conditions .icon { width: 26px; height: 26px; color: var(--ink); margin-top: 2px; }
.conditions strong { display: block; font-size: 17px; font-weight: 700; }
.conditions span { display: block; color: var(--ink-2); font-size: 15px; margin-top: 3px; }
.conditions--labelled span { color: var(--muted); font-size: 15px; margin: 0; }
.conditions--labelled strong { margin-top: 3px; font-size: 17px; }

/* ---------- Кабінет ---------- */
.section-label { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; margin: 40px 0 16px; letter-spacing: -.01em; }
.apply-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.apply {
  display: grid; grid-template-columns: 200px 1fr; gap: 24px;
  padding: 24px; border-radius: var(--radius); background: #fff; color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.apply__img { border-radius: var(--radius-sm); background: linear-gradient(160deg, var(--blue-50), var(--blue-100)); display: grid; place-items: center; color: #6aa3e6; min-height: 200px; }
.apply__img .icon { width: 96px; height: 96px; stroke-width: 1.2; }
.apply__body { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.apply__title { font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; line-height: 1.12; letter-spacing: -.01em; }
.apply__text { color: var(--muted); font-size: 17px; }
.apply .btn { margin-top: auto; width: 100%; height: 58px; font-size: 17px; }
.hero__note { text-align: center; margin-top: 22px; font-size: 16px; opacity: .92; }

.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 20px 28px 32px; }
.tabs { display: flex; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.tab { padding: 10px 26px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-weight: 500; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--blue-100); border-color: var(--blue-100); color: var(--blue-700); }
.empty { text-align: center; padding: 30px 0 4px; }
.empty__icon { width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 50%; background: var(--blue-50); display: grid; place-items: center; color: var(--blue-500); }
.empty__icon .icon { width: 44px; height: 44px; stroke-width: 1.6; }
.empty h3 { font-size: 26px; font-weight: 800; }
.empty p { margin-top: 8px; color: var(--muted); font-size: 17px; }

/* ---------- Footer ---------- */
.footer { padding: 26px 0 30px; }
.footer__inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer__sep { width: 1px; height: 44px; background: var(--line); }
.footer__muted { color: var(--muted); font-size: 15px; max-width: 26ch; }
.footer__spacer { flex: 1; }
.footer a.link { color: var(--blue-500); font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.footer__brand { color: var(--muted); font-size: 15px; }

main { padding-bottom: 28px; }
.stack { display: flex; flex-direction: column; gap: 22px; }

/* ---------- Mobile menu ---------- */
.mobile-menu { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav, .account, .profile-menu { display: none; }
  .burger { display: inline-flex; }
  .mobile-menu.is-open { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; padding: 12px; background: #fff; border-radius: var(--radius-sm); color: var(--ink); }
  .mobile-menu a { padding: 12px 14px; border-radius: 10px; font-weight: 500; }
  .mobile-menu a:hover { background: var(--blue-50); }
  .layout { grid-template-columns: 1fr; }
  .conditions { position: static; }
  .apply { grid-template-columns: 1fr; }
  .apply__img { min-height: 140px; }
}
@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .hero { margin: 8px; border-radius: 22px; }
  .hero__inner { padding: 16px 16px 32px; }
  .header__cap, .header__divider { display: none; }
  .logo__emblem { width: 36px; height: 36px; }
  .logo__name { font-size: 16px; }
  .directions, .apply-grid { grid-template-columns: 1fr; }
  .direction { padding: 24px; }
  .search-panel__grid { grid-template-columns: 1fr; }
  .search-panel .btn { width: 100%; margin-top: 0; }
  .field--select { flex: 1 1 140px; }
  .filters .btn { width: 100%; }
  .footer__sep { display: none; }
  .footer__inner { gap: 14px 22px; }
  .panel { padding: 16px; }
  .notice--card { font-size: 16px; justify-content: flex-start; }
}

.badge--off { align-self: flex-start; background: #fdecec; color: #b3261e; font-size: 12px; padding: 4px 10px; }
.card__title { overflow-wrap: anywhere; }

/* ---------- Сторінка закладу ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.detail__photo { height: 260px; border-radius: var(--radius); background: linear-gradient(160deg, var(--blue-100), var(--blue-200)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #8fb3dc; margin-bottom: 16px; }
.detail__photo .icon { width: 48px; height: 48px; stroke-width: 1.5; }
.detail__note { color: var(--muted); font-size: 15px; margin-top: 14px; }
.info-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.info-list li { display: flex; gap: 16px; padding: 16px 22px; }
.info-list li + li { border-top: 1px solid var(--line); }
.info-list .icon { color: var(--muted); margin-top: 2px; }
.info-list span { display: block; color: var(--muted); font-size: 14px; }
.info-list strong { display: block; font-weight: 600; font-size: 16px; overflow-wrap: anywhere; }
.info-list a { color: var(--blue-700); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 8px 16px; border-radius: 999px; background: var(--blue-100); color: var(--blue-700); font-weight: 600; font-size: 14px; }
a.link { color: var(--blue-500); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1100px) { .detail { grid-template-columns: 1fr; } }
.conditions .btn .icon { width: 20px; height: 20px; margin: 0; color: #fff; }

/* ---------- Опис закладу ---------- */
.about { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 26px; color: var(--ink-2); font-size: 16.5px; line-height: 1.6; }
.about p { margin: 0; }
.about p + p { margin-top: 14px; }
.about__empty { color: var(--muted); }
.about-edit { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--radius-sm); background: var(--blue-50); }
.about-edit label { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.about-edit textarea, .about-edit input { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 12px 14px; font: inherit; resize: vertical; }
.about-edit textarea:focus, .about-edit input:focus { outline: 0; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(47,128,237,.12); }
.about-edit__row { display: flex; gap: 10px; }
.about-edit__row input { flex: 1; }
.about-edit .btn { height: 46px; }

/* ---------- Модальне вікно ---------- */
.modal { border: 0; border-radius: var(--radius); padding: 32px; max-width: 460px; width: calc(100% - 32px); box-shadow: var(--shadow-lg); color: var(--ink); }
.modal::backdrop { background: rgba(17, 19, 24, .45); }
.modal h2 { font-size: 26px; font-weight: 800; margin-bottom: 10px; }
.modal p { color: var(--ink-2); font-size: 17px; }
.modal__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.btn--ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { background: var(--blue-50); }

/* ---------- Вхід / реєстрація ---------- */
.account__title { font-weight: 600; font-size: 16px; color: var(--ink); }
.account__sub a { color: var(--muted); }
.account__sub a:hover { color: var(--blue-700); text-decoration: underline; }
.auth-card { width: 100%; max-width: 480px; margin: 8px auto 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 32px; display: flex; flex-direction: column; gap: 6px; }
.auth-card h2 { font-size: 30px; font-weight: 800; letter-spacing: -.01em; }
.auth-card__lead { color: var(--muted); margin-bottom: 10px; }
.auth-card__lead strong { color: var(--ink); font-weight: 600; }
.auth-card label { font-size: 15px; font-weight: 500; color: var(--ink-2); margin-top: 10px; }
.auth-card .req { color: #d33; }
.auth-card input { height: 52px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 16px; font: inherit; background: #fff; }
.auth-card input:focus { outline: 0; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(47,128,237,.12); }
.auth-card .btn { margin-top: 18px; }
.auth-card__alt { text-align: center; color: var(--muted); margin-top: 10px; }
.auth-card__status { margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--blue-50); color: var(--blue-700); font-size: 15px; }
.auth-card__status.is-error { background: #fdecec; color: #b3261e; }

/* Шапка: Вхід / Реєстрація */
.btn-solid-light { padding: 11px 24px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 6px 20px rgba(20,80,160,.14); transition: transform .15s; }
.btn-solid-light:hover { transform: translateY(-1px); }
.btn-ghost-light { display: inline-block; }
.header .btn-ghost-light + .btn-solid-light { margin-left: -8px; }
.modal { position: relative; }
.modal__close { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; }
.modal__close:hover { background: var(--blue-50); color: var(--ink); }
@media (max-width: 1100px) { .btn-solid-light { display: none; } }
.header__brand { flex: none; }
.logo__name { white-space: nowrap; }
.btn-ghost-light { background: rgba(255,255,255,.6); color: var(--ink); border-color: transparent; font-weight: 600; }
.btn-ghost-light:hover { background: #fff; }

/* ---------- Помилки полів ---------- */
.field-error { margin: 4px 2px 0; color: #b3261e; font-size: 14px; line-height: 1.4; }
.field-error__fix { border: 0; background: none; padding: 0; color: var(--blue-700); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.auth-card input[aria-invalid="true"] { border-color: #d33; box-shadow: 0 0 0 4px rgba(211,51,51,.10); }

/* ---------- Меню профілю (комп'ютер) ---------- */
.profile-menu { position: relative; flex: none; }
.profile-btn { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px 11px 14px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-weight: 600; white-space: nowrap; cursor: pointer; box-shadow: 0 6px 20px rgba(20,80,160,.12); transition: transform .15s; }
.profile-btn:hover { transform: translateY(-1px); }
.profile-btn .icon { width: 20px; height: 20px; color: var(--blue-500); }
.profile-btn .profile-btn__chevron { width: 18px; height: 18px; color: var(--muted); transition: transform .15s; }
.profile-btn[aria-expanded="true"] .profile-btn__chevron { transform: rotate(180deg); }
.profile-menu__list { position: absolute; right: 0; top: calc(100% + 10px); z-index: 20; min-width: 220px; padding: 8px; border-radius: var(--radius-sm); background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); }
.profile-menu__list[hidden] { display: none; }
.profile-menu__list a { display: block; padding: 11px 14px; border-radius: 10px; font-weight: 500; }
.profile-menu__list a:hover { background: var(--blue-50); }
.profile-menu__list a[aria-current="page"] { background: var(--blue-100); color: var(--blue-700); }
.profile-menu__list hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.profile-menu__out { color: #b3261e; }
.mobile-menu a[aria-current="page"] { background: var(--blue-100); color: var(--blue-700); }
