:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-soft: #eef2f7;
  --text: #1a2433;
  --muted: #5f6f84;
  --primary: #0f2747;
  --primary-2: #173d6d;
  --accent: #c9a24a;
  --accent-soft: #e8d9b4;
  --ok: #1f7a4f;
  --danger: #b33a3a;
  --shadow: 0 12px 30px rgba(15, 39, 71, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1150px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 8% 0%, #edf2fa 0%, transparent 36%),
    radial-gradient(circle at 92% 15%, #f9f3e4 0%, transparent 30%), var(--bg);
  line-height: 1.6;
}

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

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

.container {
  width: min(var(--max), 92%);
  margin: 0 auto;
}

.topbar {
  background: #0b1c32;
  color: #d5e1f1;
  font-size: 0.84rem;
}

.topbar-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.topbar-inner p {
  margin: 0;
}

.topbar-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.topbar-links a {
  color: #f3f7fd;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #dde5f0;
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--primary), var(--primary-2));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.brand-text strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.85rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a.active,
.nav a:hover {
  color: var(--primary);
  background: #eaf0f9;
}

.hero {
  padding: 5.2rem 0 3.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
}

.hero p {
  color: var(--muted);
  margin: 1rem 0 1.4rem;
}

.hero-highlights {
  margin-top: 1rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.hero-highlights span {
  background: #eef3fb;
  color: #223b5d;
  border: 1px solid #d5e1f0;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-soft {
  background: #e8eef8;
  color: var(--primary);
}

.badge {
  display: inline-block;
  background: var(--accent-soft);
  color: #6b541f;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
}

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

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0.2rem 0 0.4rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.section {
  padding: 2.7rem 0;
}

.section h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
}

.section-intro {
  color: var(--muted);
  max-width: 72ch;
}

.kpi-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.kpi {
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  padding: 0.9rem;
}

.kpi strong {
  font-size: 1.25rem;
  color: var(--primary);
}

.hero-rating {
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid #dde6f3;
}

.hero-rating strong {
  color: var(--primary);
}

.hero-rating p {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.section-tight {
  padding-top: 0.6rem;
  padding-bottom: 1.1rem;
}

.trust-strip {
  background: linear-gradient(120deg, #f5f8fd, #fbf7ef);
  border: 1px solid #deE6f3;
  border-radius: 14px;
  padding: 0.85rem 1rem;
}

.trust-strip p {
  margin: 0 0 0.55rem;
  color: #294466;
  font-weight: 600;
}

.trust-items {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.trust-items span {
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d8e2f0;
  color: #345071;
  padding: 0.28rem 0.62rem;
  font-size: 0.8rem;
}

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

.news-card {
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.news-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(120deg, #14345e, #8ea7cc);
  background-image: url("../img/news-generic.svg");
  background-size: cover;
  background-position: center;
}

.news-content {
  padding: 1rem;
}

.meta {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
}

.news-controls {
  display: flex;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.news-controls > div {
  flex: 1;
}

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

.deadline-toolbar-left,
.deadline-toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.deadline-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

.deadline-grid {
  padding: 0.9rem;
}

.calendar-weekdays,
.calendar-cells {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
}

.calendar-weekdays span {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.3rem 0;
}

.calendar-day {
  border: 1px solid #d4ddea;
  border-radius: 10px;
  background: #fff;
  min-height: 86px;
  padding: 0.45rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
}

.calendar-day:hover {
  border-color: #8ea7cc;
  box-shadow: 0 0 0 2px #e6eefb inset;
}

.calendar-day-empty {
  min-height: 86px;
  border-radius: 10px;
  background: #f3f6fb;
}

.calendar-day-today {
  border-color: #5f83bd;
  background: #eef4ff;
}

.calendar-day-num {
  font-weight: 700;
}

.calendar-day-count {
  font-size: 0.8rem;
  color: var(--muted);
}

.deadline-side h3 {
  margin-top: 0;
}

.deadline-upcoming-list {
  margin: 0;
  padding-left: 1rem;
}

.deadline-upcoming-list li {
  margin-bottom: 0.55rem;
}

.deadline-source {
  color: var(--muted);
}

.deadline-day-list {
  margin-top: 1rem;
}

.deadline-item {
  border-bottom: 1px solid #e6edf7;
  padding-bottom: 0.8rem;
  margin-bottom: 0.8rem;
}

.deadline-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.deadline-item h4 {
  margin: 0 0 0.4rem;
}

.testimonial-card p {
  font-size: 0.98rem;
  color: #334c6d;
}

.testimonial-card h3 {
  margin-top: 0.8rem;
  font-size: 0.93rem;
  color: #5a6f89;
}

.cta-banner {
  border-radius: 18px;
  padding: 1.4rem;
  background: linear-gradient(130deg, #102946, #214b7d);
  color: #ebf2fb;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-banner h2 {
  margin: 0;
  color: #fff;
}

.cta-banner p {
  margin: 0.45rem 0 0;
  color: #d8e5f5;
}

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

label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #d4ddea;
  font: inherit;
  color: var(--text);
  background: #fff;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #bcd2f5;
  border-color: #8db0e8;
}

.form-full {
  grid-column: 1 / -1;
}

.alert {
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  margin-top: 0.8rem;
  font-size: 0.92rem;
}

.alert.ok {
  background: #e8f7ef;
  color: var(--ok);
}

.alert.error {
  background: #faeaea;
  color: var(--danger);
}

.site-footer {
  margin-top: 2rem;
  background: #0d203a;
  color: #d7e1ee;
}

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

.footer-grid h4 {
  margin-top: 0;
  color: #fff;
}

.footer-grid a {
  color: #d7e1ee;
}

.footer-bottom {
  border-top: 1px solid #29486f;
  padding: 0.8rem 0 1.3rem;
  color: #aec2db;
  font-size: 0.9rem;
}

.page-title {
  padding: 3.2rem 0 1.2rem;
}

.page-title h1 {
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.map-wrap iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.auth-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hidden {
  display: none;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(960px, 94%);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #d5deec;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(15, 39, 71, 0.18);
  padding: 1.1rem 1.2rem;
  z-index: 120;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  transform: translateX(-50%) translateY(16px);
}

.cookie-banner.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.cookie-banner__content {
  flex: 1;
  min-width: 0;
}

.cookie-banner__eyebrow {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: #7a5c17;
  background: #f4e8c8;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cookie-banner__title {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
}

.cookie-banner__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.75rem;
}

.cookie-banner__links a {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
  padding-right: 2rem;
}

.cookie-banner__close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #eef3fb;
  color: var(--primary);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.cookie-banner__close:hover {
  background: #dde8f8;
}

.fade-up {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.6s ease forwards;
}

.fade-up:nth-child(2) {
  animation-delay: 0.07s;
}

.fade-up:nth-child(3) {
  animation-delay: 0.14s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .auth-wrap,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .deadline-layout {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .nav {
    justify-content: flex-start;
  }

  .card-grid,
  .news-grid,
  .kpi-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding-right: 1rem;
  }

  .cookie-banner__actions {
    width: 100%;
    justify-content: flex-start;
    padding-right: 0;
  }

  .news-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0.45rem 0;
  }

  .topbar-links {
    gap: 0.5rem;
  }

  .deadline-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .calendar-day,
  .calendar-day-empty {
    min-height: 72px;
  }
}
