:root {
  color-scheme: light;
  --ink: #162033;
  --muted: #5f6f89;
  --paper: #fffdfa;
  --line: #dfe7f2;
  --blue: #1d4ed8;
  --teal: #0f766e;
  --gold: #d9a21b;
  --coral: #b91c1c;
  --green: #2fb344;
  --shadow: 0 24px 70px rgba(31, 49, 88, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(29, 78, 216, 0.08), transparent 30%),
    linear-gradient(180deg, #f6f9ff 0%, #fffdfa 42%, #f4f7ff 100%);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(255, 253, 250, 0.86);
  border-bottom: 1px solid rgba(223, 231, 242, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #14213d, var(--blue));
  border: 2px solid rgba(217, 162, 27, 0.85);
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(21, 94, 239, 0.24);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  margin-top: 2px;
  max-width: 230px;
  line-height: 1.2;
}

nav {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #334155;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  text-decoration: none;
  font-weight: 750;
  line-height: 1.2;
  max-width: max-content;
  white-space: nowrap;
}

.nav-button,
.button,
.buy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.nav-button {
  min-width: 236px;
  white-space: nowrap;
}

.nav-button,
.button.primary,
.buy-button {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #00a6a6);
  box-shadow: 0 14px 32px rgba(21, 94, 239, 0.2);
}

.button.secondary {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 84px);
  padding: clamp(44px, 7vw, 86px) clamp(18px, 5vw, 72px) 40px;
  border-bottom: 1px solid rgba(223, 231, 242, 0.75);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(90deg, rgba(29, 78, 216, 0.06) 0 1px, transparent 1px 84px);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3.4rem, 8vw, 6.7rem);
  line-height: 0.95;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
}

h3 {
  font-size: 1.1rem;
  line-height: 1.2;
}

.hero-text {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 640px;
  margin: 0;
}

.hero-stats div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.hero-stats dt {
  font-size: 1.45rem;
  font-weight: 950;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: min(92%, 520px);
  aspect-ratio: 0.95;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.22), rgba(217, 162, 27, 0.24));
  transform: rotate(-4deg) translate(-12px, 10px);
  z-index: 0;
}

.hero-visual::after {
  content: "";
  position: absolute;
  width: min(70%, 400px);
  height: 78px;
  right: 4%;
  top: 4%;
  background: linear-gradient(90deg, #14213d, #1d4ed8);
  border-radius: 999px;
  opacity: 0.14;
  z-index: 0;
}

.hero-photo {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  aspect-ratio: 0.95;
  object-fit: cover;
  border: 12px solid #fff;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.hero-badge {
  position: absolute;
  display: grid;
  gap: 4px;
  max-width: 230px;
  padding: 16px 18px;
  color: #14213d;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(223, 231, 242, 0.95);
  border-left: 6px solid var(--gold);
  border-radius: 16px;
  box-shadow: 0 18px 46px rgba(20, 33, 61, 0.18);
  z-index: 2;
}

.hero-badge strong {
  font-size: 1rem;
}

.hero-badge span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.badge-top {
  top: 10%;
  left: 0;
}

.badge-bottom {
  right: 0;
  bottom: 13%;
}

.hero-panel {
  position: absolute;
  z-index: 2;
  left: 9%;
  bottom: 2%;
  display: grid;
  gap: 5px;
  width: min(74%, 360px);
  padding: 18px;
  color: #fff;
  background: linear-gradient(135deg, rgba(20, 33, 61, 0.94), rgba(29, 78, 216, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  box-shadow: 0 20px 54px rgba(20, 33, 61, 0.28);
}

.hero-panel span,
.hero-panel small {
  color: #dbe7ff;
}

.hero-panel span {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-panel strong {
  font-size: 1.2rem;
}

.hero-panel small {
  line-height: 1.45;
}

.trust-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 18px clamp(18px, 5vw, 72px);
  background: linear-gradient(90deg, #14213d, #1d3557);
}

.trust-band span {
  padding: 10px 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-weight: 850;
}

.social-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(26px, 4vw, 42px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(135deg, rgba(217, 162, 27, 0.18), rgba(29, 78, 216, 0.12)),
    #ffffff;
  border-bottom: 1px solid var(--line);
}

.social-strip h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
}

.share-buttons,
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-button,
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  color: #fff;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(20, 33, 61, 0.14);
}

.share-button.facebook,
.footer-social a:nth-child(1) {
  background: #1877f2;
}

.share-button.instagram,
.footer-social a:nth-child(2) {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
}

.share-button.linkedin,
.footer-social a:nth-child(3) {
  background: #0a66c2;
}

.section {
  padding: clamp(52px, 7vw, 94px) clamp(18px, 5vw, 72px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr);
  gap: 32px;
  align-items: end;
}

.intro p:last-child,
.faq p,
.steps p,
.exam-card p {
  color: var(--muted);
  line-height: 1.6;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.search-box {
  display: grid;
  gap: 8px;
  min-width: min(100%, 340px);
  color: var(--muted);
  font-weight: 850;
}

.search-box input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
}

.search-box input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.12);
}

.category-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 6px;
  overflow-x: auto;
}

.tab {
  min-height: 42px;
  padding: 0 16px;
  color: #334155;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}

.tab.active {
  color: #fff;
  background: #14213d;
  border-color: #14213d;
}

.exam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 24px;
}

.exam-card {
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 8px solid var(--accent);
  border-radius: 20px;
  box-shadow: 0 18px 46px rgba(31, 49, 88, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.exam-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 58px rgba(31, 49, 88, 0.16);
}

.exam-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 20px;
  object-fit: cover;
  background: #f4f7fb;
  border-radius: 16px;
}

.thumb-fallback {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent), white 16%), #fff1b8);
}

.thumb-fallback span {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border-radius: 18px;
  font-size: 2rem;
  font-weight: 950;
}

.exam-card[hidden] {
  display: none;
}

.card-top,
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.level,
.price,
.card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.level {
  color: #fff;
  background: var(--accent);
}

.price {
  color: #14213d;
  background: #fff1b8;
}

.exam-card h3 {
  margin: 24px 0 12px;
  font-size: 1.28rem;
  line-height: 1.28;
}

.exam-card p {
  flex: 1;
  font-size: 1rem;
}

.card-meta {
  margin: 18px 0;
}

.card-meta span {
  color: var(--muted);
  background: #f4f7fb;
}

.buy-button {
  width: 100%;
}

.catalog-social {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  margin: 0 0 16px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #f8fbff, #fff8dc);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.catalog-social span {
  color: #334155;
  font-size: 0.86rem;
  font-weight: 900;
}

.facebook-like-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px 0 7px;
  color: #fff;
  background: #1877f2;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(24, 119, 242, 0.22);
}

.facebook-like-button strong {
  color: #fff;
  font-size: 0.86rem;
  line-height: 1;
}

.facebook-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #1877f2 !important;
  background: #fff;
  border-radius: 50%;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem !important;
  font-weight: 900 !important;
}

.steps {
  background: #fff;
}

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

.step-grid article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f6fbff);
}

.step-grid span {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: 50%;
  font-weight: 950;
}

.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1fr);
  gap: 36px;
}

.legal-section {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(300px, 1fr);
  gap: 36px;
  background: #fff;
}

.legal-card {
  padding: clamp(22px, 4vw, 34px);
  color: var(--muted);
  background: linear-gradient(180deg, #ffffff, #f7faff);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(31, 49, 88, 0.08);
}

.legal-card p {
  line-height: 1.7;
}

.legal-card p:last-child {
  margin-bottom: 0;
  color: #8a4b10;
  font-weight: 750;
}

.chatbot-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(260px, 0.5fr) auto;
  gap: 24px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(29, 78, 216, 0.1)),
    #ffffff;
  border-top: 1px solid var(--line);
}

.chatbot-intro h2 {
  margin-bottom: 0;
}

.chatbot-intro p {
  color: var(--muted);
  line-height: 1.65;
}

.chatbot {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: min(94vw, 390px);
  pointer-events: none;
}

.chatbot-toggle,
.chatbot-panel {
  pointer-events: auto;
}

.chatbot-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  margin-left: auto;
  padding: 8px 16px 8px 8px;
  color: #fff;
  background: linear-gradient(135deg, #14213d, #1d4ed8);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 18px 44px rgba(20, 33, 61, 0.28);
  font-weight: 900;
  cursor: pointer;
}

.chatbot-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #14213d;
  background: #fff1b8;
  border-radius: 50%;
  font-weight: 950;
}

.chatbot-panel {
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(20, 33, 61, 0.26);
}

.chatbot-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  color: #fff;
  background: linear-gradient(135deg, #14213d, #1d4ed8);
}

.chatbot-headshot {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  object-fit: cover;
  background: #fff;
  border: 3px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
}

.chatbot-headshot-fallback {
  display: none;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  place-items: center;
  color: #14213d;
  background: #fff1b8;
  border: 3px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  font-weight: 950;
}

.chatbot-header strong,
.chatbot-header span {
  display: block;
}

.chatbot-header span {
  margin-top: 3px;
  color: #dbe7ff;
  font-size: 0.88rem;
  font-weight: 750;
}

.chatbot-close {
  display: grid;
  width: 34px;
  height: 34px;
  margin-left: auto;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 0;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
}

.voice-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #fff8dc;
  border-bottom: 1px solid var(--line);
}

.voice-note span {
  color: #72540d;
  font-size: 0.86rem;
  font-weight: 900;
}

.voice-toggle {
  min-height: 30px;
  padding: 0 10px;
  color: #fff;
  background: #0f766e;
  border: 0;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.chatbot-messages {
  display: grid;
  gap: 12px;
  max-height: 340px;
  padding: 16px;
  overflow-y: auto;
  background: #f7faff;
}

.bot-message,
.user-message {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 16px;
}

.bot-message {
  background: #fff;
  border: 1px solid var(--line);
}

.bot-message strong {
  display: block;
  margin-bottom: 5px;
  color: #1d4ed8;
}

.bot-message p,
.user-message p {
  margin: 0;
  line-height: 1.55;
}

.user-message {
  justify-self: end;
  color: #fff;
  background: #0f766e;
}

.chatbot-prompts {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

.chatbot-prompts button {
  min-height: 34px;
  padding: 0 11px;
  color: #334155;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}

.chatbot-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.chatbot-form input {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
}

.chatbot-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12);
}

.chatbot-form button {
  min-height: 44px;
  padding: 0 14px;
  color: #fff;
  background: #1d4ed8;
  border: 0;
  border-radius: 14px;
  font-weight: 900;
  cursor: pointer;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

summary {
  font-weight: 900;
  cursor: pointer;
}

details p {
  margin: 12px 0 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 36px clamp(18px, 5vw, 72px);
  color: #dbe7ff;
  background: #14213d;
}

.footer p {
  margin: 8px 0 0;
  color: #aebdd4;
}

.footer a {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-weight: 850;
}

.footer-social a {
  margin-top: 10px;
}

.notice-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.notice-card {
  width: min(100%, 720px);
  padding: clamp(28px, 6vw, 54px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.notice-card h1 {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
}

.notice-card p {
  color: var(--muted);
  line-height: 1.6;
}

.admin-page {
  min-height: 100vh;
}

.admin-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(360px, 1fr);
  gap: 22px;
  padding: clamp(24px, 5vw, 60px);
}

.admin-panel {
  padding: clamp(22px, 4vw, 34px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(31, 49, 88, 0.08);
}

.full-width-panel {
  grid-column: 1 / -1;
}

.admin-panel h1 {
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 5vw, 4.3rem);
}

.admin-panel h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.admin-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.admin-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.admin-grid-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-weight: 850;
}

.admin-form input,
.admin-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
}

.admin-form input[type="color"] {
  min-height: 48px;
  padding: 6px;
}

.admin-form input:focus,
.admin-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.12);
}

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

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.current-file {
  margin: 0;
  padding: 12px 14px;
  background: #f4f7fb;
  border-radius: 14px;
}

.form-error,
.form-success {
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 850;
}

.form-error {
  color: #991b1b !important;
  background: #fee2e2;
}

.form-success {
  color: #166534 !important;
  background: #dcfce7;
}

.compact-heading {
  margin-bottom: 18px;
}

.analytics-panel {
  background:
    linear-gradient(135deg, rgba(29, 78, 216, 0.08), rgba(217, 162, 27, 0.12)),
    #fff;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.analytics-grid article {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(31, 49, 88, 0.08);
}

.analytics-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.analytics-grid strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

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

.analytics-list {
  padding: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.analytics-list h3 {
  margin-bottom: 14px;
}

.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #edf2f8;
}

.metric-row span {
  color: var(--muted);
}

.metric-row strong {
  color: var(--ink);
}

.recent-visits {
  margin-top: 14px;
}

.admin-table {
  display: grid;
  gap: 10px;
}

.category-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.category-manager {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.category-row strong,
.category-row span {
  display: block;
}

.category-row span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.9rem;
}

.category-row form {
  margin: 0;
}

.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.admin-row strong,
.admin-row span {
  display: block;
}

.admin-row span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.9rem;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.row-actions form {
  margin: 0;
}

.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  color: #fff;
  background: #14213d;
  border: 0;
  border-radius: 999px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.mini-button.danger {
  background: #be123c;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .social-strip,
  .intro,
  .faq,
  .legal-section,
  .chatbot-intro {
    grid-template-columns: 1fr;
  }

  .social-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 420px;
  }

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

  .admin-shell {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .hero-stats,
  .step-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-visual {
    min-height: 360px;
  }

  .hero-photo {
    border-radius: 24px;
  }

  .hero-badge {
    font-size: 0.86rem;
  }

  .hero-panel {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    margin-top: -34px;
  }

  .chatbot {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .chatbot-messages {
    max-height: 300px;
  }

  .admin-grid-form,
  .category-form {
    grid-template-columns: 1fr;
  }

  .analytics-grid,
  .analytics-columns {
    grid-template-columns: 1fr;
  }

  .admin-row,
  .category-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
