/* kreatr.ru — the look of the Kreatr app: dark green surface, lime accent, brass primary button, Manrope. */
@font-face {
  font-family: 'Manrope';
  src: url('./kr7-manrope-c8cb41ef.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0f1511;
  --surface: #172019;
  --surface-2: #1c281e;
  --line: #2c3b2f;
  --line-soft: #233026;
  --text: #eef3e8;
  --muted: #a9b6a3;
  --lime: #d8fb78;
  --gold-hi: #ead6a0;
  --gold: #d8bb7e;
  --gold-lo: #b8955c;
  --ink: #22190c;
  --radius: 18px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(900px 520px at 88% -8%, #2f44281f, transparent 70%),
    radial-gradient(700px 480px at -10% 30%, #1d3a2e24, transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.kr-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: #0f1511d9;
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { height: 28px; width: auto; }
/* Legal pages still point at the previous bitmap logo: show the app lockup in its place. */
.logo[src$="kreatr-logo.png"] {
  width: 162px;
  height: 28px;
  object-fit: none;
  object-position: -9999px 0;
  background: url('./kr7-lockup-26fddf2a.svg') left center / contain no-repeat;
}

/* Buttons: the brass plate of the app's primary action */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 28px;
  border: 1px solid #fff3d266;
  border-radius: 14px;
  background: linear-gradient(155deg, var(--gold-hi) 0%, var(--gold) 45%, var(--gold-lo) 100%);
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -.01em;
  box-shadow: inset 0 1px 0 #ffffff80, 0 14px 30px -18px #c9a25acc;
  transition: transform .16s ease, filter .16s ease;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:active { transform: translateY(0); filter: brightness(.98); }
.btn.small { min-height: 42px; padding: 0 18px; border-radius: 12px; font-size: 14px; }

/* Hero: the main banner. One wide panel; the picture fills its right side from edge to edge, the copy sits on the calm left. */
.hero { padding: 28px 0 20px; }
.hero-wrap { width: min(1280px, calc(100% - 40px)); margin: 0 auto; }
.hero-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(360px, 34vw, 500px);
  padding: 48px 56px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, #121a14, #0f1511);
  box-shadow: inset 0 1px 0 #ecf7dd12, 0 48px 90px -60px #000;
}
/* A soft shade keeps the copy readable where it meets the picture. */
.hero-banner::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #0f1511 0%, #0f1511cc 30%, #0f151100 52%);
  pointer-events: none;
}
/* The whole picture, as tall as the panel and pinned to its right edge; its empty left side runs under the copy. */
.hero-art { position: absolute; z-index: -2; top: 0; right: 0; bottom: 0; aspect-ratio: 1672 / 941; }
/* A browser that cannot size a box by its aspect ratio still shows the picture. */
@supports not (aspect-ratio: 1 / 1) {
  .hero-art { width: 66%; }
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 100% 50%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24%);
  mask-image: linear-gradient(to right, transparent 0, #000 24%);
}
.hero-copy { position: relative; max-width: 600px; }
.hero h1 {
  font-size: clamp(30px, 3.3vw, 44px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -.035em;
  margin-bottom: 20px;
}
.hero .accent { color: var(--lime); }
.lead { max-width: min(480px, 41vw); margin-bottom: 30px; color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; }
@media (prefers-reduced-motion: no-preference) {
  .hero-art img { animation: kr-hero-float 14s ease-in-out infinite alternate; }
}
@keyframes kr-hero-float {
  from { transform: translate3d(0, 0, 0) scale(1.01); }
  to { transform: translate3d(-1.2%, -1%, 0) scale(1.04); }
}
/* Below a wide tablet the picture goes on top of the copy. */
@media (max-width: 999px) {
  .hero { padding: 16px 0 8px; }
  .hero-wrap { width: min(1280px, calc(100% - 32px)); }
  .hero-banner { flex-direction: column; align-items: stretch; min-height: 0; padding: 0 0 24px; border-radius: 22px; }
  .hero-banner::after { display: none; }
  .hero-art { position: relative; width: auto; aspect-ratio: auto; height: clamp(200px, 60vw, 440px); }
  .hero-art img {
    /* On a wide tablet the box is flatter than the picture: the cut goes mostly to the bottom, which fades out anyway. */
    object-position: 100% 25%;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  }
  .hero-copy { max-width: none; margin-top: -10px; padding: 0 20px; }
  .lead { max-width: 480px; }
  .hero h1 { font-size: clamp(27px, 7.2vw, 40px); }
}

/* Sections */
.section { padding: 72px 0; }
.section.hero-tone {
  background: linear-gradient(180deg, #131c15 0%, #162119 100%);
  border-block: 1px solid var(--line-soft);
}
.section-title {
  margin-bottom: 36px;
  text-align: center;
  font-size: clamp(27px, 3.4vw, 38px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.15;
}
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Cards */
.card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: inset 0 1px 0 #ecf7dd0a;
}
.card h3 { margin-bottom: 8px; color: var(--text); font-size: 20px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.card p, .text-muted, .page-content { color: var(--muted); line-height: 1.65; }
.icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border: 1px solid var(--tile-line, var(--line));
  border-radius: 12px;
  background: #ffffff0a;
  color: var(--tile-accent, var(--lime));
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Feature tiles: the colours of the app's home tiles */
.features .card { min-height: 208px; padding: 26px 44% 26px 26px; border-color: var(--tile-line); background: var(--tile-bg); }
.features .card h3 { font-size: 22px; }
.features .card p { color: var(--tile-muted); }
.tile-art {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -2%;
  width: 46%;
  height: auto;
  transform: translateY(-50%);
  mix-blend-mode: lighten;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
}
.tile-plan { --tile-bg: radial-gradient(ellipse at 100% 0%, #b8955c3d, transparent 68%), linear-gradient(135deg, #2c2717, #1b2018); --tile-line: #6f5f38; --tile-accent: #ead6a0; --tile-muted: #cfc6ab; }
.tile-text { --tile-bg: radial-gradient(ellipse at 100% 0%, #a3abb326, transparent 70%), linear-gradient(135deg, #272d2b, #1a211d); --tile-line: #4c5852; --tile-accent: #d9e3d2; --tile-muted: #b8c4b3; }
.tile-image { --tile-bg: radial-gradient(ellipse at 100% 0%, #a7c44540, transparent 70%), linear-gradient(135deg, #2f3a1d, #1c2617); --tile-line: #6b7f42; --tile-accent: #d0e895; --tile-muted: #c0d09e; }
.tile-video { --tile-bg: radial-gradient(ellipse at 100% 0%, #4a7a8e4a, transparent 70%), linear-gradient(135deg, #14303f, #14221f); --tile-line: #3f6b7c; --tile-accent: #a6e4f2; --tile-muted: #b9d3da; }

/* Steps */
.steps { position: relative; width: min(900px, 100%); margin: 0 auto; gap: 24px; }
.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 16.6%;
  right: 16.6%;
  border-top: 2px dotted #d8fb7866;
}
.step { position: relative; text-align: center; }
.step-number {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border: 1px solid #fff3d266;
  border-radius: 50%;
  background: linear-gradient(155deg, var(--gold-hi), var(--gold-lo));
  box-shadow: inset 0 1px 0 #ffffff80, 0 0 0 8px #162119;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
}
.step p { max-width: 240px; margin: 0 auto; font-weight: 500; line-height: 1.45; }

/* Services */
.services { max-width: 780px; margin: 0 auto 28px; }
.services .card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.services .card .icon { flex: none; margin: 0; }
.services .card h3 { margin: 0; font-size: 18px; }
.center { text-align: center; margin: 0 0 28px; }
.pricing-note {
  width: min(780px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 10px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--lime);
  border-radius: 14px;
  background: #ffffff05;
  color: var(--muted);
}
.pricing-note strong { color: var(--text); font-weight: 600; }

/* Footer */
.footer { border-top: 1px solid var(--line-soft); padding: 30px 0 42px; }
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 26px; margin-bottom: 14px; }
.footer-nav a { color: var(--muted); font-size: 15px; }
.footer-nav a:hover { color: var(--text); }
.small-note { font-size: 13px; color: #8a9785; }

/* Inner pages: prices and legal texts */
.page-main { padding: 44px 0 84px; }
.page-wrap { width: min(860px, calc(100% - 40px)); margin: 0 auto; }
.page-title { text-align: center; font-size: clamp(28px, 3.6vw, 40px); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; margin: 8px 0 28px; }
.page-card {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: inset 0 1px 0 #ecf7dd0a;
}
.page-content h2 { margin: 28px 0 10px; color: var(--text); font-size: 21px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.page-content > h2:first-child { margin-top: 0; }
.page-content > h3 { margin: 20px 0 8px; color: var(--text); font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.page-content p, .page-content li { margin: 0 0 12px; }
.page-content ul, .page-content ol { padding-left: 22px; }
.page-content strong { color: var(--text); font-weight: 600; }
.text-link { color: var(--lime); text-decoration: underline; text-decoration-color: #d8fb7866; text-underline-offset: 3px; }
.text-link:hover { text-decoration-color: var(--lime); }
/* A wide table scrolls sideways inside its frame; edge shadows show there is more to see. */
.table-wrap {
  margin: 0 0 14px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(to right, #141c16 40%, #141c1600) left center / 36px 100% no-repeat local,
    linear-gradient(to left, #141c16 40%, #141c1600) right center / 36px 100% no-repeat local,
    linear-gradient(to right, #d8fb7833, #d8fb7800) left center / 12px 100% no-repeat scroll,
    linear-gradient(to left, #d8fb7833, #d8fb7800) right center / 12px 100% no-repeat scroll,
    #141c16;
}
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 12px 16px; text-align: left; vertical-align: top; }
th { color: #c9d4c2; font-size: 13px; font-weight: 600; background: #ffffff08; }
td { color: var(--text); border-top: 1px solid var(--line-soft); }
.price-page th:not(:first-child), .price-page td:not(:first-child) { text-align: right; white-space: nowrap; }
.price-page td:not(:first-child) { font-variant-numeric: tabular-nums; font-weight: 600; }
.notice { margin: 28px auto 0; width: min(860px, calc(100% - 40px)); padding: 16px 18px; border: 1px dashed #d8fb7859; border-radius: 14px; color: var(--muted); background: #d8fb780a; }

/* Prices page */
.page-hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 150px; margin-bottom: 20px; }
.page-hero .page-title { margin: 0; text-align: left; font-size: clamp(34px, 4.6vw, 52px); }
.page-hero-art {
  flex: none;
  width: min(46%, 380px);
  height: auto;
  margin: -12px -12px -12px 0;
  mix-blend-mode: lighten;
  -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 60%, transparent 100%);
}
.price-cards { margin: 14px 0 16px; }
.price-cards .card { padding: 20px; border-color: var(--tile-line); background: var(--tile-bg); }
.price-cards .card h3 { font-size: 19px; margin-bottom: 6px; }
.price-cards .card p { margin-bottom: 6px; color: var(--tile-muted); }
.price-cards .card p:last-child { margin-bottom: 0; }
.price-cards .card strong { color: var(--tile-accent); font-size: 17px; font-weight: 700; }

@media (max-width: 860px) {
  .container, .page-wrap { width: min(1120px, calc(100% - 32px)); }
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .card, .page-card { padding: 20px; }
  .features .card { min-height: 0; padding: 22px min(42%, 250px) 22px 20px; }
  .tile-art { width: min(44%, 236px); right: 0; }
  .steps { gap: 22px; }
  .steps::before { top: 28px; bottom: 28px; left: 27px; right: auto; border-top: 0; border-left: 2px dotted #d8fb7866; }
  .step { display: flex; align-items: center; gap: 16px; text-align: left; }
  .step-number { flex: none; margin: 0; box-shadow: inset 0 1px 0 #ffffff80, 0 0 0 6px #151f18; }
  .step p { margin: 0; max-width: none; }
  .page-hero { min-height: 112px; }
  th, td { padding: 10px 12px; }
}
@media (max-width: 420px) {
  .features .card { padding-right: 36%; }
  .tile-art { width: 40%; right: -3%; }
  .btn { width: 100%; }
  .center .btn, .hero .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
