:root {
  color-scheme: light;
  --bg: #f4f7f8;
  --surface: #ffffff;
  --surface-soft: #eaf1f1;
  --ink: #10202c;
  --text: #243442;
  --muted: #657685;
  --line: #d8e2e6;
  --accent: #18c77f;
  --accent-dark: #0f8d60;
  --cyan: #19aee2;
  --warning: #f5c84b;
  --shadow: 0 18px 50px rgba(16, 32, 44, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, sans-serif;
  line-height: 1.55;
}

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

a:hover {
  text-decoration: underline;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(216, 226, 230, 0.9);
  background: rgba(244, 247, 248, 0.94);
  backdrop-filter: blur(14px);
}

.topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 23px;
  font-weight: 800;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: var(--muted);
  font-size: 15px;
  white-space: nowrap;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
}

.header-cta {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: 44px 0;
  overflow: hidden;
  background: #0f1115 url("/markora-hero-desktop.webp") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 17, 21, 0.92), rgba(15, 17, 21, 0.64) 46%, rgba(15, 17, 21, 0.22)),
    linear-gradient(180deg, rgba(15, 17, 21, 0.16), rgba(15, 17, 21, 0.5));
}

.hero .shell {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 470px);
  gap: 54px;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(38px, 5vw, 70px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.25;
}

.lead {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.hero h1 {
  color: #ffffff;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.82);
}

.hero .eyebrow {
  color: #18c77f;
}

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

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 560px;
  margin: 34px 0 0;
}

.metrics div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.metrics dt {
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
}

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

.product-shot {
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-frame {
  width: min(100%, 390px);
  padding: 16px;
  border: 1px solid #223342;
  border-radius: 30px;
  background: #162531;
  box-shadow: var(--shadow);
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  color: #ffffff;
  font-weight: 800;
}

.phone-top img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.media-preview {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(140deg, rgba(24, 199, 127, 0.24), transparent 34%),
    linear-gradient(35deg, rgba(25, 174, 226, 0.3), transparent 40%),
    #dce9ec;
}

.media-preview::before {
  content: "";
  position: absolute;
  inset: 26px;
  border: 1px solid rgba(16, 32, 44, 0.14);
  border-radius: 16px;
}

.media-preview::after {
  content: "Готово к публикации";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(16, 32, 44, 0.82);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.watermark-mark {
  position: absolute;
  left: 50%;
  top: 43%;
  width: 190px;
  height: 190px;
  transform: translate(-50%, -50%);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.58);
  display: flex;
  align-items: center;
  justify-content: center;
}

.watermark-mark img {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.hidden-mark {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(15, 141, 96, 0.35);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.35);
}

.hidden-a {
  top: 76px;
  left: 42px;
}

.hidden-b {
  top: 128px;
  right: 54px;
}

.hidden-c {
  bottom: 96px;
  left: 88px;
}

.settings-card {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 16px;
  border-radius: 14px;
  background: #ffffff;
  color: var(--muted);
  font-size: 14px;
}

.settings-card strong {
  color: var(--ink);
}

.section {
  padding: 82px 0;
}

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

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

.feature,
.tariff,
.legal-block,
.legal-nav,
.final-cta {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.feature {
  min-height: 196px;
  padding: 24px;
}

.feature p,
.tariff p,
.final-cta p {
  margin: 10px 0 0;
  color: var(--muted);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 32px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.workflow-band {
  padding: 82px 0;
  background: #122330;
  color: #ffffff;
}

.workflow-band h2,
.workflow-band .eyebrow {
  color: #ffffff;
}

.workflow-band .eyebrow {
  opacity: 0.72;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-weight: 900;
}

.steps strong {
  display: block;
  font-size: 19px;
}

.steps p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.tariffs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.tariff {
  position: relative;
  padding: 22px;
}

.tariff.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.tariff.team {
  border-color: #0f8d60;
  background: #f1fff8;
}

.tariff.team li::before {
  background: #0f8d60;
}

.badge {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.price {
  display: block;
  margin-top: 14px;
  color: var(--ink);
  font-size: 32px;
  font-weight: 900;
}

.tariff ul {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  color: var(--text);
  list-style: none;
}

.tariff li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 68px;
  padding: 30px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding-top: 44px;
}

.legal-nav {
  position: sticky;
  top: 92px;
  padding: 18px;
}

.legal-nav a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
}

.legal-block {
  padding: 24px;
  margin-bottom: 14px;
}

.legal-block ul {
  margin: 0;
  padding-left: 20px;
}

.details {
  width: 100%;
  border-collapse: collapse;
}

.details th,
.details td {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.details th {
  width: 220px;
  color: var(--muted);
  font-weight: 400;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer span {
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 1080px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 12px;
  }

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

  .product-shot {
    min-height: auto;
  }

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

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

  .legal-nav {
    position: static;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    min-height: auto;
    padding: 14px 0;
    gap: 14px;
  }

  .brand {
    font-size: 20px;
  }

  .header-cta {
    min-height: 38px;
    padding: 0 12px;
  }

  .hero {
    min-height: auto;
    padding: 38px 0 54px;
    background-image: url("/markora-hero-mobile.webp");
  }

  .hero-grid {
    gap: 34px;
  }

  .lead {
    font-size: 18px;
  }

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

  .phone-frame {
    border-radius: 22px;
  }

  .media-preview {
    min-height: 300px;
  }

  .watermark-mark {
    width: 154px;
    height: 154px;
  }

  .watermark-mark img {
    width: 120px;
    height: 120px;
  }

  .section,
  .workflow-band {
    padding: 58px 0;
  }

  .final-cta {
    display: grid;
    padding: 24px;
  }

  .details th,
  .details td {
    display: block;
    width: 100%;
  }

  .details th {
    padding-bottom: 0;
  }
}
