/*
Theme Name: Lucid Dreams
Theme URI: https://example.com/
Author: ChatGPT
Description: Лёгкая SEO-friendly тема для Telegram-мини-игры (18+). Glass UI, адаптив, быстрые компоненты.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: luciddreams
*/

:root{
  --ld-bg:#070814;
  --ld-surface: rgba(255,255,255,.06);
  --ld-surface-2: rgba(255,255,255,.10);
  --ld-border: rgba(255,255,255,.12);
  --ld-text:#EDEBFF;
  --ld-muted: rgba(237,235,255,.72);
  --ld-head:#FFFFFF;
  --ld-accent:#7C4DFF;
  --ld-accent2:#00E5FF;
  --ld-accent3:#2DE2A6;
  --ld-danger:#FF4D6D;

  --ld-shadow: 0 14px 40px rgba(0,0,0,.45);
  --ld-radius: 18px;

  --ld-max: 1180px;
  --ld-pad: 20px;

  --ld-font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: var(--ld-font);
  color: var(--ld-text);
  background:
    radial-gradient(1000px 600px at 20% 10%, rgba(124,77,255,.22), transparent 60%),
    radial-gradient(900px 500px at 80% 20%, rgba(0,229,255,.16), transparent 60%),
    radial-gradient(900px 600px at 60% 90%, rgba(45,226,166,.10), transparent 55%),
    var(--ld-bg);
  line-height:1.6;
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }
img{ max-width:100%; height:auto; display:block; }
p{ margin:0 0 14px; }
ul{ margin:0; padding-left:18px; }
ol{ margin:0; padding-left:18px; }

.ld-container{
  width:100%;
  max-width: var(--ld-max);
  margin:0 auto;
  padding: 0 var(--ld-pad);
}

.ld-skip{
  position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.ld-skip:focus{
  left:16px; top:16px; width:auto; height:auto; z-index:9999;
  background: var(--ld-surface-2);
  border:1px solid var(--ld-border);
  padding:10px 12px;
  border-radius: 12px;
}

.ld-header{
  position: sticky;
  top:0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(7,8,20,.62);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ld-header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 12px 0;
}
.ld-brand{
  display:flex; align-items:center; gap:10px;
}
.ld-brand__logo{
  width:34px; height:34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--ld-accent), var(--ld-accent2));
  box-shadow: 0 10px 30px rgba(124,77,255,.22);
  display:grid; place-items:center;
  flex: 0 0 auto;
}
.ld-brand__logo svg{ width:20px; height:20px; opacity:.95; }
.ld-brand__title{
  font-weight:800; letter-spacing:.2px;
}
.ld-brand__subtitle{
  display:block;
  font-size: 12px;
  color: var(--ld-muted);
  margin-top: -2px;
}

.ld-nav{
  display:flex; align-items:center; gap:12px;
}
.ld-nav__list{
  list-style:none;
  display:flex; align-items:center; gap:10px;
  margin:0; padding:0;
}
.ld-nav__link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius: 12px;
  color: rgba(255,255,255,.92);
}
.ld-nav__link:hover{
  background: rgba(255,255,255,.06);
  text-decoration:none;
}
.ld-nav__link[aria-current="page"]{
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
}

.ld-nav__item{ position:relative; }
.ld-nav__dropdown{
  position:absolute;
  top: 44px; left:0;
  min-width: 260px;
  background: rgba(10,12,26,.92);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  box-shadow: var(--ld-shadow);
  padding: 8px;
  display:none;
}
.ld-nav__item:hover .ld-nav__dropdown,
.ld-nav__item:focus-within .ld-nav__dropdown{ display:block; }
.ld-nav__dropdown a{
  display:flex; gap:10px;
  padding:10px 10px;
  border-radius: 12px;
  color: rgba(255,255,255,.92);
  text-decoration:none;
}
.ld-nav__dropdown a:hover{ background: rgba(255,255,255,.06); }

.ld-actions{
  display:flex; align-items:center; gap:10px;
}

.ld-btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-weight: 700;
  cursor:pointer;
  text-decoration:none;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  user-select:none;
}
.ld-btn:hover{
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.16);
  transform: translateY(-1px);
  text-decoration:none;
}
.ld-btn--primary{
  border-color: rgba(124,77,255,.35);
  background: linear-gradient(135deg, rgba(124,77,255,.95), rgba(0,229,255,.55));
  box-shadow: 0 18px 55px rgba(124,77,255,.18);
}
.ld-btn--primary:hover{
  border-color: rgba(124,77,255,.55);
}
.ld-btn--ghost{
  background: transparent;
}

.ld-burger{
  display:none;
  width:44px; height:44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  cursor:pointer;
}
.ld-burger span{
  display:block;
  width:18px; height:2px;
  background:#fff;
  margin: 4px auto;
  border-radius: 2px;
  opacity: .9;
}

.ld-mobile{
  display:none;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 12px 0 16px;
}
.ld-mobile__list{ list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.ld-mobile__list a{
  display:flex;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  text-decoration:none;
}
.ld-mobile__list a:hover{ background: rgba(255,255,255,.09); }

.ld-main{ padding: 26px 0 60px; }

.ld-hero{
  padding: 28px 0 10px;
}
.ld-hero__grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items: stretch;
}
.ld-card{
  background: var(--ld-surface);
  border: 1px solid var(--ld-border);
  border-radius: var(--ld-radius);
  box-shadow: var(--ld-shadow);
}
.ld-card__pad{ padding: 22px; }

.ld-hero__title{
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.12;
  margin: 0 0 10px;
  color: var(--ld-head);
  letter-spacing: -.2px;
}
.ld-badge{
  display:inline-flex; align-items:center; gap:10px;
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.92);
}
.ld-badge__dot{
  width:8px; height:8px; border-radius: 99px;
  background: linear-gradient(135deg, var(--ld-accent2), var(--ld-accent3));
  box-shadow: 0 0 0 4px rgba(0,229,255,.12);
}

.ld-hero__lead{
  color: var(--ld-muted);
  font-size: 16px;
  margin: 10px 0 18px;
}
.ld-hero__cta{
  display:flex; flex-wrap:wrap; gap:10px;
  margin: 14px 0 10px;
}
.ld-note{
  margin-top: 12px;
  color: rgba(237,235,255,.72);
  font-size: 12px;
}

.ld-hero__visual{
  position: relative;
  overflow:hidden;
}
.ld-hero__visual::before{
  content:"";
  position:absolute; inset:-40px -40px auto auto;
  width: 220px; height: 220px;
  background: radial-gradient(circle at 30% 30%, rgba(0,229,255,.45), transparent 55%);
  filter: blur(2px);
  opacity:.9;
}
.ld-hero__mock{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.ld-pill{
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}
.ld-pill strong{ display:block; font-size: 13px; }
.ld-pill span{ display:block; font-size: 12px; color: var(--ld-muted); margin-top:2px; }

.ld-section{
  padding: 22px 0;
}
.ld-section__head{
  display:flex; align-items:flex-end; justify-content:space-between; gap:12px;
  margin-bottom: 14px;
}
.ld-h2{
  margin:0;
  font-size: clamp(20px, 2.8vw, 28px);
  color: var(--ld-head);
}
.ld-sub{
  margin:0;
  color: var(--ld-muted);
  font-size: 14px;
}

.ld-grid{
  display:grid;
  gap: 14px;
}
.ld-grid--3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ld-grid--2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }

.ld-feature{
  padding: 16px;
}
.ld-icon{
  width:42px; height:42px;
  border-radius: 14px;
  background: rgba(124,77,255,.18);
  border: 1px solid rgba(124,77,255,.24);
  display:grid; place-items:center;
  margin-bottom: 10px;
}
.ld-icon svg{ width:20px; height:20px; opacity:.95; }

.ld-kpi{
  display:flex; gap:12px; align-items:center;
  padding: 14px;
}
.ld-kpi__num{
  font-weight:900;
  font-size: 22px;
  letter-spacing: -.2px;
}
.ld-kpi__txt{ color: var(--ld-muted); font-size: 13px; }

.ld-pricing{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.ld-plan{
  padding: 18px;
}
.ld-plan__name{
  font-weight:900;
  margin:0 0 6px;
  color: var(--ld-head);
}
.ld-plan__price{
  font-size: 26px;
  font-weight: 900;
  margin: 0 0 10px;
}
.ld-plan__desc{
  color: var(--ld-muted);
  font-size: 13px;
  margin-bottom: 12px;
}
.ld-plan ul{ color: rgba(237,235,255,.85); }
.ld-plan li{ margin: 6px 0; }
.ld-plan--best{
  border-color: rgba(0,229,255,.22);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
  position: relative;
}
.ld-plan--best::after{
  content:"Рекомендуем";
  position:absolute; top:14px; right:14px;
  font-size: 11px; font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,229,255,.25);
  background: rgba(0,229,255,.10);
}

.ld-faq{
  display:grid; gap: 10px;
}
.ld-faq__item{ overflow:hidden; }
.ld-faq__btn{
  width:100%;
  text-align:left;
  display:flex; justify-content:space-between; align-items:center;
  gap:12px;
  padding: 14px 16px;
  background: transparent;
  border:0;
  color:#fff;
  cursor:pointer;
  font-weight:800;
}
.ld-faq__btn:hover{ background: rgba(255,255,255,.04); }
.ld-faq__panel{
  padding: 0 16px 14px;
  color: rgba(237,235,255,.80);
  display:none;
}
.ld-faq__item.is-open .ld-faq__panel{ display:block; }
.ld-faq__chev{ opacity:.85; }

.ld-cta{
  padding: 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.ld-cta__txt p{ margin: 6px 0 0; color: var(--ld-muted); }
.ld-cta__title{ margin:0; font-size: 18px; color: var(--ld-head); }

.ld-footer{
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 26px 0;
  color: rgba(237,235,255,.72);
}
.ld-footer__grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
}
.ld-footer__links{
  list-style:none; margin:0; padding:0;
  display:flex; flex-wrap:wrap; gap:10px 12px;
}
.ld-footer__links a{ color: rgba(237,235,255,.78); }
.ld-footer__small{ font-size: 12px; margin-top: 10px; }

.ld-pagehead{
  padding: 18px 0 10px;
}
.ld-pagehead__title{
  margin:0;
  color: var(--ld-head);
  font-size: clamp(22px, 3.6vw, 36px);
  line-height:1.15;
}
.ld-pagehead__lead{ margin: 8px 0 0; color: var(--ld-muted); }

.ld-content .ld-card{ margin-top: 14px; }
.ld-content h2{ margin: 0 0 10px; color: var(--ld-head); font-size: 20px; }
.ld-content h3{ margin: 16px 0 8px; color: var(--ld-head); font-size: 16px; }
.ld-content .ld-muted{ color: var(--ld-muted); }

.ld-age{
  position: fixed;
  inset: 0;
  display:none;
  z-index: 3000;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(6px);
  padding: 18px;
}
.ld-age.is-open{ display:grid; place-items:center; }
.ld-age__modal{
  width: min(620px, 100%);
}
.ld-age__modal .ld-card__pad{ padding: 20px; }
.ld-age__title{ margin:0 0 8px; font-size: 20px; color: var(--ld-head); }
.ld-age__text{ color: var(--ld-muted); margin: 0 0 12px; }
.ld-age__actions{ display:flex; gap:10px; flex-wrap:wrap; }
.ld-age__warn{
  margin-top: 10px;
  font-size: 12px;
  color: rgba(237,235,255,.68);
}

@media (max-width: 980px){
  .ld-hero__grid{ grid-template-columns: 1fr; }
  .ld-grid--3{ grid-template-columns: 1fr; }
  .ld-grid--2{ grid-template-columns: 1fr; }
  .ld-pricing{ grid-template-columns: 1fr; }
  .ld-footer__grid{ grid-template-columns: 1fr; }
}

@media (max-width: 860px){
  .ld-nav{ display:none; }
  .ld-burger{ display:inline-grid; place-items:center; }
  .ld-mobile{ display:block; }
}

@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; scroll-behavior:auto !important; }
}
@media (max-width: 450px){
	.ld-btn--ghost{
		display:none;
	}}