:root {
  --bg: #eef4ff;
  --bg-deep: #081b44;
  --surface: #ffffff;
  --surface-soft: #f7faff;
  --ink: #0d1f44;
  --ink-soft: #5f6f91;
  --line: #d9e4fb;
  --primary: #3368c6;
  --primary-dark: #234d9b;
  --accent: #d6515d;
  --shadow: 0 24px 60px rgba(7, 26, 70, 0.14);
  --shadow-soft: 0 18px 42px rgba(7, 26, 70, 0.1);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(79, 128, 216, 0.14), transparent 32%),
    radial-gradient(circle at top right, rgba(214, 81, 93, 0.08), transparent 22%),
    var(--bg);
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.shell {
  width: min(1280px, calc(100% - 2rem));
  max-width: 100%;
  margin: 0 auto;
}

.topbar {
  background: rgba(4, 17, 45, 0.98);
  color: #dfe7ff;
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.9rem 0;
  font-size: 0.94rem;
}

.topbar-links,
.topbar-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

.topbar-links a:hover {
  color: #ffffff;
}

.site-header {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(7, 25, 68, 0.88), rgba(21, 60, 129, 0.74)),
    var(--hero-image) center / cover no-repeat;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 30%),
    radial-gradient(circle at bottom right, rgba(214, 81, 93, 0.16), transparent 28%);
}

.site-header::after {
  content: "";
  position: absolute;
  right: -2rem;
  bottom: 1.5rem;
  width: min(460px, 34vw);
  height: 190px;
  background: url("img/labsky-footer.png") right center / contain no-repeat;
  opacity: 0.16;
  pointer-events: none;
}

.site-header > * {
  position: relative;
  z-index: 1;
}

.nav-shell {
  width: min(1460px, calc(100% - 1rem));
  max-width: 100%;
  padding: 1.25rem 0 0;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  max-width: 100%;
}

.brand-mark {
  width: 74px;
  height: 74px;
  padding: 0.85rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.brand-copy {
  min-width: 0;
}

.brand-copy strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.brand-copy span {
  display: block;
  margin-top: 0.35rem;
  color: rgba(239, 244, 255, 0.78);
  font-size: 0.96rem;
}

.nav-toggle {
  display: none;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 700;
}

.nav-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
  width: 100%;
  max-width: 100%;
  padding: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(12px);
}

.nav-links {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 0.18rem;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}

.nav-links a {
  padding: 0.7rem 0.72rem;
  border-radius: 999px;
  color: rgba(246, 250, 255, 0.92);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: #ffffff;
  color: var(--bg-deep);
  transform: translateY(-1px);
}

.header-cta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff, #edf4ff);
  color: var(--bg-deep);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.header-cta:hover {
  background: #ffffff;
}

.hero {
  padding: clamp(2.4rem, 4vw, 3rem) 0 5.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 2rem;
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(241, 246, 255, 0.9);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.hero h1 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.5rem, 6vw, 4.9rem);
  line-height: 1.06;
  letter-spacing: 0.01em;
}

.hero-copy {
  max-width: 42rem;
  margin: 1.2rem 0 0;
  color: rgba(242, 246, 255, 0.88);
  font-size: 1.07rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 52px;
  padding: 0.95rem 1.35rem;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #4f81d8);
  color: #ffffff;
  box-shadow: 0 16px 35px rgba(51, 104, 198, 0.26);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.btn-light {
  background: var(--surface-soft);
  color: var(--ink);
  border: 1px solid var(--line);
}

.hero-card,
.glass-card {
  padding: 1.65rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.hero-card h2,
.glass-card h2 {
  margin: 0;
  color: #ffffff;
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
}

.hero-card p,
.glass-card p {
  margin: 0.8rem 0 0;
  color: rgba(241, 246, 255, 0.8);
}

.fact-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.2rem;
}

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

.fact-card {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.fact-card strong,
.fact-card span {
  display: block;
}

.fact-card strong {
  color: #ffffff;
  font-size: 1.02rem;
}

.fact-card span {
  margin-top: 0.25rem;
  color: rgba(241, 246, 255, 0.76);
  font-size: 0.92rem;
}

main {
  margin-top: 0;
  padding: 1.75rem 0 4.5rem;
}

.surface-stack {
  display: grid;
  gap: 1.75rem;
  min-width: 0;
}

.panel {
  padding: clamp(1.65rem, 3vw, 2.35rem);
  border: 1px solid rgba(51, 104, 198, 0.08);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  min-width: 0;
}

.section-heading {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.15;
}

.section-heading .lead,
.lead {
  margin: 0;
  color: var(--ink-soft);
  max-width: 50rem;
}

.kicker {
  margin: 0;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.grid {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
}

.cards-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.cards-3 {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.cards-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.service-card,
.info-card,
.download-card,
.person-card,
.figure-card,
.contact-card {
  position: relative;
  height: 100%;
  min-width: 0;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: var(--shadow-soft);
}

.service-card::before,
.info-card::before,
.download-card::before {
  content: "";
  position: absolute;
  top: 1.15rem;
  left: 1.15rem;
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding-top: 2.05rem;
}

.service-index {
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.service-card h3,
.info-card h3,
.download-card h3,
.person-card h3,
.figure-card h3,
.contact-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  line-height: 1.2;
}

.service-card p,
.info-card p,
.download-card p,
.figure-card p,
.contact-card p,
.person-card p {
  margin: 0;
  color: var(--ink-soft);
}

.card-link {
  margin-top: auto;
  color: var(--primary);
  font-weight: 700;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 1.6rem;
  align-items: start;
  min-width: 0;
}

.mosaic-section {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  gap: 1.6rem;
  align-items: start;
  min-width: 0;
}

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

.mosaic-photo {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: var(--shadow-soft);
}

.mosaic-photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.mosaic-feature {
  grid-row: span 2;
}

.mosaic-feature img {
  height: 100%;
  min-height: 460px;
}

.support-panel .bullet-list {
  margin-top: 0;
}

.rich-text > *:first-child,
.list-stack > *:first-child {
  margin-top: 0;
}

.rich-text p,
.rich-text ul,
.rich-text ol,
.list-stack p,
.list-stack ul,
.list-stack ol {
  margin: 1rem 0 0;
  color: var(--ink-soft);
}

.rich-text strong,
.list-stack strong {
  color: var(--ink);
}

.rich-text ul,
.rich-text ol,
.bullet-list {
  padding-left: 1.2rem;
}

.bullet-list {
  margin: 0.8rem 0 0;
  color: var(--ink-soft);
}

.bullet-list li + li {
  margin-top: 0.55rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  min-width: 0;
}

.stat-block {
  padding: 1.1rem 1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0e224f, #1f4d9a);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.stat-block strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
}

.stat-block span {
  display: block;
  margin-top: 0.35rem;
  color: rgba(240, 245, 255, 0.8);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1rem;
  min-width: 0;
  margin-bottom: 1rem;
}

.figure-card {
  padding: 1rem;
}

.figure-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: calc(var(--radius-md) - 6px);
}

.figure-card figcaption {
  margin-top: 0.9rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  min-width: 0;
}

.person-card {
  overflow: hidden;
  padding: 0;
}

.person-photo {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center top;
}

.person-copy {
  padding: 1.35rem;
}

.person-role {
  margin: 0 0 0.55rem;
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  gap: 1.5rem;
  min-width: 0;
}

.contact-stack {
  display: grid;
  gap: 1rem;
}

.contact-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.8rem;
}

.contact-item {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.contact-item strong,
.contact-item span {
  display: block;
}

.contact-item strong {
  color: var(--ink);
}

.contact-item span,
.contact-item a {
  color: var(--ink-soft);
}

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

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(51, 104, 198, 0.14);
}

.form-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.cta-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(8, 27, 68, 0.96), rgba(51, 104, 198, 0.9)),
    url("img/labsky-hero-3.jpg") center / cover no-repeat;
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: hidden;
}

.cta-banner h2 {
  margin: 0;
  color: #ffffff;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.cta-banner p {
  margin: 0.7rem 0 0;
  color: rgba(241, 246, 255, 0.82);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.site-footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #dce5ff;
  background:
    linear-gradient(180deg, #09193f, #071534),
    url("img/labsky-hero-2.jpg") center / cover no-repeat;
}

.site-footer::before {
  content: "";
  position: absolute;
  right: -1rem;
  top: 1rem;
  width: min(420px, 34vw);
  height: 180px;
  background: url("img/labsky-footer.png") right top / contain no-repeat;
  opacity: 0.14;
  pointer-events: none;
}

.site-footer > * {
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(180px, 1fr));
  gap: 1.5rem;
  padding: 3rem 0;
  min-width: 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-brand img {
  width: 56px;
  height: 56px;
  padding: 0.7rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.footer-brand strong {
  display: block;
  color: #ffffff;
  font-family: "Playfair Display", serif;
  font-size: 1.45rem;
}

.footer-copy {
  margin: 1rem 0 0;
  color: rgba(220, 229, 255, 0.8);
}

.footer-col h3 {
  margin: 0 0 0.85rem;
  color: #ffffff;
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  color: rgba(220, 229, 255, 0.8);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding: 0 0 1.4rem;
  color: rgba(220, 229, 255, 0.66);
  font-size: 0.92rem;
}

.hero-grid > *,
.split-layout > *,
.mosaic-section > *,
.contact-grid > *,
.template-mosaic > *,
.footer-inner > *,
.people-grid > *,
.media-grid > *,
.stat-strip > *,
.grid > *,
.topbar-inner > * {
  min-width: 0;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

  .nav-panel {
    display: none;
    flex-direction: column;
    grid-template-columns: 1fr;
    align-items: stretch;
    border-radius: 24px;
    padding: 1rem;
  }

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

  .nav-links {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links a {
    width: 100%;
  }

  .header-cta {
    width: 100%;
  }

  .hero-grid,
  .mosaic-section,
  .split-layout,
  .contact-grid,
  .cta-banner,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .site-header::after,
  .site-footer::before {
    display: none;
  }

  .hero {
    padding-bottom: 4.5rem;
  }
}

@media (min-width: 1320px) {
  .nav-panel {
    display: grid !important;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .shell {
    width: min(1280px, calc(100% - 1.2rem));
  }

  .brand {
    align-items: flex-start;
  }

  .brand-mark {
    width: 62px;
    height: 62px;
    padding: 0.75rem;
    border-radius: 18px;
  }

  .brand-copy strong {
    font-size: 1.2rem;
  }

  .topbar-inner {
    font-size: 0.88rem;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 11vw, 3.3rem);
  }

  .hero-card,
  .glass-card,
  .panel {
    padding: 1.2rem;
  }

  .fact-grid.compact,
  .stat-strip,
  .cards-3,
  .cards-4,
  .media-grid,
  .template-mosaic,
  .people-grid {
    grid-template-columns: 1fr;
  }

  .mosaic-feature img,
  .mosaic-photo img {
    min-height: 0;
    height: 260px;
  }

  .person-photo {
    height: 260px;
  }

  main {
    padding-top: 1rem;
  }
}
