:root {
  --bg-0: #060b15;
  --bg-1: #0a1221;
  --bg-2: #0e1930;
  --surface: rgba(16, 28, 50, 0.64);
  --surface-strong: rgba(20, 34, 62, 0.86);
  --line: rgba(157, 181, 227, 0.24);
  --line-bright: rgba(165, 226, 255, 0.35);
  --text: #ebf2ff;
  --text-soft: #a7badc;
  --accent: #67d8ff;
  --accent-2: #8a8bff;
  --success: #95efc3;
  --warning: #ffd7a4;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 28px 60px rgba(2, 8, 20, 0.45);
  --shadow-soft: 0 16px 36px rgba(3, 9, 23, 0.3);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  background: radial-gradient(1100px 700px at 85% -12%, rgba(103, 216, 255, 0.08), transparent 56%),
    radial-gradient(960px 620px at -5% 3%, rgba(138, 139, 255, 0.11), transparent 58%),
    linear-gradient(160deg, var(--bg-0), var(--bg-1) 52%, #070f1e 100%);
  line-height: 1.65;
  position: relative;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

.site-atmosphere {
  position: fixed;
  inset: -16% -12% -8%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.site-atmosphere__flow,
.site-atmosphere__light,
.site-atmosphere__veil {
  position: absolute;
  pointer-events: none;
}

.site-atmosphere__flow {
  inset: -18% -12%;
  background: linear-gradient(120deg, rgba(102, 215, 255, 0.08), rgba(138, 139, 255, 0.07), rgba(102, 215, 255, 0.04));
  filter: blur(68px);
  opacity: 0.64;
  animation: atmosphereFlow 34s ease-in-out infinite alternate;
}

.site-atmosphere__light {
  border-radius: 50%;
  filter: blur(54px);
}

.site-atmosphere__light-a {
  width: min(70vw, 940px);
  aspect-ratio: 1;
  right: -20%;
  top: -18%;
  background: radial-gradient(circle, rgba(103, 216, 255, 0.14), transparent 66%);
  animation: atmosphereLightA 28s ease-in-out infinite alternate;
}

.site-atmosphere__light-b {
  width: min(72vw, 980px);
  aspect-ratio: 1;
  left: -24%;
  bottom: -14%;
  background: radial-gradient(circle, rgba(138, 139, 255, 0.13), transparent 67%);
  animation: atmosphereLightB 31s ease-in-out infinite alternate;
}

.site-atmosphere__veil {
  inset: 0;
  background: radial-gradient(circle at 52% 42%, rgba(7, 13, 25, 0), rgba(6, 11, 21, 0.26) 60%, rgba(4, 8, 15, 0.52) 100%);
}

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

@keyframes atmosphereFlow {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  100% {
    transform: translate3d(2%, 1.5%, 0) scale(1.05);
  }
}

@keyframes atmosphereLightA {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(-2.5%, 2%, 0) scale(1.08);
  }
}

@keyframes atmosphereLightB {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(2.5%, -2%, 0) scale(1.1);
  }
}

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

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 74%, white 26%);
  outline-offset: 2px;
}

p {
  margin: 0;
  color: var(--text-soft);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4.8rem);
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 3.05rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

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

.section {
  padding: clamp(4.5rem, 8vw, 7.4rem) 0;
  margin-top: -10px !important;

}

#topo,
#solucoes,
#cases,
#editais,
#sobre,
#mapa,
#conteudo,
#cta-final {
  scroll-margin-top: 96px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9db7e6;
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: '';
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, rgba(103, 216, 255, 0), rgba(103, 216, 255, 1));
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 95;
  padding: 1rem 0;
  background: linear-gradient(180deg, rgba(7, 12, 24, 0.86), rgba(7, 12, 24, 0.2));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.5s ease, opacity 0.5s ease;
  opacity: 0;
  transform: translateY(-14px);
}

.site-header.is-ready {
  opacity: 1;
  transform: translateY(0);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(9, 14, 26, 0.84);
}

body:not(.home) .site-header {
  background: linear-gradient(180deg, rgba(7, 12, 24, 0.98), rgba(7, 12, 24, 0.95)) !important;
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

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

.brand-logo {
  display: block;
  width: auto;
  height: clamp(34px, 4.6vw, 52px);
  max-width: min(62vw, 420px);
}

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 22px rgba(103, 216, 255, 0.65);
}

.brand-text {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.main-nav .menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.58rem;
}

.main-nav a {
  font-size: 0.93rem;
  color: #b8c8e7;
  transition: color 0.24s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #ffffff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0.74rem 1.35rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #04142a;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #6ee0ff, #8b8dff);
  box-shadow: 0 14px 28px rgba(54, 123, 245, 0.32);
  transition: transform 0.24s ease, box-shadow 0.24s ease, filter 0.24s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 18px 34px rgba(58, 124, 247, 0.4);
}

.hero-actions .btn:not(.btn-secondary) {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-actions .btn:not(.btn-secondary)::after {
  content: '';
  position: absolute;
  inset: -28% -16%;
  z-index: -1;
  border-radius: 999px;
  background: radial-gradient(circle at 26% 50%, rgba(203, 243, 255, 0.65), rgba(130, 132, 255, 0.18) 48%, rgba(130, 132, 255, 0) 72%);
  filter: blur(10px);
  opacity: 0.7;
  transform: translateX(-8%);
  animation: ctaGlowDrift 6.8s ease-in-out infinite alternate;
}

@keyframes ctaGlowDrift {
  0% {
    transform: translateX(-8%);
    opacity: 0.58;
  }
  100% {
    transform: translateX(8%);
    opacity: 0.88;
  }
}

.btn-secondary {
  color: #e6eeff;
  border-color: rgba(173, 194, 232, 0.44);
  background: rgba(16, 27, 48, 0.5);
  box-shadow: none;
}

.btn-header {
  min-height: 40px;
  padding-inline: 1.15rem;
  font-size: 0.86rem;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.3rem;
}

.menu-line {
  width: 26px;
  height: 2px;
  background: #d9e7ff;
  display: block;
  margin: 5px 0;
}

.submenu-toggle {
  display: none !important;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-video-bg video {
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(5 20 56 / 80%);
  z-index: 1;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-cinematic {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: clamp(7.3rem, 13vw, 9rem) 0 clamp(4.4rem, 7vw, 6rem);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.5;
  filter: none;
  transform: translateZ(0);
  backface-visibility: hidden;
  pointer-events: none;
}

.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.hero-gradient-flow {
  position: absolute;
  inset: -20% -12%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(102, 215, 255, 0.08), rgba(138, 139, 255, 0.07), rgba(102, 215, 255, 0.05));
  filter: blur(42px);
  opacity: 0.75;
  animation: gradientDrift 24s ease-in-out infinite alternate;
}

.hero-light,
.hero-vignette {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.hero-light-a {
  width: 520px;
  aspect-ratio: 1;
  right: -120px;
  top: -80px;
  border-radius: 50%;
  filter: blur(26px);
  background: radial-gradient(circle, rgba(103, 216, 255, 0.19), transparent 64%);
  animation: driftA 16s ease-in-out infinite alternate;
}

.hero-light-b {
  width: 470px;
  aspect-ratio: 1;
  left: -110px;
  bottom: -140px;
  border-radius: 50%;
  filter: blur(30px);
  background: radial-gradient(circle, rgba(138, 139, 255, 0.2), transparent 65%);
  animation: driftB 19s ease-in-out infinite alternate;
}

.hero-light-c {
  width: min(76vw, 920px);
  aspect-ratio: 1;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  filter: blur(64px);
  background: radial-gradient(circle, rgba(103, 216, 255, 0.12), rgba(138, 139, 255, 0.09) 38%, transparent 68%);
  animation: driftC 28s ease-in-out infinite alternate;
}

.hero-vignette {
  inset: 0;
  background: radial-gradient(circle at 58% 46%, rgba(6, 12, 23, 0), rgba(6, 11, 21, 0.45) 62%, rgba(4, 8, 15, 0.7) 100%);
}

@keyframes driftA {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-32px, 22px) scale(1.08);
  }
}

@keyframes driftB {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(34px, -24px) scale(1.06);
  }
}

@keyframes driftC {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    transform: translate(-48%, -52%) scale(1.06);
  }
}

@keyframes gradientDrift {
  0% {
    transform: translate3d(-1.5%, -1%, 0) scale(1);
  }
  100% {
    transform: translate3d(1.5%, 1%, 0) scale(1.04);
  }
}

.hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  gap: clamp(1.6rem, 4vw, 3.1rem);
  align-items: end;
}

.hero-copy {
  max-width: 720px;
}

.hero-title {
  position: relative;
  display: grid;
  gap: 0.18em;
}

.hero-title span {
  display: block;
}

.hero-title .hero-char,
.hero-title .hero-char-space {
  display: inline-block;
}

.hero-title::before {
  content: '';
  position: absolute;
  left: -8%;
  right: -8%;
  top: -22%;
  bottom: -24%;
  z-index: -1;
  border-radius: 999px;
  background: radial-gradient(circle at 36% 44%, rgba(103, 216, 255, 0.16), rgba(138, 139, 255, 0.11) 42%, transparent 70%);
  filter: blur(34px);
  animation: titleGlowPulse 9s ease-in-out infinite alternate;
}

@keyframes titleGlowPulse {
  0% {
    opacity: 0.62;
    transform: scale(0.98);
  }
  100% {
    opacity: 0.9;
    transform: scale(1.02);
  }
}

.hero-lead {
  margin-top: 1.35rem;
  font-size: clamp(1.02rem, 1.7vw, 1.19rem);
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.76rem;
  margin-top: 2rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.88rem;
}

.glass,
.metric-card {
  background: linear-gradient(152deg, rgba(28, 42, 71, 0.48), rgba(14, 23, 40, 0.36));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}

.metric-card {
  padding: 1.25rem 1.3rem;
}

.metric-card::after,
.card::after,
.case-card::after,
.about-block::after,
.cta-box::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(165, 226, 255, 0.09);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.metric-card:hover::after,
.card:hover::after,
.case-card:hover::after,
.about-block:hover::after,
.cta-box:hover::after {
  opacity: 1;
}

.metric-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 700;
  color: #f3f7ff;
}

.metric-label {
  margin-top: 0.35rem;
  font-size: 0.95rem;
}

.credibility-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 17, 31, 0.72);
  backdrop-filter: blur(8px);
}

.credibility-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  padding: 1.55rem 0;
}

.credibility-grid > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  aspect-ratio: 1 / 1;
  padding: 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(132, 184, 240, 0.24);
  background: linear-gradient(160deg, rgba(9, 28, 54, 0.86), rgba(6, 20, 40, 0.82));
}

.credibility-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.48rem;
  color: #f3f7ff;
  font-weight: 700;
}

.credibility-text {
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: #ffffff;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading p {
  margin-top: 0.9rem;
  font-size: 1.02rem;
}

.cards-grid,
.cases-grid,
.about-grid {
  display: grid;
  gap: 1rem;
}

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

.card,
.case-card,
.about-block,
.cta-box {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(20, 33, 58, 0.56), rgba(12, 21, 38, 0.5));
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
  transition: transform 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
}

.card,
.case-card,
.about-block {
  padding: 1.32rem;
}

.card:hover,
.case-card:hover,
.about-block:hover {
  transform: translateY(-5px);
  border-color: var(--line-bright);
  box-shadow: var(--shadow);
}

.card-kicker,
.case-sector {
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 700;
  color: #a6c0f5;
}

.card h3,
.case-card h3 {
  margin-top: 0.72rem;
}

.card p,
.case-card p,
.about-block p {
  margin-top: 0.68rem;
  font-size: 0.94rem;
}

.card a,
.text-link {
  margin-top: 1rem;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 600;
  color: #d3e3ff;
}

.card a:hover,
.text-link:hover {
  color: #ffffff;
}

.case-result {
  color: #e3eeff;
  font-weight: 600;
}

.edital-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.76rem;
  color: #adc0df;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.57rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.status-open {
  color: var(--success);
  border: 1px solid rgba(149, 239, 195, 0.45);
  background: rgba(149, 239, 195, 0.12);
}

.status-soon {
  color: var(--warning);
  border: 1px solid rgba(255, 215, 164, 0.45);
  background: rgba(255, 215, 164, 0.12);
}

.status-planning {
  color: #bbceff;
  border: 1px solid rgba(187, 206, 255, 0.4);
  background: rgba(187, 206, 255, 0.11);
}

.about-wrap {
  position: relative;
}

.about-wrap::after {
  content: '';
  position: absolute;
  right: -76px;
  bottom: -42px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(103, 216, 255, 0.12), transparent 66%);
  pointer-events: none;
  filter: blur(4px);
}

.cta-final {
  padding-top: 2rem;
}

.cta-box {
  border-radius: var(--radius-lg);
  text-align: center;
  padding: clamp(2rem, 4vw, 3.5rem);
}

.cta-box h2 {
  margin: 0.45rem auto 0;
  max-width: 18ch;
}

.cta-box p {
  margin: 1rem auto 0;
  max-width: 64ch;
}

.cta-box .btn {
  margin-top: 1.55rem;
}

.page-shell {
  padding-top: clamp(7.4rem, 11vw, 8.8rem);
}

.page-content {
  min-height: 52vh;
}

.page-content .entry-content {
  margin-top: 1.4rem;
}

.page-content .entry-content p {
  margin-top: 1rem;
}

.c-entry-shell {
  gap: 0.95rem;
}

.entry-hero-media {
  margin: -0.2rem -0.2rem 0.55rem;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  border: 1px solid rgba(157, 181, 227, 0.28);
  background: rgba(13, 23, 40, 0.85);
  box-shadow: 0 16px 28px rgba(1, 8, 19, 0.3);
}

.entry-hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.entry-content > * + * {
  margin-top: 0.95rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: #f2f7ff;
  line-height: 1.2;
}

.entry-content ul,
.entry-content ol {
  margin: 0.55rem 0 0 1.15rem;
  padding: 0;
}

.entry-content li + li {
  margin-top: 0.45rem;
}

.entry-content a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.entry-content blockquote {
  margin: 1.1rem 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid rgba(132, 184, 240, 0.48);
  border-radius: 0 10px 10px 0;
  background: rgba(12, 21, 37, 0.58);
}

.entry-content img,
.entry-content iframe,
.entry-content video {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.pagination-wrap {
  margin-top: 2rem;
}

.pagination-wrap .nav-links {
  display: flex;
  gap: 0.55rem;
}

.pagination-wrap a,
.pagination-wrap span {
  display: inline-flex;
  min-width: 2.1rem;
  min-height: 2.1rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(14, 23, 40, 0.8);
  color: #dce9ff;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(8, 13, 24, 0.82);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.78fr 0.96fr;
  gap: 1.2rem;
  padding: 2.3rem 0 2rem;
}

.footer-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  color: #f1f6ff;
  font-weight: 700;
}

.footer-note {
  margin-top: 0.76rem;
  max-width: 48ch;
}

.footer-title {
  color: #e3efff;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li + li {
  margin-top: 0.45rem;
}

.footer-links a {
  color: #b2c4e1;
}

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

.footer-bottom {
  border-top: 1px solid rgba(157, 181, 227, 0.16);
  padding: 0.9rem 0 1.3rem;
}

.footer-bottom p {
  font-size: 0.84rem;
  color: #90a4c7;
}

.c-card,
.c-simple-card,
.metric-card,
.portal-carousel__item {
  will-change: transform, opacity;
  transform-style: preserve-3d;
  transition: box-shadow 240ms ease, border-color 240ms ease;
}

.c-card:hover,
.c-simple-card:hover,
.metric-card:hover,
.portal-carousel__item:hover {
  box-shadow: 0 18px 36px rgba(0, 9, 24, 0.28), 0 0 22px rgba(255, 138, 42, 0.18);
  border-color: rgba(255, 138, 42, 0.36);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.18, 0.78, 0.25, 1), transform 0.75s cubic-bezier(0.18, 0.78, 0.25, 1);
}

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

[data-reveal-card] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.72s cubic-bezier(0.18, 0.78, 0.25, 1), transform 0.72s cubic-bezier(0.18, 0.78, 0.25, 1);
}

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

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media (max-width: 1080px) {
  .site-atmosphere {
    inset: -20% -20% -10%;
  }

  .site-atmosphere__flow {
    opacity: 0.52;
  }

  .hero-grid,
  .credibility-grid,
  .cards-grid-3,
  .cases-grid,
  .about-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid {
    align-items: start;
  }

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

@media (max-width: 760px) {
  .container {
    width: min(var(--container), calc(100% - 1.6rem));
  }

  .hero-cinematic {
    min-height: auto;
    padding-top: 6.9rem;
  }

  .hero-grid,
  .cards-grid-3,
  .cases-grid,
  .about-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .btn-header {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
    order: 3;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height, 76px);
    left: 0;
    right: 0;
    bottom: 0;
    max-height: none;
    height: calc(100dvh - var(--header-height, 76px));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(8, 14, 26, 0.97);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.24s ease, opacity 0.24s ease, visibility 0.24s ease;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav .menu-list {
    flex-direction: column;
    gap: 0;
    padding: 0.45rem 0;
  }

  .main-nav li {
    border-top: 1px solid rgba(157, 181, 227, 0.18);
  }

  .main-nav li:first-child {
    border-top: 0;
  }

  .main-nav a {
    display: block;
    padding: 0.9rem 1rem;
  }

  .main-nav .menu-item.has-submenu {
    position: relative;
  }

  .main-nav .menu-item.has-submenu > a {
    padding-right: 3.2rem;
  }

  .submenu-toggle {
    position: absolute;
    top: 0.48rem;
    right: 0.62rem;
    width: 2.1rem;
    height: 2.1rem;
    border: 1px solid rgba(157, 181, 227, 0.26);
    border-radius: 999px;
    background: rgba(17, 30, 52, 0.92);
    color: #dff0ff;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  }

  .submenu-toggle::before {
    content: '';
    width: 0.42rem;
    height: 0.42rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
  }

  .menu-item.is-open > .submenu-toggle::before {
    transform: rotate(-135deg) translateY(-1px);
  }

  .submenu-toggle:hover,
  .submenu-toggle:focus-visible {
    background: rgba(24, 48, 80, 0.98);
    border-color: rgba(157, 181, 227, 0.54);
  }

  .menu-item .submenu {
    position: static;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    background: transparent;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.22s ease;
  }

  .menu-item.is-open .submenu {
    max-height: 420px;
  }

  .menu-item .submenu a {
    padding: 0.65rem 1rem 0.65rem 1.85rem;
    font-size: 0.82rem;
    color: #acc7e8;
    border-top: 1px solid rgba(157, 181, 227, 0.14);
  }

  .menu-item .submenu a:hover,
  .menu-item .submenu a:focus-visible {
    color: #f0f8ff;
    background: rgba(32, 83, 145, 0.14);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .btn-secondary {
    width: 100%;
  }

  .section {
    padding: 3.8rem 0;
  }

  .cta-box {
    text-align: left;
  }

  .hero-particles {
    opacity: 0.45;
  }

  .hero-video {
    opacity: 0.4;
  }

  .site-atmosphere__light {
    opacity: 0.72;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  [data-reveal],
  [data-reveal-card] {
    opacity: 1;
    transform: none;
  }

  .hero-title::before,
  .hero-actions .btn:not(.btn-secondary)::after,
  .hero-gradient-flow {
    opacity: 0.65;
  }

  .hero-video {
    display: none;
  }

  .site-atmosphere__flow {
    opacity: 0.3;
  }

  .site-atmosphere__light {
    opacity: 0.4;
  }
}

/* Layout Approval Pages */
.portal-shell {
  padding-top: clamp(7.8rem, 12vw, 9.2rem);
}

.portal-heading {
  max-width: 820px;
}

.portal-toolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.portal-toolbar label {
  display: block;
}

.portal-toolbar input,
.portal-toolbar select,
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(11, 19, 34, 0.9);
  color: var(--text);
  font: inherit;
  padding: 0.65rem 0.75rem;
}

.contact-form textarea {
  min-height: 120px;
}

.contact-form {
  display: grid;
  gap: 0.8rem;
}

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

.contact-form label {
  display: grid;
  gap: 0.35rem;
  color: #cfddf6;
  font-weight: 600;
}

.portal-list {
  display: grid;
  gap: 0.8rem;
}

.portal-item {
  display: grid;
  grid-template-columns: 1.8fr 0.65fr 0.65fr 0.65fr;
  align-items: center;
  gap: 0.85rem;
}

.portal-label {
  margin: 0;
  color: #a6b9dc;
  font-size: 0.79rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.portal-tags {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 0.7rem;
}

.chip-like {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.58rem;
  border-radius: 999px;
  border: 1px solid rgba(157, 181, 227, 0.32);
  background: rgba(16, 29, 52, 0.7);
  color: #d3e3ff;
  font-size: 0.76rem;
  font-weight: 700;
}

.author-block {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.avatar-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(132, 173, 255, 0.35), rgba(182, 212, 255, 0.18));
  border: 1px solid rgba(157, 181, 227, 0.42);
}

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

.step-card .btn {
  margin-top: 0.85rem;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(118, 179, 255, 0.22);
  border: 1px solid rgba(157, 181, 227, 0.46);
  font-weight: 800;
  color: #d9e8ff;
}

.portal-block-gap {
  margin-top: 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1rem;
}

.contact-grid h2 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  margin-bottom: 0.8rem;
}

.cta-mini {
  margin-top: 0.95rem;
  padding: 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(157, 181, 227, 0.34);
  background: rgba(11, 20, 36, 0.65);
}

.cta-mini h3 {
  margin-bottom: 0.35rem;
}

.cta-mini .btn {
  margin-top: 0.65rem;
}

.map-placeholder {
  margin-top: 0.95rem;
  border-radius: 14px;
  border: 1px dashed rgba(157, 181, 227, 0.4);
  min-height: 120px;
  display: grid;
  place-items: center;
  color: #c6d8f6;
  background: rgba(9, 17, 31, 0.45);
}

.portal-shell :focus-visible {
  outline: 2px solid #84beff;
  outline-offset: 2px;
}

@media (max-width: 1080px) {
  .portal-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .steps-grid,
  .contact-grid,
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .portal-toolbar {
    grid-template-columns: 1fr;
  }
}
