/* ============================================================
   Modul-WP — полноэкранный предпросмотр шаблона
   ============================================================ */
:root {
  --p-bg: #f7f4ee;
  --p-surface: #ffffff;
  --p-ink: #14131a;
  --p-accent: #2f4bff;
  --p-accent2: #d9ff57;
  --p-btn-ink: #ffffff;
  --p-line: rgba(20, 19, 26, 0.12);
  --p-radius: 22px;
  --p-display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --p-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --p-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--p-bg);
  color: var(--p-ink);
  font-family: var(--p-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--p-display); letter-spacing: -0.03em; line-height: 1.08; }
p { margin: 0; }
[hidden] { display: none !important; }

.loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  font-family: var(--p-mono);
  font-size: 12px;
  color: var(--p-ink);
  letter-spacing: 0.08em;
}
.noscript { padding: 18px; background: #d9ff57; color: #14131a; text-align: center; }

/* demo bar */
.demo-bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  height: 58px;
  background: #0b0e17;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.demo-brand { display: inline-flex; align-items: center; gap: 0; font-family: var(--p-display); font-weight: 700; font-size: 15px; letter-spacing: -0.03em; white-space: nowrap; }
.demo-brand .mark { width: 26px; height: 26px; margin-right: 8px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(145deg, #2f4bff, #6b4eff); font-size: 13px; }
.demo-brand span { color: #d9ff57; }
.demo-path { display: flex; align-items: center; gap: 8px; font-family: var(--p-mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.42); white-space: nowrap; }
.demo-path b { color: rgba(255,255,255,0.82); font-weight: 500; }
.demo-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.demo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.demo-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.demo-btn.is-primary { background: #d9ff57; border-color: #d9ff57; color: #14131a; }
.demo-btn.is-primary:hover { background: #e6ff86; }
.demo-live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--p-mono); font-size: 8.5px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.demo-live i { width: 6px; height: 6px; border-radius: 50%; background: #d9ff57; box-shadow: 0 0 0 3px rgba(217,255,87,0.16); }

/* site header over hero */
.demo-page { padding-top: 58px; }
.demo-header {
  position: absolute;
  top: 58px;
  left: 0;
  right: 0;
  z-index: 40;
  color: #fff;
}
.demo-header-inner {
  width: min(1220px, calc(100% - 56px));
  margin: 0 auto;
  height: 78px;
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.demo-logo { font-family: var(--p-display); font-size: 18px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.demo-logo small { display: block; font-family: var(--p-mono); font-size: 7px; letter-spacing: 0.18em; opacity: 0.55; margin-top: 1px; font-weight: 400; }
.demo-nav { display: flex; gap: 4px; margin-left: 20px; }
.demo-nav a { padding: 8px 11px; border-radius: 999px; font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.78); transition: background 0.2s, color 0.2s; }
.demo-nav a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.demo-header-cta { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--p-accent); color: var(--p-btn-ink); font-size: 12px; font-weight: 700; white-space: nowrap; }
.demo-header-cta:hover { filter: brightness(1.06); }
.demo-burger { display: none; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.25); border-radius: 10px; background: transparent; cursor: pointer; position: relative; margin-left: auto; }
.demo-burger span { position: absolute; left: 11px; right: 11px; height: 1.6px; background: #fff; }
.demo-burger span:first-child { top: 15px; }
.demo-burger span:last-child { top: 23px; }

/* hero */
.demo-hero {
  position: relative;
  min-height: min(760px, 100vh);
  display: flex;
  align-items: flex-end;
  background-color: #111;
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}
.demo-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 10, 16, 0.9) 0%, rgba(8, 10, 16, 0.68) 42%, rgba(8, 10, 16, 0.18) 100%),
    linear-gradient(0deg, rgba(8, 10, 16, 0.88) 0%, transparent 55%);
}
.demo-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 500px at 82% 20%, color-mix(in srgb, var(--p-accent) 32%, transparent), transparent 65%);
  mix-blend-mode: screen;
  opacity: 0.45;
  pointer-events: none;
}
.demo-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1220px, calc(100% - 56px));
  margin: 0 auto;
  padding: 140px 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 44px;
  align-items: end;
}
.demo-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 999px;
  font-size: 10.5px;
  color: rgba(255,255,255,0.82);
  background: rgba(255,255,255,0.06);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.demo-tag i { width: 6px; height: 6px; border-radius: 50%; background: #d9ff57; box-shadow: 0 0 0 3px rgba(217,255,87,0.2); }
.demo-hero h1 { margin-top: 20px; font-size: clamp(36px, 4.4vw, 62px); color: #fff; max-width: 720px; letter-spacing: -0.045em; line-height: 1.01; }
.demo-hero-lead { margin-top: 16px; max-width: 520px; font-size: 14.5px; line-height: 1.65; color: rgba(255,255,255,0.76); }
.demo-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.demo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--p-accent);
  color: var(--p-btn-ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.demo-cta:hover { filter: brightness(1.07); }
.demo-cta.is-ghost { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.3); color: #fff; }
.demo-quick { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 22px; }
.demo-quick span { font-size: 9.5px; padding: 5px 9px; border-radius: 5px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.68); }
.demo-hero-card {
  background: rgba(12, 15, 22, 0.55);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 18px;
  padding: 18px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  display: grid;
  gap: 12px;
}
.demo-score { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.demo-score b { font-family: var(--p-display); font-size: 34px; letter-spacing: -0.05em; }
.demo-score span { font-family: var(--p-mono); font-size: 8px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.1em; text-align: right; line-height: 1.5; }
.demo-hero-card hr { border: 0; border-top: 1px solid rgba(255,255,255,0.14); margin: 0; }
.demo-hero-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.demo-hero-meta div span { display: block; font-size: 8.5px; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.08em; }
.demo-hero-meta div b { font-size: 12px; }
.demo-hero-note { font-size: 9px; line-height: 1.45; color: rgba(255,255,255,0.45); }

/* strip */
.demo-strip { background: var(--p-surface); border-bottom: 1px solid var(--p-line); }
.demo-strip-inner { width: min(1220px, calc(100% - 56px)); margin: 0 auto; display: flex; align-items: center; gap: 28px; padding: 16px 0; flex-wrap: wrap; }
.demo-strip span { display: inline-flex; align-items: center; gap: 7px; font-family: var(--p-mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: color-mix(in srgb, var(--p-ink) 55%, transparent); }
.demo-strip span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--p-accent); }

/* sections */
.demo-section { padding: 86px 0; }
.demo-section-inner { width: min(1220px, calc(100% - 56px)); margin: 0 auto; }
.demo-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; margin-bottom: 34px; }
.demo-eyebrow { font-family: var(--p-mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--p-accent); }
.demo-title { margin-top: 10px; font-size: clamp(27px, 3vw, 40px); }
.demo-lead { max-width: 350px; font-size: 12.5px; line-height: 1.65; color: color-mix(in srgb, var(--p-ink) 58%, transparent); }
.demo-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.demo-card { background: var(--p-surface); border: 1px solid var(--p-line); border-radius: 16px; overflow: hidden; }
.demo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.demo-card-body { padding: 17px; }
.demo-card-body h3 { font-size: 16px; }
.demo-card-body p { margin-top: 6px; font-size: 11px; line-height: 1.55; color: color-mix(in srgb, var(--p-ink) 58%, transparent); }
.demo-card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--p-line); font-size: 9px; color: color-mix(in srgb, var(--p-ink) 48%, transparent); }
.demo-card-meta b { font-size: 10px; color: var(--p-ink); }
.demo-card-link { font-size: 9.5px; font-weight: 600; color: var(--p-accent); }

/* about */
.demo-about { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.demo-collage { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 10px; align-items: start; }
.demo-collage img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; aspect-ratio: 3 / 4; }
.demo-collage img:first-child { aspect-ratio: 4 / 5; }
.demo-collage img:nth-child(2) { margin-top: 30px; aspect-ratio: 1; }
.demo-collage-badge { grid-column: 1 / -1; justify-self: start; margin-top: -8px; display: inline-flex; align-items: center; gap: 7px; background: var(--p-surface); border: 1px solid var(--p-line); border-radius: 999px; padding: 7px 12px; font-size: 9px; font-weight: 600; box-shadow: 0 10px 24px -16px rgba(0,0,0,0.3); }
.demo-collage-badge i { width: 6px; height: 6px; border-radius: 50%; background: #12b76a; }
.demo-about h2 { font-size: clamp(27px, 3vw, 38px); margin-top: 10px; }
.demo-about p { margin-top: 14px; font-size: 13px; line-height: 1.7; color: color-mix(in srgb, var(--p-ink) 62%, transparent); }
.demo-check { display: grid; gap: 8px; margin-top: 18px; }
.demo-check li { display: flex; gap: 8px; font-size: 11.5px; color: color-mix(in srgb, var(--p-ink) 78%, transparent); list-style: none; }
.demo-check li::before { content: "✓"; color: var(--p-accent); font-weight: 700; }
.demo-about-stats { display: flex; gap: 26px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--p-line); }
.demo-about-stats b { display: block; font-family: var(--p-display); font-size: 22px; letter-spacing: -0.04em; }
.demo-about-stats span { font-size: 9px; color: color-mix(in srgb, var(--p-ink) 48%, transparent); }

/* gallery */
.demo-gallery { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px; }
.demo-gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: 14px; background: var(--p-surface); }
.demo-gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 0.6s ease; }
.demo-gallery figure:first-child img { aspect-ratio: 4 / 3.4; }
.demo-gallery figure:hover img { transform: scale(1.04); }
.demo-gallery figcaption { position: absolute; left: 12px; bottom: 12px; font-size: 9px; padding: 4px 8px; border-radius: 5px; background: rgba(11,14,23,0.66); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* reviews */
.demo-reviews { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.demo-review { background: var(--p-surface); border: 1px solid var(--p-line); border-radius: 16px; padding: 22px; }
.demo-stars { color: #f5a623; letter-spacing: 0.12em; font-size: 11px; }
.demo-review p { margin-top: 12px; font-size: 12px; line-height: 1.65; color: color-mix(in srgb, var(--p-ink) 76%, transparent); }
.demo-review-author { display: flex; align-items: center; gap: 9px; margin-top: 15px; }
.demo-avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 9px; font-weight: 700; line-height: 1; text-align: center; flex: 0 0 auto; }
.demo-review-author b { display: block; font-size: 10.5px; }
.demo-review-author > div span { display: block; font-size: 8.5px; color: color-mix(in srgb, var(--p-ink) 45%, transparent); }

/* CTA */
.demo-cta-section { padding: 0 0 86px; }
.demo-cta-panel {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--p-accent);
  color: var(--p-btn-ink);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  padding: 42px;
}
.demo-cta-panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 360px at 88% 10%, color-mix(in srgb, var(--p-accent2) 55%, transparent), transparent 70%); opacity: 0.55; pointer-events: none; }
.demo-cta-copy { position: relative; z-index: 2; }
.demo-cta-copy h2 { font-size: clamp(26px, 3vw, 36px); color: inherit; }
.demo-cta-copy p { margin-top: 10px; max-width: 400px; font-size: 12px; line-height: 1.6; opacity: 0.75; }
.demo-cta-note { margin-top: 16px; font-size: 9px; opacity: 0.55; }
.demo-form { position: relative; z-index: 2; display: grid; gap: 8px; align-content: center; }
.demo-form input, .demo-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.12);
  border-radius: 9px;
  padding: 11px 12px;
  font-size: 11px;
  color: #fff;
  outline: none;
}
.demo-form input::placeholder, .demo-form textarea::placeholder { color: rgba(255,255,255,0.6); }
.demo-form input:focus, .demo-form textarea:focus { border-color: #fff; background: rgba(255,255,255,0.18); }
.demo-form .demo-cta { background: #fff; color: #14131a; height: 44px; }
.demo-form-note { font-size: 8px; opacity: 0.55; line-height: 1.4; }
.demo-form-ok { padding: 16px; border: 1px solid rgba(255,255,255,0.3); border-radius: 10px; background: rgba(255,255,255,0.12); font-size: 12px; }

/* footer */
.demo-footer { background: var(--p-ink); color: var(--p-bg); padding: 44px 0 20px; }
.demo-footer-inner { width: min(1220px, calc(100% - 56px)); margin: 0 auto; display: flex; justify-content: space-between; gap: 30px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.12); flex-wrap: wrap; }
.demo-footer-brand { max-width: 280px; }
.demo-footer-brand p { margin-top: 10px; font-size: 10px; line-height: 1.6; opacity: 0.55; }
.demo-footer-col h4 { font-family: var(--p-mono); font-size: 8px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.45; margin-bottom: 10px; font-weight: 400; }
.demo-footer-col a, .demo-footer-col span { display: block; font-size: 10px; opacity: 0.65; margin-bottom: 5px; }
.demo-footer-bottom { width: min(1220px, calc(100% - 56px)); margin: 16px auto 0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 8.5px; opacity: 0.4; }
.demo-footer-bottom a { text-decoration: underline; text-underline-offset: 2px; }

/* mobile */
.demo-mobile-menu {
  position: fixed;
  top: 58px;
  left: 0;
  right: 0;
  z-index: 70;
  background: #0b0e17;
  color: #fff;
  padding: 12px 22px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.demo-mobile-menu a { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-family: var(--p-display); font-size: 18px; }
.demo-mobile-menu .demo-cta { width: 100%; margin-top: 14px; }

@media (max-width: 980px) {
  .demo-hero-inner { grid-template-columns: 1fr; gap: 24px; padding-top: 120px; }
  .demo-hero-card { max-width: 360px; }
  .demo-about { grid-template-columns: 1fr; gap: 26px; }
  .demo-collage { max-width: 520px; }
  .demo-cta-panel { grid-template-columns: 1fr; padding: 30px; }
  .demo-section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .demo-cards { grid-template-columns: 1fr 1fr; }
  .demo-gallery { grid-template-columns: 1fr 1fr; }
  .demo-gallery figure:first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .demo-bar { padding: 0 14px; gap: 10px; }
  .demo-path, .demo-live { display: none; }
  .demo-brand { font-size: 13px; }
  .demo-actions .demo-btn:not(.is-primary) { display: none; }
  .demo-btn.is-primary { height: 32px; font-size: 10px; }
  .demo-nav { display: none; }
  .demo-header-cta { display: none; }
  .demo-burger { display: block; }
  .demo-header-inner { height: 64px; width: calc(100% - 32px); border-bottom-color: rgba(255,255,255,0.12); }
  .demo-logo { font-size: 15px; }
  .demo-hero { min-height: 92vh; }
  .demo-hero-inner { width: calc(100% - 32px); padding: 110px 0 34px; }
  .demo-hero h1 { font-size: clamp(30px, 9vw, 42px); }
  .demo-hero-lead { font-size: 13px; }
  .demo-hero-actions .demo-cta { width: 100%; }
  .demo-hero-card { max-width: 100%; }
  .demo-section { padding: 60px 0; }
  .demo-section-inner, .demo-strip-inner, .demo-footer-inner, .demo-footer-bottom { width: calc(100% - 32px); }
  .demo-title { font-size: 28px; }
  .demo-cards { grid-template-columns: 1fr; }
  .demo-gallery { grid-template-columns: 1fr; }
  .demo-gallery figure:first-child { grid-column: auto; }
  .demo-reviews { grid-template-columns: 1fr; }
  .demo-cta-panel { padding: 24px 18px; border-radius: 20px; }
  .demo-cta-section { padding-bottom: 60px; }
  .demo-about-stats { gap: 18px; }
  .demo-footer { padding-top: 32px; }
}
