:root {
  --primary: #6F2997;
  --primary-dark: #4A2996;
  --accent: #922996;
  --accent-deep: #292B96;
  --accent-wine: #96295C;
  --accent-light: #f3e8f8;
  --campus: #292B96;
  --success: #059669;
  --warning: #d97706;
  --bg: #f7f4fb;
  --surface: #ffffff;
  --text: #1a1525;
  --text-muted: #6b6280;
  --border: #e6dff0;
  --shadow: 0 1px 3px rgba(41, 43, 150, 0.08);
  --shadow-lg: 0 10px 40px rgba(74, 41, 150, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  background-image: repeating-linear-gradient(
    transparent,
    transparent 27px,
    rgba(111, 41, 151, 0.06) 27px,
    rgba(111, 41, 151, 0.06) 28px
  );
  background-size: 100% 28px;
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
.header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-deep) 55%, var(--accent) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.nav a:hover,
.nav a.active {
  background: var(--accent-light);
  color: var(--accent);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.15s, background 0.15s;
  text-decoration: none;
  font-family: inherit;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-deep) 55%, var(--accent) 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(111, 41, 151, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(111, 41, 151, 0.45);
  color: white;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(90deg, #292B96 0%, #4A2996 40%, #6F2997 70%, #922996 100%);
  box-shadow: 0 4px 12px rgba(74, 41, 150, 0.3);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn-cta:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(111, 41, 151, 0.4);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  padding: 8px 12px;
}

.btn-ghost:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.875rem;
}

.btn-icon {
  padding: 8px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.15s;
}

.btn-icon:hover,
.btn-icon.active {
  background: #fef2f2;
  border-color: #fecaca;
}

.btn-icon.active {
  color: #ef4444;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.page-title {
  font-family: var(--font);
  font-size: 1.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.page-subtitle {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1.0625rem;
}

/* Hero — светлый, с вайбом тетради / кампуса */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 100% 0%, rgba(146, 41, 150, 0.16), transparent 55%),
    radial-gradient(ellipse 70% 60% at 0% 100%, rgba(41, 43, 150, 0.12), transparent 50%),
    linear-gradient(135deg, #f5eef9 0%, #efe8f8 40%, #ebeaf8 100%);
  border-bottom: 1px solid var(--border);
  padding: 56px 24px 64px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    transparent,
    transparent 31px,
    rgba(111, 41, 151, 0.07) 31px,
    rgba(111, 41, 151, 0.07) 32px
  );
  pointer-events: none;
  mask-image: linear-gradient(180deg, #000 40%, transparent);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-visual {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.hero-orb-1 {
  width: 220px;
  height: 220px;
  right: 12%;
  top: 8%;
  background: radial-gradient(circle, rgba(146, 41, 150, 0.28), transparent 70%);
}

.hero-orb-2 {
  width: 180px;
  height: 180px;
  left: 8%;
  bottom: 10%;
  background: radial-gradient(circle, rgba(41, 43, 150, 0.22), transparent 70%);
}

.hero-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(74, 41, 150, 0.14);
  backdrop-filter: blur(8px);
}

.hero-card-main {
  width: min(280px, 100%);
  padding: 24px;
  position: relative;
  z-index: 2;
  animation: hero-float 5s ease-in-out infinite;
}

.hero-card-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.hero-card-score {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
}

.hero-card-bar {
  height: 8px;
  background: #efe8f8;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}

.hero-card-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #292B96, #6F2997, #922996);
}

.hero-card-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.hero-card-float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  max-width: 220px;
}

.hero-card-float strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
}

.hero-card-float span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hero-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f5eef9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.hero-card-uni {
  top: 18%;
  left: 0;
  animation: hero-float 6s ease-in-out infinite 0.4s;
}

.hero-card-cal {
  bottom: 16%;
  right: 0;
  animation: hero-float 5.5s ease-in-out infinite 0.8s;
}

.hero-card-ege {
  bottom: 8%;
  left: 6%;
  padding: 14px 16px;
  width: 168px;
  display: block;
  animation: hero-float 6.5s ease-in-out infinite 0.2s;
}

.hero-ege-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 3px 0;
}

.hero-ege-row b {
  color: var(--primary);
  font-weight: 700;
}

.hero-ege-total {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 300px;
    margin-top: 8px;
  }

  .hero-card-main {
    width: min(240px, 100%);
  }
}

@media (max-width: 560px) {
  .hero-visual {
    display: none;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.hero-badge::before {
  content: "🎓";
}

.hero h1 {
  font-family: var(--font);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.18;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  max-width: 720px;
  color: var(--text);
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-deep) 55%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 8px;
}

.hero-stat strong {
  display: block;
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
}

.hero-stat span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-body {
  padding: 24px;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 16px;
}

/* Form */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group small {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 4px;
}

input[type="number"],
input[type="text"],
select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-family: inherit;
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 107, 99, 0.18);
}

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.subject-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.subject-chip:has(input:checked) {
  border-color: var(--primary);
  background: #f5eef9;
}

.subject-chip input {
  accent-color: var(--primary);
}

/* Filters sidebar */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

.filters {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 88px;
}

.filters h3 {
  font-size: 0.9375rem;
  margin-bottom: 16px;
}

.filter-group {
  margin-bottom: 16px;
}

.filter-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.875rem;
  cursor: pointer;
}

/* University list */
.uni-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.uni-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  transition: border-color 0.15s, box-shadow 0.15s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.uni-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  color: inherit;
}

.uni-card h3 {
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.uni-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.uni-tags {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--bg);
  color: var(--text-muted);
}

.tag-budget {
  background: #e6f5ef;
  color: var(--success);
}

.chance-badge {
  text-align: center;
  min-width: 72px;
}

.chance-value {
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
}

.chance-high { color: var(--success); }
.chance-medium { color: var(--warning); }
.chance-low { color: #dc2626; }

.chance-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Detail page */
.detail-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
}

.detail-header h1 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.info-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}

.info-block h2 {
  font-size: 1.0625rem;
  margin-bottom: 16px;
}

.program-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

.program-row:last-child {
  border-bottom: none;
}

.program-score {
  font-weight: 600;
  color: var(--primary);
}

/* Freemium */
.freemium-banner {
  background: linear-gradient(135deg, #f5eef9, #f3e8f8, #ebeaf8);
  border: 1px solid #d4c2e8;
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.freemium-banner h3 {
  font-family: var(--font);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.freemium-banner p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.premium-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.premium-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.premium-col.highlight {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.premium-col h3 {
  font-size: 1rem;
  margin-bottom: 16px;
}

.premium-col ul {
  list-style: none;
  font-size: 0.875rem;
}

.premium-col li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.premium-col li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
}

.premium-col li.disabled {
  color: var(--text-muted);
}

.premium-col li.disabled::before {
  content: "—";
  color: var(--border);
}

.price {
  font-family: var(--font);
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent);
  margin: 16px 0;
  letter-spacing: -0.03em;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.empty-state h3 {
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Tools grid on home */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.tool-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.tool-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  color: inherit;
}

.tool-card:hover::after {
  transform: scaleX(1);
}

.tool-card-icon {
  font-size: 1.75rem;
  margin-bottom: 14px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5eef9;
  border-radius: 12px;
}

.tool-card h3 {
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.tool-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--primary);
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.modal h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.modal p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
}

.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.results-count {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.sort-select {
  width: auto;
  min-width: 200px;
}

/* Prototype badge */
.prototype-badge {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background: var(--text);
  color: white;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  z-index: 150;
  opacity: 0.85;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.72);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section .container {
  padding-top: 0;
  padding-bottom: 0;
}

/* Timeline — календарь кампании */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  margin-top: 8px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 16px 0 16px 32px;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--primary);
  z-index: 1;
}

.timeline-item.is-past::before {
  background: var(--primary);
  border-color: var(--primary);
  opacity: 0.45;
}

.timeline-item.is-current::before {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 107, 99, 0.22);
}

.timeline-item.is-past {
  opacity: 0.55;
}

.timeline-item.is-current {
  background: #f5eef9;
  border-radius: var(--radius-sm);
  margin-left: -8px;
  padding-left: 40px;
}

.timeline-item.is-current::before {
  left: 10px;
}

.timeline-date {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  padding-top: 2px;
}

.timeline-item.is-past .timeline-date {
  color: var(--text-muted);
}

.timeline-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.timeline-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  background: #eadcf5;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

.calendar-groups {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.calendar-group h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.calendar-group-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  margin-top: -4px;
}

.calendar-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.calendar-nav a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
}

.calendar-nav a:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #f5eef9;
}

.calendar-switch {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.calendar-switch a {
  flex: 1;
  min-width: 160px;
  text-align: center;
  padding: 12px 16px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.calendar-switch a:hover {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}

.calendar-switch a.active {
  background: #f5eef9;
  border-color: var(--primary);
  color: var(--primary);
}

.calendar-hub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 8px;
}

.calendar-hub-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}

.calendar-hub-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.calendar-hub-icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 12px;
}

.calendar-hub-card h2 {
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 8px;
  border: none;
  padding: 0;
  letter-spacing: -0.02em;
}

.calendar-hub-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.calendar-hub-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.vi-plaque {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  transition: border-color 0.15s, background 0.15s;
}

.vi-plaque.is-on {
  background: #f5eef9;
  border-color: #d0b8e8;
}

.vi-plaque-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

.vi-plaque-toggle input {
  accent-color: var(--primary);
}

.vi-plaque-score {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.vi-plaque-score input {
  width: 72px;
  padding: 6px 8px;
  text-align: center;
  font-size: 0.875rem;
}

.vi-plaque-score input:disabled {
  opacity: 0.4;
  background: #f1f5f9;
}

.timeline-item-reserve::before {
  border-color: var(--warning);
}

.timeline-item-retake::before {
  border-color: var(--accent-wine);
}

.timeline-item-reserve .timeline-date {
  color: var(--warning);
}

.timeline-item-retake .timeline-date {
  color: var(--accent-wine);
}

.calendar-note {
  margin-top: 32px;
  padding: 16px 20px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.calendar-note strong {
  color: var(--text);
}

/* Steps / directions / guides / FAQ — home blocks */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-deep) 55%, var(--accent) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 12px;
}

.step-card h3 {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.step-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.directions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.direction-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}

.direction-card:hover {
  border-color: var(--primary);
  text-decoration: none;
  color: inherit;
}

.direction-icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.direction-card strong {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.direction-card span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.guide-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.guide-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.guide-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.guide-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 720px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+";
  display: inline-block;
  width: 1.2em;
  color: var(--primary);
  font-weight: 700;
}

.faq-item[open] summary::before {
  content: "–";
}

.faq-item p {
  margin-top: 10px;
  margin-left: 1.2em;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.faq-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.faq-filter {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-family: inherit;
  cursor: pointer;
  color: var(--text);
}

.faq-filter:hover,
.faq-filter.active {
  border-color: var(--primary);
  background: #f5eef9;
  color: var(--primary);
}

.faq-sections {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.faq-section-title {
  font-family: var(--font);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.faq-section .faq-list {
  max-width: 800px;
}

/* Footer */
.footer {
  background: linear-gradient(160deg, #292B96 0%, #4A2996 55%, #6F2997 100%);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 24px 24px;
  margin-top: 48px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 48px;
  margin-bottom: 32px;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 0.875rem;
  max-width: 280px;
}

.footer .logo {
  color: white;
  font-family: var(--font);
}

.footer .logo-icon {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-deep) 55%, var(--accent) 100%);
  color: white;
  box-shadow: none;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-cols h4 {
  color: white;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.footer-cols a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  padding: 4px 0;
}

.footer-cols a:hover {
  color: #ffffff;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
}

/* Calculator */
.calc-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: start;
}

.calc-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.calc-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.calc-panel-head h2 {
  font-size: 1.0625rem;
}

.calc-block {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.calc-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.calc-block h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.calc-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.exam-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.exam-row {
  display: grid;
  grid-template-columns: 18px 1fr 72px;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  transition: border-color 0.15s, background 0.15s;
}

.exam-row.is-on {
  background: #f5eef9;
  border-color: #d0b8e8;
}

.exam-row input[type="checkbox"] {
  accent-color: var(--primary);
}

.exam-name {
  font-size: 0.8125rem;
  line-height: 1.3;
}

.exam-row input[type="number"] {
  width: 100%;
  padding: 6px 8px;
  font-size: 0.875rem;
  text-align: center;
}

.exam-row input[type="number"]:disabled {
  opacity: 0.4;
  background: #f1f5f9;
}

.calc-total-row {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.calc-total-row strong {
  color: var(--primary);
  font-size: 1.125rem;
}

.calc-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.calc-summary {
  margin-bottom: 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.calc-pill {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
  margin: 2px 4px 2px 0;
  font-size: 0.8125rem;
  color: var(--text);
}

.city-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.city-chip {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.8125rem;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
}

.city-chip span {
  color: var(--text-muted);
  margin-left: 4px;
}

.city-chip:hover,
.city-chip.active {
  border-color: var(--primary);
  background: #f5eef9;
  color: var(--primary);
}

.city-chip-clear {
  color: var(--text-muted);
}

.calc-group {
  margin-bottom: 28px;
}

.calc-group-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.calc-group-title span {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 8px;
}

.calc-subjects {
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.calc-card-muted {
  opacity: 0.7;
  pointer-events: none;
}

.tag-warn {
  background: #fef3c7;
  color: #92400e;
}

.tag-dvi {
  background: #fce7f3;
  color: var(--accent-wine);
}

.hero-exam-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.hero-exam {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hero-exam input {
  width: 100%;
  padding: 8px;
  text-align: center;
}

@media (max-width: 900px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid,
  .directions-grid,
  .guides-grid {
    grid-template-columns: 1fr 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .calc-layout {
    grid-template-columns: 1fr;
  }

  .calc-panel {
    position: static;
    max-height: none;
  }

  .calendar-hub {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .tools-grid,
  .steps-grid,
  .directions-grid,
  .guides-grid,
  .footer-cols {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

  .hero-exam-grid {
    grid-template-columns: 1fr;
  }
}
