/* ============================================
   Молоток v2 — Аренда компрессора в Новосибирске
   Минимализм • Воздух • Контраст • Mobile-first
   ============================================ */

/* --- Reset & Variables --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #1a1a2e;
  --text-secondary: #64748b;
  --accent: #f97316;
  --accent-hover: #ea580c;
  --accent-light: #fff7ed;
  --border: #e2e8f0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 8px -4px rgba(0,0,0,0.04);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --max-w: 1120px;
  --header-h: 68px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

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

/* --- Typography --- */
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
.section-title { margin-bottom: 8px; }
.section-desc { color: var(--text-secondary); font-size: 1.05rem; max-width: 600px; margin-bottom: 48px; }

/* --- Header --- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.25rem;
  color: var(--text);
}

.logo__icon {
  width: 36px; height: 36px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

.nav { display: flex; gap: 32px; }
.nav a {
  font-size: 0.92rem; font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  position: relative;
}
.nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--accent); transition: width 0.2s;
  border-radius: 2px;
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }

.header__phone {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.95rem;
  color: var(--accent);
  transition: color 0.2s;
  white-space: nowrap;
}
.header__phone:hover { color: var(--accent-hover); }

.mobile-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--text); padding: 8px; }

/* --- Hero --- */
.hero {
  padding: calc(var(--header-h) + 48px) 0 80px;
  background: linear-gradient(135deg, #fff 0%, var(--accent-light) 100%);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(249,115,22,0.1);
  color: var(--accent);
  font-size: 0.85rem; font-weight: 600;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero h1 span { color: var(--accent); }

.hero__desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin: 16px 0 28px;
  max-width: 480px;
  line-height: 1.6;
}

.hero__price-block {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 32px;
}

.hero__price { font-size: 3rem; font-weight: 800; color: var(--accent); line-height: 1; }
.hero__price-label { color: var(--text-secondary); font-size: 0.95rem; }

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

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600; font-size: 0.95rem;
  border: none; cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(249,115,22,0.3);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249,115,22,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.hero__image {
  display: flex; align-items: center; justify-content: center;
}

.hero__visual {
  width: 100%; max-width: 420px;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--accent-light), #fff);
  border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px;
  position: relative;
}

.hero__visual-icon { font-size: 4rem; color: var(--accent); opacity: 0.5; }

.hero__benefits {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px;
}
.hero__benefits span {
  padding: 6px 14px;
  background: #fff;
  border-radius: 100px;
  font-size: 0.82rem; font-weight: 500;
  box-shadow: var(--shadow);
}

/* --- Section --- */
.section { padding: 80px 0; }

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border: 1px solid var(--border);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.feature-card__icon {
  width: 48px; height: 48px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.6; }

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  gap: 12px;
}

.pricing-card {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.pricing-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.pricing-card--header {
  background: transparent;
  border-color: transparent;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card--highlight {
  border-color: var(--accent);
  background: var(--accent-light);
}

.pricing-card__name { font-weight: 600; }
.pricing-card__spec { color: var(--text-secondary); font-size: 0.92rem; }
.pricing-card__price { font-weight: 700; font-size: 1.15rem; white-space: nowrap; }

.pricing-note { margin-top: 16px; color: var(--text-secondary); font-size: 0.88rem; }

/* --- Reviews --- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.review-card__header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 14px;
}

.review-card__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
  flex-shrink: 0;
}

.review-card__name { font-weight: 600; font-size: 0.95rem; }
.review-card__stars { color: #fbbf24; font-size: 0.85rem; }
.review-card__text { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.7; }

/* --- Steps --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.step-card__num {
  width: 48px; height: 48px; margin: 0 auto 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.2rem;
}

.step-card h3 { margin-bottom: 8px; }
.step-card p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.6; }

/* --- CTA --- */
.cta {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 64px 0;
}

.cta h2 { color: #fff; margin-bottom: 12px; }
.cta p { opacity: 0.9; margin-bottom: 28px; font-size: 1.05rem; }

.cta .btn {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.cta .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }

.cta__phone {
  display: block; margin-top: 16px;
  font-size: 1.5rem; font-weight: 700;
  color: #fff;
}

/* --- Footer --- */
.footer {
  background: var(--text);
  color: #fff;
  padding: 48px 0 32px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer h4 { font-size: 1rem; font-weight: 600; margin-bottom: 16px; color: #fff; }
.footer p, .footer a { color: rgba(255,255,255,0.7); font-size: 0.9rem; line-height: 2; }
.footer a:hover { color: var(--accent); }

.footer__phone { font-size: 1.15rem; font-weight: 600; color: #fff !important; }
.footer__socials { display: flex; gap: 12px; margin-top: 16px; }
.footer__socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
}
.footer__socials a:hover { background: var(--accent); color: #fff; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex; justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Mobile Nav --- */
@media (max-width: 768px) {
  .nav {
    display: none;
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }

  .nav.open { display: flex; }

  .nav a {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
  }

  .mobile-toggle { display: block; }
  .header__phone { display: none; }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .hero__desc { margin-left: auto; margin-right: auto; }
  .hero__price-block { justify-content: center; }
  .hero__actions { justify-content: center; }

  .features-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .section-title { text-align: center; }
  .section-desc { margin-left: auto; margin-right: auto; text-align: center; }
}

@media (max-width: 480px) {
  .hero { padding-top: calc(var(--header-h) + 24px); }
  .steps-grid { grid-template-columns: 1fr; }
  .hero__price { font-size: 2.2rem; }
}

/* --- Modal --- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open {
  display: flex;
}
.modal {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 36px 32px 28px;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 25px 60px rgba(0,0,0,.3);
  animation: modalIn .25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(30px) scale(.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-secondary);
  line-height: 1;
  padding: 4px;
  transition: color .15s;
}
.modal__close:hover {
  color: var(--text);
}
.modal__status {
  margin-top: 12px;
  text-align: center;
  font-size: .88rem;
}
