:root {
  --navy: #0B2545; --navy2: #13315C; --sea: #1F7FC4; --sky: #8FD3F7; --sky2: #5DB7E8;
  --gold: #FFC93C; --ink: #1B2737; --muted: #5B6878; --line: #DCE3EA; --bg: #F6F9FC; --card: #fff;
  --r: #E5484D; --y: #F7C531; --g: #36C46B; --b: #3D8BFD; --o: #FF8A3D;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #E8EEF5; --muted: #9AA8B8; --line: #22364F; --bg: #0A1A30; --card: #102641; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; overflow-x: clip; font: 17px/1.6 "Fredoka", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--sea); }
@media (prefers-color-scheme: dark) { a { color: var(--sky2); } }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1040px; margin: 0 auto; padding: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: inherit; text-decoration: none; }
.brand img { border-radius: 9px; }
.top nav { display: flex; gap: 18px; align-items: center; }
.top nav a { color: inherit; text-decoration: none; font-weight: 600; }
.lang { border: 1.5px solid currentColor; border-radius: 8px; padding: 1px 8px; font-size: 14px; }

.home { background: linear-gradient(var(--sky) 0, var(--sky2) 520px, var(--bg) 520px) no-repeat; }
.home .top { color: var(--navy); }
.hero { max-width: 1040px; margin: 0 auto; padding: 24px 16px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; min-height: 440px; }
.hero-text { padding-bottom: 72px; color: var(--navy); }
.hero h1 { font-size: clamp(44px, 8vw, 72px); line-height: 1; margin: 0 0 12px; letter-spacing: -1px; }
.lead { font-size: 21px; margin: 0 0 28px; max-width: 26ch; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { background: var(--navy); color: #fff; border-radius: 12px; padding: 8px 18px; font-weight: 700; font-size: 18px; line-height: 1.2; }
.store small { display: block; font-weight: 500; font-size: 12px; opacity: .75; }

.scene { position: relative; height: 380px; }
.box { display: block; width: 64px; height: 44px; border-radius: 7px; border: 4px solid var(--navy); background: repeating-linear-gradient(90deg, transparent 0 9px, rgba(0,0,0,.14) 9px 13px); }
.box.r { background-color: var(--r); } .box.y { background-color: var(--y); } .box.g { background-color: var(--g); }
.box.b { background-color: var(--b); } .box.o { background-color: var(--o); }
.crane { position: absolute; left: 56%; top: 0; width: 4px; height: 96px; background: var(--navy); animation: lift 4s ease-in-out infinite; }
.crane .box { position: absolute; top: 96px; left: -30px; }
.crane::after { content: ""; position: absolute; top: 86px; left: -36px; width: 76px; height: 10px; border-radius: 4px; background: var(--navy); }
@keyframes lift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(20px); } }
@media (prefers-reduced-motion: reduce) { .crane { animation: none; } }
.ship { position: absolute; left: 6%; right: 6%; bottom: 46px; }
.cargo { display: grid; grid-template-columns: repeat(4, 64px); gap: 4px; margin-left: 9%; }
.cargo .box:nth-child(n+4) { grid-row: 2; }
.bridge { position: absolute; right: 9%; bottom: 22px; width: 58px; height: 96px; background: #fff; border: 4px solid var(--navy); border-radius: 8px 8px 0 0; }
.bridge::before { content: ""; position: absolute; left: 8px; right: 8px; top: 14px; height: 14px; border-radius: 4px; background: var(--sea); }
.hull { height: 62px; margin-top: -2px; background: linear-gradient(var(--r) 0 16px, var(--navy2) 16px); border: 4px solid var(--navy); clip-path: polygon(0 0, 100% 0, 93% 100%, 7% 100%); }
.sea { position: absolute; left: -16px; right: -16px; bottom: 0; height: 70px; background: var(--sea); border-radius: 50% 50% 0 0 / 22px 22px 0 0; }

main { display: block; }
.how, .features { max-width: 1040px; margin: 0 auto; padding: 48px 16px 0; }
.how h2 { font-size: 30px; margin: 0 0 20px; }
.how ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.how li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 18px 64px; position: relative; }
.how li::before { content: counter(s); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: var(--navy); font-weight: 700; display: grid; place-items: center; }
.how b { display: block; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 24px; }
.features div { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.features h3 { margin: 0 0 4px; font-size: 19px; }
.features p { margin: 0; color: var(--muted); }

.doc { max-width: 760px; margin: 0 auto; padding: 16px 16px 32px; }
.doc h1 { font-size: 36px; line-height: 1.2; margin: 8px 0 4px; }
.doc h2 { font-size: 21px; margin: 32px 0 8px; }
.meta { color: var(--muted); margin-top: 0; }
.doc li { margin: 4px 0; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 10px 0; }
summary { font-weight: 600; cursor: pointer; }
details p { margin: 8px 0 0; }
a.store { text-decoration: none; transition: transform .15s; }
a.store:hover { transform: translateY(-2px); }
.steps { margin: 24px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 18px 64px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: var(--navy); font-weight: 700; display: grid; place-items: center; }
.steps b:first-child { display: block; }
.btn { display: inline-block; margin-top: 12px; background: var(--navy); color: #fff !important; text-decoration: none; font-weight: 700; border-radius: 12px; padding: 8px 18px; }
@media (prefers-color-scheme: dark) { .btn { background: var(--sea); } }

footer { max-width: 1040px; margin: 32px auto 0; padding: 24px 16px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 8px; }
footer a { color: inherit; }

@media (max-width: 760px) {
  .home { background: linear-gradient(var(--sky) 0, var(--sky2) 600px, var(--bg) 600px) no-repeat; }
  .hero { grid-template-columns: 1fr; gap: 0; min-height: 0; }
  .hero-text { padding-bottom: 8px; }
  .scene { height: 300px; margin: 0 -16px; overflow: hidden; }
  .scene .ship, .scene .crane { zoom: .8; }
  .sea { left: 0; right: 0; }
  .how ol, .features { grid-template-columns: 1fr; }
  .top nav { gap: 12px; }
}
