@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;800;900&family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,700;1,900&family=Oswald:wght@500;600;700&display=swap');

:root {
  --color-bg-dark: #07080a;
  --color-bg-card: #0d1017;
  --color-bg-card-hover: #131822;
  --color-crimson: #ff1e27;
  --color-crimson-dark: #b30c12;
  --color-gold: #d4af37;
  --color-text-light: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-border-dark: rgba(255, 255, 255, 0.1);
  --color-border-crimson: rgba(255, 30, 39, 0.45);
  --font-heading: 'Oswald', 'Montserrat', sans-serif;
  --font-body: 'Montserrat', sans-serif;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* ==========================================================================
   TYPOGRAPHY & ACCENTS
   ========================================================================== */
h1, h2, h3, h4, .heading, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.text-gradient-crimson {
  background: linear-gradient(135deg, #ffffff 0%, #ff6b6b 35%, #ff1e27 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #ffffff 0%, #f6d365 35%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glow-crimson {
  text-shadow: 0 0 20px rgba(255, 30, 39, 0.6), 0 0 40px rgba(255, 30, 39, 0.3);
}

/* ==========================================================================
   TOP SCOREBOARD BAR ("Табло сверху сайта")
   ========================================================================== */
.top-scoreboard-bar {
  background: linear-gradient(90deg, #180203 0%, #07080a 50%, #180203 100%);
  border-bottom: 1px solid rgba(255, 30, 39, 0.35);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.8);
  font-family: var(--font-body);
}

/* ==========================================================================
   HEADER NAVIGATION (Clean Single Line in Solid Panel)
   ========================================================================== */
.combat-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 8, 10, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid rgba(255, 30, 39, 0.35);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.9);
}

.combat-nav--panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 20px;
}

.combat-nav--navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: clamp(12px, 1.6vw, 24px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.combat-nav--navigation > li {
  white-space: nowrap;
  flex-shrink: 0;
}

.combat-nav--navigation > li > a {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
  display: inline-block;
}

.combat-nav--navigation > li > a:hover {
  color: #ff1e27;
  text-shadow: 0 0 12px rgba(255, 30, 39, 0.8);
}

.combat-nav--navigation > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #ff1e27;
  box-shadow: 0 0 8px #ff1e27;
  transition: width 0.3s ease;
}

.combat-nav--navigation > li > a:hover::after {
  width: 100%;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-combat {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 26px;
  background: linear-gradient(135deg, #ff1e27 0%, #b30c12 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(255, 30, 39, 0.45);
  white-space: nowrap;
}

.btn-combat:hover {
  background: linear-gradient(135deg, #ff3b42 0%, #d10e15 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 30, 39, 0.7);
  color: #ffffff;
}

.btn-combat-outline {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 22px;
  background-color: rgba(13, 16, 23, 0.8);
  color: #ffffff;
  border: 2px solid var(--color-crimson);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.btn-combat-outline:hover {
  background-color: var(--color-crimson);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 30, 39, 0.5);
}

.btn-sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(7, 8, 10, 0.9);
  border: 1px solid var(--color-crimson);
  border-radius: 9999px;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(255, 30, 39, 0.35);
}

.btn-sound-toggle:hover {
  background: var(--color-crimson);
  transform: scale(1.04);
  box-shadow: 0 0 30px rgba(255, 30, 39, 0.6);
}

.sound-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 12px;
}

.sound-bar {
  width: 2.5px;
  height: 100%;
  background-color: #ff1e27;
  border-radius: 2px;
  animation: wave 1s ease-in-out infinite;
}

.btn-sound-toggle.playing .sound-bar {
  background-color: #ffffff;
}

.sound-bar:nth-child(1) { animation-delay: 0.1s; }
.sound-bar:nth-child(2) { animation-delay: 0.3s; }
.sound-bar:nth-child(3) { animation-delay: 0.2s; }
.sound-bar:nth-child(4) { animation-delay: 0.4s; }

@keyframes wave {
  0%, 100% { height: 3px; }
  50% { height: 12px; }
}

/* ==========================================================================
   HERO SECTION (Panoramic Widescreen: Lawyer Right, Blurred Court Left with Text)
   ========================================================================== */
.combat-hero-wide {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-color: #07080a;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 30, 39, 0.3);
}

.combat-hero-wide--backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.combat-hero-wide--backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 85% center;
}

.hero-wide-gradient-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #07080a 0%, rgba(7, 8, 10, 0.94) 45%, rgba(7, 8, 10, 0.55) 68%, rgba(7, 8, 10, 0.08) 100%),
              linear-gradient(180deg, transparent 75%, #07080a 100%);
  pointer-events-none;
}

@media (max-width: 1023px) {
  .combat-hero-wide--backdrop img {
    object-position: center top;
  }
  .hero-wide-gradient-mask {
    background: linear-gradient(180deg, rgba(7, 8, 10, 0.65) 0%, rgba(7, 8, 10, 0.92) 45%, #07080a 100%);
  }
}

/* ==========================================================================
   VIDEO SHOWCASE (Vertical 9:16 Player on Left, Text on Right)
   ========================================================================== */
.video-showcase-box {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(255, 30, 39, 0.6);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 40px rgba(255, 30, 39, 0.35);
  background-color: #000000;
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
}

.video-showcase-box video {
  width: 100%;
  height: 580px;
  max-height: 620px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
}

.video-overlay-control {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 10;
}

/* ==========================================================================
   REALITY CHECK CARDS
   ========================================================================== */
.reality-card {
  background-color: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid #ff1e27;
  border-radius: 10px;
  padding: 24px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.reality-card:hover {
  transform: translateY(-4px);
  background-color: var(--color-bg-card-hover);
  border-color: rgba(255, 30, 39, 0.5);
  box-shadow: 0 10px 30px rgba(255, 30, 39, 0.15);
}

/* ==========================================================================
   CASE & PRINCIPLES VIDEOS (Matching Vertical Showcase Proportions)
   ========================================================================== */
.case-video-box, .principles-video-box {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(255, 30, 39, 0.6);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 40px rgba(255, 30, 39, 0.35);
  background-color: #000000;
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
}

.case-video-box video, #case-showcase-video,
.principles-video-box video, #principles-video {
  width: 100%;
  height: auto;
  max-height: 580px;
  object-fit: cover !important;
  object-position: center center !important;
  display: block;
  background-color: #000000;
}

/* ==========================================================================
   ATTORNEYS CARDS (Perfect Face Centering & Proportions)
   ========================================================================== */
.attorney-combat-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 30, 39, 0.35);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
  background-color: var(--color-bg-card);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 540px;
}

.attorney-combat-card:hover {
  transform: translateY(-5px);
  border-color: #ff1e27;
  box-shadow: 0 20px 50px rgba(255, 30, 39, 0.35);
}

.attorney-combat-card img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  object-position: center 6%;
  transition: transform 0.5s ease;
  display: block;
}

.attorney-img-team {
  object-position: center 80% !important;
}

.attorney-img-nurlan {
  object-position: center 20% !important;
}

.attorney-img-partner {
  object-position: center 35% !important;
}

.attorney-combat-card:hover img {
  transform: scale(1.03);
}

.attorney-combat-card .info-box {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 22px;
  background: linear-gradient(0deg, #07080a 0%, rgba(7, 8, 10, 0.96) 65%, rgba(7, 8, 10, 0.35) 88%, transparent 100%);
}

/* ==========================================================================
   MATERIALS QUOTE BANNER
   ========================================================================== */
.materials-banner-wrapper {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

/* ==========================================================================
   LUXURY REDESIGNED APPLICATION FORM
   ========================================================================== */
.combat-form-wrapper {
  background: linear-gradient(145deg, #0e121b 0%, #07090e 100%);
  border: 2px solid rgba(255, 30, 39, 0.5);
  border-radius: 18px;
  padding: 36px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(255, 30, 39, 0.25);
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 6px;
}

.form-control-luxury {
  width: 100%;
  background-color: #121722;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.form-control-luxury:focus {
  outline: none;
  border-color: #ff1e27;
  background-color: #171d2b;
  box-shadow: 0 0 16px rgba(255, 30, 39, 0.35), inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.form-control-luxury::placeholder {
  color: #64748b;
  font-weight: 400;
}

/* ==========================================================================
   YANDEX / 2GIS MAP CONTAINER (Pure Dark Luxury Theme)
   ========================================================================== */
.map-container-box {
  background-color: var(--color-bg-card);
  border: 2px solid rgba(255, 30, 39, 0.45);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.85), 0 0 25px rgba(255, 30, 39, 0.2);
  height: 100%;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

#office-yandex-map, #office-2gis-map, #office-leaflet-map, #office-interactive-map {
  width: 100%;
  height: 100%;
  min-height: 460px;
  background-color: #07080a !important;
}

/* Yandex Map Inversion for dark theme */
#office-yandex-map [class*="ground-pane"],
#office-yandex-map [class*="places-pane"] > canvas,
.map-yandex-dark {
  filter: invert(90%) hue-rotate(180deg) brightness(85%) contrast(115%) !important;
}

/* Protect Markers, Popups, Controls */
#office-yandex-map [class*="controls__pane"],
#office-yandex-map [class*="balloon__layout"],
#office-yandex-map [class*="balloon__content"],
#office-yandex-map [class*="user-selection-none"],
#office-yandex-map [class*="events-pane"],
.leaflet-marker-pane,
.leaflet-popup-pane,
.custom-leaflet-marker,
.leaflet-control-container {
  filter: none !important;
}

/* Clean up attribution and watermark bars */
.leaflet-control-attribution,
.dg-control-attribution,
.leaflet-attribution-flag,
.dg-attribution {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  pointer-events: none !important;
}

.custom-2gis-marker, .custom-leaflet-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.leaflet-popup-content-wrapper, .leaflet-popup-tip, .dg-popup-content-wrapper, .dg-popup-tip {
  background: #0e1117 !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.95) !important;
  border: 1px solid rgba(255, 30, 39, 0.6) !important;
}

.leaflet-popup-content, .dg-popup-content {
  margin: 0 !important;
  line-height: 1.4 !important;
}

.leaflet-container, .dg-container {
  background: #07080a !important;
  font-family: 'Montserrat', sans-serif !important;
}

.leaflet-bar a, .dg-bar a {
  background-color: #0e1117 !important;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.leaflet-bar a:hover, .dg-bar a:hover {
  background-color: #ff1e27 !important;
  color: #ffffff !important;
}

/* ==========================================================================
   2GIS REVIEWS HORIZONTAL CAROUSEL & SMOOTH TICKER
   ========================================================================== */
.reviews-carousel-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
  padding: 0.5rem 0.25rem 1rem 0.25rem;
}

.reviews-carousel-track::-webkit-scrollbar {
  display: none;
}

.reviews-carousel-track:active {
  cursor: grabbing;
}

.review-card-item {
  flex: 0 0 390px;
  width: 390px;
  max-width: 390px;
  min-height: 240px;
}

@media (max-width: 640px) {
  .review-card-item {
    flex: 0 0 310px;
    width: 310px;
    max-width: 310px;
    min-height: 250px;
  }
}
