﻿:root {
  --bg-0: #fafcff;
  --bg-1: #f4f8fd;
  --bg-2: #ebf3fb;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: rgba(255, 255, 255, 0.95);
  --surface-light: #f5f9ff;
  --text: #142d41;
  --text-dark: #12263a;
  --muted: #4d6880;
  --line: rgba(15, 73, 182, 0.2);
  --brand: #0b1f7f;
  --brand-2: #0f49b6;
  --accent: #1ea9f3;
  --radius: 18px;
  --shadow: 0 10px 22px rgba(15, 41, 68, 0.08);
  --header-h: 86px;
}

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

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
  font-family: "Source Sans 3", sans-serif;
  color: var(--text);
  line-height: 1.65;
  background:
    radial-gradient(circle at 12% 18%, rgba(30, 169, 243, 0.24), transparent 44%),
    radial-gradient(circle at 88% 14%, rgba(11, 31, 127, 0.18), transparent 42%),
    linear-gradient(135deg, rgba(244, 250, 255, 0.92) 0%, rgba(228, 240, 255, 0.9) 48%, rgba(214, 232, 252, 0.9) 100%);
}


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

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

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: #031422;
  padding: 0.75rem 1rem;
  z-index: 9999;
  border-radius: 8px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 253, 255, 0.86);
  backdrop-filter: blur(14px);
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  gap: 1rem;
  transition: min-height 0.22s ease;
}

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

.brand-logo {
  width: clamp(108px, 11vw, 148px);
  max-height: 70px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 5px 10px rgba(15, 73, 182, 0.16));
  transform: scaleX(1.3);
  transform-origin: left center;
  transition: width 0.22s ease, max-height 0.22s ease, transform 0.22s ease;
}

body.header-scrolled .header-wrap {
  min-height: 72px;
}

body.header-scrolled .brand-logo {
  width: clamp(96px, 9.2vw, 130px);
  max-height: 58px;
  transform: scaleX(1.18);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav a {
  position: relative;
  color: #2a4b67;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.38rem;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--accent), var(--brand-2));
  transition: transform 0.25s ease;
}

.nav a:hover,
.nav a.active {
  color: #0f2c49;
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

.nav-social {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.38rem;
  width: auto;
  height: auto;
  min-height: 1.25rem;
}

.nav-social::after {
  display: none;
}

.nav-social svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.nav-cta {
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent), #4cc8ff 45%, #2a8fe9);
  color: #03243f !important;
  box-shadow: 0 12px 28px rgba(15, 73, 182, 0.22);
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.3s ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 73, 182, 0.28);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #2a4b67;
  transition: transform 0.2s ease, opacity 0.2s ease;
}


.hero {
  position: relative;
  min-height: clamp(520px, 82vh, 760px);
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/simple-header-blended-small.png") center/cover no-repeat;
  opacity: 0.08;
  transform: scale(1.05);
  z-index: -3;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -30% -10% auto;
  height: 70%;
  background:
    radial-gradient(circle at 18% 50%, rgba(30, 169, 243, 0.2), transparent 50%),
    radial-gradient(circle at 70% 25%, rgba(15, 73, 182, 0.2), transparent 55%);
  animation: drift 12s ease-in-out infinite alternate;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 18%, rgba(30, 169, 243, 0.28), transparent 45%),
    radial-gradient(circle at 88% 14%, rgba(11, 31, 127, 0.22), transparent 42%),
    linear-gradient(135deg, rgba(244, 250, 255, 0.88) 0%, rgba(228, 240, 255, 0.84) 48%, rgba(214, 232, 252, 0.82) 100%);
}

.hero-content {
  padding: clamp(6.2rem, 13vh, 9.2rem) 0 4.7rem;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(220px, 300px);
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.2rem, 4vw, 3.2rem);
}

.hero-text {
  width: 100%;
  max-width: 660px;
  text-align: left;
}

.eyebrow {
  margin: 0 0 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0 0 0.9rem;
  line-height: 1.15;
}

h1,
h2 {
  font-family: "Merriweather", serif;
}

h1 {
  max-width: 18ch;
  font-size: clamp(2.1rem, 4.6vw, 4rem);
  text-wrap: balance;
  color: #0f2d49;
}

.hero-copy {
  max-width: 58ch;
  color: #22415c;
  font-size: clamp(1.02rem, 1.3vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.84rem;
  margin-top: 1.45rem;
  justify-content: flex-start;
}

.hero-phone {
  position: relative;
  width: clamp(220px, 28vw, 290px);
  height: clamp(430px, 62vw, 560px);
  margin-top: 1.25rem;
  padding: 12px;
  border-radius: 40px;
  background:
    linear-gradient(135deg, #5e6673 0%, #1a222f 24%, #3f4958 49%, #0f1620 74%, #6a7381 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 28px 54px rgba(8, 24, 40, 0.4),
    0 10px 20px rgba(255, 255, 255, 0.06) inset,
    0 0 0 1px rgba(7, 13, 21, 0.9) inset,
    0 0 0 4px rgba(255, 255, 255, 0.05) inset;
  transform: perspective(1400px) rotateY(-8deg) rotateX(3deg);
  transform-style: preserve-3d;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero-phone:hover {
  transform: perspective(1400px) rotateY(-5deg) rotateX(2deg) translateY(-3px);
  box-shadow:
    0 34px 64px rgba(8, 24, 40, 0.44),
    0 10px 20px rgba(255, 255, 255, 0.08) inset,
    0 0 0 1px rgba(7, 13, 21, 0.9) inset,
    0 0 0 4px rgba(255, 255, 255, 0.05) inset;
}

.hero-phone::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 32px;
  background:
    linear-gradient(116deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.04) 24%, rgba(255, 255, 255, 0) 38%),
    linear-gradient(290deg, rgba(255, 255, 255, 0.11), transparent 36%);
  pointer-events: none;
  z-index: 5;
  animation: phoneGleam 7.5s ease-in-out infinite;
}

.hero-phone::after {
  content: "";
  position: absolute;
  top: 108px;
  left: -3px;
  width: 3px;
  height: 74px;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(180deg, #4d5868, #1f2835);
  box-shadow:
    0 96px 0 0 #2b3442,
    0 112px 0 0 #1a212c;
}

.hero-phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 39%;
  height: 22px;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, #0a1018, #060b11);
  border: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 6;
}

.hero-phone-notch::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 28%;
  width: 46%;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2f3946, #6c788a 48%, #2b3542);
}

.hero-phone-notch::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 12%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #6cc3ff, #142337 56%, #070d15 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.hero-phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.75) inset,
    0 18px 30px rgba(0, 0, 0, 0.42) inset;
}

.hero-phone-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.22), transparent 36%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.14));
  pointer-events: none;
  z-index: 3;
}

.hero-carousel-slide {
  margin: 0;
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: heroCarouselFade 18s infinite ease-in-out;
}

.hero-carousel-slide:nth-child(1) {
  animation-delay: 0s;
}

.hero-carousel-slide:nth-child(2) {
  animation-delay: 6s;
}

.hero-carousel-slide:nth-child(3) {
  animation-delay: 12s;
}

.hero-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  filter: saturate(1.05) contrast(1.02);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.76rem 1.22rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.3s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #4cc8ff 45%, #2a8fe9);
  color: #03243f;
  box-shadow: 0 12px 28px rgba(15, 73, 182, 0.22);
}

.btn-ghost {
  border-color: rgba(29, 89, 151, 0.45);
  color: #163453;
  background: rgba(255, 255, 255, 0.56);
}

.section {
  position: relative;
  padding: clamp(3.2rem, 7vw, 5.3rem) 0;
}

.section .container {
  position: relative;
  z-index: 2;
}

.section-surface {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.68), rgba(241, 248, 255, 0.74));
  border-block: 1px solid rgba(14, 51, 84, 0.14);
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.65rem);
}

#sobre .section-head {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 1.4rem;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(15, 73, 182, 0.2);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(241, 248, 255, 0.9));
  box-shadow: 0 8px 20px rgba(15, 41, 68, 0.08);
}

#sobre .section-head .eyebrow {
  color: var(--brand-2);
  font-size: clamp(1rem, 1.9vw, 1.45rem);
  letter-spacing: 0.04em;
  margin-bottom: 0;
}

#sobre .section-head h2 {
  color: var(--brand);
}

.grid-2 {
  display: grid;
  gap: 1.15rem 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 920px;
  margin-inline: auto;
}

#sobre .grid-2 p {
  margin: 0;
  padding: 1rem 1.05rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 73, 182, 0.14);
  background: rgba(255, 255, 255, 0.8);
}

#sobre .intro-block {
  display: block;
  max-width: 920px;
  margin-inline: auto;
  padding: 1.2rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(15, 73, 182, 0.16);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(241, 248, 255, 0.9));
  box-shadow: 0 8px 20px rgba(15, 41, 68, 0.06);
}

#sobre .intro-block p {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#sobre .intro-block p:last-child {
  margin-bottom: 0;
}

.grid-2 p,
.section p,
.timeline p,
.contact-text {
  color: #22415c;
  overflow-wrap: anywhere;
}

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

.card {
  border: 1px solid rgba(38, 95, 152, 0.16);
  border-radius: var(--radius);
  padding: 1.15rem 1.05rem;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.92), rgba(242, 248, 255, 0.92));
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, border-color 0.28s ease;
}

.card-photo {
  margin: 0 0 0.85rem;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(15, 73, 182, 0.22);
  box-shadow: 0 8px 16px rgba(10, 32, 54, 0.14);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(223, 238, 252, 0.86));
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card h3 {
  color: #12314d;
}

.card p {
  margin: 0;
  color: #355572;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(30, 169, 243, 0.5);
}

.section-note {
  margin: 0.9rem 0 0;
  color: #355572;
}

.section-note a {
  color: var(--brand-2);
  text-decoration: underline;
}

.publication-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.publication-list article,
.timeline article,
.video-card,
.gallery figure {
  border-radius: var(--radius);
  border: 1px solid rgba(38, 95, 152, 0.16);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.92), rgba(242, 248, 255, 0.92));
  box-shadow: var(--shadow);
}

.publication-list article {
  padding: 1.05rem 1rem;
}

.publication-list h3 {
  color: #12314d;
}

.publication-list .pub-title-highlight {
  margin-bottom: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 73, 182, 0.35);
  border-left: 6px solid #0f49b6;
  background: linear-gradient(135deg, rgba(30, 169, 243, 0.24), rgba(15, 73, 182, 0.3));
  color: #0f3f90;
  font-size: clamp(1.1rem, 1.9vw, 1.24rem);
  font-weight: 900;
  text-align: center;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 20px rgba(15, 73, 182, 0.18);
}

.publication-list .pub-title-highlight::before {
  content: "";
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #27b7ff, #0f49b6);
  box-shadow: 0 0 0 3px rgba(39, 183, 255, 0.18);
}

.publication-list ul {
  margin: 0;
  padding-left: 1.1rem;
}

.publication-list li {
  margin-bottom: 0.45rem;
}

.publication-list .book-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  align-items: stretch;
  list-style: none;
  padding: 0;
}

.book-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  align-items: start;
  margin-bottom: 0;
  height: 100%;
}

.book-cover {
  margin: 0;
  width: min(100%, 220px);
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(38, 95, 152, 0.22);
  background: #f0f5fb;
  box-shadow: 0 10px 20px rgba(15, 41, 68, 0.14);
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease, filter 0.28s ease;
}

.book-cover a {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.book-cover a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(30, 169, 243, 0.08), rgba(15, 73, 182, 0.16));
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.book-cover a:hover img,
.book-cover a:focus-visible img {
  transform: scale(1.045);
  filter: brightness(1.05);
}

.book-cover a:hover::after,
.book-cover a:focus-visible::after {
  opacity: 1;
}

.book-cover a:focus-visible {
  outline: 2px solid rgba(30, 169, 243, 0.7);
  outline-offset: 2px;
}

.book-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.book-info h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.28;
  min-height: calc(1em * 1.28 * 3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-info h4 a,
.book-info h4 span {
  display: block;
}

.book-info p {
  margin: 0;
  color: #355572;
  font-size: 0.94rem;
  line-height: 1.5;
}

.publication-list a {
  color: var(--brand-2);
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.thesis-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.thesis-item {
  margin: 0;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(38, 95, 152, 0.2);
  background: linear-gradient(170deg, rgba(248, 252, 255, 0.95), rgba(239, 247, 255, 0.92));
  line-height: 1.5;
}

.thesis-item h4 {
  margin: 0 0 0.4rem;
  color: #12314d;
  font-size: 1rem;
  line-height: 1.3;
}

.thesis-title {
  margin: 0 0 0.5rem;
  color: #1f4664;
}

.thesis-meta {
  margin: 0;
  color: #4f6d88;
  font-size: 0.93rem;
}

.thesis-item a,
.article-item .article-action {
  display: inline-block;
  margin-top: 0.68rem;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 73, 182, 0.28);
  background: linear-gradient(130deg, rgba(30, 169, 243, 0.15), rgba(15, 73, 182, 0.2));
  color: #0f3f90;
  text-decoration: none;
  font-weight: 700;
}

.thesis-item a:hover,
.thesis-item a:focus-visible,
.article-item .article-action:hover,
.article-item .article-action:focus-visible {
  border-color: rgba(15, 73, 182, 0.45);
  background: linear-gradient(130deg, rgba(30, 169, 243, 0.22), rgba(15, 73, 182, 0.3));
}

.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.article-item {
  margin: 0;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(38, 95, 152, 0.2);
  background: linear-gradient(170deg, rgba(248, 252, 255, 0.95), rgba(239, 247, 255, 0.92));
  line-height: 1.5;
}

.article-item h4 {
  margin: 0 0 0.4rem;
  color: #12314d;
  font-size: 1rem;
  line-height: 1.3;
}

.article-full {
  margin: 0;
  color: #1f4664;
}

.article-full a {
  color: var(--brand-2);
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.article-meta {
  margin: 0;
  color: #4f6d88;
  font-size: 0.93rem;
}

.news-portal {
  display: grid;
  gap: 1rem;
}

.news-card {
  display: grid;
  grid-template-columns: minmax(260px, 38%) minmax(0, 1fr);
  align-items: center;
  gap: 0;
  border-radius: var(--radius);
  border: 1px solid rgba(38, 95, 152, 0.16);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.94), rgba(242, 248, 255, 0.92));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.news-carousel {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1080 / 1536;
  justify-self: center;
  align-self: center;
  background: #0f2234;
}

.news-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.news-slide.is-active {
  opacity: 1;
}

.news-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.news-content {
  padding: 1.2rem 1.1rem;
}

.news-content time {
  display: inline-block;
  margin-bottom: 0.4rem;
  color: #567692;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.news-content h3 {
  margin: 0 0 0.6rem;
  color: #10304c;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.25;
}

.news-content p {
  margin: 0;
  color: #244663;
}

.news-link {
  display: inline-flex;
  margin-top: 0.85rem;
  padding: 0.33rem 0.74rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 73, 182, 0.28);
  background: linear-gradient(130deg, rgba(30, 169, 243, 0.15), rgba(15, 73, 182, 0.2));
  color: #0f3f90;
  text-decoration: none;
  font-weight: 700;
}

.news-link:hover,
.news-link:focus-visible {
  border-color: rgba(15, 73, 182, 0.45);
  background: linear-gradient(130deg, rgba(30, 169, 243, 0.22), rgba(15, 73, 182, 0.3));
}

.news-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 999px;
  background: rgba(7, 24, 40, 0.45);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(3px);
}

.news-control:hover,
.news-control:focus-visible {
  background: rgba(7, 24, 40, 0.68);
}

.news-control.prev {
  left: 0.65rem;
}

.news-control.next {
  right: 0.65rem;
}

.news-dots {
  position: absolute;
  left: 50%;
  bottom: 0.6rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.38rem;
}

.news-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.news-dot.is-active {
  background: #fff;
}

.news-carousel.single-slide .news-control,
.news-carousel.single-slide .news-dots {
  display: none;
}

.news-card-wide .news-carousel {
  width: min(100%, 500px);
  aspect-ratio: 4 / 3;
}

.news-card-wide .news-slide img {
  object-fit: contain;
  object-position: center;
}

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

.timeline article {
  padding: 1rem;
}

.timeline time {
  display: inline-block;
  margin-bottom: 0.25rem;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: #567692;
  font-weight: 800;
}

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

.video-card {
  overflow: hidden;
  transition: transform 0.26s ease, border-color 0.26s ease;
}

.video-card:hover {
  transform: translateY(-6px);
  border-color: rgba(30, 169, 243, 0.5);
}

.video-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.video-card span {
  display: block;
  padding: 0.82rem 0.82rem 0.32rem;
  font-weight: 700;
  color: #12314d;
}

.video-card p {
  margin: 0;
  padding: 0 0.82rem 0.9rem;
  color: #355874;
  font-size: 0.93rem;
  line-height: 1.45;
}

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

.gallery figure {
  margin: 0;
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease;
}

.gallery figure:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(30, 169, 243, 0.5);
}

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

.gallery figcaption {
  padding: 0.78rem 0.84rem;
  font-weight: 700;
  font-size: 0.94rem;
  line-height: 1.38;
  color: #12314d;
}

.contact-band {
  padding: 2.7rem 0;
  border-top: 1px solid rgba(14, 51, 84, 0.14);
  border-bottom: 1px solid rgba(14, 51, 84, 0.14);
  background:
    radial-gradient(560px 220px at 10% 20%, rgba(30, 169, 243, 0.16), transparent 65%),
    linear-gradient(135deg, rgba(228, 242, 255, 0.98), rgba(213, 233, 252, 0.96));
}

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

.contact-wrap h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.62rem;
}

.contact-email-alt {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.52rem 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(25, 108, 187, 0.32);
  background: linear-gradient(135deg, #f7fbff, #e8f4ff);
  box-shadow: 0 8px 20px rgba(20, 92, 166, 0.14);
  color: #113a61;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.contact-email-alt svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.contact-email-alt:hover,
.contact-email-alt:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(25, 108, 187, 0.55);
  box-shadow: 0 12px 24px rgba(20, 92, 166, 0.22);
  text-decoration: none;
}

.site-footer {
  position: relative;
  padding: 1.4rem 0 2.2rem;
  color: #355572;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.visit-counter {
  margin: 0;
  position: absolute;
  right: max(4%, 0.9rem);
  bottom: 0.9rem;
  text-align: left;
  align-items: start;
  display: grid;
  gap: 0.16rem;
  min-width: 180px;
  max-width: 220px;
  padding: 0.48rem 0.62rem;
  border-radius: 10px;
  border: 1px solid rgba(15, 73, 182, 0.22);
  background: rgba(244, 250, 255, 0.96);
  box-shadow: 0 6px 14px rgba(15, 41, 68, 0.12);
  color: #1f4664;
}

.visit-counter-label {
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #456781;
  font-weight: 800;
}

.visit-counter strong {
  font-size: 0.94rem;
  line-height: 1.15;
  color: #0f3f90;
}

.visit-counter-note {
  display: block;
  margin-top: 0.04rem;
  font-size: 0.72rem;
  line-height: 1.25;
  color: #345874;
}

.dev-seal-wrap {
  display: flex;
  justify-content: center;
  margin-top: 0.7rem;
}

.dev-seal {
  margin: 0;
  padding: 0.44rem 0.88rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 73, 182, 0.24);
  background: linear-gradient(135deg, rgba(30, 169, 243, 0.14), rgba(15, 73, 182, 0.16));
  color: #0f3a63;
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  text-align: center;
}

.dev-seal a {
  color: inherit;
  text-decoration: none;
}

.dev-seal a:hover,
.dev-seal a:focus-visible {
  text-decoration: underline;
}

.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: transform, opacity;
}

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

@keyframes drift {
  from {
    transform: translate3d(-3%, 0, 0);
  }
  to {
    transform: translate3d(4%, -2%, 0);
  }
}

@keyframes heroCarouselFade {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  28% {
    opacity: 1;
  }
  36% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes phoneGleam {
  0%,
  100% {
    opacity: 0.72;
  }
  50% {
    opacity: 0.95;
  }
}

@keyframes mobileMenuDrop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mobileFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes mobileCardIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes mobileHeroIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .news-card {
    grid-template-columns: minmax(250px, 42%) minmax(0, 1fr);
  }
}

/* Evita corte de itens do menu (incluindo "Notícias") em larguras intermediárias. */
@media (max-width: 1100px) and (min-width: 901px) {
  :root {
    --header-h: 76px;
  }

  .header-wrap {
    min-height: 76px;
  }

  .brand-logo {
    width: 98px;
    max-height: 58px;
    transform: none;
  }

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

  .nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 4%;
    border-bottom: 1px solid var(--line);
    background: rgba(250, 253, 255, 0.97);
    backdrop-filter: blur(12px);
  }

  .nav.open {
    display: flex;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 76px;
  }

  .grid-2,
  .cards,
  .publication-list,
  .video-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .header-wrap {
    min-height: 76px;
  }

  .brand-logo {
    width: 98px;
    max-height: 58px;
    transform: none;
  }

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

  .nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 4%;
    border-bottom: 1px solid var(--line);
    background: rgba(250, 253, 255, 0.97);
    backdrop-filter: blur(12px);
  }

  .nav.open {
    display: flex;
    animation: mobileMenuDrop 0.24s ease-out both;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: calc(var(--header-h) + 1.05rem) 0 2.7rem;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1.05rem;
  }

  .hero-text {
    text-align: center;
    animation: mobileHeroIn 0.58s ease both;
  }

  .eyebrow {
    font-size: 0.64rem;
    letter-spacing: 0.14em;
  }

  .hero-actions {
    justify-content: center;
  }

  .section-head {
    text-align: center;
  }

  h1 {
    max-width: 100%;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-phone {
    width: clamp(182px, 58vw, 240px);
    height: clamp(340px, 90vw, 455px);
    transform: none;
    margin-top: 0.2rem;
    animation: mobileFloat 5.8s ease-in-out infinite;
  }

  .hero-phone:hover {
    transform: none;
  }

  .contact-wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-actions {
    align-items: center;
  }

  .news-card {
    grid-template-columns: 1fr;
    animation: mobileCardIn 0.52s ease both;
    animation-delay: calc(var(--news-order, 0) * 50ms);
  }

  .news-carousel {
    width: min(100%, 330px);
    aspect-ratio: 4 / 5;
  }

  .news-content {
    padding: 1rem 0.95rem;
  }

  .cards {
    gap: 0.85rem;
  }

  .card {
    padding: 1rem 0.94rem;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(9, 32, 56, 0.1);
  }

  .video-grid,
  .gallery {
    gap: 0.85rem;
  }

  .video-card img,
  .gallery img {
    object-fit: contain;
    background: #eef5ff;
  }

  .card-photo img {
    object-position: center top;
  }

  .video-card,
  .gallery figure {
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(9, 32, 56, 0.1);
  }

  .section-head h2 {
    margin-bottom: 0.65rem;
    line-height: 1.2;
  }

  .section .container {
    width: min(1180px, 94%);
  }

  .video-card:active,
  .gallery figure:active,
  .news-card:active,
  .card:active {
    transform: scale(0.992);
  }

  .mobile-reveal {
    animation: mobileCardIn 0.56s ease both;
    animation-delay: var(--mobile-delay, 0ms);
  }
}

@media (max-width: 768px) {
  .site-header {
    backdrop-filter: blur(10px);
  }

  .visit-counter {
    position: static;
    right: auto;
    bottom: auto;
    margin-left: auto;
    margin-top: 0.4rem;
    max-width: 220px;
  }

  .nav {
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
  }

  .hero-content {
    padding: 5rem 0 3rem;
    gap: 1.1rem;
  }

  h1 {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .card h3 {
    font-size: 1.1rem;
  }

  .card p {
    font-size: 0.98rem;
    line-height: 1.55;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 72px;
  }

  .header-wrap {
    min-height: 72px;
  }

  .nav {
    top: 72px;
    padding: 0.9rem 5%;
  }

  .hero-content {
    padding: 4.6rem 0 2.8rem;
  }

  .hero-phone {
    width: clamp(180px, 64vw, 235px);
    height: clamp(340px, 100vw, 450px);
  }

  .section-head h2 {
    font-size: clamp(1.45rem, 6.2vw, 1.9rem);
  }
}

@media (max-width: 520px) {
  .container {
    width: min(1180px, 95%);
  }

  .section {
    padding: 2.55rem 0;
  }

  .hero-copy {
    font-size: 0.98rem;
    line-height: 1.58;
  }

  .nav a {
    width: 100%;
    padding: 0.3rem 0;
  }

  .nav-social {
    width: 100%;
    height: auto;
    justify-content: flex-start;
    padding: 0.3rem 0;
  }

  .nav-social svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  .section-head,
  .section-note {
    text-align: center;
  }

  .card {
    padding: 1rem 0.92rem;
  }

  .card-photo {
    margin-inline: auto;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
    justify-content: center;
  }

  .video-card img,
  .gallery img {
    height: 184px;
  }

  .video-card span {
    font-size: 0.98rem;
    line-height: 1.3;
  }

  .video-card p {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .gallery figcaption {
    font-size: 0.9rem;
    line-height: 1.34;
  }

  .news-content h3 {
    font-size: 1.06rem;
    line-height: 1.24;
  }

  .news-content p {
    font-size: 0.94rem;
    line-height: 1.52;
  }

  .book-item {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .book-cover {
    width: min(100%, 170px);
  }
}

@media (max-width: 420px) {
  :root {
    --header-h: 68px;
  }

  .container {
    width: 94%;
  }

  .header-wrap {
    min-height: 68px;
  }

  .brand-logo {
    width: 88px;
    max-height: 52px;
  }

  .nav {
    top: 68px;
  }

  .hero-content {
    padding: calc(var(--header-h) + 0.8rem) 0 2.35rem;
  }

  .hero-actions {
    gap: 0.62rem;
  }

  .btn {
    padding: 0.68rem 0.98rem;
    font-size: 0.95rem;
  }

  .hero-phone {
    width: clamp(170px, 68vw, 220px);
    height: clamp(320px, 108vw, 420px);
  }

  .btn {
    min-height: 44px;
  }

  .video-card img,
  .gallery img {
    height: 180px;
  }

  .dev-seal {
    font-size: 0.78rem;
    padding: 0.4rem 0.72rem;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 1.55rem;
  }

  .hero-copy {
    font-size: 0.96rem;
  }

  .hero-phone {
    width: 168px;
    height: 312px;
  }
}

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

  body:not(.force-mobile-animations) .reveal,
  body:not(.force-mobile-animations) .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}



