:root {
  --bg-dark: #080405;
  --bg-dark-2: #0b0d12;
  --bg-light: #f5f5f5;
  --bg-white: #ffffff;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --text-dark: #111111;
  --text-dark-muted: #555555;
  --accent: #e0a028;
  --accent-hover: #c98c1c;
  --line: rgba(255, 255, 255, 0.12);
  --line-dark: rgba(0, 0, 0, 0.08);
  --radius: 8px;
  --container: 1180px;
  --header-h: 78px;
  --font: "Manrope", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(8, 4, 5, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(8, 4, 5, 0.94);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-znak {
  width: 42px;
  height: 42px;
}

.logo-word {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 4px;
}

.logo-word strong {
  font-size: 18px;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
}

.logo-word span {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #7ea0ff;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}

.nav a {
  opacity: 0.9;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav a:hover {
  opacity: 1;
  color: var(--accent);
}

.nav-phone {
  font-weight: 600;
  white-space: nowrap;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  position: relative;
}

.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #fff;
}

.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

/* Hero */
.hero {
  min-height: 100vh;
  padding: calc(var(--header-h) + 48px) 0 72px;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(38, 59, 150, 0.28), transparent 50%),
    radial-gradient(ellipse at 10% 80%, rgba(224, 160, 40, 0.12), transparent 45%),
    var(--bg-dark);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-title {
  margin: 0 0 24px;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-sub {
  margin: 0;
  max-width: 520px;
  font-size: clamp(16px, 1.5vw, 22px);
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  min-height: 520px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(27, 29, 76, 0.9), rgba(8, 4, 5, 0.4)),
    url("../assets/cases/promo-baikal.png") center/cover no-repeat;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8, 4, 5, 0.65));
  pointer-events: none;
}

.hero-brand {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px;
}

.hero-brand img {
  width: min(280px, 70%);
  margin: 0 auto 18px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45));
}

.hero-brand p {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

/* About */
.about {
  padding: 90px 0;
  background: var(--bg-dark-2);
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.about-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 3vw, 42px);
}

.about-copy p {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 18px;
  max-width: 520px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 32px;
}

.stat {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.stat strong {
  display: block;
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 4px;
}

.stat span {
  font-size: 13px;
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-hover);
}

.btn-dark {
  background: #111;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-ghost:hover {
  border-color: #fff;
}

.about-panel {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #111;
  min-height: 360px;
  display: grid;
  grid-template-rows: 1fr auto;
}

.about-panel-media {
  background:
    linear-gradient(180deg, rgba(8, 4, 5, 0.1), rgba(8, 4, 5, 0.75)),
    url("../assets/cases/dusha-security.jpg") center/cover no-repeat;
  min-height: 280px;
}

.about-panel-body {
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #0f1118;
}

.about-panel-body h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.about-panel-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* Services */
.services {
  padding: 90px 0;
  background: var(--bg-white);
  color: var(--text-dark);
}

.section-head {
  margin-bottom: 36px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3vw, 40px);
}

.section-head p {
  margin: 0;
  color: var(--text-dark-muted);
  max-width: 640px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  padding: 28px 24px;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  background: #fff;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  border-color: rgba(224, 160, 40, 0.45);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.service-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.service-card p {
  margin: 0;
  color: var(--text-dark-muted);
  flex: 1;
}

.service-card .price {
  margin-top: 18px;
  font-weight: 600;
  color: var(--text-dark);
}

/* Cases */
.cases {
  padding: 90px 0 70px;
  background: var(--bg-light);
  color: var(--text-dark);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.case-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.case-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.case-card-media {
  aspect-ratio: 16 / 11;
  background: #111 center/cover no-repeat;
  position: relative;
}

.case-card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.case-card-body h3 {
  margin: 0;
  font-size: 22px;
}

.case-card-body p {
  margin: 0;
  color: var(--text-dark-muted);
  font-size: 15px;
  flex: 1;
}

.case-meta {
  font-size: 13px;
  color: #888;
}

.case-more {
  display: inline-flex;
  margin-top: 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
}

.case-card.is-hidden {
  display: none;
}

.cases-more-wrap {
  margin-top: 36px;
  text-align: center;
}

/* Contact strip */
.contact-strip {
  padding: 80px 0;
  background: var(--bg-dark);
  border-top: 1px solid var(--line);
}

.contact-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.contact-strip h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-strip p {
  margin: 0;
  color: var(--text-muted);
}

.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  padding: 28px 0 18px;
  background: #050507;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand .logo-znak {
  width: 28px;
  height: 28px;
}

.footer-brand .logo-word strong {
  font-size: 14px;
}

.footer-brand .logo-word span {
  font-size: 10px;
}

.footer-brand p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  max-width: 320px;
  line-height: 1.45;
}

.footer-col h4 {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.footer-col a,
.footer-col p {
  display: block;
  margin: 0 0 6px;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.footer-bottom a:hover {
  color: #fff;
}

.legal-line {
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  line-height: 1.5;
}

/* Cookie */
.cookie {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  width: min(360px, calc(100vw - 32px));
  background: #fff;
  color: #111;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  display: none;
}

.cookie.is-open {
  display: block;
}

.cookie h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.cookie p {
  margin: 0 0 14px;
  font-size: 14px;
  color: #444;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cookie-actions .btn {
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
}

.cookie-link {
  background: none;
  border: none;
  color: #111;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  background: #fff;
  color: #111;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #f1f1f1;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.modal-dialog h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.modal-dialog > p {
  margin: 0 0 20px;
  color: #666;
}

.form-row {
  margin-bottom: 14px;
}

.form-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fafafa;
}

.form-row textarea {
  min-height: 90px;
  resize: vertical;
}

.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: #444;
  margin: 8px 0 18px;
}

.checkbox input {
  margin-top: 3px;
}

.checkbox a {
  color: var(--accent);
  text-decoration: underline;
}

.form-success {
  display: none;
  padding: 16px;
  border-radius: 12px;
  background: #f4faf2;
  color: #1e5b24;
  margin-bottom: 12px;
}

.form-success.is-visible {
  display: block;
}

/* Legal pages */
.legal-page {
  min-height: 100vh;
  background: #f7f7f7;
  color: #111;
}

.legal-page .site-header {
  background: rgba(8, 4, 5, 0.96);
}

.legal-wrap {
  padding: calc(var(--header-h) + 40px) 0 60px;
}

.legal-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  max-width: 900px;
  margin: 0 auto;
}

.legal-card h1 {
  margin: 0 0 18px;
  font-size: 34px;
}

.legal-card h2 {
  margin: 28px 0 10px;
  font-size: 20px;
}

.legal-card p,
.legal-card li {
  color: #444;
  font-size: 15px;
  line-height: 1.65;
}

.legal-card ul {
  padding-left: 20px;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0;
  background: rgba(8, 4, 5, 0.98);
  z-index: 99;
  padding: 24px;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .burger {
    display: inline-flex;
  }

  .hero-grid,
  .about-grid,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 360px;
  }

  .services-grid,
  .cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .services-grid,
  .cases-grid {
    grid-template-columns: 1fr;
  }

  .contact-strip-inner {
    align-items: flex-start;
  }

  .legal-card {
    padding: 24px 18px;
  }
}
