/* TNS Studio — визитка truenightstory.com. Шрифты свои (Rubik, Press Start 2P — OFL), без внешних запросов. */
@font-face { font-family: Rubik; font-weight: 400; font-display: swap; src: url(fonts/rubik-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Rubik; font-weight: 400; font-display: swap; src: url(fonts/rubik-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Rubik; font-weight: 500; font-display: swap; src: url(fonts/rubik-cyrillic-500-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Rubik; font-weight: 500; font-display: swap; src: url(fonts/rubik-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Rubik; font-weight: 700; font-display: swap; src: url(fonts/rubik-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Rubik; font-weight: 700; font-display: swap; src: url(fonts/rubik-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Press Start 2P'; font-weight: 400; font-display: swap; src: url(fonts/press-start-2p-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF; }
@font-face { font-family: 'Press Start 2P'; font-weight: 400; font-display: swap; src: url(fonts/press-start-2p-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0400-045F; }

:root {
  --navy: #0f1530; --navy-2: #1a2350; --ink: #141b3c; --muted: #545b7a;
  --yellow: #ffd23f; --rust: #a3561a; --paper: #f5f2e9; --paper-2: #ebe6d8; --line: #cfc8b4;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 400 17px/1.55 Rubik, system-ui, sans-serif; color: var(--ink); background: var(--paper); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--yellow); color: var(--navy); padding: 8px 14px; font-weight: 700; z-index: 10; }
.skip:focus { left: 8px; }

/* шапка */
.top { background: var(--navy); color: #e8ecff; }
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; flex-wrap: wrap; }
.logo { font: 400 16px/1 'Press Start 2P', monospace; color: var(--yellow); text-shadow: 0 3px 0 var(--rust); text-decoration: none; letter-spacing: 1px; padding: 6px 0 9px; }
.logo--small { font-size: 11px; text-shadow: 0 2px 0 var(--rust); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: #e8ecff; text-decoration: none; font-weight: 500; font-size: 15px; padding: 10px 12px; border-radius: 8px; }
.nav a:hover { background: var(--navy-2); color: #fff; }

/* первый экран */
.hero { background: var(--navy); color: #eef1ff; padding: 48px 0 88px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.nw { white-space: nowrap; }
.hero h1 { font-weight: 700; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.08; margin: 0 0 20px; letter-spacing: -0.01em; color: #fff; }
.lead { font-size: 19px; color: #c9cff0; max-width: 34em; margin: 0 0 32px; }
.hero__cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.btn { display: inline-block; background: var(--yellow); color: var(--navy); font-weight: 700; text-decoration: none; padding: 15px 26px; border-radius: 12px; box-shadow: 0 4px 0 var(--rust); }
.btn:hover { background: #ffdc66; }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--rust); }
.link-light { color: #fff; font-weight: 500; text-underline-offset: 4px; }
.hero__shots { position: relative; aspect-ratio: 5 / 4; }
.shot { position: absolute; width: 82%; border-radius: 10px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.shot--back { right: 0; top: 0; transform: rotate(2.5deg); opacity: .9; }
.shot--front { left: 0; bottom: 0; transform: rotate(-2deg); }

/* секции */
.section { padding: 88px 0; }
.section h2, .process h2 { font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.01em; }
.sub { color: var(--muted); max-width: 40em; margin: 0 0 40px; }

/* прайс в виде меню */
.menu { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; align-items: start; }
.menu__group h3 { font-weight: 700; font-size: 21px; line-height: 1.3; color: var(--ink); margin: 36px 0 4px; }
.menu__col > .menu__group:first-child h3 { margin-top: 0; }
.menu dl { margin: 0; }
.item { display: flex; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.item dt { flex: 1; font-weight: 500; font-size: 18px; }
.item dt span { display: block; font-weight: 400; font-size: 15px; color: var(--muted); margin-top: 2px; }
.item dd { margin: 0; text-align: right; white-space: nowrap; }
.item dd b { display: block; font-weight: 700; font-size: 18px; }
.item dd i { font-style: normal; font-size: 14px; color: var(--muted); }

/* работы */
.section--works { background: var(--paper-2); }
.works { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
.works img { border-radius: 10px; box-shadow: 0 1px 0 var(--line), 0 12px 30px rgba(20, 27, 60, .12); background: #fff; }
.work-link { display: block; border-radius: 10px; }
.works p { margin: 14px 0 0; color: var(--muted); }
.works p b { color: var(--ink); font-weight: 700; }

/* как работаем */
.process { background: var(--navy); color: #eef1ff; padding: 88px 0; }
.process h2 { color: #fff; margin-bottom: 40px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: none; }
.num { display: block; font: 400 28px/1 'Press Start 2P', monospace; color: var(--yellow); text-shadow: 0 4px 0 var(--rust); margin-bottom: 22px; }
.steps h3 { font-size: 20px; margin: 0 0 8px; color: #fff; }
.steps p { margin: 0; color: #c9cff0; font-size: 16px; }

/* контакты */
.contact__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; }
.contact .sub { margin-bottom: 0; }
.contact__links { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.mail { font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); color: var(--navy); text-decoration: none; border-bottom: 4px solid var(--yellow); padding-bottom: 2px; word-break: break-all; }
.mail:hover { border-bottom-color: var(--rust); }
.mail--small { font-size: clamp(18px, 2vw, 22px); border-bottom-width: 3px; }
.link-dark { color: var(--ink); font-weight: 500; text-underline-offset: 4px; }

/* подвал */
.foot { background: var(--navy); color: #9aa2c9; font-size: 14px; }
.foot__row { display: flex; justify-content: space-between; align-items: center; min-height: 72px; gap: 16px; }

/* адаптив */
@media (max-width: 900px) {
  .hero { padding: 32px 0 64px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__shots { max-width: 560px; }
  .menu { grid-template-columns: 1fr; }
  .menu__col + .menu__col > .menu__group:first-child h3 { margin-top: 36px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact__grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .top__row { min-height: 0; padding-top: 14px; padding-bottom: 8px; gap: 8px; }
  .nav { margin: 0 -8px; gap: 0; flex-wrap: nowrap; }
  .nav a { padding: 8px 8px; font-size: 14px; white-space: nowrap; }
  .lead { font-size: 17px; }
  .section, .process { padding: 64px 0; }
  .item { flex-direction: column; gap: 6px; }
  .item dd { text-align: left; display: flex; gap: 12px; align-items: baseline; }
  .item dd b { display: inline; }
  .works { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
}
