/* Лендинг Док.Москва — отдельная композиция от кабинета */
:root {
  --lp-ink: #10241f;
  --lp-paper: #f2ebe1;
  --lp-muted: #4a635b;
  --lp-accent: #0d6e5c;
  --lp-accent-hot: #c45a28;
  --lp-night: #0b1815;
  --lp-night-2: #143029;
  --lp-display: "Fraunces", "Times New Roman", serif;
  --lp-body: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.lp {
  margin: 0;
  min-height: 100%;
  font-family: var(--lp-body);
  color: var(--lp-ink);
  background: var(--lp-paper);
}

a { color: var(--lp-accent); }
a:hover { color: var(--lp-accent-hot); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

.lp-nav {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem clamp(1rem, 4vw, 2.5rem);
  color: #f4efe6;
}
.lp-nav-brand {
  font-family: var(--lp-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  color: #f4efe6;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.lp-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 500;
}
.lp-nav-links a {
  color: rgba(244, 239, 230, 0.88);
  text-decoration: none;
}
.lp-nav-links a:hover { color: #fff; }
.lp-nav-login {
  border: 1px solid rgba(244, 239, 230, 0.35);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}

/* Hero: один экран — бренд, заголовок, подзаголовок, CTA, визуал */
.lp-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 15%, rgba(196, 90, 40, 0.28), transparent 55%),
    radial-gradient(700px 480px at 10% 80%, rgba(13, 110, 92, 0.35), transparent 50%),
    linear-gradient(145deg, var(--lp-night) 0%, var(--lp-night-2) 55%, #1a4036 100%);
  color: #f4efe6;
}
.lp-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(5.5rem, 12vh, 7rem) clamp(1.25rem, 5vw, 4rem) 3rem;
  max-width: 36rem;
  animation: lp-rise 0.9s ease-out both;
}
.lp-brand {
  font-family: var(--lp-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 1rem;
  color: #f7f1e7;
}
.lp-headline {
  font-family: var(--lp-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.25;
  margin: 0 0 0.85rem;
  color: rgba(247, 241, 231, 0.92);
}
.lp-sub {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(247, 241, 231, 0.72);
  max-width: 28rem;
}
.lp-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  background: var(--lp-accent);
  color: #fff !important;
  font-weight: 600;
  text-decoration: none !important;
  border: 0;
  cursor: pointer;
  font: inherit;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.lp-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.lp-btn-ghost {
  background: transparent;
  border: 1px solid rgba(244, 239, 230, 0.4);
  color: #f4efe6 !important;
}

.lp-hero-visual {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
  padding: 4rem 1rem 2rem;
}
.lp-hero-art {
  width: min(92%, 520px);
  height: auto;
  filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.45));
  animation: lp-float 7s ease-in-out infinite;
}
.sheet-a { transform-origin: 50% 50%; animation: lp-tilt-a 8s ease-in-out infinite; }
.sheet-b { transform-origin: 50% 50%; animation: lp-tilt-b 9s ease-in-out infinite; }
.lines path {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: lp-draw 1.4s ease-out forwards;
}
.lines path:nth-child(2) { animation-delay: 0.12s; }
.lines path:nth-child(3) { animation-delay: 0.2s; }
.lines path:nth-child(4) { animation-delay: 0.28s; }
.lines path:nth-child(5) { animation-delay: 0.36s; }
.lines path:nth-child(6) { animation-delay: 0.44s; }
.lines path:nth-child(7) { animation-delay: 0.52s; }
.lines path:nth-child(8) { animation-delay: 0.6s; }
.lines path:nth-child(9) { animation-delay: 0.68s; }
.seal { animation: lp-seal 1.2s 0.9s ease-out both; }

@keyframes lp-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes lp-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes lp-tilt-a {
  0%, 100% { transform: rotate(-6deg) translate(0, 0); }
  50% { transform: rotate(-4deg) translate(-6px, 4px); }
}
@keyframes lp-tilt-b {
  0%, 100% { transform: rotate(5deg) translate(0, 0); }
  50% { transform: rotate(7deg) translate(8px, -4px); }
}
@keyframes lp-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes lp-seal {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}

.lp-section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  background: var(--lp-paper);
}
.lp-section-alt {
  background:
    linear-gradient(180deg, #e8efe9 0%, #f2ebe1 100%);
}
.lp-wrap {
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
}
.lp-section h2, .lp-legal h1 {
  font-family: var(--lp-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
}
.lp-section-lead {
  color: var(--lp-muted);
  margin: 0 0 1.75rem;
  max-width: 38rem;
  line-height: 1.55;
}

.lp-samples {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.lp-samples a {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(16, 36, 31, 0.12);
  color: var(--lp-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.lp-samples a:hover {
  color: var(--lp-accent);
  padding-left: 0.35rem;
}

.lp-tariffs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.5rem;
}
.lp-tariffs h3 {
  font-family: var(--lp-display);
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}
.lp-price {
  margin: 0 0 0.75rem;
  font-weight: 700;
  color: var(--lp-accent);
}
.lp-tariffs p:last-child {
  margin: 0;
  color: var(--lp-muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

.lp-apply { max-width: 32rem; }
.lp-form label {
  display: block;
  margin: 0.9rem 0 0.35rem;
  font-size: 0.88rem;
  color: var(--lp-muted);
  font-weight: 500;
}
.lp-optional { font-weight: 400; opacity: 0.8; }
.lp-form input,
.lp-form select,
.lp-form textarea {
  width: 100%;
  border: 1px solid rgba(16, 36, 31, 0.18);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  background: #fff;
  color: var(--lp-ink);
}
.lp-form textarea { resize: vertical; }
.lp-consent {
  font-size: 0.85rem;
  color: var(--lp-muted);
  margin: 1rem 0 1.25rem;
}
.lp-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.lp-alert {
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  margin: 0 0 1rem;
  font-size: 0.95rem;
}
.lp-alert-error { background: #fde8e8; color: #9b2c2c; }
.lp-alert-ok { background: #e5f5ee; color: #1f6b45; }

.lp-legal {
  padding: clamp(5.5rem, 12vh, 7rem) 0 3rem;
  background:
    radial-gradient(600px 280px at 0% 0%, rgba(13, 110, 92, 0.08), transparent 60%),
    var(--lp-paper);
}
.lp-legal h2 {
  font-family: var(--lp-display);
  font-size: 1.25rem;
  margin: 1.75rem 0 0.5rem;
}
.lp-legal p, .lp-legal li {
  line-height: 1.6;
  color: var(--lp-muted);
}
.lp-legal ul { padding-left: 1.2rem; }
.lp-contacts {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.lp-contacts li {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(16, 36, 31, 0.1);
  color: var(--lp-ink);
}
.lp-contacts span { color: var(--lp-muted); }

.lp-footer {
  background: var(--lp-night);
  color: rgba(244, 239, 230, 0.75);
  padding: 2rem 0;
}
.lp-footer-inner {
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
}
.lp-footer-brand {
  font-family: var(--lp-display);
  color: #f4efe6;
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
}
.lp-footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin: 0 0 0.75rem;
}
.lp-footer-meta a {
  color: rgba(244, 239, 230, 0.85);
  text-decoration: none;
}
.lp-footer-meta a:hover { color: #fff; }
.lp-footer-copy { margin: 0; font-size: 0.85rem; }

@media (max-width: 860px) {
  .lp-hero { grid-template-columns: 1fr; min-height: auto; padding-top: 7rem; }
  .lp-hero-visual { order: -1; min-height: 42vh; padding-top: 5rem; }
  .lp-hero-copy { max-width: none; padding-top: 1rem; }
  .lp-tariffs { grid-template-columns: 1fr; }
  .lp-contacts li { grid-template-columns: 1fr; gap: 0.2rem; }
  /* mobile tap targets: nav links */
  .lp-nav { padding: 0.9rem 1rem; gap: 0.75rem; flex-wrap: wrap; }
  .lp-nav-links { gap: 0.4rem 0.9rem; font-size: 0.95rem; }
  .lp-nav-links a { padding: 0.55rem 0.35rem; min-height: 44px; display: inline-flex; align-items: center; }
  .lp-nav-login { padding: 0.55rem 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lp-hero-copy, .lp-hero-art, .sheet-a, .sheet-b, .lines path, .seal {
    animation: none !important;
  }
  .lines path { stroke-dashoffset: 0; }
}

/* WCAG 2.4.7 focus-visible — видимый индикатор фокуса для клавиатурной навигации */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 3px solid var(--lp-accent-hot);
  outline-offset: 2px;
  border-radius: 4px;
}

/* На тёмной шапке — оранжевый outline тоже виден, но на кнопке .lp-nav-login добавим свечение */
.lp-nav-links a:focus-visible,
.lp-nav-login:focus-visible {
  outline: 3px solid #ffb87a;
  outline-offset: 3px;
}

/* skip-link: main получает программный фокус, но рамку не показываем */
main[tabindex="-1"]:focus,
main[tabindex="-1"]:focus-visible { outline: none; }
