:root {
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --text: #10223f;
  --brand: #223d9b;
  --shadow: 0 16px 50px rgba(10, 29, 73, 0.14);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background: url("/static/img/hero-photo.png") center top / cover no-repeat fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

.site-header {
  width: min(var(--container), calc(100% - 2rem));
  margin: 1rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0.75rem;
  z-index: 50;
  background: linear-gradient(120deg, #1a3f9f, #0f286e);
  border: 1px solid rgba(13, 35, 94, 0.35);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  box-shadow: 0 14px 26px rgba(10, 32, 96, 0.25);
}

.brand img {
  width: auto;
  height: 35px;
  filter: drop-shadow(0 2px 6px rgba(6, 15, 48, 0.35));
}

.site-header nav {
  display: flex;
  gap: 1.25rem;
}

.site-header nav a {
  font-weight: 700;
  font-size: 0.95rem;
  color: #f1f7ff;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  transition: all 220ms ease;
}

.site-header nav a:hover {
  background: rgba(235, 244, 255, 0.2);
}

main {
  width: min(var(--container), calc(100% - 2rem));
  margin: 2rem auto 0;
  padding-bottom: 3rem;
}

.section {
  margin: 1.8rem 0;
  padding: clamp(1.4rem, 2vw, 2rem);
  background: var(--surface);
  border: 1px solid rgba(25, 58, 135, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.section h1,
.section h2,
.section h3 {
  margin: 0;
  font-family: "Russo One", "Trebuchet MS", sans-serif;
  letter-spacing: 0.01em;
  color: #102d79;
}

.section h2 {
  font-size: clamp(1.55rem, 2vw, 2.2rem);
  margin-bottom: 0.9rem;
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  color: #4f71b5;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.3rem;
  align-items: stretch;
}

.hero::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -140px;
  top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(0, 160, 210, 0.33), transparent 65%);
  animation: pulse-glow 6s ease-in-out infinite;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  margin: 0;
  color: #132c72;
  line-height: 0.95;
}

.hero-subtitle {
  margin: 1rem 0 1.2rem;
  max-width: 62ch;
  color: #25385d;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.78rem 1.25rem;
  font-weight: 800;
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
  border: 1px solid transparent;
}

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

.button-primary {
  background: linear-gradient(120deg, var(--brand), #2f57cf);
  color: #fff;
  box-shadow: 0 9px 20px rgba(35, 65, 155, 0.28);
}

.button-primary:hover {
  box-shadow: 0 14px 24px rgba(26, 61, 163, 0.35);
}

.button-outline {
  border-color: rgba(27, 62, 152, 0.3);
  color: #1c3785;
  background: rgba(255, 255, 255, 0.62);
}

.hero-card {
  position: relative;
  z-index: 1;
  background: linear-gradient(170deg, rgba(248, 252, 255, 0.95), rgba(219, 234, 255, 0.84));
  border: 1px solid rgba(28, 70, 166, 0.18);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 180ms ease;
}

.hero-gallery {
  padding: 0;
}

.hero-slider {
  position: relative;
  height: 100%;
  min-height: 360px;
}

.hero-slides {
  position: relative;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 320ms ease, visibility 320ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide img {
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 360px;
  height: 100%;
  object-fit: cover;
}

.hero-slider-controls {
  position: absolute;
  inset: auto 1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  z-index: 2;
}

.slider-button {
  width: 2.8rem;
  height: 2.8rem;
  border: 0;
  border-radius: 999px;
  background: rgba(10, 32, 96, 0.74);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(7, 18, 54, 0.24);
  transition: transform 180ms ease, background-color 180ms ease;
}

.slider-button:hover {
  transform: translateY(-2px);
  background: rgba(18, 48, 136, 0.92);
}

.slider-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 8px 18px rgba(13, 31, 85, 0.16);
}

.slider-dot {
  width: 0.72rem;
  height: 0.72rem;
  border: 0;
  border-radius: 50%;
  background: rgba(31, 66, 151, 0.28);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease;
}

.slider-dot.is-active {
  background: #1f4bc1;
  transform: scale(1.15);
}

.two-column {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
}

.panel {
  background: var(--surface-strong);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 64, 146, 0.14);
  padding: 1.1rem;
}

.panel p {
  margin-top: 0.5rem;
  color: #2d4068;
  line-height: 1.55;
}

.profile-copy p + p {
  margin-top: 1rem;
}

.accent {
  background:
    linear-gradient(170deg, rgba(223, 239, 255, 0.75), rgba(235, 250, 255, 0.95)),
    #fff;
}

.leader-panel {
  display: flex;
  align-items: stretch;
}

.leader-figure {
  width: 100%;
  margin: 0;
}

.leader-portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(14, 45, 114, 0.16);
}

.leader-figure figcaption {
  margin-top: 0.9rem;
  color: #1e3c8b;
}

.leader-role {
  display: block;
  font-weight: 800;
}

.leader-name {
  display: block;
  margin-top: 0.35rem;
  font-size: 1rem;
  line-height: 1.4;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

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

.service-intro {
  max-width: 62ch;
  margin: 0 0 1rem;
  color: #233b67;
  line-height: 1.6;
}

.service-card {
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(175deg, rgba(255, 255, 255, 0.95), rgba(231, 242, 255, 0.9));
  border: 1px solid rgba(31, 67, 152, 0.14);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(14, 45, 114, 0.18);
}

.service-card h3 {
  font-size: 1.03rem;
  margin-bottom: 0.6rem;
}

.service-card p {
  margin: 0;
  color: #344c7e;
  line-height: 1.5;
}

.service-note {
  margin-top: 1rem;
  padding: 1.15rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(175deg, rgba(17, 48, 123, 0.94), rgba(31, 79, 177, 0.92));
  border: 1px solid rgba(24, 63, 150, 0.18);
}

.service-note p {
  margin: 0;
  color: #eef5ff;
  line-height: 1.65;
}

.registry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.registry-item {
  display: flex;
  flex-direction: column;
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(28, 69, 152, 0.12);
  background: #fff;
  min-height: 95px;
}

.registry-item-wide {
  grid-column: span 2;
}

.registry-item span {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5470a7;
  margin-bottom: 0.4rem;
}

.registry-item strong {
  color: #19387d;
  line-height: 1.35;
}

.contacts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.contact-meta h2 {
  max-width: 26ch;
  line-height: 1.15;
}

.contact-note {
  max-width: 62ch;
  margin: 0.45rem 0 0;
  font-size: 1rem;
  font-weight: 500;
  color: #3c5180;
  line-height: 1.5;
}

.address {
  margin: 0.9rem 0;
  color: #1f3f82;
  line-height: 1.55;
  max-width: 66ch;
}

.phone-link {
  font-weight: 800;
  color: #173d9f;
  display: block;
  margin-bottom: 0.25rem;
}

.mail-link {
  font-weight: 800;
  color: #173d9f;
  display: block;
  margin-bottom: 0.65rem;
}

.site-footer {
  margin-top: 1rem;
  padding: 1.4rem 1rem 2.5rem;
  background: linear-gradient(180deg, #1a2f73, #0d1f53);
  color: #e5efff;
  text-align: center;
}

.site-footer img {
  width: 130px;
  margin: 0 auto 0.7rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 720ms ease, transform 720ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse-glow {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translate3d(-12px, 6px, 0) scale(1.08);
    opacity: 0.55;
  }
}

@media (max-width: 1024px) {
  .hero,
  .two-column,
  .contacts {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .site-header {
    border-radius: 18px;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    position: static;
  }

  .site-header nav {
    width: 100%;
    justify-content: space-between;
  }

  .section {
    border-radius: 18px;
  }

  .cards-grid,
  .registry-grid {
    grid-template-columns: 1fr;
  }

  .registry-item-wide {
    grid-column: auto;
  }

  .hero-card img {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .brand img {
    height: 40px;
  }
}
