@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,600;0,700;0,800;0,900;1,800;1,900&family=Barlow:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --base: #151614;
  --dark: #10110f;
  --panel: #20211d;
  --line: #383a31;
  --white: #f6f3e9;
  --mute: #c3c2b8;
  --yellow: #ffc554;
  --heading: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: Barlow, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--base); color: var(--white); font: 1.06rem/1.52 var(--body); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
svg { width: 1.35em; height: 1.35em; flex: none; vertical-align: middle; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--heading); line-height: 1; font-weight: 800; }
h2 { font-size: clamp(2.8rem, 5.7vw, 5.15rem); text-transform: uppercase; }
h3 { font-size: 1.8rem; }
.wrap { width: min(1320px, calc(100% - clamp(2rem, 11.5vw, 11rem))); margin-inline: auto; }
.skip { position: absolute; z-index: 2; top: .5rem; left: .5rem; padding: .65rem; color: #111; background: var(--yellow); transform: translateY(-170%); }
.skip:focus { transform: translateY(0); }
.header { background: #141513; border-bottom: 1px solid #2a2b25; }
.bar { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 1.1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; flex: none; font: italic 900 1.8rem/.83 var(--heading); letter-spacing: -.015em; }
.brand b { display: block; color: var(--yellow); }
.bar nav { display: flex; align-items: center; gap: clamp(.9rem, 3vw, 3.25rem); color: var(--mute); font-size: .95rem; font-weight: 700; }
.bar nav a { padding-block: .4rem; }
.bar nav a:hover, .bar nav a[aria-current], .footer a:hover, .contact a:hover { color: var(--yellow); }
.call { display: flex; align-items: center; gap: .5rem; padding: .48rem .85rem; border: 1px solid #675934; color: var(--yellow); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.call:hover { border-color: var(--yellow); }
.hero {
  min-height: clamp(530px, 45vw, 690px);
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(90deg, #0e0e0de8, #10100f93 40%, #0e0e0d06 72%), linear-gradient(0deg, #10100e99, transparent 29%), url('warsztat-v3.webp') 58% 54% / cover no-repeat, #201c16;
  border-bottom: 2px solid var(--yellow);
}
.hero-inner { padding-block: clamp(3.1rem, 6vw, 6rem); }
.eyebrow { display: flex; align-items: center; gap: .55em; font-size: .86rem; text-transform: uppercase; font-weight: 700; letter-spacing: .16em; color: var(--yellow); margin-bottom: .9rem; }
.eyebrow::before { content: ''; width: 23px; height: 2px; background: currentColor; }
.eyebrow:has(svg)::before { display: none; }
.hero h1 { font-size: clamp(6.1rem, 11.5vw, 11.7rem); font-weight: 900; letter-spacing: -.041em; line-height: .77; margin: .12em 0 .18em; }
.hero h1 em { color: var(--yellow); font-weight: 900; }
.hero h1 span { color: #f3ede0; }
.hero-copy { max-width: 32ch; font-size: clamp(1.08rem, 1.7vw, 1.36rem); color: #e3e0d7; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.7rem; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .45rem; min-height: 48px; border: 1px solid transparent; padding: .65rem 1.13rem; font-size: .98rem; font-weight: 700; }
.primary { background: var(--yellow); color: #18150f; }
.primary:hover { background: #ffda88; }
.outline { border-color: #a19b87; color: var(--white); background: #17171353; }
.outline:hover { border-color: var(--yellow); color: var(--yellow); }
.offer, .race, .contact, .portfolio-home { padding-block: clamp(3rem, 6vw, 6.6rem); }
.services { margin-top: 1.8rem; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: solid var(--line); border-width: 1px 0 0 1px; }
.service { display: flex; flex-direction: column; align-items: flex-start; border: solid var(--line); border-width: 0 1px 1px 0; padding: clamp(.9rem, 2.05vw, 1.75rem); background: #1c1d19; }
.service:hover { background: #28271e; }
.service-icon { display: grid; place-items: center; width: 46px; height: 46px; color: var(--yellow); border: 1px solid #594d31; background: #26231a; margin-bottom: 1.15rem; }
.service-icon svg { width: 25px; height: 25px; }
.service h3 { font-size: clamp(1.55rem, 2.5vw, 2.15rem); }
.service p { color: var(--mute); margin: .65rem 0 1.1rem; }
.service-link { color: var(--yellow); margin-top: auto; font-weight: 700; font-size: .91rem; }
.service:hover .service-link { text-decoration: underline; text-underline-offset: .24em; }
.portfolio-home { border-top: 1px solid var(--line); }
.portfolio-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 1.6rem; background: var(--line); border: 1px solid var(--line); }
.portfolio-links a { padding: clamp(1.1rem, 3vw, 2rem); background: #1c1d19; }
.portfolio-links a:hover { background: #26261e; }
.portfolio-links p { margin-top: .5rem; color: var(--mute); }
.race, .game-page { background: repeating-linear-gradient(135deg, transparent 0 14px, #2222174d 14px 15px), #1d1d16; border-block: 1px solid var(--line); }
.race-layout, .contact-layout, .details { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(1.7rem, 6vw, 6.3rem); align-items: center; }
.race-copy p:not(.eyebrow), .sub-hero .wrap > p:last-child { color: var(--mute); max-width: 37ch; margin-top: 1rem; font-size: 1.17rem; }
.race-copy .button { margin-top: 1.4rem; }
.race-media { background: #25281e; border: 1px solid #625638; padding: .38rem; }
.race-media img { aspect-ratio: 16/9; width: 100%; height: auto; object-fit: cover; }
.contact-layout { align-items: start; grid-template-columns: 1fr 1fr; }
.muted { color: var(--mute); margin-top: .85rem; }
address { font-style: normal; display: grid; justify-items: start; gap: .3rem; margin-top: 1.25rem; }
.contact-number { color: var(--yellow); font: 800 2.75rem/1.15 var(--heading); }
address a:not(.contact-number), .text-link, .back { text-decoration: underline; text-underline-offset: .23em; }
address span:first-of-type { margin-top: .55rem; }
.note { font-size: .95rem; max-width: 38ch; }
.contact-form, .details aside { padding: clamp(1.05rem, 2.85vw, 2.15rem); border: 1px solid var(--line); background: var(--panel); }
.contact-form > p { color: var(--mute); margin-top: .5rem; font-size: .95rem; }
.contact-form label { display: grid; gap: .3rem; margin-top: .9rem; font-weight: 600; min-width: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
input, select, textarea { width: 100%; min-height: 44px; padding: .46rem .55rem; color: var(--white); background: var(--dark); border: 1px solid #55574c; border-radius: 0; }
select { appearance: none; padding-right: 2rem; background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%); background-position: calc(100% - 16px) 52%, calc(100% - 10px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
textarea { resize: vertical; }
.contact-form button { margin-top: .9rem; }
button:disabled { opacity: .58; cursor: default; }
.footer { border-top: 1px solid var(--line); background: var(--dark); color: var(--mute); font-size: .94rem; }
.foot { min-height: 104px; display: flex; align-items: center; gap: 1rem; justify-content: space-between; flex-wrap: wrap; padding-block: 1rem; }
.foot .brand { color: var(--white); }
.sub-hero { padding-block: 2rem clamp(3rem, 7vw, 6rem); background: linear-gradient(90deg, #131410, #141410bb), url('warsztat-v3.webp') right 53% / cover, #26251b; border-bottom: 2px solid var(--yellow); }
.back { display: inline-block; color: var(--mute); margin-bottom: clamp(1.4rem, 3vw, 3rem); }
.back:hover, .text-link:hover { color: var(--yellow); }
.sub-hero h1, .game-page h1 { font-size: clamp(3.5rem, 8vw, 7.8rem); text-transform: uppercase; }
.details { padding-block: clamp(2.5rem, 6vw, 6rem); align-items: start; grid-template-columns: 1.18fr .82fr; }
.details h2 { font-size: clamp(2.15rem, 3.7vw, 3.65rem); }
.detail-list { margin-top: 1.1rem; }
.detail-list div { padding: 1.05rem 0; border-top: 1px solid var(--line); }
.detail-list p, .details aside p { margin-top: .5rem; color: var(--mute); }
.details aside h2 { font-size: 2rem; }
.details aside .button { margin-top: 1rem; }
.text-link { display: table; color: var(--mute); margin-top: 1rem; }
.game-page { padding-block: 2rem clamp(3rem, 8vw, 7rem); }
.collection { padding-block: clamp(2.5rem, 5vw, 5rem); }
.collection nav { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0 0 1.7rem; }
.collection nav a[aria-current] { border-color: var(--yellow); color: var(--yellow); }
.collection section + section { margin-top: 2.6rem; }
.collection h2 { margin-bottom: .65rem; font-size: clamp(2.1rem, 4vw, 3.6rem); }
.collection section > p { color: var(--mute); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
.gallery-grid figure { background: var(--panel); border: 1px solid var(--line); }
.gallery-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery-grid figcaption { padding: .8rem; }
.journal article { max-width: 70ch; padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
.journal article time { color: var(--yellow); font-size: .9rem; }
.journal article h2 { margin-top: .45rem; }
.journal article p { margin-top: .65rem; }
@media (max-width: 970px) {
  .services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .bar { flex-wrap: wrap; gap: .35rem 1rem; min-height: 0; padding-top: .65rem; }
  .bar nav { order: 3; width: 100%; justify-content: space-between; gap: .15rem; border-top: 1px solid var(--line); }
  .bar nav a, .bar .call { display: inline-flex; align-items: center; min-height: 44px; }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 690px) {
  .wrap { width: calc(100% - 2rem); }
  .bar nav a { font-size: .9rem; }
  .bar .call { padding-inline: .65rem; }
  .hero {
    min-height: clamp(440px, 75svh, 570px);
    align-items: end;
    background-image: linear-gradient(0deg, #10100ffa 5%, #10100fa3 45%, #10100f10 82%), url('warsztat-v3.webp');
    background-position: center, 66% center;
  }
  .hero h1 { font-size: clamp(4.1rem, 17vw, 7.1rem); }
  .sub-hero h1 { font-size: clamp(2.65rem, 9vw, 3.65rem); }
  .sub-hero h1, .contact a, .journal h2 { overflow-wrap: anywhere; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .race-layout, .details { grid-template-columns: 1fr; }
  .portfolio-links, .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 370px) {
  .services { grid-template-columns: 1fr; }
  .bar nav a { font-size: .84rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
