:root {
  --bg: #edf3fa;
  --bg-deep: #d9e7f6;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-solid: #fbfdff;
  --text: #003c6e;
  --muted: #003c6e;
  --brand: #003c6e;
  --brand-dark: #022b4e;
  --accent: #37a6ff;
  --border: rgba(0, 60, 110, 0.2);
  --shadow: 0 16px 45px rgba(8, 39, 71, 0.15);
  --flow-text-size: 1.14rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 148px;
}

body {
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  color: #003c6e;
  background:
    radial-gradient(circle at 15% 12%, rgba(55, 166, 255, 0.28), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(0, 60, 110, 0.24), transparent 30%),
    linear-gradient(145deg, var(--bg) 0%, var(--bg-deep) 100%);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 0 clamp(1rem, 3vw, 2.8rem) 2rem;
  overflow-x: hidden;
}

.bg-shape {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(24px);
}

.bg-shape-a {
  width: 280px;
  height: 280px;
  background: rgba(55, 166, 255, 0.24);
  top: -80px;
  right: -70px;
}

.bg-shape-b {
  width: 320px;
  height: 320px;
  background: rgba(0, 60, 110, 0.2);
  bottom: -120px;
  left: -110px;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  z-index: 20;
}

.site-header {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: #ffffff;
  padding: 1.2rem 1.2rem;
  min-height: 132px;
  position: sticky;
  top: 0;
  box-shadow: 0 6px 18px rgba(8, 39, 71, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  width: auto;
  flex: 1;
  min-width: 0;
  gap: 1rem;
}

.brand-home {
  display: inline-flex;
  text-decoration: none;
}

.brand-logo {
  height: 68px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-claim {
  margin: 0;
  flex: 1;
  max-width: none;
  color: #003c6e;
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  font-size: clamp(1rem, 1.55vw, 1.45rem);
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
}

.header-actions {
  position: relative;
  display: flex;
  align-items: flex-start;
}

.burger-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(0, 60, 110, 0.24);
  border-radius: 8px;
  background: #ffffff;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.burger-toggle span {
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: #003c6e;
  display: block;
}

.section-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(0, 60, 110, 0.24);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(8, 22, 38, 0.2);
  padding: 0.35rem;
  z-index: 12;
}

.section-menu[hidden] {
  display: none;
}

.section-menu a {
  color: #003c6e;
  text-decoration: none;
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
}

.section-menu a:hover,
.section-menu a:focus-visible {
  background: #edf3fa;
}

main {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1rem, 2vw, 1.7rem);
}

.hero {
  --hero-pad: clamp(1.2rem, 4vw, 3rem);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.93), rgba(237, 245, 255, 0.85));
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: var(--shadow);
  padding: var(--hero-pad);
  grid-column: 1 / -1;
}

.hero-header {
  position: relative;
  width: auto;
  margin-left: calc(-1 * var(--hero-pad));
  margin-right: calc(-1 * var(--hero-pad));
  margin-top: calc(-1 * var(--hero-pad));
  margin-bottom: 1.2rem;
}

.header-image {
  width: 100%;
  height: min(38vw, 440px);
  min-height: 220px;
  object-fit: cover;
  display: block;
}

.header-caption {
  position: absolute;
  right: clamp(0.6rem, 2vw, 1.4rem);
  bottom: clamp(0.6rem, 2vw, 1.3rem);
  margin: 0;
  max-width: min(560px, 58%);
  background: rgba(255, 255, 255, 0.95);
  color: #003c6e;
  padding: 0.7rem 0.9rem;
  line-height: 1.45;
  font-size: var(--flow-text-size);
  border: 1px solid rgba(0, 60, 110, 0.2);
  box-shadow: 0 8px 20px rgba(8, 39, 71, 0.15);
}

.eyebrow {
  margin: 0;
  color: #003c6e;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.78rem;
}

h1 {
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  margin: 0.6rem 0 1rem;
  line-height: 0.95;
  font-size: clamp(2rem, 7vw, 4.35rem);
  color: #003c6e;
}

.lead {
  margin: 0;
  max-width: 58ch;
  color: #003c6e;
  font-size: clamp(1rem, 1.9vw, 1.2rem);
  line-height: 1.55;
}

.portfolio-block {
  margin-top: 1.1rem;
}

.portfolio-block,
.services-block,
.approach-block,
.operations-block,
.cta-group,
.contact-block {
  padding: 0.9rem 1rem 1.1rem;
  border: 1px solid rgba(0, 60, 110, 0.18);
  border-radius: 8px;
  position: relative;
  padding-bottom: 2rem;
}

.portfolio-block {
  background: #ffffff;
}

.services-block {
  background: #f1f6fc;
}

.approach-block {
  background: #e9f0f8;
}

.operations-block {
  background: #ffffff;
}

.cta-group {
  background: #f3f7fc;
}

.contact-block {
  margin-top: 1.35rem;
  background: #ffffff;
}

.portfolio-title {
  margin: 1.65rem 0 0.55rem;
  font-size: 1.34rem;
  color: #003c6e;
  letter-spacing: 0.01em;
  text-align: center;
}

.portfolio-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  align-items: stretch;
}

.portfolio-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

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

.portfolio-grid-main {
  flex: 1;
  grid-auto-rows: 1fr;
}

.portfolio-grid-main .portfolio-item {
  min-height: 0;
  background: #9eb2c3;
}

.portfolio-grid-ancillary .portfolio-item {
  background: #ecf1f4;
}

.portfolio-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid rgba(0, 60, 110, 0.24);
  background: rgba(255, 255, 255, 0.9);
  color: #003c6e;
  font-size: 1.24rem;
  font-weight: 700;
  border-radius: 6px;
}

.portfolio-text {
  margin: 0 0 0.5rem;
  color: #003c6e;
  line-height: 1.5;
  text-align: center;
  font-weight: 700;
  font-style: italic;
}

.portfolio-copy {
  margin: 0.9rem 0 0;
  color: #003c6e;
  line-height: 1.5;
  font-size: var(--flow-text-size);
  text-align: center;
}

.portfolio-copy-lead {
  display: block;
  text-align: center;
  font-size: 1.14rem;
  font-weight: 400;
  line-height: 1.35;
}

.portfolio-copy-contact-lead {
  display: block;
  font-size: var(--flow-text-size);
  font-weight: 400;
  margin-top: 0.35rem;
  margin-bottom: 0.7rem;
}

.portfolio-help {
  display: block;
  margin-top: 0.7rem;
  font-weight: 600;
}

.services-block {
  margin-top: 1.35rem;
}

.services-title {
  margin: 1.65rem 0 0.7rem;
  font-size: 1.34rem;
  color: #003c6e;
  letter-spacing: 0.01em;
  text-align: center;
}

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

.service-card {
  border: 1px solid rgba(0, 60, 110, 0.2);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.8rem 0.85rem;
  border-radius: 6px;
}

.service-card h3 {
  margin: 0;
  color: #003c6e;
  font-size: var(--flow-text-size);
}

.service-card p {
  margin: 0.35rem 0 0;
  color: #003c6e;
  font-size: var(--flow-text-size);
  line-height: 1.45;
}

.services-note {
  margin: 0.75rem 0 0;
  color: #003c6e;
  font-size: var(--flow-text-size);
  text-align: center;
}

.approach-block {
  margin-top: 1.35rem;
}

.approach-title-wrap {
  display: block;
  margin-bottom: 1rem;
}

.approach-title {
  margin: 1.65rem 0 0;
  color: #003c6e;
  font-size: 1.34rem;
  letter-spacing: 0.01em;
  text-align: center;
}

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

.approach-card {
  border: none;
  background: transparent;
  padding: 0.8rem 0.85rem;
  border-radius: 6px;
}

.approach-card h3 {
  margin: 0 auto;
  color: #003c6e;
  font-size: var(--flow-text-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 6px solid rgba(0, 60, 110, 0.28);
  border-radius: 50% / 48%;
  min-width: 230px;
  min-height: 74px;
  padding: 0.9rem 1.5rem;
  position: relative;
  text-align: center;
  line-height: 1.15;
}

.approach-card h3::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -16px;
  border-width: 14px 11px 0 11px;
  border-style: solid;
  border-color: rgba(0, 60, 110, 0.28) transparent transparent transparent;
}

.approach-card h3::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -9px;
  border-width: 9px 7px 0 7px;
  border-style: solid;
  border-color: #ffffff transparent transparent transparent;
}

.approach-card p {
  margin: 0.5rem 0 0;
  color: #003c6e;
  font-size: var(--flow-text-size);
  line-height: 1.45;
}

.operations-block {
  margin-top: 1.35rem;
}

.operations-title {
  margin: 1.65rem 0 0.7rem;
  font-size: 1.34rem;
  color: #003c6e;
  letter-spacing: 0.01em;
  text-align: center;
}

.operations-image {
  width: 100%;
  display: block;
  border-radius: 6px;
  border: 1px solid rgba(0, 60, 110, 0.2);
}

.operations-copy {
  margin: 0.7rem 0 0;
  text-align: center;
  color: #003c6e;
  line-height: 1.4;
  font-size: 1.2rem;
  font-weight: 700;
}

.cta-group {
  margin-top: clamp(1.2rem, 2vw, 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.opening-title {
  margin: 1.65rem 0 0;
  font-size: 1.34rem;
  color: #003c6e;
  letter-spacing: 0.01em;
  text-align: center;
}

.contact-title {
  margin: 1.65rem 0 0.7rem;
  font-size: 1.34rem;
  color: #003c6e;
  letter-spacing: 0.01em;
  text-align: center;
}

.contact-copy {
  margin: 0;
  text-align: center;
  color: #003c6e;
  font-size: var(--flow-text-size);
  line-height: 1.5;
}

.section-back-to-top {
  display: inline-block;
  margin: 0;
  color: #003c6e;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1;
  font-weight: 600;
  padding: 0.08rem 0.12rem;
  transition: color 160ms ease, transform 160ms ease;
  position: absolute;
  right: 0.7rem;
  bottom: 0.5rem;
}

.section-back-to-top:hover,
.section-back-to-top:focus-visible {
  transform: translateY(-1px);
  color: #003c6e;
}

.info-card h2 {
  margin: 0;
  color: #003c6e;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.opening-text {
  margin: 0;
  text-align: center;
  color: #003c6e;
  font-size: var(--flow-text-size);
  line-height: 1.45;
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 0.72rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(8, 39, 71, 0.2);
}

.btn-primary {
  background: linear-gradient(130deg, #003c6e, #1a76b8);
  color: #f4fbff;
}

.btn-secondary {
  border: 1px solid rgba(0, 60, 110, 0.35);
  color: #003c6e;
  background: #ffffffc9;
}

.info-grid {
  display: grid;
  gap: 1rem;
}

.info-card {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(2px);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
}

.info-card h2 {
  margin: 0;
  color: #003c6e;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.info-card p {
  margin: 0.45rem 0 0;
  font-size: var(--flow-text-size);
  line-height: 1.55;
  color: #003c6e;
}

.plain-list {
  margin: 0.55rem 0 0;
  padding-left: 1.05rem;
  font-size: var(--flow-text-size);
  color: #003c6e;
}

.plain-list li {
  margin-bottom: 0.34rem;
  line-height: 1.45;
}

.site-footer {
  width: min(1120px, 100%);
  margin: 0 auto;
  border-top: 1px solid rgba(0, 60, 110, 0.2);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  color: #003c6e;
  font-size: var(--flow-text-size);
}

.site-footer p {
  margin: 0;
}

.legal-overlay[hidden] {
  display: none;
}

.legal-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
}

.legal-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 22, 38, 0.62);
}

.legal-overlay-panel {
  position: relative;
  width: min(820px, calc(100% - 2rem));
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  margin: 2rem auto;
  background: #ffffff;
  color: #003c6e;
  border: 1px solid rgba(0, 60, 110, 0.22);
  border-radius: 10px;
  box-shadow: 0 22px 54px rgba(8, 22, 38, 0.32);
  padding: 1.2rem 1.1rem 1.3rem;
}

.legal-overlay-panel h2 {
  margin: 0 0 0.85rem;
  color: #003c6e;
}

.legal-overlay-panel h3 {
  margin: 0.95rem 0 0.4rem;
  color: #003c6e;
}

.legal-overlay-panel p {
  margin: 0;
  color: #003c6e;
  font-size: var(--flow-text-size);
  line-height: 1.5;
}

.legal-overlay-close {
  position: absolute;
  right: 0.6rem;
  top: 0.5rem;
  border: 1px solid rgba(0, 60, 110, 0.25);
  background: #ffffff;
  color: #003c6e;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 550ms ease, transform 550ms ease;
}

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

@media (max-width: 900px) {
  html {
    scroll-padding-top: 130px;
  }

  body {
    padding: 0 1rem 1rem;
  }

  .site-header {
    align-items: center;
    justify-content: space-between;
    min-height: 118px;
  }

  .brand-logo {
    height: 52px;
  }

  .brand {
    align-items: center;
    flex-wrap: wrap;
  }

  .header-actions {
    align-self: flex-start;
  }

  .brand-claim {
    flex: 1 1 100%;
    font-size: clamp(0.92rem, 3.4vw, 1.1rem);
    line-height: 1.25;
    text-align: center;
  }

  main {
    margin-top: 0;
    grid-template-columns: 1fr;
  }

  .hero,
  .info-card {
    background: var(--surface-solid);
  }

  .header-image {
    height: 42vw;
    min-height: 180px;
  }

  .portfolio-layout {
    grid-template-columns: 1fr;
  }

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

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

  .portfolio-item {
    min-height: 38px;
    font-size: 1.14rem;
  }

  .header-caption {
    max-width: 78%;
    padding: 0.55rem 0.7rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
