:root {
  --green: #39b54a;
  --green-deep: #238c35;
  --orange: #ff8a00;
  --yellow: #ffc400;
  --blue: #54a6ff;
  --purple: #8b6cff;
  --pink: #d85ba7;
  --bg: #ffffff;
  --bg-soft: #f7fafc;
  --card: #ffffff;
  --text: #151922;
  --muted: #5f6877;
  --border: #e6eaf0;
  --shadow: 0 18px 60px rgba(21, 25, 34, 0.08);
  --shadow-sm: 0 10px 32px rgba(21, 25, 34, 0.07);
  --radius: 24px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 196, 0, 0.16), transparent 28rem),
    radial-gradient(circle at 88% 6%, rgba(84, 166, 255, 0.16), transparent 30rem),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 52%, #ffffff 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body .fs-nav {
  right: 18px;
  top: 136px;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 50;
  width: min(calc(100% - 28px), var(--max));
  min-height: 110px;
  margin: 12px auto 0;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(230, 234, 240, 0.88);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 40px rgba(21, 25, 34, 0.07);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  padding-left: 8px;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand img {
  width: 96px;
  height: 96px;
}

.brand span span {
  color: var(--muted);
}

.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.site-nav a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-switch {
  display: flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-soft);
}

.language-switch button {
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 22px;
  font-weight: 850;
}

.language-switch button[aria-pressed="true"] {
  background: #ffffff;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.flag-icon {
  display: block;
  width: 24px;
  height: 16px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(21, 25, 34, 0.14);
}

.flag-gb {
  background:
    linear-gradient(32deg, transparent 42%, #ffffff 42%, #ffffff 48%, #c8102e 48%, #c8102e 54%, #ffffff 54%, #ffffff 60%, transparent 60%),
    linear-gradient(148deg, transparent 42%, #ffffff 42%, #ffffff 48%, #c8102e 48%, #c8102e 54%, #ffffff 54%, #ffffff 60%, transparent 60%),
    linear-gradient(90deg, transparent 42%, #ffffff 42%, #ffffff 58%, transparent 58%),
    linear-gradient(0deg, transparent 36%, #ffffff 36%, #ffffff 64%, transparent 64%),
    linear-gradient(90deg, transparent 46%, #c8102e 46%, #c8102e 54%, transparent 54%),
    linear-gradient(0deg, transparent 42%, #c8102e 42%, #c8102e 58%, transparent 58%),
    #012169;
}

.flag-ru {
  background: linear-gradient(180deg, #ffffff 0 33.33%, #1f57d6 33.33% 66.66%, #d52b1e 66.66% 100%);
}

.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(57, 181, 74, 0.24);
}

.btn-secondary,
.btn-ghost {
  background: #ffffff;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover,
.btn-ghost:hover {
  border-color: #cbd4df;
  box-shadow: var(--shadow-sm);
}

.btn-large {
  min-height: 52px;
  padding: 0 22px;
}

.section {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 86px 0 0;
}

.hero {
  min-height: calc(100vh - 92px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
  align-items: center;
  gap: 48px;
  padding-top: 42px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(46px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.065em;
  font-weight: 950;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: 930;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.hero-lead,
.section-head p,
.download-help,
.support-card p,
.site-footer p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 600;
}

.hero-lead {
  max-width: 690px;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trust-line {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.aperture-orb {
  position: absolute;
  inset: 4% 4% auto auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background:
    conic-gradient(from 28deg, var(--orange), var(--yellow), var(--green), var(--blue), var(--purple), var(--pink), var(--orange));
  opacity: 0.16;
  filter: blur(6px);
}

.aperture-orb::after {
  content: "";
  position: absolute;
  inset: 29%;
  border-radius: 50%;
  background: #ffffff;
}

.landing-submit-card,
.preview-card,
.download-panel,
.feature-card,
.steps article,
.price-card,
.support-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.landing-submit-card {
  position: relative;
  z-index: 2;
  width: min(100%, 480px);
  margin-left: auto;
  padding: 24px;
}

.landing-submit-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.card-label {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.landing-submit-card h2 {
  margin: 0;
  font-size: 29px;
}

.landing-submit-row {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.landing-submit-row:last-child {
  border-bottom: 0;
}

.landing-submit-row strong,
.landing-submit-row code {
  color: var(--text);
  font-weight: 900;
}

.landing-submit-row code {
  padding: 4px 7px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.preview-card {
  position: absolute;
  left: 0;
  bottom: 8px;
  width: min(88%, 420px);
  padding: 18px;
  transform: rotate(-2deg);
}

.preview-toolbar {
  display: flex;
  gap: 7px;
  margin-bottom: 14px;
}

.preview-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.preview-toolbar span:nth-child(1) { background: var(--orange); }
.preview-toolbar span:nth-child(2) { background: var(--yellow); }
.preview-toolbar span:nth-child(3) { background: var(--green); }

.preview-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 10px;
}

.media-tile {
  min-height: 120px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(84, 166, 255, 0.18), rgba(139, 108, 255, 0.18));
}

.media-tile.photo { background: linear-gradient(135deg, rgba(255, 138, 0, 0.22), rgba(57, 181, 74, 0.2)); }
.media-tile.video { background: linear-gradient(135deg, rgba(84, 166, 255, 0.22), rgba(139, 108, 255, 0.18)); }
.media-tile.vector { background: linear-gradient(135deg, rgba(216, 91, 167, 0.2), rgba(255, 196, 0, 0.22)); }

.decorative-lines {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.decorative-lines span {
  height: 10px;
  border-radius: 999px;
  background: var(--border);
}

.decorative-lines span:nth-child(1) { width: 74%; }
.decorative-lines span:nth-child(2) { width: 92%; }
.decorative-lines span:nth-child(3) { width: 54%; }

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.pricing-note {
  display: inline-flex;
  align-items: center;
  margin-top: 16px !important;
  padding: 10px 14px;
  border: 1px solid rgba(57, 181, 74, 0.2);
  border-radius: 999px;
  background: rgba(57, 181, 74, 0.09);
  color: var(--green-deep) !important;
  font-weight: 900;
}

.download-section {
  padding-top: 44px;
}

.download-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 26px;
}

.download-panel h3 {
  margin-bottom: 6px;
}

.download-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.download-help {
  margin: 8px 0 0;
  font-size: 14px;
}

.download-control {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 48px;
  min-width: min(100%, 360px);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(57, 181, 74, 0.24);
}

.download-main,
.download-toggle {
  min-height: 56px;
  border: 0;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
}

.download-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px 0 0 999px;
}

.download-toggle {
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0 999px 999px 0;
  cursor: pointer;
  font-size: 22px;
}

.mirror-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  width: min(92vw, 440px);
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.mirror-list {
  display: grid;
  gap: 8px;
}

.mirror-option {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
  color: var(--muted);
  text-align: left;
  font: inherit;
}

.mirror-option:hover,
.mirror-option.is-selected {
  border-color: rgba(57, 181, 74, 0.48);
  box-shadow: 0 8px 22px rgba(57, 181, 74, 0.1);
}

.mirror-option strong {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
}

.mirror-option button {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.mirror-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
}

.mirror-link {
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 850;
  text-decoration: underline;
}

.mirror-state {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.mirror-state.ok,
.mirror-state.reachable {
  background: rgba(57, 181, 74, 0.12);
  color: var(--green-deep);
}

.mirror-state.fail {
  background: rgba(216, 91, 167, 0.12);
  color: #9f2d6d;
}

.mac-install-entry {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(84, 166, 255, 0.1), rgba(57, 181, 74, 0.08));
}

.mac-install-entry h3 {
  margin-bottom: 6px;
}

.mac-install-entry p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 650;
}

.mac-install-kicker {
  margin-bottom: 6px !important;
  color: var(--green-deep) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mac-install-button {
  min-height: 50px;
  white-space: nowrap;
}

.mac-install-modal[hidden] {
  display: none;
}

.mac-install-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 22px;
}

.mac-install-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 23, 34, 0.54);
}

.mac-install-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 820px);
  max-height: min(88vh, 820px);
  overflow: auto;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 24px 86px rgba(21, 25, 34, 0.22);
}

.mac-install-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 24px;
  font-weight: 850;
  line-height: 1;
}

.mac-install-close:hover {
  border-color: #cbd4df;
  box-shadow: var(--shadow-sm);
}

.mac-install-lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 650;
}

.mac-command-card {
  margin: 22px 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-soft);
}

.mac-command-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mac-command-card pre {
  margin: 0;
  overflow-x: auto;
}

.mac-command-card code,
.mac-install-grid code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.mac-install-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mac-install-grid section {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #ffffff;
}

.mac-install-grid h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.mac-install-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 650;
}

.mac-install-grid code {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--text);
}

.mac-install-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.feature-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  min-height: 250px;
  padding: 22px;
}

.feature-card p,
.steps p,
.price-card li {
  color: var(--muted);
  line-height: 1.58;
  font-weight: 600;
}

.icon-dot {
  display: inline-block;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 12px;
}

.green { background: linear-gradient(135deg, var(--green), var(--green-deep)); }
.orange { background: linear-gradient(135deg, var(--orange), var(--yellow)); }
.blue { background: linear-gradient(135deg, var(--blue), #86c2ff); }
.purple { background: linear-gradient(135deg, var(--purple), var(--pink)); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: step;
}

.steps article {
  padding: 22px;
}

.steps span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 900;
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.price-card {
  padding: 24px;
}

.price-card.featured {
  border-color: rgba(57, 181, 74, 0.48);
  transform: translateY(-8px);
}

.plan {
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.price-card h3 {
  font-size: 38px;
}

.price-card ul {
  min-height: 150px;
  margin: 0 0 20px;
  padding-left: 18px;
}

.support-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 18%, rgba(216, 91, 167, 0.18), transparent 18rem),
    radial-gradient(circle at 72% 70%, rgba(139, 108, 255, 0.18), transparent 20rem),
    #ffffff;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.contact-links a,
.contact-links button {
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
}

.qr-card {
  width: 220px;
  padding: 18px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--blue), var(--purple) 55%, var(--pink));
  color: #ffffff;
  text-align: center;
  box-shadow: 0 20px 50px rgba(139, 108, 255, 0.26);
}

.qr-card img {
  width: 100%;
  border-radius: 18px;
  background: #ffffff;
}

.qr-card span {
  display: block;
  margin-top: 10px;
  font-weight: 900;
}

.site-footer {
  margin-top: 88px;
  padding: 44px 20px 24px;
  background: #121722;
  color: #ffffff;
}

.footer-grid {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 28px;
}

.site-footer h2,
.site-footer h3 {
  margin-bottom: 12px;
}

.site-footer h2 {
  font-size: 24px;
}

.site-footer h3 {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer a,
.site-footer p {
  display: block;
  margin: 0 0 9px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.5;
}

.site-footer a:hover {
  color: #ffffff;
}

.payments {
  max-width: 230px;
}

.footer-bottom {
  width: min(100%, var(--max));
  margin: 24px auto 0 !important;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 1040px) {
  .site-header {
    align-items: flex-start;
    border-radius: 28px;
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow: visible;
    flex-wrap: wrap;
    padding: 4px 8px 0;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 470px;
  }

  .landing-submit-card {
    margin: 0 auto;
  }

  .preview-card {
    left: 50%;
    transform: translateX(-55%) rotate(-2deg);
  }

  .feature-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body .fs-nav {
    top: auto;
    right: 12px;
    bottom: 14px;
  }

  .site-header {
    width: min(calc(100% - 20px), var(--max));
    top: 8px;
  }

  .header-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .language-switch {
    width: auto;
  }

  .language-switch button {
    flex: 0 0 auto;
  }

  .section {
    width: min(calc(100% - 28px), var(--max));
    padding-top: 58px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .hero-actions,
  .download-panel,
  .support-card {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .download-control {
    min-width: 0;
    width: 100%;
  }

  .mac-install-entry,
  .mac-install-grid {
    grid-template-columns: 1fr;
  }

  .mac-install-button,
  .mac-install-actions .btn {
    width: 100%;
  }

  .mac-install-dialog {
    max-height: 92vh;
    padding: 24px 18px;
  }

  .feature-grid,
  .steps,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .price-card.featured {
    transform: none;
  }

  .support-card {
    padding: 22px;
  }

  .qr-card {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
