:root {
  --bg: #F3F0E8;
  --surface: #FBFAF6;
  --ink: #16150F;
  --muted: #6E6A60;
  --line: #E2DDD0;
  --accent: #0A84FF;
  --accent-ink: #FFFFFF;
  --shadow: 0 6px 24px rgba(40, 32, 10, .08);
  --font-head: "Unbounded", system-ui, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Telegram chat (light theme) */
  --tg-bg: #DCE4EC;
  --tg-in: #FFFFFF;
  --tg-out: #E1FEC6;
  --tg-meta: #8A9AA8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15140F; --surface: #1F1D17; --ink: #F1EDE3; --muted: #A39E90; --line: #34312A;
    --shadow: 0 6px 24px rgba(0, 0, 0, .35);
    --tg-bg: #0E1621; --tg-in: #182533; --tg-out: #2B5278; --tg-meta: #7D8B99;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.5 var(--font-text); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2 { font-family: var(--font-head); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 .4em; }
h1 { font-size: clamp(34px, 4.6vw, 56px); }
h1 span { white-space: nowrap; }
h2 { font-size: clamp(28px, 3.6vw, 42px); text-align: center; }
h3 { margin: 0 0 .25em; font-size: 18px; line-height: 1.25; }

.top { display: flex; justify-content: space-between; align-items: center; max-width: 1120px; margin: 0 auto; padding: 18px 16px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; font: 700 20px var(--font-head); letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.logo img { width: 40px; height: 40px; }
main { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: 8px 15px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.chip.accent { background: var(--accent); color: var(--accent-ink); }

/* ---------- Hero: text left, small chat right ---------- */
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; min-height: min(640px, calc(100vh - 80px)); padding: 32px 0 64px; }
.eyebrow { color: var(--muted); font-size: 15px; font-weight: 600; margin: 0 0 14px; }
.lead { font-size: clamp(19px, 2vw, 24px); color: var(--muted); margin: 0 0 28px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.cta { display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 700; font-size: 17px; padding: 16px 30px; border-radius: 999px; box-shadow: 0 8px 24px rgba(10, 132, 255, .3); transition: transform .15s; }
.cta:hover { transform: translateY(-2px); }
.center-block { display: table; margin: 28px auto 0; }
.note { color: var(--muted); font-size: 15px; margin-top: 14px; }

.tg { justify-self: end; width: min(420px, 100%); background: var(--tg-bg); border-radius: 28px; padding: 14px 12px; box-shadow: 0 24px 48px rgba(40, 32, 10, .18); color: var(--ink); }
.tg-chat { display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.35; }
.tg-msg { max-width: 85%; border-radius: 16px; background: var(--tg-in); box-shadow: 0 1px 1px rgba(0, 0, 0, .08); overflow: hidden; }
.tg-msg p { margin: 0; padding: 7px 10px 8px; white-space: nowrap; }
.tg-msg.in { align-self: flex-start; border-bottom-left-radius: 4px; }
.tg-msg.out { align-self: flex-end; background: var(--tg-out); border-bottom-right-radius: 4px; }
.tg-msg.photo { width: 62%; }
.tg-msg.photo.wide { width: 100%; max-width: 100%; }
.tg-msg .shot { margin: 3px 3px 0; border-radius: 13px 13px 4px 4px; }
.tg-time { float: right; margin: 6px 0 -4px 10px; font-size: 11px; color: var(--tg-meta); }
.tg-time b { font-weight: 400; color: #4FAE4E; }

/* image with dimension tags on top */
.shot { position: relative; overflow: hidden; border-radius: 16px; line-height: 0; }
.shot img { display: block; width: 100%; height: auto; }
.tags { position: absolute; left: 8px; bottom: 8px; right: 8px; display: flex; flex-wrap: wrap; gap: 4px; line-height: 1.2; }
.tags i { font-style: normal; font-size: 12px; font-weight: 600; color: #fff; background: rgba(0, 0, 0, .62); padding: 3px 8px; border-radius: 999px; white-space: nowrap; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

/* ---------- Features: one row, picture on top ---------- */
.features { padding: 32px 0 72px; }
.features h2 { margin-bottom: 32px; }
.f-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.feature { background: var(--surface); border-radius: 24px; padding: 10px 10px 16px; box-shadow: var(--shadow); }
.feature .shot { aspect-ratio: 1; margin-bottom: 12px; }
.feature .shot img { height: 100%; object-fit: cover; }
.feature .shot.contain { background: var(--bg); display: flex; align-items: center; }
.feature .shot.contain img { height: auto; }
.feature .shot.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.feature .shot.split img { object-fit: cover; }
.pixelated { image-rendering: pixelated; }
.feature h3, .feature p { padding: 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.4; }

/* ---------- Prices ---------- */
.prices { padding: 32px 0 96px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: 16px; margin-top: 32px; }
.card { background: var(--surface); border-radius: 28px; padding: 28px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; font-size: 18px; }
.card .price { font: 700 48px/1 var(--font-head); color: var(--ink); margin-bottom: 12px; }
.card.hl { outline: 2px solid var(--accent); }

footer { border-top: 1px solid var(--line); max-width: 1120px; margin: 0 auto; padding: 32px 16px 48px; font-size: 13px; color: var(--muted); }
footer p { margin: 0 0 10px; max-width: 820px; }
.muted { color: var(--muted); }

@media (max-width: 1000px) {
  /* keep features in one line: swipeable row */
  .f-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(200px, 30%); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 16px; margin: 0 -16px; scrollbar-width: none; }
  .f-grid::-webkit-scrollbar { display: none; }
  .feature { scroll-snap-align: start; scroll-margin-left: 16px; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 36px; padding-top: 16px; }
  .tg { justify-self: center; }
  .f-grid { grid-auto-columns: 62%; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .top .chip:not(.accent) { display: none; }
  .logo { font-size: 17px; }
  .logo img { width: 34px; height: 34px; }
  .tg-msg p { white-space: normal; }
}
