:root {
  --bg-main: #f8f4ff;
  --bg-accent: #eef9fb;
  --pink: #f7bfd7;
  --pink-soft: #fbe4ef;
  --purple: #7d58e7;
  --purple-strong: #5d3fcc;
  --mint: #dff5f0;
  --blue-soft: #dceeff;
  --white: rgba(255,255,255,.76);
  --text: #372f4b;
  --text-soft: #665d7b;
  --line: rgba(125,88,231,.12);
  --shadow: 0 24px 60px rgba(126, 93, 170, 0.16);
  --shadow-soft: 0 14px 32px rgba(126, 93, 170, 0.1);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1180px;
  --header-height: 78px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(248, 209, 227, 0.72), transparent 28%),
    radial-gradient(circle at top right, rgba(218, 237, 255, 0.72), transparent 30%),
    linear-gradient(135deg, #fef6fb 0%, #f3f0ff 38%, #eef9fb 100%);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
input, textarea {
  width: 100%; border: 1px solid rgba(125,88,231,.14); outline: none;
  border-radius: 16px; padding: 15px 16px; background: rgba(255,255,255,.72); color: var(--text);
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
input:focus, textarea:focus {
  border-color: rgba(125,88,231,.36);
  box-shadow: 0 0 0 4px rgba(125,88,231,.08);
  background: rgba(255,255,255,.92);
}
textarea { resize: vertical; }
.page-bg, .page-bg::before, .page-bg::after { position: fixed; inset: 0; pointer-events: none; z-index: -3; }
.page-bg::before, .page-bg::after { content: ''; background-repeat: no-repeat; }
.page-bg::before {
  inset: auto auto 0 0; width: 420px; height: 420px;
  background:
    radial-gradient(circle at 28% 60%, rgba(237,171,202,.25), transparent 12%),
    radial-gradient(circle at 35% 52%, rgba(237,171,202,.25), transparent 10%),
    radial-gradient(circle at 42% 44%, rgba(237,171,202,.24), transparent 8%),
    radial-gradient(circle at 18% 70%, rgba(172,122,212,.14), transparent 20%);
}
.page-bg::after {
  inset: 0 0 auto auto; width: 450px; height: 450px;
  background:
    radial-gradient(circle at 66% 34%, rgba(237,171,202,.23), transparent 12%),
    radial-gradient(circle at 58% 40%, rgba(237,171,202,.23), transparent 10%),
    radial-gradient(circle at 49% 48%, rgba(237,171,202,.21), transparent 8%),
    radial-gradient(circle at 75% 20%, rgba(145,187,255,.18), transparent 22%);
}
body::before, body::after {
  content: ''; position: fixed; width: 340px; height: 340px; border-radius: 50%; pointer-events: none; z-index: -2;
  background: radial-gradient(circle, rgba(255,255,255,.5) 0%, rgba(255,255,255,0) 70%); filter: blur(10px);
}
body::before { top: 8%; left: 4%; }
body::after { bottom: 6%; right: 4%; }
.petals { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.petal { position: absolute; width: 16px; height: 22px; background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(246,182,211,.85)); border-radius: 65% 35% 70% 30% / 60% 40% 60% 40%; opacity: .72; box-shadow: 0 6px 12px rgba(230,173,205,.22); animation: fall linear infinite; }
.petal::after { content: ''; position: absolute; inset: 2px 5px auto auto; width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.9); }
.p1 { left: 8%; top: -10%; animation-duration: 15s; animation-delay: -2s; }
.p2 { left: 22%; top: -15%; animation-duration: 18s; animation-delay: -7s; }
.p3 { left: 38%; top: -8%; animation-duration: 14s; animation-delay: -11s; }
.p4 { left: 52%; top: -20%; animation-duration: 17s; animation-delay: -5s; }
.p5 { left: 66%; top: -12%; animation-duration: 16s; animation-delay: -10s; }
.p6 { left: 78%; top: -18%; animation-duration: 20s; animation-delay: -1s; }
.p7 { left: 88%; top: -9%; animation-duration: 13s; animation-delay: -9s; }
.p8 { left: 94%; top: -14%; animation-duration: 19s; animation-delay: -6s; }
@keyframes fall {
  0% { transform: translate3d(0, -10vh, 0) rotate(0deg); }
  25% { transform: translate3d(24px, 25vh, 0) rotate(90deg); }
  50% { transform: translate3d(-18px, 52vh, 0) rotate(180deg); }
  75% { transform: translate3d(22px, 78vh, 0) rotate(260deg); }
  100% { transform: translate3d(-12px, 110vh, 0) rotate(360deg); }
}
.container { width: min(calc(100% - 32px), var(--container)); margin: 0 auto; }
.section { padding: 96px 0; position: relative; }
.section-soft { background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.36)); }
.glass { background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.54)); border: 1px solid rgba(255,255,255,.54); box-shadow: var(--shadow); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.site-header { position: sticky; top: 16px; z-index: 50; width: min(calc(100% - 24px), 1240px); margin: 18px auto 0; border-radius: 999px; }
.header-inner { min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; }
.brand-mark, .hero-brand-mark { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 16px; background: linear-gradient(135deg, var(--purple) 0%, #9c72ff 100%); color: #fff; box-shadow: 0 16px 30px rgba(109,81,211,.28); }
.brand-text { letter-spacing: -.03em; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav a { color: var(--text-soft); font-size: .96rem; transition: color .25s ease, transform .25s ease; }
.nav a:hover { color: var(--purple-strong); transform: translateY(-1px); }
.nav-toggle { display: none; width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.6); align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 999px; }
.hero { padding-top: 56px; }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 28px; align-items: center; }
.hero-copy h1, .contact-copy h2, .admin-shell h1 { margin: 18px 0 14px; font-size: clamp(2.35rem, 5vw, 4.5rem); line-height: .98; letter-spacing: -.05em; }
.hero-brandline { display: flex; align-items: center; gap: 14px; font-size: 1.2rem; font-weight: 700; }
.hero-name { letter-spacing: -.04em; }
.hero-tagline { margin-top: 14px; display: inline-block; padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,.55); border: 1px solid rgba(125,88,231,.12); color: var(--purple-strong); font-weight: 700; font-size: .95rem; }
.hero-subtitle { max-width: 650px; margin: 0; font-size: 1.08rem; line-height: 1.7; color: var(--text-soft); }
.hero-actions, .form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { border: 0; display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 54px; padding: 0 22px; border-radius: 16px; font-weight: 700; transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--purple) 0%, #9067ff 100%); color: #fff; box-shadow: 0 14px 26px rgba(109,81,211,.28); }
.btn-secondary { background: rgba(255,255,255,.72); color: var(--purple-strong); border: 1px solid rgba(125,88,231,.14); }
.btn-ghost { background: rgba(220,240,255,.45); color: var(--text); border: 1px solid rgba(160,198,255,.25); }
.btn-block { width: 100%; }
.hero-points { margin-top: 28px; padding: 18px 20px; border-radius: 24px; display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.hero-points div { display: grid; gap: 6px; }
.hero-points span, .section-heading p, .feature-card p, .step p, .price-card p, .review-card p, .support-card p, .contact-copy p, .faq-head p, .mini-card p { color: var(--text-soft); line-height: 1.7; margin: 0; }
.hero-card, .feature-card, .step, .price-card, .support-card, .review-card, .contact-form, .faq-block, .admin-card, .admin-list, .admin-chat, .login-card { border-radius: var(--radius-lg); }
.hero-card { padding: 28px; }
.status-row, .contact-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.status-pill { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 999px; font-size: .88rem; font-weight: 700; }
.status-pill.online { background: rgba(212,248,232,.86); color: #25744f; }
.status-pill.soft { background: rgba(243,236,255,.86); color: var(--purple-strong); }
.hero-widget h3, .support-card h3, .faq-head h3 { margin: 0 0 10px; font-size: 1.4rem; letter-spacing: -.03em; }
.mini-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 22px; }
.mini-card { padding: 18px; background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.65); border-radius: 22px; box-shadow: var(--shadow-soft); }
.mini-card.wide { grid-column: span 2; }
.mini-card strong { display: block; margin: 10px 0 8px; }
.mini-icon { font-size: 1.2rem; }
.section-heading { max-width: 760px; margin-bottom: 32px; }
.eyebrow { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.65); border: 1px solid rgba(125,88,231,.12); color: var(--purple-strong); font-weight: 700; font-size: .88rem; }
.section-heading h2 { margin: 16px 0 12px; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.06; letter-spacing: -.045em; }
.cards-grid, .pricing-grid, .reviews-grid, .support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card, .price-card, .review-card, .support-card, .step, .contact-form, .admin-card, .admin-list, .admin-chat, .login-card { padding: 24px; transition: transform .28s ease, box-shadow .28s ease; }
.feature-card:hover, .price-card:hover, .review-card:hover, .support-card:hover, .step:hover, .contact-form:hover, .admin-card:hover, .admin-list:hover, .admin-chat:hover { transform: translateY(-4px); box-shadow: 0 24px 56px rgba(120,98,180,.18); }
.feature-icon { width: 54px; height: 54px; display: inline-flex; align-items: center; justify-content: center; border-radius: 18px; background: linear-gradient(135deg, rgba(125,88,231,.14), rgba(247,191,215,.4)); font-size: 1.4rem; }
.feature-card h3, .step h3, .price-card h3, .review-card strong { margin: 16px 0 10px; letter-spacing: -.03em; }
.steps-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 18px; }
.step { position: relative; }
.step-num { font-size: .95rem; font-weight: 800; color: var(--purple-strong); }
.step-accent { background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(244,237,255,.68)); }
.price-card { position: relative; display: flex; flex-direction: column; gap: 14px; }
.price { font-size: 2rem; font-weight: 800; letter-spacing: -.05em; }
.popular { outline: 2px solid rgba(125,88,231,.18); }
.popular-badge { position: absolute; top: 16px; right: 16px; padding: 8px 12px; border-radius: 999px; background: linear-gradient(135deg, rgba(125,88,231,.15), rgba(247,191,215,.45)); color: var(--purple-strong); font-size: .83rem; font-weight: 800; }
.support-wrap { display: grid; gap: 28px; }
.support-head { margin-bottom: 0; }
.support-note ul { margin: 0; padding-left: 18px; color: var(--text-soft); line-height: 1.8; }
.faq-block { padding: 26px; display: grid; gap: 16px; }
details { background: rgba(255,255,255,.52); border: 1px solid rgba(125,88,231,.1); border-radius: 18px; padding: 18px 20px; }
details summary { cursor: pointer; font-weight: 700; list-style: none; }
details p { margin: 12px 0 0; color: var(--text-soft); }
.contact-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 22px; align-items: start; }
.contact-form { display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 8px; }
.form-status { min-height: 22px; margin: 0; font-weight: 600; color: var(--purple-strong); }
.site-footer { padding: 0 0 36px; }
.footer-inner { border-radius: 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 24px; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand p { margin: 4px 0 0; color: var(--text-soft); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.footer-button { background: transparent; border: 0; color: inherit; padding: 0; }
.floating-actions { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 12px; z-index: 70; }
.float-btn { width: 62px; height: 62px; border-radius: 50%; border: 1px solid rgba(255,255,255,.68); box-shadow: var(--shadow); background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.68)); font-weight: 800; color: var(--purple-strong); }
.float-btn.chat { background: linear-gradient(135deg, var(--purple) 0%, #9067ff 100%); color: #fff; }
.chat-widget {
  position: fixed; right: 18px; bottom: 158px; width: min(380px, calc(100vw - 20px)); border-radius: 28px; z-index: 80;
  overflow: hidden; display: flex; flex-direction: column; max-height: min(72vh, 720px); transform: translateY(16px) scale(.98);
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.chat-widget.open { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.chat-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 18px 18px 14px; background: linear-gradient(135deg, rgba(125,88,231,.12), rgba(247,191,215,.18)); }
.chat-head strong { display: block; }
.chat-head span { color: var(--text-soft); font-size: .92rem; }
.chat-close { width: 38px; height: 38px; border-radius: 12px; border: 1px solid rgba(125,88,231,.12); background: rgba(255,255,255,.68); font-size: 1.4rem; line-height: 1; }
.chat-body { padding: 16px; display: grid; gap: 10px; overflow: auto; min-height: 170px; max-height: 320px; background: rgba(255,255,255,.34); }
.chat-bubble { max-width: 86%; padding: 12px 14px; border-radius: 18px; line-height: 1.55; font-size: .96rem; box-shadow: var(--shadow-soft); }
.chat-bubble.operator { background: rgba(255,255,255,.9); justify-self: start; }
.chat-bubble.visitor { background: linear-gradient(135deg, rgba(125,88,231,.95), rgba(144,103,255,.92)); color: #fff; justify-self: end; }
.chat-form { padding: 14px 16px; display: grid; gap: 10px; background: rgba(255,255,255,.54); }
.chat-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px 16px; font-size: .88rem; color: var(--text-soft); }
.hidden { display: none !important; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }

/* admin */
.admin-page { min-height: 100vh; padding: 28px 0 40px; }
.admin-shell { display: grid; gap: 24px; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.admin-subtitle { color: var(--text-soft); max-width: 760px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.admin-stat-value { font-size: 2rem; font-weight: 800; margin-top: 10px; }
.admin-layout { display: grid; grid-template-columns: 370px 1fr; gap: 20px; align-items: start; }
.admin-list-head, .admin-chat-head, .admin-chat-actions, .toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.toolbar { margin-top: 14px; flex-wrap: wrap; }
.segmented { display: flex; gap: 10px; flex-wrap: wrap; }
.segmented button { min-height: 42px; border-radius: 999px; border: 1px solid rgba(125,88,231,.14); background: rgba(255,255,255,.74); padding: 0 14px; color: var(--text-soft); }
.segmented button.active { background: linear-gradient(135deg, rgba(125,88,231,.12), rgba(247,191,215,.28)); color: var(--purple-strong); font-weight: 700; }
.conversation-list { display: grid; gap: 12px; margin-top: 16px; max-height: 70vh; overflow: auto; }
.conversation-item { border: 1px solid rgba(125,88,231,.1); border-radius: 18px; padding: 16px; background: rgba(255,255,255,.56); cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.conversation-item:hover, .conversation-item.active { transform: translateY(-2px); border-color: rgba(125,88,231,.26); box-shadow: var(--shadow-soft); }
.conversation-item strong, .conversation-item span { display: block; }
.conversation-item span, .muted, .empty-state p, .login-note { color: var(--text-soft); }
.badge { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.badge.new { background: rgba(251, 231, 153, .62); color: #7e5b00; }
.badge.open { background: rgba(211, 241, 255, .7); color: #165d84; }
.badge.closed { background: rgba(230, 225, 244, .82); color: #5b4c79; }
.admin-chat { min-height: 70vh; display: flex; flex-direction: column; gap: 16px; }
.admin-chat-messages { display: grid; gap: 10px; padding: 6px 4px; overflow: auto; min-height: 380px; max-height: 58vh; }
.admin-msg { padding: 14px 16px; border-radius: 18px; max-width: 80%; box-shadow: var(--shadow-soft); }
.admin-msg.visitor { background: rgba(255,255,255,.88); justify-self: start; }
.admin-msg.operator { background: linear-gradient(135deg, rgba(125,88,231,.92), rgba(144,103,255,.9)); color: #fff; justify-self: end; }
.admin-msg small, .chat-bubble small { display: block; margin-top: 8px; opacity: .7; font-size: .75rem; }
.admin-reply { display: grid; gap: 12px; }
.empty-state { display: grid; place-items: center; height: 100%; text-align: center; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: min(480px, 100%); display: grid; gap: 16px; }
.login-note { margin: 0; }
.error-text { color: #b53b63; }
.success-text { color: #2d7e59; }

@media (max-width: 1080px) {
  .hero-grid, .contact-grid, .admin-layout, .admin-stats { grid-template-columns: 1fr; }
  .cards-grid, .pricing-grid, .reviews-grid, .support-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .site-header { top: 10px; }
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; top: calc(100% + 10px); left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; padding: 16px; border-radius: 24px; background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.84)); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .hero-copy h1, .contact-copy h2, .admin-shell h1 { font-size: clamp(2rem, 12vw, 3rem); }
  .hero-points, .cards-grid, .pricing-grid, .reviews-grid, .support-grid, .steps-grid { grid-template-columns: 1fr; }
  .footer-inner, .admin-top, .toolbar, .admin-list-head, .admin-chat-head, .admin-chat-actions { align-items: stretch; flex-direction: column; }
  .section { padding: 78px 0; }
  .chat-widget { right: 10px; left: 10px; width: auto; bottom: 92px; }
  .floating-actions { right: 12px; bottom: 12px; }
  .float-btn { width: 56px; height: 56px; }
  .admin-stat-value { font-size: 1.6rem; }
}
