:root {
  --bg: #fffdf9;
  --bg-soft: #f7f2ff;
  --card: #ffffff;
  --primary: #701ac3;
  --primary-dark: #4d0d8c;
  --secondary: #77e0eb;
  --secondary-dark: #34bfd3;
  --text: #1e1e2d;
  --muted: #5c6378;
  --border: rgba(112, 26, 195, 0.12);
  --shadow: 0 18px 45px rgba(95, 56, 143, 0.12);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: linear-gradient(180deg, #f9fbff 0%, #fffaf4 100%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img { display: block; max-width: 100%; }

.container {
  width: min(1160px, calc(100% - 2rem));
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

.section-light {
  background: var(--bg-soft);
}


.section-kicker {
  margin: 0 0 0.65rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 800;
}

.section-heading {
  margin-bottom: 2rem;
  text-align: center;
}

.section-heading h2,
.two-col h2,
.page-header h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.1;
  font-family: "Baloo 2", cursive;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(112, 26, 195, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-weight: 700;
}

.brand img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(112, 26, 195, 0.13);
}

.brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand strong {
  font-size: 1.1rem;
  color: var(--primary-dark);
}

.brand small {
  color: var(--muted);
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-weight: 600;
  color: var(--muted);
}

.main-nav a {
  position: relative;
  padding: 0.45rem 0.2rem;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.45rem 0.2rem;
  color: var(--muted);
  font-weight: 600;
}

.nav-dropdown > summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown > summary::after {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-dropdown[open] > summary::after {
  transform: rotate(-135deg) translateY(-1px);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  min-width: 250px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 0.45rem;
  z-index: 30;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  background: rgba(112, 26, 195, 0.08);
}

.nav-subdropdown {
  position: relative;
  margin-top: 0.2rem;
}

.nav-subdropdown > summary {
  list-style: none;
  cursor: pointer;
  display: block;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
}

.nav-subdropdown > summary::-webkit-details-marker {
  display: none;
}

.nav-subdropdown > summary::after {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-subdropdown[open] > summary::after {
  transform: rotate(-135deg) translateY(-1px);
}

.nav-subdropdown-menu {
  margin: 0.1rem 0 0.2rem 0.75rem;
  padding-left: 0.6rem;
  border-left: 1px solid rgba(112, 26, 195, 0.15);
}

.nav-subdropdown-menu a {
  padding-left: 0.5rem;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 99px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary-dark);
  border-radius: 10px;
  margin: 5px 0;
}

.hero {
  padding: 4rem 0 3rem;
  background: radial-gradient(circle at top right, rgba(119, 224, 235, 0.22), transparent 35%),
              radial-gradient(circle at bottom left, rgba(112, 26, 195, 0.14), transparent 32%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 0.96;
  font-family: "Baloo 2", cursive;
  color: var(--primary-dark);
}

.lead {
  margin-top: 1.2rem;
  max-width: 620px;
  font-size: 1.08rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.8rem 0 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 16px 30px rgba(112, 26, 195, 0.2);
}

.btn-secondary {
  background: rgba(119, 224, 235, 0.18);
  color: var(--primary-dark);
}

.mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.mini-stats li {
  min-width: 130px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow);
}

.mini-stats strong {
  display: block;
  font-size: 1.5rem;
  color: var(--primary-dark);
  line-height: 1;
}

.mini-stats span {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.card-main {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(112, 26, 195, 0.08);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.card-main img {
  width: 100%;
  min-height: 430px;
  object-fit: cover;
}

.badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-weight: 800;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(112, 26, 195, 0.12);
  box-shadow: var(--shadow);
}

.badge-top {
  top: 1rem;
  right: 1.2rem;
}

.badge-bottom {
  bottom: 1rem;
  left: 1rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.intro-grid article,
.feature-card,
.news-card,
.info-card,
.service-box,
.contact-card,
.doc-item {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.intro-grid article {
  padding: 2rem 1.3rem;
  text-align: center;
}

.icon {
  font-size: 2.2rem;
}

.intro-grid h3,
.feature-card h3,
.news-card h3,
.info-card h3,
.service-box h3,
.contact-card h3,
.site-footer h3,
.site-footer h4 {
  margin: 0.8rem 0 0.5rem;
  font-family: "Baloo 2", cursive;
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.intro-grid p,
.feature-card p,
.news-card p,
.two-col p,
.info-card li,
.site-footer p,
.site-footer li,
.service-box p,
.contact-card p,
.doc-item p,
.list-block li {
  color: var(--muted);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.9fr);
  align-items: flex-start;
  gap: 2.5rem;
}

#o-nas h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.4rem, 3.3vw, 4.2rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  word-break: normal;
  overflow-wrap: normal;
  text-align: justify;
  widows: 2;
  orphans: 2;
}

.legacy-facts {
  margin: 1.5rem 0 0;
  padding-left: 1.5rem;
  color: var(--text);
  font-size: clamp(1.05rem, 1.3vw, 1.4rem);
  line-height: 1.6;
  max-width: 760px;
  text-align: justify;
  widows: 2;
  orphans: 2;
}

.legacy-facts li {
  margin-bottom: 0.3rem;
  text-align: justify;
  widows: 2;
  orphans: 2;
}

.info-card {
  background: linear-gradient(135deg, rgba(119, 224, 235, 0.18), rgba(112, 26, 195, 0.08));
  padding: 2rem 2rem 1.6rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-card h3 {
  font-size: clamp(1.9rem, 2.5vw, 2.8rem);
  margin-bottom: 1rem;
}

.info-card ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.info-card li {
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: 0.8rem;
}

.info-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 800;
}

.cards-grid,
.news-grid,
.services-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

.feature-card,
.news-card,
.service-box,
.contact-card {
  padding: 1.5rem 1.2rem;
}

.news-card-gallery {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.news-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(112, 26, 195, 0.08);
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-copy {
  padding: 1rem 1rem 1.1rem;
}

.news-date {
  margin-bottom: 0.65rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.news-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}

.news-card-gallery h3 {
  font-size: clamp(1.15rem, 1.4vw, 1.5rem);
  line-height: 1.1;
}

.news-card-gallery p {
  margin-bottom: 0;
}

.news-loading {
  padding: 1.4rem 1.2rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
  border: 1px dashed rgba(112, 26, 195, 0.18);
  color: var(--muted);
  font-weight: 600;
}

.news-empty {
  grid-column: 1 / -1;
}

.section-footer-link {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.feature-card span {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(119, 224, 235, 0.25), rgba(112, 26, 195, 0.1));
  font-size: 1.8rem;
}

.tag {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(112, 26, 195, 0.08);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.74rem;
}

.page-header {
  padding: 4rem 0 3rem;
  background: linear-gradient(135deg, rgba(112, 26, 195, 0.08), rgba(119, 224, 235, 0.14));
}

.page-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.page-header p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  max-width: 620px;
}

.page-header .badge-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: flex-end;
  max-width: 420px;
}

.page-header .chip {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.05rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--border);
  font-weight: 700;
  color: var(--primary-dark);
  box-shadow: 0 10px 24px rgba(112, 26, 195, 0.08);
  white-space: nowrap;
}

.hymn-wrap {
  max-width: 860px;
}

.hymn-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 2rem 2rem 1.5rem;
}

.audio-player-wrap {
  display: grid;
  gap: 0.6rem;
  margin: 0 0 1.5rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(112, 26, 195, 0.12);
}

.audio-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.audio-player-wrap audio {
  width: 100%;
  max-width: 100%;
  display: block;
  border-radius: 12px;
}

.hymn-card p {
  margin: 0 0 0.8rem;
  font-size: clamp(1.05rem, 1.3vw, 1.35rem);
  line-height: 1.7;
}

.hymn-ref {
  margin-top: 0.9rem !important;
  font-weight: 700;
  color: var(--primary-dark);
}

.page-header-meta {
  display: grid;
  gap: 0.85rem;
}

.page-header-chip {
  display: grid;
  gap: 0.1rem;
  min-width: 220px;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(112, 26, 195, 0.1);
  box-shadow: 0 12px 24px rgba(112, 26, 195, 0.08);
}

.page-header-chip strong {
  font-size: 1.45rem;
  color: var(--primary-dark);
  line-height: 1;
}

.page-header-chip span {
  color: var(--muted);
  font-weight: 600;
  line-height: 1.3;
}

.page-header-chip-soft {
  background: linear-gradient(135deg, rgba(112, 26, 195, 0.08), rgba(119, 224, 235, 0.18));
}

.news-page-header {
  align-items: end;
}

.contact-hero {
  padding: 3.5rem 0 2.8rem;
}

.contact-hero-inner {
  align-items: stretch;
  grid-template-columns: 1.05fr 0.95fr;
  display: grid;
}

.contact-hero-copy p {
  max-width: 700px;
}

.contact-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.3rem;
}

.contact-hero-badges {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.contact-hero-badges .page-header-chip {
  min-width: 0;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.news-list-compact {
  margin-top: 0.5rem;
}

.news-card-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.news-card-row .news-thumb {
  min-height: 100%;
  aspect-ratio: auto;
  height: 100%;
}

.news-card-row .news-copy {
  padding: 1.05rem 1rem 1.05rem;
  display: grid;
  align-content: start;
  background: rgba(255, 255, 255, 0.98);
}

.news-card-row .news-date {
  margin-bottom: 0.5rem;
}

.news-card-row .news-meta-row {
  margin-top: 0.9rem;
}

.news-card-row .news-copy h3 {
  margin: 0;
  font-size: clamp(1.15rem, 1.3vw, 1.35rem);
  line-height: 1.15;
}

.news-card-row .news-copy p {
  margin: 0.45rem 0 0;
}

.gallery-page-header .badge-chips {
  flex-direction: column;
  align-items: flex-end;
}

.gallery-page-header .chip {
  background: linear-gradient(135deg, rgba(112, 26, 195, 0.08), rgba(119, 224, 235, 0.16));
}

.gallery-shell {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.album-sidebar,
.gallery-content {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.album-sidebar {
  padding: 1.25rem;
  position: sticky;
  top: 100px;
}

.album-sidebar-head {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.album-sidebar-head h2,
.gallery-content-head h2 {
  margin: 0;
  font-family: "Baloo 2", cursive;
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1.1;
  color: var(--primary-dark);
}

.album-sidebar-head p,
.gallery-content-head p {
  margin: 0;
  color: var(--muted);
}

.album-sidebar-head strong {
  color: var(--primary-dark);
}

.school-year-filter {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.school-year-filter-label {
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.95rem;
}

.school-year-filter-form {
  display: block;
}

.school-year-filter select {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(112, 26, 195, 0.15);
  border-radius: 14px;
  font: inherit;
  font-weight: 700;
  background: white;
  color: var(--primary-dark);
}

.gallery-content {
  padding: 1.25rem;
}

.gallery-content-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 1.25rem;
  align-items: start;
  margin-bottom: 1.15rem;
  padding: 1rem 1rem 1.05rem;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(112, 26, 195, 0.05), rgba(119, 224, 235, 0.1));
  border: 1px solid rgba(112, 26, 195, 0.08);
}

.gallery-content-copy {
  display: grid;
  gap: 0.35rem;
}

.gallery-content-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.gallery-meta-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 22px rgba(112, 26, 195, 0.14);
  white-space: nowrap;
}

.gallery-meta-chip-soft {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-dark);
  border: 1px solid rgba(112, 26, 195, 0.12);
  box-shadow: none;
}

.gallery-section {
  padding-top: 2.2rem;
}

.doc-list,
.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.doc-item,
.doc-list a,
.doc-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 120px;
  padding: 1.2rem 1.1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(119, 224, 235, 0.08));
  font-weight: 700;
  color: var(--primary-dark);
  box-shadow: var(--shadow);
}

.doc-item > div,
.doc-grid a > div {
  flex: 1;
  min-width: 0;
}

.doc-item h3,
.doc-grid a h3 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.4rem, 1.8vw, 1.9rem);
  line-height: 1.2;
  color: var(--primary-dark);
}

.doc-item p,
.doc-grid a p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.doc-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  background: rgba(112, 26, 195, 0.08);
  font-size: 1.35rem;
}

.doc-list a::after,
.doc-grid a::after {
  content: "→";
  font-size: 1.2rem;
  flex-shrink: 0;
  color: var(--primary-dark);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(112, 26, 195, 0.08);
  box-shadow: var(--shadow);
}

.gallery-grid-php {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(112, 26, 195, 0.14);
}

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.02);
}

.album-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0;
}

.album-tabs-scroll {
  max-height: 560px;
  overflow-y: auto;
  padding-right: 0.2rem;
  scrollbar-width: thin;
}

.album-tabs-scroll::-webkit-scrollbar {
  width: 10px;
}

.album-tabs-scroll::-webkit-scrollbar-thumb {
  background: rgba(112, 26, 195, 0.18);
  border-radius: 999px;
}

.album-tab.is-hidden {
  display: none;
}

.album-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.8);
  color: var(--primary-dark);
  font-weight: 700;
  white-space: normal;
}

.album-tab span {
  min-width: 0;
}

.album-tab small {
  flex-shrink: 0;
  min-width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(112, 26, 195, 0.08);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.album-tab.is-active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-color: transparent;
}

.empty-state {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 18, 0.82);
  z-index: 2000;
  padding: 1.5rem;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 90vh;
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.32);
  background: white;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  background: rgba(255,255,255,0.9);
  color: var(--primary-dark);
}

.upload-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
}

.upload-form {
  display: grid;
  gap: 1rem;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.upload-form label {
  display: grid;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.upload-form .form-hint {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

.upload-form input[type="text"],
.upload-form input[type="file"],
.upload-form select {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(112, 26, 195, 0.15);
  border-radius: 12px;
  font: inherit;
  background: white;
}

.upload-form select {
  appearance: none;
}

.upload-sidebar {
  padding: 1.5rem;
}

.alerts {
  display: grid;
  gap: 0.8rem;
}

.alert-box {
  background: rgba(119, 224, 235, 0.12);
  border: 1px solid rgba(52, 191, 211, 0.25);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  color: var(--primary-dark);
  font-weight: 600;
}

.list-block {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.list-block li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(112, 26, 195, 0.08);
}

.resource-tabs {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.resource-tabs-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid rgba(112, 26, 195, 0.12);
  background: rgba(119, 224, 235, 0.22);
}

.resource-tab {
  border: 0;
  background: transparent;
  color: var(--primary-dark);
  font: inherit;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 1.05rem 1.2rem;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.resource-tab + .resource-tab {
  border-left: 1px solid rgba(112, 26, 195, 0.14);
}

.resource-tab:hover {
  background: rgba(255, 255, 255, 0.55);
}

.resource-tab.is-active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}

.resource-panels {
  padding: 1rem 1.15rem 1.2rem;
}

.resource-panel {
  background: rgba(119, 224, 235, 0.2);
  border: 1px solid rgba(112, 26, 195, 0.12);
  border-radius: 20px;
  padding: 0.6rem;
}

.resource-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.resource-list li {
  padding: 1rem 1rem;
  border-bottom: 1px solid rgba(112, 26, 195, 0.12);
  color: #233042;
  font-weight: 700;
  line-height: 1.35;
}

.resource-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  color: inherit;
}

.resource-list li a:hover,
.resource-list li a:focus-visible {
  color: var(--primary-dark);
}

.resource-link-hint {
  flex-shrink: 0;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(112, 26, 195, 0.12);
  color: var(--primary-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.resource-list li:last-child {
  border-bottom: 0;
}

.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-card {
  padding: 1.7rem;
}

.contact-card strong {
  color: var(--primary-dark);
}

.contact-form {
  display: grid;
  gap: 1rem;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(112, 26, 195, 0.15);
  border-radius: 12px;
  font: inherit;
  background: white;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-page-section {
  padding-top: 4rem;
}

.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 1.4rem;
  align-items: stretch;
}

.contact-page-stack {
  display: grid;
  gap: 1.4rem;
}

.contact-panel,
.contact-map-panel {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-panel {
  padding: 1.6rem;
}

.contact-panel h3,
.contact-map-panel h3 {
  margin: 0 0 0.8rem;
}

.contact-address {
  margin: 0;
  font-weight: 700;
  color: var(--primary-dark);
}

.contact-lines {
  margin-top: 1rem;
}

.contact-lines p {
  margin: 0.45rem 0;
}

.contact-lines strong {
  color: var(--text);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.contact-map-panel {
  display: flex;
  flex-direction: column;
  padding: 1.2rem;
}

.contact-map-frame {
  margin-top: 0.2rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(112, 26, 195, 0.16);
  min-height: 360px;
}

.contact-map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

.contact-map-link {
  margin-top: 1rem;
  width: fit-content;
}

.site-footer {
  background: linear-gradient(180deg, #271445 0%, #190c2d 100%);
  color: rgba(255,255,255,0.9);
  padding: 4rem 0 1.2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 2rem;
}

.site-footer h3,
.site-footer h4 {
  margin-bottom: 0.7rem;
  color: #fff;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: rgba(255,255,255,0.82);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 2rem;
  padding-top: 1rem;
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
}

.footer-author {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  flex-wrap: wrap;
}

.footer-author-label {
  color: rgba(255,255,255,0.72);
}

.footer-author-name {
  color: #fff;
  font-weight: 800;
}

.footer-author:hover,
.footer-author:focus-visible {
  opacity: 0.9;
}

@media (max-width: 980px) {
  .hero-inner,
  .two-col,
  .footer-inner,
  .page-header-inner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .cards-grid,
  .news-grid,
  .intro-grid,
  .gallery-grid,
  .services-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-page-grid {
    grid-template-columns: 1fr;
  }

  .contact-hero-inner {
    grid-template-columns: 1fr;
  }

  .contact-hero-badges {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .page-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-shell {
    grid-template-columns: 1fr;
  }

  .album-sidebar {
    width: 100%;
    position: static;
  }

  .album-tabs-scroll {
    max-height: none;
  }

  .album-tabs-scroll.is-filtered {
    max-height: none;
  }

  .gallery-content-head {
    grid-template-columns: 1fr;
  }

  .gallery-content-meta {
    justify-content: flex-start;
  }

  .gallery-section {
    padding-top: 1.4rem;
  }

  .nav-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    z-index: 20;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown > summary {
    width: 100%;
    padding: 0.45rem 0.2rem;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    margin-top: 0.45rem;
    box-shadow: none;
    border-radius: 12px;
  }

  .main-nav.open { display: flex; }

  .cards-grid,
  .news-grid,
  .intro-grid,
  .gallery-grid,
  .services-grid,
  .contact-grid,
  .doc-list,
  .doc-grid {
    grid-template-columns: 1fr;
  }

  .hero { padding-top: 3rem; }

  .news-layout {
    grid-template-columns: 1fr;
  }

  .news-sidebar {
    position: static;
  }

  .news-list {
    grid-template-columns: 1fr;
  }

  .news-card-row {
    grid-template-columns: 1fr;
  }

  .page-header-meta {
    width: 100%;
  }

  .page-header-chip {
    min-width: 0;
  }

  .resource-tabs-nav {
    grid-template-columns: 1fr;
  }

  .resource-tab + .resource-tab {
    border-left: 0;
    border-top: 1px solid rgba(112, 26, 195, 0.14);
  }

  .contact-hero-badges {
    grid-template-columns: 1fr;
  }

  .contact-map-frame,
  .contact-map-frame iframe {
    min-height: 280px;
  }
}
