:root {
  --ink: #071b3a;
  --navy: #082b61;
  --blue: #087197;
  --cyan: #00aeca;
  --green: #7ac30c;
  --yellow: #ffd23f;
  --paper: #f7fbfc;
  --soft: #eaf3f6;
  --line: #d5e5eb;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(7, 27, 58, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 12px clamp(18px, 5vw, 72px);
  background: rgba(247, 251, 252, 0.94);
  border-bottom: 1px solid rgba(213, 229, 235, 0.86);
  backdrop-filter: blur(18px);
}

.brand img {
  width: min(250px, 56vw);
  max-height: 58px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  color: #25415f;
  font-weight: 800;
}

.nav-links a {
  padding: 10px 0;
}

.nav-links a:hover {
  color: var(--cyan);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: clamp(46px, 8vw, 92px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.95) 0 44%, rgba(234, 243, 246, 0.9) 44% 100%),
    repeating-linear-gradient(90deg, rgba(0, 174, 202, 0.12) 0 1px, transparent 1px 88px);
}

.hero-content {
  max-width: 800px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2.5rem, 7vw, 5.9rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 16px 0 8px;
  font-size: 1.25rem;
}

.hero-copy {
  max-width: 680px;
  margin: 24px 0 0;
  color: #38556e;
  font-size: clamp(1.04rem, 2vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--cyan));
  box-shadow: 0 16px 34px rgba(0, 124, 158, 0.24);
}

.button.secondary {
  color: var(--navy);
  background: var(--white);
  border-color: var(--line);
}

.kid-button {
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 16px 34px rgba(255, 210, 63, 0.24);
}

.hero-panel {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 4vw, 30px);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-logo {
  width: 100%;
  max-height: 190px;
  margin-bottom: 12px;
  border-radius: 8px;
  object-fit: contain;
}

.quick-card {
  padding: 18px;
  background: linear-gradient(135deg, #ffffff, #eef8fa);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quick-card span,
.panel-kicker {
  display: block;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-card strong,
.quick-card small {
  display: block;
  margin-top: 6px;
}

.quick-card strong {
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.quick-card small {
  color: #4b647a;
  font-size: 0.98rem;
  font-weight: 800;
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.35fr 1fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 32px;
}

.section-heading.compact {
  max-width: 980px;
}

.panels {
  background: var(--white);
}

.featured-panels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.panel-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(7, 27, 58, 0.08);
}

.panel-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  cursor: zoom-in;
}

.panel-card div {
  padding: 18px;
}

.panel-card h3 {
  margin-top: 6px;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
}

.panel-card p:last-child {
  margin-bottom: 0;
  color: #4b647a;
}

.panel-card.is-star {
  border-color: rgba(255, 210, 63, 0.9);
  box-shadow: 0 22px 48px rgba(8, 43, 97, 0.16);
}

.star-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  padding: 8px 12px;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.gallery-block {
  margin-top: 38px;
}

.gallery-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.gallery-heading h3 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.gallery-heading a {
  color: var(--blue);
  font-weight: 800;
}

.image-rail {
  display: grid;
  grid-auto-columns: minmax(230px, 300px);
  grid-auto-flow: column;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x mandatory;
}

.image-rail img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(7, 27, 58, 0.08);
  cursor: zoom-in;
  scroll-snap-align: start;
}

.novakid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.9fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 14% 22%, rgba(255, 210, 63, 0.34), transparent 18%),
    radial-gradient(circle at 88% 12%, rgba(122, 195, 12, 0.28), transparent 20%),
    linear-gradient(135deg, #07306c 0%, #049bb4 100%);
}

.novakid .eyebrow {
  color: #d9ff6f;
}

.novakid h2 {
  font-family: "Baloo 2", Inter, Arial, sans-serif;
  font-size: clamp(2.5rem, 5.5vw, 5rem);
}

.novakid-copy p:not(.eyebrow) {
  max-width: 620px;
  color: #e9fbff;
  font-size: 1.14rem;
}

.novakid-art {
  padding: 16px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
}

.novakid-art img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  border-radius: 8px;
}

.missions {
  background: #f2fbff;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.mission-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(7, 27, 58, 0.08);
  cursor: zoom-in;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 260px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(7, 27, 58, 0.06);
}

.service-card p,
.contact-info p {
  color: #4b647a;
}

.icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--navy);
  border-radius: 8px;
  font-weight: 800;
}

.contact {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
  font-weight: 800;
}

.contact-list a,
.contact-list span {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.contact-list a {
  color: var(--navy);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 4vw, 30px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: #25415f;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfdfe;
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(0, 174, 202, 0.18);
  border-color: var(--cyan);
}

textarea {
  resize: vertical;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 26px clamp(18px, 5vw, 72px);
  background: var(--white);
  border-top: 1px solid var(--line);
}

.footer img {
  width: 210px;
}

.footer p {
  margin: 0;
  color: #4b647a;
  font-weight: 700;
}

.footer-copy {
  display: grid;
  gap: 8px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--blue);
  font-weight: 800;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(7, 27, 58, 0.86);
}

.image-modal.is-open {
  display: flex;
}

.image-modal img {
  max-width: min(96vw, 1180px);
  max-height: 90vh;
  object-fit: contain;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1120px) {
  .featured-panels,
  .mission-grid,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero,
  .section-heading,
  .novakid,
  .contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 74px;
  }

  .menu-button {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 74px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 14px;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .featured-panels,
  .mission-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .image-rail {
    grid-auto-columns: minmax(220px, 82vw);
  }
}
