/* assets/css/main.css - Стили сайта Грунтовоз.рф (Теплый терракотово-коричневый стиль) */
:root {
  /* Теплая земляная палитра */
  --primary: #d97706; /* насыщенный янтарный */
  --primary-hover: #b45309; /* глубокий терракотовый */
  --primary-light: #fef3c7;
  --accent: #ca8a04;
  
  /* Коричневые и глубокие земляные тона вместо холодного темно-серого */
  --earth-dark: #271c19; /* глубокий кофейно-земляной оттенок */
  --earth-header: #34241e; /* благородный шоколадно-коричневый */
  --earth-surface: #423029; /* карточки и темные блоки */
  --earth-card: #523d34;
  --earth-border: #634b41;

  --text-main: #271c19;
  --text-muted: #6b5c56;
  --text-light: #f5ede8;
  
  --bg-light: #fcfaf8; /* мягкий теплый фон слоновой кости */
  --bg-card: #ffffff;
  --border: #ebdcd4; /* мягкая теплая граница */
  --success: #15803d; /* лесной зеленый */
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(52, 36, 30, 0.96); /* теплый темно-коричневый */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: 0 4px 20px rgba(39, 28, 25, 0.15);
}

.top-bar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  padding: 7px 0;
  color: #dfcfc7;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-badges {
  display: flex;
  gap: 16px;
  align-items: center;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 6px #22c55e;
}

.main-nav {
  padding: 10px 0;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

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

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
}

.logo-text h1 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
  color: #fff;
}

.logo-text h1 span {
  color: #f59e0b;
}

.logo-desc {
  font-size: 11px;
  color: #cfbcb3;
  letter-spacing: 0.2px;
}

/* Навигационное меню - компактные и аккуратные размеры */
.nav-links {
  display: flex;
  list-style: none;
  gap: 16px;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  color: #f5ede8;
  padding: 6px 4px;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #fbbf24;
}

/* Контакты в шапке с крупным, легко читаемым телефоном */
.header-contacts {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.phone-link {
  display: flex;
  flex-direction: column;
  text-align: right;
  text-decoration: none;
}

.phone-number {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.2px;
  transition: color 0.2s;
}

.phone-number:hover {
  color: #fbbf24;
}

.phone-sub {
  font-size: 11px;
  color: #4ade80;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.phone-sub::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.45);
}

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

.btn-outline:hover {
  border-color: #f59e0b;
  color: #f59e0b;
  background: rgba(255, 255, 255, 0.05);
}

.btn-tg {
  background: #0088cc;
  color: #fff;
}

.btn-tg:hover {
  background: #0077b5;
}

.btn-wa {
  background: #25d366;
  color: #fff;
}

.btn-wa:hover {
  background: #20ba59;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(39, 28, 25, 0.92) 0%, rgba(52, 36, 30, 0.88) 100%), url('../images/fleet/samosval_vyvoz.jpg') center/cover no-repeat;
  color: #fff;
  padding: 50px 0 70px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-content h2 {
  font-size: 38px;
  line-height: 1.18;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.hero-content h2 span {
  color: #fbbf24;
}

.hero-sub {
  font-size: 17px;
  color: #e5d7d0;
  line-height: 1.5;
  margin-bottom: 24px;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.hero-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 14px;
  border-radius: 10px;
}

.hero-feature-item .icon {
  font-size: 20px;
}

.hero-feature-item h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.hero-feature-item p {
  font-size: 12px;
  color: #cfbcb3;
  line-height: 1.35;
}

/* Calculator Widget */
.calc-card {
  background: #ffffff;
  color: var(--text-main);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 20px 45px rgba(25, 15, 12, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.calc-header {
  margin-bottom: 18px;
}

.calc-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--earth-dark);
}

.calc-header p {
  font-size: 13px;
  color: var(--text-muted);
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #3b2a24;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff9f6;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: var(--primary);
  background: #fff;
}

.range-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.range-input {
  flex-grow: 1;
  accent-color: var(--primary);
}

.range-value {
  font-weight: 800;
  font-size: 16px;
  color: var(--earth-dark);
  min-width: 60px;
  text-align: right;
}

.calc-result-box {
  background: #fdf6f0;
  border-radius: 10px;
  padding: 16px;
  margin: 16px 0;
  border-left: 4px solid var(--primary);
}

.calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.calc-result-row:last-child {
  margin-bottom: 0;
}

.calc-result-label {
  font-size: 13px;
  color: var(--text-muted);
}

.calc-result-val {
  font-weight: 600;
  font-size: 14px;
  color: var(--earth-dark);
}

.calc-total {
  font-size: 24px;
  font-weight: 800;
  color: #b45309;
}

/* Category Filter Tabs */
.section {
  padding: 60px 0;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px;
}

.section-subtitle {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: #b45309;
  margin-bottom: 6px;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--earth-dark);
  line-height: 1.25;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.tab-btn {
  padding: 9px 18px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.tab-btn.active {
  background: var(--earth-header);
  color: #fff;
  border-color: var(--earth-header);
}

/* Products Grid - Укрупненные и легко читаемые карточки (3 в ряд на десктопе, 2 на планшете) */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(66, 48, 41, 0.04);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 35px rgba(66, 48, 41, 0.12);
  border-color: var(--primary);
}

.product-thumb {
  position: relative;
  height: 230px;
  background: #fbf5f2;
  overflow: hidden;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-thumb img {
  transform: scale(1.06);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #b45309;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-min-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(39, 28, 25, 0.92);
  color: #f5ede8;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-cat {
  font-size: 12px;
  text-transform: uppercase;
  color: #b45309;
  font-weight: 800;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.product-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--earth-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.product-desc {
  font-size: 14px;
  color: #4a3e39;
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.product-specs {
  background: #fdf8f5;
  border: 1px solid #f3e5dd;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #423029;
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed #ebdcd4;
  padding-bottom: 4px;
}

.spec-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-item b {
  color: #6b5c56;
  font-weight: 600;
}

.spec-item span, .spec-item {
  color: var(--earth-dark);
  font-weight: 500;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  gap: 12px;
}

.product-price {
  font-size: 23px;
  font-weight: 800;
  color: var(--earth-dark);
  letter-spacing: -0.3px;
}

.product-price span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.product-footer .btn {
  padding: 11px 22px;
  font-size: 15px;
}

/* Fleet Section - в теплом коричнево-земляном оформлении (4 карточки в ряд) */
.fleet-section {
  background: var(--earth-dark);
  color: #fff;
}

.fleet-section .section-title {
  color: #fff;
}

.fleet-section .section-subtitle {
  color: #fbbf24;
}

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

.fleet-card {
  background: var(--earth-surface);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--earth-border);
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s, border-color 0.25s;
}

.fleet-card:hover {
  transform: translateY(-4px);
  border-color: #fbbf24;
}

.fleet-img {
  height: 205px;
  background: #fbf8f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  padding: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fleet-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.4s ease;
}

.fleet-card:hover .fleet-img img {
  transform: scale(1.05);
}

.fleet-body {
  padding: 18px 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.fleet-tag {
  display: inline-block;
  align-self: flex-start;
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.fleet-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.3;
}

.fleet-params {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0 14px;
  font-size: 12px;
}

.param-box {
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.param-box span {
  display: block;
  font-size: 11px;
  color: #dfcfc7;
  margin-bottom: 2px;
  white-space: nowrap;
}

.param-box strong {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.fleet-desc {
  font-size: 13px;
  color: #d1bfb6;
  line-height: 1.45;
  margin-bottom: 16px;
  flex-grow: 1;
}

.fleet-body .btn {
  padding: 10px 14px;
  font-size: 13px;
  width: 100%;
}

/* Soil Area Calculator section */
.area-calc-box {
  background: linear-gradient(135deg, #fef3c7 0%, #fae8d8 100%);
  border: 2px dashed #d97706;
  border-radius: 16px;
  padding: 32px;
  margin: 20px 0;
}

.area-calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.area-calc-info h3 {
  font-size: 24px;
  font-weight: 800;
  color: #78350f;
  margin-bottom: 8px;
}

.area-calc-info p {
  font-size: 14px;
  color: #8c441c;
  line-height: 1.5;
}

.area-calc-form {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(66, 48, 41, 0.08);
}

/* Trust / Why Us */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.trust-item {
  background: #fff;
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 12px;
  text-align: left;
}

.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #fdf2e9;
  color: #b45309;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.trust-item h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--earth-dark);
  margin-bottom: 8px;
}

.trust-item p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(39, 28, 25, 0.8);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: #fff;
  border-radius: 16px;
  max-width: 460px;
  width: 100%;
  padding: 30px;
  position: relative;
  box-shadow: 0 25px 50px rgba(25, 15, 12, 0.35);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: #8c7b74;
  cursor: pointer;
}

.modal-card h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--earth-dark);
  margin-bottom: 6px;
}

.modal-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Footer */
.site-footer {
  background: #1e1512; /* темный шоколадный подвал */
  color: #c4b5ae;
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

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

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

.footer-col ul li {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-col ul li a:hover {
  color: #fbbf24;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 16px;
}

.developer-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 10px;
  transition: all 0.25s ease;
}

.developer-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fbbf24;
  transform: translateY(-1px);
}

.developer-badge-text {
  display: flex;
  flex-direction: column;
  text-align: right;
  line-height: 1.25;
}

.developer-badge-label {
  font-size: 11px;
  color: #a89a93;
}

.developer-badge-site {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.developer-badge-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.05) contrast(1.05);
}

/* Sticky Mobile Quick Bar */
.mobile-quick-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #271c19;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 16px;
  z-index: 99;
}

.mobile-quick-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Responsive */
@media (max-width: 1200px) {
  .fleet-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 1080px) {
  .nav-links {
    gap: 10px;
    font-size: 13px;
  }
  .phone-number {
    font-size: 17px;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-content h2 {
    font-size: 30px;
  }
  .area-calc-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .top-bar {
    display: none;
  }
  .hero-section {
    padding: 30px 0 50px;
  }
  .hero-content h2 {
    font-size: 24px;
  }
  .hero-features {
    grid-template-columns: 1fr;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .fleet-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .mobile-quick-bar {
    display: block;
  }
  body {
    padding-bottom: 65px;
  }
  .header-contacts .btn {
    display: none;
  }
}
