/* Shift.bg — shared styles for the landing page and both portals.
   Layout concept: the deck's rhythm of white/mist slides and deep-night slides,
   with the logo's lilac play-triangle and the violet-to-peach "€12/час" gradient as the only flourishes. */
:root {
  color-scheme: light;
  /* brand colors, sampled from the logo and the presentation */
  --ink: #081e48;          /* logo navy, headings */
  --ink-2: #3c4766;        /* running text */
  --ink-3: #6b7390;        /* captions, secondary */
  --night: #041129;        /* dark slides */
  --night-2: #0c1d44;      /* raised surface on night */
  --paper: #ffffff;
  --mist: #f6f4fc;         /* lilac-tinted app background */
  --fog: #efedf5;          /* presentation light grey, nudged toward lilac */
  --line: #e4e0f0;
  --violet: #6537e4;       /* primary buttons */
  --violet-deep: #4f25c9;
  --violet-soft: #eee8fd;
  --lilac: #e2a9f1;        /* logo triangle */
  --blue: #0d64fb;         /* ".bg" */
  --peach: #e08d72;
  --grad: linear-gradient(90deg, #8b5aeb 0%, #bb77a7 55%, #e08d72 100%);
  --green: #138a4a;  --green-soft: #e3f6eb;
  --amber: #b9650c;  --amber-soft: #fdf0e1;
  --red: #c8243c;    --red-soft: #fde8eb;
  --on-night: #ffffff;
  --on-night-2: #b8c0d9;

  --display: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --body: "Open Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --r-sm: 10px; --r-md: 16px; --r-lg: 28px;
  --shadow: 0 1px 2px rgba(8, 30, 72, .06), 0 10px 30px -12px rgba(8, 30, 72, .18);
  --shadow-lg: 0 2px 6px rgba(8, 30, 72, .06), 0 30px 60px -24px rgba(8, 30, 72, .28);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
section[id], main[id] { scroll-margin-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); margin: 0; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
a { color: var(--violet); }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: 100%; max-width: calc(var(--maxw) + 64px); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1.5px solid transparent;
  font: 700 15px/1 var(--display); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: var(--violet-deep); }
.btn-ghost { background: var(--paper); color: var(--violet); border-color: #b9a6f3; }
.btn-ghost:hover { border-color: var(--violet); background: var(--violet-soft); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--violet-soft); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 40px; width: auto; }
.main-nav { display: flex; gap: 28px; margin-left: 28px; }
.main-nav a { color: var(--ink); text-decoration: none; font: 600 15px/1 var(--display); padding: 8px 0; }
.main-nav a:hover { color: var(--violet); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.link-btn { background: none; border: 0; color: var(--ink); font: 600 15px/1 var(--display); padding: 10px 8px; cursor: pointer; }
.link-btn:hover { color: var(--violet); }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.mobile-nav { display: none; }
@media (max-width: 900px) {
  .main-nav, .header-actions .link-btn, .header-actions .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-nav:not([hidden]) { display: grid; gap: 4px; padding: 8px 0 18px; border-top: 1px solid var(--line); }
  .mobile-nav a, .mobile-nav button.link-btn { display: block; text-align: left; padding: 12px 4px; font-size: 17px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 600; }
  .mobile-nav .btn { margin-top: 8px; }
}

/* ---------- section scaffolding ---------- */
.band { padding-block: clamp(64px, 9vw, 112px); }
.band-mist { background: var(--mist); }
.band-fog { background: var(--fog); }
.band-night { background: var(--night); color: var(--on-night-2); }
.band-night h2, .band-night h3 { color: var(--on-night); }
.eyebrow { font: 700 13px/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--violet); }
.band-night .eyebrow { color: var(--lilac); }
.section-title { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); max-width: 60ch; }
.band-night .lead { color: var(--on-night-2); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.violet-text { color: var(--violet); }

/* ---------- modal + toast ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(4, 17, 41, .55); display: grid; place-items: center; padding: 20px; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.modal { width: min(520px, 100%); max-height: calc(100% - 40px); overflow: auto; background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); padding: 28px; position: relative; }
.modal h3 { font-size: 24px; font-weight: 800; padding-right: 40px; }
.modal p { margin-top: 8px; color: var(--ink-2); }
.modal-close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); display: grid; place-items: center; }
.portal-choices { display: grid; gap: 12px; margin-top: 20px; }
.portal-choice { display: flex; gap: 16px; align-items: center; text-align: left; width: 100%; padding: 16px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; text-decoration: none; color: var(--ink); transition: border-color .15s, background .15s; }
.portal-choice:hover { border-color: var(--violet); background: var(--violet-soft); }
.portal-choice .pc-icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); }
.portal-choice strong { display: block; font: 800 17px/1.2 var(--display); }
.portal-choice span { font-size: 14px; color: var(--ink-3); }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 120; background: var(--night); color: #fff; padding: 14px 20px; border-radius: 14px; box-shadow: var(--shadow-lg); font: 600 15px/1.4 var(--display); width: max-content; max-width: calc(100% - 32px); }

/* ---------- footer ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding-block: 48px 36px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; align-items: flex-start; }
.footer-grid .brand img { height: 30px; }
.footer-grid p { margin-top: 12px; max-width: 34ch; color: var(--ink-3); font-size: 15px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer-links a, .footer-links button { color: var(--ink); text-decoration: none; font: 600 15px/1.4 var(--display); background: none; border: 0; padding: 0; cursor: pointer; }
.footer-links a:hover, .footer-links button:hover { color: var(--violet); }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
