/* ============================================
   CAMBLOCK — Custom Design System
   Dark Theme + Neon Orange Accent
   Font: Outfit | Photos: Vignette + Darkened plates
   ============================================ */

/* --- Font --- */
*:not(.fa):not([class*="ti-"]):not([class*="icon-"]) {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.fa {
  font-family: 'FontAwesome' !important;
}
[class*="ti-"] {
  font-family: 'themify' !important;
}

/* --- Color Variables --- */
:root {
  --bg-primary: #060809;
  --bg-secondary: #0A0D10;
  --bg-card: #0E1114;
  --accent: #FF6B35;
  --accent-glow: rgba(255, 107, 53, 0.3);
  --text-primary: #FFFFFF;
  --text-secondary: #B0B8C4;
  --border-subtle: rgba(255, 255, 255, 0.06);
}

/* --- Global --- */
body {
  background-color: var(--bg-primary) !important;
}

#page {
  background: var(--bg-primary) !important;
}

/* Responsive images */
section img {
  max-width: 100%;
  height: auto;
}

/* --- Section Backgrounds --- */
section,
section.builder-bg,
section.bg-dark-blue,
section.bg-white,
section.bg-black,
section.bg-deep-green,
footer {
  background-color: var(--bg-primary) !important;
  background-image: none !important;
  border: none !important;
}

section:nth-of-type(even) {
  background-color: var(--bg-secondary) !important;
}

/* Hero/CTA sections with background images */
section[style*="background-image: linear-gradient"] {
  background-color: transparent !important;
}

section#hero-section11 {
  background-image: linear-gradient(rgba(6, 8, 9, 0.8), rgba(6, 8, 9, 0.9)), url('../images/uploads/1ekr.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
}

section#calltoaction1 {
  background-image: linear-gradient(rgba(6, 8, 9, 0.85), rgba(6, 8, 9, 0.92)), url('../images/uploads/cta1.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
}

section#formazakaza {
  background-image: linear-gradient(rgba(6, 8, 9, 0.85), rgba(6, 8, 9, 0.92)), url('../images/uploads/cta2a.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
}

/* Section dividers */
section + section {
  border-top: 1px solid var(--border-subtle) !important;
}

/* --- Navbar --- */
nav.navbar {
  background: rgba(6, 8, 9, 0.95) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle) !important;
}

/* Mobile hamburger */
.navbar-toggle {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.navbar-toggle .icon-bar {
  background-color: var(--text-primary) !important;
}

.navbar-collapse {
  background: rgba(6, 8, 9, 0.98) !important;
  border-color: var(--border-subtle) !important;
}

/* --- Logo --- */
.logo-text {
  font-size: 16px !important;
  font-weight: 800 !important;
  letter-spacing: 3px !important;
  color: var(--text-primary) !important;
  text-decoration: none !important;
  text-transform: uppercase;
  white-space: nowrap;
}

.logo-accent {
  color: var(--accent) !important;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6,
.tz-text,
.alt-font,
[class*="title-"]:not(.fa),
[class*="section-title"] {
  font-family: 'Outfit', sans-serif !important;
  color: var(--text-primary) !important;
}

/* All text — white by default */
.text-medium,
.text-extra-large,
.text-small,
p, span, div {
  color: var(--text-primary) !important;
}

h1, .title-extra-large-6 {
  font-size: 38px !important;
  font-weight: 800 !important;
}

#hero-subtitle {
  font-size: 18px !important;
}

h2 {
  font-weight: 700 !important;
}

/* Content section headings — restore sizes lost from inline removal */
.title-medium {
  font-size: 24px !important;
  font-weight: 500 !important;
}

.title-extra-large {
  font-size: 35px !important;
}

.title-extra-large-2 {
  font-size: 45px !important;
}

.title-large {
  font-size: 28px !important;
  font-weight: 500 !important;
}

.section-title-large {
  font-size: 30px !important;
}

.text-medium {
  font-size: 14px !important;
}

.text-extra-large {
  font-size: 18px !important;
}

/* Secondary color — ONLY for subtitles and footer small text */
.text-blue-gray,
.text-secondary,
.text-medium-gray,
.text-extra-small {
  color: var(--text-secondary) !important;
}

/* Nav links */
.navbar-nav a {
  color: var(--text-primary) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 1px !important;
  transition: color 0.3s ease !important;
}

.navbar-nav a:hover {
  color: var(--accent) !important;
}

/* --- Buttons --- */
.tz_submit,
.btn-large,
button[type="submit"] {
  background: linear-gradient(135deg, var(--accent), #FF8F53) !important;
  color: var(--text-primary) !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  box-shadow: 0 4px 15px var(--accent-glow) !important;
}

.tz_submit:hover,
.btn-large:hover,
button[type="submit"]:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 30px var(--accent-glow) !important;
}

/* Telegram button */
a.btn-3d {
  background: linear-gradient(135deg, #0088cc, #00aaff) !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

a.btn-3d:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 30px rgba(0, 136, 204, 0.4) !important;
}

/* --- Forms --- */
.medium-input {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px !important;
  color: var(--text-primary) !important;
  transition: border-color 0.3s ease !important;
}

.medium-input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-glow) !important;
  outline: none !important;
}

.medium-input::placeholder {
  color: var(--text-secondary) !important;
}

/* Form validation error */
.tz_input_error {
  border-color: #FF4444 !important;
  box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.25) !important;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.form-error-msg {
  color: #FF4444;
  font-size: 13px;
  margin-top: 4px;
  margin-bottom: 8px;
  display: none;
}

.form-error-msg.visible {
  display: block;
}

.bg-black-light-rgba {
  background: rgba(6, 8, 9, 0.85) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 12px !important;
}

/* --- Photo Styling --- */
.photo-fade,
.photo-fade-right,
.photo-fade-left {
  border-radius: 12px !important;
  mask-image: radial-gradient(ellipse 85% 80% at center, #000 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at center, #000 50%, transparent 100%);
}

section img:not(.logo-img) {
  border-radius: 12px !important;
}

/* Audi photo — boost brightness & warmth */
#content-section1 img[src*="2ekr"] {
  filter: brightness(1.15) contrast(1.1) saturate(1.2) !important;
}

/* ГОСТ photo — light blur + overlay */
#content-section32 img[src*="6gos"] {
  filter: brightness(1.05) contrast(1.1) blur(0.5px) !important;
  mask-image: radial-gradient(ellipse 85% 80% at center, #000 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at center, #000 50%, transparent 100%);
}

/* Moto plate — soft vignette */
#content-section50 img[src*="moto"] {
  mask-image: radial-gradient(ellipse 85% 80% at center, #000 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at center, #000 50%, transparent 100%);
}

/* --- Plate Cards --- */
.plate-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 12px !important;
  padding: 20px !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.plate-card:hover {
  border-color: rgba(255, 107, 53, 0.3) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4) !important;
  transform: translateY(-4px) !important;
}

.plate-card img {
  border-radius: 8px !important;
  filter: brightness(0.65) contrast(1.1) !important;
  transition: filter 0.3s ease !important;
}

.plate-card:hover img {
  filter: brightness(0.8) contrast(1.1) !important;
}

.plate-card .text-medium-gray,
.plate-card .text-medium.margin-three-bottom {
  color: var(--text-secondary) !important;
}

/* Gallery lightbox */
.gallery-img .col-md-3 {
  background: transparent !important;
}

/* --- Advantages Section --- */
.advantages-section {
  padding: 80px 0 !important;
  background-color: var(--bg-primary) !important;
  background-image: none !important;
  border: none !important;
}

.advantage-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 28px 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.advantage-card:hover {
  border-color: rgba(255, 107, 53, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.advantage-card-wide {
  background: linear-gradient(135deg, var(--bg-card), rgba(255, 107, 53, 0.05));
}

.advantage-number {
  font-size: 32px !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, var(--accent), #FF8F53);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  flex-shrink: 0;
  min-width: 50px;
}

.advantage-content h3 {
  font-size: 18px !important;
  font-weight: 700 !important;
  margin-bottom: 6px !important;
  margin-top: 0 !important;
  color: var(--text-primary) !important;
}

.advantage-content p {
  font-size: 14px !important;
  color: var(--text-secondary) !important;
  line-height: 1.6;
  margin-bottom: 0 !important;
}

/* --- Video --- */
.video-overlay {
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5) !important;
}

.video-overlay iframe {
  border-radius: 12px !important;
  width: 100%;
  aspect-ratio: 16 / 9;
}

/* --- How to Order --- */
.how-to-order {
  padding: 80px 0;
  background-color: var(--bg-secondary) !important;
}

.order-step {
  text-align: center;
  padding: 30px 20px;
  position: relative;
}

.order-step-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #FF8F53);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.order-step-icon i {
  font-size: 30px !important;
  color: #fff !important;
}

.order-step-number {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.order-step h3 {
  font-size: 18px !important;
  font-weight: 700 !important;
  margin-bottom: 10px;
}

.order-step p {
  font-size: 14px !important;
  color: var(--text-secondary) !important;
  line-height: 1.6 !important;
}

.order-step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 24px;
  padding-top: 40px;
}

.how-to-order .row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Footer --- */
footer {
  background: var(--bg-primary) !important;
  border-top: 1px solid var(--border-subtle) !important;
}

.border-top-light {
  border-color: var(--border-subtle) !important;
}

/* --- Social Icons --- */
.social a i,
.social-icon a i {
  color: var(--text-secondary) !important;
  font-size: 26px !important;
  transition: color 0.3s ease !important;
}

.social a:hover i,
.social-icon a:hover i {
  color: var(--accent) !important;
}

/* Footer social — larger */
footer .social-icon a i {
  font-size: 36px !important;
}

/* --- Icons --- */
.fa-check {
  color: var(--accent) !important;
}

/* --- Scroll down arrow --- */
.back-down a {
  border-color: rgba(255, 255, 255, 0.2) !important;
  transition: border-color 0.3s ease !important;
}

.back-down a:hover {
  border-color: var(--accent) !important;
}

.back-down i {
  color: var(--text-primary) !important;
}

/* --- Gradient text accents --- */
.title-extra-large-4 {
  background: linear-gradient(135deg, var(--accent), #FF8F53);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Separators --- */
.separator-line2 {
  background: linear-gradient(90deg, var(--accent), transparent) !important;
  height: 3px !important;
  border-radius: 2px !important;
}

/* --- CTA header numbers --- */
.header-number {
  border-color: var(--accent) !important;
}

.header-number span {
  color: var(--accent) !important;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: #1A1F28;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* --- Selection --- */
::selection {
  background: var(--accent);
  color: #fff;
}

/* --- Chat Widget --- */
#chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}

.chat-widget-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: chat-pulse 2.5s ease-in-out infinite;
}

@keyframes chat-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4); }
  50% { box-shadow: 0 4px 24px rgba(255, 107, 53, 0.6), 0 0 0 8px rgba(255, 107, 53, 0.1); }
}

.chat-widget-toggle:hover {
  transform: scale(1.08);
  animation: none;
  box-shadow: 0 6px 24px rgba(255, 107, 53, 0.5);
}

#chat-widget.open .chat-widget-toggle {
  animation: none;
}

.chat-widget-tooltip {
  position: absolute;
  bottom: 8px;
  right: 68px;
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.chat-widget-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  margin-top: -5px;
  width: 10px;
  height: 10px;
  background: var(--bg-card);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  transform: rotate(-45deg);
}

#chat-widget.open .chat-widget-tooltip {
  opacity: 0;
}

.chat-widget-buttons {
  position: absolute;
  bottom: 68px;
  right: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#chat-widget.open .chat-widget-buttons {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.chat-widget-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-size: 22px;
  text-decoration: none !important;
  transition: transform 0.2s ease;
}

.chat-widget-btn:hover {
  transform: scale(1.1);
}

.chat-widget-wa {
  background: #25D366;
}

.chat-widget-tg {
  background: #2AABEE;
}

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

/* --- Tablet (768–1024px) --- */
@media (max-width: 1024px) {
  .logo-text {
    font-size: 14px !important;
    letter-spacing: 2px !important;
  }

  /* Reduce section padding */
  section {
    padding: 80px 0 !important;
  }

  /* CTA text */
  .title-extra-large-2 {
    font-size: 32px !important;
  }

  /* Advantage cards: stack 1 column on tablet */
  .advantage-card {
    padding: 24px 20px;
  }

  /* Order steps: smaller icons */
  .order-step-icon {
    width: 65px;
    height: 65px;
  }

  .order-step-icon i {
    font-size: 24px !important;
  }
}

/* --- Mobile (max 767px) --- */
@media (max-width: 767px) {
  .logo-text {
    font-size: 13px !important;
    letter-spacing: 2px !important;
  }

  /* Mobile menu full-width */
  .navbar-collapse {
    padding: 15px !important;
  }

  .navbar-nav {
    margin: 0 !important;
  }

  .navbar-nav li {
    border-bottom: 1px solid var(--border-subtle);
  }

  .navbar-nav li:last-child {
    border-bottom: none;
  }

  .navbar-nav a {
    padding: 12px 15px !important;
    font-size: 13px !important;
  }

  /* Sections */
  section {
    padding: 60px 0 !important;
  }

  /* Hero */
  #hero-section11 .title-extra-large-6 {
    font-size: 28px !important;
    line-height: 1.3 !important;
  }

  #hero-section11 .text-extra-large {
    font-size: 16px !important;
  }

  /* Content section headings */
  .title-extra-large,
  .title-extra-large-2,
  .section-title-large {
    font-size: 24px !important;
    line-height: 1.3 !important;
  }

  .title-large {
    font-size: 22px !important;
  }

  /* CTA forms */
  .bg-black-light-rgba {
    padding: 20px !important;
  }

  .medium-input {
    font-size: 16px !important; /* prevents iOS zoom on focus */
  }

  /* Video responsive */
  .video-overlay iframe {
    height: auto;
    min-height: 200px;
  }

  /* Plate cards: 2 columns on mobile */
  .plate-card {
    padding: 15px !important;
    margin-bottom: 15px !important;
  }

  /* Advantages */
  .advantages-section {
    padding: 60px 0 !important;
  }

  .advantage-card {
    padding: 20px 16px;
  }

  .advantage-number {
    font-size: 26px !important;
    min-width: 40px;
  }

  .advantage-content h3 {
    font-size: 16px !important;
  }

  .advantage-content p {
    font-size: 13px !important;
  }

  /* How to order */
  .how-to-order {
    padding: 60px 0;
  }

  .order-step {
    padding: 20px 15px;
  }

  .order-step-icon {
    width: 65px;
    height: 65px;
  }

  .order-step-icon i {
    font-size: 24px !important;
  }

  .order-step-arrow {
    transform: rotate(90deg);
    padding: 10px 0;
  }

  /* Footer */
  footer .social-icon a i {
    font-size: 30px !important;
  }

  /* Width utility classes — full width on mobile */
  .width-60,
  .width-80,
  .width-90,
  .width-50 {
    width: 100% !important;
  }

  /* Camera list */
  .list-style-none li {
    font-size: 14px !important;
    line-height: 30px !important;
  }
}

/* --- Small phones (max 480px) --- */
@media (max-width: 480px) {
  .logo-text {
    font-size: 11px !important;
    letter-spacing: 1px !important;
  }

  #hero-section11 .title-extra-large-6 {
    font-size: 24px !important;
  }

  .title-extra-large,
  .title-extra-large-2,
  .section-title-large {
    font-size: 20px !important;
  }

  .order-step-icon {
    width: 55px;
    height: 55px;
  }

  .order-step-icon i {
    font-size: 20px !important;
  }

  .advantage-number {
    font-size: 22px !important;
    min-width: 35px;
  }
}
