/* ============================================================
   Testora — ნარინჯისფერი ვერსია (ClassMarker-ის სტილი)
   ============================================================ */

:root {
  --orange: #e8522e;
  --orange-dark: #cf4522;
  --navy: #16324f;
  --navy-2: #21456b;
  --dark: #2d2d2d;
  --dark-2: #3a3a3a;
  --text: #333333;
  --muted: #6f7378;
  --border: #dcdfe3;
  --bg: #ffffff;
  --bg-soft: #f4f5f7;
  --green: #4caf50;
  --blue: #4a90d9;

  --font: "Noto Sans Georgian", Arial, "Segoe UI", system-ui, sans-serif;
  --shadow-card: 0 10px 34px rgba(0, 0, 0, .13);
  --shadow-soft: 0 2px 8px rgba(0, 0, 0, .07);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }

/* ---------------- ღილაკები ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 11px 22px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-outline { background: #fff; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: #b9bec4; background: #fafbfc; }
.btn-white { background: #fff; color: var(--orange); }
.btn-white:hover { background: #f5f5f5; }
.btn-lg { padding: 15px 34px; font-size: 17px; }
.btn-block { width: 100%; }

/* ---------------- ჰედერი: ლოგო + ნავიგაცია + შესვლა ---------------- */
.topbar { background: var(--navy); position: relative; z-index: 40; }
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 70px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
}
.brand .tick {
  width: 24px; height: 24px;
  border: 2px solid #fff;
  border-radius: 3px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.mainnav-inner { display: flex; align-items: center; gap: 4px; }
.mainnav-inner > a {
  color: rgba(255, 255, 255, .92);
  font-size: 15px;
  padding: 8px 15px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mainnav-inner > a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.mainnav-inner > a.active { background: #fff; color: var(--navy); font-weight: 700; }
.caret { font-size: 10px; opacity: .85; }

/* ჩამოსაშლელი მენიუ — გზამკვლევი */
.dropdown { position: relative; display: inline-flex; }
.navlink {
  font: inherit;
  font-size: 15px;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, .92);
  padding: 8px 15px;
  border-radius: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .15s ease, color .15s ease;
}
.navlink:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.navlink[aria-expanded="true"] { background: #fff; color: var(--navy); font-weight: 700; }

.menu-panel {
  position: absolute;
  inset-inline-start: 0;
  top: calc(100% + 14px);
  width: 288px;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--orange);
  border-radius: 5px;
  box-shadow: var(--shadow-card);
  padding: 8px;
  z-index: 60;
  max-height: 74vh;
  overflow-y: auto;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 4px;
  font-size: 14.5px;
  color: var(--text);
}
.menu-item:hover { background: var(--bg-soft); color: var(--orange); }
.menu-item .mi { width: 22px; text-align: center; font-size: 15px; }
.menu-sep { height: 1px; background: var(--border); margin: 7px 12px; }

.head-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.btn-sm { padding: 8px 17px; font-size: 14px; }

/* ჩამოსაშლელი შესვლის პანელი */
.signin-wrap { position: relative; }
.signin-panel {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 14px);
  width: 300px;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-top: 3px solid var(--orange);
  border-radius: 5px;
  box-shadow: var(--shadow-card);
  padding: 18px;
  z-index: 60;
  text-align: start;
}
.signin-panel h4 { font-size: 15px; margin-bottom: 13px; }
.signin-panel input[type="text"],
.signin-panel input[type="email"],
.signin-panel input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 9px;
  border: 1px solid #c9ced4;
  border-radius: 3px;
  font: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--text);
}
.signin-panel input::placeholder { color: #9aa0a6; }
.signin-panel input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232, 82, 46, .12);
}
.signin-panel .stay {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 13px;
}
.signin-panel .stay input { accent-color: var(--orange); }
.signin-foot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.signin-foot a { color: var(--orange); font-weight: 600; }
.signin-foot a:hover { text-decoration: underline; }

/* ---------------- HERO ---------------- */
.hero { position: relative; overflow: hidden; padding: 62px 0 74px; }
.hero-bg {
  position: absolute;
  inset: -40px;
  background:
    radial-gradient(520px 380px at 18% 30%, #b9bec4 0%, transparent 62%),
    radial-gradient(460px 340px at 42% 78%, #8f9aa4 0%, transparent 60%),
    radial-gradient(600px 420px at 78% 26%, #cfd3d6 0%, transparent 64%),
    radial-gradient(420px 300px at 62% 92%, #7e8892 0%, transparent 58%),
    linear-gradient(120deg, #a9aeb3, #c6cacd 55%, #9ba3ab);
  filter: blur(28px) saturate(.55);
  transform: scale(1.06);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.62), rgba(255,255,255,.30));
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 46px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(30px, 3.4vw, 41px);
  font-weight: 700;
  color: #1f1f1f;
  margin-bottom: 22px;
}
.hero p {
  font-size: 16.5px;
  color: #2b2b2b;
  max-width: 470px;
  margin: 0 0 28px;
}
.hero p b { font-weight: 700; }

/* ---------------- ჰერო მაკეტი: დაფა ---------------- */
.hero-visual { position: relative; }
.ai-badge {
  position: absolute;
  top: -20px;
  inset-inline-end: 8px;
  z-index: 5;
  display: inline-flex;
  align-items: stretch;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  font-size: 13px;
  font-weight: 700;
}
.ai-badge .n { background: var(--orange-dark); color: #fff; padding: 7px 12px; }
.ai-badge .t { background: var(--orange); color: #fff; padding: 7px 14px; }

.dash {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  padding: 20px 22px 24px;
  width: 100%;
}
/* ცხრილი ბარათის მარცხნივ რჩება, რომ მონაცემები არ დაიფაროს */
.dash-body { padding-inline-end: 188px; }
.dash-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 18px;
  color: #333;
}
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat-box {
  border: 1px solid #e6e8ea;
  border-radius: 6px;
  padding: 12px 10px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.stat-box b { display: block; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-box .row { display: flex; align-items: center; justify-content: center; gap: 7px; }
.stat-box span { font-size: 12px; color: var(--muted); }
.dot { width: 15px; height: 15px; border-radius: 50%; display: inline-block; }
.dot-green { background: var(--green); }
.dot-blue { background: var(--blue); }
.dot-orange { background: var(--orange); }

.dash-tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid #e6e8ea;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 6px;
}
.dash-tabs span { padding: 9px 2px; }
.dash-tabs .on { color: var(--orange); font-weight: 700; border-bottom: 2px solid var(--orange); }

.result-row {
  display: grid;
  grid-template-columns: 1.45fr 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 11px 2px;
  border-bottom: 1px solid #f0f1f3;
  font-size: 13.5px;
}
.result-row:last-child { border-bottom: 0; }
.result-row > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { height: 7px; border-radius: 4px; background: #eceef0; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 4px; }
.result-row .pct { font-weight: 600; width: 40px; text-align: end; font-variant-numeric: tabular-nums; }
.result-row .time { color: var(--muted); width: 66px; text-align: end; white-space: nowrap; }

.cert-card {
  position: absolute;
  inset-inline-end: -14px;
  top: 30px;
  width: 208px;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  padding: 16px;
  font-size: 12px;
  z-index: 4;
}
.cert-card h4 { font-size: 13px; margin-bottom: 10px; }
.cert-user { display: flex; align-items: center; gap: 6px; color: var(--muted); margin-bottom: 12px; }
.cert-line { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.cert-line b { font-weight: 700; }
.cert-actions { display: flex; gap: 10px; margin: 14px 0 12px; }
.cert-act { flex: 1; text-align: center; }
.cert-act .ico {
  width: 38px; height: 38px;
  margin: 0 auto 6px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 17px;
}
.ico-g { background: #e8f5e9; }
.ico-b { background: #e8f1fb; }
.cert-act span { font-size: 10.5px; color: var(--muted); line-height: 1.3; display: block; }
.cert-feedback {
  border-inline-start: 3px solid var(--green);
  background: #f7f9f8;
  padding: 8px 10px;
  border-radius: 3px;
}
.cert-feedback b { display: block; font-size: 11.5px; margin-bottom: 2px; }
.cert-feedback span { color: var(--muted); font-size: 11px; }

/* ---------------- სანდოობის ზოლი ---------------- */
.band { padding: 8px 0 0; }
.band-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 46px;
  align-items: center;
}
.band-mark {
  text-align: center;
  border-inline-end: 1px solid #e3e5e8;
  padding-inline-end: 46px;
}
.band-mark .est {
  font-size: 11px;
  letter-spacing: .28em;
  color: var(--muted);
  text-transform: uppercase;
}
.band-mark .big {
  font-size: 74px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1.05;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.band-mark .big .circle {
  width: 66px; height: 66px;
  border: 5px solid var(--orange);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 34px;
}
.band-copy h2 { font-size: 27px; margin-bottom: 12px; }
.band-copy p { color: var(--muted); font-size: 16px; max-width: 560px; margin: 0 0 14px; }
.band-copy a { color: var(--orange); font-weight: 700; }
.band-copy a:hover { text-decoration: underline; }

.logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 44px 0 54px;
  flex-wrap: wrap;
}
.logos span {
  color: #9aa0a6;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
}

/* ---------------- ნარინჯისფერი ზოლი ---------------- */
.strip { background: var(--orange); color: #fff; padding: 34px 0; }
.strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}
.strip h2 { font-size: 25px; margin-bottom: 4px; }
.strip p { margin: 0; opacity: .93; }

/* ---------------- ზოგადი სექციები ---------------- */
.section { padding: 68px 0; }
.section.soft { background: var(--bg-soft); border-block: 1px solid #ebedef; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 42px; }
.section-head h2 { font-size: 30px; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 16px; margin: 0; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 10px;
}

/* როლები */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.role-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--orange);
  border-radius: 6px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
}
.role-card h3 { font-size: 19px; margin-bottom: 8px; }
.role-card > p { color: var(--muted); margin: 0 0 16px; font-size: 14.5px; }
.role-ico { font-size: 30px; margin-bottom: 12px; }
.role-list { list-style: none; padding: 0; margin: 0 0 22px; }
.role-list li {
  font-size: 14px;
  color: var(--muted);
  position: relative;
  padding-inline-start: 22px;
  margin-bottom: 7px;
}
.role-list li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: var(--green);
  font-weight: 700;
}
.role-card .btn { margin-top: auto; }

/* ფუნქციები */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 24px; }
.feature .fi {
  width: 42px; height: 42px;
  border-radius: 6px;
  background: #fdece7;
  display: grid; place-items: center;
  font-size: 20px;
  margin-bottom: 12px;
}
.feature h3 { font-size: 16.5px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14px; margin: 0; }

/* ნაბიჯები */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.step { position: relative; }
/* დამაკავშირებელი წყვეტილი ხაზი ნაბიჯებს შორის */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20px;
  inset-inline-start: 54px;
  inset-inline-end: -22px;
  border-top: 2px dashed #f0d5cc;
}
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.step-n {
  width: 40px; height: 40px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 16px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 5px #fff;
}
.step-role {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--orange);
  background: #fdece7;
  padding: 4px 10px;
  border-radius: 3px;
  position: relative;
  z-index: 1;
}
.step h3 { font-size: 18px; margin-bottom: 7px; }
.step p { color: var(--muted); font-size: 14.5px; margin: 0 0 12px; }
.step .meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 11px;
  width: 100%;
}
.step .meta b { color: var(--text); font-weight: 600; }

/* ---------------- Footer ---------------- */
.footer { background: var(--navy); color: #cfd2d5; padding: 46px 0 26px; }
.footer .brand { color: #fff; font-size: 24px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 32px;
}
.footer p { font-size: 14px; color: #a9adb1; max-width: 300px; margin: 12px 0 0; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { font-size: 14px; margin-bottom: 8px; }
.footer li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 18px;
  font-size: 13px;
  color: #9a9ea2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------------- რეგისტრაციის არჩევის ხედი ---------------- */
.reg-page {
  background: linear-gradient(180deg, #f4f5f7, #fbfbfc 60%, #fff);
  padding: 58px 0 80px;
}
.reg-head { text-align: center; margin-bottom: 44px; }
.reg-head h1 { font-size: clamp(24px, 3vw, 33px); margin-bottom: 10px; }
.reg-head p { color: var(--muted); font-size: 17px; margin: 0; }

.reg-cards {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 26px;
  flex-wrap: wrap;
}
.reg-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow-card);
  padding: 26px 30px 32px;
  flex: 0 1 300px;
}
.reg-card.wide { flex: 0 1 600px; }
.reg-card h2 {
  font-size: 19px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.reg-cols { display: grid; gap: 30px; }
.reg-cols.two { grid-template-columns: 1fr 1fr; }
.reg-cols.two .reg-col + .reg-col {
  border-inline-start: 1px solid var(--border);
  padding-inline-start: 30px;
}
.reg-col h3 { font-size: 16px; margin-bottom: 10px; }
.reg-col { display: flex; flex-direction: column; height: 100%; }
.reg-col p { color: var(--muted); font-size: 14.5px; margin: 0 0 22px; min-height: 44px; }
.reg-col .btn { align-self: flex-start; margin-top: auto; }

/* ---------------- აპლიკაციის გარსი (შესული მომხმარებელი) ---------------- */
.app-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 45; }
.app-header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 62px;
  padding-inline: 22px;
}
.app-header .brand { color: #2f2f2f; font-size: 23px; }
.app-header .brand .tick { border-color: var(--orange); color: var(--orange); }
.app-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.pill-upgrade {
  background: #eaf2fb;
  color: #2f6ba8;
  border: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
}
.pill-upgrade:hover { background: #ddeaf8; }
.app-menu { position: relative; }
.app-menu > button {
  background: none;
  border: 0;
  font: inherit;
  font-size: 14.5px;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.app-menu > button:hover { background: var(--bg-soft); }
.app-drop {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 5px;
  box-shadow: var(--shadow-card);
  padding: 6px;
  min-width: 190px;
  z-index: 70;
}
.app-drop button {
  display: block;
  width: 100%;
  text-align: start;
  background: none;
  border: 0;
  font: inherit;
  font-size: 14px;
  padding: 9px 12px;
  border-radius: 4px;
  cursor: pointer;
  color: var(--text);
}
.app-drop button:hover { background: var(--bg-soft); color: var(--orange); }

/* ორსვეტიანი გარსი */
.app-body { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: calc(100vh - 62px); }
.app-side { background: #fff; border-inline-end: 1px solid var(--border); padding: 14px 12px 30px; }
.app-side .s-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  text-align: start;
  background: none;
  border: 0;
  font: inherit;
  font-size: 14.5px;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 5px;
  cursor: pointer;
}
.app-side .s-item:hover { background: var(--bg-soft); }
.app-side .s-item.on { background: #fdece7; color: var(--orange); font-weight: 700; }
.app-side .s-item .ico { width: 20px; display: grid; place-items: center; flex: none; }
.app-side .s-item .ico svg { width: 18px; height: 18px; }
.app-side .s-item .arr { margin-inline-start: auto; font-size: 10px; color: var(--muted); }
.app-side .s-sub { padding-inline-start: 30px; }
.app-side .s-sub .s-item { font-size: 14px; padding: 8px 12px; }
.app-side .s-caps {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 12px 4px;
}
.app-side .s-sep { height: 1px; background: var(--border); margin: 12px 8px; }
.app-main { background: var(--bg-soft); padding: 30px 34px 60px; }
.app-narrow { width: min(960px, 100%); margin-inline: auto; }

/* დეტალების ბარათი */
.check-card { background: #fff; border: 1px solid var(--border); border-radius: 5px; margin-bottom: 34px; }
.check-card .ch-head { padding: 16px 22px; border-bottom: 1px solid var(--border); font-weight: 700; }
.check-card .ch-body { padding: 20px 22px 22px; }
.check-row { display: flex; gap: 14px; margin-bottom: 8px; font-size: 15px; }
.check-row .k { width: 120px; text-align: end; font-weight: 700; color: var(--text); }
.check-note { font-size: 13px; color: var(--muted); margin-top: 14px; padding-inline-start: 134px; }
.check-note a { color: var(--orange); }
.check-note a:hover { text-decoration: underline; }

.welcome-h { font-size: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 30px; }
.ob-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}
.ob-card .ok { margin-inline-start: auto; color: #fff; background: var(--green); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; }
.ob-card .ob-ico { flex: none; display: grid; place-items: center; color: var(--navy); }
.ob-card .ob-ico svg { width: 22px; height: 22px; }
.ob-options { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.ob-opt {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 22px;
  text-align: center;
  flex: 1 1 260px;
}
.ob-opt .oi { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: #eef1f4; color: var(--navy); }
.ob-opt .oi svg { width: 24px; height: 24px; }
.ob-opt h4 { font-size: 16px; margin-bottom: 8px; }
.ob-opt p { font-size: 13.5px; color: var(--muted); margin: 0 0 16px; }
.ob-or { color: var(--muted); font-size: 13px; }
.ob-center { justify-content: center; margin-top: 20px; }
.ob-solo { flex: 0 1 340px; max-width: 360px; }
.ob-narrow { justify-content: center; }
.ob-narrow .ob-opt { flex: 0 1 340px; max-width: 360px; }

/* ---------------- სასკოლო პანელი ---------------- */
.panel-page { background: var(--bg-soft); padding: 34px 0 70px; min-height: 62vh; }
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.panel-head h1 { font-size: 26px; margin-bottom: 6px; }
.panel-head .sub { color: var(--muted); font-size: 14.5px; }

/* გვერდითი ნავიგაცია */
.dash-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 24px; align-items: start; }
.side-nav {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px;
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.side-school { padding: 10px 12px 14px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.side-school b { display: block; font-size: 14px; line-height: 1.35; }
.side-school span { font-size: 12.5px; color: var(--muted); }
.side-nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  text-align: start;
  background: none;
  border: 0;
  font: inherit;
  font-size: 14.5px;
  color: var(--text);
  padding: 11px 13px;
  border-radius: 5px;
  cursor: pointer;
}
.side-nav button:hover { background: var(--bg-soft); }
.side-nav button.on { background: #fdece7; color: var(--orange); font-weight: 700; }
.side-nav button.out { color: var(--muted); }
.side-nav button.out:hover { color: var(--orange); }
.side-nav .ico { width: 20px; text-align: center; }
.side-sep { height: 1px; background: var(--border); margin: 8px 6px; }

.panel-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.tile { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 18px 20px; }
.tile b { display: block; font-size: 26px; font-variant-numeric: tabular-nums; }
.tile span { font-size: 13px; color: var(--muted); }

.panel-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; align-items: start; }
.panel-card { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 22px 24px 24px; }
.panel-card h2 {
  font-size: 17px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.panel-card + .panel-card { margin-top: 22px; }

.ptable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ptable th {
  text-align: start;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
  padding-bottom: 8px;
}
.ptable td { padding: 11px 0; border-top: 1px solid var(--border); vertical-align: middle; }
.ptable td.act { text-align: end; white-space: nowrap; }
.ptable .nm { font-weight: 600; }
.ptable .em { color: var(--muted); font-size: 13px; }

.badge { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); }
.badge.owner { background: #fdece7; color: var(--orange); }
.badge.admin { background: #e8f1fb; color: #2f6ba8; }
.badge.pending { background: #fff4e0; color: #a5710f; }
.badge.student { background: #e6f4ec; color: #2e7d54; }

.linkbtn { background: none; border: 0; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; padding: 2px 4px; }
.linkbtn:hover { color: var(--orange); text-decoration: underline; }

.mini-form { display: grid; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.mini-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-form input,
.mini-form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #c9ced4;
  border-radius: 3px;
  font: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--text);
}
.mini-form input:focus,
.mini-form select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,82,46,.12); }
.empty { color: var(--muted); font-size: 14px; padding: 14px 0; }

/* --- პანელის დამატებითი ელემენტები --- */
.mono { font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 13px; }
.pw-dot { letter-spacing: 1px; color: var(--muted); }
.pw-dot[data-pw] { cursor: pointer; border-bottom: 1px dashed var(--border); }
.pw-dot[data-pw]:hover { color: var(--orange); border-color: var(--orange); }
.mini-form.nb { border-top: 0; padding-top: 0; margin-top: 4px; }
.mini-title { font-weight: 700; font-size: 14.5px; color: var(--text); }
.mini-err { color: #c0392b; font-size: 13px; }
.muted-count { color: var(--muted); font-weight: 400; font-size: 14px; }
.card-del { float: inline-end; font-size: 12.5px; }
.tbl-scroll { overflow-x: auto; }
.mini-hint { color: var(--muted); font-size: 12.5px; }

/* --- კლასის ბარათები --- */
.class-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.class-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; cursor: pointer; text-align: start; font: inherit; box-shadow: var(--shadow-soft); transition: border-color .12s, transform .12s; }
.class-card:hover { border-color: var(--orange); transform: translateY(-1px); }
.cc-icon { width: 42px; height: 42px; border-radius: 50%; background: #eef1f4; color: var(--navy); display: grid; place-items: center; flex: none; }
.cc-icon svg { width: 22px; height: 22px; }
.cc-body { flex: 1; min-width: 0; }
.cc-name { display: block; font-weight: 700; font-size: 15.5px; }
.cc-sub { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.cc-arrow { color: var(--muted); font-size: 15px; font-weight: 700; flex: none; white-space: nowrap; }
.class-card.dim { opacity: .6; cursor: default; }
.class-card.dim:hover { border-color: var(--border); transform: none; }
.btn-back { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; padding: 6px 2px; margin-bottom: 8px; }
.btn-back:hover { color: var(--orange); }

/* --- კლასების მონიშვნა (multi-select) --- */
.ms-block { display: grid; gap: 8px; }
.ms-label { font-size: 13px; color: var(--muted); }
.chip-select { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 1px solid var(--border); border-radius: 999px; font-size: 13.5px; cursor: pointer; background: #fff; user-select: none; }
.chip-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip-check:hover { border-color: #b6bcc4; }
.chip-check:has(input:checked) { background: #fdece7; border-color: var(--orange); color: var(--orange); font-weight: 600; }

/* --- დახვეწილი custom dropdown --- */
.dd { position: relative; }
.dd-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid #c9ced4; border-radius: 5px; background: #fff; font: inherit; font-size: 14px; color: var(--text); cursor: pointer; text-align: start; }
.dd-toggle:hover { border-color: #b6bcc4; }
.dd.open .dd-toggle { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,82,46,.12); }
.dd-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-placeholder { color: #9aa0a6; }
.dd-caret { color: var(--muted); font-size: 11px; flex: none; transition: transform .15s ease; }
.dd.open .dd-caret { transform: rotate(180deg); }
.dd-menu { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--border); border-radius: 9px; box-shadow: var(--shadow-card); padding: 6px; z-index: 60; max-height: 240px; overflow-y: auto; animation: ddIn .13s ease; }
@keyframes ddIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.dd-opt { display: block; width: 100%; text-align: start; padding: 9px 12px; border: 0; background: none; font: inherit; font-size: 14px; color: var(--text); border-radius: 6px; cursor: pointer; }
.dd-opt:hover { background: var(--bg-soft); color: var(--orange); }
.dd-empty { padding: 10px 12px; color: var(--muted); font-size: 13px; }
.dd-check { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.dd-check:hover { background: var(--bg-soft); }
.dd-check input { width: 16px; height: 16px; accent-color: var(--orange); flex: none; }

/* --- დაფის ბარათები 2×2 --- */
.ob-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 720px; }
@media (max-width: 560px) { .ob-grid { grid-template-columns: 1fr; } }

/* --- საგნების ჩიპები --- */
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; padding: 7px 8px 7px 14px; font-size: 14px; font-weight: 600; }
.chip-x { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 18px; line-height: 1; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; }
.chip-x:hover { background: #f2d9d2; color: #c0392b; }

/* --- მასწავლებლების ბარათები --- */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; margin: 22px 0; }
.staff-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 18px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-soft); }
.staff-top { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff; flex: none; text-transform: uppercase; }
.av-owner { background: var(--orange); }
.av-admin { background: #2f6ba8; }
.av-teacher { background: var(--navy-2); }
.av-student { background: #2e9e6b; }
.staff-id { min-width: 0; flex: 1; }
.staff-name { font-weight: 700; font-size: 15.5px; }
.staff-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.staff-top .badge { flex: none; }
.staff-rows { display: grid; gap: 8px; border-top: 1px solid var(--border); padding-top: 14px; }
.staff-rows > div { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-size: 13.5px; }
.staff-rows > div > span { color: var(--muted); font-size: 12px; }
.staff-rows > div > b { font-weight: 600; overflow-wrap: anywhere; }
.staff-actions { display: flex; gap: 6px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 12px; margin-top: auto; }
.staff-actions .linkbtn { padding: 6px 10px; border: 1px solid var(--border); border-radius: 5px; }
.staff-actions .linkbtn:hover { border-color: var(--orange); text-decoration: none; }
.linkbtn.danger:hover { color: #c0392b; border-color: #c0392b; }

/* --- მოდალი --- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: grid; place-items: center; z-index: 1000; padding: 20px; }
.modal { position: relative; background: #fff; border-radius: 10px; padding: 24px; width: min(400px, 100%); box-shadow: var(--shadow-card); }
.modal-x { position: absolute; top: 10px; right: 12px; width: 30px; height: 30px; border: 0; background: none; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 6px; }
.modal-x:hover { color: var(--text); background: var(--bg-soft); }
.modal h3 { font-size: 18px; margin-bottom: 6px; }
.modal-sub { color: var(--muted); font-size: 14px; margin-bottom: 16px; overflow-wrap: anywhere; }
.modal input { width: 100%; padding: 11px 12px; border: 1px solid #c9ced4; border-radius: 5px; font: inherit; font-size: 14px; background: #fff; color: var(--text); }
.modal input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,82,46,.12); }
.modal-hint { color: var(--muted); font-size: 12.5px; margin-top: 8px; }
.modal-err { color: #c0392b; font-size: 13px; margin-top: 8px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.dlg-msg { font-size: 14.5px; color: var(--text); white-space: pre-line; line-height: 1.55; }

/* --- toast (ზემოდან ჩამომავალი შეტყობინება) --- */
.toast-wrap { position: fixed; top: 0; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 16px; z-index: 1200; pointer-events: none; }
.toast { pointer-events: auto; background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 9px; box-shadow: var(--shadow-card); font-size: 14px; font-weight: 600; max-width: 90%; transform: translateY(-24px); opacity: 0; transition: transform .28s ease, opacity .28s ease; }
.toast.show { transform: none; opacity: 1; }
.toast.ok { background: #2e7d54; }
.toast.err { background: #c0392b; }

/* --- ტესტის კონსტრუქტორი --- */
.mini-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #c9ced4; border-radius: 5px; font: inherit; font-size: 14px; background: #fff; color: var(--text); resize: vertical; }
.mini-form textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,82,46,.12); }
.chk { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); cursor: pointer; }
.chk input { width: 16px; height: 16px; accent-color: var(--orange); }

/* iOS-სტილის გადამრთველი */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--text); user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .slider { width: 44px; height: 25px; background: #c9ced4; border-radius: 999px; position: relative; transition: background .2s ease; flex: none; }
.switch .slider::before { content: ""; position: absolute; top: 2.5px; left: 2.5px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform .2s ease; box-shadow: 0 1px 3px rgba(0,0,0,.28); }
.switch input:checked + .slider { background: var(--orange); }
.switch input:checked + .slider::before { transform: translateX(19px); }
.switch input:focus-visible + .slider { box-shadow: 0 0 0 3px rgba(232,82,46,.25); }
.switch-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-soft); }
.test-pub { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.test-code { font-size: 15px; }
.test-code b { font-size: 18px; letter-spacing: .12em; color: var(--orange); font-family: ui-monospace, Consolas, monospace; }
.q-card { border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; margin-bottom: 12px; }
.q-head { display: flex; gap: 12px; align-items: flex-start; }
.q-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: none; }
.switch.sm .slider { width: 38px; height: 22px; }
.switch.sm .slider::before { width: 17px; height: 17px; }
.switch.sm input:checked + .slider::before { transform: translateX(16px); }
.switch .switch-cap { font-size: 13px; }
.q-num { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.q-body { flex: 1; min-width: 0; }
.q-text { font-weight: 600; font-size: 15px; }
.q-meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.q-opts { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 5px; }
.q-opts li { font-size: 14px; padding: 5px 10px; border-radius: 5px; background: var(--bg-soft); }
.q-opts li.correct { background: #e6f4ec; color: #2e7d54; font-weight: 600; }
.q-ans { margin-top: 8px; font-size: 14px; color: var(--muted); }
.opt-hint { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.opt-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.opt-row .opt-correct { width: 18px; height: 18px; accent-color: var(--orange); flex: none; }
.opt-row .opt-text { flex: 1; padding: 8px 11px; border: 1px solid #c9ced4; border-radius: 5px; font: inherit; font-size: 14px; }
.opt-row .opt-del { color: var(--muted); }
.opt-row .opt-del:hover { color: #c0392b; }
.fld { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); }
.fld input[type="datetime-local"], .fld input[type="file"] { padding: 9px 11px; border: 1px solid #c9ced4; border-radius: 5px; font: inherit; font-size: 14px; color: var(--text); background: #fff; }
.q-img { max-width: 260px; max-height: 200px; border-radius: 6px; margin: 8px 0; display: block; border: 1px solid var(--border); }
.muted-p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.muted-cell { color: var(--muted); }
.ok-tick { color: #2e7d54; font-weight: 700; }
.x-tick { color: #c0392b; font-weight: 700; }

/* --- ტესტის წერის ხედი --- */
#view-take { min-height: 100vh; background: var(--bg-soft); }
.take-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; background: var(--navy); color: #fff; padding: 12px 20px; }
.take-title { font-weight: 700; font-size: 16px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.take-timer { font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; background: rgba(255,255,255,.14); padding: 6px 12px; border-radius: 8px; }
.take-timer.low { background: #c0392b; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.take-tools { display: flex; gap: 8px; }
.btn-ghost-d { background: rgba(255,255,255,.14); color: #fff; border-color: transparent; }
.btn-ghost-d:hover { background: rgba(255,255,255,.24); }
.take-wrap { display: grid; grid-template-columns: minmax(0,1fr) 200px; gap: 20px; max-width: 1000px; margin: 24px auto; padding: 0 20px; }
.take-main { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 26px; }
.take-qhead { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.take-pts { background: var(--bg-soft); padding: 2px 9px; border-radius: 999px; }
.take-calc-tag { }
.take-qtext { font-size: 18px; font-weight: 600; margin: 10px 0 4px; }
.take-qimg { max-width: 100%; max-height: 320px; border-radius: 8px; margin: 10px 0; border: 1px solid var(--border); }
.take-opts { display: grid; gap: 10px; margin: 18px 0; }
.opt-pick { display: flex; align-items: center; gap: 11px; padding: 13px 15px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; font-size: 15px; transition: border-color .1s, background .1s; }
.opt-pick:hover { border-color: var(--orange); }
.opt-pick:has(input:checked) { border-color: var(--orange); background: #fdece7; }
.opt-pick input { width: 18px; height: 18px; accent-color: var(--orange); flex: none; }
.take-input { width: 100%; padding: 12px 14px; border: 1px solid #c9ced4; border-radius: 8px; font: inherit; font-size: 15px; }
.take-input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,82,46,.12); }
.take-actions { display: flex; justify-content: space-between; margin-top: 22px; }
.take-side { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 16px; align-self: start; position: sticky; top: 80px; }
.tn-title { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.tn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px,1fr)); gap: 8px; }
.tn-btn { width: 100%; aspect-ratio: 1; border: 1px solid var(--border); border-radius: 7px; background: #fff; font: inherit; font-weight: 700; cursor: pointer; color: var(--text); }
.tn-btn.answered { background: #e6f4ec; border-color: #9dd3b5; color: #2e7d54; }
.tn-btn.current { border-color: var(--orange); box-shadow: 0 0 0 2px rgba(232,82,46,.25); }
.take-result { text-align: center; padding: 30px 10px; }
.tr-check { width: 64px; height: 64px; border-radius: 50%; background: #2e7d54; color: #fff; font-size: 34px; display: grid; place-items: center; margin: 0 auto 16px; }
.tr-score { font-size: 40px; font-weight: 800; color: var(--navy); margin: 8px 0; font-variant-numeric: tabular-nums; }
.tr-note { color: var(--muted); font-size: 14px; max-width: 420px; margin: 0 auto 20px; }
@media (max-width: 720px) { .take-wrap { grid-template-columns: 1fr; } .take-side { position: static; } }

/* კალკულატორი */
.calc { position: fixed; right: 20px; bottom: 20px; width: 240px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-card); z-index: 80; overflow: hidden; }
.calc-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--navy); color: #fff; font-size: 14px; }
.calc-head button { background: none; border: 0; color: #fff; cursor: pointer; font-size: 15px; }
.calc-display { width: 100%; border: 0; border-bottom: 1px solid var(--border); padding: 14px; font-size: 22px; text-align: right; font-variant-numeric: tabular-nums; }
.calc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); }
.calc-key { border: 0; background: #fff; padding: 16px 0; font-size: 17px; cursor: pointer; }
.calc-key:hover { background: var(--bg-soft); }
.calc-key.op { background: #f4f5f7; color: var(--orange); font-weight: 700; }
.calc-key.fn { color: var(--muted); }

/* მონახაზი / თეთრი ფურცელი */
.pad { position: fixed; right: 20px; bottom: 20px; width: min(520px, 92vw); height: min(420px, 70vh); background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-card); z-index: 75; display: flex; flex-direction: column; overflow: hidden; }
.pad-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: var(--navy); color: #fff; }
.pad-tools { display: flex; gap: 6px; }
.pad-tool, .pad-btn { background: rgba(255,255,255,.14); border: 0; color: #fff; cursor: pointer; border-radius: 6px; padding: 6px 9px; font-size: 14px; }
.pad-tool.on { background: var(--orange); }
.pad-btn { font-size: 12px; }
.pad-canvas { flex: 1; width: 100%; background: #fff; cursor: crosshair; touch-action: none; }
.modal .btn-ghost { color: var(--text); border-color: var(--border); }
.modal .btn-ghost:hover { background: var(--bg-soft); }

.err { color: #c0392b; font-size: 13px; margin-top: 6px; }
.fm.bad input, .fm.bad select { border-color: #c0392b; }
.signin-err { color: #c0392b; font-size: 13px; margin-bottom: 9px; }
.who { color: #fff; font-size: 14px; opacity: .92; }
.who b { font-weight: 700; }

/* ---------------- რეგისტრაციის ფორმა ---------------- */
.form-page {
  background: linear-gradient(180deg, #f4f5f7, #fbfbfc 55%, #fff);
  padding: 46px 0 80px;
}
.form-wrap { width: min(920px, 100%); margin-inline: auto; }
.form-head { margin-bottom: 28px; }
.form-head h1 { font-size: clamp(23px, 2.8vw, 31px); margin-bottom: 10px; }
.form-head p { color: var(--muted); margin: 0; }

.form-note {
  background: #fdf0ec;
  border: 1px solid #f7dcd3;
  border-radius: 4px;
  padding: 14px 18px;
  font-size: 14.5px;
  margin-bottom: 30px;
}
.form-note a { color: var(--orange); font-weight: 600; text-decoration: underline; }

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 30px 32px 34px;
  box-shadow: var(--shadow-soft);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.fm { margin-bottom: 22px; }
.fm.full { grid-column: 1 / -1; }
.fm label { display: block; font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.fm label .req { color: var(--orange); }
.fm .hint { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.fm input,
.fm select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #c9ced4;
  border-radius: 3px;
  font: inherit;
  font-size: 15px;
  background: #fff;
  color: var(--text);
}
.fm select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #6f7378 50%), linear-gradient(135deg, #6f7378 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-inline-end: 38px; }
.fm input:focus,
.fm select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232, 82, 46, .12);
}
.fm-sub { font-size: 13px; color: var(--muted); margin-bottom: 6px; }

.form-sec {
  grid-column: 1 / -1;
  margin: 4px 0 20px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.form-sec:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.form-sec h2 { font-size: 17px; margin-bottom: 4px; }
.form-sec p { font-size: 13.5px; color: var(--muted); margin: 0; }

.form-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  margin: 6px 0 24px;
}
.form-terms input { accent-color: var(--orange); margin-top: 4px; }
.form-terms a { color: var(--orange); font-weight: 600; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-foot { font-size: 14.5px; color: var(--muted); margin: 22px 0 0; }

/* ---------------- გზამკვლევის გვერდი ---------------- */
.guide-page { background: #fff; padding: 40px 0 76px; }
.guide-layout {
  display: grid;
  grid-template-columns: 278px minmax(0, 1fr);
  gap: 52px;
  align-items: start;
}
.guide-nav {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.guide-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 6px;
  font-size: 14.5px;
  color: var(--text);
}
.guide-nav a:hover { background: var(--bg-soft); }
.guide-nav a.on { background: #fdece7; color: var(--orange); font-weight: 700; }
.guide-nav .gi { width: 20px; text-align: center; }

.guide-content h1 { font-size: clamp(24px, 3vw, 31px); margin-bottom: 14px; }
.guide-content .intro { color: var(--text); max-width: 730px; margin: 0 0 26px; }
.guide-content .lead-q { font-size: 21px; font-weight: 700; margin-bottom: 32px; }

.gstep { display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 18px; position: relative; padding-bottom: 36px; }
.gstep:last-child { padding-bottom: 0; }
.gstep:not(:last-child)::before {
  content: "";
  position: absolute;
  inset-inline-start: 32px;
  top: 62px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}
.gstep .num {
  width: 62px; height: 62px;
  border-radius: 50%;
  border: 5px solid #fbdcd2;
  border-top-color: var(--orange);
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 21px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.gstep h3 { font-size: 21px; margin: 14px 0 18px; }
.gstep-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }

.glist { list-style: none; padding: 0; margin: 0; }
.glist li {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 14.5px;
  line-height: 1.55;
}
.glist .gi { flex: 0 0 auto; width: 20px; text-align: center; }

.fig { background: var(--bg-soft); border: 1px solid #eceef0; border-radius: 8px; padding: 20px; }
.fig h4 { font-size: 12.5px; text-align: center; margin-bottom: 14px; color: var(--text); }
.fig-row {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 11px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.fig-row i { display: block; height: 6px; background: #e7e9eb; border-radius: 3px; flex: 1; }
.fig-row.on { border-color: var(--orange); }
.fig-row.on i { background: #f6c3b3; }
.fig-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.fig-tile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  height: 52px;
  display: grid;
  place-items: center;
}
.fig-tile span { display: block; width: 60%; height: 7px; background: var(--orange); border-radius: 2px; }

/* ---------------- სატარიფო გეგმები ---------------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 300px));
  justify-content: center;
  gap: 24px;
  align-items: stretch;
}
.plan {
  background: #fff;
  border-radius: 5px;
  box-shadow: var(--shadow-card);
  padding: 26px 24px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.plan::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 7px;
}
.plan.p1::before { background: linear-gradient(90deg, #f9b79b, #f08e6a); }
.plan.p2::before { background: linear-gradient(90deg, var(--orange), #a83614); }
.plan.p3::before { background: linear-gradient(90deg, #3d4b5c, #16324f); }

.plan h3 { font-size: 19px; margin-bottom: 20px; }
.price { font-size: 33px; font-weight: 700; letter-spacing: -.02em; }
.price small { font-size: 13.5px; font-weight: 400; color: var(--muted); margin-inline-start: 6px; }
.yearly {
  font-size: 13.5px;
  color: var(--text);
  margin: 16px 0 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.yearly b { font-weight: 700; }
.yearly s { color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; }
.plan li {
  position: relative;
  padding-inline-start: 26px;
  font-size: 14.5px;
  margin-bottom: 13px;
}
.plan li::before {
  content: "→";
  position: absolute;
  inset-inline-start: 0;
  color: var(--muted);
}
.plan li b { font-weight: 700; }
.plan li i { display: block; font-size: 13px; color: var(--muted); font-style: italic; }
.plan .big-q { font-size: 24px; font-weight: 700; margin: 10px 0 14px; }
.plan .plan-note { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.plan .contact { color: var(--orange); font-weight: 700; font-size: 14.5px; }
.plan .contact:hover { text-decoration: underline; }

.plans-foot { margin-top: 34px; text-align: center; }
.plans-foot .learn { color: var(--orange); font-weight: 700; font-size: 14.5px; }
.plans-foot .learn:hover { text-decoration: underline; }
.plans-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------------- ავტორიზაციის ხედი ---------------- */
.auth-page { background: var(--bg-soft); padding: 52px 0 70px; }
.auth-card {
  width: min(470px, 100%);
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--orange);
  border-radius: 6px;
  box-shadow: var(--shadow-soft);
  padding: 32px;
}
.auth-card h1 { font-size: 24px; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin: 0 0 22px; font-size: 14.5px; }

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 24px;
}
.tab {
  border: 0;
  border-inline-end: 1px solid var(--border);
  background: #f7f8f9;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  padding: 11px 4px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.tab:last-child { border-inline-end: 0; }
.tab:hover { background: #eef0f2; color: var(--text); }
.tab[aria-selected="true"] { background: var(--orange); color: #fff; }

.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.field input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #c9ced4;
  border-radius: 3px;
  font: inherit;
  font-size: 15px;
  background: #fff;
  color: var(--text);
}
.field input::placeholder { color: #9aa0a6; }
.field input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232, 82, 46, .12);
}
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.code-input {
  letter-spacing: .34em;
  text-align: center;
  font-weight: 700;
  font-size: 21px !important;
  text-transform: uppercase;
}
.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 20px;
  font-size: 13.5px;
}
.check { display: flex; align-items: center; gap: 7px; color: var(--muted); }
.check input { accent-color: var(--orange); }
.link { color: var(--orange); font-weight: 600; }
.link:hover { text-decoration: underline; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 20px 0; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--border); flex: 1; }
.auth-foot { text-align: center; font-size: 13.5px; color: var(--muted); margin: 20px 0 0; }
.note {
  background: #fdece7;
  border: 1px solid #f7d3c8;
  color: #a83c1c;
  border-radius: 4px;
  padding: 11px 13px;
  font-size: 13.5px;
  margin-bottom: 20px;
}

/* ---------------- რესპონსივი ---------------- */
@media (max-width: 1000px) {
  .mainnav-inner { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .dash-body { padding-inline-end: 0; }
  .cert-card { position: static; width: 100%; margin-top: 16px; }
  .ai-badge { top: -14px; }
  .band-inner { grid-template-columns: 1fr; }
  .band-mark { border-inline-end: 0; padding-inline-end: 0; border-bottom: 1px solid #e3e5e8; padding-bottom: 24px; }
  .roles, .features, .steps, .footer-grid { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: repeat(2, minmax(0, 300px)); }
  .form-grid { grid-template-columns: 1fr; }
  .panel-tiles { grid-template-columns: 1fr 1fr; }
  .panel-grid { grid-template-columns: 1fr; }
  .dash-layout { grid-template-columns: 1fr; }
  .app-body { grid-template-columns: 1fr; }
  .app-side { border-inline-end: 0; border-bottom: 1px solid var(--border); }
  .app-main { padding: 22px 18px 50px; }
  .side-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .side-school { width: 100%; border-bottom: 0; }
  .guide-layout { grid-template-columns: 1fr; gap: 26px; }
  .guide-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .gstep-body { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .signin-panel { position: fixed; inset-inline: 16px; top: 78px; width: auto; }
  .roles, .features, .steps, .footer-grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: minmax(0, 340px); }
  .reg-cols.two { grid-template-columns: 1fr; }
  .reg-cols.two .reg-col + .reg-col { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--border); padding-top: 24px; }
  .reg-col p { min-height: 0; }
  .dash-stats { grid-template-columns: 1fr; }
  .section { padding: 46px 0; }
}
