/* Лендинг — на токенах --studio-* (visual-polish / site.css) */

:root {
  --lp-max: 1400px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.lp-page {
  margin: 0;
  font-family: var(--studio-font-sans);
  color: var(--studio-text);
  line-height: 1.6;
  font-size: 15px;
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh;
}

body.lp-page main {
  flex: 1;
  position: relative;
  z-index: 2;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: rgba(74, 107, 82, 0.22);
  color: var(--studio-text);
}

/* Header */
.lp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 252, 250, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--studio-border-light);
  box-shadow: var(--studio-shadow-sm);
}

.lp-header-inner {
  max-width: var(--lp-max);
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lp-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--studio-text);
}

.lp-logo img {
  height: 34px;
  width: auto;
}

.lp-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.lp-nav a {
  font-size: 0.9rem;
  color: var(--studio-text-muted);
  transition: color 0.15s, background 0.15s;
}

.lp-nav-links a {
  padding: 0.5rem 0.75rem;
  border-radius: var(--studio-radius-lg);
}

.lp-nav-links a:hover {
  color: var(--studio-text);
  background: rgba(74, 107, 82, 0.06);
}

.lp-nav-actions {
  display: flex;
  gap: 0.5rem;
}

/* Buttons */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--studio-radius);
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s, color 0.15s;
  letter-spacing: normal;
}

.lp-btn:active {
  transform: scale(0.98);
}

.lp-btn-primary {
  background: var(--studio-accent-gradient);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: var(--studio-shadow-sm);
}

.lp-nav-actions .lp-btn {
  color: #fff;
}

.lp-nav-actions .lp-btn-primary {
  color: #fff;
}

.lp-btn-primary:hover {
  background: linear-gradient(135deg, #3d5846 0%, #4a6b52 100%);
  color: #fff;
  box-shadow: var(--studio-shadow);
}

.lp-btn-ghost {
  background: var(--studio-bg-card);
  color: var(--studio-text-muted);
  border: 1px solid var(--studio-border);
}

.lp-btn-ghost:hover {
  background: var(--studio-bg-secondary);
  color: var(--studio-text);
}

.lp-btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  border-radius: var(--studio-radius-lg);
}

/* Hero */
.lp-hero {
  max-width: var(--lp-max);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3rem;
  text-align: center;
}

.lp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: var(--studio-accent-bg);
  color: var(--studio-accent);
  border: 1px solid rgba(74, 107, 82, 0.18);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.lp-hero-badge svg {
  flex-shrink: 0;
}

.lp-hero h1 {
  font-family: var(--studio-font-serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 1.25rem;
  letter-spacing: normal;
  color: var(--studio-text);
}

.lp-hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--studio-text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.lp-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Sections */
.lp-section {
  max-width: var(--lp-max);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.lp-section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.lp-section-header h2 {
  font-family: var(--studio-font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  margin: 0 0 0.75rem;
  color: var(--studio-text);
}

.lp-section-header p {
  color: var(--studio-text-muted);
  max-width: 520px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Features grid */
.lp-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.lp-feature-card {
  background: var(--studio-bg-card);
  border: 1px solid var(--studio-border-light);
  border-radius: var(--studio-radius-xl);
  padding: 1.5rem;
  box-shadow: var(--studio-shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

.lp-feature-card:hover {
  box-shadow: var(--studio-shadow-md);
  transform: translateY(-2px);
}

.lp-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--studio-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: var(--studio-accent-soft);
  color: var(--studio-accent);
}

.lp-feature-card h3 {
  font-family: var(--studio-font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
}

.lp-feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--studio-text-muted);
  line-height: 1.55;
}

/* Security section — тёплый тёмно-зелёный, в духе studio */
.lp-security {
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(166, 124, 101, 0.18), transparent 55%),
    linear-gradient(180deg, #2f4235 0%, #3a5240 48%, #2a3d30 100%);
  color: #f4f1ec;
  padding: 4rem 1.5rem;
  margin-top: 0;
  position: relative;
  z-index: 2;
}

.lp-security .lp-section-header h2 {
  color: #fffcfa;
}

.lp-security .lp-section-header p {
  color: #c4bdb3;
}

.lp-security-inner {
  max-width: var(--lp-max);
  margin: 0 auto;
}

/* Security diagram */
.lp-diagram {
  background: rgba(42, 38, 32, 0.25);
  border: 1px solid rgba(221, 214, 203, 0.14);
  border-radius: var(--studio-radius-xl);
  padding: 2rem 1.5rem;
  margin-bottom: 2.5rem;
  overflow-x: auto;
  box-shadow: var(--studio-shadow-md);
}

.lp-diagram svg {
  display: block;
  width: 100%;
  min-width: 640px;
  height: auto;
}

.lp-diagram-svg-mobile {
  display: none !important;
}

.lp-diagram-node {
  fill: rgba(42, 38, 32, 0.45);
  stroke: rgba(221, 214, 203, 0.22);
  stroke-width: 1.5;
}

.lp-diagram-node-accent {
  fill: rgba(74, 107, 82, 0.22);
  stroke: #7fa888;
}

.lp-diagram-node-secure {
  fill: rgba(220, 232, 222, 0.12);
  stroke: #a8c4ad;
}

.lp-diagram-label {
  fill: #fffcfa;
  font-family: var(--studio-font-sans);
  font-size: 13px;
  font-weight: 600;
}

.lp-diagram-sublabel {
  fill: #b8b0a6;
  font-family: var(--studio-font-sans);
  font-size: 11px;
}

.lp-diagram-line {
  stroke: rgba(196, 189, 179, 0.35);
  stroke-width: 2;
  fill: none;
}

.lp-diagram-line-secure {
  stroke: #8fb396;
  stroke-dasharray: 6 4;
  animation: lp-dash 1.2s linear infinite;
}

.lp-diagram-badge {
  fill: #a8c4ad;
  font-family: var(--studio-font-sans);
  font-size: 10px;
  font-weight: 600;
}

@keyframes lp-dash {
  to {
    stroke-dashoffset: -20;
  }
}

/* Security pillars */
.lp-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.lp-pillar {
  background: rgba(255, 252, 250, 0.06);
  border: 1px solid rgba(221, 214, 203, 0.12);
  border-radius: var(--studio-radius-lg);
  padding: 1.25rem;
}

.lp-pillar-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--studio-radius);
  background: rgba(74, 107, 82, 0.22);
  color: #b8d4be;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.lp-pillar h3 {
  font-family: var(--studio-font-serif);
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0 0 0.375rem;
  color: #fffcfa;
}

.lp-pillar p {
  margin: 0;
  font-size: 0.85rem;
  color: #b8b0a6;
  line-height: 1.5;
}

/* Steps */
.lp-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  counter-reset: none;
}

.lp-step {
  position: relative;
  background: var(--studio-bg-card);
  border: 1px solid var(--studio-border-light);
  border-radius: var(--studio-radius-xl);
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: var(--studio-shadow);
}

.lp-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--studio-accent-gradient);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.875rem;
}

.lp-step h3 {
  font-family: var(--studio-font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
}

.lp-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--studio-text-muted);
  line-height: 1.55;
}

/* FAQ */
.lp-faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 0.625rem;
}

.lp-faq-item {
  background: var(--studio-bg-card);
  border: 1px solid var(--studio-border-light);
  border-radius: var(--studio-radius-lg);
  padding: 0.25rem 1.25rem;
  box-shadow: var(--studio-shadow-sm);
}

.lp-faq-item[open] {
  box-shadow: var(--studio-shadow);
}

.lp-faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 0;
  font-weight: 500;
  color: var(--studio-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lp-faq-item summary::-webkit-details-marker {
  display: none;
}

.lp-faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.15rem;
  color: var(--studio-accent);
  line-height: 1;
}

.lp-faq-item[open] summary::after {
  content: "\2013";
}

.lp-faq-item p {
  margin: 0 0 1.125rem;
  font-size: 0.9rem;
  color: var(--studio-text-muted);
  line-height: 1.6;
}

/* CTA */
.lp-cta {
  text-align: center;
  padding: 4rem 1.5rem;
  position: relative;
  z-index: 2;
}

.lp-cta-box {
  max-width: 640px;
  margin: 0 auto;
  background: var(--studio-bg-card);
  border: 1px solid var(--studio-border-light);
  border-radius: var(--studio-radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--studio-shadow-md);
}

.lp-cta-box h2 {
  font-family: var(--studio-font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  margin: 0 0 0.75rem;
}

.lp-cta-box p {
  color: var(--studio-text-muted);
  margin: 0 0 1.5rem;
}

/* Footer */
.lp-footer {
  border-top: 1px solid var(--studio-border-light);
  padding: 1.75rem 1.5rem;
  font-size: 0.85rem;
  color: var(--studio-text-subtle);
  position: relative;
  z-index: 2;
  background: rgba(255, 252, 250, 0.5);
}

.lp-footer-inner {
  max-width: var(--lp-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.lp-footer-copy {
  margin: 0;
}

.lp-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 1rem;
}

.lp-footer a {
  color: var(--studio-accent);
}

.lp-footer a:hover {
  color: var(--studio-accent-hover);
}

/* Mobile nav */
.lp-nav-links {
  display: flex;
  gap: 0.25rem;
}

@media (max-width: 720px) {
  .lp-nav-links {
    display: none;
  }

  .lp-hero {
    padding-top: 3rem;
  }

  .lp-diagram {
    padding: 1rem 0.5rem;
  }

  .lp-diagram-svg-wide {
    display: none !important;
  }

  .lp-diagram svg.lp-diagram-svg-mobile {
    display: block !important;
    min-width: 0;
    max-width: 380px;
    margin: 0 auto;
  }

  .lp-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}
