/* ========================================
   ОБЩИЕ СТИЛИ И СБРОС
   ======================================== */

html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Manrope', Arial, Helvetica, sans-serif;
  color: var(--color-text, #0f172a);
  background-color: var(--color-bg, #ffffff);
  overflow-x: hidden;
  line-height: 1.6;
}

.wrap,
.container,
.new-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   СЕКЦИИ УСЛУГ (СКРЫТЫ ПО УМОЛЧАНИЮ)
   ======================================== */

#services-transport,
#services-supply {
  display: none;
  padding-top: 30px;
}



/* Раскрытый блок по клику */
#services-transport.is-open,
#services-supply.is-open {
  display: block;
  animation: revealService 0.35s ease-out forwards;
}

@keyframes revealService {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.transport-section {
  padding: 80px 0;
  background-color: var(--color-bg, #ffffff);
  scroll-margin-top: 135px;
  position: relative;
  z-index: 10;
}

.supply-section {
  background-color: var(--color-bg-light, #f8fafc);
  border-top: 1px solid var(--color-border, #e2e8f0);
}

.transport-container {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

.transport-info {
  flex: 1;
}

.transport-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-text, #0f172a);
  margin-bottom: 12px;
  line-height: 1.25;
}

.transport-subtitle {
  font-size: 16px;
  color: var(--color-text-muted, #64748b);
  margin-bottom: 35px;
}

.features-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(5, 60, 60, 0.08);
  color: var(--color-primary-light, #00966a);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}

.feature-icon svg,
.feature-icon i {
  font-size: 20px;
  stroke: var(--color-primary-light, #00966a);
}

.feature-text strong {
  display: block;
  font-size: 15px;
  color: var(--color-text, #0f172a);
  margin-bottom: 4px;
}

.feature-text span {
  font-size: 13px;
  color: var(--color-text-muted, #64748b);
  line-height: 1.45;
}

/* Формы заявок */
.transport-form-wrapper {
  flex: 0 0 420px;
  background-color: #ffffff;
  padding: 20px 20px;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--color-border, #e2e8f0);
}

.form-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text, #0f172a);
  margin-bottom: 8px;
  line-height: 1.3;
}

.form-subtitle {
  font-size: 13px;
  color: var(--color-text-muted, #64748b);
  margin-bottom: 24px;
  line-height: 1.4;
}

.form-group {
  margin-bottom: 16px;
}

.form-group input,
.form-group select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font-size: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background-color: #f8fafc;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--color-primary-light, #00966a);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 150, 106, 0.15);
}

.form-group-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.form-group-checkbox input[type="checkbox"] {
  accent-color: var(--color-primary-light, #00966a);
  margin-top: 3px;
  width: 15px;
  height: 15px;
  cursor: pointer;
  flex-shrink: 0;
}

.form-group-checkbox label {
  font-size: 12px;
  color: var(--color-text-muted, #64748b);
  line-height: 1.4;
}

.form-group-checkbox a {
  color: var(--color-primary-light, #00966a);
  text-decoration: underline;
}

.btn-submit {
  width: 100%;
  height: 48px;
  background-color: var(--color-primary, #053c3c);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-submit:hover {
  background-color: var(--color-primary-light, #00966a);
}

/* ========================================
   МОДАЛЬНОЕ ОКНО КОНСУЛЬТАЦИИ
   ======================================== */

.consult-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 60, 60, 0.75);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.consult-modal-box {
  background: #ffffff;
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  padding: 32px 26px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  animation: consultFadeIn 0.25s ease-out;
}

@keyframes consultFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.consult-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.2s;
}

.consult-modal-close:hover {
  color: #ef4444;
}

.consult-header {
  text-align: center;
  margin-bottom: 20px;
}

.consult-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-primary, #053c3c);
  margin-bottom: 6px;
}

.consult-subtitle {
  font-size: 13px;
  color: var(--color-text-muted, #64748b);
  line-height: 1.4;
}

.consult-group {
  margin-bottom: 14px;
}

.consult-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 5px;
}

.consult-group input,
.consult-group select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  background: #f8fafc;
  outline: none;
  font-family: inherit;
  transition: all 0.2s;
}

.consult-group input:focus,
.consult-group select:focus {
  border-color: var(--color-primary-light, #00966a);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 150, 106, 0.15);
}

.consult-agreement {
  margin: 12px 0 18px;
}

.consult-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  color: var(--color-text-muted, #64748b);
  cursor: pointer;
}

.consult-checkbox-label input {
  margin-top: 2px;
  accent-color: var(--color-primary-light, #00966a);
  width: 15px;
  height: 15px;
}

.btn-consult-submit {
  width: 100%;
  height: 48px;
  background: var(--color-primary, #053c3c);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease;
}

.btn-consult-submit:hover {
  background: var(--color-primary-light, #00966a);
}

.consult-contacts-sub {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed #e2e8f0;
  text-align: center;
  font-size: 12px;
  color: var(--color-text-muted, #64748b);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.consult-contacts-sub a {
  color: var(--color-primary, #053c3c);
  font-weight: 700;
  text-decoration: none;
}

.consult-contacts-sub a:hover {
  color: var(--color-accent-teal, #2edba5);
}

body.consult-modal-open {
  overflow: hidden;
}

/* ========================================
   АДАПТИВНОСТЬ
   ======================================== */

@media (max-width: 992px) {
  .transport-container {
    flex-direction: column;
    gap: 40px;
  }

  .transport-form-wrapper {
    width: 100%;
    flex: none;
  }
}

@media (max-width: 768px) {
  .transport-section {
    padding: 60px 0;
    scroll-margin-top: 60px;
  }

  .transport-title {
    font-size: 26px;
  }

  .transport-subtitle {
    font-size: 14px;
    margin-bottom: 25px;
  }
}

@media (max-width: 600px) {
  .features-list {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .transport-form-wrapper {
    padding: 25px 20px;
  }
}

@media (max-width: 600px) {
  .hero-consult-card {
    /* Сбрасываем позиционирование, чтобы блок не прижимался вплотную и не перекрывал другие элементы на узких экранах */
    left: 12px;
    right: 12px;
    bottom: calc(11% + 10px);
    align-items: stretch;
    text-align: left;
  }

  .consult-badge {
    justify-content: center;
    flex-direction: row;
  }

  /* Превращаем блок с телефонами и ссылками в сетку из 2 колонок */
  .consult-phones {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 12px;
    width: 100%;
    align-items: center;
  }

  .hero-phone-link {
    flex-direction: row;
    /* Возвращаем иконку слева от текста для удобства в сетке */
    justify-content: center;
    font-size: 12px;
  }

  .consult-social-link {
    grid-column: span 2;
    /* Делаем кнопку «Написать в Макс» на всю ширину (в 2 колонки) снизу */
    justify-content: center;
    background: rgba(0, 150, 106, 0.2);
    padding: 6px;
    border-radius: 6px;
  }

  

  .hero-text-block {
    margin-top: -100px;

  }

}