/* Shared visual contract for the server-rendered pages. Keep this file after
   each template's page-specific styles so the header and base controls cannot
   drift between the schedule and organizations sections. */
:root {
  --campus-font-sans: "Inter", "Roboto", "SF Pro", "Helvetica Neue", Arial, sans-serif;
  --campus-accent: #4992ff;
  --campus-text: #000;
  --campus-text-secondary: #686868;
  --campus-border: #e2e2e2;
  --campus-control-height: 46px;
  --campus-pill: 999px;
}

body,
button,
input,
textarea,
select {
  font-family: var(--campus-font-sans);
}

body {
  color: var(--campus-text);
}

/* Header */
nav,
.nav-pill,
.nav-links a,
.nav-actions,
.mobile-nav-panel,
.mobile-nav-links a,
.mobile-nav-actions,
.mobile-nav-heading {
  font-family: var(--campus-font-sans);
}

.nav-logo svg {
  width: 90px;
  height: 28px;
  display: block;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
}

.nav-links .submenu a {
  font-size: 14px;
  font-weight: 500;
}

/* «Бизнесу» — a small App Store-style sticker inside the nav. */
.nav-links a.nav-sticker,
.mobile-nav-links li a.nav-sticker {
  display: inline-block;
  width: max-content;
  margin-left: 6px;
  padding: 6px 13px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #d9ddff;
  color: #4f63f0;
  font-weight: 800;
  box-shadow: inset 0 0 0 2px #4f63f0, 0 6px 16px rgba(20, 20, 90, 0.14);
  transform: rotate(-3deg);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.nav-links a.nav-sticker:hover,
.nav-links a.nav-sticker.active {
  background: #d9ddff;
  color: #4f63f0;
  transform: rotate(0deg) translateY(-1px);
}
.mobile-nav-links li a.nav-sticker {
  margin: 14px 0;
  border-bottom: 2px solid #fff;
}
/* «Курсы» — same sticker in lime. */
.nav-links a.nav-sticker--green,
.mobile-nav-links li a.nav-sticker--green,
.nav-links a.nav-sticker--green:hover,
.nav-links a.nav-sticker--green.active {
  background: #dcf7a3;
  color: #2f6b12;
  box-shadow: inset 0 0 0 2px #5aa62a, 0 6px 16px rgba(30, 80, 20, 0.14);
  transform: rotate(2deg);
}
.nav-links a.nav-sticker--green:hover {
  transform: rotate(0deg) translateY(-1px);
}
.mobile-nav-links li a.nav-sticker--green {
  transform: rotate(2deg);
}

.mobile-nav-links li a {
  font-size: 15px;
  font-weight: 500;
}

/* Drawer items cascade in one after another (apple.com-style) once the panel
   has slid in; on close they fade out together without a delay. */
.mobile-nav-links li,
.mobile-nav-actions {
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.mobile-nav-drawer.open .mobile-nav-links li,
.mobile-nav-drawer.open .mobile-nav-actions {
  opacity: 1;
  transform: translateY(0);
}
.mobile-nav-drawer.open .mobile-nav-links li:nth-child(1) { transition-delay: 0.12s; }
.mobile-nav-drawer.open .mobile-nav-links li:nth-child(2) { transition-delay: 0.17s; }
.mobile-nav-drawer.open .mobile-nav-links li:nth-child(3) { transition-delay: 0.22s; }
.mobile-nav-drawer.open .mobile-nav-links li:nth-child(4) { transition-delay: 0.27s; }
.mobile-nav-drawer.open .mobile-nav-links li:nth-child(5) { transition-delay: 0.32s; }
.mobile-nav-drawer.open .mobile-nav-links li:nth-child(6) { transition-delay: 0.37s; }
.mobile-nav-drawer.open .mobile-nav-links li:nth-child(7) { transition-delay: 0.42s; }
.mobile-nav-drawer.open .mobile-nav-actions { transition-delay: 0.46s; }
@media (prefers-reduced-motion: reduce) {
  .mobile-nav-links li,
  .mobile-nav-actions {
    transition: none;
    transform: none;
  }
}

.mobile-nav-actions .btn-primary {
  font-size: 15px;
  font-weight: 600;
}

/* Drawer «Скачать приложение»: the landing's black pill, same glow on press. */
.mobile-nav-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  padding: 0 14px;
  font-family: "SF Pro Rounded", var(--campus-font-sans);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.18s ease, background 0.18s ease;
}
.mobile-nav-actions .btn-primary:hover,
.mobile-nav-actions .btn-primary:active {
  background: #1c1c24;
  color: #fff;
}
.mobile-nav-actions .btn-primary svg {
  width: 18px;
  height: 18px;
  display: block;
  flex: none;
}
.mobile-nav-actions .btn-primary .lp-btn__android {
  width: 20px;
  height: 20px;
  margin-left: -2px;
}
[data-app-platform="ios"] .mobile-nav-actions .lp-btn__android,
[data-app-platform="android"] .mobile-nav-actions .lp-btn__ios {
  display: none;
}
/* Animated glow around the black «Скачать» pill: a soft rotating conic halo
   plus a thin colour ring, in the landing palette (blue → pink → lavender).
   `@property` lets the gradient angle animate; browsers without it show a
   static glow. */
@property --campus-glow-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@keyframes campusGlowSpin {
  to {
    --campus-glow-angle: 360deg;
  }
}
@keyframes campusGlowBreathe {
  0%,
  100% {
    filter: blur(12px) saturate(1.1);
  }
  50% {
    filter: blur(16px) saturate(1.35);
  }
}
.mobile-nav-actions {
  isolation: isolate;
}
.mobile-nav-actions .btn-primary {
  position: relative;
}
.mobile-nav-actions .btn-primary::before,
.mobile-nav-actions .btn-primary::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: inherit;
  background: conic-gradient(
    from var(--campus-glow-angle),
    #4f63f0,
    #8f7bff,
    #e19bf0,
    #ff9ad5,
    #6b7cf5,
    #4f63f0
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.mobile-nav-actions .btn-primary::before {
  inset: -8px;
  filter: blur(12px) saturate(1.1);
}
.mobile-nav-actions .btn-primary::after {
  inset: -2px;
}
.mobile-nav-actions .btn-primary:hover::before,
.mobile-nav-actions .btn-primary:focus-visible::before,
.mobile-nav-actions .btn-primary:hover::after,
.mobile-nav-actions .btn-primary:focus-visible::after {
  opacity: 1;
  animation: campusGlowSpin 2.4s linear infinite;
}
/* Touch: no hover, so the glow also answers the press. */
.mobile-nav-actions .btn-primary:active::before,
.mobile-nav-actions .btn-primary:active::after {
  opacity: 1;
  animation: campusGlowSpin 2.4s linear infinite;
}
.mobile-nav-actions .btn-primary:hover::before,
.mobile-nav-actions .btn-primary:focus-visible::before {
  opacity: 0.85;
  animation: campusGlowSpin 2.4s linear infinite, campusGlowBreathe 2.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .mobile-nav-actions .btn-primary:hover::before,
  .mobile-nav-actions .btn-primary:hover::after,
  .mobile-nav-actions .btn-primary:focus-visible::before,
  .mobile-nav-actions .btn-primary:focus-visible::after {
    animation: none;
  }
}


/* Page headings — one display style across Express and Next pages
   (mirrored by .site-page-title / .site-section-title in next-app). */
:root {
  --campus-font-display: "SF Pro Rounded", -apple-system, "SF Pro Display", system-ui, sans-serif;
  --campus-title-size: clamp(32px, 4.5vw, 48px);
  --campus-section-size: clamp(26px, 3.2vw, 36px);
}

h1,
.hero-title,
.section-title {
  font-family: var(--campus-font-display);
  color: var(--campus-text);
  text-align: center;
}

h1,
.hero-title {
  font-size: var(--campus-title-size);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.section-title {
  font-size: var(--campus-section-size);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* Base controls */
.btn-primary {
  min-height: var(--campus-control-height);
  padding: 0 24px;
  border-radius: var(--campus-pill);
  font-family: var(--campus-font-sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dd-trigger {
  height: var(--campus-control-height);
  min-height: var(--campus-control-height);
  padding: 0 16px;
  border: 1px solid var(--campus-border);
  border-radius: var(--campus-pill);
  font-family: var(--campus-font-sans);
  font-size: 15px;
  font-weight: 500;
}

.dd-item,
.dd-search {
  font-family: var(--campus-font-sans);
}

.cta-form-wrap input {
  height: var(--campus-control-height);
  padding: 0 16px;
  border: 1px solid var(--campus-border);
  border-radius: 16px;
  background: #fff;
  font-size: 15px;
}

.cta-form-wrap input:focus {
  background: #fff;
  border-color: var(--campus-accent);
}

.cta-submit {
  min-height: var(--campus-control-height);
  padding: 0 16px;
  border-radius: 16px;
  font-family: var(--campus-font-sans);
  font-size: 15px;
  font-weight: 700;
}

/* Lead catcher — shared by the legacy Express pages and static info pages. */
@keyframes campusLeadCatcherIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lead-catcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1400;
  width: min(360px, calc(100vw - 32px));
  padding: 24px;
  box-sizing: border-box;
  border: 1px solid rgba(20, 30, 60, 0.06);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(20, 30, 60, 0.2);
  color: var(--campus-text);
  text-align: center;
  animation: campusLeadCatcherIn 0.24s ease-out both;
}

.lead-catcher__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f2f3f7;
  color: #686868;
  font-size: 22px;
  font-weight: 400;
  line-height: 28px;
}

.lead-catcher__title {
  margin: 4px 24px 8px;
  font-family: var(--campus-font-sans);
  font-size: 24px;
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.35px;
}

.lead-catcher__subtitle {
  margin: 0 8px 18px;
  color: var(--campus-text-secondary);
  font-size: 16px;
  line-height: 1.35;
}

.lead-catcher__actions {
  display: grid;
  gap: 8px;
}

.lead-catcher__primary,
.lead-catcher__secondary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.lead-catcher__primary {
  background: var(--campus-accent);
  color: #fff;
}

.lead-catcher__secondary {
  background: #e7e7e8;
  color: var(--campus-text);
}

.lead-catcher__primary:hover,
.lead-catcher__primary:focus-visible {
  background: #2f83ed;
}

.lead-catcher__secondary:hover,
.lead-catcher__secondary:focus-visible,
.lead-catcher__close:hover,
.lead-catcher__close:focus-visible {
  background: #dcdde0;
}

.lead-catcher__primary:focus-visible,
.lead-catcher__secondary:focus-visible,
.lead-catcher__close:focus-visible {
  outline: 3px solid rgba(73, 146, 255, 0.35);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .lead-catcher {
    right: 16px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 16px;
    width: auto;
    padding: 24px 16px 16px;
  }

  .lead-catcher__title {
    margin-top: 8px;
    font-size: 26px;
    line-height: 1.12;
  }

  .lead-catcher__subtitle {
    margin-bottom: 20px;
    font-size: 17px;
  }

  .lead-catcher__primary,
  .lead-catcher__secondary {
    min-height: 56px;
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lead-catcher {
    animation: none;
  }
}

.sched-date-btn {
  min-height: 40px;
  border-radius: var(--campus-pill);
  font-family: var(--campus-font-sans);
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 600px) {

  .cta-form-wrap input,
  .cta-submit {
    min-height: 46px;
    height: 46px;
  }
}

/* Footer as a rounded card, inset from the page edges like the other blocks. */
footer {
  margin: 24px 16px 16px;
  border-radius: 32px;
  overflow: hidden;
}
@media (max-width: 600px) {
  footer {
    margin: 16px 10px 10px;
    border-radius: 24px;
  }
}

/* ───── Mobile drawer: floating rounded card (mirrored in next-app globals.css) ───── */
.mobile-nav-drawer {
  background: rgba(17, 17, 24, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.mobile-nav-panel {
  top: 10px;
  right: 10px;
  bottom: 10px;
  height: auto;
  width: 300px;
  max-width: calc(100vw - 20px);
  padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(10, 10, 60, 0.25);
  overflow-y: auto;
  transform: translateX(calc(100% + 12px));
  transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.mobile-nav-drawer.open .mobile-nav-panel {
  transform: translateX(0);
}
.mobile-nav-close {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: #f3f4fa;
  color: #111118;
  font-size: 18px;
  line-height: 40px;
  text-align: center;
  padding: 0;
  transition: background 0.15s ease;
}
.mobile-nav-close:hover {
  background: #e6e9ff;
}
.mobile-nav-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 2px 10px;
}
.mobile-nav-links li {
  width: 100%;
}
.mobile-nav-links li a {
  display: block;
  padding: 12px 14px;
  border-bottom: 0;
  border-radius: 14px;
  color: #111118;
  font-family: var(--campus-font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease;
}
.mobile-nav-links li a:hover,
.mobile-nav-links li a.active {
  background: #f3f4fa;
  color: #4f63f0;
}
.mobile-nav-heading {
  display: block;
  padding: 14px 14px 4px;
  color: #8a8aa0;
  font-family: var(--campus-font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mobile-nav-links li:has(> .mobile-nav-heading) a {
  padding-left: 22px;
  font-size: 17px;
}
/* Stickers sit side by side on one row. */
.mobile-nav-links li:has(> a.nav-sticker) {
  width: auto;
}
.mobile-nav-links li a.nav-sticker {
  display: inline-block;
  margin: 14px 0 6px 12px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 15px;
}
.mobile-nav-links li a.nav-sticker:hover {
  background: #d9ddff;
}
.mobile-nav-links li a.nav-sticker--green:hover {
  background: #dcf7a3;
}
.mobile-nav-actions {
  margin-top: auto;
  padding-top: 20px;
}
