/* Промкровля hero — pixel-aligned PoC for MODX template
   Палитра: navy #0E2A47, accent orange #FF7A1A, light bg #F5F7FB */

:root {
  --navy-900: #0a1f37;
  --navy-800: #0e2a47;
  --navy-700: #1a3a5e;
  --navy-100: #e6ecf3;
  --orange-600: #e6630a;
  --orange-500: #ff7a1a;
  --orange-100: #fff1e3;
  --ink-900: #0d1422;
  --ink-700: #344256;
  --ink-500: #6b7a90;
  --ink-300: #aab5c4;
  --bg-soft: #f5f7fb;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-md: 0 10px 30px rgba(14, 42, 71, 0.08);
  --shadow-lg: 0 20px 60px rgba(14, 42, 71, 0.18);
  --container: 1240px;
  --header-h: 80px;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--navy-100);
  height: var(--header-h);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-text {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--navy-800);
}

.primary-nav {
  flex: 1;
}

.primary-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  text-decoration: none;
  color: var(--ink-700);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--orange-500);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.primary-nav a:hover {
  color: var(--navy-800);
}
.primary-nav a:hover::after {
  transform: scaleX(1);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--navy-800);
  white-space: nowrap;
}

.phone-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--orange-100);
  color: var(--orange-600);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}
.btn:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--orange-500);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(255, 122, 26, 0.35);
}
.btn-primary:hover {
  background: var(--orange-600);
  box-shadow: 0 10px 24px rgba(255, 122, 26, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--navy-800);
  border: 1.5px solid var(--navy-100);
}
.btn-ghost:hover {
  border-color: var(--navy-800);
  background: var(--bg-soft);
}

.btn-lg {
  padding: 14px 24px;
  font-size: 16px;
  border-radius: var(--radius-md);
}
.btn-block {
  width: 100%;
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1.5px solid var(--navy-100);
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(
      1200px 480px at 85% -20%,
      rgba(255, 122, 26, 0.12),
      transparent 60%
    ),
    radial-gradient(
      900px 600px at -10% 120%,
      rgba(14, 42, 71, 0.08),
      transparent 60%
    ),
    linear-gradient(180deg, #fbfcfe 0%, #eef3fa 100%);
  padding: 72px 0 0;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 60px;
  align-items: center;
  padding-bottom: 80px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-600);
  background: var(--orange-100);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.08;
  font-weight: 800;
  color: var(--navy-900);
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.hero h1 .accent {
  color: var(--orange-500);
  position: relative;
  display: inline-block;
}
.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 8px;
  background: rgba(255, 122, 26, 0.18);
  z-index: -1;
  border-radius: 2px;
}

.lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-700);
  max-width: 540px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--navy-100);
  gap: 24px;
}

.hero-trust li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-trust strong {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy-800);
  line-height: 1;
}
.hero-trust span {
  font-size: 13px;
  color: var(--ink-500);
  line-height: 1.4;
}

/* ---------- Hero card ---------- */
.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--navy-100);
  position: relative;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -8px;
  background: linear-gradient(135deg, var(--orange-500) 0%, transparent 50%);
  border-radius: calc(var(--radius-lg) + 8px);
  z-index: -1;
  opacity: 0.18;
  filter: blur(20px);
}

.card-head h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy-900);
}
.card-head p {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--ink-500);
  line-height: 1.5;
}

.quick-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quick-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-700);
}

.quick-form input,
.quick-form select {
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1.5px solid var(--navy-100);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--ink-900);
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.quick-form input:focus,
.quick-form select:focus {
  outline: none;
  border-color: var(--orange-500);
  background: var(--white);
}

.form-note {
  font-size: 12px;
  color: var(--ink-500);
  text-align: center;
  margin: 4px 0 0;
}

.form-success {
  margin: 8px 0 0;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #0a6e3d;
  background: #e6f7ee;
  border-radius: var(--radius-sm);
  text-align: center;
}

/* ---------- Marquee ---------- */
.hero-marquee {
  background: var(--navy-800);
  color: var(--white);
  overflow: hidden;
  padding: 18px 0;
}

.marquee-track {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  animation: marquee 35s linear infinite;
}

.marquee-track span {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
}

.marquee-track span:nth-child(odd) {
  color: var(--orange-500);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- PoC footer ---------- */
.poc-footer {
  padding: 32px 0;
  border-top: 1px solid var(--navy-100);
  background: var(--bg-soft);
}
.poc-footer p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-500);
  text-align: center;
  line-height: 1.6;
}

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .primary-nav ul {
    gap: 20px;
  }
  .primary-nav a {
    font-size: 14px;
  }
  .phone {
    display: none;
  }
  .hero-inner {
    gap: 40px;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  :root {
    --header-h: 64px;
  }

  .container {
    padding: 0 16px;
  }

  .primary-nav {
    display: none;
  }
  .burger {
    display: inline-flex;
  }

  .header-inner {
    gap: 12px;
  }
  .logo-text {
    font-size: 16px;
  }

  .header-cta .btn-primary {
    display: none;
  }

  .hero {
    padding: 40px 0 0;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 48px;
  }

  .hero h1 {
    font-size: clamp(24px, 6.4vw, 30px);
    line-height: 1.15;
  }
  .hero h1 br {
    display: none;
  }
  .lede {
    overflow-wrap: break-word;
  }
  .lede {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
  }

  .hero-trust {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 20px;
  }
  .hero-trust li {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
  }
  .hero-trust strong {
    font-size: 20px;
  }

  .hero-card {
    padding: 24px;
  }
  .card-head h2 {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
