:root {
  --bg: #f3f3f1;
  --bg-soft: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --text: #111111;
  --text-muted: #5d5d5d;
  --border: rgba(17, 17, 17, 0.14);
  --shadow: 0 24px 60px rgba(17, 17, 17, 0.08);
  --accent: #111111;
}

body.dark-theme {
  --bg: #090909;
  --bg-soft: #141414;
  --surface: rgba(20, 20, 20, 0.78);
  --surface-strong: rgba(24, 24, 24, 0.92);
  --text: #f5f5f5;
  --text-muted: #b6b6b6;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --accent: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(127, 127, 127, 0.14), transparent 30%),
    radial-gradient(circle at bottom right, rgba(127, 127, 127, 0.12), transparent 28%),
    linear-gradient(180deg, var(--bg), var(--bg-soft));
  transition: background-color 0.35s ease, color 0.35s ease, background 0.35s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  min-height: 100vh;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.site-header,
.site-footer,
.hero-card,
.info-card,
.content-card,
.schedule-item {
  backdrop-filter: blur(14px);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  margin: 16px 0 28px;
  padding: 16px 18px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 230px;
}

.logo-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text strong {
  font-size: 1rem;
  letter-spacing: 0.18em;
}

.logo-text small,
.eyebrow,
.site-footer {
  color: var(--text-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: var(--accent);
  color: var(--bg-soft);
  transform: translateY(-1px);
}

.theme-toggle {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.theme-toggle__track {
  width: 46px;
  height: 24px;
  border-radius: 999px;
  background: rgba(127, 127, 127, 0.25);
  padding: 3px;
  display: flex;
  align-items: center;
}

.theme-toggle__thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(0);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

body.dark-theme .theme-toggle__thumb {
  transform: translateX(22px);
}

main {
  flex: 1;
}

.hero,
.page-intro,
.content-grid,
.contacts-grid,
.schedule,
.info-grid {
  margin-bottom: 28px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 20px;
  align-items: stretch;
  padding: 42px 0 10px;
}

.hero-copy h1,
.page-intro h1,
.content-card h2,
.schedule-item h2,
.hero-card h2,
.info-card h3 {
  font-family: "Cormorant Garamond", serif;
  line-height: 0.95;
  margin: 0;
}

.hero-copy h1,
.page-intro h1 {
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  max-width: 100%;
  margin-bottom: 16px;
}

.hero-text,
.content-card p,
.schedule-item p,
.hero-card p,
.info-card p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.72rem;
  margin-bottom: 12px;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: var(--accent);
  color: var(--bg-soft);
}

.button--ghost {
  background: transparent;
}

.hero-card,
.info-card,
.content-card,
.schedule-item {
  border-radius: 28px;
}

.hero-card {
  padding: 28px;
  align-self: end;
}

.hero-card__label,
.info-card span {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.info-grid,
.content-grid,
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.info-card,
.content-card {
  padding: 24px;
}

.info-card h3,
.content-card h2 {
  font-size: 1.55rem;
  margin-bottom: 10px;
}

.schedule {
  display: grid;
  gap: 16px;
}

.schedule-item {
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: start;
}

.schedule-item time {
  font-size: 1.2rem;
  font-weight: 700;
}

.site-footer {
  margin: 10px 0 18px;
  padding: 18px 24px;
  border-radius: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.fade-in,
.fade-in-delayed {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s ease forwards;
}

.fade-in-delayed {
  animation-delay: 0.18s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .site-header {
    position: static;
    flex-direction: column;
    align-items: stretch;
  }

  .logo,
  .theme-toggle {
    justify-content: center;
  }

  .hero,
  .info-grid,
  .content-grid,
  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .page-intro h1 {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
  }

  .site-header,
  .hero-card,
  .info-card,
  .content-card,
  .schedule-item,
  .site-footer {
    border-radius: 20px;
  }

  .site-nav {
    gap: 6px;
  }

  .site-nav a,
  .button {
    width: 100%;
    text-align: center;
  }

  .schedule-item {
    grid-template-columns: 1fr;
  }
}
