/* ═══════════════════════════════════════════════
   Shotly — landing, guide, about, privacy
   Palette from the cover: deep navy, blue accent,
   and the dashed selection marquee with its little
   white handles as the signature motif.
   ═══════════════════════════════════════════════ */

:root {
  --bg: #0f1524;
  --bg-2: #141b2d;
  --card: #172033;
  --card-2: #1c2740;
  --line: #253150;
  --line-2: #35446b;
  --ink: #eef3fb;
  --ink-2: #b9c6de;
  --muted: #8095b7;
  --muted-2: #64789a;

  --blue: #4a90ff;
  --blue-2: #2f6fe4;
  --blue-soft: rgba(74, 144, 255, 0.14);

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
  --r: 12px;
  --r-lg: 18px;
  --shadow: 0 20px 56px rgba(0, 0, 0, 0.5);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 62px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-x: clip;
  background-image:
    radial-gradient(70% 46% at 50% -6%, rgba(74, 144, 255, 0.16), transparent 70%),
    radial-gradient(46% 34% at 88% 8%, rgba(47, 111, 228, 0.1), transparent 72%);
  background-repeat: no-repeat;
}

::selection { background: rgba(74, 144, 255, 0.3); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 810px; }

html[lang="en"] .only-ru { display: none !important; }
html[lang="ru"] .only-en { display: none !important; }

* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--line-2); border-radius: 99px;
  border: 3px solid transparent; background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: #465a8a; background-clip: padding-box; }

/* ═══ Nav ═══ */
.nav {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav-h);
  background: rgba(15, 21, 36, 0.94);
  border-bottom: 1px solid var(--line);
}
.nav-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 700; font-size: 1.16rem; letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; display: block; border-radius: 7px; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  color: var(--muted); font-size: 0.92rem; font-weight: 500;
  padding: 7px 12px; border-radius: 9px;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: var(--bg-2); color: var(--ink); text-decoration: none; }
.nav-links a.active { color: var(--blue); background: var(--blue-soft); }
.nav-cta {
  background: linear-gradient(180deg, var(--blue), var(--blue-2)) !important;
  color: #fff !important; font-weight: 600 !important;
  padding: 9px 18px !important; margin-left: 18px;
  box-shadow: 0 6px 18px rgba(74, 144, 255, 0.28);
}
.nav-cta:hover { filter: brightness(1.08); }

.lang-btn {
  background: transparent; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 9px;
  padding: 6px 12px; margin-left: 8px;
  font-family: var(--mono); font-size: 0.73rem; font-weight: 700;
  letter-spacing: 0.04em; cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.lang-btn:hover { border-color: var(--blue); color: var(--blue); }

.burger {
  display: none; background: none; border: 1px solid var(--line-2);
  border-radius: 9px; width: 40px; height: 36px; cursor: pointer;
  color: var(--ink); font-size: 1rem; align-items: center; justify-content: center;
}
@media (max-width: 900px) {
  .burger { display: flex; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 10px 24px 16px;
  }
  .nav-links[hidden] { display: none; }
  .nav-links a { padding: 10px 12px; }
  .nav-cta { text-align: center; margin: 6px 0 0; }
  .lang-btn { margin: 8px 0 0; width: 100%; }
}

/* ═══ Section furniture ═══ */
.eyebrow {
  font-family: var(--mono); font-size: 0.71rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 14px;
}
section { padding: 84px 0; }
section h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.25rem);
  letter-spacing: -0.035em; line-height: 1.18; margin-bottom: 12px;
}
.section-sub { color: var(--muted); max-width: 640px; margin-bottom: 38px; }

/* ═══ Marquee: the signature selection frame ═══ */
.marquee {
  position: relative;
  border: 1px dashed rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  padding: 40px 36px;
}
.marquee::before, .marquee::after,
.marquee > .h-tl, .marquee > .h-tr, .marquee > .h-bl, .marquee > .h-br {
  content: ""; position: absolute;
  width: 7px; height: 7px; background: #fff; border-radius: 1px;
}
.marquee::before { top: -4px; left: -4px; }
.marquee::after { top: -4px; right: -4px; }
.marquee > .h-bl { bottom: -4px; left: -4px; }
.marquee > .h-br { bottom: -4px; right: -4px; }
.marquee .size-tag {
  position: absolute; top: -14px; left: 18px;
  font-family: var(--mono); font-size: 0.7rem; color: var(--ink-2);
  background: var(--bg); border: 1px solid var(--line-2);
  border-radius: 6px; padding: 2px 10px;
}
@media (max-width: 640px) { .marquee { padding: 30px 20px; } }

/* ═══ Hero ═══ */
.hero { padding: 84px 0 60px; text-align: center; }
.hero-logo {
  width: 104px; height: 104px; margin: 0 auto 26px; display: block;
  border-radius: 24px;
}
.hero h1 {
  font-size: clamp(2.8rem, 8vw, 4.6rem);
  line-height: 1.02; letter-spacing: -0.05em; font-weight: 800;
  margin-bottom: 18px;
}
.hero .lead { font-size: 1.14rem; color: var(--muted); max-width: 640px; margin: 0 auto 32px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.96rem; font-weight: 600; padding: 13px 26px;
  border-radius: 999px; border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
  cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(180deg, var(--blue), var(--blue-2));
  color: #fff; box-shadow: 0 10px 26px rgba(74, 144, 255, 0.34);
}
.btn-primary:hover { box-shadow: 0 14px 32px rgba(74, 144, 255, 0.42); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 22px; justify-content: center;
  margin-top: 28px; font-size: 0.86rem; color: var(--muted-2);
}
.hero-meta b { color: var(--ink-2); font-weight: 600; }

/* ═══ Toolbar strip (from the cover) ═══ */
.toolbar {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  margin-top: 26px;
}
.toolbar span {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 10px; background: var(--card); border: 1px solid var(--line);
  font-size: 1rem; color: var(--ink-2);
  transition: border-color 0.2s, transform 0.2s var(--ease), color 0.2s;
}
.toolbar span:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

/* ═══ Shots ═══ */
.shot {
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: var(--card); box-shadow: var(--shadow);
  overflow: hidden; margin: 48px auto 0; max-width: 900px;
}
.shot img { width: 100%; display: block; }
.ph {
  aspect-ratio: 16 / 9;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--muted-2); background: var(--bg-2);
}
.ph b { font-size: 0.94rem; color: var(--muted); font-weight: 600; }
.ph span { font-family: var(--mono); font-size: 0.75rem; }

/* ═══ Features ═══ */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 18px;
}
.feature {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px 24px 28px;
  transition: transform 0.28s var(--ease), border-color 0.25s, box-shadow 0.28s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow); }
.feature .ico {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 11px; font-size: 1.05rem; margin-bottom: 14px;
  background: var(--blue-soft); border: 1px solid rgba(74, 144, 255, 0.22);
}
.feature h3 { font-size: 1.05rem; letter-spacing: -0.015em; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.92rem; }

/* ═══ Keys ═══ */
kbd {
  font-family: var(--mono); font-size: 0.8em;
  background: var(--card-2); border: 1px solid var(--line-2);
  border-bottom-width: 2px; border-radius: 6px;
  padding: 2px 7px; color: var(--ink-2); white-space: nowrap;
}

/* ═══ Download ═══ */
.download { text-align: center; }
.download .section-sub { margin-left: auto; margin-right: auto; }
.req { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
.req span {
  font-family: var(--mono); font-size: 0.74rem; color: var(--muted-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px;
}
.note-line { margin-top: 18px; font-size: 0.85rem; color: var(--muted-2); }

/* ═══ FAQ ═══ */
.faq { display: grid; gap: 10px; max-width: 820px; }
details {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px 22px; transition: border-color 0.2s;
}
details[open] { border-color: var(--line-2); }
summary {
  cursor: pointer; font-weight: 600; font-size: 0.98rem; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; font-family: var(--mono); font-size: 1.25rem;
  color: var(--blue); transition: transform 0.2s; flex: none;
}
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); font-size: 0.93rem; margin-top: 12px; }
details p + p { margin-top: 10px; }

/* ═══ Prose ═══ */
.prose { padding: 54px 0 90px; }
.prose h1 { font-size: clamp(2rem, 5vw, 2.6rem); letter-spacing: -0.045em; margin-bottom: 12px; }
.prose .lead-p { color: var(--muted); font-size: 1.04rem; margin-bottom: 38px; }
.prose h2 {
  font-size: 1.4rem; letter-spacing: -0.03em; margin: 46px 0 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.prose h3 { font-size: 1.06rem; margin: 28px 0 10px; letter-spacing: -0.015em; }
.prose p { margin-bottom: 14px; color: var(--ink-2); }
.prose ul, .prose ol { margin: 0 0 16px 24px; color: var(--ink-2); }
.prose li { margin-bottom: 8px; }
.prose code {
  font-family: var(--mono); font-size: 0.87em;
  background: var(--card-2); border: 1px solid var(--line);
  border-radius: 6px; padding: 1px 6px; color: #9dc0ff;
}
.prose img {
  max-width: 100%; border-radius: var(--r); border: 1px solid var(--line);
  margin: 12px 0 20px; display: block;
}
.callout {
  background: var(--blue-soft); border: 1px solid rgba(74, 144, 255, 0.24);
  border-left: 3px solid var(--blue); border-radius: 0 var(--r) var(--r) 0;
  padding: 14px 20px; margin-bottom: 20px; font-size: 0.95rem; color: var(--ink-2);
}
.callout b, .callout strong { color: var(--ink); }

.tbl-wrap { overflow-x: auto; margin-bottom: 24px; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 440px; }
th, td { text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted-2); background: var(--bg-2); white-space: nowrap;
}
td:first-child { white-space: nowrap; }
tbody tr:hover { background: var(--card); }

/* ═══ Footer ═══ */
.foot { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 40px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 0.9rem; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--blue); }
.foot small { color: var(--muted-2); font-size: 0.83rem; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
