:root {
  --blue: #0051ff;
  --blue-dark: #003fcc;
  --orange: #ea3d05;
  --orange-light: #f24702;
  --yellow: #fffec6;
  --gray-50: #f7f8fb;
  --gray-100: #ebebeb;
  --gray-200: #d6d6d6;
  --gray-600: #5a5f6b;
  --gray-900: #0d0d0d;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(0, 37, 128, 0.08);
  --radius: 16px;
  --header-height: 88px;
  --font-sans: "Montserrat", system-ui, sans-serif;
  --font-serif: "PT Serif", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--orange);
}

.container {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

/* Header */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 81, 255, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 24px;
}

.header__logo img {
  width: 72px;
  height: auto;
}

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.header__burger span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--gray-900);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.header__burger.is-open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.header__burger.is-open span:nth-child(2) {
  opacity: 0;
}

.header__burger.is-open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__menu {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header__menu a {
  color: var(--gray-900);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.header__menu a:hover {
  color: var(--blue);
}

.header__contacts {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  font-weight: 500;
}

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 48px) 0 80px;
  background:
    linear-gradient(135deg, rgba(0, 81, 255, 0.88), rgba(0, 47, 153, 0.78)),
    url("https://static.tildacdn.net/tild6534-3036-4165-a632-363563666466/photo1432821596592e2c18b78144f") center / cover no-repeat;
  color: var(--white);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(234, 61, 5, 0.25), transparent 45%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  max-width: 760px;
}

.hero__badge {
  display: inline-block;
  margin: 0 0 16px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--gray-900);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero__title {
  margin: 0 0 20px;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.15;
  font-weight: 700;
}

.hero__subtitle {
  margin: 0 0 32px;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.7;
  opacity: 0.95;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero__features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
}

.hero__features li {
  position: relative;
  padding-left: 18px;
}

.hero__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--orange);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--orange-light);
  color: var(--white);
}

.btn--outline {
  border: 2px solid var(--white);
  color: var(--white);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--blue);
}

/* Sections */

.section {
  padding: 96px 0;
}

.section--about {
  background: var(--gray-50);
}

.section--calendar {
  background: var(--white);
}

.section--documents {
  background: var(--gray-50);
}

.section--schedule {
  background: var(--yellow);
}

.section--admin {
  background: var(--gray-100);
}

.section__header {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section__title {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.2;
}

.section__lead {
  margin: 0;
  color: var(--gray-600);
  font-size: 1.05rem;
}

.section__lead a {
  font-weight: 600;
}

/* Cards */

.cards {
  display: grid;
  gap: 24px;
}

.cards--3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  padding: 32px 28px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card__icon {
  margin-bottom: 16px;
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue);
  opacity: 0.35;
}

.card__title {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.card__text {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* Calendar */

.calendar-overview {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

.calendar-table td:first-child {
  text-align: left;
}

.calendar-aside {
  padding: 28px;
  background: var(--gray-50);
  border: 1px solid rgba(0, 81, 255, 0.12);
  border-radius: var(--radius);
}

.calendar-aside__title {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--blue);
}

.calendar-aside__title:not(:first-child) {
  margin-top: 24px;
}

.calendar-aside__text {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.6;
}

.calendar-events__heading {
  margin: 0 0 24px;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  text-align: center;
}

.calendar-events {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.calendar-event {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 24px;
  background: var(--gray-50);
  border-left: 4px solid var(--orange);
  border-radius: 0 12px 12px 0;
}

.calendar-event__date {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.calendar-event__text {
  margin: 0;
  color: var(--gray-900);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Documents */

.documents {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.document {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: var(--gray-50);
  border: 1px solid rgba(0, 81, 255, 0.12);
  border-radius: 12px;
  color: var(--gray-900);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.document:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: var(--gray-900);
}

.document__type {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--blue);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.document__name {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Schedule */

.schedule-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.schedule-tabs__btn {
  min-width: 140px;
  min-height: 52px;
  padding: 8px 20px;
  line-height: 1.3;
  border: 2px solid var(--blue);
  border-radius: 999px;
  background: transparent;
  color: var(--blue);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.schedule-tabs__btn small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.85;
}

.schedule-tabs__btn--active,
.schedule-tabs__btn:hover {
  background: var(--blue);
  color: var(--white);
}

.schedule-panel {
  display: none;
}

.schedule-panel--active {
  display: block;
}

.schedule-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.schedule-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--white);
}

.schedule-table th,
.schedule-table td {
  padding: 16px 14px;
  border: 1px solid var(--gray-200);
  text-align: center;
  font-size: 14px;
}

.schedule-table th {
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
}

.schedule-table td:first-child {
  background: var(--gray-50);
  font-weight: 700;
  white-space: nowrap;
}

.schedule-table td:first-child small {
  display: block;
  font-weight: 500;
  color: var(--gray-600);
}

.schedule-table tbody tr:hover td:not(:first-child) {
  background: rgba(0, 81, 255, 0.04);
}

.schedule-note {
  margin: 20px 0 0;
  text-align: center;
  color: var(--gray-600);
  font-size: 14px;
}

/* Staff */

.staff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.staff-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.staff-card--featured {
  grid-column: 1 / -1;
  border: 2px solid var(--blue);
}

.staff-card__photo {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

.staff-card--featured .staff-card__photo {
  width: 160px;
  height: 160px;
}

.staff-card__name {
  margin: 0 0 4px;
  font-size: 1.2rem;
}

.staff-card__role {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
}

.staff-card__text,
.staff-card__duties {
  margin: 0 0 16px;
  color: var(--gray-600);
  font-size: 14px;
}

.staff-card__duties {
  padding-left: 18px;
}

.staff-card__contacts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}

.staff-card__contacts span {
  color: var(--gray-600);
  font-size: 13px;
}

/* Footer */

.footer__top {
  padding: 72px 0 48px;
  background: var(--blue);
  color: var(--white);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 0.8fr;
  gap: 40px;
}

.footer__brand img {
  width: 96px;
  margin-bottom: 16px;
}

.footer__name {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
}

.footer__tagline {
  margin: 0;
  opacity: 0.85;
  font-size: 14px;
}

.footer__title {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--yellow);
}

.footer__list,
.footer__social {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__list li,
.footer__social li {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.footer a {
  color: var(--yellow);
}

.footer a:hover {
  color: var(--white);
}

.footer__bottom {
  padding: 20px 0;
  background: var(--gray-900);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__bottom p {
  margin: 0;
}

.footer__bottom a {
  color: rgba(255, 255, 255, 0.7);
}

.footer__bottom a:hover {
  color: var(--white);
}

/* Responsive */

@media (max-width: 1024px) {
  .cards--3 {
    grid-template-columns: 1fr;
  }

  .staff-grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header__burger {
    display: flex;
  }

  .header__nav {
    position: fixed;
    inset: var(--header-height) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 24px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  }

  .header__nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .header__menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .header__contacts {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
  }

  .calendar-overview {
    grid-template-columns: 1fr;
  }

  .calendar-events {
    grid-template-columns: 1fr;
  }

  .documents {
    grid-template-columns: 1fr;
  }

  .staff-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .staff-card__duties {
    text-align: left;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }
}
