/* =====================================================================
   Первый Знак — типография, сайт-визитка
   Палитра: графит / жёлтый амбр / огненно-красный
   ===================================================================== */

:root {
  --bg: #0b0b0c;
  --bg-2: #141417;
  --ink: #0a0a0a;
  --paper: #f5f1ea;
  --paper-2: #ebe4d6;
  --muted: #8a8a90;
  --line: rgba(255,255,255,0.08);
  --line-dark: rgba(0,0,0,0.10);

  --yellow: #ffc20e;
  --yellow-2: #ffd84a;
  --red: #ea1f1f;
  --red-2: #ff4a2a;

  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1240px;
  --shadow-card: 0 10px 40px rgba(0,0,0,.35);

  --ff-head: "PT Sans Narrow", "PT Sans", "Arial Narrow", system-ui, sans-serif;
  --ff-display: "PT Sans", "Arial", system-ui, sans-serif;
  --ff-body: "PT Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
  font-size: 17px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- TOPBAR ----- */
.topbar {
  background: #000;
  color: #b9b9bd;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 40px;
  white-space: nowrap;
  overflow: hidden;
}
.tb-item a { color: var(--yellow-2); }
.tb-item a:hover { color: #fff; }
.tb-dot { color: #555; }
.tb-right { margin-left: auto; }

@media (max-width: 720px) {
  .topbar-inner { font-size: 12px; }
  .topbar-inner .tb-item:not(.tb-right):not(:first-child),
  .topbar-inner .tb-dot { display: none; }
}

/* ----- HEADER ----- */
.header {
  background: #0b0b0c;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.logo-badge {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .35));
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.logo-sub { font-size: 11px; color: #9a9a9f; letter-spacing: .3px; text-transform: lowercase; }

.nav { display: flex; gap: 28px; justify-self: center; }
.nav a {
  color: #d8d8dc;
  font-weight: 500;
  font-size: 15px;
  padding: 6px 0;
  position: relative;
}
.nav a:hover { color: #fff; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--yellow);
  transition: right .25s;
}
.nav a:hover::after { right: 0; }

.header-cta { display: flex; align-items: center; gap: 14px; }
.phone {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .3px;
  color: #fff;
}
.phone:hover { color: var(--yellow); }

.burger {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 10px;
  position: relative;
}
.burger span {
  display: block;
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: #fff;
  transition: transform .25s, top .25s, opacity .2s;
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 19px; }
.burger span:nth-child(3) { top: 24px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

@media (max-width: 980px) {
  .header-inner { gap: 12px; height: 64px; }
  .nav {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: #0b0b0c;
    flex-direction: column;
    gap: 0;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height .3s ease, opacity .2s ease, visibility 0s linear .3s, padding .3s ease;
    border-bottom: 1px solid var(--line);
    z-index: 45;
    justify-self: stretch;
  }
  .nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
    width: 100%;
  }
  body.nav-open .nav {
    max-height: 80vh;
    padding: 4px 20px 16px;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: max-height .3s ease, opacity .2s ease, visibility 0s, padding .3s ease;
  }
  .burger { display: block; }
  .phone { display: none; }
  .header-cta .btn { display: none; }
  .logo-badge { width: 40px; height: 40px; font-size: 17px; }
  .logo-name { font-size: 17px; letter-spacing: .3px; }
  .logo-sub { display: none; }
  .logo { gap: 10px; }
}

@media (max-width: 420px) {
  .logo-name { font-size: 15px; }
}

/* ----- BUTTONS ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn-lg { padding: 16px 26px; font-size: 16px; border-radius: 12px; }
.btn-accent {
  background: var(--yellow);
  color: #141414;
  box-shadow: 0 8px 30px rgba(255,194,14,.35);
}
.btn-accent:hover { background: var(--yellow-2); transform: translateY(-1px); }
.btn-accent:active { transform: translateY(0); }
.btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,.25);
  background: transparent;
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.05); }

/* ----- HERO ----- */
.hero {
  position: relative;
  color: #fff;
  background: #000;
  overflow: hidden;
  padding: 90px 0 40px;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .32;
  filter: saturate(.9);
}
.hero-tint {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 600px at 80% 0%, rgba(255,194,14,.12), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.7) 50%, #000 95%);
}
.hero-inner { position: relative; z-index: 1; padding: 30px 0 80px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #e4e4e7;
  margin-bottom: 28px;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 12px var(--yellow);
}

.hero-title {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(42px, 8vw, 104px);
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: -.5px;
  margin: 0 0 28px;
}
.hero-title .hero-line { display: block; }
.hero-title .hero-accent { color: var(--yellow); }
.hero-title .hl {
  background: var(--red);
  color: #fff;
  padding: 0 12px;
  display: inline-block;
  transform: skew(-6deg);
}

.hero-lead {
  max-width: 640px;
  font-size: 19px;
  color: #cfcfd4;
  margin: 0 0 36px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.08);
  max-width: 640px;
}
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta b {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  color: var(--yellow);
}
.hero-meta span { color: #9a9a9f; font-size: 14px; margin-top: 6px; }

@media (max-width: 640px) {
  .hero-meta { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .hero-meta b { font-size: 26px; }
  .hero-meta span { font-size: 12px; }
}

/* marquee */
.marquee {
  position: relative;
  background: var(--yellow);
  color: #111;
  overflow: hidden;
  border-top: 3px solid #000;
  border-bottom: 3px solid #000;
}
.marquee-track {
  display: flex;
  gap: 28px;
  padding: 16px 0;
  white-space: nowrap;
  animation: scroll 40s linear infinite;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.marquee-track span { flex: 0 0 auto; }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ----- SECTION HEAD ----- */
.eyebrow {
  display: inline-block;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.eyebrow-light { color: var(--yellow); }
.section-head { margin-bottom: 56px; max-width: 820px; }
.section-title {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: -.5px;
  margin: 0 0 16px;
}
.section-lead { color: #555; font-size: 18px; margin: 0; }

/* ----- SERVICES ----- */
.services { padding: 100px 0; background: var(--paper); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
}
.service {
  padding: 40px;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  position: relative;
  overflow: hidden;
  transition: background .25s;
}
.service:nth-child(2n) { border-right: 0; }
.service:nth-child(n+3) { border-bottom: 0; }
.service::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: var(--yellow);
  transform: translateY(100%);
  transition: transform .25s;
}
.service:hover { background: #fafaf7; }
.service:hover::before { transform: translateY(0); }
.service-num {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--red);
  margin-bottom: 20px;
}
.service h3 {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 28px;
  text-transform: uppercase;
  margin: 0 0 14px;
  letter-spacing: -.3px;
}
.service p { color: #4a4a4f; margin: 0 0 20px; }
.service ul { list-style: none; padding: 0; margin: 0; }
.service li {
  padding: 8px 0;
  border-top: 1px dashed var(--line-dark);
  font-size: 15px;
  color: #2b2b2e;
}
.service li:first-child { border-top: 0; }

@media (max-width: 780px) {
  .services { padding: 70px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .service { border-right: 0 !important; border-bottom: 1px solid var(--line-dark); padding: 32px 24px; }
  .service:last-child { border-bottom: 0; }
  .service h3 { font-size: 24px; }
}

/* ----- WORKS ----- */
.works { padding: 100px 0; background: var(--paper-2); }
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.filter {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.15);
  background: transparent;
  color: #2b2b2e;
  font-weight: 500;
  font-size: 14px;
  transition: all .2s;
}
.filter:hover { border-color: #000; }
.filter.is-active {
  background: #000;
  color: #fff;
  border-color: #000;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
  aspect-ratio: 4 / 3;
  transition: transform .25s, box-shadow .25s;
}
.card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s, opacity .3s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.card:hover img { transform: scale(1.05); opacity: .85; }
.card-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px;
  color: #fff;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.75) 100%);
  transform: translateY(10%);
  transition: transform .25s;
}
.card:hover .card-info { transform: translateY(0); }
.tag {
  display: inline-block;
  font-family: var(--ff-head);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 6px;
}
.card h4 {
  margin: 0;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 19px;
  text-transform: uppercase;
}

.card[hidden] { display: none; }

/* ----- RATING ----- */
.rating { background: var(--paper-2); padding: 70px 0; }
.rating-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 50px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  box-shadow: 0 10px 40px rgba(0,0,0,.06);
}
.rating-score { text-align: center; }
.rating-num {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 92px;
  line-height: 1;
  color: var(--red);
  letter-spacing: -2px;
}
.rating-stars {
  display: inline-flex;
  gap: 4px;
  margin-top: 8px;
}
.rating-stars span {
  width: 22px; height: 22px;
  background: var(--yellow);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.rating-stars span.half {
  background: linear-gradient(90deg, var(--yellow) 50%, #e6e0d0 50%);
}
.rating-src { color: var(--muted); font-size: 13px; margin-top: 10px; }

.rating-copy { display: flex; flex-direction: column; align-items: flex-start; }
.rating-copy .eyebrow { color: var(--red); }
.rating-title {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 38px);
  text-transform: uppercase;
  margin: 0 0 14px;
  letter-spacing: -.3px;
  line-height: 1.05;
}
.rating-copy p { margin: 0 0 22px; color: #4a4a4f; }

@media (max-width: 780px) {
  .rating-inner { grid-template-columns: 1fr; padding: 32px 24px; gap: 24px; text-align: center; }
  .rating-copy { align-items: center; }
  .rating-num { font-size: 72px; }
}

/* ----- PRODUCTION ----- */
.production {
  padding: 100px 0;
  background: var(--ink);
  color: #f2f2f2;
}
.production .section-title { color: #fff; }
.production-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: start;
}
.production-copy p { color: #b8b8bf; font-size: 17px; }
.production-list { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.production-list > div {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: 15px;
}
.production-list b {
  font-family: var(--ff-head);
  color: var(--yellow);
  flex: 0 0 auto;
}
.production-media {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.production-media picture {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: #222;
}
.production-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s;
}
.production-media picture:hover img { transform: scale(1.04); }

@media (max-width: 900px) {
  .production-inner { grid-template-columns: 1fr; gap: 40px; }
  .production { padding: 70px 0; }
}

/* ----- WHY US ----- */
.why { padding: 100px 0; background: var(--paper); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.why-card {
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.why-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,.08); }
.why-num {
  font-family: var(--ff-head);
  font-size: 72px;
  line-height: 1;
  color: var(--yellow);
  display: block;
  margin-bottom: 14px;
  opacity: .9;
}
.why-card h3 {
  font-family: var(--ff-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 19px;
  margin: 0 0 10px;
}
.why-card p { color: #52525a; font-size: 15px; margin: 0; }

@media (max-width: 960px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .why-grid { grid-template-columns: 1fr; } }

/* ----- CTA / FORM ----- */
.cta { background: #0b0b0c; color: #fff; padding: 100px 0; position: relative; overflow: hidden; }
.cta::before {
  content: "";
  position: absolute;
  right: -100px; top: -100px;
  width: 360px; height: 360px;
  background: var(--red);
  border-radius: 50%;
  filter: blur(120px);
  opacity: .35;
}
.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.cta-copy .section-title { color: #fff; }
.cta-copy p { color: #b9b9c0; font-size: 17px; }
.cta-contacts { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.cta-contact {
  display: flex;
  flex-direction: column;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  transition: color .2s;
}
.cta-contact:hover { color: var(--yellow); }
.cta-contact span { color: #9a9a9f; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.cta-contact b {
  font-family: var(--ff-head);
  font-size: 24px;
  font-weight: 600;
  margin-top: 4px;
}

.form {
  background: #141417;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 13px; color: #b8b8bf; }
.field input, .field textarea {
  font: inherit;
  color: #fff;
  background: #0b0b0c;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--yellow);
  background: #0e0e10;
}
.field textarea { resize: vertical; min-height: 90px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #9a9a9f; }
.check input { margin-top: 3px; accent-color: var(--yellow); }
.form .btn { margin-top: 6px; }
.form-status { font-size: 14px; margin: 6px 0 0; }
.form-status.ok { color: var(--yellow); }
.form-status.err { color: #ff8080; }

@media (max-width: 900px) {
  .cta-inner { grid-template-columns: 1fr; gap: 40px; }
  .cta { padding: 70px 0; }
}

/* ----- CONTACTS ----- */
.contacts { padding: 100px 0; background: var(--paper); }
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.contacts-card {
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 24px;
}
.contacts-card h3 {
  font-family: var(--ff-head);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin: 0 0 10px;
}
.contacts-card p {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.45;
}
.contacts-card a { color: var(--ink); border-bottom: 2px solid var(--yellow); }
.contacts-card a:hover { color: var(--red); }
.muted { color: var(--muted); font-size: 14px; }

.map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: #fff;
}
.map iframe { display: block; border: 0; filter: grayscale(.2) contrast(1.02); }

@media (max-width: 900px) { .contacts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .contacts-grid { grid-template-columns: 1fr; } }

/* ----- FOOTER ----- */
.footer { background: #000; color: #9a9a9f; padding: 40px 0 30px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand b { color: #fff; font-family: var(--ff-head); text-transform: uppercase; letter-spacing: .5px; display: block; }
.footer-brand span { font-size: 13px; }
.footer-nav { display: flex; gap: 24px; justify-self: center; flex-wrap: wrap; justify-content: center; }
.footer-nav a { color: #c8c8cc; font-size: 14px; }
.footer-nav a:hover { color: var(--yellow); }
.footer-copy { display: flex; flex-direction: column; text-align: right; font-size: 13px; justify-self: end; }

@media (max-width: 780px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .footer-brand, .footer-copy { justify-self: center; text-align: center; }
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  * { transition-duration: .01ms !important; }
}
