html[data-lang-ready="false"] body{visibility:hidden}
/* PrimeWeb Studio - LIGHT THEME */
:root{
  --bg:#f7f8fb;
  --card:#ffffff;
  --muted:#475569;
  --text:#0f172a;
  --brand:#0284c7;
  --brand2:#7c3aed;
  --border: rgba(15,23,42,.12);
  --shadow: 0 10px 28px rgba(2,8,23,.10);
  --surface: rgba(15,23,42,.03);
  --hover: rgba(15,23,42,.06);
  --radius: 18px;
  --max: 1150px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);

  /* Фон-картинка */
  background-image: url("./../img/bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Светлый оверлей, чтобы текст читался */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;

  /* Можно крутить прозрачность: 0.70–0.88 */
  background:
    radial-gradient(900px 600px at 15% 10%, rgba(2,132,199,.10), transparent 90%),
    radial-gradient(900px 700px at 85% 20%, rgba(124,58,237,.08), transparent 90%),
    rgba(247,248,251, .82);
}

a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.container{max-width:var(--max);margin:0 auto;padding:0 18px}

.btn{
  display:inline-flex;align-items:center;gap:10px;
  padding:12px 16px;border-radius:999px;
  border:1px solid var(--border);
  background: linear-gradient(90deg, rgba(2,132,199,.14), rgba(124,58,237,.12));
  color:var(--text);
  box-shadow: var(--shadow);
  transition: transform .15s ease, filter .15s ease;
  cursor:pointer;
}
.btn:hover{transform: translateY(-1px);filter:brightness(1.02)}
.btn.secondary{
  background: var(--card);
  box-shadow:none;
}
.badge{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 12px;border-radius:999px;
  border:1px solid var(--border);
  color:var(--muted);
  background: var(--card);
  backdrop-filter: blur(10px);
}
.card{
  background: var(--card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.grid{display:grid;gap:16px}
.muted{color:var(--muted)}
.kicker{color:var(--muted);letter-spacing:.12em;text-transform:uppercase;font-size:12px}
.h1{font-size:44px;line-height:1.05;margin:10px 0 10px}
.h2{font-size:28px;margin:0 0 10px}
.h3{font-size:18px;margin:0 0 8px}
.section{padding:70px 0}
.section.sm{padding:50px 0}
hr.sep{border:0;border-top:1px solid var(--border);margin:22px 0}
.tag{
  display:inline-flex;padding:6px 10px;border-radius:999px;
  border:1px solid var(--border);color:var(--muted);font-size:13px;
  background: var(--card);
}

header{
  position:sticky;top:0;z-index:50;
  background: rgba(247,248,251,.75);
  backdrop-filter: blur(14px);
  border-bottom:1px solid rgba(15,23,42,.10);
}
.nav{
  display:flex;align-items:center;justify-content:space-between;
  padding:12px 0;
}
.brand{
  display:flex;align-items:center;gap:10px;font-weight:800;
}
.brand img{width:28px;height:28px}
.navlinks{
  display:flex;align-items:center;gap:18px;
}
.navlinks a{
  color:var(--muted);
  padding:8px 10px;border-radius:999px;
  transition: background .15s ease, color .15s ease;
}
.navlinks a:hover{background: var(--hover);color:var(--text)}
.navlinks a.active{
  color:var(--text);
  background: rgba(2,132,199,.10);
  border:1px solid rgba(2,132,199,.22);
}
.nav-cta{display:flex;align-items:center;gap:12px}

.burger{
  display:none;
  width:44px;height:44px;border-radius:12px;
  border:1px solid var(--border);
  background: var(--card);
  color:var(--text);
}
.mobile{
  display:none;
  padding:8px 0 16px;
}
.mobile a{
  display:block;
  padding:12px 12px;
  border-radius:12px;
  color:var(--muted);
}
.mobile a:hover{background: var(--hover);color:var(--text)}

.hero{padding:70px 0 35px}
.hero-wrap{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:18px;
  align-items:stretch;
}
.hero-card{padding:22px}
.hero-media{
  min-height:360px;
  background:
    linear-gradient(180deg, rgba(247,248,251,.15), rgba(247,248,251,.92)),
    url("./../img/hero.jpg");
  background-size:cover;
  background-position:center;
}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:16px}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:18px}
.stat{
  padding:12px;border-radius:16px;border:1px solid var(--border);
  background: var(--surface);
}
.stat b{font-size:18px}

.features{grid-template-columns:repeat(3,1fr)}
.feature{padding:16px}
.feature .icon{
  width:42px;height:42px;border-radius:14px;
  display:grid;place-items:center;
  background: rgba(2,132,199,.10);
  border:1px solid rgba(2,132,199,.18);
  margin-bottom:10px;
  font-weight:900;
}

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
  align-items:start;
}
.list{margin:0;padding-left:18px;color:var(--muted)}
.list li{margin:8px 0}

.portfolio-grid{grid-template-columns:repeat(4,1fr)}
.project{display:flex;flex-direction:column}
.project .thumb{aspect-ratio: 4/3;object-fit:cover}
.project .body{padding:14px}
.project .meta{display:flex;justify-content:space-between;gap:10px;align-items:center}

.pricing{grid-template-columns:repeat(3,1fr)}
.price{padding:16px}
.price .top{display:flex;justify-content:space-between;align-items:center}
.price .money{font-size:28px;font-weight:900}
.price ul{margin:12px 0 0;padding-left:18px;color:var(--muted)}
.price li{margin:8px 0}

.form{display:grid;gap:12px}
.field{display:grid;gap:8px}
input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background: var(--card);
  color:var(--text);
  outline:none;
}
textarea{min-height:120px;resize:vertical}
input::placeholder, textarea::placeholder{
  color: color-mix(in srgb, var(--muted) 70%, transparent);
}
input:focus, textarea:focus{
  border-color: rgba(2,132,199,.45);
  box-shadow: 0 0 0 4px rgba(2,132,199,.10);
}

.notice{
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(34,197,94,.30);
  background: rgba(34,197,94,.10);
  color: #14532d;
  display:none;
}

footer{
  padding:30px 0 50px;
  border-top:1px solid rgba(15,23,42,.10);
  color:var(--muted);
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap:14px;
}
.footer-grid a{color:var(--muted)}
.footer-grid a:hover{color:var(--text)}

@media (max-width: 980px){
  .hero-wrap{grid-template-columns:1fr}
  .portfolio-grid{grid-template-columns:repeat(2,1fr)}
  .features{grid-template-columns:1fr}
  .pricing{grid-template-columns:1fr}
  .split{grid-template-columns:1fr}
  .navlinks,.nav-cta{display:none}
  .burger{display:inline-grid;place-items:center}
  .mobile{display:block}
}

.lang{
  display:flex;
  gap:8px;
  padding:6px;
  border-radius:999px;
  border:1px solid var(--border);
  background: var(--card);
}

.lang-btn{
  border:1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding:8px 10px;
  border-radius:999px;
  cursor:pointer;
  font-weight:700;
}

.lang-btn.active{
  color: var(--text);
  border-color: rgba(2,132,199,.22);
  background: rgba(2,132,199,.10);
}

/* Dark mode (перекрываем только переменные) */
html[data-theme="dark"]{
  --bg:#0b0f17;
  --card:#0f172a;
  --muted:#94a3b8;
  --text:#e2e8f0;
  --brand:#38bdf8;
  --brand2:#a78bfa;
  --border: rgba(148,163,184,.18);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --surface: rgba(226,232,240,.06);
  --hover: rgba(226,232,240,.10);
}

/* Если у тебя фон-картинка + оверлей через body::before, сделай его темнее */
html[data-theme="dark"] body::before{
  background:
    radial-gradient(900px 600px at 15% 10%, rgba(56,189,248,.12), transparent 60%),
    radial-gradient(900px 700px at 85% 20%, rgba(167,139,250,.10), transparent 55%),
    rgba(11,15,23,.78);
}

/* Чуть темнее шапка и лейблы в dark */
html[data-theme="dark"] header{
  background: rgba(11,15,23,.70);
  border-bottom:1px solid rgba(148,163,184,.12);
}
html[data-theme="dark"] .badge,
html[data-theme="dark"] .tag,
html[data-theme="dark"] .btn.secondary,
html[data-theme="dark"] .lang{
  background: rgba(15,23,42,.70);
}


html[data-theme="dark"] .notice{
  border-color: rgba(34,197,94,.35);
  background: rgba(34,197,94,.14);
  color: rgba(187,247,208,.95);
}

html[data-theme="dark"] .hero-media{
  background:
    linear-gradient(180deg, rgba(11,15,23,.10), rgba(11,15,23,.86)),
    url("./../img/hero.jpg");
  background-size:cover;
  background-position:center;
}

.navlinks a{
  white-space: nowrap;
}


.wa-float{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  z-index: 999;

  background: #25D366;
  color: #ffffff;

  border: 1px solid rgba(0,0,0,.08);
  box-shadow: var(--shadow);
  transition: transform .15s ease, filter .15s ease;
}

.wa-float:hover{
  transform: translateY(-2px);
  filter: brightness(1.02);
}

.wa-icon{
  display: grid;
  place-items: center;
}

@media (max-width: 420px){
  .wa-float{ right: 12px; bottom: 12px; }
}

/* Pulse animation for WhatsApp button */
.wa-float{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  z-index: 999;

  background: #25D366;
  color: #ffffff;

  border: 1px solid rgba(0,0,0,.08);
  box-shadow: var(--shadow);
  transition: transform .15s ease, filter .15s ease;
}

.wa-float::after{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius:inherit;
  border:2px solid rgba(37,211,102,.45);
  opacity:0;
  animation: waPulse 1.8s ease-out infinite;
  pointer-events:none;
}

@keyframes waPulse{
  0%   { transform: scale(0.85); opacity: 0; }
  25%  { opacity: 0.9; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* optional: stop pulse on hover (looks cleaner) */
.wa-float:hover::after{
  animation-play-state: paused;
}

.notice{
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 14px;
}
.notice.ok{
  border-color: rgba(34,197,94,.35);
  background: color-mix(in srgb, rgba(34,197,94,.18) 40%, var(--card));
}
.notice.err{
  border-color: rgba(239,68,68,.35);
  background: color-mix(in srgb, rgba(239,68,68,.18) 40%, var(--card));
}

.mobile-actions{
  margin-top: 10px;
  padding: 10px 12px 0;
  display: grid;
  gap: 10px;
}
.mobile-actions .lang{
  width: fit-content;
}
