@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/SpaceGrotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-2: #efede7;
  --ink: #14161c;
  --muted: #5b6070;
  --line: #e2dfd7;
  --accent: #e5652e;
  --accent-ink: #ffffff;
  --link: #1f4fd1;
  --night-1: #070b1f;
  --night-2: #131c46;
  --night-3: #2b2f6e;
  --glow: #ff9a52;
  --radius: 18px;
  --wrap: 1120px;
  --head: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f15;
    --surface: #161922;
    --surface-2: #1c2030;
    --ink: #eef0f5;
    --muted: #9aa1b2;
    --line: #262b38;
    --link: #8fb0ff;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); }
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; letter-spacing: -0.02em; margin: 0; }

/* шапка — поверх неба */
.top { position: absolute; inset: 0 0 auto 0; z-index: 3; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; font: 600 19px/1 var(--head); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 36px; height: 36px; }
.top nav { display: flex; gap: 28px; }
.top nav a { color: rgba(255,255,255,.82); font-weight: 500; font-size: 15px; }
.top nav a:hover { color: #fff; text-decoration: none; }

/* небо и горизонт */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(180deg, var(--night-1) 0%, var(--night-2) 46%, var(--night-3) 70%, #6b4a7a 86%, var(--glow) 100%); }
.hero .scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .wrap { position: relative; z-index: 2; padding-top: 168px; padding-bottom: 260px; }
.eyebrow { font: 500 14px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.72); margin: 0 0 22px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); font-weight: 700; max-width: 16ch; }
.hero .lead { font-size: clamp(18px, 2vw, 21px); color: rgba(255,255,255,.84); max-width: 34em; margin: 26px 0 36px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 999px; font: 600 16px/1 var(--body); transition: transform .15s ease, background .15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-main { background: var(--accent); color: var(--accent-ink); }
.btn-main:hover { background: #f0733b; }
.btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }
.twinkle { animation: twinkle 4.5s ease-in-out infinite; }
.twinkle.b { animation-delay: 1.6s; }
.twinkle.c { animation-delay: 3.1s; }
@keyframes twinkle { 0%,100% { opacity: .9; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .twinkle { animation: none; } }

/* секции */
section.block { padding: 104px 0 0; }
.head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.head h2 { font-size: clamp(30px, 3.6vw, 44px); }
.head p { margin: 12px 0 0; color: var(--muted); max-width: 36em; }
.more { font-weight: 600; white-space: nowrap; }

/* портфолио */
.titles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; }
.titles li { margin: 0; }
.app { display: flex; flex-direction: column; height: 100%; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: border-color .15s ease, transform .15s ease; }
.app:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .app { transition: none; } .app:hover { transform: none; } }
.app img { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 6px 18px rgba(10,14,30,.16); }
.app strong { display: block; margin-top: 16px; font: 600 17px/1.3 var(--head); letter-spacing: -0.01em; }
.app span { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
.app em { margin-top: auto; padding-top: 14px; font-style: normal; font-size: 14px; font-weight: 600; color: var(--link); }
.group { font: 600 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.group + .titles { margin-bottom: 40px; }

/* издание */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.service .n { font: 700 15px/1 var(--head); color: var(--accent); }
.service h3 { font-size: 20px; margin: 18px 0 10px; }
.service p { margin: 0; color: var(--muted); font-size: 15.5px; }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 28px; color: var(--muted); }
.stores b { color: var(--ink); font-weight: 600; }

/* компания и контакты */
.split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; }
.card { padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.card h3 { font-size: 22px; margin-bottom: 20px; }
dl.facts { display: grid; grid-template-columns: 170px 1fr; gap: 12px 20px; margin: 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }
.contact { background: linear-gradient(160deg, var(--night-2), var(--night-3)); color: #fff; border: 0; }
.contact p { color: rgba(255,255,255,.78); margin: 0 0 24px; }
.contact a.mail { display: inline-block; color: #fff; font: 600 clamp(20px, 2.4vw, 26px)/1.2 var(--head); border-bottom: 2px solid var(--glow); padding-bottom: 4px; word-break: break-all; }
.contact a.mail:hover { text-decoration: none; color: var(--glow); }
.contact .phone { margin-top: 22px; }
.contact .phone a { color: #fff; font-weight: 600; }

/* подвал */
footer { margin-top: 104px; padding: 36px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
footer .wrap { display: flex; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; }
footer p { margin: 0; }

/* текстовые страницы */
.page-head { background: linear-gradient(180deg, var(--night-1), var(--night-3)); color: #fff; }
.page-head .wrap { padding-top: 140px; padding-bottom: 64px; }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); }
.page-head p { color: rgba(255,255,255,.75); margin: 14px 0 0; }
.prose { max-width: 760px; padding-top: 56px; }
.prose h2 { font-size: 26px; margin: 44px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }

@media (max-width: 960px) {
  .titles { grid-template-columns: repeat(3, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .top nav { gap: 18px; }
  .top nav a.hide-s { display: none; }
  .hero .wrap { padding-top: 128px; padding-bottom: 200px; }
  section.block { padding-top: 76px; }
  .services { grid-template-columns: 1fr; }
  .titles { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .app { padding: 14px; }
  .app img { width: 64px; height: 64px; border-radius: 16px; }
  dl.facts { grid-template-columns: 1fr; gap: 2px; }
  dl.facts dd { margin-bottom: 12px; }
  .card { padding: 22px; }
  footer { margin-top: 76px; }
}
