/*
Theme Name: TrafPaint
Theme URI: https://trafpaint.ru/
Author: A-RIAL RPK
Description: B2B theme for TrafPaint stencil painting and object graphics.
Version: 1.0.0
Text Domain: trafpaint
*/

:root {
  --tp-orange: #ff6a00;
  --tp-orange-dark: #df5700;
  --tp-orange-text: #bf4b00;
  --tp-orange-action: #bf4b00;
  --tp-graphite: #151b1f;
  --tp-ink: #22272b;
  --tp-muted: #677078;
  --tp-line: #dce1e4;
  --tp-soft: #f4f5f5;
  --tp-concrete: #e6e2dc;
  --tp-white: #ffffff;
  --tp-max: 1180px;
  --tp-radius: 8px;
  --tp-shadow: 0 18px 50px rgba(21, 27, 31, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--tp-ink);
  background: var(--tp-white);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 18px; color: var(--tp-muted); }
h1, h2, h3, h4 { margin: 0; color: var(--tp-graphite); line-height: 1.08; letter-spacing: 0; }
h1 { font-size: clamp(38px, 5vw, 72px); }
h2 { font-size: clamp(30px, 3.4vw, 48px); }
h3 { font-size: 22px; }
ul { margin: 0; padding: 0; }
li { list-style: none; }
button, input, textarea, select { font: inherit; }

.container { width: min(var(--tp-max), calc(100% - 40px)); margin: 0 auto; }
.section { padding: 86px 0; }
.section--soft { background: var(--tp-soft); }
.section--dark { background: var(--tp-graphite); color: var(--tp-white); }
.section--dark h2, .section--dark h3 { color: var(--tp-white); }
.section--dark p, .section--dark .muted { color: rgba(255,255,255,.72); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--tp-orange-text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 36px;
  height: 3px;
  background: var(--tp-orange);
}
.lead { max-width: 760px; margin-top: 18px; font-size: 19px; color: var(--tp-muted); }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .6fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 34px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(21,27,31,.08);
  backdrop-filter: blur(14px);
}
.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; min-width: 178px; }
.brand img { width: 174px; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a, .nav-toggle {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--tp-ink);
  font-size: 15px;
  font-weight: 700;
  position: relative;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: var(--tp-orange);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .16s ease, transform .16s ease;
}
.main-nav a:hover,
.main-nav a:focus-visible {
  background: var(--tp-soft);
  color: var(--tp-graphite);
  outline: none;
}
.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a.is-section-active::after {
  opacity: 1;
  transform: translateY(0);
}
.main-nav a.is-section-active {
  background: #f4f5f5;
  color: var(--tp-graphite);
}
.main-nav a.is-current {
  background: var(--tp-graphite);
  color: #fff;
  box-shadow: inset 0 -3px 0 var(--tp-orange);
}
.main-nav a.is-current::after { opacity: 0; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.phone-link { font-weight: 850; color: var(--tp-graphite); white-space: nowrap; }
.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--tp-line);
  border-radius: 6px;
  background: var(--tp-white);
  color: var(--tp-graphite);
}
.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--tp-orange);
  color: var(--tp-white);
  font-weight: 850;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.btn:hover { transform: translateY(-1px); background: #a64000; }
.btn--light { background: var(--tp-white); color: var(--tp-graphite); border-color: var(--tp-white); }
.btn--outline { background: transparent; color: var(--tp-graphite); border-color: var(--tp-line); }
.btn--outline:hover { background: var(--tp-soft); color: var(--tp-graphite); border-color: var(--tp-line); }
.section--dark .btn--outline { color: var(--tp-white); border-color: rgba(255,255,255,.28); }
.section--dark .btn--outline:hover { background: rgba(255,255,255,.08); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero {
  padding: 72px 0 54px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,255,255,.86)),
    linear-gradient(135deg, #f0efed 0%, #fff 45%, #e8e3dd 100%);
  overflow: hidden;
}
.hero--scene {
  position: relative;
  min-height: clamp(620px, calc(100vh - 92px), 720px);
  display: flex;
  align-items: center;
  padding: 76px 0 46px;
  background:
    linear-gradient(90deg, rgba(244,245,245,.96) 0%, rgba(244,245,245,.9) 34%, rgba(21,27,31,.2) 61%, rgba(21,27,31,.68) 100%),
    linear-gradient(180deg, rgba(21,27,31,.12), rgba(21,27,31,.34)),
    url("assets/img/generated/hero/trafpaint-hero-scene.webp") center center / cover no-repeat;
}
.hero--scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255,106,0,.16), transparent 32%),
    radial-gradient(circle at 82% 20%, rgba(255,255,255,.28), transparent 24%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .86fr);
  gap: 52px;
  align-items: center;
}
.hero-grid--scene {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 820px) minmax(240px, .32fr);
  align-items: end;
}
.hero--scene .hero-copy {
  max-width: 820px;
  padding: clamp(24px, 3.2vw, 36px);
  border: 1px solid rgba(255,255,255,.62);
  border-left: 5px solid var(--tp-orange);
  border-radius: var(--tp-radius);
  background: rgba(255,255,255,.88);
  box-shadow: 0 24px 70px rgba(21,27,31,.2);
  backdrop-filter: blur(10px);
}
.hero--scene h1 {
  max-width: 760px;
  font-size: clamp(40px, 4.1vw, 60px);
}
.hero-copy p { max-width: 760px; font-size: 20px; color: var(--tp-muted); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 28px; }
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(21,27,31,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.8);
  font-size: 14px;
  font-weight: 750;
  color: var(--tp-ink);
}
.hero--scene .badge {
  border-color: rgba(21,27,31,.16);
  background: rgba(255,255,255,.9);
  box-shadow: 0 8px 22px rgba(21,27,31,.08);
}
.hero-proof {
  justify-self: end;
  width: min(100%, 300px);
  padding: 20px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--tp-radius);
  background: rgba(21,27,31,.78);
  color: var(--tp-white);
  box-shadow: 0 20px 60px rgba(0,0,0,.24);
  backdrop-filter: blur(10px);
}
.hero-proof img {
  width: 132px;
  margin-bottom: 20px;
}
.hero-proof strong,
.hero-proof span {
  display: block;
}
.hero-proof strong {
  margin-bottom: 8px;
  color: var(--tp-white);
  font-size: 21px;
  line-height: 1.16;
}
.hero-proof span {
  color: rgba(255,255,255,.7);
  font-size: 14px;
}
.hero-visual {
  position: relative;
  min-height: 520px;
}
.visual-card {
  position: absolute;
  overflow: hidden;
  border-radius: var(--tp-radius);
  background: var(--tp-white);
  box-shadow: var(--tp-shadow);
}
.visual-card img { width: 100%; height: 100%; object-fit: cover; }
.visual-card--main { inset: 0 7% 90px 0; }
.visual-card--small { right: 0; bottom: 0; width: 48%; height: 230px; border: 8px solid var(--tp-white); }
.hero-mark {
  position: absolute;
  left: -20px;
  bottom: 26px;
  width: 220px;
  padding: 18px;
  border-radius: var(--tp-radius);
  background: var(--tp-graphite);
  color: var(--tp-white);
  box-shadow: var(--tp-shadow);
}
.hero-mark img { width: 120px; margin-bottom: 10px; }
.hero-mark span { display: block; color: rgba(255,255,255,.72); font-size: 14px; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--tp-line);
  border-bottom: 1px solid var(--tp-line);
  background: var(--tp-white);
}
.stat {
  padding: 22px 24px;
  border-right: 1px solid var(--tp-line);
}
.stat:last-child { border-right: 0; }
.stat strong { display: block; color: var(--tp-graphite); font-size: 20px; line-height: 1.1; }
.stat span { display: block; margin-top: 8px; color: var(--tp-muted); font-size: 14px; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  min-height: 100%;
  padding: 26px;
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-radius);
  background: var(--tp-white);
}
.card h3 { margin-bottom: 12px; }
.card p { margin-bottom: 18px; }
.card-link { color: var(--tp-orange-text); font-weight: 850; }
.card-marker {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 6px;
  background: var(--tp-graphite);
  color: var(--tp-orange);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 46px;
  align-items: center;
}
.media-panel {
  overflow: hidden;
  border-radius: var(--tp-radius);
  background: #cfc8be;
  box-shadow: var(--tp-shadow);
}
.media-panel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.check-list { display: grid; gap: 12px; margin-top: 24px; }
.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--tp-ink);
  font-weight: 650;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .58em;
  width: 11px;
  height: 11px;
  border-radius: 2px;
  background: var(--tp-orange);
}

.process {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.16);
}
.process-step {
  counter-increment: step;
  min-height: 208px;
  padding: 26px;
  background: rgba(255,255,255,.05);
}
.process-step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 42px;
  color: var(--tp-orange);
  font-weight: 900;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.case-card {
  overflow: hidden;
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-radius);
  background: var(--tp-white);
}
.case-card img { width: 100%; aspect-ratio: 1.25 / 1; object-fit: cover; background: var(--tp-soft); }
.case-card__body { padding: 20px; }
.case-card__body p { margin: 10px 0 0; font-size: 14px; }
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-bottom: 10px;
  padding: 0 8px;
  border-radius: 4px;
  background: rgba(255,106,0,.1);
  color: var(--tp-orange-text);
  font-size: 12px;
  font-weight: 850;
}

.form-band {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(360px, 1fr);
  gap: 42px;
  align-items: start;
}
.form-band > * {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}
.request-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 26px;
  border-radius: var(--tp-radius);
  background: var(--tp-white);
  box-shadow: var(--tp-shadow);
}
.request-form--modal {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0;
  box-shadow: none;
  background: transparent;
}
.request-form label { display: grid; gap: 6px; color: var(--tp-graphite); font-size: 14px; font-weight: 800; }
.request-form input, .request-form textarea, .request-form select {
  width: 100%;
  border: 1px solid var(--tp-line);
  border-radius: 6px;
  padding: 12px 13px;
  background: var(--tp-white);
  color: var(--tp-ink);
}
.request-form textarea { min-height: 96px; resize: vertical; }
.request-form--modal input,
.request-form--modal textarea,
.request-form--modal select { padding: 10px 11px; }
.request-form--modal textarea { min-height: 66px; }
.request-form .full { grid-column: 1 / -1; }
.request-form.is-sending { opacity: .78; pointer-events: none; }
.form-note { color: var(--tp-muted); font-size: 13px; }
.request-form--modal .form-note { display: none; }
.form-status {
  grid-column: 1 / -1;
  display: none;
  padding: 12px 14px;
  border-radius: 6px;
  background: rgba(255,106,0,.12);
  color: var(--tp-graphite);
  font-weight: 800;
}
.form-status:not(:empty) { display: block; }
.form-status.is-success { background: rgba(50,143,97,.13); color: #1d6f46; }
.form-status.is-error { background: rgba(203,58,41,.12); color: #993629; }
.consent {
  grid-template-columns: 22px minmax(0, 1fr) !important;
  align-items: start;
  gap: 10px !important;
  font-weight: 500 !important;
  line-height: 1.45;
}
.consent input { width: 18px; height: 18px; margin-top: 2px; }
.consent a { color: var(--tp-orange-dark); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.tp-captcha {
  display: flex;
  min-height: 0;
}
.tp-captcha.is-visible-test {
  min-height: 102px;
  align-items: center;
}
.request-form--modal .tp-captcha.is-visible-test {
  justify-content: center;
}
.tp-captcha.is-invisible {
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.tp-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.tp-modal.is-open { display: flex; }
.tp-modal__overlay {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 20, 23, .66);
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.tp-modal__dialog {
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  width: min(600px, 100%);
  max-height: min(92vh, 760px);
  overflow: auto;
  padding: 24px;
  border-radius: var(--tp-radius);
  background: var(--tp-white);
  box-shadow: 0 28px 90px rgba(0,0,0,.35);
}
.tp-modal__head {
  margin-bottom: 14px;
  padding-right: 42px;
}
.tp-modal__head h2 {
  margin: 5px 0 6px;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1;
}
.tp-modal__head p {
  margin: 0;
  font-size: 15px;
  color: var(--tp-muted);
  max-width: 500px;
}
.tp-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--tp-line);
  border-radius: 50%;
  background: var(--tp-white);
  cursor: pointer;
}
.tp-modal__close::before,
.tp-modal__close::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 17px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--tp-graphite);
}
.tp-modal__close::before { transform: rotate(45deg); }
.tp-modal__close::after { transform: rotate(-45deg); }
body.has-tp-modal { overflow: hidden; }

.page-hero {
  padding: 58px 0;
  background: var(--tp-soft);
  border-bottom: 1px solid var(--tp-line);
}
.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(380px, .9fr);
  gap: 42px;
  align-items: center;
}
.page-hero__media {
  overflow: hidden;
  border-radius: var(--tp-radius);
  background: #d8d3cc;
  box-shadow: var(--tp-shadow);
}
.page-hero__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.service-hero-gallery {
  padding: 22px 0 26px;
  background: #fbfaf7;
  border-bottom: 1px solid var(--tp-line);
}
.service-hero-gallery__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}
.service-hero-gallery__head p {
  max-width: 560px;
  margin: 0;
  color: var(--tp-muted);
  font-size: 14px;
  line-height: 1.45;
}
.service-hero-gallery__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 22%);
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  padding: 2px 0 12px;
  scrollbar-color: #c9c1b5 transparent;
}
.service-hero-gallery__item {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid var(--tp-line);
  border-radius: 8px;
  background: var(--tp-white);
  box-shadow: 0 10px 24px rgba(21,27,31,.06);
}
.service-hero-gallery__item img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #d8d3cc;
}
.service-hero-gallery__item figcaption {
  min-height: 52px;
  padding: 10px 12px 12px;
  color: var(--tp-graphite);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.3;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  color: var(--tp-muted);
  font-size: 14px;
}
.breadcrumbs a { color: var(--tp-orange-dark); font-weight: 750; }
.breadcrumbs [aria-current="page"] { color: var(--tp-muted); }
.breadcrumbs__sep { color: #a0a7ac; }
.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 42px;
  align-items: start;
}
.service-layout > main,
.service-layout > aside,
.content-block,
.split > *,
.two-col > *,
.visual-step,
.scenario-card,
.card,
.media-panel {
  min-width: 0;
}
.service-aside {
  position: sticky;
  top: 100px;
  padding: 22px;
  border-radius: var(--tp-radius);
  background: var(--tp-graphite);
  color: var(--tp-white);
}
.service-aside h3 { color: var(--tp-white); margin-bottom: 14px; }
.service-aside a { display: block; padding: 10px 0; color: rgba(255,255,255,.76); border-bottom: 1px solid rgba(255,255,255,.12); }
.service-aside a:hover { color: var(--tp-white); }
.service-aside a[aria-current="page"] { color: var(--tp-white); font-weight: 850; }
.content-block { margin-bottom: 48px; }
.content-block h2 { margin-bottom: 18px; }
.content-block--editorial {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-radius);
  background: linear-gradient(135deg, #fff, #f7f5ef);
}
.content-block--editorial p { max-width: 860px; font-size: 17px; }
.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.two-col--three {
  grid-template-columns: repeat(3, 1fr);
}
.two-col--lowfreq {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.fact-list {
  display: grid;
  gap: 10px;
}
.fact-list li {
  padding: 14px 16px;
  border: 1px solid var(--tp-line);
  border-radius: 6px;
  background: var(--tp-white);
  color: var(--tp-ink);
}
.faq-list { display: grid; gap: 12px; }
.faq-item { padding: 20px; border: 1px solid var(--tp-line); border-radius: var(--tp-radius); background: var(--tp-white); }
.faq-item strong { display: block; margin-bottom: 8px; color: var(--tp-graphite); }

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.scenario-grid--six {
  grid-template-columns: repeat(3, 1fr);
}
.scenario-grid--related {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.scenario-grid--related .scenario-card:nth-child(odd):last-child {
  grid-column: 1 / -1;
}
.scenario-card {
  min-height: 148px;
  padding: 22px;
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-radius);
  background: var(--tp-white);
}
a.scenario-card {
  display: block;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
a.scenario-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,106,0,.42);
  box-shadow: 0 18px 36px rgba(21,27,31,.1);
}
.scenario-card strong {
  display: block;
  margin-bottom: 12px;
  color: var(--tp-graphite);
  font-size: 20px;
  line-height: 1.15;
}
.scenario-card span {
  display: block;
  color: var(--tp-muted);
}
.process-list {
  display: grid;
  gap: 12px;
}
.process-list div {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-radius);
  background: var(--tp-white);
}
.process-list strong {
  color: var(--tp-orange-dark);
  font-weight: 900;
}
.process-list span {
  color: var(--tp-ink);
}
.inline-cta,
.mid-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-top: 28px;
  padding: 26px;
  border-radius: var(--tp-radius);
  background: var(--tp-graphite);
  color: var(--tp-white);
}
.inline-cta h3,
.mid-cta h2 { color: var(--tp-white); }
.inline-cta p,
.mid-cta p { color: rgba(255,255,255,.72); margin-bottom: 0; }
.mid-cta { margin-top: 0; margin-bottom: 48px; }
.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 36px;
}
.proof-strip span {
  min-height: 76px;
  padding: 18px;
  border-left: 4px solid var(--tp-orange);
  border-radius: var(--tp-radius);
  background: #fbfaf7;
  color: var(--tp-graphite);
  font-weight: 850;
}
.surface-block {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: start;
  padding: 30px;
  border-radius: var(--tp-radius);
  background: var(--tp-soft);
}
.surface-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.surface-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--tp-line);
  border-radius: 999px;
  background: var(--tp-white);
  color: var(--tp-ink);
  font-weight: 750;
}
.visual-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.visual-steps--compact { margin-top: 28px; }
.visual-steps--process { grid-template-columns: repeat(2, 1fr); }
.visual-steps--gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.visual-steps--dark { grid-template-columns: repeat(4, 1fr); }
.visual-steps--compact.visual-steps--dark { grid-template-columns: repeat(3, 1fr); }
.visual-step {
  overflow: hidden;
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-radius);
  background: var(--tp-white);
}
.visual-step img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.visual-step div { padding: 20px; }
.visual-step h3 { margin-bottom: 10px; }
.visual-step p { margin-bottom: 0; }
.visual-steps--dark .visual-step {
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
}
.visual-steps--dark .visual-step h3 { color: var(--tp-white); }
.visual-steps--dark .visual-step p { color: rgba(255,255,255,.7); }
.image-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.image-feature-grid article {
  overflow: hidden;
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-radius);
  background: var(--tp-white);
}
.image-feature-grid img {
  width: 100%;
  aspect-ratio: 1.2 / 1;
  object-fit: cover;
}
.image-feature-grid h3 {
  margin: 20px 20px 10px;
}
.image-feature-grid p {
  margin: 0 20px 22px;
}
.material-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.material-grid article {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-radius);
  background: var(--tp-white);
}
.material-grid h3 { margin-bottom: 12px; }
.contact-proof {
  margin-top: 24px;
  padding: 20px;
  border-left: 4px solid var(--tp-orange);
  border-radius: var(--tp-radius);
  background: var(--tp-white);
}
.contact-proof strong,
.contact-proof span { display: block; }
.contact-proof strong { margin-bottom: 8px; color: var(--tp-graphite); font-size: 18px; }
.contact-proof span { color: var(--tp-muted); }

.card--image { overflow: hidden; }
.card__image {
  width: calc(100% + 44px);
  max-width: none;
  height: 180px;
  margin: -22px -22px 18px;
  object-fit: cover;
}
.case-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-radius);
  background: var(--tp-white);
  box-shadow: var(--tp-shadow);
}
.case-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.case-card__body {
  display: grid;
  gap: 10px;
  padding: 20px;
}
.case-card__body strong {
  color: var(--tp-graphite);
  font-size: 21px;
  line-height: 1.15;
}
.case-card__body span:last-child { color: var(--tp-muted); }
.case-detail {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(360px, 1fr);
  gap: 38px;
  align-items: start;
}
.case-detail__text {
  display: grid;
  gap: 18px;
}
.case-detail__text h2 { margin-top: 10px; font-size: clamp(26px, 3vw, 36px); }
.case-detail__hero img {
  width: 100%;
  border-radius: var(--tp-radius);
  box-shadow: var(--tp-shadow);
}
.case-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.case-gallery a {
  display: block;
  overflow: hidden;
  border-radius: var(--tp-radius);
  background: #d8d8d8;
}
.case-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .22s ease;
}
.case-gallery a:hover img { transform: scale(1.035); }
.pswp__custom-caption {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  max-width: min(860px, calc(100vw - 32px));
  padding: 10px 14px;
  border-radius: 6px;
  background: rgba(21, 27, 31, .84);
  color: #fff;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
  z-index: 1;
}
.pswp__custom-caption[hidden] { display: none; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(360px, 1fr);
  gap: 32px;
}
.contact-panel { padding: 26px; border-radius: var(--tp-radius); background: var(--tp-soft); }
.contact-line { padding: 14px 0; border-bottom: 1px solid var(--tp-line); }
.contact-line:last-child { border-bottom: 0; }
.contact-line span { display: block; color: var(--tp-muted); font-size: 13px; }
.contact-line strong, .contact-line a { display: block; margin-top: 4px; color: var(--tp-graphite); font-size: 18px; font-weight: 850; }
.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.contact-card {
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-radius);
  background: var(--tp-white);
  box-shadow: 0 10px 28px rgba(21, 27, 31, .07);
}
.contact-card span { display: block; margin-bottom: 10px; color: var(--tp-muted); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.contact-card a,
.contact-card strong { color: var(--tp-graphite); font-size: 18px; font-weight: 850; }
.contact-location {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(360px, 1fr);
  gap: 34px;
  align-items: center;
}
.photo-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.photo-tiles img {
  width: 100%;
  min-height: 180px;
  border-radius: var(--tp-radius);
  object-fit: cover;
}
.photo-tiles img:first-child { grid-column: 1 / -1; max-height: 300px; }
.form-band--wide { grid-template-columns: minmax(0, .58fr) minmax(0, 1fr); }
.requisites p { color: rgba(255,255,255,.78); }

.section--trust { background: #fbfaf7; }
.trust-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.trust-strip span {
  display: grid;
  min-height: 86px;
  place-items: center;
  padding: 14px;
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-radius);
  background: var(--tp-white);
  color: var(--tp-graphite);
  font-weight: 900;
  text-align: center;
  filter: grayscale(1);
}

.legal-content { max-width: 860px; }
.legal-content h2 { margin: 34px 0 16px; font-size: 28px; }
.legal-content ul { display: grid; gap: 8px; margin: 0 0 18px; padding-left: 20px; }
.legal-content li { list-style: disc; color: var(--tp-muted); }

.site-footer {
  padding: 58px 0 28px;
  background: var(--tp-graphite);
  color: var(--tp-white);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 34px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.footer-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.footer-badges span {
  min-height: 76px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--tp-radius);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.78);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 30px;
}
.footer-logo { width: 178px; margin-bottom: 18px; }
.site-footer p { color: rgba(255,255,255,.66); }
.site-footer h3 { margin-bottom: 14px; color: var(--tp-white); font-size: 16px; }
.site-footer a { display: block; margin-bottom: 9px; color: rgba(255,255,255,.72); }
.site-footer a:hover { color: var(--tp-white); }
.footer-bottom {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
  color: rgba(255,255,255,.52);
  font-size: 13px;
}
.footer-bottom p { margin: 0; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.footer-legal a {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: rgba(255,255,255,.72);
}

.info-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.info-index__card {
  min-height: 160px;
  justify-content: space-between;
}
.info-index__card strong {
  color: var(--tp-graphite);
  font-size: 24px;
  line-height: 1.16;
}
.info-checklist {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 26px;
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-radius);
  background: var(--tp-white);
  box-shadow: 0 10px 28px rgba(21, 27, 31, .07);
}
.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 860px);
  gap: 34px;
  align-items: start;
  min-width: 0;
}
.legal-aside {
  box-sizing: border-box;
  position: sticky;
  top: 96px;
  width: 100%;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-radius);
  background: var(--tp-soft);
}
.legal-aside h2 {
  margin: 0 0 14px;
  font-size: 18px;
}
.legal-aside a {
  display: block;
  padding: 9px 0;
  border-top: 1px solid var(--tp-line);
  color: var(--tp-muted);
  font-size: 14px;
  font-weight: 750;
}
.legal-doc {
  box-sizing: border-box;
  max-width: none;
  width: 100%;
  min-width: 0;
  padding: 32px;
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-radius);
  background: var(--tp-white);
  box-shadow: 0 10px 28px rgba(21, 27, 31, .07);
}
.legal-doc p {
  color: var(--tp-muted);
  overflow-wrap: anywhere;
}
.legal-table-wrap {
  max-width: 100%;
  margin: 18px 0;
  overflow-x: auto;
}
.legal-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15px;
}
.legal-table td {
  padding: 12px 14px;
  border: 1px solid var(--tp-line);
  color: var(--tp-muted);
  vertical-align: top;
  overflow-wrap: anywhere;
}
.legal-table tr:first-child td {
  color: var(--tp-graphite);
  font-weight: 850;
  background: var(--tp-soft);
}

.cookie-notice {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: min(440px, calc(100% - 36px));
  padding: 18px;
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-radius);
  background: var(--tp-white);
  box-shadow: var(--tp-shadow);
}
.cookie-notice[hidden] { display: none; }
.cookie-notice p { margin-bottom: 12px; font-size: 14px; }

@media (max-width: 1080px) {
  .header-actions .btn { display: none; }
  .hero-grid, .split, .form-band, .contact-grid, .case-detail, .contact-location, .form-band--wide, .page-hero__grid, .surface-block { grid-template-columns: 1fr; }
  .service-hero-gallery__track { grid-auto-columns: minmax(240px, 31%); }
  .hero--scene {
    min-height: auto;
    background-position: 56% center;
  }
  .hero-grid--scene { gap: 22px; }
  .hero-proof { justify-self: start; }
  .hero-visual { min-height: 430px; }
  .cards-grid, .case-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .scenario-grid, .scenario-grid--six, .scenario-grid--related, .visual-steps, .visual-steps--dark, .visual-steps--compact.visual-steps--dark, .visual-steps--gallery, .image-feature-grid, .material-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col--three, .two-col--lowfreq { grid-template-columns: repeat(2, 1fr); }
  .service-layout { grid-template-columns: 1fr; }
  .service-aside { position: static; }
  .footer-top, .legal-layout { grid-template-columns: 1fr; }
  .footer-badges { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .info-index { grid-template-columns: repeat(2, 1fr); }
  .legal-aside { position: static; }
  .contact-cards, .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .case-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 18px;
    border-bottom: 1px solid var(--tp-line);
    background: var(--tp-white);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { min-height: 46px; padding: 0 6px; }
  .mobile-toggle { display: block; }
  .phone-link { display: none; }
  .section { padding: 64px 0; }
  .service-hero-gallery { padding: 18px 0 22px; }
  .service-hero-gallery__head {
    display: block;
    margin-bottom: 10px;
  }
  .service-hero-gallery__head p { margin-top: 6px; }
  .service-hero-gallery__track { grid-auto-columns: minmax(236px, 64%); }
  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .request-form,
  .request-form--modal { grid-template-columns: 1fr; }
  .request-form--modal {
    gap: 9px;
    font-size: 13px;
  }
  .request-form--modal input,
  .request-form--modal textarea,
  .request-form--modal select {
    padding: 9px 10px;
  }
  .request-form--modal textarea { min-height: 56px; }
  .two-col { grid-template-columns: 1fr; }
  .proof-strip { grid-template-columns: 1fr; }
  .inline-cta, .mid-cta { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .container { width: min(100% - 28px, var(--tp-max)); }
  .header-inner { min-height: 70px; }
  .brand img { width: 150px; }
  .main-nav { top: 70px; }
  .hero { padding: 48px 0 34px; }
  .hero--scene {
    padding: 40px 0 28px;
    background:
      linear-gradient(180deg, rgba(244,245,245,.96) 0%, rgba(244,245,245,.92) 55%, rgba(21,27,31,.32) 100%),
      url("assets/img/generated/hero/trafpaint-hero-scene.webp") 60% center / cover no-repeat;
  }
  .hero--scene::before {
    background: linear-gradient(140deg, rgba(255,106,0,.12), transparent 42%);
  }
  .hero--scene .hero-copy {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 22px;
    backdrop-filter: none;
  }
  .hero-copy p { font-size: 18px; }
  .page-hero h1 { overflow-wrap: anywhere; }
  .service-hero-gallery__track { grid-auto-columns: minmax(232px, 82%); }
  .service-hero-gallery__item figcaption {
    min-height: 50px;
    font-size: 12px;
  }
  .hero-badges { display: none; }
  .hero-proof {
    width: 100%;
    padding: 16px;
  }
  .hero-proof img { width: 112px; margin-bottom: 12px; }
  .hero-proof strong { font-size: 18px; }
  .hero-visual { min-height: 330px; }
  .visual-card--main { inset: 0 0 76px 0; }
  .visual-card--small { width: 54%; height: 150px; }
  .hero-mark { width: 185px; left: 10px; bottom: 12px; padding: 14px; }
  .hero-mark img { width: 100px; }
  .cards-grid, .case-grid, .process, .stats-row, .footer-grid, .footer-badges, .info-index, .scenario-grid, .scenario-grid--six, .scenario-grid--related, .visual-steps, .visual-steps--dark, .visual-steps--compact.visual-steps--dark, .visual-steps--gallery, .image-feature-grid, .material-grid, .two-col--three, .two-col--lowfreq { grid-template-columns: 1fr; }
  .contact-cards, .trust-strip, .case-gallery, .photo-tiles { grid-template-columns: 1fr; }
  .photo-tiles img:first-child { grid-column: auto; }
  .pswp__custom-caption {
    bottom: 10px;
    max-width: calc(100vw - 20px);
    font-size: 13px;
  }
  .stat { border-right: 0; }
  .cta-row .btn { width: 100%; }
  .card, .request-form, .contact-panel { padding: 20px; }
  .request-form--modal { padding: 0; }
  .tp-modal { padding: 12px; align-items: flex-start; }
  .tp-modal__dialog {
    max-height: calc(100vh - 24px);
    padding: 18px 16px;
  }
  .tp-modal__head { padding-right: 42px; }
  .tp-modal__head h2 { font-size: 26px; }
  .tp-modal__head p { font-size: 14px; }
  .surface-block, .inline-cta, .mid-cta { padding: 20px; }
  .card__image { width: calc(100% + 40px); margin: -20px -20px 16px; }
  .legal-doc { padding: 22px; }
  .legal-table {
    min-width: 0;
    font-size: 13px;
  }
  .legal-table tr {
    display: block;
    border: 1px solid var(--tp-line);
  }
  .legal-table tr + tr { border-top: 0; }
  .legal-table td {
    display: block;
    width: 100%;
    border: 0;
    border-top: 1px solid var(--tp-line);
  }
  .legal-table td:first-child {
    border-top: 0;
    color: var(--tp-graphite);
    font-weight: 850;
    background: var(--tp-soft);
  }
  .footer-bottom { flex-direction: column; }
  .footer-legal { justify-content: flex-start; }
  .cookie-notice {
    right: 10px;
    bottom: 10px;
    width: calc(100% - 20px);
    padding: 12px;
  }
  .cookie-notice p {
    margin-bottom: 9px;
    font-size: 13px;
    line-height: 1.35;
  }
  .cookie-notice .btn {
    width: auto;
    min-height: 40px;
    padding: 0 14px;
  }
}

@media (min-width: 360px) and (max-width: 520px) {
  .request-form--modal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .request-form--modal .full {
    grid-column: 1 / -1;
  }
}

@media (max-width: 340px) {
  h1 { font-size: 34px; }
  h2 { font-size: 28px; }
  .container { width: min(100% - 24px, var(--tp-max)); }
  .btn { width: 100%; padding: 0 14px; }
  .request-form { padding: 10px; }
  .service-hero-gallery__track { grid-auto-columns: minmax(218px, 88%); }
  .request-form--modal { padding: 0; }
  .tp-captcha.is-visible-test {
    margin-left: -12px;
    min-height: 94px;
    transform: scale(.92);
    transform-origin: left center;
  }
  .tp-modal { padding: 8px; }
  .tp-modal__dialog { padding: 18px 14px; border-radius: 8px; }
  .tp-modal__close { top: 10px; right: 10px; }
  .consent { grid-template-columns: 20px minmax(0, 1fr) !important; font-size: 13px !important; }
  .contact-card { padding: 18px; }
}
