/* =============================================
   RUZ TRUCKS — PREMIUM ONE-PAGE SITE
   ============================================= */

/* ---------- RESET & TOKENS ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:        #C8192A;
  --red-dark:   #a81422;
  --red-glow:   rgba(200,25,42,.35);

  --gold:       #C9A961;

  --bg:         #0c0c0c;
  --bg2:        #131313;
  --bg3:        #1a1a1a;
  --bg-card:    #161616;

  --line:       rgba(255,255,255,.07);
  --line-strong: rgba(255,255,255,.14);

  --text:       #ededed;
  --muted:      rgba(237,237,237,.5);
  --muted-2:    rgba(237,237,237,.32);

  --white:      #fff;

  --font:       'Inter', 'Segoe UI', sans-serif;
  --font-head:  'Manrope', 'Inter', sans-serif;

  --ease:       cubic-bezier(.22,.61,.36,1);
  --ease-out:   cubic-bezier(.4,0,.2,1);

  --nav-h:      78px;

  --r-sm:       3px;
  --r:          5px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--red); color: var(--white); }

/* ---------- CONTAINER ---------- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 36px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  transition: background .25s var(--ease-out), color .25s var(--ease-out),
              box-shadow .25s var(--ease-out), transform .18s var(--ease-out),
              border-color .25s var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
}
.btn svg { transition: transform .25s var(--ease-out); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

.btn--red {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 0 0 0 var(--red-glow);
}
.btn--red:hover {
  background: var(--red-dark);
  box-shadow: 0 12px 36px var(--red-glow);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.22);
}
.btn--ghost:hover {
  border-color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.04);
}

.btn--full { width: 100%; }

/* ---------- LOGO (SVG) ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--white);
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out);
}
.logo:hover { transform: translateY(-1px); }
.logo__svg {
  height: 32px;
  width: auto;
  display: block;
}
.logo__svg text { dominant-baseline: alphabetic; }

/* ---------- SECTION COMMON ---------- */
.section { padding: 128px 0; position: relative; }

.section-head {
  margin-bottom: 72px;
  max-width: 760px;
}
.section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.05;
  margin-top: 18px;
}
.section-lead {
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 22px;
  max-width: 560px;
  line-height: 1.7;
}
.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  max-width: none;
}
.section-lead--right {
  text-align: right;
  max-width: 380px;
  margin: 0;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  padding: 6px 13px;
  border: 1px solid rgba(200,25,42,.4);
  border-radius: 2px;
  background: rgba(200,25,42,.04);
}

/* ---------- REVEAL ANIMATION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* =============================================
   NAV
   ============================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease-out), border-color .35s var(--ease-out),
              backdrop-filter .35s var(--ease-out);
}
/* Soft gradient backdrop so the logo stays readable over hero imagery */
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom,
    rgba(8,8,8,.78) 0%,
    rgba(8,8,8,.55) 55%,
    rgba(8,8,8,0) 100%
  );
  pointer-events: none;
  transition: opacity .35s var(--ease-out);
}
.nav.scrolled {
  background: rgba(12,12,12,.85);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-color: var(--line);
}
.nav.scrolled::before { opacity: 0; }

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 38px;
  margin-left: auto;
}
.nav__links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  color: rgba(255,255,255,.65);
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}
.nav__links a:not(.nav__cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .35s var(--ease-out);
}
.nav__links a:hover { color: var(--white); }
.nav__links a:not(.nav__cta):hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.nav__links .nav__cta {
  color: var(--white);
  background: var(--red);
  padding: 11px 22px;
  border-radius: var(--r-sm);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  transition: background .2s, box-shadow .2s, transform .2s;
}
.nav__links .nav__cta::after { display: none; }
.nav__links .nav__cta:hover {
  background: var(--red-dark);
  box-shadow: 0 6px 22px var(--red-glow);
  transform: translateY(-1px);
}

.nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: .02em;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  transition: border-color .2s, color .2s, background .2s;
}
.nav__phone:hover {
  border-color: var(--red);
  color: var(--white);
  background: rgba(200,25,42,.08);
}

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
}
.nav__burger span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .25s;
}
.nav__burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile nav */
.nav__mobile {
  display: none;
  flex-direction: column;
  background: rgba(12,12,12,.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
  padding: 12px 0 24px;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  padding: 16px 36px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  border-bottom: 1px solid var(--line);
  transition: color .2s, padding-left .2s, background .2s;
  letter-spacing: .01em;
}
.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile a:hover {
  color: var(--white);
  padding-left: 44px;
  background: rgba(255,255,255,.02);
}
.nav__mobile .m-link--phone {
  color: var(--white);
  font-weight: 700;
  letter-spacing: .02em;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
  padding-bottom: 48px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.02);
  transition: transform 12s linear, opacity 1.2s var(--ease);
  opacity: 0;
}
.hero__bg img.loaded {
  transform: scale(1.08);
  opacity: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(110deg, rgba(8,8,8,.92) 0%, rgba(8,8,8,.6) 55%, rgba(8,8,8,.25) 100%),
    linear-gradient(to top, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 40%);
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.hero__content {
  position: relative;
  z-index: 3;
  padding-top: var(--nav-h);
  width: 100%;
  max-width: 100%;
}

.hero__row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp .8s .15s var(--ease) forwards;
}
.hero__pin {
  width: 28px;
  height: 1px;
  background: var(--red);
}
.hero__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(36px, 5.8vw, 76px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.035em;
  color: var(--white);
  margin-bottom: 24px;
  max-width: 880px;
  opacity: 0;
  animation: fadeUp .9s .3s var(--ease) forwards;
}
.hero__title span {
  background: linear-gradient(95deg, var(--red) 0%, #ee3548 60%, var(--red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 400;
  color: rgba(237,237,237,.7);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.65;
  opacity: 0;
  animation: fadeUp .9s .45s var(--ease) forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
  opacity: 0;
  animation: fadeUp .9s .6s var(--ease) forwards;
}

.hero__meta {
  display: flex;
  gap: 48px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  max-width: 580px;
  opacity: 0;
  animation: fadeUp .9s .75s var(--ease) forwards;
}
.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero__meta-num {
  font-family: var(--font-head);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.03em;
  line-height: 1;
}
.hero__meta-num i {
  font-style: normal;
  color: var(--red);
}
.hero__meta-lbl {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 1px;
  height: 64px;
  background: rgba(255,255,255,.12);
  overflow: hidden;
}
.hero__scroll span {
  display: block;
  width: 100%;
  height: 50%;
  background: var(--white);
  animation: scrollLine 2.4s infinite var(--ease-out);
}
@keyframes scrollLine {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

@keyframes fadeUp {
  to { opacity: 1; transform: none; }
}

/* =============================================
   TICKER
   ============================================= */
.ticker {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg2);
  padding: 18px 0;
  position: relative;
}
.ticker::before, .ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.ticker::before { left: 0;  background: linear-gradient(90deg, var(--bg2), transparent); }
.ticker::after  { right: 0; background: linear-gradient(-90deg, var(--bg2), transparent); }

.ticker__track {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  animation: ticker 32s linear infinite;
  will-change: transform;
}
.ticker__track span:not(.ticker__dot) {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.42);
  flex-shrink: 0;
}
.ticker__dot {
  width: 5px;
  height: 5px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =============================================
   SERVICES
   ============================================= */
.services { background: var(--bg); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.svc-card {
  background: var(--bg-card);
  display: grid;
  grid-template-rows: 300px 1fr;
  transition: background .3s var(--ease-out);
  position: relative;
}
.svc-card:hover { background: var(--bg3); }

/* Wide variant — full-width row, image left + body right */
.svc-card--wide {
  grid-column: 1 / -1;
  grid-template-rows: 1fr;
  grid-template-columns: 1.15fr 1fr;
  min-height: 380px;
}
.svc-card--wide .svc-card__img {
  height: 100%;
}
.svc-card--wide .svc-card__img::after {
  background: linear-gradient(to right, rgba(0,0,0,0) 60%, rgba(0,0,0,.5));
}
.svc-card--wide .svc-card__body {
  border-top: none;
  border-left: 1px solid var(--line);
  justify-content: center;
  padding: 48px 56px;
}
.svc-card--wide .svc-card__num {
  bottom: auto;
  top: 24px;
  left: 24px;
}
.svc-card--wide h3 {
  font-size: 28px;
}

.svc-card__img {
  overflow: hidden;
  position: relative;
}
.svc-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .8s var(--ease-out);
}
.svc-card:hover .svc-card__img img { transform: scale(1.06); }
.svc-card__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,.5));
  pointer-events: none;
}

.svc-card__num {
  position: absolute;
  bottom: 24px;
  left: 32px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--white);
  z-index: 2;
  padding: 6px 12px;
  background: rgba(200,25,42,.92);
  border-radius: 2px;
}

.svc-card__body {
  padding: 36px 40px 40px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.svc-card__body h3 {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.svc-card__body p {
  font-size: 14.5px;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
}

.svc-card__body ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  margin-bottom: 12px;
}
.svc-card__body ul li {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  padding-left: 18px;
  position: relative;
}
.svc-card__body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 1px;
  background: var(--red);
}

.svc-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  transition: color .2s, gap .25s var(--ease-out);
  align-self: flex-start;
  width: 100%;
}
.svc-card__link span { color: var(--red); font-weight: 400; font-size: 18px; line-height: 1; }
.svc-card__link:hover { color: var(--red); gap: 14px; }

/* =============================================
   WORKS GALLERY
   ============================================= */
.works { background: var(--bg2); }

.works__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 340px 340px;
  gap: 2px;
  margin-top: 48px;
}
.works__item {
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.works__item--wide { grid-column: span 2; }
.works__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease-out), filter .4s var(--ease-out);
  filter: brightness(.85) saturate(.95);
}
.works__item:hover img {
  transform: scale(1.06);
  filter: brightness(1) saturate(1.05);
}
.works__item figcaption {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
  padding: 8px 14px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 2px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.works__item:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   WHY / ABOUT
   ============================================= */
.why { background: var(--bg); }

.why__layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 96px;
  align-items: start;
}

.why__left h2 {
  font-family: var(--font-head);
  font-size: clamp(30px, 3.8vw, 48px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin: 18px 0 24px;
}
.why__left > p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 420px;
}

.why__creds {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--line);
}
.why__creds > div {
  padding: 18px 0;
  border-right: 1px solid var(--line);
  padding-right: 16px;
}
.why__creds > div:last-child { border-right: none; padding-right: 0; }
.why__creds dt {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 6px;
}
.why__creds dd {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.01em;
}

/* Features */
.why__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.feature {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 4px;
  padding: 30px 28px;
  background: var(--bg-card);
  transition: background .25s var(--ease-out);
}
.feature:hover { background: var(--bg3); }

.feature__num {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--red);
  align-self: flex-start;
  padding-top: 4px;
  position: relative;
}
.feature__num::after {
  content: '';
  position: absolute;
  left: 0;
  top: -2px;
  width: 24px;
  height: 1px;
  background: var(--red);
}
.feature h4 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.005em;
  margin-bottom: 6px;
}
.feature p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
}

/* =============================================
   CONTACT
   ============================================= */
.contact { background: var(--bg2); }

.contact__layout {
  display: grid;
  grid-template-columns: .9fr 1.3fr;
  gap: 80px;
  align-items: start;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.contact__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .25s var(--ease-out);
}
.contact__item--link { cursor: pointer; }
.contact__item--link:hover {
  padding-left: 8px;
}
.contact__item--link:hover .contact__val { color: var(--red); }

.contact__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.contact__val {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.01em;
  line-height: 1.4;
  transition: color .2s;
}

/* Form */
.contact__form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 48px 44px;
  position: relative;
}
.contact__form::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 32px;
  height: 2px;
  background: var(--red);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.form-group:last-of-type { margin-bottom: 28px; }

.form-group label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--r-sm);
  padding: 14px 18px;
  font-size: 14.5px;
  font-family: var(--font);
  color: var(--white);
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.22); }
.form-group select { color: rgba(255,255,255,.55); }
.form-group select:valid:not(:placeholder-shown) { color: var(--white); }
.form-group select option { background: var(--bg3); color: var(--white); padding: 12px; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  background: rgba(200,25,42,.05);
  box-shadow: 0 0 0 3px rgba(200,25,42,.08);
}
.form-group textarea { resize: vertical; min-height: 110px; }

.select-wrap {
  position: relative;
}
.select-wrap__arrow {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.form-legal {
  font-size: 11px;
  color: rgba(255,255,255,.22);
  text-align: center;
  margin-top: 16px;
  line-height: 1.6;
  letter-spacing: .01em;
}

.form-success {
  display: none;
  margin-top: 18px;
  padding: 16px;
  background: rgba(34,197,94,.08);
  border: 1px solid rgba(34,197,94,.25);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  color: #4ade80;
  text-align: center;
}
.form-success.show { display: block; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
}
.footer__top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 48px;
  align-items: center;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.footer__about {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 420px;
}
.footer__nav {
  display: flex;
  gap: 28px;
}
.footer__nav a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  transition: color .2s;
}
.footer__nav a:hover { color: var(--white); }

.footer__legal {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.footer__legal p {
  font-size: 12px;
  color: var(--muted-2);
  line-height: 1.7;
  letter-spacing: .01em;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  font-size: 11px;
  color: rgba(255,255,255,.22);
  letter-spacing: .04em;
}

/* =============================================
   BACK TO TOP
   ============================================= */
.totop {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 100;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--muted);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out),
              color .2s, border-color .2s, background .2s;
}
.totop.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.totop:hover {
  color: var(--white);
  border-color: var(--red);
  background: var(--red);
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* >= 1280px ultra-wide */
@media (min-width: 1280px) {
  .container { padding: 0 48px; }
}

/* 1100px */
@media (max-width: 1100px) {
  .nav__phone { display: none; }
  .nav__links { gap: 30px; }
  .container { padding: 0 28px; }
  .why__layout { gap: 60px; }
  .contact__layout { gap: 56px; }
}

/* 960px */
@media (max-width: 960px) {
  .section { padding: 96px 0; }
  .section-head { margin-bottom: 56px; }

  .hero__meta { gap: 36px; }

  .services__grid { grid-template-columns: 1fr; }
  .svc-card--wide {
    grid-template-columns: 1fr;
    grid-template-rows: 280px 1fr;
    min-height: 0;
  }
  .svc-card--wide .svc-card__body {
    border-left: none;
    border-top: 1px solid var(--line);
    padding: 36px 40px 40px;
  }
  .svc-card--wide .svc-card__num {
    top: auto;
    bottom: 24px;
    left: 32px;
  }
  .svc-card--wide .svc-card__img::after {
    background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,.5));
  }

  .works__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 280px 280px 280px;
  }
  .works__item--wide { grid-column: span 2; }

  .why__layout {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .why__left > p { max-width: 100%; }
  .why__creds { grid-template-columns: repeat(3, 1fr); }

  .contact__layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: left;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: left;
  }
}

/* 768px — mobile */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .nav__inner { gap: 16px; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .section-head--row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .section-lead--right { text-align: left; }

  .hero { min-height: 100svh; }
  .hero__title { letter-spacing: -.025em; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__meta {
    gap: 24px;
    flex-wrap: wrap;
    padding-top: 22px;
  }
  .hero__meta-item { flex: 1 1 calc(33% - 16px); min-width: 90px; }

  .svc-card { grid-template-rows: 240px 1fr; }
  .svc-card__body { padding: 28px 28px 32px; }
  .svc-card--wide .svc-card__body { padding: 28px 28px 32px; }
  .svc-card--wide h3 { font-size: 22px; }

  .works__grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 240px);
  }
  .works__item--wide { grid-column: span 1; }

  .why__features { grid-template-columns: 1fr; }
  .why__creds { grid-template-columns: 1fr; }
  .why__creds > div { border-right: none; padding-right: 0; }

  .contact__form { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  .footer { padding: 48px 0 24px; }
}

/* 480px */
@media (max-width: 480px) {
  .container { padding: 0 18px; }

  .btn { padding: 14px 24px; font-size: 12px; }
  .btn--full { padding: 16px 24px; }

  .hero__label { font-size: 10px; }
  .hero__sub { margin-bottom: 36px; }
  .hero__actions { margin-bottom: 56px; }
  .hero__meta-num { font-size: 24px; }
  .hero__meta-lbl { font-size: 10px; }

  .section-head h2 { font-size: 30px; }

  .svc-card__body { padding: 24px 20px 28px; }
  .svc-card__body h3 { font-size: 20px; }

  .feature { padding: 24px 20px; grid-template-columns: 44px 1fr; }

  .contact__form { padding: 28px 20px; }

  .totop { bottom: 20px; right: 20px; width: 42px; height: 42px; }
}

/* PRINT (just in case) */
@media print {
  .nav, .totop, .hero__scroll, .ticker { display: none !important; }
  body { background: white; color: black; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
