:root {
  --blue: #006eb8;
  --blue-dark: #084b7a;
  --blue-ink: #073554;
  --gold: #f4c642;
  --cream: #f8f3e9;
  --paper: #fffdf8;
  --red: #d7232f;
  --ink: #18242d;
  --muted: #5b6973;
  --line: rgba(7, 53, 84, 0.14);
  --shadow: 0 18px 50px rgba(7, 53, 84, 0.13);
  --radius: 22px;
  --content: min(1160px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 1000;
  padding: 10px 16px;
  background: #fff;
  color: var(--blue-dark);
  border-radius: 8px;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid rgba(7, 53, 84, 0.09);
  backdrop-filter: blur(14px);
}
.nav-wrap {
  width: var(--content);
  min-height: 82px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 68px; height: 68px; object-fit: contain; }
.brand-text { display: grid; line-height: 1.06; }
.brand-text strong { color: var(--blue-ink); font-family: Georgia, serif; font-size: 22px; }
.brand-text span { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { color: var(--blue-ink); font-size: 15px; font-weight: 750; text-decoration: none; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--blue); }
.nav-cta { padding: 10px 17px; color: #fff !important; background: var(--blue); border-radius: 999px; }
.menu-button { display: none; border: 0; background: transparent; color: var(--blue-ink); font-weight: 800; }

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #073554;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 32, 52, .93) 0%, rgba(3, 32, 52, .73) 43%, rgba(3, 32, 52, .16) 74%), var(--hero-image, url("../assets/hero-hnevanka.webp")) center/cover no-repeat;
  transform: scale(1.01);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--blue) 0 55%, var(--gold) 55% 82%, var(--red) 82%);
}
.hero-inner { position: relative; width: var(--content); margin: auto; padding: 90px 0; }
.eyebrow { margin: 0 0 14px; color: var(--gold); font-size: 14px; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { max-width: 650px; margin: 0; font: 700 clamp(58px, 9vw, 112px)/.9 Georgia, serif; letter-spacing: -.055em; }
.hero .lead { max-width: 620px; margin: 28px 0 34px; font-size: clamp(19px, 2.2vw, 25px); line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; gap: 13px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--blue-ink); background: var(--gold); }
.button-secondary { color: #fff; border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.08); }
.button-blue { color: #fff; background: var(--blue); }

.section { padding: 96px 0; }
.section-sm { padding: 68px 0; }
.container { width: var(--content); margin: auto; }
.section-head { max-width: 720px; margin-bottom: 42px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-label { margin: 0 0 9px; color: var(--blue); font-size: 13px; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
h2, h3 { color: var(--blue-ink); font-family: Georgia, serif; }
h2 { margin: 0 0 18px; font-size: clamp(37px, 5vw, 58px); line-height: 1.04; letter-spacing: -.035em; }
h3 { margin: 0 0 10px; font-size: 25px; line-height: 1.2; }
.section-head p { color: var(--muted); font-size: 19px; }
.cream { background: var(--cream); }
.blue-panel { color: #fff; background: var(--blue-ink); }
.blue-panel h2, .blue-panel h3 { color: #fff; }
.blue-panel .section-label { color: var(--gold); }

.intro-grid { display: grid; grid-template-columns: 1.03fr .97fr; gap: 64px; align-items: center; }
.photo-card { position: relative; }
.photo-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.photo-note { position: absolute; right: -22px; bottom: -24px; max-width: 230px; padding: 18px 22px; color: var(--blue-ink); background: var(--gold); border-radius: 16px; font-weight: 800; box-shadow: 0 12px 35px rgba(7,53,84,.18); }
.check-list { list-style: none; padding: 0; margin: 28px 0 0; }
.check-list li { position: relative; padding-left: 31px; margin: 10px 0; }
.check-list li::before { content: "♪"; position: absolute; left: 0; top: -2px; color: var(--red); font-size: 21px; font-weight: 900; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.info-card { padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 35px rgba(7,53,84,.07); }
.info-card .icon { width: 48px; height: 48px; margin-bottom: 21px; display: grid; place-items: center; color: #fff; background: var(--blue); border-radius: 14px; font-size: 24px; }
.info-card p { margin-bottom: 0; color: var(--muted); }

.events { display: grid; gap: 13px; }
.event {
  display: grid;
  grid-template-columns: 106px 1fr auto;
  gap: 25px;
  align-items: center;
  padding: 22px 26px;
  color: var(--ink);
  background: #fff;
  border-radius: 18px;
}
.event-date { display: grid; text-align: center; border-right: 1px solid var(--line); }
.event-date strong { color: var(--blue); font: 700 35px/1 Georgia, serif; }
.event-date span { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.event h3 { margin: 0 0 3px; font-size: 22px; }
.event p { margin: 0; color: var(--muted); font-size: 15px; }
.event-type { padding: 7px 12px; color: var(--blue-dark); background: #e7f3fb; border-radius: 99px; font-size: 12px; font-weight: 850; text-transform: uppercase; }
.archive-note { margin-top: 18px; color: rgba(255,255,255,.7); font-size: 14px; }

.news-section { background: #fff; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 35px rgba(7,53,84,.07); }
.news-card-image { aspect-ratio: 16 / 9; overflow: hidden; background: #dfe8ec; }
.news-card-image img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { padding: 25px; }
.news-card time { color: var(--blue); font-size: 13px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.news-card h3 { margin: 8px 0 10px; font-size: 25px; }
.news-card p { margin: 0; color: var(--muted); }
.news-empty { padding: 26px; color: var(--muted); background: var(--paper); border: 1px dashed #b9c9d3; border-radius: 16px; }

.repertoire-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 34px 0; }
.repertoire-item { padding: 22px 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; text-align: center; }
.repertoire-item strong { display: block; color: var(--blue-ink); font-family: Georgia, serif; font-size: 21px; }
.repertoire-item span { color: var(--muted); font-size: 14px; }

.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 210px; gap: 14px; }
.gallery-item { position: relative; overflow: hidden; border-radius: 17px; background: #dfe8ec; }
.gallery-item:nth-child(1), .gallery-item:nth-child(6) { grid-column: span 6; grid-row: span 2; }
.gallery-item:nth-child(2), .gallery-item:nth-child(3), .gallery-item:nth-child(4), .gallery-item:nth-child(5) { grid-column: span 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery-item:hover img { transform: scale(1.035); }
.gallery-item span { position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px); padding: 6px 11px; color: #fff; background: rgba(3,32,52,.78); border-radius: 99px; font-size: 13px; font-weight: 750; }
.gallery-actions { margin-top: 28px; text-align: center; }

.members-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.members { display: grid; gap: 10px; }
.members details { background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.members summary { cursor: pointer; padding: 16px 19px; color: var(--blue-ink); font-weight: 850; }
.members p { margin: 0; padding: 0 19px 18px; color: var(--muted); }
.support { display: flex; align-items: center; gap: 23px; margin-top: 31px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 17px; }
.support img { width: 76px; flex: 0 0 76px; }
.support p { margin: 0; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 62px; }
.contact-person { padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.contact-person h3 { margin-bottom: 4px; }
.role { margin: 0 0 9px; color: var(--gold); font-size: 13px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.contact-person a { display: block; width: fit-content; color: #fff; text-decoration-color: rgba(255,255,255,.45); text-underline-offset: 4px; }
.contact-form { padding: 32px; color: var(--ink); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field { margin-bottom: 15px; }
.field label { display: block; margin: 0 0 6px; color: var(--blue-ink); font-size: 14px; font-weight: 800; }
.field input, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid #c8d3da; border-radius: 10px; background: #fff; }
.field textarea { min-height: 125px; resize: vertical; }
.form-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; }

.site-footer { padding: 30px 0; color: rgba(255,255,255,.78); background: #032338; font-size: 14px; }
.footer-wrap { width: var(--content); margin: auto; display: flex; justify-content: space-between; gap: 22px; }
.footer-wrap p { margin: 0; }
.footer-wrap a { color: #fff; }

.gallery-page-hero { padding: 95px 0 70px; color: #fff; background: linear-gradient(135deg, var(--blue-ink), var(--blue)); }
.gallery-page-hero h1 { color: #fff; margin: 0 0 12px; font: 700 clamp(50px, 8vw, 90px)/1 Georgia, serif; letter-spacing: -.045em; }
.gallery-page-hero p { max-width: 650px; margin: 0; font-size: 20px; }
.full-gallery-grid { grid-auto-flow: dense; grid-auto-rows: 230px; }
.full-gallery-grid .gallery-item:nth-child(n) { grid-column: span 4; grid-row: span 1; }
.full-gallery-grid .gallery-item:nth-child(1), .full-gallery-grid .gallery-item:nth-child(8) { grid-column: span 8; grid-row: span 2; }
.full-gallery-grid .gallery-item img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .menu-button { display: inline-flex; }
  .main-nav { display: none; position: absolute; top: 82px; left: 0; right: 0; padding: 22px; flex-direction: column; align-items: flex-start; background: var(--paper); border-bottom: 1px solid var(--line); }
  .main-nav.open { display: flex; }
  .hero { min-height: 620px; }
  .hero::before { background: linear-gradient(90deg, rgba(3,32,52,.92), rgba(3,32,52,.58)), var(--hero-image, url("../assets/hero-hnevanka.webp")) 63% center/cover no-repeat; }
  .intro-grid, .members-wrap, .contact-grid { grid-template-columns: 1fr; }
  .photo-card { max-width: 680px; }
  .card-grid, .news-grid { grid-template-columns: 1fr 1fr; }
  .repertoire-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-auto-rows: 180px; }
  .gallery-item:nth-child(n) { grid-column: span 6; grid-row: span 1; }
  .gallery-item:nth-child(1), .gallery-item:nth-child(6) { grid-row: span 2; }
}

@media (max-width: 620px) {
  :root { --content: min(100% - 28px, 1160px); }
  body { font-size: 16px; }
  .nav-wrap { min-height: 70px; }
  .brand img { width: 55px; height: 55px; }
  .brand-text strong { font-size: 19px; }
  .brand-text span { display: none; }
  .main-nav { top: 70px; }
  .hero { min-height: 590px; }
  .hero-inner { padding: 66px 0; }
  .hero h1 { font-size: clamp(54px, 19vw, 76px); }
  .section { padding: 72px 0; }
  .section-sm { padding: 52px 0; }
  .photo-note { right: 10px; bottom: -22px; }
  .card-grid, .news-grid, .repertoire-grid, .field-row { grid-template-columns: 1fr; }
  .event { grid-template-columns: 74px 1fr; gap: 16px; padding: 18px; }
  .event-date { padding-right: 14px; }
  .event-type { display: none; }
  .gallery-grid { grid-auto-rows: 170px; }
  .gallery-item:nth-child(n) { grid-column: 1 / -1; grid-row: span 1; }
  .gallery-item:nth-child(1) { grid-row: span 2; }
  .contact-form { padding: 22px; }
  .footer-wrap { flex-direction: column; }
}

.repertoire-tools { max-width: 620px; margin: 30px auto 18px; }
.repertoire-tools label { display: block; margin-bottom: 7px; color: var(--blue-ink); font-weight: 800; }
.repertoire-tools input { width: 100%; padding: 13px 16px; color: var(--ink); background: #fff; border: 1px solid #b9c9d3; border-radius: 12px; }
.repertoire-tools input:focus { outline: 3px solid rgba(0,110,184,.2); border-color: var(--blue); }
.repertoire-table-wrap { max-height: 540px; overflow: auto; margin-bottom: 24px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 30px rgba(7,53,84,.06); }
.repertoire-table { width: 100%; border-collapse: collapse; text-align: left; }
.repertoire-table th { position: sticky; top: 0; z-index: 1; padding: 13px 18px; color: #fff; background: var(--blue-ink); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.repertoire-table td { padding: 11px 18px; border-bottom: 1px solid var(--line); }
.repertoire-table td:first-child { color: var(--blue-ink); font-weight: 750; }
.repertoire-table tr:last-child td { border-bottom: 0; }
.repertoire-table tr:nth-child(even) { background: #f7fafc; }
.repertoire-empty { padding: 30px; margin: 0; color: var(--muted); text-align: center; }
.repertoire-actions { justify-content: center; }
.full-gallery-grid .gallery-item { display: block; cursor: zoom-in; }
.full-gallery-grid .gallery-item img { transition: transform .3s ease; }
.full-gallery-grid .gallery-item:hover img { transform: scale(1.025); }
.gallery-lightbox { width: min(1100px, calc(100% - 30px)); max-height: calc(100vh - 30px); padding: 0; overflow: visible; color: #fff; background: transparent; border: 0; }
.gallery-lightbox::backdrop { background: rgba(1,19,31,.9); backdrop-filter: blur(5px); }
.gallery-lightbox img { max-width: 100%; max-height: calc(100vh - 100px); margin: auto; object-fit: contain; border-radius: 10px; }
.gallery-lightbox p { margin: 10px 42px 0; text-align: center; font-weight: 700; }
.gallery-lightbox-close { position: absolute; top: -12px; right: -8px; z-index: 2; width: 44px; height: 44px; color: #fff; background: var(--blue); border: 2px solid #fff; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; }
@media (max-width: 900px) {
  .full-gallery-grid .gallery-item:nth-child(n) { grid-column: span 6; grid-row: span 1; }
  .full-gallery-grid .gallery-item:nth-child(1), .full-gallery-grid .gallery-item:nth-child(8) { grid-row: span 2; }
}
@media (max-width: 620px) {
  .full-gallery-grid { grid-auto-rows: 190px; }
  .full-gallery-grid .gallery-item:nth-child(n) { grid-column: 1 / -1; grid-row: span 1; }
  .full-gallery-grid .gallery-item:nth-child(1) { grid-row: span 2; }
}

@media (max-width: 620px) {
  .repertoire-table th, .repertoire-table td { padding: 10px 12px; font-size: 13px; }
  .repertoire-table th:nth-child(2), .repertoire-table td:nth-child(2) { display: none; }
}