:root {
  --bg: #0b0b0d;
  --panel: #131315;
  --card: #1a1a1d;
  --border: #2a2a2e;
  --text: #fff;
  --muted: #9a9aa2;
  --pink: #ee5876;
  --pink2: #ff7d9c;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, .sb-logo, .card-meta b, .tab, .pill, .section-title, .plan-left b, .cookie-head b, .foot-logo { font-family: 'Poppins', sans-serif; }
.pink { color: var(--pink); }

.btn {
  border: 0; cursor: pointer; font-family: inherit;
  border-radius: 14px; font-weight: 700; font-size: 15px;
  padding: 13px 22px; transition: .15s;
}
.btn-pink { background: linear-gradient(90deg, var(--pink), var(--pink2)); color: #fff; }
.btn-pink:hover { filter: brightness(1.1); }
.btn-big { width: 100%; font-size: 17px; padding: 16px 22px; }

.pill {
  border: 0; cursor: pointer; font-family: 'Poppins', sans-serif;
  border-radius: 100px; font-weight: 600; font-size: 13.5px;
  padding: 9px 18px; transition: .15s; display: inline-block;
}
.pill-pink { background: var(--pink); color: #fff; }
.pill-pink:hover { background: #f76f8a; }
.pill-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.22); }
.pill-blue { background: #4f9cf7; color: #fff; font-weight: 800; padding: 12px 34px; font-size: 15px; letter-spacing: .4px; }

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: 218px; z-index: 40;
  background: #0e0e10; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 18px 12px;
  overflow-y: auto;
}
.sb-logo { font-size: 21px; font-weight: 800; padding: 2px 10px 16px; color: #fff; }
.sb-logo span { color: var(--pink); }
.sb-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.sb-nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 14px; border-radius: 14px; font-size: 13.5px; font-weight: 500;
  color: #e8e8ea; border: 1px solid #232326; background: #141416;
}
.sb-nav a .fa-solid { width: 17px; text-align: center; font-size: 15px; flex: none; }
.sb-nav a:hover { background: var(--card); }
.sb-nav a.active { background: #26262a; font-weight: 600; }
.sb-nav a.sb-premium { color: #e2b04a; }
.sb-premium i {
  font-style: normal; background: #e5484d; border-radius: 8px;
  font-size: 10.5px; font-weight: 700; padding: 2px 7px; margin-left: auto;
}
.sb-bottom { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 1px solid var(--border); }
.sb-bottom a { padding: 9px 12px; font-size: 13px; color: #d5d5d8; border-radius: 10px; border: 1px solid #232326; background: #141416; }
.sb-bottom a:hover { background: var(--card); }
.sb-legal { font-size: 11px; color: var(--muted); padding: 10px 12px 0; }
.sb-legal a { color: var(--muted); }

/* ---------- Main / topbar ---------- */
.main { margin-left: 218px; }
.topbar {
  position: sticky; top: 0; z-index: 30; height: 58px;
  background: rgba(11,11,13,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; padding: 0 22px;
}
.tabs { display: flex; gap: 26px; height: 100%; }
.tab {
  display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600;
  color: var(--muted); border-bottom: 3px solid transparent;
}
.tab svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.tab.active { color: var(--pink); border-color: var(--pink); }
.tab:hover { color: #fff; }
.tab.active:hover { color: var(--pink); }
.topbar-btns { display: flex; gap: 10px; }

/* ---------- Carousel ---------- */
.carousel { position: relative; overflow: hidden; }
.slides { display: flex; transition: transform .5s ease; }
.slide { min-width: 100%; position: relative; aspect-ratio: 1920/600; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center; gap: 18px; padding: 0 7%;
}
.slide-overlay.bottom-left { justify-content: flex-end; align-items: flex-start; padding-bottom: 56px; }
.slide-overlay img.school-logo {
  height: 52%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.55));
}
.school-off {
  font-family: 'Poppins', sans-serif; font-weight: 800; font-size: clamp(20px, 2.6vw, 34px);
  color: #ffc93c; text-shadow: 2px 2px 0 rgba(0,0,0,.7);
}
.car-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0,0,0,.45); color: #fff; font-size: 22px; line-height: 1;
}
.car-arrow:hover { background: rgba(0,0,0,.7); }
.car-arrow.prev { left: 12px; }
.car-arrow.next { right: 12px; }
.car-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; gap: 7px; justify-content: center; }
.car-dots span { width: 18px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.35); cursor: pointer; }
.car-dots span.on { background: #fff; }

/* ---------- Content ---------- */
.content { padding: 26px 24px 0; }
.section-title { font-size: 25px; font-weight: 700; margin: 14px 0 18px; }
.section-title .arr { color: var(--muted); font-weight: 400; }
.faq-title { margin-top: 46px; text-align: center; }

.filter-row { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.search {
  background: var(--card); border: 1px solid var(--border); border-radius: 100px;
  color: #fff; font-size: 13.5px; padding: 10px 18px 10px 40px; width: 200px; outline: none; font-family: inherit;
}
.search::placeholder { color: var(--muted); }
.chips { display: flex; gap: 9px; flex-wrap: wrap; }
.chip i { margin-right: 7px; }
.search-box { position: relative; display: inline-flex; }
.search-box i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; pointer-events: none; }
.chip {
  background: var(--card); border: 1px solid var(--border); border-radius: 100px;
  color: #fff; font-size: 13px; font-weight: 500; padding: 9px 20px; cursor: pointer; font-family: inherit;
}
.chip.active { background: rgba(238,88,118,.14); border-color: var(--pink); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.card { display: block; }
.card-img {
  position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 2/3;
  background: var(--card); border: 1px solid var(--border);
}
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.card:hover .card-img img { transform: scale(1.04); }
.badges { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; }
.badges i { width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 12.5px; display: flex; align-items: center; justify-content: center; }
.card-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 12px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.78)); color: #fff; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 14.5px; }
.card-name em { font-style: normal; font-weight: 600; color: #d0d0d4; margin-left: 5px; font-size: 13px; }
.new-badge { position: absolute; top: 10px; left: 10px; background: var(--pink); color: #fff; font-size: 10.5px; font-weight: 800; padding: 4px 9px; border-radius: 100px; }
.new-badge i { font-size: 10px; margin-right: 4px; }




/* ---------- SEO ---------- */
.seo { max-width: 920px; margin: 48px auto 0; }
.seo h2 { font-size: 21px; font-weight: 700; margin: 30px 0 12px; }
.seo p { color: #c4c4c9; font-size: 14.5px; line-height: 1.65; margin-bottom: 12px; }

/* ---------- FAQ ---------- */
.faq { max-width: 920px; margin: 0 auto 46px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 4px;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 15px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { font-style: normal; color: var(--muted); transition: .2s; }
.faq details[open] summary i { transform: rotate(180deg); }
.faq p { color: var(--muted); font-size: 14px; line-height: 1.6; padding: 0 4px 16px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); margin-top: 30px; padding: 34px 0 26px; }
.foot-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; max-width: 920px; margin: 0 auto; padding: 0 4px; }
.foot-logo { padding: 0 0 10px; font-size: 19px; }
.foot-cols p { color: var(--muted); font-size: 12.5px; line-height: 1.55; max-width: 300px; }
.foot-cols b { display: block; font-size: 13.5px; margin-bottom: 10px; font-family: 'Poppins', sans-serif; }
.foot-cols a { display: block; color: var(--muted); font-size: 12.5px; padding: 4px 0; }
.foot-cols a:hover { color: #fff; }
.foot-note { text-align: center; color: var(--muted); font-size: 12px; margin-top: 30px; }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; bottom: 18px; right: 18px; z-index: 60; width: 380px; max-width: calc(100vw - 36px);
  background: #1a1a1c; border: 1px solid var(--border); border-radius: 18px;
  padding: 20px; box-shadow: 0 20px 50px rgba(0,0,0,.6); display: none;
}
.cookie.on { display: block; }
.cookie-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-family: 'Poppins', sans-serif; font-size: 17px; }
.cookie-head button { background: none; border: 0; cursor: pointer; font-size: 15px; }
.cookie p { color: var(--muted); font-size: 12.5px; line-height: 1.5; margin-bottom: 14px; }
.cookie p a { color: var(--pink); text-decoration: underline; }
.ck-btn {
  width: 100%; background: var(--card); border: 1px solid var(--border); border-radius: 100px;
  color: #fff; font-size: 13px; font-weight: 600; padding: 10px; cursor: pointer; font-family: inherit;
}
.cookie-row { display: flex; gap: 10px; margin-top: 10px; }
.ck-pink { background: var(--pink); border-color: var(--pink); font-weight: 700; }

/* ---------- Modal / steps ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.7); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 16px;
  overflow-y: auto;
}
.overlay.on { display: flex; }
.modal {
  background: #161618; border: 1px solid var(--border); border-radius: 22px;
  width: 100%; max-width: 440px; padding: 26px; position: relative;
  box-shadow: 0 40px 90px rgba(0,0,0,.6); margin: auto 0;
}
.step { display: none; }
.step.is-on { display: block; }
.step h2 { font-size: 24px; font-weight: 800; margin-bottom: 18px; }
.x { position: absolute; top: 16px; right: 18px; background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; }
.x:hover { color: #fff; }

.fields { display: flex; flex-direction: column; gap: 12px; }
.inp { position: relative; display: block; }
.inp span { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-size: 15px; pointer-events: none; }
.inp input {
  width: 100%; background: #1f1f23; border: 1px solid var(--border); border-radius: 14px;
  color: #fff; font-size: 16px; padding: 15px 44px 15px 44px; outline: none; font-family: inherit;
}
.inp input:focus { border-color: var(--pink); }
.inp input::placeholder { color: #6e6e76; }
.eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; font-size: 15px; padding: 6px; color: #fff; }
.hint { color: var(--muted); font-size: 13px; margin-top: -4px; }
.tos { color: var(--muted); font-size: 12.5px; line-height: 1.55; margin-top: 14px; text-align: center; }
.tos a { color: #c9c9cf; }
.foot { text-align: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.foot a { color: var(--pink); font-weight: 700; }
.err { color: #ff5470; font-size: 13px; display: none; }
.err.on { display: block; }

.row2 { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 10px; }
.row2 .inp input { padding-left: 15px; }

.plan { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #101012; border: 1px solid var(--border); border-left: 3px solid var(--pink); border-radius: 16px; padding: 16px 18px; margin-bottom: 18px; }
.plan-left b { display: block; font-size: 20px; font-weight: 800; }
.plan-left i { font-style: normal; color: var(--muted); font-size: 13px; }
.plan-badge { background: linear-gradient(90deg, var(--pink), var(--pink2)); border-radius: 10px; font-weight: 800; font-size: 13px; padding: 8px 12px; white-space: nowrap; }

.benefits-title { font-size: 13px; color: var(--muted); font-weight: 700; margin: 4px 0 10px; }
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 16px; }
.benefits div { background: #1d1d20; border-radius: 12px; padding: 12px; font-size: 13.5px; font-weight: 700; }
.benefits i { width: 20px; text-align: center; color: var(--pink); }
.big-ico i { color: var(--pink); }
.btn i { margin-right: 7px; }
.plan-badge i { margin-right: 5px; }

.spin { width: 46px; height: 46px; border: 4px solid var(--card); border-top-color: var(--pink); border-radius: 50%; margin: 12px auto 20px; animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.big-ico { font-size: 44px; text-align: center; margin-bottom: 12px; }
.dots { display: flex; gap: 6px; justify-content: center; margin-top: 18px; }
.dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); animation: blink 1.2s infinite; }
.dots span:nth-child(2) { animation-delay: .2s; }
.dots span:nth-child(3) { animation-delay: .4s; }
.step-processing, .step-push, .step-success, .step-otp { text-align: center; padding-top: 8px; }
.step-processing h2, .step-push h2, .step-success h2, .step-otp h2 { margin-bottom: 10px; }
@keyframes blink { 0%,80%,100% { opacity: .3; } 40% { opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 860px) {
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .slide { aspect-ratio: 768/430; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .topbar .pill-ghost { display: none; }
  .foot-cols { grid-template-columns: 1fr; }
}

/* ---------- Chat page ---------- */
.chat-body { display: flex; height: 100vh; overflow: hidden; }
.chat-main { flex: 1; display: flex; flex-direction: column; min-width: 0; margin-left: 218px; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 20px; background: #101012; border-bottom: 1px solid var(--border); }
.chat-back { color: var(--muted); font-size: 16px; text-decoration: none; padding: 8px; }
.chat-back:hover { color: #fff; }
.chat-ava { position: relative; width: 46px; height: 46px; }
.chat-ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.chat-ava .on-dot { position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%; background: #3ddc84; border: 2px solid #101012; }
.chat-who { flex: 1; min-width: 0; }
.chat-who b { display: block; font-family: 'Poppins', sans-serif; font-size: 15px; }
.chat-who span { color: var(--muted); font-size: 12.5px; }
.chat-who em { font-style: normal; color: #3ddc84; }
.chat-acts { display: flex; gap: 8px; }
.chat-act { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: none; color: var(--muted); font-size: 15px; cursor: pointer; }
.chat-act:hover { color: #fff; border-color: var(--pink); }

.chat-feed { flex: 1; overflow-y: auto; padding: 20px 20px 12px; display: flex; flex-direction: column; gap: 10px; }
.chat-row { display: flex; align-items: flex-end; gap: 8px; }
.chat-row.row-me { justify-content: flex-end; }
.msg { max-width: 72%; padding: 12px 16px; font-size: 14.5px; line-height: 1.45; }
.row-her .msg { background: #232327; color: #fff; border-radius: 18px 18px 18px 6px; }
.row-her .msg-ava { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; align-self: flex-end; }
.row-me .msg { background: linear-gradient(90deg, var(--pink), var(--pink2)); color: #fff; border-radius: 18px 18px 6px 18px; font-weight: 500; }
.msg-cta { font-weight: 700; }
.msg-cta b { display: block; }
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }

.chat-bar { display: flex; gap: 10px; padding: 12px 20px 16px; background: #101012; border-top: 1px solid var(--border); }
.chat-bar input { flex: 1; background: #1d1d20; border: 1px solid var(--border); border-radius: 24px; padding: 13px 18px; color: #fff; font-size: 14.5px; outline: none; }
.chat-bar input:focus { border-color: var(--pink); }
.chat-bar input::placeholder { color: #6e6e76; }
.chat-send { width: 46px; height: 46px; border-radius: 50%; border: 0; background: linear-gradient(90deg, var(--pink), var(--pink2)); color: #fff; font-size: 16px; cursor: pointer; flex: none; }

@media (max-width: 860px) {
  .chat-body { display: flex; }
  .chat-who b { font-size: 14px; }
  .msg { max-width: 84%; }
}

/* --- v4: гамбургер-меню на мобиле --- */
.sb-toggle { display: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); background: #141416; color: #fff; font-size: 15px; cursor: pointer; flex: none; }
.sb-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 39; }
@media (max-width: 860px) {
  .sb-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .sb-backdrop { display: block; }
  .sidebar { display: flex !important; transform: translateX(-105%); visibility: hidden; transition: transform .25s; }
  body.sb-open .sidebar { transform: none; visibility: visible; }
  .chat-main { margin-left: 0 !important; }
}
.topbar-logo { display: none; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 21px; color: #fff; text-decoration: none; letter-spacing: -.3px; }
.topbar-logo span { color: var(--pink); }
@media (max-width: 860px) {
  .topbar-logo { display: inline-block; margin-right: 6px; }
}
