:root {
  --tb-blue: #0054a8;
  --tb-blue-dark: #00468f;
  --tb-green: #86c832;
  --tb-green-dark: #72b326;
  --tb-white: #ffffff;
  --tb-page: #f2f2f2;
  --tb-border: #c8d6e6;
  --tb-text: #003f8f;
  --tb-muted: #6f7f90;
  --tb-shadow: 0 14px 40px rgba(0, 45, 95, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--tb-page);
  color: var(--tb-text);
}

.tb-page-shell {
  min-height: 100vh;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(0, 84, 168, 0.06), transparent 34%),
    var(--tb-page);
}

.tb-demo-button {
  border: 1px solid var(--tb-border);
  background: var(--tb-white);
  color: var(--tb-blue);
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 45, 95, 0.08);
}

.tb-age-cover {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 37, 77, 0.68);
  backdrop-filter: blur(4px);
}

.tb-age-cover.is-visible {
  display: flex;
}

.tb-age-card {
  width: min(440px, 100%);
  background: var(--tb-white);
  border-radius: 10px;
  border: 1px solid var(--tb-border);
  box-shadow: var(--tb-shadow);
  overflow: hidden;
  text-align: center;
}

.tb-age-card::before {
  content: "";
  display: block;
  height: 58px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 45%),
    var(--tb-blue);
  border-left: 8px solid var(--tb-green);
}

.tb-age-mark {
  width: 82px;
  height: 82px;
  margin: -41px auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--tb-green);
  color: var(--tb-blue);
  border: 6px solid var(--tb-white);
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(0, 45, 95, 0.22);
}

.tb-age-title {
  margin: 0 26px 10px;
  font-size: 25px;
  line-height: 1.15;
  color: var(--tb-blue);
}

.tb-age-text {
  margin: 0 30px 24px;
  color: #315b8a;
  font-size: 15px;
  line-height: 1.55;
}

.tb-age-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 0 26px 18px;
}

.tb-age-note {
  margin: 0;
  padding: 14px 28px 18px;
  background: #f7f9fc;
  border-top: 1px solid var(--tb-border);
  color: var(--tb-muted);
  font-size: 12px;
  line-height: 1.45;
}

.tb-cookie-panel {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 900;
  width: min(1020px, calc(100% - 32px));
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  background: var(--tb-white);
  border: 1px solid var(--tb-border);
  border-left: 8px solid var(--tb-green);
  border-radius: 9px;
  box-shadow: var(--tb-shadow);
  transform: translateX(-50%);
}

.tb-cookie-panel.is-visible {
  display: flex;
}

.tb-cookie-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tb-cookie-icon {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--tb-blue);
  color: var(--tb-green);
  font-size: 19px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -1px;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.12);
}

.tb-cookie-content {
  max-width: 560px;
}

.tb-cookie-title {
  margin: 0;
  color: var(--tb-blue);
  font-size: 22px;
  line-height: 1.2;
}

.tb-cookie-text {
  margin: 6px 0 0;
  color: #315b8a;
  font-size: 14px;
  line-height: 1.45;
}

.tb-cookie-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.tb-button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.tb-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 45, 95, 0.16);
}

.tb-button-primary {
  background: var(--tb-green);
  color: var(--tb-blue);
}

.tb-button-primary:hover {
  background: var(--tb-green-dark);
}

.tb-button-secondary {
  background: var(--tb-blue);
  color: var(--tb-white);
}

.tb-button-secondary:hover {
  background: var(--tb-blue-dark);
}

.tb-button-outline {
  background: var(--tb-white);
  color: var(--tb-blue);
  border: 1px solid var(--tb-border);
}

.tb-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 37, 77, 0.55);
  backdrop-filter: blur(3px);
}

.tb-cookie-modal.is-visible {
  display: flex;
}

.tb-cookie-window {
  width: min(560px, 100%);
  background: var(--tb-white);
  border-radius: 10px;
  border: 1px solid var(--tb-border);
  box-shadow: var(--tb-shadow);
  overflow: hidden;
}

.tb-cookie-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: var(--tb-blue);
  border-left: 8px solid var(--tb-green);
}

.tb-cookie-head .tb-cookie-title {
  color: var(--tb-white);
}

.tb-cookie-subtitle {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.4;
}

.tb-close-button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--tb-white);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.tb-cookie-list {
  padding: 12px;
}

.tb-cookie-option {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border-bottom: 1px solid var(--tb-border);
  cursor: pointer;
}

.tb-cookie-option:last-child {
  border-bottom: 0;
}

.tb-cookie-option strong {
  display: block;
  color: var(--tb-blue);
  font-size: 15px;
  margin-bottom: 5px;
}

.tb-cookie-option small {
  display: block;
  color: var(--tb-muted);
  font-size: 13px;
  line-height: 1.4;
}

.tb-cookie-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tb-cookie-option i {
  position: relative;
  width: 52px;
  height: 28px;
  border-radius: 999px;
  background: #dce4ee;
  transition: background 0.18s ease;
}

.tb-cookie-option i::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--tb-white);
  box-shadow: 0 2px 6px rgba(0, 45, 95, 0.24);
  transition: transform 0.18s ease;
}

.tb-cookie-option input:checked + i {
  background: var(--tb-green);
}

.tb-cookie-option input:checked + i::after {
  transform: translateX(24px);
}

.tb-cookie-option input:disabled + i {
  background: var(--tb-blue);
}

.tb-cookie-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 20px 20px;
  background: #f7f9fc;
  border-top: 1px solid var(--tb-border);
}

@media (max-width: 820px) {
  .tb-cookie-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .tb-cookie-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .tb-cookie-main {
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .tb-cookie-footer {
    flex-direction: column;
  }

  .tb-button {
    width: 100%;
  }

  .tb-age-title {
    font-size: 22px;
  }
}