@font-face { font-family: 'Fredoka'; src: url('/fonts/Fredoka_500Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Fredoka'; src: url('/fonts/Fredoka_600SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Fredoka'; src: url('/fonts/Fredoka_700Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
:root {
  --bg: #fbeeda; --dot: #f3dfc3; --card: #fffaf2; --ink: #5b3a29; --text: #4a3226; --soft: #7f6457;
  --accent: #ef6f5e; --accent-deep: #c4574a; --hair: #ead9c2; --sky: #bcdef8; --mint: #d9efd9; --pink: #fde1e4;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text); background: var(--bg);
  background-image: radial-gradient(var(--dot) 2px, transparent 2.5px); background-size: 28px 28px;
  font: 500 17px/1.6 "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
}
a { color: var(--accent-deep); font-weight: 600; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
header.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 22px; color: var(--text); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 2px 0 var(--ink); }
nav a { margin-left: 18px; text-decoration: none; color: var(--soft); }

.card { background: var(--card); border: 2.5px solid var(--ink); border-radius: 26px; box-shadow: 0 5px 0 var(--ink); }
.key {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; border: 2.5px solid var(--ink);
  background: var(--accent); color: #fff; font-weight: 700; font-size: 18px; text-decoration: none; box-shadow: 0 5px 0 var(--ink);
}
.key:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.key.quiet { background: var(--card); color: var(--text); }
.pill { display: inline-block; padding: 4px 14px; border-radius: 999px; background: var(--card); border: 2px solid var(--hair); color: var(--soft); font-weight: 600; font-size: 14px; }

.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 30px 0 60px; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.05; margin: 14px 0 16px; letter-spacing: -0.5px; }
.hero p.lead { font-size: 20px; color: var(--soft); margin: 0 0 26px; }
.phones { position: relative; height: 560px; }
.phone { position: absolute; width: 250px; border-radius: 38px; border: 3px solid var(--ink); box-shadow: 0 8px 0 var(--ink); overflow: hidden; background: var(--card); }
.phone img { display: block; width: 100%; }
.phone.a { left: 0; top: 40px; transform: rotate(-5deg); }
.phone.b { right: 0; top: 0; transform: rotate(4deg); }

.section { padding: 50px 0; }
.section h2 { font-size: clamp(28px, 4vw, 40px); text-align: center; margin: 0 0 10px; }
.section p.sub { text-align: center; color: var(--soft); margin: 0 auto 34px; max-width: 620px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.feat { padding: 24px; }
.feat .dot { width: 54px; height: 54px; border-radius: 18px; border: 2.5px solid var(--ink); display: grid; place-items: center; margin-bottom: 12px; }
.feat h3 { margin: 0 0 6px; font-size: 21px; }
.feat p { margin: 0; color: var(--soft); }
.blue { background: var(--sky); } .green { background: var(--mint); } .pinkbg { background: var(--pink); } .cream { background: #fde9b8; }

.price { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; max-width: 760px; margin: 0 auto; }
.price .card { padding: 24px; text-align: center; }
.price .amt { font-size: 34px; font-weight: 700; }

footer { padding: 40px 0 60px; color: var(--soft); text-align: center; font-size: 15px; }
footer a { margin: 0 10px; color: var(--soft); }

.doc { max-width: 760px; margin: 10px auto 60px; padding: 30px 34px; }
.doc h1 { margin-top: 0; font-size: 38px; }
.doc h2 { font-size: 22px; margin-top: 30px; }
.doc .muted { color: var(--soft); }

.code { display: flex; gap: 8px; justify-content: center; margin: 18px 0; }
.code span { width: 52px; height: 62px; display: grid; place-items: center; font-size: 32px; font-weight: 700; background: var(--card); border: 2.5px solid var(--ink); border-radius: 14px; box-shadow: 0 4px 0 var(--ink); }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .phones { height: 420px; max-width: 360px; margin: 0 auto; }
  .phone { width: 190px; }
  nav a.hide-sm { display: none; }
  .doc { padding: 22px 18px; }
  .code span { width: 44px; height: 54px; font-size: 26px; }
}
@media (prefers-reduced-motion: no-preference) { .key { transition: transform 0.08s, box-shadow 0.08s; } }

img, svg { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
