@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #f5f8ff;
  --bg-soft: #eaf0ff;
  --card: rgba(255, 255, 255, 0.92);
  --text: #09244d;
  --muted: #3b5e8f;
  --primary: #0b4ca1;
  --secondary: #1b6fce;
  --accent: #2aa1df;
  --danger: #d34e79;
  --border: rgba(9, 36, 77, 0.14);
  --shadow: 0 22px 42px rgba(12, 40, 82, 0.14);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, #dce9ff 0, transparent 35%),
    radial-gradient(circle at 82% 10%, #d7e5ff 0, transparent 28%),
    radial-gradient(circle at 70% 85%, #e8f3ff 0, transparent 30%), var(--bg);
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background:
    radial-gradient(
      900px 500px at 8% 10%,
      rgba(11, 76, 161, 0.1),
      transparent 60%
    ),
    radial-gradient(
      700px 420px at 96% 8%,
      rgba(42, 161, 223, 0.1),
      transparent 58%
    ),
    radial-gradient(
      740px 460px at 82% 96%,
      rgba(11, 76, 161, 0.08),
      transparent 64%
    );
}

body::after {
  z-index: -1;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='%230b4ca1' stroke-opacity='0.15' stroke-width='1.4'%3E%3Cpath d='M0 120 Q60 20 120 120 T240 120'/%3E%3Cpath d='M0 170 Q60 70 120 170 T240 170'/%3E%3Ccircle cx='180' cy='56' r='22'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 260px 260px;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

main > .container,
section > .container {
  align-items: stretch;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.logo-mark {
  height: 34px;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.lang-toggle button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 10px;
  cursor: pointer;
}

.lang-toggle button.active {
  background: linear-gradient(
    130deg,
    rgba(11, 76, 161, 0.2),
    rgba(27, 111, 206, 0.2)
  );
  color: var(--primary);
}

.hero {
  padding: 80px 0 50px;
  position: relative;
  text-align: left;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(110deg, rgba(11, 76, 161, 0.1), transparent 32%),
    linear-gradient(300deg, rgba(42, 161, 223, 0.13), transparent 40%);
}

h1,
h2,
h3 {
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 22px;
  padding: 20px 5px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.section {
  padding: 50px 0;
}

/* Keep first-level section intros consistently centered */
.section > .container > h1,
.section > .container > h2 {
  text-align: center;
}

.section > .container > p {
  /* text-align: center; */
  /* max-width: 860px; */
  margin-left: auto;
  margin-right: auto;
}

.card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  right: -35px;
  top: -35px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(11, 76, 161, 0.1), transparent 70%);
  pointer-events: none;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(11, 76, 161, 0.2);
  background: linear-gradient(
    135deg,
    rgba(11, 76, 161, 0.12),
    rgba(42, 161, 223, 0.14)
  );
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.card-icon svg {
  width: 26px;
  height: 26px;
  stroke: #0b4ca1;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.badge {
  display: inline-block;
  border: 1px solid rgba(9, 36, 77, 0.2);
  color: #0b4ca1;
  border-radius: 999px;
  font-size: 0.8rem;
  padding: 6px 12px;
  margin-bottom: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 11px 18px;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
}

.btn.primary {
  border: 0;
  background: linear-gradient(130deg, var(--primary), var(--secondary));
}

.btn.ghost {
  background: rgba(9, 36, 77, 0.03);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.abstract-panel {
  min-height: 330px;
  overflow: hidden;
}

.abstract-panel svg {
  width: 100%;
  height: 100%;
  display: block;
}

.abstract-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.abstract-panel::before,
.abstract-panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(6px);
}

.abstract-panel::before {
  width: 190px;
  height: 190px;
  background: rgba(42, 161, 223, 0.25);
  top: -30px;
  right: -40px;
}

.abstract-panel::after {
  width: 240px;
  height: 240px;
  background: rgba(11, 76, 161, 0.24);
  bottom: -80px;
  left: -80px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}

.table th,
.table td {
  text-align: left;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  color: var(--muted);
}

.table th {
  color: var(--text);
}

form {
  display: grid;
  gap: 12px;
}

label {
  font-size: 0.9rem;
  color: #1d4278;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.98);
  color: #0a2348;
  border-radius: 12px;
  padding: 12px;
  font-size: 0.95rem;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 15px 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 46px;
  margin-top: 40px;
  background: rgba(255, 255, 255, 0.85);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
}

.footer-group h4 {
  margin: 0 0 8px;
  font-size: 0.98rem;
  color: var(--text);
}

.footer-group a,
.footer-group p {
  display: block;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-group a:hover {
  color: var(--primary);
}

.footer-meta {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
}

.muted {
  color: var(--muted);
}

/* Floating chat widget */
.chat-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
}

.chat-toggle {
  border: 0;
  padding: 12px 14px;
  border-radius: 999px;
  color: white;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(130deg, #3db8ff, #6f7bff);
  box-shadow: 0 8px 24px rgba(61, 184, 255, 0.35);
}

.chat-box {
  width: min(360px, 85vw);
  border: 1px solid var(--border);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 10px;
  display: none;
}

.chat-box.open {
  display: block;
}

.chat-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}

.chat-messages {
  max-height: 240px;
  overflow: auto;
  padding: 10px 14px;
  display: grid;
  gap: 8px;
}

.msg {
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.9rem;
}

.msg.bot {
  background: rgba(11, 76, 161, 0.12);
}

.msg.user {
  background: rgba(42, 161, 223, 0.22);
  text-align: right;
}

.chat-input {
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  padding: 10px;
}

.chat-input input {
  flex: 1;
}

.form-status {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.92rem;
}

.form-status.ok {
  border: 1px solid rgba(18, 120, 57, 0.24);
  background: rgba(18, 120, 57, 0.08);
  color: #146235;
}

.form-status.error {
  border: 1px solid rgba(160, 28, 51, 0.24);
  background: rgba(160, 28, 51, 0.08);
  color: #84182c;
}

.legal-list {
  display: grid;
  gap: 6px;
}

/* .auto-content {
  margin: 24px 0 10px;
} */

.btnColorFor {
  color: white;
}

.auto-content h2 {
  margin-bottom: 10px;
  text-align: center;
}

.auto-content > p {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 16px;
}

.auto-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.auto-content-grid .card {
  padding: 18px;
  min-height: 190px;
}

.content-divider {
  margin: 30px 0;
  height: 1px;
  border: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(9, 36, 77, 0.24),
    transparent
  );
}

@media (max-width: 860px) {
  .header-row {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }
  .nav-links {
    justify-content: center;
  }
  .btn-row {
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.hero-card {
  background-color: transparent;
  border: none !important;
  box-shadow: none;
  position: static;
}
