:root {
  --clr-primary: #2c5282;
  --clr-primary-light: #3d5f85;
  --clr-secondary: #e6f3ff;
  --clr-accent: #f59e0b;
  --clr-accent-hover: #d97706;
  --clr-light: #ffffff;
  --clr-dark: #1a202c;
  --clr-gray: #718096;
  --clr-success: #48bb78;
  --max-width: 1200px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  --gradient-primary: linear-gradient(135deg, var(--clr-primary) 0%, #1a365d 100%);
  --gradient-accent: linear-gradient(135deg, var(--clr-accent) 0%, var(--clr-accent-hover) 100%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f8fafc;
  overflow-x: hidden;
}

main {
  min-height: calc(100vh - 320px);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

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

.img-responsive {
  width: 100%;
  height: auto;
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.img-contain {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.media-cover {
  position: relative;
  overflow: hidden;
}

.media-cover--hero {
  height: clamp(240px, 34vw, 420px);
  border-radius: 20px;
}

.media-cover--card {
  height: 220px;
  border-radius: 16px;
}

h1,
h2,
h3 {
  color: var(--clr-primary);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4.2vw + 1rem, 4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.7rem, 3vw + 1rem, 2.7rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

p {
  color: var(--clr-gray);
  font-size: 1.02rem;
  margin-bottom: 1rem;
}

ul,
ol {
  padding-left: 1.2rem;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  fill: currentColor;
  flex: 0 0 auto;
}

.section-center {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.breadcrumb-wrap {
  padding: 1.3rem 2rem 0;
}

.section-intro {
  max-width: 760px;
  margin: 0 auto 1rem;
  text-align: center;
}

.section-cta {
  margin-top: 2rem;
  text-align: center;
}

section {
  padding: 4.7rem 2rem;
}

.page-main {
  padding-top: 84px;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98);
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--clr-primary);
  font-size: 1.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.brand .icon {
  color: var(--clr-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.nav-links a {
  position: relative;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  border: none;
  background: none;
  color: var(--clr-primary);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.35rem;
  line-height: 1;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: #5c6e82;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--clr-primary);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
  padding: 7.2rem 2rem 4rem;
  background: var(--gradient-primary);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.17), transparent 40%),
              radial-gradient(circle at 80% 75%, rgba(255, 255, 255, 0.13), transparent 42%);
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
  color: #fff;
  z-index: 1;
}

.btn-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero h1,
.hero p {
  color: #fff;
}

.hero p {
  margin: 0 auto 1.5rem;
  max-width: 760px;
  font-size: 1.2rem;
}

.hero-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 auto 1.7rem;
}

.hero-badge {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.14);
}

.hero-grid {
  margin-top: 1.7rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    text-align: left;
  }

  .hero-badges,
  .hero .btn-wrap {
    justify-content: flex-start;
  }

  .hero p {
    margin-left: 0;
  }
}

.stats {
  background: #fff;
  margin-top: -2rem;
  position: relative;
  z-index: 2;
  padding: 3.3rem 2rem;
}

.stats-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}

.stat-item {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  text-align: center;
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}

.stat-number {
  display: block;
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--clr-accent);
}

.stat-label {
  color: #4a5568;
  font-size: 0.98rem;
  font-weight: 600;
}

.btn,
button.btn,
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: var(--shadow-lg);
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-size: 0.95rem;
  padding: 0.9rem 1.7rem;
}

.btn:hover,
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-secondary {
  background: #fff;
  color: var(--clr-primary);
  border: 1px solid rgba(44, 82, 130, 0.3);
  box-shadow: var(--shadow-sm);
}

.grid-2 {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.about-box,
.surface {
  background: var(--clr-secondary);
  border-radius: 24px;
  padding: 2rem;
}

.trust-list {
  list-style: none;
  margin-top: 1rem;
  padding-left: 0;
}

.trust-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.6rem;
  color: #2d3748;
  font-weight: 500;
}

.trust-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.42rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--clr-success);
}

.services-section {
  background: #fff;
}

.services-grid,
.cards-grid,
.posts-grid {
  display: grid;
  gap: 1.3rem;
}

@media (min-width: 700px) {
  .services-grid,
  .cards-grid,
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid,
  .cards-grid,
  .posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: #fff;
  border: 1px solid #dbe4ef;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.card h3 {
  margin-bottom: 0.3rem;
}

.card h2 {
  font-size: 1.16rem;
  margin-bottom: 0.3rem;
}

.card p {
  margin-bottom: 0;
}

.card .icon-badge {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--clr-primary);
}

.card .icon-badge .icon {
  width: 1.2rem;
  height: 1.2rem;
}

.faq-section {
  background: #fff;
}

.faq-list {
  max-width: 900px;
  margin: 1rem auto 0;
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  background: #fff;
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 0.95rem 1rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--clr-primary);
  position: relative;
  padding-right: 1.2rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  color: var(--clr-accent);
  font-size: 1.1rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item p {
  margin-top: 0.65rem;
}

.contact {
  background: var(--gradient-primary);
  color: #fff;
}

.contact h2,
.contact h3,
.contact p,
.contact a,
.contact strong {
  color: #fff;
}

.contact-inner {
  display: grid;
  gap: 2rem;
}

@media (min-width: 940px) {
  .contact-inner {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-item {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-bottom: 0.7rem;
  padding: 0.8rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
}

.contact-item .icon {
  color: var(--clr-accent);
  margin-top: 0.15rem;
}

.contact-form {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.6rem;
}

.contact-form input,
.contact-form textarea,
.search-input,
.select-input {
  width: 100%;
  border: 1px solid #d7e1ec;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font: inherit;
  background: #fff;
  color: #2d3748;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.search-input:focus,
.select-input:focus {
  outline: none;
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.form-consent {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0.8rem 0;
  color: rgba(255, 255, 255, 0.95);
}

.form-consent input {
  width: auto;
  margin-top: 0.2rem;
}

.form-note {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.9);
}

.map-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #d8e2ed;
  box-shadow: var(--shadow-md);
  background: #edf2f7;
}

.map-wrap iframe {
  border: none;
  width: 100%;
  height: 420px;
  display: block;
}

.news-toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin: 1.2rem 0 1.4rem;
}

@media (min-width: 900px) {
  .news-toolbar {
    grid-template-columns: 1fr 220px 220px;
  }
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  border: 1px solid #d5e1ee;
  background: #f8fbff;
  color: #2d4965;
  font-size: 0.78rem;
  font-weight: 600;
}

.post-card .meta,
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: #64758b;
  font-size: 0.82rem;
}

.post-card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.post-card h3 a {
  color: var(--clr-primary);
}

.post-card h3 a:hover {
  color: var(--clr-primary-light);
}

.post-card h2 a {
  color: var(--clr-primary);
}

.post-card h2 a:hover {
  color: var(--clr-primary-light);
}

.article {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #dbe4ef;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: clamp(1.2rem, 2.5vw, 2rem);
}

.article h1 {
  font-size: clamp(1.8rem, 2.6vw + 1rem, 2.9rem);
  margin-bottom: 0.8rem;
}

.article h2 {
  margin-top: 1.5rem;
  font-size: 1.5rem;
}

.article h3 {
  margin-top: 1.2rem;
  font-size: 1.2rem;
}

.article p,
.article li {
  color: #45556b;
}

.article ul,
.article ol {
  margin-bottom: 1rem;
}

.related-posts {
  margin-top: 2rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 1.3rem;
}

.related-posts ul {
  margin-top: 0.6rem;
}

[data-post-card][hidden] {
  display: none !important;
}

footer {
  background: var(--clr-dark);
  color: #fff;
  padding: 2.5rem 2rem 1.7rem;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-section h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0.45rem;
  font-size: 0.93rem;
}

.footer-section a:hover,
.consent-link:hover {
  color: var(--clr-accent);
}

.consent-link {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 1.2rem auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.1rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
}

.scroll-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  z-index: 9999;
  transition: opacity 0.35s ease;
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid #e2e8f0;
  border-top-color: var(--clr-accent);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

.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: 960px) {
  .nav-links {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
    padding: 1.4rem;
    flex-direction: column;
    transform: translateY(-120vh);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  nav {
    padding: 0.95rem 1.2rem;
  }

  section {
    padding: 4rem 1.2rem;
  }

  .page-main {
    padding-top: 74px;
  }
}
