/* ============================================================
   Аренда спецтехники Саратов — общие стили
   Светлая строгая палитра, карточная структура
   ============================================================ */

:root {
  --bg: #f7f9fc;
  --card-bg: #ffffff;
  --text-main: #1a2332;
  --text-secondary: #5a6b7d;
  --accent: #0d4d8c;
  --accent-secondary: #1976d2;
  --border: #e3e8ef;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --font: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-secondary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--card-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

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

.logo img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.logo-text span {
  color: var(--accent);
}

.main-nav ul {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
}

.main-nav a {
  color: var(--text-main);
  font-weight: 500;
  padding: 6px 2px;
  white-space: nowrap;
}

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

.header-phone {
  flex-shrink: 0;
}

.header-phone a {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.header-phone a:hover {
  background: var(--accent-secondary);
  color: #fff;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  width: 28px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============ BREADCRUMBS ============ */
.breadcrumbs {
  padding: 16px 0 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumbs li::after {
  content: '/';
  margin-left: 8px;
  color: var(--border);
}

.breadcrumbs li:last-child::after {
  content: '';
}

.breadcrumbs a {
  color: var(--text-secondary);
}

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

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('images/hero-bg.jpg') center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 77, 140, 0.88), rgba(25, 118, 210, 0.75));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 20px;
  max-width: 820px;
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero p {
  font-size: 19px;
  margin-bottom: 28px;
  opacity: 0.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--accent-secondary);
  transform: translateY(-2px);
}

.btn-light {
  background: transparent;
  border: 2px solid #fff;
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-lg {
  font-size: 18px;
  padding: 16px 34px;
}

/* ============ SECTIONS ============ */
.section {
  padding: 56px 0;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-header .section-title {
  margin-bottom: 8px;
}

/* ============ GRID / CARDS ============ */
.grid {
  display: grid;
  gap: 24px;
}

.grid-4 {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: rgba(13, 77, 140, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--accent);
}

.card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text-main);
}

.card p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* ============ CATALOG ============ */
.catalog-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.catalog-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.catalog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.catalog-card-body {
  padding: 20px;
}

.catalog-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.catalog-card p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 16px;
}

.card-link {
  font-weight: 600;
  color: var(--accent);
}

/* ============ STEPS ============ */
.steps {
  counter-reset: step;
}

.step {
  position: relative;
  counter-increment: step;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 14px;
}

.step-num::after {
  content: counter(step);
}

/* ============ REVIEWS ============ */
.review-card {
  display: flex;
  flex-direction: column;
}

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

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-name {
  font-weight: 700;
}

.review-type {
  color: var(--text-secondary);
  font-size: 13px;
}

.review-stars {
  color: #f5a623;
  letter-spacing: 2px;
  font-size: 18px;
  margin-bottom: 10px;
}

.review-text {
  color: var(--text-secondary);
  font-size: 15px;
}

/* ============ ADVANTAGES ============ */
.advantages {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
}

/* ============ SEO TEXT ============ */
.seo-block h3 {
  font-size: 22px;
  color: var(--accent);
  margin: 24px 0 10px;
}

.seo-block h3:first-child {
  margin-top: 0;
}

.seo-block p {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* ============ PROMO ============ */
.promo-card {
  border-left: 4px solid var(--accent);
}

.promo-card h3 {
  color: var(--accent);
}

.promo-badge {
  display: inline-block;
  background: rgba(245, 166, 35, 0.15);
  color: #b5790f;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

/* ============ FAQ ============ */
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-question::after {
  content: '+';
  font-size: 26px;
  color: var(--accent);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-secondary);
}

/* ============ TABLE ============ */
.table-wrap {
  overflow-x: auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

thead th {
  background: var(--accent);
  color: #fff;
  text-align: left;
  padding: 14px 16px;
  font-weight: 600;
}

tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

tbody tr:nth-child(even) {
  background: #f2f6fb;
}

tbody tr:last-child td {
  border-bottom: none;
}

/* ============ PAGE HEADER ============ */
.page-header {
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: #fff;
  padding: 40px 0;
}

.page-header h1 {
  font-size: 34px;
  font-weight: 800;
}

/* ============ CTA ============ */
.cta-block {
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  color: #fff;
}

.cta-block h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.cta-block p {
  margin-bottom: 24px;
  opacity: 0.95;
}

.cta-phone {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.cta-phone:hover {
  color: #fff;
  opacity: 0.85;
}

/* ============ CONTACTS ============ */
.contact-info {
  margin-bottom: 16px;
}

.contact-info strong {
  color: var(--text-main);
  display: block;
  margin-bottom: 4px;
}

.contact-info p {
  color: var(--text-secondary);
}

.contact-phone-big a {
  font-size: 30px;
  font-weight: 800;
  color: var(--accent);
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--card-bg);
}

.map-wrap iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

/* ============ WORK ZONE ============ */
.zone-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.zone-tag {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* ============ FLOATING CALL BUTTON ============ */
.call-fab {
  display: none;
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(13, 77, 140, 0.4);
  z-index: 200;
  transition: all 0.3s ease;
}

.call-fab:hover {
  background: var(--accent-secondary);
  transform: scale(1.05);
}

.call-fab svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* ============ RELATED LINKS ============ */
.related-links {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.related-links h3 {
  margin-bottom: 16px;
  color: var(--accent);
}

.related-links ul {
  list-style: none;
}

.related-links li {
  margin-bottom: 10px;
}

.related-links a {
  color: var(--text-main);
}

.related-links a:hover {
  color: var(--accent);
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--text-main);
  color: #c9d4e2;
  padding: 48px 0 0;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 32px;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 17px;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #c9d4e2;
  font-size: 14px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: #8a97a8;
}

/* ============ FADE-IN ANIMATION ============ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ============ 404 ============ */
.error-page {
  text-align: center;
  padding: 80px 20px;
}

.error-page h1 {
  font-size: 80px;
  color: var(--accent);
  margin-bottom: 12px;
}

.error-page h2 {
  margin-bottom: 16px;
}

.error-page p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-nav {
    display: none;
  }

  .burger {
    display: flex;
  }

  .main-nav.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    padding: 16px 20px;
  }

  .main-nav.open ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .header-phone {
    margin-left: auto;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 26px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero p {
    font-size: 17px;
  }

  .grid-3,
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .header-phone a {
    padding: 10px 14px;
    font-size: 14px;
  }

  .logo-text {
    font-size: 15px;
  }

  .cta-block {
    padding: 28px 20px;
  }

  .call-fab {
    display: flex;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 360px;
  }

  .hero h1 {
    font-size: 25px;
  }

  .hero-content {
    padding: 40px 16px;
  }

  .contact-phone-big a {
    font-size: 24px;
  }

  .page-header h1 {
    font-size: 26px;
  }

  .header-phone {
    display: none;
  }

  .call-fab {
    display: flex;
  }
}