@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg: #e8f2ff;
  --bg-deep: #d9ebff;
  --panel: #ffffff;
  --blue-900: #0c2b5a;
  --blue-700: #1a4c9a;
  --blue-500: #2f7ff0;
  --blue-400: #4aa3ff;
  --blue-200: #b6d9ff;
  --accent: #ff4e8a;
  --accent-2: #ff7aa2;
  --text: #13233f;
  --muted: #5f6f8b;
  --shadow: 0 14px 30px rgba(14, 46, 92, 0.14);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --sidebar-width: 280px;
  --gap: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 80% -10%, #cbe5ff 0%, transparent 70%),
    radial-gradient(800px 500px at 10% 20%, #e3f2ff 0%, transparent 60%),
    var(--bg);
  overflow-x: hidden;
}

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

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

.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-width);
  height: 100vh;
  padding: 22px 18px;
  background: #fff;
  border-right: 1px solid #d7e6ff;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 20;
  overflow: hidden;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  width: 100%;
}

.logo-link img {
  width: 150px;
  height: auto;
}

.sidebar-actions {
  display: grid;
  gap: 10px;
}

.sidebar-actions .btn {
  width: 100%;
  min-height: 44px;
}

.lang-switch {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lang-select {
  width: 100%;
  display: flex;
  justify-content: center;
}

.lang-select--compact {
  display: none !important;
}

.lang-select--full {
  display: flex;
}

.lang-select-input {
  appearance: none;
  border: 1px solid #e1ecff;
  background: #f0f6ff;
  color: var(--blue-700);
  font-weight: 700;
  font-size: 12px;
  padding: 8px 36px 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, #2f7ff0 50%),
    linear-gradient(135deg, #2f7ff0 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 2px),
    calc(100% - 11px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  min-width: 160px;
}

.lang-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-dropdown-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #e1ecff;
  background: #f0f6ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(46, 109, 210, 0.12);
}

.lang-dropdown-toggle--full {
  width: auto;
  height: auto;
  min-height: 40px;
  border-radius: 999px;
  padding: 8px 38px 8px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-700);
  gap: 8px;
  background-image: linear-gradient(45deg, transparent 50%, #2f7ff0 50%),
    linear-gradient(135deg, #2f7ff0 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 2px),
    calc(100% - 11px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e1ecff;
  box-shadow: 0 16px 40px rgba(18, 67, 138, 0.18);
  z-index: 40;
}

.lang-dropdown-menu--full {
  min-width: 190px;
  padding: 10px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

.lang-dropdown.open .lang-dropdown-menu {
  display: flex;
}

.lang-dropdown-menu a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: #f5f9ff;
  border: 1px solid transparent;
}

.lang-dropdown-menu--full a {
  width: 100%;
  height: auto;
  border-radius: 12px;
  padding: 8px 10px;
  justify-content: flex-start;
  gap: 8px;
  font-size: 13px;
}

.lang-dropdown-menu a.active {
  border-color: #2f7ff0;
  box-shadow: inset 0 0 0 2px rgba(47, 127, 240, 0.25);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #3aa2ff 0%, #2364ff 100%);
  color: #fff;
  box-shadow: 0 10px 18px rgba(47, 127, 240, 0.35);
}

.btn-accent {
  background: linear-gradient(135deg, #ff5c96 0%, #ff2f72 100%);
  color: #fff;
  box-shadow: 0 10px 18px rgba(255, 78, 138, 0.35);
}

.btn-ghost {
  background: #f0f6ff;
  color: var(--blue-700);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(12, 43, 90, 0.2);
}

.sidebar-nav {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 6px;
}

.sidebar-nav a {
  padding: 8px 12px;
  border-radius: 12px;
  background: #f5f9ff;
}

.sidebar-nav a:hover {
  background: #e9f2ff;
  color: var(--blue-700);
}

.sidebar-disclaimer {
  margin-top: auto;
  padding: 12px;
  background: #f4f8ff;
  border-radius: var(--radius-lg);
  font-size: 12px;
  color: var(--muted);
  display: grid;
  gap: 8px;
  justify-items: stretch;
}

.sidebar-disclaimer p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.35;
  text-align: center;
}

.age-badge {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  aspect-ratio: 1 / 1;
  flex: 0 0 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffb6d0 0%, #ff6f9f 55%, #ff3b7a 100%);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 2px solid #ffe3ec;
  box-shadow: 0 8px 16px rgba(255, 78, 138, 0.35);
  line-height: 1;
}

.disclaimer-header {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  text-align: left;
  padding: 8px 10px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #e5efff;
  width: 100%;
}

.disclaimer-text {
  display: grid;
  gap: 2px;
  line-height: 1.1;
}

.disclaimer-header strong {
  font-size: 12px;
  color: var(--blue-700);
  display: block;
}

.disclaimer-header span {
  font-size: 11px;
  color: var(--muted);
  display: block;
}

.content {
  margin-left: var(--sidebar-width);
  padding: 24px 32px 48px;
  width: calc(100% - var(--sidebar-width));
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: var(--gap);
}

.hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10, 34, 78, 0.55), rgba(44, 118, 210, 0.25));
  z-index: 1;
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 24px 28px;
  text-align: center;
  min-width: 0;
  width: min(560px, 92%);
  box-shadow: 0 20px 40px rgba(14, 46, 92, 0.2);
  z-index: 2;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--blue-700);
  margin-bottom: 8px;
}

.hero h1 {
  font-family: 'Baloo 2', cursive;
  margin: 0 0 10px;
  font-size: 32px;
  color: var(--blue-900);
}

.hero p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.accordion {
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow);
}

.accordion summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--blue-700);
  list-style: none;
}

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

.accordion summary::after {
  content: '▾';
  float: right;
  color: var(--blue-500);
}

.accordion[open] summary::after {
  content: '▴';
}

.accordion-body {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.accordion-body a {
  padding: 8px 12px;
  background: #f3f7ff;
  border-radius: 999px;
  font-size: 13px;
  color: var(--blue-700);
}

.panel {
  background: var(--panel);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.panel h2 {
  margin: 0;
  font-family: 'Baloo 2', cursive;
  font-size: 26px;
}

.panel h3 {
  margin: 0;
  font-size: 18px;
  color: var(--blue-700);
}

.panel p {
  margin: 0;
  line-height: 1.65;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table th, table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #e7effc;
}

table th {
  font-weight: 700;
  color: var(--blue-700);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef5ff;
  font-size: 12px;
  color: var(--blue-700);
  font-weight: 600;
}

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

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

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

.slot-card {
  background: #f8fbff;
  border-radius: var(--radius-lg);
  padding: 0;
  position: relative;
  display: grid;
  gap: 10px;
  box-shadow: 0 10px 20px rgba(18, 56, 110, 0.12);
  overflow: hidden;
}

.slot-card img {
  margin: 0;
  width: 100%;
  border-radius: 0;
  aspect-ratio: 2 / 3;
  height: auto;
  object-fit: cover;
}

.slot-card-content {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: grid;
  gap: 8px;
  color: #fff;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.slot-card strong {
  font-weight: 700;
  color: #fff;
}

.slot-card .btn {
  width: 100%;
  background: rgba(12, 43, 90, 0.75);
  color: #fff;
  box-shadow: none;
}

.cta-banner {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 28px;
  color: #fff;
  overflow: hidden;
  min-height: 220px;
  display: grid;
  align-items: center;
  box-shadow: var(--shadow);
  background-size: cover;
  background-position: center;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10, 34, 78, 0.75), rgba(44, 118, 210, 0.3));
}

.cta-banner .cta-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  display: grid;
  gap: 12px;
}

.cta-banner h3 {
  margin: 0;
  font-family: 'Baloo 2', cursive;
  font-size: 26px;
}

.cta-banner p {
  margin: 0;
  color: #e6f1ff;
}

.auth-shots {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.auth-card {
  background: #f5f9ff;
  border-radius: 24px;
  padding: 14px;
  box-shadow: 0 16px 35px rgba(23, 82, 158, 0.12);
  border: 1px solid #e1ecff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

.auth-card figcaption {
  text-align: center;
  font-weight: 700;
  color: var(--blue-700);
}

.feature-list {
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

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

.kpi-card {
  background: #f4f8ff;
  border-radius: var(--radius-lg);
  padding: 16px;
  display: grid;
  gap: 6px;
}

.kpi-card span {
  font-size: 12px;
  color: var(--muted);
}

.kpi-card strong {
  font-size: 18px;
  color: var(--blue-700);
}

.faq details {
  background: #f6f9ff;
  border-radius: 16px;
  padding: 12px 16px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.footer {
  margin-top: 24px;
  padding: 24px;
  background: #f4f8ff;
  border-radius: var(--radius-xl);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: #0e2e5c;
  color: #fff;
  padding: 14px 18px;
  border-radius: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  max-width: 92%;
  box-shadow: 0 16px 30px rgba(12, 43, 90, 0.4);
  z-index: 100;
}

.cookie-banner p {
  margin: 0;
  font-size: 13px;
  color: #d7e6ff;
}

.cookie-banner .btn {
  padding: 8px 14px;
  font-size: 13px;
  background: #ffffff;
  color: var(--blue-700);
}

.page-hero {
  background: linear-gradient(120deg, #2f7ff0, #3aa2ff);
  color: #fff;
  padding: 24px 28px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0;
  font-family: 'Baloo 2', cursive;
  font-size: 30px;
}

.page-hero p {
  margin: 8px 0 0;
  color: #e5f1ff;
}

@media (max-width: 1100px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .slots-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .kpi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .layout {
    flex-direction: column;
    align-items: stretch;
  }
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas:
      ". logo lang"
      "actions actions actions";
    align-items: center;
    padding: 16px 18px;
    border-right: none;
    border-bottom: 1px solid #d7e6ff;
    gap: 12px;
    overflow: visible;
  }
  .lang-dropdown {
    z-index: 120;
  }
  .lang-dropdown-menu {
    z-index: 130;
  }
  .content {
    position: relative;
    z-index: 1;
  }
  .logo-link img {
    width: 130px;
  }
  .logo-link {
    order: 1;
    grid-area: logo;
    width: auto;
    justify-content: center;
    justify-self: center;
  }
  .lang-switch {
    display: flex;
    width: auto;
    justify-content: flex-end;
    order: 2;
    margin-left: 0;
    grid-area: lang;
    justify-self: end;
  }
  .lang-select {
    width: auto;
  }
  .lang-select--full {
    display: none;
  }
  .lang-select--compact {
    display: flex !important;
  }
  .lang-dropdown {
    display: none;
  }
  .lang-dropdown.lang-select--compact {
    display: flex;
  }
  .lang-dropdown.lang-select--full {
    display: none !important;
  }
  .sidebar-actions {
    display: flex;
    gap: 10px;
    width: 100%;
    order: 3;
    grid-area: actions;
  }
  .sidebar-actions .btn {
    flex: 1 1 0;
    white-space: nowrap;
    font-size: 14px;
    padding: 10px 12px;
  }
  .sidebar-nav,
  .sidebar-disclaimer {
    display: none;
  }
  .content {
    margin-left: 0;
    width: 100%;
    padding: 18px 18px 48px;
  }
  .hero-card {
    position: absolute;
    transform: translate(-50%, -50%);
    margin: 0;
    width: min(520px, calc(100% - 32px));
    padding: 18px 20px;
  }
}

@media (max-width: 720px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .auth-grid {
    grid-template-columns: 1fr;
  }
  .slots-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kpi {
    grid-template-columns: 1fr;
  }
  .sidebar-actions {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-bottom: 12px;
  }
  .hero img {
    height: 240px;
    object-fit: cover;
  }
  .hero-card {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: -48px 12px 0;
    width: auto;
    padding: 16px;
    max-width: none;
  }
  .hero h1 {
    font-size: 24px;
  }
  .hero p {
    font-size: 13px;
  }
  .hero-actions .btn {
    padding: 10px 12px;
    font-size: 13px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  .cookie-banner .btn {
    width: 100%;
  }
}
