/* =====================================================================
   ФотоМакет — Официальный сайт скачивания и документации
   Чистый CSS без внешних зависимостей (100% автономный, быстрый)
   ===================================================================== */

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --blue-soft: #eff6ff;
  --blue-border: #bfdbfe;
  --green: #059669;
  --green-soft: #ecfdf5;
  --amber: #d97706;
  --amber-soft: #fffbeb;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 32px -12px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 28px 64px -20px rgba(15, 23, 42, 0.22), 0 8px 20px -8px rgba(15, 23, 42, 0.08);
  --container: 1160px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

img, video {
  max-width: 100%;
  display: block;
}

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

button {
  font: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.84);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand__logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  padding: 8px 13px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background 0.16s ease, color 0.16s ease;
}

.nav a:hover {
  background: rgba(15, 23, 42, 0.05);
  color: var(--ink);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 12px 24px 20px;
}

.mobile-menu.is-open {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-menu a {
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--ink-2);
}

.mobile-menu a:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 20px;
  border: 1px solid transparent;
  transition: transform 0.14s ease, background 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn--sm {
  padding: 9px 15px;
  font-size: 14px;
  border-radius: 10px;
}

.btn--lg {
  padding: 15px 26px;
  font-size: 16px;
  border-radius: 14px;
}

.btn--primary {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 8px 20px -6px rgba(37, 99, 235, 0.55);
}

.btn--primary:hover {
  background: var(--blue-hover);
  box-shadow: 0 12px 26px -6px rgba(37, 99, 235, 0.65);
}

.btn--secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  background: var(--surface-soft);
  border-color: #94a3b8;
}

.btn--ghost {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue-border);
  background: var(--blue-soft);
}

.btn--ghost:hover {
  background: #dbeafe;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 64px 0 84px;
  overflow: hidden;
  background:
    radial-gradient(900px 440px at 50% -10%, rgba(37, 99, 235, 0.11), transparent 65%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.hero__head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 44px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}

.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.hero__title {
  margin: 0 0 18px;
  font-size: clamp(32px, 4.7vw, 54px);
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero__title span {
  color: var(--blue);
}

.hero__subtitle {
  margin: 0 auto 30px;
  max-width: 660px;
  font-size: clamp(16px, 1.7vw, 19px);
  color: var(--ink-2);
  line-height: 1.6;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  font-size: 13.5px;
  color: var(--muted);
}

.hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero__meta-item svg {
  width: 15px;
  height: 15px;
  color: var(--green);
}

/* Desktop Showcase Window */
.showcase {
  max-width: 1060px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  background: #0f172a;
  padding: 10px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(15, 23, 42, 0.14);
}

.showcase__chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px 10px;
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 600;
}

.showcase__dots {
  display: flex;
  gap: 7px;
}

.showcase__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.showcase__dots i:nth-child(1) { background: #ef4444; }
.showcase__dots i:nth-child(2) { background: #f59e0b; }
.showcase__dots i:nth-child(3) { background: #22c55e; }

.showcase__frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  cursor: zoom-in;
}

.showcase__frame img {
  width: 100%;
  height: auto;
}

.showcase__play-bar {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.35);
  transition: transform 0.16s ease, background 0.16s ease;
}

.showcase__play-bar:hover {
  background: var(--blue);
  transform: translateY(-2px);
}

/* ---------- Sections ---------- */
.section {
  padding: 80px 0;
}

.section--white {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section__eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 10px;
}

.section__title {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.section__desc {
  margin: 0;
  font-size: 16.5px;
  color: var(--muted);
}

/* ---------- Video Theater ---------- */
.video-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border-radius: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  margin: 0 auto 24px;
}

.video-tabs-wrap {
  display: flex;
  justify-content: center;
}

.video-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-weight: 700;
  font-size: 14.5px;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.video-tab__time {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.07);
  color: var(--muted);
}

.video-tab.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.video-tab.is-active .video-tab__time {
  background: var(--blue-soft);
  color: var(--blue);
}

.video-card {
  max-width: 980px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.video-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.video-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.video-card__footer {
  padding: 20px 24px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.video-card__summary {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--ink-2);
}

.chapters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chapter-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.chapter-btn:hover {
  border-color: var(--blue-border);
  background: var(--blue-soft);
  color: var(--blue);
}

.chapter-btn__t {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: var(--blue);
}

/* ---------- Features Grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--blue-border);
  box-shadow: var(--shadow-md);
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-card__icon svg {
  width: 22px;
  height: 22px;
}

.feature-card__title {
  margin: 0 0 8px;
  font-size: 17.5px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.feature-card__text {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.58;
}

/* ---------- Screenshots Interactive Gallery ---------- */
.screen-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.screen-tab {
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-2);
  font-weight: 650;
  font-size: 14.5px;
  transition: all 0.16s ease;
}

.screen-tab:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}

.screen-tab.is-active {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.screen-viewer {
  max-width: 1020px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.screen-viewer__img-wrap {
  position: relative;
  background: var(--surface-soft);
  cursor: zoom-in;
}

.screen-viewer__img-wrap img {
  width: 100%;
  height: auto;
}

.screen-viewer__zoom-hint {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  pointer-events: none;
}

.screen-viewer__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px;
  border-top: 1px solid var(--border);
}

.screen-viewer__caption strong {
  display: block;
  font-size: 16px;
  color: var(--ink);
}

.screen-viewer__caption span {
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Download & Install Box ---------- */
.install-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: start;
}

.dl-card, .steps-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  min-width: 0;
}

.dl-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.dl-card__header img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.dl-card__title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.dl-card__sub {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.dl-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.spec-item__k {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.spec-item__v {
  font-size: 14.5px;
  font-weight: 650;
  color: var(--ink);
  margin-top: 2px;
}

.sha-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  font-size: 12.5px;
  margin-bottom: 18px;
}

.sha-box code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.changelog {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.changelog li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--ink-2);
}

.changelog li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 18px;
}

.step-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step-row__num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-row__title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 750;
}

.step-row__desc {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}

.smartscreen-tip {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--amber-soft);
  border: 1px solid #fde68a;
  font-size: 13.8px;
  color: #78350f;
}

.smartscreen-tip > strong:first-child {
  display: block;
  margin-bottom: 4px;
  color: #92400e;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.16s ease;
}

.faq-item.is-open {
  border-color: var(--blue-border);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  padding: 18px 22px;
  background: transparent;
  border: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.faq-q svg {
  width: 20px;
  height: 20px;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.faq-item.is-open .faq-q svg {
  transform: rotate(180deg);
  color: var(--blue);
}

.faq-a {
  display: none;
  padding: 0 22px 18px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.62;
}

.faq-item.is-open .faq-a {
  display: block;
}

/* ---------- Support Banner & Footer ---------- */
.support-card {
  max-width: 920px;
  margin: 0 auto;
  padding: 36px 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-lg);
}

.support-card__title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
}

.support-card__desc {
  margin: 0;
  color: #cbd5e1;
  font-size: 15px;
  max-width: 520px;
}

.support-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer {
  padding: 36px 0 48px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ---------- Modal & Lightbox ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal {
  width: 100%;
  max-width: 540px;
  background: var(--surface);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal__title {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 800;
  padding-right: 36px;
}

.modal__body {
  font-size: 15px;
  color: var(--ink-2);
}

.modal__body code {
  background: var(--surface-soft);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 13.5px;
}

.lightbox {
  max-width: 1280px;
  width: 100%;
  position: relative;
}

.lightbox img {
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.lightbox__close {
  position: absolute;
  top: -48px;
  right: 0;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .install-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .nav, .header__actions .btn {
    display: none;
  }
  .burger {
    display: inline-flex;
  }
  .btn {
    white-space: normal;
    text-align: center;
  }
  .dl-card__actions .btn,
  .hero__cta .btn {
    width: 100%;
  }
  .hero {
    padding: 44px 0 56px;
  }
  .section {
    padding: 56px 0;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .dl-card, .steps-card, .support-card {
    padding: 24px;
  }
  .spec-grid {
    grid-template-columns: 1fr;
  }
  .showcase__play-bar {
    position: static;
    margin: 10px auto 4px;
    width: calc(100% - 16px);
    justify-content: center;
  }
}
