/* ============================================================
   ЧОП КРИСТАЛЛ — Main Stylesheet
   Dark premium corporate security theme
   ============================================================ */

/* ---- Google Font import must be first ---- */

/* ---- CSS Custom Properties ---- */
:root {
  --bg:            hsl(215, 28%, 7%);
  --bg-card:       hsl(215, 25%, 10%);
  --bg-secondary:  hsl(215, 22%, 14%);
  --bg-input:      hsl(215, 20%, 20%);
  --fg:            hsl(213, 27%, 90%);
  --fg-muted:      hsl(215, 16%, 55%);
  --fg-secondary:  hsl(213, 27%, 85%);
  --border:        hsl(215, 20%, 16%);
  --border-strong: hsl(215, 20%, 22%);
  --primary:       hsl(359, 82%, 48%);
  --primary-dim:   hsla(217, 91%, 60%, 0.15);
  --primary-glow:  hsla(217, 91%, 60%, 0.3);
  --primary-hover: hsl(217, 91%, 52%);
  --white:         #ffffff;
  --black:         #000000;
  --font:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius:        0.5rem;
  --container:     1280px;
  --header-h:      80px;
  --transition:    0.25s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
input, textarea { font-family: inherit; }

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.625rem 1.25rem;
  border-radius: 0;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 0 20px var(--primary-glow);
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 0 28px var(--primary-glow);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid hsla(217, 91%, 60%, 0.5);
}
.btn-outline:hover {
  background: var(--primary-dim);
  border-color: var(--primary);
}

.btn-ghost-border {
  background: transparent;
  color: var(--white);
  border: 1px solid hsla(255,255,255,0.1);
}
.btn-ghost-border:hover { background: hsla(255,255,255,0.05); }

.btn-lg { padding: 1rem 2rem; font-size: 1.0625rem; }
.btn-full { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: hsla(215, 28%, 7%, 0.80);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid hsla(255,255,255,0.05);
  transition: background var(--transition);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--white);
  flex-shrink: 0;
}
.logo-icon { color: var(--primary); }
.footer-logo { font-size: 1.1rem; }

/* Desktop nav */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-muted);
  transition: color var(--transition);
}
.nav-link:hover { color: var(--white); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { background: none; border: none; padding: 0; }
.nav-dropdown-trigger svg { transition: transform 0.2s ease; }
.nav-dropdown.open .nav-dropdown-trigger svg { transform: rotate(180deg); }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  min-width: 240px;
  background: var(--bg-card);
  border: 1px solid hsla(255,255,255,0.1);
  padding: 0.375rem 0;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--fg);
  transition: background var(--transition), color var(--transition);
}
.nav-dropdown-item:hover {
  background: var(--primary-dim);
  color: var(--white);
}

/* Header CTA */
.header-cta { margin-left: 1rem; }

/* Mobile toggle */
.mobile-menu-toggle {
  display: none;
  color: var(--white);
  margin-left: auto;
  padding: 0.25rem;
}

/* Mobile nav */
.nav-mobile {
  display: none;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.nav-mobile.open { max-height: 500px; }
.nav-mobile-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.5rem 1.5rem;
}
.nav-mobile-link {
  display: block;
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--fg);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.nav-mobile-link:hover { color: var(--primary); }
.nav-mobile-divider { height: 1px; background: var(--border); margin: 0.5rem 0; }

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 5rem);
  padding-bottom: 5rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* background: linear-gradient(
    to right,
    hsl(215,28%,7%) 0%,
    hsla(215,28%,7%,0.90) 40%,
    hsla(215,28%,7%,0.40) 100%
  ); */
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  mix-blend-mode: luminosity;
}
.hero-section .container { position: relative; z-index: 2; }

.hero-content { max-width: 720px; }

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.875rem;
  border-radius: 9999px;
  background: var(--primary-dim);
  border: 1px solid hsla(217, 91%, 60%, 0.2);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}

/* Hero typography */
.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 600px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Hero entrance animation */
.hero-animate {
  animation: heroIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   INNER PAGE HERO
   ============================================================ */
.inner-hero {
  position: relative;
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: 4rem;
  background: linear-gradient(
    135deg,
    hsl(215, 28%, 7%) 0%,
    hsl(215, 25%, 10%) 60%,
    hsl(215, 28%, 7%) 100%
  );
  border-bottom: 1px solid hsla(255,255,255,0.05);
  overflow: hidden;
}
.inner-hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: var(--primary-dim);
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.inner-hero-content { position: relative; z-index: 1; max-width: 760px; }
.inner-hero-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.inner-hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.inner-hero-note {
  font-size: 1rem;
  color: var(--fg-secondary);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.inner-hero-services {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  line-height: 1.65;
  padding: 0.875rem 1rem;
  border-left: 3px solid var(--primary);
  background: hsla(217,91%,60%,0.05);
  margin: 1.5rem 0 2rem;
}
.inner-hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2rem;
}
.phone-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.phone-block-icon { color: var(--primary); flex-shrink: 0; }
.phone-block-label { font-size: 0.75rem; color: var(--fg-muted); }
.phone-block-number { font-size: 1.125rem; font-weight: 700; color: var(--white); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--fg-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { opacity: 0.4; }
.breadcrumb-current { color: var(--fg-secondary); }




/* ============================================================
   STATS
   ============================================================ */
.stats-section {
  background: hsla(215,25%,10%,0.5);
  backdrop-filter: blur(8px);
  border-top: 1px solid hsla(255,255,255,0.05);
  border-bottom: 1px solid hsla(255,255,255,0.05);
  position: relative;
  z-index: 2;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 3rem 0;
}
.stat-item { text-align: center; }
.stat-value {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-section {
  padding: 6rem 0;
  background: var(--bg);
  position: relative;
}
.services-top-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, hsla(217,91%,60%,0.2), transparent);
}
.section-header { margin-bottom: 4rem; }
.section-title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section-accent-line {
  width: 80px;
  height: 4px;
  background: var(--primary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.service-card {
  position: relative;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid hsla(255,255,255,0.05);
  overflow: hidden;
  transition: border-color 0.3s ease;
  cursor: default;
}
.service-card:hover { border-color: hsla(217,91%,60%,0.3); }
.service-card-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--primary-dim), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.service-card:hover .service-card-glow { opacity: 1; }

.service-icon {
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.service-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.service-desc {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  line-height: 1.65;
}
.service-more {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.service-card:hover .service-more {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-section {
  padding: 6rem 0;
  background: hsla(215,25%,10%,0.3);
  border-top: 1px solid hsla(255,255,255,0.05);
  border-bottom: 1px solid hsla(255,255,255,0.05);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}
.about-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.about-body { color: var(--fg-muted); font-size: 1.0625rem; line-height: 1.75; }
.about-body p { margin-bottom: 1.25rem; }
.about-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.about-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  font-size: 1rem;
}
.about-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.about-visual { position: relative; }
.about-glow {
  position: absolute;
  inset: 0;
  background: hsla(217,91%,60%,0.2);
  filter: blur(100px);
  border-radius: 50%;
  pointer-events: none;
}
.about-image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid hsla(255,255,255,0.1);
  padding: 8px;
  background: var(--bg-card);
}
.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.25) saturate(1.1);
}
.about-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: hsla(215,28%,7%,0.90);
  backdrop-filter: blur(8px);
  border: 1px solid hsla(255,255,255,0.1);
}
.about-badge-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.2rem;
}
.about-badge-sub {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}
.contact-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: var(--primary-dim);
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.contact-section .container { position: relative; z-index: 1; }
.contact-card {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid hsla(255,255,255,0.1);
  padding: 3rem;
  box-shadow: 0 24px 48px rgba(0,0,0,0.4);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
.contact-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.contact-sub {
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.contact-items { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-item-icon {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-item-label {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  margin-bottom: 0.2rem;
}
.contact-item-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}
.contact-item-value--small { font-size: 1.05rem; }

.contact-form-wrap {
  background: hsla(215,28%,7%,0.5);
  border: 1px solid hsla(255,255,255,0.05);
  padding: 1.5rem;
}
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label { font-size: 0.875rem; font-weight: 500; color: var(--fg-muted); }
.form-input {
  background: var(--bg-card);
  border: 1px solid hsla(255,255,255,0.1);
  color: var(--white);
  padding: 0 1rem;
  height: 3rem;
  font-size: 0.9375rem;
  outline: none;
  border-radius: 0;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-input::placeholder { color: var(--fg-muted); }
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-dim);
}
.form-textarea {
  height: auto;
  min-height: 100px;
  padding: 0.75rem 1rem;
  resize: vertical;
}
.form-success {
  display: none;
  padding: 0.75rem 1rem;
  background: hsla(217,91%,60%,0.1);
  border: 1px solid hsla(217,91%,60%,0.3);
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 0;
}
.form-success.visible { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #000;
  border-top: 1px solid hsla(255,255,255,0.05);
  padding-top: 4rem;
  padding-bottom: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
.footer-desc {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 380px;
  margin-top: 1rem;
}
.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
  font-size: 0.875rem;
  color: var(--fg-muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid hsla(255,255,255,0.05);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}
.footer-copy, .footer-license {
  font-size: 0.875rem;
  color: var(--fg-muted);
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0s);
}
.reveal.reveal-left  { transform: translateX(-30px); }
.reveal.reveal-right { transform: translateX(30px); }
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 768px) {
  .mobile-menu-toggle { display: none !important; }
  .nav-mobile { display: none !important; }
  .hero-section { padding-top: calc(var(--header-h) + 8rem); padding-bottom: 8rem; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (max-width: 767px) {
  .nav-desktop { display: none; }
  .header-cta  { display: none; }
  .mobile-menu-toggle { display: flex; }
  .nav-mobile { display: block; }
  .section-header { text-align: left; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 1.5rem; }
}

@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}
