* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f4f5fa;
  color: #1a1d2e;
  user-select: text;
  -webkit-user-select: text;
  min-width: 320px;
}

/* ══════════════════ NAVBAR ══════════════════ */
.navbar {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(31,64,255,.08);
  padding: 0 40px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.navbar-logo img { height: 32px; display: block; }
.navbar-cta {
  background: linear-gradient(135deg, #5165f6, #1f40ff);
  color: #fff;
  border-radius: 100px;
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: box-shadow .2s, transform .15s;
  box-shadow: 0 3px 10px rgba(31,64,255,.3);
}
.navbar-cta:hover { box-shadow: 0 5px 18px rgba(31,64,255,.45); transform: translateY(-1px); }
.navbar-cta:active { transform: scale(.97); }

/* ══════════════════ HERO ══════════════════ */
.hero {
  --glow: 0;
  background: radial-gradient(ellipse at center bottom, #3d2fa0 0%, #1f40ff 55%, #1535d8 100%);
  padding: 48px 40px 56px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  clip-path: inset(0);
}
/* фоновый логотип-watermark */
.hero-bg-logo {
  position: fixed;
  left: -17vw;
  top: -17vw;
  width: 67vw;
  opacity: .08;
  pointer-events: none;
  user-select: none;
  filter: brightness(0) invert(1);
}
/* scroll-driven glow layers */
.hero-glow {
  opacity: 0;
  transition: opacity 1.2s ease-out;
  will-change: opacity;
  pointer-events: none;
}
.hero-glow-1 {
  opacity: calc(var(--glow) * 0.35);
  filter: brightness(0) invert(1) blur(40px) drop-shadow(0 0 20px #4da6ff);
  transform: translate(3vw, -2vw) scale(1.03);
}
.hero-glow-2 {
  opacity: calc(var(--glow) * 0.25);
  filter: brightness(0) invert(1) blur(70px) drop-shadow(0 0 30px #8855ff);
  transform: translate(-2vw, 4vw) scale(1.05);
}
.hero-glow-3 {
  opacity: calc(var(--glow) * 0.45);
  filter: brightness(0) invert(1) blur(30px);
  transform: translate(1vw, 1vw) scale(1.02);
}
.hero-glow-4 {
  opacity: calc(var(--glow) * 0.30);
  filter: brightness(0) invert(1) blur(55px) drop-shadow(0 0 25px #1f40ff);
  transform: translate(-3vw, -1vw) scale(1.04);
}
/* декоративные блобы */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  user-select: none;
}
.hero-blob-1 { width: 400px; height: 400px; background: rgba(90,65,190,.55); top: -120px; left: -100px; }
.hero-blob-2 { width: 300px; height: 300px; background: rgba(255,255,255,.06); bottom: -80px; right: 10%; }
.hero-blob-3 { width: 200px; height: 200px; background: rgba(31,64,255,.4); top: 40px; right: -60px; }

.hero-inner { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 100px;
  padding: 7px 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .3px;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}
.hero h1 {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 18px;
  max-width: 780px;
  margin-left: auto; margin-right: auto;
  letter-spacing: -.5px;
}
.hero h1 span { opacity: .75; font-weight: 600; font-size: 38px; display: block; margin-top: 4px; }
.hero-sub {
  font-size: 17px;
  opacity: .82;
  max-width: 520px;
  margin: 0 auto 52px;
  line-height: 1.65;
}

/* Три слота */
.slots { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.slot-card {
  position: relative;
  display: flex; flex-direction: column;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 24px;
  padding: 26px 30px;
  text-align: left;
  width: 230px;
  overflow: hidden;
  transition: background .2s, box-shadow .2s;
}
.slot-card::before {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(14px);
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
}
.slot-card > * { position: relative; z-index: 1; }
.slot-card:hover { background: rgba(255,255,255,.2); box-shadow: 0 12px 32px rgba(0,0,0,.2); }
.slot-segment {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; opacity: .65; margin-bottom: 10px;
}
.slot-segment svg { opacity: .8; }
.slot-time { font-size: 36px; font-weight: 800; line-height: 1; margin-bottom: 4px; margin-top: auto; }
.slot-date { font-size: 14px; opacity: .75; margin-bottom: 18px; }
.slot-segment, .slot-time, .slot-date { flex-shrink: 0; }
.slot-btn {
  display: inline-block;
  background: #fff;
  color: #1f40ff;
  border-radius: 100px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: center;
  transition: background .15s, box-shadow .15s, transform .1s;
}
.slot-btn:hover { background: #f0f3ff; box-shadow: 0 4px 12px rgba(31,64,255,.2); }
.slot-btn:active { transform: scale(.97); }

/* ══════════════════ WRAPPER ══════════════════ */
.wrapper { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* ══════════════════ AGENDA ══════════════════ */
.section { padding: 72px 0; }
.section-label {
  display: inline-block;
  background: #eff1ff; color: #1f40ff;
  border-radius: 100px; padding: 5px 16px;
  font-size: 11px; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; margin-bottom: 14px;
}
.section-title {
  font-size: 34px; font-weight: 800; line-height: 1.18;
  margin-bottom: 6px; color: #1a1d2e; letter-spacing: -.3px;
}
.section-sub { font-size: 16px; color: #6b7280; margin-bottom: 40px; line-height: 1.6; }

.agenda-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.agenda-card {
  background: #fff;
  border-radius: 24px;
  padding: 28px 30px;
  box-shadow: 0 2px 16px rgba(31,64,255,.06);
  border: 1px solid #eaecff;
  transition: box-shadow .2s, transform .2s;
}
.agenda-card:hover { box-shadow: 0 8px 28px rgba(31,64,255,.11); transform: translateY(-2px); }
.agenda-card-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.agenda-num {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #5165f6, #1f40ff);
  color: #fff; font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.agenda-name { font-size: 18px; font-weight: 700; color: #1a1d2e; line-height: 1.3; padding-top: 6px; }
.agenda-pain {
  font-size: 15px;
  color: #eb5c54;
  font-weight: 500;
  margin-bottom: 10px;
  line-height: 1.5;
  padding-left: 52px;
}
.agenda-desc {
  font-size: 15px; color: #4b5563; line-height: 1.65;
  padding-left: 52px;
}

/* Добавить в календарь */
.calendar-strip {
  background: #fff;
  flex-direction: column;
  border-radius: 20px; border: 1px solid #eaecff;
  padding: 20px 28px;
  display: flex; align-items: left; gap: 16px; flex-wrap: wrap;
  margin-top: 32px;
}
.calendar-strip-label { font-size: 14px; font-weight: 600; color: #6b7280; flex-shrink: 0; }
.cal-google-group, .cal-ics-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cal-group-label { font-size: 12px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: .6px; width: 100%; }
.cal-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: #f4f5fa; border: 1px solid #e0e4ff;
  border-radius: 100px; padding: 8px 18px;
  font-size: 14px; font-weight: 500; color: #1a1d2e;
  cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.cal-btn:hover { background: #eff1ff; border-color: #1f40ff; color: #1f40ff; transform: translateY(-1px); }
.cal-btn:active { transform: scale(.97); }
.cal-btn svg { flex-shrink: 0; }
.cal-ics-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cal-ics-hint { font-size: 13px; color: #6b7280; width: 100%; margin-bottom: -2px; }

/* ══════════════════ REGISTER BLOCK ══════════════════ */
.register-block {
  background: linear-gradient(135deg, #eef0ff 0%, #e6e9ff 100%);
  border-radius: 40px; padding: 56px 48px;
  text-align: center; border: 1px solid #d8dcff;
  position: relative; overflow: hidden;
}
/* watermark в register блоке */
.register-block::before {
  content: '';
  position: absolute; right: -60px; bottom: -40px;
  width: 320px; height: 320px;
  background: url('https://rososmotr.ru/nuxt/bg-logo.ClK76LmF.png') center/contain no-repeat;
  opacity: .06; pointer-events: none;
}
.register-block .section-title { margin-bottom: 10px; }
.register-desc { font-size: 15px; color: #6b7280; margin-bottom: 28px; line-height: 1.6; }
.register-meta {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px;
}
.meta-pill {
  background: #fff; border-radius: 100px;
  padding: 9px 20px; font-size: 14px; font-weight: 500;
  color: #374151; border: 1px solid #dde2ff;
  display: flex; align-items: center; gap: 8px;
}
.meta-pill strong { color: #1f40ff; }
.register-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px;
}
.btn-primary {
  background: linear-gradient(135deg, #5165f6, #1f40ff);
  color: #fff; border-radius: 100px; padding: 15px 36px;
  font-size: 16px; font-weight: 600; border: none; cursor: pointer;
  box-shadow: 0 4px 18px rgba(31,64,255,.35);
  transition: box-shadow .2s, transform .15s;
}
.btn-primary:hover { box-shadow: 0 7px 28px rgba(31,64,255,.5); transform: translateY(-1px); }
.btn-primary:active { transform: scale(.97); }
.btn-secondary {
  background: #fff; color: #1f40ff;
  border-radius: 100px; padding: 15px 36px;
  font-size: 16px; font-weight: 600;
  border: 2px solid #c7cfff; cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.btn-secondary:hover { border-color: #1f40ff; box-shadow: 0 4px 14px rgba(31,64,255,.15); transform: translateY(-1px); }
.btn-secondary:active { transform: scale(.97); }
.register-links { font-size: 14px; color: #6b7280; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 16px; }
.register-links a { color: #1f40ff; text-decoration: none; transition: opacity .15s; white-space: nowrap; }
.register-links a:hover { opacity: .75; text-decoration: underline; }
.register-links svg { vertical-align: middle; margin-right: 2px; position: relative; top: -1px; }

/* ══════════════════ FOOTER ══════════════════ */
footer {
  background: #1a1d2e;
  padding: 28px 40px;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-top: 72px;
  position: relative; overflow: hidden;
}
.footer-bg-logo {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  height: 200px; opacity: .18; pointer-events: none; filter: brightness(0) invert(1);
}
.footer-logo { height: 24px; flex-shrink: 0; display: block; filter: brightness(0) invert(1); opacity: .6; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,.4); line-height: 1.8; }
.footer-copy a { color: rgba(255,255,255,.55); text-decoration: none; transition: color .15s; }
.footer-copy a:hover { color: #fff; }

/* ══════════════════ MODAL ══════════════════ */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(20,24,46,.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  overflow-y: auto;
  padding: 24px 16px;
  perspective: 900px;
  align-items: flex-start;
  justify-content: center;
}
.modal-overlay.active { display: flex; animation: overlayFadeIn .3s ease forwards; }
.modal-overlay.closing { animation: overlayFadeOut .25s ease forwards; }
@keyframes overlayFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes overlayFadeOut { from { opacity: 1; } to { opacity: 0; } }

.modal {
  background: #fff;
  border-radius: 28px;
  width: 100%; max-width: 460px;
  box-shadow: 0 20px 60px rgba(20,24,46,.25);
  animation: modalOpen .4s cubic-bezier(.22,1.2,.36,1) forwards;
  transform-origin: center bottom;
  position: relative;
  margin: auto 0;
  flex-shrink: 0;
}
.modal-overlay.closing .modal { animation: modalClose .2s ease forwards; }
@keyframes modalOpen {
  from { transform: scale(0.85) translateY(40px) rotateX(8deg); opacity: 0; }
  to { transform: scale(1) translateY(0) rotateX(0deg); opacity: 1; }
}
@keyframes modalClose {
  from { transform: scale(1) translateY(0); opacity: 1; }
  to { transform: scale(0.9) translateY(20px); opacity: 0; }
}

/* Bottom-sheet animations for mobile */
@keyframes sheetSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
@keyframes sheetSlideDown {
  from { transform: translateY(0); }
  to { transform: translateY(100%); }
}

.modal-inner { padding: 28px 32px 24px; }

.modal-close {
  position: absolute; top: 10px; right: 10px;
  width: 44px; height: 44px; border-radius: 50%;
  border: none; background: transparent;
  cursor: pointer; color: #6b7280;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
  z-index: 10;
  flex-shrink: 0;
}
.modal-close::before {
  content: '';
  position: absolute;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #f4f5fa;
  z-index: -1;
  transition: background .15s;
}
.modal-close:hover { color: #1f40ff; }
.modal-close:hover::before { background: #eff1ff; }
.modal-close svg { display: block; }

.modal-icon {
  width: 52px; height: 52px; border-radius: 16px;
  background: linear-gradient(135deg, #5165f6, #1f40ff);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.modal h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; line-height: 1.2; }
.modal-sub { font-size: 15px; color: #6b7280; margin-bottom: 16px; line-height: 1.5; }

.form-group { margin-bottom: 10px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: #374151; margin-bottom: 5px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; border: 1.5px solid #e4e7ff;
  border-radius: 12px; padding: 11px 14px;
  font-size: 15px; font-family: inherit;
  color: #1a1d2e; background: #fff;
  transition: border-color .15s, box-shadow .15s;
  outline: none; resize: none;
  -webkit-appearance: none; appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 36px;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: #1f40ff; box-shadow: 0 0 0 3px rgba(31,64,255,.1);
}
.form-group input.error, .form-group select.error, .form-group textarea.error {
  border-color: #eb5c54; box-shadow: 0 0 0 3px rgba(235,92,84,.1);
}
.field-error { font-size: 12px; color: #eb5c54; margin-top: 4px; display: none; }
.field-error.visible { display: block; }

.checkbox-row {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 12px; font-size: 13px; color: #6b7280; line-height: 1.5;
}
.checkbox-row input[type=checkbox] {
  width: 18px; height: 18px; border-radius: 5px;
  cursor: pointer; accent-color: #1f40ff; flex-shrink: 0; margin-top: 1px;
}
.checkbox-row a { color: #1f40ff; text-decoration: none; }
.checkbox-row a:hover { text-decoration: underline; }

.modal-submit {
  width: 100%; margin-top: 4px;
  background: linear-gradient(135deg, #5165f6, #1f40ff);
  color: #fff; border-radius: 100px;
  padding: 14px; font-size: 16px; font-weight: 600;
  border: none; cursor: pointer;
  box-shadow: 0 4px 16px rgba(31,64,255,.3);
  transition: box-shadow .2s, transform .15s;
}
.modal-submit:hover { box-shadow: 0 6px 24px rgba(31,64,255,.45); transform: translateY(-1px); }
.modal-submit:active { transform: scale(.98); }

/* Success */
.modal-success { display: none; text-align: center; padding: 8px 0 4px; }
.success-anim {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  animation: popIn .45s cubic-bezier(.34,1.56,.64,1);
}
@keyframes popIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-success h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.modal-success p { font-size: 15px; color: #6b7280; line-height: 1.65; }

/* ══════════════════ RESPONSIVE ══════════════════ */
@media (max-width: 1279px) and (min-width: 641px) {
  .hero-bg-logo { width: 94vw; left: -24vw; top: -24vw; }
}

@media (max-width: 640px) {
  .navbar { padding: 0 20px; }
  .hero { padding: 52px 20px 64px; }
  .hero h1 { font-size: 30px; letter-spacing: -.2px; }
  .hero h1 span { font-size: 24px; }
  .hero-sub { font-size: 15px; }
  .slots { flex-direction: column; align-items: center; }
  .slot-card { width: 100%; max-width: 340px; }
  .wrapper { padding: 0 16px; }
  .section { padding: 48px 0; }
  .section-title { font-size: 26px; }
  .agenda-grid { grid-template-columns: 1fr; }
  .agenda-pain, .agenda-desc { padding-left: 0; }
  .register-block { padding: 36px 24px; border-radius: 28px; }
  .register-block::before { display: none; }
  .cal-google-group, .cal-ics-group { gap: 6px; }
  footer { padding: 32px 20px; }
  .modal-inner {
    padding: 28px 24px calc(24px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
    position: relative;
  }
  .hero-bg-logo { width: 107vw; left: -27vw; top: -27vw; }
  .hero-glow-1 { filter: brightness(0) invert(1) blur(25px) drop-shadow(0 0 12px #4da6ff); transform: translate(2vw, -1vw) scale(1.02); }
  .hero-glow-2 { filter: brightness(0) invert(1) blur(45px) drop-shadow(0 0 18px #8855ff); transform: translate(-1vw, 2vw) scale(1.03); }
  .hero-glow-3 { filter: brightness(0) invert(1) blur(20px); transform: translate(0.5vw, 0.5vw) scale(1.01); }
  .hero-glow-4 { filter: brightness(0) invert(1) blur(35px) drop-shadow(0 0 15px #1f40ff); transform: translate(-2vw, -0.5vw) scale(1.02); }
  .form-group input, .form-group textarea, .form-group select { font-size: 16px; }

  /* Bottom-sheet modal */
  .modal-overlay { padding: 0; flex-direction: column; justify-content: flex-end; }
  .modal {
    border-radius: 28px 28px 0 0;
    max-width: 100%; margin: 0;
    padding-top: 20px;
    animation: sheetSlideUp .35s cubic-bezier(.22,1,.36,1) forwards;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex-shrink: 1;
    position: relative;
  }
  .modal-overlay.closing .modal { animation: sheetSlideDown .2s ease forwards; }

  /* Left concave corner - z-index 1: above modal-inner (auto), below modal-close (10) */
  .modal::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 0;
    width: 36px;
    height: 24px;
    background: radial-gradient(circle 12px at 36px 24px, transparent 12px, #fff 12px);
    z-index: 1;
    pointer-events: none;
  }

  /* Right concave corner - z-index 0: last in DOM so renders above modal-inner anyway */
  .modal::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 0;
    width: 36px;
    height: 24px;
    background: radial-gradient(circle 12px at 0 24px, transparent 12px, #fff 12px);
    z-index: 0;
    pointer-events: none;
  }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 26px; }
  .register-actions { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; }
}
