/* New Wave — сайт. Цветове, шрифтове и размери на едно място. */
:root {
  --black: #0A0A0A;
  --ink: #141414;
  --line: #2A2A2A;
  --lime: #D6FF1F;
  --paper: #EDEAE3;
  --gray: #8C8C8C;
  --soft: #CFCFCF;
  --white: #FFFFFF;

  --f-body: 'Sofia Sans', system-ui, sans-serif;
  --f-cond: 'Sofia Sans Extra Condensed', 'Sofia Sans', sans-serif;
  --f-hand: 'Caveat', cursive;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --gutter: clamp(20px, 4vw, 64px);
  --max: 1320px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--lime); color: var(--black); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.on-lime :focus-visible, .on-paper :focus-visible { outline-color: var(--black); }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--lime); color: var(--black); padding: 10px 16px; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* ---------- Типография ---------- */
.eyebrow {
  margin: 0;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
}
.display, .h2, .h3 {
  margin: 0;
  font-family: var(--f-cond);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: 0;
}
.display { font-size: clamp(60px, 10.5vw, 148px); }
.h2 { font-size: clamp(44px, 6.6vw, 96px); }
.h3 { font-size: clamp(30px, 3vw, 40px); line-height: 0.95; }
.lead { margin: 0; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--soft); max-width: 34em; }
.hand { font-family: var(--f-hand); font-weight: 700; }

/* ---------- Бутони ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: 2px solid transparent;
  font-family: var(--f-body);
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-lime { background: var(--lime); color: var(--black); }
.btn-black { background: var(--black); color: var(--lime); }
.btn-outline { border-color: currentColor; color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--black); }
.arrow { width: 26px; height: 18px; flex: none; }

/* ---------- Хедър ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; flex: none; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 36px; font-family: var(--f-mono); font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; }
.nav a { text-decoration: none; padding: 8px 0; }
.nav a:hover { color: var(--lime); }
.nav .btn { font-family: var(--f-mono); font-size: 14px; letter-spacing: 0.1em; min-height: 46px; padding: 12px 20px; }
.menu-toggle { display: none; }

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  /* backdrop-filter would make the header the containing block of the fixed menu */
  .site-header { background: var(--black); backdrop-filter: none; }
  .brand img { height: 44px; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 44px; padding: 10px 14px;
    background: none; border: 2px solid var(--white); color: var(--white);
    font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer;
  }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 4px;
    padding: 32px var(--gutter);
    background: var(--black);
    font-family: var(--f-cond); font-weight: 900; font-size: 52px; letter-spacing: 0; line-height: 1.1;
    transform: translateY(-110%); visibility: hidden;
    transition: transform .25s ease, visibility .25s;
  }
  .nav .btn { margin-top: 24px; font-size: 15px; }
  .menu-open .nav { transform: none; visibility: visible; }
  .menu-open { overflow: hidden; }
}

/* ---------- Ръкописната вълна ---------- */
.scribble path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.js .draw path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s .35s cubic-bezier(.6, 0, .2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Начало ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 120px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero .display { font-size: clamp(56px, 7.2vw, 128px); }
.scribble-word { position: relative; display: inline-block; white-space: nowrap; }
.scribble-word .scribble { position: absolute; left: -6%; bottom: -0.3em; width: 118%; height: auto; overflow: visible; z-index: -1; }
.hero .display { position: relative; z-index: 1; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-art { position: relative; height: clamp(440px, 46vw, 600px); --pw: clamp(200px, 22vw, 320px); }
.post {
  position: absolute;
  width: var(--pw);
  aspect-ratio: 4 / 5;
  padding: calc(var(--pw) * .075);
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
}
.post-dark { left: 0; top: 0; background: var(--ink); border: 1px solid var(--line); transform: rotate(-6deg); }
.post-dark .hand { margin: 0; font-size: calc(var(--pw) * .13); line-height: .95; color: var(--white); transform: rotate(-4deg); transform-origin: left center; }
.post-dark img { width: 34%; align-self: flex-start; }
.post-lime { right: 0; bottom: 0; z-index: 3; background: var(--lime); color: var(--black); transform: rotate(4deg); }
.post-lime p { margin: 0; font-family: var(--f-cond); font-weight: 900; text-transform: uppercase; font-size: calc(var(--pw) * .145); line-height: .88; }
.post-foot { display: flex; align-items: flex-end; justify-content: space-between; }
.post-foot img { height: calc(var(--pw) * .15); width: auto; }
.hero-art .scribble { position: absolute; left: -12%; top: 56%; width: 124%; z-index: 2; pointer-events: none; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .display { font-size: clamp(52px, 13vw, 110px); }
  .hero-art { height: 400px; max-width: 420px; width: 100%; margin: 0 auto; --pw: 220px; }
}

/* ---------- Лента с услуги ---------- */
.marquee { background: var(--lime); color: var(--black); overflow: hidden; border-block: 2px solid var(--black); }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track span { padding: 16px 0; margin-right: 28px; white-space: nowrap; font-family: var(--f-cond); font-weight: 900; text-transform: uppercase; font-size: clamp(26px, 3vw, 38px); line-height: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Секции ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section-head { display: flex; flex-direction: column; gap: 20px; margin-bottom: clamp(40px, 5vw, 72px); max-width: 980px; }

.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service {
  display: flex; flex-direction: column; gap: 18px;
  padding: clamp(28px, 3vw, 40px);
  background: var(--ink);
  border: 1px solid var(--line);
  transition: border-color .2s ease, transform .2s ease;
}
.service:hover { border-color: var(--lime); transform: translateY(-4px); }
.num { font-family: var(--f-mono); font-size: 14px; letter-spacing: 0.14em; color: var(--lime); }
.service p { margin: 0; color: var(--soft); }
.service ul { list-style: none; margin: auto 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; font-family: var(--f-mono); font-size: 14px; letter-spacing: 0.04em; }
.service li::before { content: "→ "; color: var(--lime); }
@media (max-width: 1000px) { .services { grid-template-columns: 1fr; } }

/* ---------- Манифест ---------- */
.on-paper { background: var(--paper); color: var(--black); }
.on-lime { background: var(--lime); color: var(--black); }
.manifesto { padding: clamp(80px, 11vw, 160px) 0; position: relative; overflow: hidden; }
.manifesto .big { margin: 0; font-family: var(--f-cond); font-weight: 900; text-transform: uppercase; font-size: clamp(52px, 9vw, 136px); line-height: .88; max-width: 12em; }
/* The highlight starts a little below the top of the line box so it doesn't swallow the black letters above it */
.mark-hl { background: linear-gradient(transparent .1em, var(--black) .1em); color: var(--lime); padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.manifesto .hand { margin: 36px 0 0; font-size: clamp(32px, 4vw, 56px); line-height: 1; transform: rotate(-3deg); transform-origin: left; }
.manifesto .mark { position: absolute; right: var(--gutter); bottom: clamp(40px, 6vw, 80px); width: clamp(120px, 16vw, 240px); }
@media (max-width: 700px) { .manifesto .mark { display: none; } }

/* ---------- Процес ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--white); }
.step { padding: 28px 28px 8px 0; display: flex; flex-direction: column; gap: 14px; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step .big-num { font-family: var(--f-cond); font-weight: 900; font-size: clamp(64px, 7vw, 104px); line-height: .8; color: var(--lime); }
.step p { margin: 0; color: var(--soft); }
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  .step + .step { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- За нас ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.about-words { margin: 0; font-family: var(--f-cond); font-weight: 900; text-transform: uppercase; font-size: clamp(64px, 9vw, 140px); line-height: .86; }
.about-words span:nth-child(2) { color: var(--lime); }
.about-text { display: flex; flex-direction: column; gap: 22px; color: var(--soft); }
.about-text p { margin: 0; }
.about-text strong { color: var(--white); }
.why { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.why li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--white); font-weight: 600; }
.why li span { font-family: var(--f-mono); color: var(--lime); font-weight: 400; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }

/* ---------- Контакти ---------- */
.contact { padding: clamp(72px, 10vw, 140px) 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); }
.contact-intro { display: flex; flex-direction: column; gap: 24px; }
.contact-intro .eyebrow { color: var(--black); }
.contact-intro p { margin: 0; font-size: 20px; max-width: 26em; }
.contact-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-family: var(--f-mono); font-size: 16px; }
.contact-list a { text-decoration: none; border-bottom: 2px solid var(--black); }
.contact-list .label { display: block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; opacity: .7; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.socials a { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; border: 2px solid var(--black); border-radius: 999px; padding: 8px 16px; }
.socials a:hover { background: var(--black); color: var(--lime); }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full, .form .full { grid-column: 1 / -1; }
.field label, .fieldset legend { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--black);
  border-radius: 0;
  background: var(--white);
  color: var(--black);
  font: 500 17px/1.4 var(--f-body);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--black); outline-offset: 2px; }
.fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.fieldset legend { margin-bottom: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 10px 16px; border: 2px solid var(--black); border-radius: 999px; font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.chip input:checked + span { background: var(--black); color: var(--lime); }
.chip input:focus-visible + span { outline: 3px solid var(--black); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--black); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-weight: 700; min-height: 1.5em; }
.form-status.err { color: #8A0000; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

/* ---------- Футър ---------- */
.site-footer { padding: 64px 0 40px; border-top: 1px solid var(--line); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; align-items: flex-start; }
.footer-grid img { height: 72px; width: auto; }
.footer-tag { margin: 18px 0 0; font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.14em; color: var(--gray); text-transform: uppercase; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; font-family: var(--f-mono); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--lime); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--gray); }
.footer-bottom a { color: var(--gray); }

/* ---------- Текстови страници ---------- */
.page { padding: clamp(56px, 8vw, 110px) 0; }
.prose { max-width: 760px; color: var(--soft); }
.prose h1 { margin: 0 0 32px; }
.prose h2 { margin: 48px 0 12px; font-family: var(--f-cond); font-weight: 900; text-transform: uppercase; font-size: 34px; line-height: 1; color: var(--white); }
.prose a { color: var(--lime); }
.prose strong { color: var(--white); }
.note { border: 2px dashed var(--lime); padding: 16px 20px; color: var(--white); }

/* ---------- Появяване при скрол ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .js .draw path { animation: none; stroke-dashoffset: 0; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .service { transition: none; }
}
