:root {
  --ink: #172234;
  --muted: #657386;
  --blue: #1c5f9c;
  --blue-dark: #123b66;
  --blue-deep: #0d2f55;
  --gold: #c59a35;
  --gold-soft: #f4ead2;
  --paper: #f5f7fa;
  --white: #ffffff;
  --line: rgba(23, 34, 52, 0.12);
  --shadow: 0 20px 50px rgba(13, 47, 85, 0.12);
  --radius: 18px;
  font-family: "Georgia", "Times New Roman", "Segoe UI", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(13, 47, 85, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #f4f7fb 0%, #ffffff 46%, #f7f8fa 100%);
  background-size: 28px 28px, auto;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

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

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.skip-link:focus {
  z-index: 20;
  width: auto;
  height: auto;
  clip: auto;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--white);
}

.topline {
  background: var(--blue-deep);
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.topline__inner,
.navbar__inner,
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topline__inner {
  min-height: 40px;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--gold);
}

.navbar__inner {
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: var(--white);
  background: var(--blue-dark);
  border: 2px solid var(--gold);
  border-radius: 50%;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(13, 47, 85, 0.2);
}

.brand__text {
  display: grid;
  line-height: 1.2;
}

.brand__text strong {
  font-size: 16px;
  font-family: "Segoe UI", sans-serif;
}

.brand__text span {
  color: var(--muted);
  font-size: 14px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu a {
  display: block;
  padding: 10px 12px;
  color: var(--muted);
  border-radius: 999px;
  font-weight: 700;
  font-family: "Segoe UI", sans-serif;
}

.menu a:hover,
.menu a:focus {
  color: var(--blue-dark);
  background: var(--gold-soft);
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--blue-dark);
  border-radius: 8px;
  padding: 10px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px;
  background: var(--white);
}

.section {
  padding: 88px 0;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 72px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.72)),
    linear-gradient(135deg, rgba(18, 59, 102, 0.06), rgba(197, 154, 53, 0.08));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 10% -10% auto auto;
  width: 42vw;
  height: 42vw;
  background: repeating-linear-gradient(135deg, rgba(197, 154, 53, 0.16) 0 2px, transparent 2px 18px);
  border-radius: 50%;
  pointer-events: none;
}

.hero__grid,
.split,
.achievements__grid,
.contacts__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-family: "Georgia", "Times New Roman", serif;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-family: "Georgia", "Times New Roman", serif;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.2;
}

.hero__lead {
  max-width: 620px;
  color: var(--muted);
  font-size: 20px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  font-family: "Segoe UI", sans-serif;
}

.button--primary {
  color: var(--white);
  background: var(--blue-dark);
  box-shadow: 0 14px 28px rgba(13, 47, 85, 0.2);
}

.button--ghost {
  color: var(--blue-dark);
  background: var(--white);
  border: 1px solid rgba(197, 154, 53, 0.42);
}

.hero__media {
  position: relative;
}

.hero__media img,
.feature-card img,
.gallery__grid img {
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.hero__media img {
  aspect-ratio: 4 / 3;
  border: 8px solid var(--white);
  border-bottom: 8px solid var(--gold);
  border-radius: 18px;
}

.hero__badge {
  position: absolute;
  right: -12px;
  bottom: 28px;
  display: grid;
  min-width: 150px;
  padding: 18px;
  color: var(--white);
  background: var(--blue-deep);
  border: 3px solid var(--gold);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.hero__badge strong {
  font-size: 42px;
  line-height: 1;
}

.quick-info {
  padding: 34px 0 16px;
}

.quick-info__grid,
.cards,
.service-grid,
.gallery__grid {
  display: grid;
  gap: 20px;
}

.quick-info__grid {
  grid-template-columns: repeat(3, 1fr);
}

.quick-info article,
.news-card,
.contact-card,
.feature-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(13, 47, 85, 0.08);
}

.quick-info article {
  padding: 24px;
}

.quick-info__icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 18px;
  color: var(--blue-deep);
  background: var(--gold-soft);
  border: 1px solid rgba(197, 154, 53, 0.48);
  border-radius: 50%;
  font-weight: 900;
}

.quick-info p,
.news-card p,
.section-heading p,
.split p,
.contacts p {
  color: var(--muted);
}

.about {
  background: linear-gradient(180deg, transparent, rgba(18, 59, 102, 0.06));
}

.feature-card {
  overflow: hidden;
}

.feature-card img {
  aspect-ratio: 16 / 10;
  border-radius: 0;
  box-shadow: none;
}

.feature-card div {
  padding: 24px;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading--left {
  margin: 0;
  text-align: left;
}

.cards {
  grid-template-columns: repeat(3, 1fr);
}

.news-card {
  padding: 26px;
}

.news-card span {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 6px 10px;
  color: var(--blue-dark);
  background: var(--gold-soft);
  border: 1px solid rgba(197, 154, 53, 0.35);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.achievements {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(13, 47, 85, 0.95), rgba(23, 34, 52, 0.94)),
    url("img/school-3.jpg") center / cover;
}

.achievements .eyebrow,
.achievements p {
  color: rgba(255, 255, 255, 0.78);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stats div {
  min-height: 170px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

.stats strong {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 52px;
  line-height: 1;
}

.service-grid {
  grid-template-columns: repeat(6, 1fr);
}

.service-grid a {
  padding: 22px 14px;
  text-align: center;
  color: var(--blue-dark);
  background: var(--white);
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--gold);
  border-radius: 14px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(13, 47, 85, 0.06);
  font-family: "Segoe UI", sans-serif;
}

.gallery {
  padding-top: 24px;
}

.gallery__grid {
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  grid-auto-rows: 230px;
}

.gallery__grid img {
  height: 100%;
  border-radius: 14px;
}

.gallery__grid img:first-child {
  grid-row: span 2;
}

.contacts {
  background: var(--paper);
}

.contact-card {
  display: grid;
  gap: 10px;
  padding: 30px;
  font-style: normal;
}

.contact-card strong {
  font-size: 20px;
}

.contact-card a {
  color: var(--blue-dark);
  font-weight: 900;
}

.site-footer {
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.78);
  background: var(--blue-deep);
  border-top: 4px solid var(--gold);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--white);
  font-weight: 900;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-block;
  }

  .menu {
    position: absolute;
    inset: 84px 16px auto;
    display: none;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

  .menu.is-open {
    display: grid;
  }

  .hero__grid,
  .split,
  .achievements__grid,
  .contacts__grid,
  .quick-info__grid,
  .cards {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .topline__inner,
  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand__text {
    max-width: 210px;
  }

  .section {
    padding: 60px 0;
  }

  .hero {
    padding-top: 44px;
  }

  .hero__actions,
  .stats,
  .service-grid,
  .gallery__grid {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    display: grid;
  }

  .hero__badge {
    right: 12px;
    bottom: 12px;
  }

  .gallery__grid {
    grid-auto-rows: 220px;
  }

  .gallery__grid img:first-child {
    grid-row: span 1;
  }
}
