@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Source+Serif+4:opsz,wght@8..60,600;8..60,700&display=swap");

:root {
  --burgundy: #4a000d;
  --burgundy-light: #6b0013;
  --gold: #d4af37;
  --gold-light: #f5e8b7;
  --cream: #faf8f5;
  --ink: #1c1412;
  --muted: #6b635c;
  --border: rgba(212, 175, 55, 0.35);
  --paper: #ffffff;
  --shadow: 0 18px 40px rgba(74, 0, 13, 0.08);
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.08), transparent 28%),
    linear-gradient(180deg, #fff 0%, var(--cream) 100%);
  line-height: 1.55;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, .brand, .display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
}

a { color: var(--burgundy); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 1.1rem; }
main { flex: 1; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(74, 0, 13, 0.06);
}

.topbar {
  background: linear-gradient(90deg, var(--burgundy), #5c0012 55%, #3a000a);
  color: var(--gold-light);
  font-size: .78rem;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .5rem 1.1rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: .7rem;
  padding-bottom: .7rem;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--burgundy);
  font-size: 1.35rem;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.45);
}

.nav-links {
  display: flex;
  gap: .95rem;
  flex-wrap: wrap;
  font-size: .9rem;
  font-weight: 500;
}

.nav-links a { color: #3f2f2c; }
.nav-links a:hover { color: var(--burgundy); }

.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  border-radius: 999px;
  padding: .65rem 1.25rem;
  border: 2px solid var(--burgundy);
  background: var(--burgundy);
  color: var(--gold-light);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.btn:hover {
  background: var(--burgundy-light);
  color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(74, 0, 13, 0.18);
}

.btn-outline { background: transparent; color: var(--burgundy); }
.btn-outline:hover { background: var(--burgundy); color: var(--gold-light); }
.btn-gold { background: var(--gold); color: var(--burgundy); border-color: var(--gold); }
.btn-gold:hover { background: #e0c04a; color: var(--burgundy); }

/* ——— Home hero (full-bleed visual) ——— */
.home-hero {
  position: relative;
  min-height: clamp(520px, 78vh, 720px);
  display: grid;
  align-items: end;
  color: var(--gold-light);
  overflow: hidden;
}

.home-hero__media {
  position: absolute;
  inset: 0;
}

.home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.home-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(42, 0, 8, 0.88) 0%, rgba(74, 0, 13, 0.62) 48%, rgba(74, 0, 13, 0.28) 100%),
    linear-gradient(180deg, rgba(42, 0, 8, 0.15) 0%, rgba(42, 0, 8, 0.72) 100%);
}

.home-hero__content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 3.5rem;
  max-width: 680px;
}

.home-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.home-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  color: #fff;
  text-wrap: balance;
}

.home-hero .lead {
  margin: 0;
  max-width: 34rem;
  font-size: 1.08rem;
  color: rgba(245, 232, 183, 0.92);
}

.home-hero .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
}

.home-hero .cta-row .btn-outline {
  color: var(--gold-light);
  border-color: rgba(212, 175, 55, 0.75);
}

.ornament {
  display: block;
  width: 48px;
  height: 2px;
  margin: 1rem 0 1.2rem;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.banner {
  background: linear-gradient(90deg, #3a000a, var(--burgundy) 40%, #5c0012);
  color: var(--gold-light);
  padding: 1.1rem 0;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.banner .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.section { padding: 3.5rem 0; }
.section-cream {
  background:
    linear-gradient(180deg, rgba(255,255,255,.4), transparent),
    var(--cream);
}

.section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2rem;
}

.section-head h2 {
  margin: 0 0 .5rem;
  color: var(--burgundy);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.grid { display: grid; gap: 1.15rem; }
@media (min-width: 700px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.card h3 { margin-top: 0; color: var(--burgundy); }

.media-card {
  overflow: hidden;
  padding: 0;
}

.media-card img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform .45s ease;
}

.media-card:hover img { transform: scale(1.04); }

.media-card .body { padding: 1.2rem 1.3rem 1.4rem; }

.stat-strip {
  display: grid;
  gap: 1rem;
  margin-top: -2.25rem;
  position: relative;
  z-index: 2;
}

@media (min-width: 700px) {
  .stat-strip { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}

.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--burgundy);
}

.direction-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  color: #fff;
  display: flex;
  align-items: flex-end;
}

.direction-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.direction-card .shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(42,0,8,.15) 0%, rgba(42,0,8,.7) 45%, rgba(42,0,8,.95) 100%);
}

.direction-card .body {
  position: relative;
  z-index: 1;
  padding: 1.3rem;
}

.direction-card h3 { color: #fff; margin: 0 0 .35rem; }
.direction-card p { margin: 0; color: rgba(245,232,183,.9); font-size: .92rem; }

.muted { color: var(--muted); }
.gold { color: var(--gold); }

.page-hero {
  position: relative;
  min-height: 220px;
  display: grid;
  align-items: end;
  color: var(--gold-light);
  overflow: hidden;
}

.page-hero__media,
.page-hero__shade {
  position: absolute;
  inset: 0;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__shade {
  background: linear-gradient(90deg, rgba(42,0,8,.88), rgba(74,0,13,.55) 60%, rgba(74,0,13,.25));
}

.page-hero .container {
  position: relative;
  z-index: 1;
  padding-top: 3.5rem;
  padding-bottom: 2.2rem;
}

.page-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
}

.page-hero p { color: rgba(245,232,183,.88); margin: .55rem 0 0; max-width: 36rem; }

.site-footer {
  background:
    linear-gradient(180deg, rgba(212,175,55,.08), transparent 40%),
    linear-gradient(135deg, #3a000a, var(--burgundy) 55%, #2a0008);
  color: var(--gold-light);
  margin-top: auto;
  padding: 2.5rem 0 2rem;
}

.site-footer a { color: var(--gold-light); }
.site-footer .brand { color: var(--gold-light); }
.site-footer .brand img { box-shadow: 0 0 0 2px rgba(212,175,55,.55); }

.footer-cols {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .footer-cols { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; }
}

.footer-cols h4 {
  margin: 0 0 .75rem;
  color: var(--gold);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.footer-cols > div > a:not(.brand):not(.btn) {
  display: block;
  margin-bottom: .4rem;
  font-size: .9rem;
  opacity: .88;
}

.footer-cols > div > a:not(.brand):not(.btn):hover { color: var(--gold); opacity: 1; }
.footer-muted { color: rgba(245,232,183,.72); font-size: .9rem; margin: .85rem 0 0; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(212,175,55,.2);
  font-size: .82rem;
  opacity: .75;
}

/* ——— Content blocks ——— */
.kicker {
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--burgundy-light);
  font-weight: 700;
}

.h-section {
  margin: 0;
  color: var(--burgundy);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
}

.date-label {
  color: var(--gold);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .6rem;
}

.check-list li {
  position: relative;
  padding-left: 1.7rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .3rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%234a000d' stroke-width='2.2' d='M4 8.5l2.5 2.5L12 5'/%3E%3C/svg%3E") center/70% no-repeat;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: .85rem;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.6rem;
  min-height: 1.9rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -.1rem;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--burgundy);
  color: var(--gold-light);
  font-weight: 700;
  font-size: .85rem;
}

.direction-card--cta {
  background: linear-gradient(135deg, var(--burgundy), #2a0008);
  border-color: rgba(212,175,55,.45);
}

.program-card {
  display: block;
  color: inherit;
  transition: transform .2s ease, border-color .2s ease;
}

.program-card:hover { transform: translateY(-3px); border-color: var(--gold); color: inherit; }

.program-card__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: .5rem;
}

.doc-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 860px;
  display: grid;
  gap: .75rem;
}

.doc-list li {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: .75rem;
  padding: 1rem 1.2rem;
}

.note-card {
  border-radius: 1rem;
  padding: 1.2rem 1.4rem;
  background: linear-gradient(135deg, rgba(212,175,55,.16), rgba(212,175,55,.05));
  border: 1px solid var(--border);
}

.table-card {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.table-card .table th {
  background: var(--burgundy);
  color: var(--gold-light);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .85rem 1rem;
}

.table-card .table td { padding: .85rem 1rem; }
.table-card .table tbody tr:hover { background: rgba(212,175,55,.06); }
.program-table .code { font-family: Consolas, monospace; color: var(--burgundy-light); white-space: nowrap; font-size: .85rem; }

.row-link { cursor: pointer; }
.row-link a { color: var(--ink); font-weight: 600; }
.row-link:hover a { color: var(--burgundy); }
.table-card .more, .program-link .more { color: var(--gold); font-weight: 700; }
.program-link { color: inherit; display: block; }
.program-link:hover { color: inherit; border-color: var(--gold); }

.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1.5rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--burgundy); }
.code { font-family: Consolas, monospace; color: var(--burgundy-light); }

.program-layout { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
.program-layout > *, .contact-cta > *, .grid > * { min-width: 0; }
.lead-field select { max-width: 100%; text-overflow: ellipsis; }

@media (min-width: 900px) {
  .program-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
  .program-aside { position: sticky; top: 7rem; }
}

.program-aside { display: grid; gap: 1rem; }

.fact-grid { display: grid; gap: .85rem; }
@media (min-width: 600px) { .fact-grid { grid-template-columns: repeat(2, 1fr); } }

.fact {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: .9rem;
  padding: 1rem 1.15rem;
}

.fact span { display: block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.fact strong { color: var(--burgundy); font-size: 1.02rem; }

.duration {
  text-align: center;
  padding: .9rem;
  border-radius: .75rem;
  background: var(--cream);
}

.duration strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--burgundy); }

.section[id], #zayavka { scroll-margin-top: 6.5rem; }

.lead-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: 1.1rem;
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.lead-card h3 { margin: 0 0 .3rem; font-size: 1.6rem; color: var(--burgundy); }
.lead-card > .muted { margin: 0 0 1.2rem; }
.lead-form { display: grid; gap: .9rem; }
.lead-row { display: grid; gap: .9rem; }
@media (min-width: 640px) { .lead-row { grid-template-columns: 1fr 1fr; } }
.lead-field { display: grid; gap: .3rem; }
.lead-field span { font-size: .82rem; font-weight: 600; color: var(--muted); }
.lead-field .input:focus, .lead-field select:focus { outline: 2px solid rgba(212,175,55,.5); border-color: var(--gold); }
.lead-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; color: var(--muted); }
.lead-consent input { margin-top: .2rem; accent-color: var(--burgundy); }
.lead-form .btn { justify-self: start; }
.lead-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-success { padding: .5rem 0; }
.lead-success strong { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--burgundy); }
.lead-success p { margin: .5rem 0 0; color: var(--muted); }

.lead-cta {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 900px) { .lead-cta { grid-template-columns: 1fr 1.1fr; } }

.som-courses { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
@media (min-width: 860px) { .som-courses { grid-template-columns: repeat(2, 1fr); } }

.som-course {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  padding: 1.5rem;
  border-radius: 1.1rem;
  color: inherit;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease;
}

.som-course:hover { color: inherit; border-color: var(--gold); transform: translateY(-3px); }
.som-course h3 { margin: .55rem 0 .35rem; font-size: 1.45rem; color: var(--burgundy); }
.som-course__meta { margin: 0 0 .6rem; font-weight: 600; color: var(--burgundy-light); }
.som-course .more { display: inline-block; margin-top: .8rem; color: var(--gold); font-weight: 700; }

.som-course__num {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--burgundy);
  color: var(--gold);
  border: 2px solid var(--gold);
  font: 700 1.5rem var(--font-display);
}

.som-lecturer { border-left: 4px solid var(--gold); }
.som-lecturer h3 { margin: .3rem 0 .4rem; font-size: 1.5rem; }

.som-day img { height: 150px; }
.som-day h4 { margin: .2rem 0 .6rem; font-family: var(--font-display); font-size: 1.25rem; color: var(--burgundy); }
.som-day .check-list { font-size: .9rem; gap: .35rem; }

@media (min-width: 700px) { .som-topics { grid-template-columns: repeat(2, 1fr); column-gap: 2rem; } }

.som-poster { padding: .6rem; display: block; text-align: center; color: var(--burgundy); font-weight: 600; font-size: .9rem; }
.som-poster img { width: 100%; border-radius: .6rem; display: block; margin-bottom: .5rem; transition: transform .3s ease; }
.som-poster:hover img { transform: scale(1.02); }

.som-promo {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem;
  border-radius: 1.25rem;
  color: var(--gold-light);
  background:
    linear-gradient(90deg, rgba(42,0,8,.96) 30%, rgba(42,0,8,.55)),
    url("../images/sommelier/hero.jpg") right center/cover;
}

@media (min-width: 860px) { .som-promo { grid-template-columns: 1.4fr 1fr; padding: 2.5rem 3rem; } }
.som-promo h2 { color: #fff; margin: .4rem 0 .6rem; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.som-promo p { margin: 0; opacity: .88; }
.som-promo__list { display: grid; gap: .75rem; }
.som-promo__list a {
  display: block;
  padding: .85rem 1rem;
  border-radius: .8rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(212,175,55,.35);
  color: var(--gold-light);
}
.som-promo__list a:hover { background: rgba(212,175,55,.2); color: #fff; }
.som-promo__list span { display: block; font-size: .78rem; opacity: .8; text-transform: uppercase; letter-spacing: .06em; }

.badge-soft {
  background: rgba(212,175,55,.18);
  color: var(--burgundy);
  font-weight: 600;
  white-space: nowrap;
}

.contact-cta {
  display: grid;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 1.25rem;
  color: var(--gold-light);
  background:
    linear-gradient(135deg, rgba(42,0,8,.94), rgba(74,0,13,.86)),
    url("../images/building.png") center/cover;
}

@media (min-width: 860px) {
  .contact-cta { grid-template-columns: 1fr 1.2fr; align-items: center; padding: 2.5rem; }
}

.contact-cta h2 { color: #fff; margin: .4rem 0 .6rem; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.contact-cta p { margin: 0; opacity: .85; }
.contact-cta .lead-card { color: var(--ink); }
.contact-cta .lead-card p { opacity: 1; }
@media (min-width: 860px) { .contact-cta { align-items: start; } }

.contact-cta__phones {
  display: grid;
  gap: .75rem;
}

@media (min-width: 560px) {
  .contact-cta__phones { grid-template-columns: repeat(2, 1fr); }
}

.contact-cta__phones a {
  display: block;
  padding: .8rem 1rem;
  border-radius: .8rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(212,175,55,.28);
  color: var(--gold-light);
}

.contact-cta__phones a:hover { background: rgba(212,175,55,.18); color: #fff; }
.contact-cta__phones span { display: block; font-size: .75rem; opacity: .75; }
.contact-cta__phones strong { font-size: 1rem; }

.contact-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .55rem 1.2rem;
  margin: 0;
}

.contact-list dt { color: var(--muted); font-size: .88rem; }
.contact-list dd { margin: 0; font-weight: 600; }

.map-card { padding: 0; overflow: hidden; min-height: 340px; }
.map-card iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; }

.alert { padding: .75rem 1rem; border-radius: .5rem; margin-bottom: 1rem; }
.alert-success { background: #ecfdf5; color: #047857; }
.alert-error { background: #fef2f2; color: #b91c1c; }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: .35rem; font-size: .9rem; }

.input, select, textarea {
  width: 100%;
  padding: .6rem .8rem;
  border: 1px solid #e5e7eb;
  border-radius: .65rem;
  font: inherit;
  background: #fff;
}

.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { border-bottom: 1px solid #f3f4f6; padding: .65rem .4rem; text-align: left; vertical-align: top; }

.admin-shell { display: flex; min-height: 100vh; }
.admin-side { width: 220px; background: var(--burgundy); color: var(--gold-light); padding: 1.25rem; flex-shrink: 0; }
.admin-side a { display: block; color: var(--gold-light); padding: .45rem .6rem; border-radius: .4rem; margin-bottom: .25rem; }
.admin-side a:hover, .admin-side a.active { background: rgba(212,175,55,.2); color: var(--gold); }
.admin-main { flex: 1; padding: 1.5rem; background: var(--cream); min-width: 0; }
.admin-main details.card > summary { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.admin-main details.card > summary::-webkit-details-marker { display: none; }
.admin-main details.card > summary::before { content: "▸"; color: var(--gold); transition: transform .2s; }
.admin-main details.card[open] > summary::before { transform: rotate(90deg); }
.admin-thumb { width: 72px; height: 48px; object-fit: cover; border-radius: .4rem; background: #eee; flex-shrink: 0; }
.image-field__preview { width: 140px; height: 94px; object-fit: cover; border-radius: .6rem; border: 1px solid var(--border); background: #fff; }
.image-field__preview--empty { display: grid; place-items: center; color: var(--muted); font-size: .85rem; }
.day-editor { border: 1px dashed var(--border); border-radius: .8rem; padding: 1rem; background: #fff; }
.admin-help { font-size: .8rem; color: var(--muted); margin-top: .25rem; }
.page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.page-tile { display: flex; flex-direction: column; justify-content: space-between; }
.page-tile--link { color: inherit; transition: border-color .2s, transform .2s; }
.page-tile--link:hover { border-color: var(--gold); transform: translateY(-2px); }
.page-tile h3 { color: var(--burgundy); }
.section-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.section-chips a { padding: .3rem .75rem; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-size: .82rem; color: var(--burgundy); }
.section-chips a:hover { border-color: var(--gold); }
.content-section { border: 1px solid var(--border); margin: 0; scroll-margin-top: 1rem; }
.content-section > legend { float: left; width: 100%; padding: 0; margin-bottom: .25rem; font-weight: 700; font-size: 1.2rem; line-height: 1.3; color: var(--burgundy); }
.content-section > legend + * { clear: both; }
.table-editor { display: flex; flex-direction: column; gap: .45rem; }
.table-editor__head, .table-editor__row { display: grid; gap: .45rem; align-items: start; }
.table-editor__head span { font-size: .78rem; color: var(--muted); }
.table-editor__rows { display: flex; flex-direction: column; gap: .45rem; }
.table-editor__tools { display: flex; gap: .2rem; padding-top: .3rem; }
.table-editor__tools button { width: 1.9rem; height: 1.9rem; border: 1px solid var(--border); border-radius: .4rem; background: #fff; cursor: pointer; color: var(--burgundy); }
.table-editor__tools button:hover { border-color: var(--gold); }
.table-editor__tools button[data-row-action="remove"]:hover { background: #fbeaea; border-color: #c0392b; color: #c0392b; }
.save-bar { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 1rem; align-items: center; padding: .85rem 1rem; background: rgba(255,255,255,.96); border: 1px solid var(--border); border-radius: .8rem; box-shadow: 0 -6px 20px rgba(74,0,13,.08); }
.edit-fab { position: fixed; right: 1rem; bottom: 1rem; z-index: 50; display: flex; flex-direction: column; gap: .35rem; align-items: flex-end; }
.edit-fab a { padding: .55rem 1rem; border-radius: 999px; background: var(--burgundy); color: var(--gold-light); font-size: .85rem; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.edit-fab a.edit-fab__secondary { background: #fff; color: var(--burgundy); border: 1px solid var(--border); font-weight: 500; font-size: .78rem; padding: .4rem .85rem; }
.edit-fab a:hover { filter: brightness(1.1); }
@media print { .edit-fab { display: none; } }

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(42,0,8,.78), rgba(74,0,13,.55)),
    url("../images/building.png") center/cover no-repeat;
}

.login-card {
  width: min(420px, 100%);
  backdrop-filter: blur(8px);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .25rem;
}

.login-brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: contain;
}

.stack { display: flex; flex-direction: column; gap: 1rem; }
.row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.badge {
  display: inline-block;
  background: var(--gold);
  color: var(--burgundy);
  border-radius: 999px;
  padding: .15rem .55rem;
  font-size: .75rem;
  font-weight: 600;
}

.news-row {
  display: grid;
  gap: 1rem;
  align-items: center;
}

.news-row img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: .75rem;
}

@media (min-width: 700px) {
  .news-row { grid-template-columns: 200px 1fr; }
  .news-row img { height: 120px; }
}

.reveal {
  animation: rise .7s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes heroDrift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__media img,
  .reveal,
  .media-card img,
  .btn { animation: none; transition: none; }
}

@media (max-width: 760px) {
  .nav-links { gap: .65rem; font-size: .82rem; }
  .home-hero { min-height: 560px; }
  .home-hero__content { padding-top: 3.2rem; }
}
