/* ═══════════════════════════════════════════════════════════════════════
   ПростоДокументы — рекламный сайт. Стиль Кит: синяя корпоративная гамма,
   символика кита, SVG+CSS-анимации без сторонних библиотек.
   ═══════════════════════════════════════════════════════════════════════ */
:root {
  --ink:        #0f2033;
  --ink-soft:   #3a5169;
  --muted:      #6b829a;
  --brand:      #2a78d6;
  --brand-dk:   #1a5ab0;
  --brand-dkr:  #0f3e86;
  --teal:       #1baf7a;
  --cyan:       #7ac3e8;
  --amber:      #d97706;
  --bg:         #ffffff;
  --bg-alt:     #f4f7fc;
  --bg-navy:    #0b1f3a;
  --line:       #e2e9f4;
  --card-sh:    0 1px 2px rgba(15,32,51,0.04), 0 8px 30px -12px rgba(15,32,51,0.14);
  --radius:     14px;
  --wrap:       1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dk); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}
h2.section-title {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 750;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--ink);
}
.section-lead {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}
.section { padding: 84px 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.center { text-align: center; }

/* ── Кнопки ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.12s, box-shadow 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 22px -6px rgba(42,120,214,0.6);
}
.btn-primary:hover { background: var(--brand-dk); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 30px -8px rgba(42,120,214,0.7); }
.btn-ghost {
  background: transparent;
  color: var(--brand);
  border-color: rgba(42,120,214,0.35);
}
.btn-ghost:hover { background: rgba(42,120,214,0.07); color: var(--brand-dk); }
.btn-lg { padding: 15px 34px; font-size: 16.5px; border-radius: 12px; }
.btn-on-navy { background: #fff; color: var(--brand-dkr); }
.btn-on-navy:hover { background: #eaf1fb; color: var(--brand-dkr); }

/* ═══ Шапка сайта ═══ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 66px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-logo:hover { color: var(--ink); }
.brand-logo .accent { color: var(--brand); }
.brand-logo svg { flex-shrink: 0; }
.site-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
}
.site-nav a {
  color: var(--ink-soft);
  font-weight: 550;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 8px;
}
.site-nav a:hover { background: var(--bg-alt); color: var(--ink); }
.site-nav a.cta {
  background: var(--brand);
  color: #fff;
  margin-left: 8px;
  box-shadow: 0 4px 14px -4px rgba(42,120,214,0.6);
}
.site-nav a.cta:hover { background: var(--brand-dk); color: #fff; }
.nav-toggle { display: none; }

/* ═══ Hero с океаном ═══ */
.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: var(--bg-navy);
  display: flex;
  align-items: center;
}
.hero .kit-ocean-wrap { position: absolute; inset: 0; }
.hero .kit-ocean-svg { width: 100%; height: 100%; }
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 72px 24px;
  width: 100%;
}
.hero-copy { max-width: 620px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(122,195,232,0.16);
  border: 1px solid rgba(122,195,232,0.32);
  color: #cfe6f6;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 18px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.45);
}
.hero h1 .accent { color: var(--cyan); }
.hero p.lead {
  font-size: clamp(17px, 2.2vw, 21px);
  color: rgba(233,241,250,0.86);
  max-width: 540px;
  margin: 0 0 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { color: rgba(233,241,250,0.6); font-size: 13.5px; margin-top: 18px; }
.hero-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 90px;
  background: linear-gradient(to bottom, transparent, rgba(11,31,58,0) 0%, var(--bg) 100%);
  z-index: 1;
  pointer-events: none;
}

/* ── whale + wave анимации (перенесены из заставки приложения) ── */
.whale { transform: translate(760px, 250px); animation: whale-swim 18s ease-in-out infinite; }
@keyframes whale-swim {
  0%   { transform: translate(760px, 250px) rotate(-2deg); }
  25%  { transform: translate(710px, 235px) rotate(1deg); }
  50%  { transform: translate(740px, 255px) rotate(-1deg); }
  75%  { transform: translate(780px, 240px) rotate(2deg); }
  100% { transform: translate(760px, 250px) rotate(-2deg); }
}
.whale-body { animation: body-flex 4s ease-in-out infinite; }
@keyframes body-flex { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(0.97); } }
.whale-fluke-top, .whale-fluke-bot { transform-origin: -195px 24px; animation: fluke-wave 2s ease-in-out infinite; }
@keyframes fluke-wave { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(8deg); } }
.whale-dorsal { transform-origin: 0 -75px; animation: dorsal-rock 4s ease-in-out infinite; }
@keyframes dorsal-rock { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(-3deg); } }
.wave-back  { animation: wave-move 14s linear infinite; }
.wave-mid   { animation: wave-move 10s linear infinite; }
.wave-front { animation: wave-move 7s linear infinite; }
.wave-crest-1 { animation: wave-move 7s linear infinite; }
.wave-crest-2 { animation: wave-move 7s linear infinite reverse; }
.wave-foam  { animation: wave-move 7s linear infinite; }
@keyframes wave-move { from { transform: translateX(0); } to { transform: translateX(-300px); } }
.caustic-1 { animation: caustic-pulse 6s ease-in-out infinite; }
.caustic-2 { animation: caustic-pulse 8s ease-in-out infinite 1s; }
.caustic-3 { animation: caustic-pulse 5s ease-in-out infinite 2s; }
@keyframes caustic-pulse { 0%,100% { opacity: 0.07; transform: scaleX(1); } 50% { opacity: 0.14; transform: scaleX(1.15); } }
.bubble { animation: bubble-rise 4s ease-in infinite; }
.b1 { animation-delay: 0s;   animation-duration: 5s; }
.b2 { animation-delay: 0.8s; animation-duration: 4s; }
.b3 { animation-delay: 1.6s; animation-duration: 6s; }
.b4 { animation-delay: 2.4s; animation-duration: 4.5s; }
.b5 { animation-delay: 3.2s; animation-duration: 5.5s; }
@keyframes bubble-rise {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.7; }
  50%  { transform: translate(8px, -60px) scale(1.1); opacity: 0.5; }
  100% { transform: translate(0, -120px) scale(0.8); opacity: 0; }
}

/* ═══ Логотип-полоса ═══ */
.trust {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
}
.trust-row .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); }

/* ═══ Фичи ═══ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--card-sh);
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 14px 40px -14px rgba(15,32,51,0.22); border-color: rgba(42,120,214,0.28); }
.feature-ic {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(42,120,214,0.12), rgba(122,195,232,0.16));
  margin-bottom: 16px;
}
.feature h3 { font-size: 17.5px; font-weight: 700; margin: 0 0 8px; }
.feature p { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* ═══ Скриншоты ═══ */
.shots { display: grid; gap: 30px; }
.shot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.shot:nth-child(even) .shot-text { order: 2; }
.shot-frame {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -24px rgba(15,32,51,0.4);
  background: #fff;
}
.shot-frame .bar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  background: #eef2f8;
  border-bottom: 1px solid var(--line);
}
.shot-frame .bar i { width: 11px; height: 11px; border-radius: 50%; background: #cdd6e4; display: block; }
.shot-frame .bar i.r { background: #f0a5a0; }
.shot-frame .bar i.y { background: #f2ce8a; }
.shot-frame .bar i.g { background: #a7d8a0; }
.shot-frame img { width: 100%; display: block; }
.shot-text .tag {
  display: inline-block;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 10px;
}
.shot-text h3 { font-size: 23px; font-weight: 730; margin: 0 0 12px; letter-spacing: -0.01em; }
.shot-text p { font-size: 15.5px; color: var(--ink-soft); margin: 0 0 14px; }
.shot-text ul { margin: 0; padding: 0; list-style: none; }
.shot-text li {
  position: relative; padding-left: 26px; margin-bottom: 8px; font-size: 15px; color: var(--ink-soft);
}
.shot-text li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* ═══ Шаги ═══ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: st; }
.step {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; position: relative; box-shadow: var(--card-sh);
}
.step::before {
  counter-increment: st; content: counter(st);
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--brand); color: #fff; font-weight: 750; font-size: 18px;
  margin-bottom: 14px;
}
.step h3 { font-size: 16.5px; font-weight: 700; margin: 0 0 6px; }
.step p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* ═══ CTA-карточки (докум./обучение) ═══ */
.learn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.learn-card {
  display: block;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--card-sh); transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}
.learn-card:hover { transform: translateY(-3px); border-color: rgba(42,120,214,0.3); box-shadow: 0 16px 44px -16px rgba(15,32,51,0.24); }
.learn-card .ic { width: 48px; height: 48px; margin-bottom: 16px; }
.learn-card h3 { font-size: 20px; margin: 0 0 8px; color: var(--ink); }
.learn-card p { font-size: 15px; color: var(--ink-soft); margin: 0 0 14px; }
.learn-card .go { font-weight: 650; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; }

/* ═══ Финальный CTA ═══ */
.cta-band {
  background: linear-gradient(135deg, var(--brand-dkr), var(--brand) 60%, #3f8ae0);
  color: #fff; border-radius: 22px; padding: 56px 40px; text-align: center;
  box-shadow: 0 26px 60px -24px rgba(15,62,134,0.55);
}
.cta-band h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 780; margin: 0 0 12px; letter-spacing: -0.01em; }
.cta-band p { font-size: 18px; color: rgba(255,255,255,0.86); margin: 0 0 28px; }

/* ═══ Подвал ═══ */
.site-footer { background: var(--bg-navy); color: rgba(233,241,250,0.72); padding: 52px 0 34px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; margin-bottom: 34px; }
.footer-brand { max-width: 320px; }
.footer-brand .brand-logo { color: #fff; }
.footer-brand .brand-logo .accent { color: var(--cyan); }
.footer-brand p { font-size: 14px; color: rgba(233,241,250,0.6); margin: 14px 0 0; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(233,241,250,0.5); margin: 0 0 14px; }
.footer-col a { display: block; color: rgba(233,241,250,0.8); font-size: 14.5px; margin-bottom: 9px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 22px; font-size: 13px; color: rgba(233,241,250,0.5); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* ═══ Doc/Training страницы ═══ */
.page-hero {
  background: linear-gradient(135deg, var(--bg-navy), #123a68);
  color: #fff; padding: 64px 0 56px;
}
.page-hero .eyebrow { color: var(--cyan); }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; margin: 0 0 12px; letter-spacing: -0.02em; }
.page-hero p { font-size: 18px; color: rgba(233,241,250,0.82); max-width: 640px; margin: 0; }
.doc-layout { display: grid; grid-template-columns: 236px 1fr; gap: 44px; padding: 56px 0 80px; }
.doc-toc { position: sticky; top: 90px; align-self: start; }
.doc-toc h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 12px; }
.doc-toc a { display: block; color: var(--ink-soft); font-size: 14.5px; padding: 6px 12px; border-radius: 8px; border-left: 2px solid transparent; }
.doc-toc a:hover { background: var(--bg-alt); color: var(--brand); border-left-color: var(--brand); }
.doc-body { min-width: 0; }
.doc-body h2 { font-size: 25px; font-weight: 750; margin: 44px 0 12px; padding-top: 8px; letter-spacing: -0.01em; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { font-size: 18.5px; font-weight: 700; margin: 26px 0 8px; }
.doc-body p { font-size: 15.5px; color: var(--ink-soft); margin: 0 0 14px; }
.doc-body ul, .doc-body ol { font-size: 15.5px; color: var(--ink-soft); padding-left: 22px; margin: 0 0 16px; }
.doc-body li { margin-bottom: 7px; }
.doc-body code {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px;
  padding: 1px 7px; font-family: ui-monospace, Consolas, monospace; font-size: 13.5px; color: var(--brand-dkr);
}
.callout {
  display: flex; gap: 14px; background: rgba(42,120,214,0.06); border: 1px solid rgba(42,120,214,0.2);
  border-left: 4px solid var(--brand); border-radius: 10px; padding: 16px 18px; margin: 18px 0;
}
.callout.tip { background: rgba(27,175,122,0.07); border-color: rgba(27,175,122,0.25); border-left-color: var(--teal); }
.callout.warn { background: rgba(217,119,6,0.07); border-color: rgba(217,119,6,0.25); border-left-color: var(--amber); }
.callout .ic { flex-shrink: 0; font-size: 20px; line-height: 1.3; }
.callout p { margin: 0; font-size: 14.5px; }
.doc-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; margin: 16px 0; box-shadow: var(--card-sh);
}
.doc-card h3 { margin-top: 0; }
.kbd {
  display: inline-block; background: #fff; border: 1px solid var(--line);
  border-bottom-width: 2px; border-radius: 6px; padding: 1px 8px;
  font-family: ui-monospace, Consolas, monospace; font-size: 13px; color: var(--ink);
}
.doc-shot {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  box-shadow: 0 16px 40px -20px rgba(15,32,51,0.3); margin: 18px 0;
}

/* ═══ Адаптив ═══ */
@media (max-width: 920px) {
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .shot { grid-template-columns: 1fr; gap: 22px; }
  .shot:nth-child(even) .shot-text { order: 0; }
  .learn-grid { grid-template-columns: 1fr; }
  .doc-layout { grid-template-columns: 1fr; gap: 20px; }
  .doc-toc { position: static; }
  .doc-toc nav { display: flex; flex-wrap: wrap; gap: 6px; }
  .site-nav { display: none; }
  .site-nav.open {
    display: flex; position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 24px; gap: 4px; box-shadow: var(--card-sh);
  }
  .nav-toggle {
    display: inline-flex; margin-left: auto; background: none; border: 1px solid var(--line);
    border-radius: 8px; padding: 8px 10px; cursor: pointer;
  }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .cta-band { padding: 40px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .whale, .wave-back, .wave-mid, .wave-front, .wave-crest-1, .wave-crest-2,
  .wave-foam, .bubble, .caustic-1, .caustic-2, .caustic-3 { animation: none; }
  html { scroll-behavior: auto; }
}
