/* ============================================================
   ПРАВОКИП — Design System (calgarydefence.com style)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: #fff;
  color: #676767;
  font-size: 14px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
}
.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 40px;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-weight: 300;
  letter-spacing: 0.04em;
  color: #444;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.15; color: #5c6370; }
h3 { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; color: #444; }
p { color: #676767; line-height: 1.85; }

/* === NAVBAR === */
nav#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  height: 80px;
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 80px;
  gap: 40px;
}

.nav-logo {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.nav-logo-main {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #333;
}
.nav-logo-sub {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #888;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #676767;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: #333; }

.nav-phone {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  white-space: nowrap;
}
.nav-phone:hover { color: #555; }

/* Burger */
#burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
#burger span {
  display: block;
  width: 22px; height: 2px;
  background: #333;
}

/* Mobile menu */
#mobileMenu {
  display: none;
  position: fixed;
  top: 80px; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  z-index: 999;
  padding: 8px 0;
}
#mobileMenu.open { display: block; }
.mobile-link {
  display: block;
  padding: 12px 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #676767;
}
.mobile-link:hover { color: #333; }
.mobile-phone {
  display: block;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 700;
  color: #333;
}

/* === BREADCRUMBS === */
.breadcrumbs {
  padding: 100px 0 0;
}
.breadcrumbs ol {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumbs li {
  font-size: 12px;
  color: #aaa;
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumbs li a { color: #aaa; }
.breadcrumbs li a:hover { color: #555; }
.breadcrumbs li.active { color: #676767; }
.breadcrumbs li:not(:last-child)::after { content: '/'; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  white-space: nowrap;
  border-radius: 0;
}

.btn-dark {
  background: #4a5260;
  color: #fff;
  border: 2px solid #4a5260;
}
.btn-dark:hover { background: #333; border-color: #333; }

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); }

.btn-outline-dark {
  background: transparent;
  color: #333;
  border: 2px solid #333;
}
.btn-outline-dark:hover { background: #333; color: #fff; }

.btn-sm { padding: 10px 22px; font-size: 10px; }

.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #444;
  transition: color 0.15s;
}
.learn-more:hover { color: #000; }
.learn-more-circle {
  width: 24px; height: 24px;
  border: 1.5px solid #ccc;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  transition: border-color 0.15s;
}
.learn-more:hover .learn-more-circle { border-color: #444; }

/* === DIAGONAL PATTERN BG === */
.pattern-bg {
  background-color: #f5f5f5;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 4px,
    rgba(0,0,0,0.03) 4px,
    rgba(0,0,0,0.03) 5px
  );
}

/* === PAGE HERO (внутренние) === */
.page-hero {
  padding: 32px 0 60px;
  text-align: center;
}
.page-hero.pattern-bg { padding: 60px 0; }
.page-hero h1 { margin-bottom: 20px; }
.page-hero p { font-size: 16px; max-width: 680px; margin: 0 auto; }

/* === SECTION === */
section { padding: 80px 0; }

.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5c6370;
  text-align: center;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9aa0aa;
  text-align: center;
  margin-bottom: 48px;
}

/* === SERVICE CARDS === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid #e0e0e0;
}
.service-card {
  padding: 36px 28px;
  border-right: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
}
.service-card:last-child { border-right: none; }

.service-icon-wrap {
  margin-bottom: 20px;
  color: #9aa0aa;
}
.service-icon-wrap svg {
  width: 40px; height: 40px;
  stroke: #9aa0aa;
  fill: none;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 { font-size: 0.8rem; margin-bottom: 14px; }
.service-card p { font-size: 13px; line-height: 1.8; flex: 1; margin-bottom: 20px; }

/* === DARK STATS SECTION === */
.stats-section {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.stats-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/stats-bg.jpg');
  background-size: cover;
  background-position: center;
  background-color: #5c6370;
  filter: brightness(0.45);
}
.stats-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  width: 100%;
  padding: 80px 0;
}
.stat-item { padding: 0 40px; }
.stat-item + .stat-item {
  border-left: 1px solid rgba(255,255,255,0.15);
}
.stat-over {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}
.stat-num {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  color: #fff;
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* === STEPS SECTION === */
.steps-section {
  background: #fff;
  text-align: center;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 64px;
}
.step-circle {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  font-weight: 300;
  color: #9aa0aa;
  margin: 0 auto 20px;
}
.step-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #444;
  margin-bottom: 12px;
}
.step-video {
  margin-top: 20px;
  aspect-ratio: 16/9;
  background: #ddd;
  position: relative;
  overflow: hidden;
}
.step-video-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: #c8cdd4;
}
.play-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.8);
  display: flex; align-items: center; justify-content: center;
}
.play-btn::after {
  content: '';
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent rgba(255,255,255,0.9);
  margin-left: 3px;
}

/* === CTA GRAY === */
.cta-gray {
  background: #5c6370;
  padding: 60px 0;
  text-align: center;
}
.cta-gray .logo-line {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 4px;
}
.cta-gray .logo-sub {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 32px;
}
.cta-gray .call-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}
.cta-gray .big-phone {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}
.cta-gray .btn-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* === FOOTER === */
footer {
  background: #3a3f47;
  padding: 64px 0 0;
  color: rgba(255,255,255,0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
}

.footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.footer-contact-row svg {
  width: 18px; height: 18px;
  stroke: rgba(255,255,255,0.4);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  flex-shrink: 0;
  margin-top: 2px;
}
.footer-contact-row span, .footer-contact-row a {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}
.footer-contact-row a:hover { color: #fff; }

.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: color 0.15s;
}
.footer-links a:hover { color: #fff; }

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  transition: all 0.15s;
}
.footer-social a:hover { border-color: #fff; color: #fff; }

.footer-bottom {
  padding: 20px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

/* === ABOUT SECTION (text + image) === */
.about-section {
  padding: 80px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: start;
}
.about-grid.reverse { grid-template-columns: 420px 1fr; }
.about-grid.reverse .about-text { order: 2; }
.about-grid.reverse .about-img { order: 1; }

.about-text h2 { text-align: left; margin-bottom: 20px; }
.about-text p { margin-bottom: 20px; font-size: 15px; }
.about-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}
.about-img-placeholder {
  width: 100%;
  height: 320px;
  background: #dde0e4;
  display: flex; align-items: center; justify-content: center;
  color: #9aa0aa;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card:nth-child(2) { border-right: none; }
  .service-card:nth-child(3), .service-card:nth-child(4) { border-top: 1px solid #e0e0e0; }
  .service-card:nth-child(4) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .about-grid, .about-grid.reverse { grid-template-columns: 1fr; }
  .about-grid.reverse .about-text, .about-grid.reverse .about-img { order: unset; }
}

@media (max-width: 768px) {
  .container, .container-narrow { padding: 0 20px; }
  section { padding: 56px 0; }
  .nav-links, .nav-phone { display: none; }
  #burger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { border-right: none; border-top: 1px solid #e0e0e0; }
  .service-card:first-child { border-top: none; }
  .stats-inner { grid-template-columns: 1fr; gap: 0; }
  .stat-item + .stat-item { border-left: none; border-top: 1px solid rgba(255,255,255,0.15); }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-gray .btn-row { flex-direction: column; align-items: center; }
}
