﻿

/* Mobile-first shell capped at a comfortable 480px reading width. */
:root {
  --layout-max: 480px;
  --page-pad: 16px;
  --page-bg: #418a71;
  --surface: #ffffff;
  --surface-soft: #f7faf8;
  --ink: #172321;
  --muted: #52615d;
  --line: #dce6e2;
  --brand: #0f8b63;
  --brand-dark: #086a4b;
  --brand-soft: #e8f6f0;
  --navy: #17324d;
  --gold: #f4b740;
  --danger: #d95050;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 10px 28px rgba(22, 50, 45, 0.08);
  --shadow-strong: 0 16px 40px rgba(16, 39, 34, 0.14);
  --site-header-height: 112px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  min-width: 320px;
  background: #268767;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--site-header-height) + 14px);
  -webkit-text-size-adjust: 100%;
}

body {
  width: min(100%, var(--layout-max));
  min-height: 100vh;
  margin: 0 auto;
  padding: 0;
  overflow-x: hidden;
  background: var(--page-bg);
  color: var(--ink);
  font-family: "Segoe UI Variable Text", "Segoe UI", "Noto Sans", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.74;
  letter-spacing: 0.002em;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
  box-shadow: 0 0 0 1px rgba(23, 50, 77, 0.05), 0 0 48px rgba(23, 50, 77, 0.09);
}

body.bottom-action-bar-closed { padding-bottom: 0; }
img, svg { max-width: 100%; }
img { height: auto; vertical-align: middle; }
button, a { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
a, button, summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid rgba(15, 139, 99, 0.28); outline-offset: 3px; }
::selection { background: #ccecdf; color: #0a3b2c; }

/* Shared layout helpers */
.container {
  width: 100% !important;
  max-width: var(--layout-max) !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding-right: var(--page-pad) !important;
  padding-left: var(--page-pad) !important;
}
.row { display: flex; flex-wrap: wrap; margin: 0; }
.row > *, .col-12, .col-lg-6 { width: 100% !important; max-width: 100%; padding: 0; }
.d-flex { display: flex !important; }
.justify-content-center { justify-content: center !important; }
.align-items-center { align-items: center !important; }
.text-center { text-align: center !important; }
.me-2 { margin-right: 0.5rem !important; }
.ms-3 { margin-left: 0.8rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 0.8rem !important; padding-bottom: 0.8rem !important; }
.py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-5 { padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; }
.img-fluid { display: block; width: auto; max-width: 100%; height: auto; }
.rounded-2 { border-radius: 10px !important; }
.rounded-5 { border-radius: 16px !important; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 7px 22px rgba(17, 47, 40, 0.08);
  backdrop-filter: blur(14px);
}
.app-install-bar {
  display: flex;
  align-items: center;
  min-height: 52px;
  gap: 9px;
  padding: calc(7px + env(safe-area-inset-top)) 10px 7px;
  background: var(--navy);
  color: #fff;
}
.app-install-bar__close, .bottom-action-bar__close {
  display: inline-grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #dce7ed;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.app-install-bar__icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
}
.app-install-bar__copy {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1;
}
.app-install-bar__title {
  overflow: hidden;
  color: #c9d6dc;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.app-install-bar__amount { margin-top: 3px; color: #ffe08a; font-size: 14px; font-weight: 850; }
.app-install-bar__button {
  display: inline-flex;
  min-height: 36px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff !important;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
}
.site-nav { display: flex; min-height: 58px; align-items: center; gap: 8px; padding: 7px 10px; }
.site-nav__toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--brand-dark);
  cursor: pointer;
}
.site-nav__toggle-icon { display: none; }
.site-nav__toggle::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 11px;
  width: 22px;
  height: 18px;
  background:
    linear-gradient(currentColor, currentColor) left top / 22px 2.5px no-repeat,
    linear-gradient(currentColor, currentColor) left center / 18px 2.5px no-repeat,
    linear-gradient(currentColor, currentColor) left bottom / 14px 2.5px no-repeat;
}
.site-nav__toggle::after { display: none; }
.site-nav__logo { display: inline-flex; min-width: 0; flex: 0 1 112px; align-items: center; }
.site-nav__logo img { display: block; width: auto; max-width: 100%; height: 38px; object-fit: contain; }
.site-nav__actions { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; margin-left: auto; }
.site-nav__register-wrap { position: relative; display: inline-flex; }
.site-nav__cta {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
}
.site-nav__cta--login { border-color: #cbdad5; background: #fff; color: var(--brand-dark) !important; }
.site-nav__cta--register { background: var(--brand); color: #fff !important; }
.site-nav__badge {
  position: absolute;
  top: -7px;
  right: -5px;
  padding: 2px 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--gold);
  color: #483100;
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
}
.site-menu { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 0 10px 10px; background: #fff; }
.site-header.is-menu-open .site-menu { display: grid; animation: menu-in 160ms ease-out; }
.site-menu a {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--navy) !important;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none !important;
}
.site-menu a[aria-current="page"] { border-color: #acd7c7; background: var(--brand-soft); color: var(--brand-dark) !important; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

/* Breadcrumb */
.nt-breadcrumb { padding: 11px var(--page-pad) 0; }
.nt-breadcrumb ol { display: flex; flex-wrap: nowrap; gap: 5px; margin: 0; padding: 0; overflow: hidden; color: var(--muted); font-size: 12px; list-style: none; white-space: nowrap; }
.nt-breadcrumb li { min-width: 0; flex: 0 0 auto; }
.nt-breadcrumb li:last-child { overflow: hidden; flex: 1 1 auto; text-overflow: ellipsis; }
.nt-breadcrumb li + li::before { content: "/"; margin-right: 5px; color: #a5b0ad; }

/* Shared buttons */
.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 0;
  border-radius: 12px;
  color: #fff !important;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(8, 106, 75, 0.16);
}
.btn-lg { min-height: 48px; padding: 13px 20px; font-size: 16px; }
.btn-success, .btn-primary { background: var(--brand) !important; }
.btn:hover, .app-install-bar__button:hover, .site-nav__cta--register:hover { background: var(--brand-dark) !important; color: #fff !important; }

/* Footer and fixed actions */
.bg-primary { margin-top: 6px; background: var(--navy) !important; color: #fff; }
.bg-primary h4 { margin: 0 0 9px; color: #fff; font-size: 16px; }
.bg-primary .d-flex { flex-direction: column; }
.bg-primary .ms-3 { margin-left: 0 !important; text-align: center; }
.site-footer { padding: 24px var(--page-pad) 18px; background: #11283d; color: #cbd7dd; }
.site-footer__nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.site-footer__group-label { display: block; margin-bottom: 8px; color: #fff; font-size: 12px; font-weight: 850; letter-spacing: 0.04em; }
.site-footer__list { margin: 0; padding: 0; list-style: none; }
.site-footer__list li + li { margin-top: 5px; }
.site-footer__list a { color: #afc1ca !important; font-size: 12px; text-decoration: none !important; }
.site-footer__list a[aria-current="page"] { color: #75d2ae !important; }
.site-footer__meta { margin: 20px 0 0; padding-top: 15px; border-top: 1px solid rgba(255, 255, 255, 0.12); color: #9fb1ba; font-size: 11px; line-height: 1.6; }
.site-footer__meta strong { color: #fff; }
.nt-footer-note { margin: 0; padding: 14px var(--page-pad) calc(80px + env(safe-area-inset-bottom)); background: #0d2031; color: #aebdc4; font-size: 11px; line-height: 1.55; }
.bottom-action-bar-closed .nt-footer-note { padding-bottom: 16px; }
.nt-footer-note strong { color: #ffd36d; }
.bottom-action-bar {
  position: fixed;
  right: auto;
  bottom: 0;
  left: 50%;
  z-index: 1100;
  display: grid;
  width: min(100%, var(--layout-max));
  grid-template-columns: 1fr 1fr 30px;
  gap: 8px;
  padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -8px 24px rgba(17, 47, 40, 0.1);
  backdrop-filter: blur(14px);
}
.bottom-action-bar__button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; border: 1px solid var(--brand); border-radius: 11px; font-size: 14px; font-weight: 850; text-decoration: none !important; }
.bottom-action-bar__button--login { background: #fff; color: var(--brand-dark) !important; }
.bottom-action-bar__button--register { background: var(--brand); color: #fff !important; }
.bottom-action-bar__close { align-self: center; background: #eef3f1; color: #687572; }
[hidden] { display: none !important; }

@media (max-width: 380px) {
  :root { --page-pad: 12px; }
  .site-nav { gap: 6px; padding-right: 8px; padding-left: 8px; }
  .site-nav__logo { flex-basis: 88px; }
  .site-nav__logo img { height: 33px; }
  .site-nav__cta { padding-right: 10px; padding-left: 10px; font-size: 11px; }
  .app-install-bar__icon { display: none; }
  .app-install-bar__button { padding-right: 10px; padding-left: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
