/* ==========================================================================
   RAW Digital — main stylesheet
   ========================================================================== */

:root {
  --ink: #0b1117;
  --ink-2: #111a24;
  --navy: #0f2f4a;
  --accent: #34e8c6;
  --accent-dark: #127a86;
  --text: #1b2430;
  --muted: #5b6573;
  --muted-light: #a9b3bf;
  --line-dark: rgba(255, 255, 255, 0.16);
  --paper: #ffffff;
  --paper-2: #f1f3f6;

  --font-display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-script: "Caveat", "Segoe Print", "Bradley Hand", cursive;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 72px);
  --radius: 10px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }

.icon { width: 1em; height: 1em; flex-shrink: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--ink); padding: 8px 14px; border-radius: 6px;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.display--md { font-size: clamp(1.75rem, 3.1vw, 2.6rem); line-height: 1.05; }
.display--sm { font-size: clamp(1.5rem, 2.4vw, 2.05rem); line-height: 1.05; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 14px;
}
.eyebrow--light { color: #d9dee5; }

.scribble {
  font-family: var(--font-script);
  font-weight: 500;
  color: #fff;
  line-height: 1.02;
  transform: rotate(-14deg);
  position: relative;
  pointer-events: none;
}
.scribble::after {
  content: "";
  display: block;
  width: 1.4em;
  height: 0.45em;
  margin-top: 0.15em;
  margin-left: 1.3em;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 14'%3E%3Cpath d='M2 11C18 5 36 3 58 3' fill='none' stroke='%2334e8c6' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
}
.scribble--dark { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn .icon { width: 17px; height: 17px; stroke-width: 2.2; transition: transform 0.2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 0.85rem; }

.btn--primary { background: var(--accent); color: var(--ink); }
.btn--primary:hover { background: #6ff2da; box-shadow: 0 8px 28px rgba(52, 232, 198, 0.35); }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--accent); }

.btn--outline-light { border-color: rgba(255, 255, 255, 0.85); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.1); }

.btn--outline-accent { border-color: var(--accent); color: #fff; }
.btn--outline-accent:hover { background: var(--accent); color: var(--ink); }

.btn--outline-dark { border-color: var(--ink); color: var(--ink); }
.btn--outline-dark:hover { background: var(--ink); color: #fff; }

.btn__play {
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; color: var(--ink);
}
.btn__play svg { width: 18px; height: 18px; }

.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--accent);
  font-size: 0.85rem; font-weight: 600;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  white-space: nowrap;
}
.text-link .icon { width: 16px; height: 16px; transition: transform 0.2s; }
.text-link:hover .icon { transform: translateX(3px); }

.circle-arrow {
  display: grid; place-items: center; flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  transition: background-color 0.2s, color 0.2s;
}
.circle-arrow .icon { width: 16px; height: 16px; stroke-width: 2.2; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; color: #fff; line-height: 1; }
.logo__img { display: block; width: auto; height: 52px; }

/* ---------- Header ---------- */
.site-header {
  position: absolute; inset: 0 0 auto; z-index: 20;
  padding-top: 22px;
}
.site-header__inner { display: flex; align-items: center; gap: 32px; }
.site-nav { flex: 1; display: flex; align-items: center; }
.site-nav__list { display: flex; gap: clamp(20px, 3vw, 46px); margin-inline: auto; }
.site-nav__link {
  position: relative; display: block;
  color: #fff; font-size: 0.9rem; font-weight: 500;
  padding: 8px 0;
  transition: color 0.2s;
}
.site-nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; border-radius: 2px; background: var(--accent);
  transform: scaleX(0); transition: transform 0.25s;
}
.site-nav__link:hover { color: var(--accent); }
.site-nav__link.is-active { color: var(--accent); }
.site-nav__link.is-active::after,
.site-nav__link:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-dark); background: rgba(0, 0, 0, 0.35);
  color: #fff; cursor: pointer;
  place-items: center;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(620px, 50vw, 760px);
  background: #06080c;
  color: #fff;
  display: flex;
  align-items: center;
}
.hero__media {
  position: absolute; inset: 0 0 0 auto;
  width: min(72%, 1180px);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 12% center; }
.hero__media::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, #06080c 0%, rgba(6, 8, 12, 0.92) 20%, rgba(6, 8, 12, 0.55) 45%, rgba(6, 8, 12, 0.2) 70%, rgba(6, 8, 12, 0.15) 100%),
    linear-gradient(180deg, rgba(6, 8, 12, 0.7) 0%, rgba(6, 8, 12, 0.1) 26%, rgba(6, 8, 12, 0.35) 100%);
}
.hero__inner { position: relative; z-index: 2; padding-top: 130px; padding-bottom: 60px; }
.hero__content { max-width: 640px; }
.hero__content .eyebrow { margin-bottom: 26px; line-height: 1.8; }
.hero__title {
  color: #fff;
  font-size: clamp(2.3rem, 4.1vw, 3.6rem);
  line-height: 0.94;
  max-width: 12.5ch;
}
.hero__lead {
  margin-top: 26px;
  max-width: 520px;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.5;
  color: #e7ebf0;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.hero__actions .btn { min-width: 206px; }
.hero__scribble {
  position: absolute;
  right: var(--gutter);
  bottom: 70px;
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 7vw, 96px); background: var(--paper); }
.section--dark { background: var(--ink-2); color: #fff; }
.section--dark .display { color: #fff; }

/* What we do */
.what-we-do__grid {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 1.5fr;
  gap: clamp(24px, 3vw, 56px);
  align-items: start;
}
.what-we-do__intro .display { margin-bottom: 22px; }
.what-we-do__intro p:last-child { color: #3d4652; font-size: 0.95rem; line-height: 1.7; }

.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.service { text-align: center; }
.service__icon {
  display: grid; place-items: center;
  width: 84px; height: 78px; margin: 0 auto 18px;
  border-radius: 8px;
  transition: transform 0.25s;
}
.service:hover .service__icon { transform: translateY(-4px); }
.service__icon .icon { width: 36px; height: 36px; stroke-width: 1.6; }
.service__icon--violet { background: #eef0fd; color: #3b35c9; }
.service__icon--rose   { background: #fdeef0; color: #e64a5b; }
.service__icon--mint   { background: #e5faf3; color: #17a888; }
.service__icon--lilac  { background: #efeefd; color: #3b35c9; }
.service__icon--sky    { background: #edf1fe; color: #3b35c9; }
.service__title { font-size: 0.95rem; font-weight: 700; line-height: 1.3; color: var(--ink); margin-bottom: 12px; }
.service__text { font-size: 0.8rem; line-height: 1.5; color: var(--muted); }

/* Featured solutions */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 26px;
}
.section-head .eyebrow { margin-bottom: 10px; }

.solution-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.solution-card { border: 1px solid var(--line-dark); background: #0e161f; transition: border-color 0.25s, transform 0.25s; }
.solution-card:hover { border-color: rgba(52, 232, 198, 0.6); transform: translateY(-4px); }
.solution-card:hover .circle-arrow { background: var(--accent); color: var(--ink); }
.solution-card__link { display: flex; flex-direction: column; height: 100%; }
.solution-card__media { aspect-ratio: 7 / 6; overflow: hidden; }
.solution-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.solution-card:hover .solution-card__media img { transform: scale(1.05); }
.solution-card__body {
  flex: 1;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding: 16px 12px 18px;
}
.solution-card__title { font-size: 0.95rem; font-weight: 600; line-height: 1.3; margin-bottom: 10px; }
.solution-card__text { font-size: 0.82rem; line-height: 1.45; color: var(--muted-light); }

/* How it works */
.how-it-works .container { position: relative; }
.how-it-works__scribble {
  position: absolute; top: -26px; right: var(--gutter);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
}
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 42px;
}
.step { position: relative; }
.step:not(:last-child)::after {
  content: "";
  position: absolute; top: 20px; right: -2px;
  width: 16px; height: 16px;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23556070' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
}
.step__badge { display: flex; align-items: flex-start; margin-bottom: 18px; }
.step__num {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-size: 0.72rem; font-weight: 700;
}
.step__icon {
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%;
  margin-left: 14px; margin-top: 2px;
  background: #eef2f6; color: var(--accent-dark);
  transition: background-color 0.25s;
}
.step:hover .step__icon { background: #dcf8f1; }
.step__icon .icon { width: 24px; height: 24px; }
.step__title { font-size: 0.95rem; font-weight: 700; line-height: 1.3; color: var(--ink); margin-bottom: 8px; }
.step__text { font-size: 0.82rem; line-height: 1.5; color: var(--muted); max-width: 30ch; }

/* For agencies */
.split { display: grid; grid-template-columns: 1fr; }
.split__panel { position: relative; overflow: hidden; min-height: 400px; }

.agencies {
  color: #fff; background: #0d1522; display: flex; align-items: center;
  /* Keeps the copy aligned with .container on wide screens; on the panel, not
     the text box, so it never eats into the 460px max-width. */
  padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2));
}
.agencies__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.agencies::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(8, 12, 20, 0.92) 0%, rgba(8, 12, 20, 0.7) 50%, rgba(8, 12, 20, 0.25) 100%);
}
.agencies__content {
  position: relative; z-index: 2;
  max-width: 560px;
  padding: 64px 32px 64px 0;
}
.agencies .display { color: #fff; margin-bottom: 20px; }
.agencies p:not(.eyebrow) { font-size: 0.95rem; line-height: 1.6; color: #e3e7ec; margin-bottom: 24px; }
.agencies__scribble {
  position: absolute; z-index: 2; right: 7%; bottom: 44px;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
}
.agencies__scribble::after { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: #0a0e13; color: #fff; padding-top: 36px; }
.site-footer__top {
  display: flex; align-items: center; flex-wrap: wrap; gap: 24px 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.site-footer__brand { display: flex; align-items: center; gap: 20px; }
.site-footer__brand .logo__img { height: 42px; }
.site-footer__brand p { font-size: 0.82rem; color: #d7dce2; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 12px clamp(16px, 2.2vw, 32px); margin-left: auto; }
.site-footer__nav a,
.site-footer__legal a { font-size: 0.8rem; color: #d7dce2; transition: color 0.2s; }
.site-footer__nav a:hover,
.site-footer__legal a:hover { color: var(--accent); }
.site-footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-block: 20px 24px;
  font-size: 0.72rem; color: #9aa4af;
}
.site-footer__legal { display: flex; }
.site-footer__legal li + li::before { content: "|"; margin-inline: 12px; color: #4b545e; }
.site-footer__legal a { font-size: 0.72rem; color: #9aa4af; }

/* ---------- Inner pages ---------- */
.page-hero {
  background: #06080c;
  color: #fff;
  padding-block: 150px 56px;
}
.page-hero .display { color: #fff; }

.page-hero .container,
.prose { max-width: calc(760px + var(--gutter) * 2); }
.prose { color: #2a323c; }
.prose .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 28px; }
.prose h2 {
  margin-top: 44px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e3e7ec;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--ink);
}
.prose h3 { margin: 28px 0 0; font-size: 1.02rem; color: var(--ink); }
.prose p,
.prose li { font-size: 0.97rem; line-height: 1.75; }
.prose p { margin-top: 14px; }
.prose ul { margin-top: 12px; padding-left: 22px; list-style: disc; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--accent-dark); }
.prose a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose strong { color: var(--ink); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .what-we-do__grid { grid-template-columns: 1fr; }
  .solution-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .step:nth-child(3)::after { display: none; }
  .agencies { padding-left: var(--gutter); }
  .site-footer__nav { margin-left: 0; }
}

@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 20px;
    margin: 12px var(--gutter) 0;
    padding: 20px;
    border-radius: var(--radius);
    background: rgba(11, 17, 23, 0.97);
    border: 1px solid var(--line-dark);
    backdrop-filter: blur(10px);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav__list { flex-direction: column; gap: 4px; margin: 0; }
  .site-nav__link { padding: 10px 0; font-size: 1rem; }
  .site-nav__link::after { right: auto; width: 28px; }

  .hero { align-items: flex-end; min-height: 760px; }
  .hero__media { width: 100%; }
  .hero__media img { object-position: 22% center; }
  .hero__media::before {
    background: linear-gradient(180deg, rgba(6, 8, 12, 0.6) 0%, rgba(6, 8, 12, 0.2) 25%, rgba(6, 8, 12, 0.85) 58%, #06080c 100%);
  }
  .hero__scribble { top: 130px; bottom: auto; }

  .services { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
}

@media (max-width: 640px) {
  .section-head { flex-direction: column; align-items: flex-start; }
  .solution-grid { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .how-it-works__scribble { position: static; margin: 20px 0 0 auto; width: max-content; }
  .hero__title { font-size: clamp(1.9rem, 9vw, 2.3rem); }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__scribble { display: none; }
  .agencies__scribble { position: static; margin: 0 0 40px var(--gutter); }
  .agencies { flex-direction: column; align-items: flex-start; }
  .site-footer__brand { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 420px) {
  .solution-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Custom development page ---------- */
.case-hero { position: relative; display: flex; align-items: flex-end; min-height: 620px; background: var(--ink); }
.case-hero__media { position: absolute; inset: 0; }
.case-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.case-hero__media::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11, 17, 23, 0.92) 0%, rgba(11, 17, 23, 0.78) 42%, rgba(11, 17, 23, 0.18) 100%);
}
.case-hero__inner { position: relative; z-index: 2; padding-top: 150px; padding-bottom: 64px; }
.case-hero__content { max-width: 620px; color: #fff; }
.case-hero__content .display { color: #fff; margin-bottom: 18px; }
.case-hero__lead { color: #d7dce2; font-size: 1.02rem; max-width: 520px; }
.case-hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }

.case-list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(28px, 4vw, 48px); }
.case {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 44px);
  align-items: center; padding-bottom: clamp(28px, 4vw, 48px); border-bottom: 1px solid rgba(11, 17, 23, 0.1);
}
.case:last-child { border-bottom: 0; padding-bottom: 0; }
.case:nth-child(even) .case__media { order: 2; }
.case__media { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--paper-2); }
.case__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transition: transform 0.5s; }
.case:hover .case__media img { transform: scale(1.04); }
.case__head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.case__logo { flex: none; width: 56px; height: 56px; object-fit: contain; border-radius: 12px; }
.case__index { font-family: var(--font-display); font-weight: 900; font-size: 0.9rem; color: var(--accent-dark); letter-spacing: 0.16em; margin: 0 0 8px; }
.case__title { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 800; line-height: 1.2; color: var(--ink); margin: 0; }
.case__detail { margin: 0; display: grid; gap: 6px; }
.case__detail dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.case__detail dd { margin: 0 0 12px; font-size: 0.95rem; line-height: 1.55; color: var(--text); }
.case__detail dd:last-child { margin-bottom: 0; }

.case-cta__inner { text-align: center; max-width: 640px; margin-inline: auto; }
.case-cta__inner p { color: var(--muted-light); margin: 16px 0 28px; }

@media (max-width: 860px) {
  .case-hero { min-height: 520px; }
  .case-hero__media::before { background: linear-gradient(180deg, rgba(11, 17, 23, 0.62) 0%, rgba(11, 17, 23, 0.9) 78%); }
  .case-hero__inner { padding-top: 120px; }
  .case { grid-template-columns: 1fr; }
  .case:nth-child(even) .case__media { order: 0; }
}
@media (max-width: 560px) {
  .case-hero__actions .btn { flex: 1 1 100%; }
}

/* ---------- Agency brief form ---------- */
.page-hero__lead { margin-top: 16px; max-width: 52ch; color: #d7dce2; }
.brief__wrap { max-width: calc(820px + var(--gutter) * 2); }
.brief-form { display: grid; gap: 26px; }
.brief-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.field { display: grid; align-content: start; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-size: 0.85rem; font-weight: 600; color: var(--ink); padding: 0; }
.req { color: #c2412d; }
.hint { font-size: 0.78rem; color: var(--muted); margin: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="date"],
.field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-size: 0.95rem; color: var(--text);
  background: #fff; border: 1.5px solid #cfd6de; border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent-dark); box-shadow: 0 0 0 3px rgba(18, 122, 134, 0.18);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #c2412d; }
.phone { display: grid; grid-template-columns: 96px 1fr; gap: 10px; }
.needs__options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.needs .need {
  display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 0 18px;
  background: #fff; border: 1.5px solid #cfd6de; border-radius: 10px;
  cursor: pointer; transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.needs .need:hover { border-color: var(--accent-dark); }
.needs .need__icon { width: 22px; height: 22px; flex: none; color: var(--accent-dark); }
.needs .need__label { flex: 1; font-size: 0.93rem; font-weight: 500; color: var(--ink); }
.needs .need input { width: 20px; height: 20px; flex: none; accent-color: var(--accent-dark); cursor: pointer; }
.needs .need:has(input:checked) { border-color: var(--accent-dark); background: rgba(52, 232, 198, 0.1); }
.needs .need:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(18, 122, 134, 0.25); }
.check { display: flex; align-items: center; gap: 10px; font-size: 0.93rem; font-weight: 500; color: var(--text); cursor: pointer; }
.check input { width: 18px; height: 18px; flex: none; accent-color: var(--accent-dark); }
.check--consent { align-items: flex-start; font-size: 0.88rem; }
.check--consent input { margin-top: 2px; }
.needs.is-invalid .needs__options { outline: 1.5px solid #c2412d; outline-offset: 6px; border-radius: 6px; }
.error { margin: 6px 0 0; font-size: 0.8rem; color: #c2412d; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-size: 0.9rem; color: #c2412d; }
.btn--submit { justify-self: start; background: var(--ink); color: #fff; letter-spacing: 0.06em; }
.btn--submit:hover { background: var(--accent-dark); }
.btn--submit[disabled] { opacity: 0.6; cursor: progress; }
.brief-done { text-align: center; padding-block: 24px; }
.brief-done p { margin: 14px 0 28px; color: var(--muted); }

@media (max-width: 640px) {
  .brief-form__grid, .needs__options { grid-template-columns: 1fr; }
  .btn--submit { justify-self: stretch; }
}

/* ---------- About page ---------- */
.about__body { max-width: calc(760px + var(--gutter) * 2); }
.about__body p { margin: 0 0 22px; font-size: 1.02rem; line-height: 1.8; color: #2a323c; }
.about__body .about__lead { font-size: 1.3rem; line-height: 1.55; font-weight: 500; color: var(--ink); }
.about__body .about__tagline {
  margin: 40px 0 0; padding-top: 28px; border-top: 2px solid var(--accent);
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.15; color: var(--ink);
}

/* ---------- Telegram chat button ---------- */
.chat-fab {
  position: fixed; right: 32px; bottom: 32px; z-index: 50;
  display: flex; align-items: center; gap: 0;
  height: 56px; border-radius: 999px;
  background: #229ed9; color: #fff;
  box-shadow: 0 8px 24px rgba(11, 17, 23, 0.35);
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.chat-fab:hover, .chat-fab:focus-visible { background: #1b8cc2; transform: translateY(-2px); }
.chat-fab__icon { display: grid; place-items: center; width: 56px; height: 56px; flex: none; }
.chat-fab__icon .icon { width: 24px; height: 24px; stroke-width: 2; }
.chat-fab__label {
  max-width: 0; overflow: hidden; white-space: nowrap;
  font-size: 0.88rem; font-weight: 600;
  transition: max-width 0.3s ease, padding-left 0.3s ease;
}
.chat-fab:hover .chat-fab__label, .chat-fab:focus-visible .chat-fab__label { max-width: 220px; padding-left: 20px; }
@media (max-width: 560px) { .chat-fab { right: 20px; bottom: 20px; } }
@media (prefers-reduced-motion: reduce) { .chat-fab, .chat-fab__label { transition: none; } }
