/* ============================================================
   Волжский крановый завод — лендинг
   Палитра: индустриальный темно-серый, белый, сигнальный желтый/оранжевый
   ============================================================ */

:root {
  /* Цвета */
  --gray-900: #15181c;
  --gray-800: #1e2228;
  --gray-700: #2a2f37;
  --gray-600: #3a414b;
  --gray-500: #5b6470;
  --gray-400: #8b95a3;
  --gray-300: #c4ccd6;
  --gray-200: #e2e7ee;
  --gray-100: #f2f5f9;
  --white: #ffffff;

  --accent: #ffb800;        /* сигнальный желтый */
  --accent-2: #ff7a18;      /* оранжевый */
  --accent-dark: #c98a00;
  --signal: #ffd200;

  --success: #2ea043;

  /* Тени */
  --shadow-sm: 0 1px 2px rgba(15, 18, 22, 0.08);
  --shadow: 0 8px 24px rgba(15, 18, 22, 0.12);
  --shadow-lg: 0 24px 60px rgba(15, 18, 22, 0.22);

  /* Радиусы */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;

  /* Типографика */
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ============================================================
   Кнопки
   ============================================================ */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--gray-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255, 184, 0, 0.35); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--accent); color: var(--gray-900); }
.btn--primary:hover { background: var(--signal); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: none; background: transparent; }

.btn--lg { padding: 16px 32px; font-size: 1.05rem; }
.btn--sm { padding: 9px 18px; font-size: 0.85rem; }
.btn--block { width: 100%; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(21, 24, 28, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled {
  background: rgba(21, 24, 28, 0.98);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  height: 48px;
  width: auto;
  border-radius: var(--r-sm);
  display: block;
}
.brand-logo--footer {
  height: 44px;
}
.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav a {
  color: var(--gray-300);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.nav a:hover { color: var(--white); }
.nav a:hover::after { width: 100%; }
.header-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  width: 26px; height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--gray-900);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(21,24,28,0.96) 0%, rgba(21,24,28,0.7) 55%, rgba(21,24,28,0.4) 100%),
    repeating-linear-gradient(
      45deg,
      #20242b 0 14px,
      #171a1f 14px 28px
    );
  filter: saturate(0.9);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 184, 0, 0.18), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(255, 122, 24, 0.12), transparent 50%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 120px 24px 140px;
}
.hero-content { max-width: 760px; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--accent);
  padding: 6px 14px;
  border: 1px solid rgba(255, 184, 0, 0.4);
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  line-height: 1.05;
  color: var(--white);
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}
.accent { color: var(--accent); }
.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--gray-300);
  max-width: 620px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.hero-stats span {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-stripe {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
}

/* ============================================================
   Sections — общие
   ============================================================ */
.section { padding: 100px 0; }
.section--dark {
  background: var(--gray-900);
  color: var(--gray-200);
}
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  color: var(--gray-900);
  margin-bottom: 16px;
}
.section-title--light { color: var(--white); }
.section-sub {
  color: var(--gray-500);
  font-size: 1.05rem;
}
.section-head--light .section-tag { color: var(--accent); }
.section-head--light .section-title { color: var(--white); }

/* ============================================================
   Каталог — карточки
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.product-media {
  position: relative;
  height: 200px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-start;
}
.product-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21,24,28,0.1), rgba(21,24,28,0.55));
}
.product-media--1 {
  background-image:
    linear-gradient(180deg, rgba(21,24,28,0.2), rgba(21,24,28,0.65)),
    repeating-linear-gradient(90deg, #2a2f37 0 30px, #232830 30px 60px);
}
.product-media--2 {
  background-image:
    linear-gradient(180deg, rgba(21,24,28,0.2), rgba(21,24,28,0.65)),
    repeating-linear-gradient(45deg, #323842 0 20px, #262c35 20px 40px);
}
.product-media--3 {
  background-image:
    linear-gradient(180deg, rgba(21,24,28,0.2), rgba(21,24,28,0.65)),
    repeating-linear-gradient(0deg, #2d333c 0 24px, #21262e 24px 48px);
}
.product-badge {
  position: relative;
  z-index: 2;
  margin: 16px;
  background: var(--accent);
  color: var(--gray-900);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.product-body { padding: 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.product-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--gray-900);
}
.product-desc { color: var(--gray-500); font-size: 0.95rem; }
.specs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  margin: 4px 0 8px;
}
.specs li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
}
.specs span { color: var(--gray-500); }
.specs strong { color: var(--gray-900); font-weight: 600; }
.product-body .btn { margin-top: auto; }

/* ============================================================
   Преимущества
   ============================================================ */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.advantage {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: var(--r);
  padding: 32px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.advantage:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: var(--gray-700);
}
.advantage-icon {
  width: 56px; height: 56px;
  border-radius: var(--r-sm);
  background: rgba(255, 184, 0, 0.12);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.advantage-icon svg { width: 30px; height: 30px; }
.advantage h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 10px;
}
.advantage p { color: var(--gray-300); font-size: 0.95rem; }

/* ============================================================
   Галерея проектов
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 18px;
}
.gallery-item {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21,24,28,0.1) 0%, rgba(21,24,28,0.85) 100%);
  transition: background 0.3s ease;
  z-index: 1;
}
.gallery-item:hover::before {
  background: linear-gradient(180deg, rgba(255,184,0,0.1) 0%, rgba(21,24,28,0.9) 100%);
}
.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 22px 24px;
  color: var(--white);
}
.gallery-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--gray-900);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.gallery-item h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 4px;
}
.gallery-item p { font-size: 0.88rem; color: var(--gray-300); }

.gallery-item--1 {
  grid-column: span 2; grid-row: span 2;
  background-image:
    repeating-linear-gradient(90deg, #343a44 0 28px, #262c35 28px 56px),
    linear-gradient(180deg, rgba(21,24,28,0.1), rgba(21,24,28,0.85));
}
.gallery-item--2 {
  grid-column: span 2;
  background-image:
    repeating-linear-gradient(45deg, #2d333d 0 22px, #1f2530 22px 44px),
    linear-gradient(180deg, rgba(21,24,28,0.1), rgba(21,24,28,0.85));
}
.gallery-item--3 {
  background-image:
    repeating-linear-gradient(0deg, #323842 0 18px, #232830 18px 36px),
    linear-gradient(180deg, rgba(21,24,28,0.1), rgba(21,24,28,0.85));
}
.gallery-item--4 {
  grid-column: span 2;
  background-image:
    repeating-linear-gradient(60deg, #2a303a 0 24px, #1c222b 24px 48px),
    linear-gradient(180deg, rgba(21,24,28,0.1), rgba(21,24,28,0.85));
}
.gallery-item--5 {
  background-image:
    repeating-linear-gradient(120deg, #333943 0 20px, #22272f 20px 40px),
    linear-gradient(180deg, rgba(21,24,28,0.1), rgba(21,24,28,0.85));
}

/* ============================================================
   Форма + Контакты
   ============================================================ */
.leads-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}
.lead-form-wrap .section-tag { display: inline-block; margin-bottom: 12px; }
.lead-form-wrap .section-title { text-align: left; margin-bottom: 12px; }
.lead-sub { color: var(--gray-300); margin-bottom: 28px; }

.lead-form {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { color: var(--gray-300); font-size: 0.85rem; font-weight: 500; }
.field input,
.field select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  background: var(--gray-900);
  border: 1px solid var(--gray-600);
  border-radius: var(--r-sm);
  color: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input::placeholder { color: var(--gray-500); }
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.25);
}
.field select { cursor: pointer; }
.field--check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  color: var(--gray-300);
  font-size: 0.85rem;
}
.field--check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.form-success {
  color: var(--accent);
  font-weight: 600;
  text-align: center;
  padding: 12px;
  background: rgba(255, 184, 0, 0.1);
  border-radius: var(--r-sm);
}

.contacts-card {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: var(--r-lg);
  padding: 32px;
}
.contacts-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 24px;
}
.contacts-list { display: flex; flex-direction: column; gap: 22px; margin-bottom: 28px; }
.contacts-list li { display: flex; gap: 16px; align-items: flex-start; }
.contacts-ico {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: rgba(255, 184, 0, 0.12);
  color: var(--accent);
  display: grid; place-items: center;
}
.contacts-ico svg { width: 24px; height: 24px; }
.contacts-list strong { color: var(--white); font-weight: 600; }
.contacts-list div { color: var(--gray-300); font-size: 0.95rem; }
.contacts-list a:hover { color: var(--accent); }
.contacts-note {
  border-top: 1px solid var(--gray-700);
  padding-top: 24px;
}
.contacts-note p { color: var(--gray-300); margin-bottom: 16px; font-size: 0.9rem; }

/* ============================================================
   Calc CTA strip
   ============================================================ */
.calc-strip {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  padding: 56px 0;
}
.calc-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.calc-inner h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--gray-900);
  margin-bottom: 6px;
}
.calc-inner p { color: rgba(21, 24, 28, 0.8); font-size: 1.05rem; }
.calc-strip .btn--primary {
  background: var(--gray-900);
  color: var(--white);
}
.calc-strip .btn--primary:hover { background: var(--gray-700); box-shadow: 0 10px 24px rgba(0,0,0,0.3); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--gray-900);
  border-top: 4px solid var(--accent);
  padding: 48px 0 32px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 600;
}
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.footer-nav a { color: var(--gray-400); font-size: 0.95rem; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--accent); }
.footer-copy { color: var(--gray-500); font-size: 0.85rem; }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 960px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery-item--1 { grid-column: span 2; grid-row: span 2; }
  .gallery-item--2 { grid-column: span 2; }
  .gallery-item--4 { grid-column: span 2; }
  .leads-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    background: var(--gray-900);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--gray-700);
    box-shadow: var(--shadow);
  }
  .brand-text { font-size: 0.95rem; }
  .section { padding: 70px 0; }
  .hero-inner { padding: 90px 24px 110px; }
  .hero-stats { gap: 28px; }
  .hero-stats strong { font-size: 1.7rem; }
}

@media (max-width: 540px) {
  .cards-grid { grid-template-columns: 1fr; }
  .advantages-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 180px; }
  .gallery-item--1,
  .gallery-item--2,
  .gallery-item--4 { grid-column: span 1; grid-row: span 1; }
  .field-row { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .calc-inner { flex-direction: column; align-items: flex-start; }
  .calc-inner .btn { width: 100%; }
}

/* ============================================================
   Анимации появления
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .product-card,
  .advantage,
  .gallery-item,
  .section-head {
    animation: rise 0.6s ease both;
  }
  @keyframes rise {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
