/* ==========================================================================
   THEME «ИНДУСТРИАЛЬНЫЙ КИНЕМАТОГРАФ» (direction A)
   Loaded after style.css. Dark graphite sections alternating with warm light
   ones, full-bleed photo hero, large tight typography, one industrial-orange
   accent used sparingly. No glow, no gradient text.
   ========================================================================== */
:root {
  --ink: #0b0d0f;
  --ink-2: #121519;
  --ink-3: #1a1e23;
  --ink-line: rgba(255, 255, 255, 0.1);
  --on-ink: #f4f5f6;
  --on-ink-2: rgba(244, 245, 246, 0.68);
  --paper: #f3f2ef;
  --accent: #ff6b1a;
  --accent-hover: #ff8640;
  --accent-light: rgba(255, 107, 26, 0.1);
  --accent-mint: #ff6b1a;
  --bg-page: var(--paper);
  --radius-card: 14px;
}

body { background: var(--paper); }

/* Buttons */
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #111;
  font-weight: 700;
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #111; }

/* Big, tight headings */
.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

/* ---------- Header: dark glass on every page ---------- */
.site-header {
  background: rgba(11, 13, 15, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--ink-line);
}
.site-header .brand-name,
.site-header .brand-logo,
.site-header .nav-links a,
.site-header .phone-link { color: var(--on-ink); }
.site-header .nav-links a:hover,
.site-header .nav-links a[aria-current="page"] { color: var(--accent); }
.site-header .brand-mark { background: var(--accent); }
.site-header .cart-trigger {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--ink-line);
  color: var(--on-ink);
}
.site-header .cart-count { background: var(--accent); color: #111; }
.site-header .menu-toggle { color: var(--on-ink); border-color: var(--ink-line); background: transparent; }
.site-header .menu-toggle span { background-color: var(--on-ink); }

.mobile-nav { background: var(--ink-2); color: var(--on-ink); }
.mobile-nav a, .mobile-nav .brand-name { color: var(--on-ink); }
.mobile-nav .btn-primary { color: #111; }
.mobile-nav-links a { border-color: var(--ink-line); }
#closeMobileNav { color: var(--on-ink); background: rgba(255, 255, 255, 0.06); border-color: var(--ink-line); }

/* ---------- Hero: full-bleed cinematic photo ---------- */
.hero-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-ink);
  min-height: min(88vh, 860px);
  display: flex;
  align-items: center;
  padding: 96px 0 72px;
}
.hero-section .hero-grid { position: static; display: block; width: 100%; }
.hero-section .hero-content { position: relative; z-index: 2; }
.hero-section .hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  background: var(--ink);
}
.hero-section .hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 50%;
  border-radius: 0;
}
.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(11, 13, 15, 0.96) 0%, rgba(11, 13, 15, 0.82) 34%, rgba(11, 13, 15, 0.25) 62%, rgba(11, 13, 15, 0) 80%),
    linear-gradient(0deg, rgba(11, 13, 15, 0.9) 0%, rgba(11, 13, 15, 0) 28%);
  pointer-events: none;
}
.hero-content { max-width: 760px; }
.hero-title {
  color: #fff;
  font-size: clamp(40px, 5.4vw, 76px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
}
.hero-subtitle { color: var(--on-ink-2); font-size: clamp(16px, 1.4vw, 19px); max-width: 560px; }
.hero-section .btn-secondary {
  background: transparent !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
}
.hero-section .btn-secondary:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); color: #fff; }
.hero-ctas .btn-primary, .hero-ctas .btn-secondary { padding: 15px 26px; font-size: 16px; }
.hero-facts {
  border-top: 1px solid var(--ink-line);
  margin-top: 36px;
  padding-top: 22px;
  gap: 12px 28px;
}
.hero-fact-item { color: var(--on-ink); font-size: 14px; }
.hero-fact-dot { background: var(--accent); border-radius: 2px; width: 8px; height: 8px; }

/* ---------- Directions: dark band, photo tiles, text over photo ---------- */
.directions-section { background: var(--ink); color: var(--on-ink); padding: 24px 0 96px; }
.directions-section .section-title { color: #fff; }
.directions-section .section-header p,
.directions-section .section-desc { color: var(--on-ink-2); }
.directions-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.direction-card {
  position: relative;
  grid-column: span 2;
  min-height: 300px;
  border: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--ink-3);
  isolation: isolate;
}
.direction-card:nth-child(1), .direction-card:nth-child(2) { grid-column: span 3; min-height: 380px; }
.direction-card:hover { box-shadow: none; border: 0; }
.direction-img-wrap { position: absolute; inset: 0; height: auto !important; z-index: 0; background: none; }
.direction-img-wrap img { transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.direction-card:hover .direction-img-wrap img { transform: scale(1.05); }
.direction-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(11, 13, 15, 0.92) 0%, rgba(11, 13, 15, 0.35) 45%, rgba(11, 13, 15, 0) 70%);
}
.direction-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 22px 24px !important;
}
.direction-content h3 {
  color: #fff !important;
  font-size: 22px !important;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.direction-content h3::after { content: "\2192"; color: var(--accent); transition: transform 0.25s ease; }
.direction-card:hover .direction-content h3::after { transform: translateX(4px); }
.direction-content p { color: var(--on-ink-2) !important; display: block !important; font-size: 14px; }

/* ---------- Popular models: warm light section ---------- */
.page-home .catalog-section { background: var(--paper); padding: 96px 0; }
.section-link { color: #111 !important; font-weight: 700; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.robot-card { background: #fff; border: 1px solid rgba(17, 20, 24, 0.06); border-radius: var(--radius-card); }
.robot-card:hover { border-color: rgba(17, 20, 24, 0.16); box-shadow: 0 18px 40px -24px rgba(17, 20, 24, 0.35); }
.robot-card-img-wrap { background: #eceae6; border-radius: 10px; }
.robot-card-name { font-size: 20px; letter-spacing: -0.02em; }
.btn-series-open, .card-click-hint { color: #111 !important; }
.btn-series-open svg { color: var(--accent); }
.btn-card-cart { background: #111; color: #fff; border-color: #111; }
.btn-card-cart:hover { background: var(--accent); border-color: var(--accent); color: #111; }
.series-badge, .card-badge { background: #f1efeb; color: #4a4f57; border-color: transparent; }
.price-val, .m-price { color: #111 !important; }

/* ---------- How we work: dark, huge numbers ---------- */
.how-it-works-section { background: var(--ink-2); color: var(--on-ink); padding: 96px 0; }
.how-it-works-section .section-title { color: #fff; }
.steps-grid { gap: 0 24px; }
.step-card {
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--ink-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 26px 0 8px !important;
}
.step-number {
  display: block;
  font-size: clamp(44px, 5vw, 72px) !important;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent) !important;
  margin-bottom: 18px;
  background: none !important;
  width: auto !important;
  height: auto !important;
}
.step-card h3 { color: #fff !important; font-size: 18px; }
.step-card p { color: var(--on-ink-2) !important; }

/* ---------- About: light ---------- */
.about-section { background: var(--paper); padding: 96px 0; }
.about-card { background: #fff; border: 1px solid rgba(17, 20, 24, 0.06); border-radius: var(--radius-card); }
.about-icon { background: #111 !important; color: var(--accent) !important; border: 0 !important; }

/* ---------- CTA band with factory photo ---------- */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding: 120px 0;
}
.cta-band-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(11, 13, 15, 0.92) 0%, rgba(11, 13, 15, 0.7) 45%, rgba(11, 13, 15, 0.3) 100%);
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 720px;
  margin-bottom: 16px;
}
.cta-band p { color: var(--on-ink-2); font-size: 18px; max-width: 560px; margin-bottom: 28px; }
.cta-band .btn-primary { padding: 15px 28px; font-size: 16px; display: inline-flex; }

/* ---------- Contact: dark, white form card ---------- */
.contact-section { background: var(--ink); color: var(--on-ink); padding: 96px 0; }
.contact-section .section-title, .contact-info h2 { color: #fff; }
.contact-desc, .contact-lbl { color: var(--on-ink-2) !important; }
.contact-val, .contact-val a { color: #fff !important; }
.contact-icon { background: rgba(255, 255, 255, 0.06) !important; border-color: var(--ink-line) !important; color: var(--accent) !important; }
.form-card { background: #fff; border: 0; border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); color: #111418; }

/* ---------- Footer ---------- */
.site-footer { background: #07080a; color: var(--on-ink-2); border-top: 1px solid var(--ink-line); }
.site-footer h4, .site-footer h5, .site-footer .brand-name, .site-footer strong { color: #fff; }
.site-footer a, .site-footer li, .site-footer p { color: var(--on-ink-2); }
.site-footer a:hover { color: var(--accent); }
.site-footer .brand-mark { background: var(--accent); }
.footer-bottom { border-top-color: var(--ink-line) !important; color: rgba(244, 245, 246, 0.45); }

/* ---------- Catalog & rent pages: dark page header band ---------- */
.page-catalog #catalog .section-header,
.page-rent #rent .section-header {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 0 0 100vmax var(--ink);
  clip-path: inset(0 -100vmax);
  padding: 64px 0 48px;
  margin-bottom: 32px;
}
.page-catalog #catalog .section-header .section-title,
.page-rent #rent .section-header .section-title { color: #fff; font-size: clamp(34px, 5vw, 60px); }
.page-catalog #catalog .section-header p,
.page-rent #rent .section-header p { color: var(--on-ink-2); }
.page-catalog .catalog-section, .page-rent .rent-page-section { padding-top: 0; }
.pill-btn { border-radius: 999px; }
.pill-btn.active { background: #111; border-color: #111; color: #fff; }
.series-back { color: #111; }

/* Modal + drawer accents */
.modal-quote-btn, #drawerQuoteBtn { color: #111 !important; }
.edition-pill-btn.active { background: #111 !important; border-color: #111 !important; color: #fff !important; }
.modal-series-link { color: #111 !important; border-color: rgba(17, 20, 24, 0.12) !important; background: #f5f3ef !important; }

/* ---------- Mobile ---------- */
@media (max-width: 639px) {
  .hero-section { min-height: 86svh; align-items: flex-end; padding: 96px 0 40px; }
  .hero-section .hero-visual img { object-position: 78% 40%; }
  .hero-section::after {
    background: linear-gradient(0deg, rgba(11, 13, 15, 0.98) 0%, rgba(11, 13, 15, 0.85) 45%, rgba(11, 13, 15, 0.2) 80%, rgba(11, 13, 15, 0.35) 100%);
  }
  .hero-title { font-size: 40px; }
  .hero-ctas { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .hero-ctas .btn-primary, .hero-ctas .btn-secondary { width: 100%; justify-content: center; }
  .hero-facts { margin-top: 24px; }

  .directions-section { padding: 8px 0 64px; }
  .directions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .direction-card, .direction-card:nth-child(1), .direction-card:nth-child(2) { grid-column: span 1; min-height: 190px; }
  .direction-card:nth-child(1) { grid-column: 1 / -1; min-height: 230px; }
  .direction-card:last-child:nth-child(odd) { grid-column: auto; }
  .direction-content { padding: 14px !important; }
  .direction-content h3 { font-size: 16px !important; }
  .direction-content p { display: none !important; }

  .page-home .catalog-section, .how-it-works-section, .about-section, .contact-section { padding: 64px 0; }
  .cta-band { padding: 80px 0; }
  .cta-band p { font-size: 16px; }
  .page-catalog #catalog .section-header, .page-rent #rent .section-header { padding: 40px 0 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .direction-img-wrap img, .direction-content h3::after { transition: none; }
}

/* Contact: two columns on desktop (info | form) */
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; }
}

/* Phone hero: clear photo on top, text below on ink (no text over the robot) */
@media (max-width: 639px) {
  .hero-section { display: block; min-height: 0; padding: 0 0 44px; }
  .hero-section .hero-visual { position: relative; inset: auto; height: 300px; }
  .hero-section .hero-visual img { object-position: 70% 45%; }
  .hero-section::after {
    inset: 0 0 auto 0;
    height: 300px;
    background: linear-gradient(0deg, rgba(11, 13, 15, 1) 0%, rgba(11, 13, 15, 0) 45%);
  }
  .hero-section .hero-content { margin-top: -36px; }
  .hero-title { font-size: 38px; }
}
@media (max-width: 639px) {
  .hero-section .hero-grid { display: flex; flex-direction: column; padding-left: 0; padding-right: 0; max-width: none; }
  .hero-section .hero-visual { order: -1; width: 100%; }
  .hero-section .hero-content { padding: 0 16px; }
}
