/* ==========================================================================
   ТОКЕНЫ
   ========================================================================== */
:root {
  --navy: #1B3A5F;
  --navy-dark: #12283F;
  --navy-tint: #EAF0F5;
  --green: #6FA88C;
  --green-dark: #5C9179;
  --bg: #FFFFFF;
  --bg-soft: #F7F8FA;
  --text: #000000;
  --text-muted: #666666;
  --border: #E3E7ED;

  --font-display: 'Golos Text', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container-w: 1180px;
  --header-h: 76px;

  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;
}

/* ==========================================================================
   RESET
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text);
  margin: 0 0 0.5em;
  line-height: 1.2;
}

p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

a {
  color: var(--text);
  text-decoration: none;
}

button { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

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

/* ==========================================================================
   КНОПКИ
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-s);
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, transform .15s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--green);
  color: #FFFFFF;
  text-shadow: none;
}
.btn-primary:hover {
  background: var(--green-dark);
}
.btn-primary:active {
  transform: translateY(1px);
}

.btn-link {
  color: var(--text);
  font-weight: 600;
  padding: 14px 4px;
}
.btn-link:hover {
  color: var(--green-dark);
}

/* ==========================================================================
   ШАПКА
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 4px 16px rgba(27, 58, 95, 0.08);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-s);
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--text);
  white-space: nowrap;
}

.main-nav {
  flex: 1;
}
.nav-list {
  display: flex;
  gap: 28px;
  justify-content: center;
}
.nav-list a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 6px 2px;
}
.nav-list a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--green);
  transition: right .2s ease;
}
.nav-list a:hover {
  color: var(--text);
}
.nav-list a:hover::after {
  right: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.header-phone {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text);
  white-space: nowrap;
}
.header-cta {
  padding: 11px 20px;
  font-size: 14px;
}

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  background: #E8EDF2;
  padding: 48px 0 56px;
  overflow: hidden;
  position: relative;
}

/* Hero изображение */
.hero-image {
  display: none;
  /* Убедимся, что нет фона под прозрачным изображением */
  background: none;
  background-color: transparent;
}
.hero-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  /* Убедимся, что у самого изображения тоже нет фона */
  background: none;
  background-color: transparent;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin: 0 0 18px;
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  max-width: 20ch;
}

.hero-subtitle {
  font-size: 16.5px;
  color: var(--text-muted);
  max-width: 48ch;
}

.hero-usp {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0 28px;
}
.hero-usp li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.hero-usp li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin-bottom: 32px;
}

/* Удалены старые стили .hero-media, .hero-frame, .frame-corner, .route-line и т.д. - больше не используются */

/* ==========================================================================
   О КОМПАНИИ
   ========================================================================== */
.about {
  padding: 56px 0;
}

.about-intro {
  max-width: 100%;
  margin-bottom: 40px;
  text-align: center;
}

.about-title {
  font-size: 28px;
}

.about-text {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 72ch;
  margin-left: auto;
  margin-right: auto;
}
.about-text:last-of-type {
  margin-bottom: 0;
}

.about-stats {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 0;
  margin-bottom: 48px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: 100%;
}
.stat {
  flex: 1;
  padding: 0 24px;
  text-align: center;
  position: relative;
}
.stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 48px;
  background: var(--border);
}
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 42px;
  color: var(--green-dark);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.3;
}

.advantages {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.advantage-card {
  padding: 24px 22px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  transition: border-color .2s ease, transform .2s ease;
}
.advantage-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

.advantage-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-s);
  background: var(--navy-tint);
  color: var(--navy);
  margin-bottom: 14px;
}
.advantage-icon svg {
  width: 22px;
  height: 22px;
}

.advantage-title {
  font-size: 17px;
  margin-bottom: 8px;
}

.advantage-text {
  font-size: 14.5px;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   УСЛУГИ
   ========================================================================== */
.services {
  padding: 56px 0;
  background: var(--bg-soft);
}

.services-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}

.services-title {
  font-size: 28px;
}

.services-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.service-card {
  padding: 24px 22px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  transition: border-color .2s ease, transform .2s ease;
}
.service-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-s);
  background: var(--navy-tint);
  color: var(--navy);
  margin-bottom: 14px;
}
.service-icon svg {
  width: 22px;
  height: 22px;
}

.service-title {
  font-size: 17px;
  margin-bottom: 8px;
}

.service-text {
  font-size: 14.5px;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   ФОРМА РАСЧЁТА СТОИМОСТИ
   ========================================================================== */
.request {
  padding: 56px 0;
  background: var(--bg);
}

.request-inner {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.request-title {
  font-size: 28px;
}

.request-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 46ch;
}

.request-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.request-points li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
}
.request-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

.request-form {
  background: var(--bg);
  border-radius: var(--radius-l);
  padding: 28px 22px;
  box-shadow: 0 12px 32px rgba(27, 58, 95, 0.08);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.form-field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}
.field-optional {
  font-weight: 400;
  color: var(--text-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field textarea {
  resize: vertical;
  min-height: 88px;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #9AA3AF;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(111, 168, 140, 0.18);
}

.form-field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%),
                     linear-gradient(135deg, var(--text) 50%, transparent 50%);
  background-position: calc(100% - 20px) center, calc(100% - 15px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-muted);
  cursor: pointer;
}
.form-checkbox input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--green);
  cursor: pointer;
}
.form-checkbox a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
}

.request-submit {
  width: 100%;
  margin-top: 4px;
}

.form-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--green-dark);
  text-align: center;
}
.form-status--success {
  color: var(--green-dark);
}
.form-status--error {
  color: #B42318;
}
.request-submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

/* ==========================================================================
   ВИДЫ ДОСТАВКИ
   ========================================================================== */
.delivery {
  padding: 56px 0;
  background: var(--bg);
}

.delivery-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}

.delivery-title {
  font-size: 28px;
}

.delivery-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 auto;
}

.delivery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.delivery-card {
  position: relative;
  padding: 24px 22px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.delivery-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27, 58, 95, 0.08);
}

.delivery-card--featured {
  border-color: var(--green);
  background: linear-gradient(135deg, #FFFFFF 0%, var(--navy-tint) 100%);
  box-shadow: 0 4px 16px rgba(111, 168, 140, 0.12);
}
.delivery-card--featured:hover {
  box-shadow: 0 8px 28px rgba(111, 168, 140, 0.2);
}

.delivery-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 12px;
  background: var(--green);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 20px;
}

.delivery-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.delivery-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-s);
  background: var(--navy-tint);
  color: var(--navy);
  flex-shrink: 0;
}
.delivery-card--featured .delivery-icon {
  background: rgba(111, 168, 140, 0.15);
  color: var(--green-dark);
}
.delivery-icon svg {
  width: 26px;
  height: 26px;
}

.delivery-card-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.delivery-card-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin: -6px 0 0;
}

.delivery-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.delivery-price {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
}
.delivery-price strong {
  display: inline-block;
  font-size: 24px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  margin: 0 2px;
}

.delivery-time {
  font-size: 14px;
  font-weight: 600;
  color: var(--green-dark);
  white-space: nowrap;
}

.delivery-note {
  text-align: center;
  font-size: 13.5px;
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 auto;
}
.delivery-note a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.delivery-note a:hover {
  color: var(--green-dark);
}

/* ==========================================================================
   КАТЕГОРИИ ТОВАРОВ
   ========================================================================== */
.categories {
  padding: 56px 0;
  background: var(--bg-soft);
}

.categories-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 36px;
}

.categories-title {
  font-size: 28px;
}

.categories-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 auto;
}

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

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  text-align: center;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.category-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 58, 95, 0.06);
}

.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-s);
  background: var(--navy-tint);
  color: var(--navy);
  flex-shrink: 0;
}
.category-card:hover .category-icon {
  background: rgba(111, 168, 140, 0.12);
  color: var(--green-dark);
}
.category-icon svg {
  width: 24px;
  height: 24px;
}

.category-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

.categories-note {
  text-align: center;
  font-size: 13.5px;
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 auto;
}
.categories-note a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.categories-note a:hover {
  color: var(--green-dark);
}

/* ==========================================================================
   ЭТАПЫ РАБОТЫ
   ========================================================================== */
.steps {
  padding: 56px 0;
  background: var(--bg);
}

.steps-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}

.steps-title {
  font-size: 28px;
}

.steps-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 auto;
}

.steps-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 560px;
  margin: 0 auto;
}

.step-item {
  position: relative;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

.step-content {
  flex: 1;
  padding-top: 6px;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}

.step-text {
  font-size: 14.5px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Вертикальная соединительная линия для мобильных */
.step-connector {
  position: absolute;
  left: 26px;
  top: 52px;
  width: 2px;
  height: calc(100% + 32px);
  background: linear-gradient(to bottom, var(--green) 0%, var(--green) 50%, transparent 50%);
  background-size: 2px 8px;
}

.step-item:last-child .step-connector {
  display: none;
}

/* ==========================================================================
   ОТЗЫВЫ
   ========================================================================== */
.reviews {
  padding: 56px 0;
  background: var(--bg-soft);
}

.reviews-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}

.reviews-title {
  font-size: 28px;
}

.reviews-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0 auto;
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.review-card {
  position: relative;
  padding: 28px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.review-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27, 58, 95, 0.08);
}

.review-quote {
  width: 36px;
  height: 36px;
  color: var(--green);
  opacity: 0.3;
  margin-bottom: 16px;
}
.review-quote svg {
  width: 100%;
  height: 100%;
}

.review-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
  margin: 0 0 20px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.reviews-note {
  text-align: center;
  font-size: 13.5px;
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 auto;
}
.reviews-note a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.reviews-note a:hover {
  color: var(--green-dark);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
  padding: 56px 0;
  background: var(--bg);
}

.faq-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}

.faq-title {
  font-size: 28px;
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  background: var(--bg);
  overflow: hidden;
  transition: border-color .2s ease;
}
.faq-item:hover {
  border-color: var(--green);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background-color .2s ease;
}
.faq-question:hover {
  background: var(--bg-soft);
}

.faq-question-text {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--green);
  transition: transform .3s ease;
}
.faq-icon svg {
  width: 100%;
  height: 100%;
}
.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-answer p {
  padding: 0 22px 20px;
  margin: 0;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   КОНТАКТЫ
   ========================================================================== */
.contacts {
  padding: 56px 0;
  background: var(--bg-soft);
}

.contacts-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}

.contacts-title {
  font-size: 28px;
}

.contacts-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0 auto;
}

.contacts-content {
  max-width: 860px;
  margin: 0 auto 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contacts-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  transition: border-color .2s ease, transform .2s ease;
}
.contact-item:hover {
  border-color: var(--green);
  transform: translateY(-1px);
}

.contact-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-tint);
  color: var(--navy);
  border-radius: var(--radius-s);
}
.contact-icon svg {
  width: 22px;
  height: 22px;
}

.contact-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 4px;
}

.contact-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.contact-value {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}
.contact-value:hover {
  color: var(--green-dark);
}

.contacts-messengers {
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  text-align: center;
}

.messengers-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 20px;
}

.messenger-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.messenger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.messenger-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.messenger-btn svg {
  width: 28px;
  height: 28px;
}

.messenger-btn--telegram {
  background: #0088cc;
  color: #FFFFFF;
}
.messenger-btn--whatsapp {
  background: #25D366;
  color: #FFFFFF;
}

.contacts-cta {
  text-align: center;
}

/* ==========================================================================
   ФУТЕР
   ========================================================================== */
.site-footer {
  padding: 40px 0 100px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-brand .logo {
  justify-content: center;
}
.footer-brand .logo-text {
  color: #FFFFFF;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  transition: color .2s ease;
}
.footer-links a:hover {
  color: var(--green);
}

.footer-copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}
.footer-copyright p {
  margin: 0;
}

/* ==========================================================================
   ПЛАВАЮЩИЕ КНОПКИ МЕССЕНДЖЕРОВ
   ========================================================================== */
.floating-messengers {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 1;
  visibility: visible;
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
}

.floating-messengers.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  pointer-events: none;
}

.floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform .2s ease, box-shadow .2s ease;
}
.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}
.floating-btn svg {
  width: 30px;
  height: 30px;
}

.floating-btn--telegram {
  background: #0088cc;
  color: #FFFFFF;
}
.floating-btn--whatsapp {
  background: #25D366;
  color: #FFFFFF;
}

/* ==========================================================================
   КНОПКА "НАВЕРХ"
   ========================================================================== */
.scroll-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: var(--green);
  color: #FFFFFF;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease, background-color .2s ease, box-shadow .2s ease;
}
.scroll-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-to-top:hover {
  background: var(--green-dark);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}
.scroll-to-top:active {
  transform: translateY(0);
}
.scroll-to-top svg {
  width: 28px;
  height: 28px;
}

/* ==========================================================================
   МОБИЛЬНОЕ МЕНЮ (до 900px)
   ========================================================================== */
@media (max-width: 899px) {
  .burger {
    display: flex;
  }
  .header-actions {
    display: none;
  }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--navy);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .main-nav.is-open {
    max-height: 480px;
  }
  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 20px;
  }
  .nav-list a {
    display: block;
    padding: 14px 0;
    color: #FFFFFF;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .nav-list a::after { display: none; }
  .nav-list a:hover { color: var(--green); }

  .nav-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 4px 20px 24px;
  }
}

/* ==========================================================================
   МОБИЛЬНЫЕ (до 480px)
   ========================================================================== */
@media (max-width: 479px) {
  /* Уменьшаем gap в сетках для очень узких экранов */
  .categories-grid,
  .services-grid,
  .delivery-grid,
  .advantages,
  .reviews-grid {
    gap: 10px;
  }
}

/* ==========================================================================
   ОЧЕНЬ УЗКИЕ МОБИЛЬНЫЕ (до 360px)
   ========================================================================== */
@media (max-width: 360px) {
  /* Уменьшаем padding контейнера на самых узких экранах */
  .container {
    padding: 0 16px;
  }

  /* Дополнительно уменьшаем gap и padding для экранов 320-360px */
  .categories-grid,
  .services-grid,
  .delivery-grid,
  .advantages,
  .reviews-grid {
    gap: 8px;
  }

  .category-card,
  .service-card,
  .delivery-card,
  .advantage-card,
  .review-card {
    padding: 16px 12px;
  }
}

/* ==========================================================================
   ВЫРАВНИВАНИЕ INTRO БЛОКОВ НА МОБИЛЬНЫХ И ПЛАНШЕТАХ (до 768px)
   ========================================================================== */
@media (max-width: 768px) {
  /* Убираем max-width и центрирование у intro блоков для лучшего выравнивания с сетками */
  .about-intro,
  .services-intro,
  .delivery-intro,
  .categories-intro,
  .steps-intro,
  .reviews-intro,
  .faq-intro,
  .contacts-intro {
    max-width: 100%;
    text-align: left;
  }

  /* Убираем автоматические отступы у текстовых блоков для выравнивания по левому краю */
  .about-text,
  .services-subtitle,
  .delivery-subtitle,
  .categories-subtitle,
  .steps-subtitle,
  .reviews-subtitle,
  .contacts-subtitle,
  .faq-list {
    margin-left: 0;
    margin-right: 0;
  }

  /* Убираем ограничение ширины у списков на мобильных */
  .faq-list {
    max-width: 100%;
  }
}

/* ==========================================================================
   МОБИЛЬНЫЕ И ПЛАНШЕТЫ - Hero фоновое изображение (до 768px)
   ========================================================================== */
@media (max-width: 768px) {
  /* Добавляем декоративное фоновое изображение для мобильных */
  .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/hero_block_image_3.png');
    background-size: contain;
    background-position: center bottom;
    background-repeat: no-repeat;
    opacity: 0.20;
    z-index: 1;
    pointer-events: none;
  }

  /* Убеждаемся, что контент hero поверх фона */
  .hero-inner {
    position: relative;
    z-index: 2;
  }

  /* Добавляем усиленную тень для текста для читаемости без подложки */
  .hero-title,
  .hero-subtitle,
  .hero-usp {
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.9),
                 0 2px 10px rgba(255, 255, 255, 0.7),
                 0 3px 16px rgba(255, 255, 255, 0.5);
  }

  /* Центрируем заголовок и кнопку на мобильных */
  .hero-title {
    text-align: center;
  }

  .hero-actions {
    display: flex;
    justify-content: center;
  }

  /* Убираем text-shadow с кнопок */
  .hero-actions .btn {
    text-shadow: none;
  }
}

/* ==========================================================================
   ПЛАНШЕТ И ШИРЕ (от 640px)
   ========================================================================== */
@media (min-width: 640px) {
  .hero-title {
    font-size: 40px;
  }

  .advantages {
    grid-template-columns: 1fr 1fr;
  }

  .about-stats {
    padding: 32px 0;
  }
  .stat {
    padding: 0 20px;
  }
  .stat-number {
    font-size: 46px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .form-row {
    flex-direction: row;
  }

  .delivery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

/* ==========================================================================
   ДЕСКТОП (от 900px)
   ========================================================================== */
@media (min-width: 900px) {
  .hero {
    padding: 72px 0 88px;
  }

  /* Убираем фоновое изображение на десктопе (там используется обычный img) */
  .hero::before {
    display: none;
  }

  .hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
  }
  .hero-content {
    flex: 1 1 50%;
    max-width: 600px;
  }

  /* Убираем центрирование на десктопе */
  .hero-title {
    text-align: left;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  /* Убираем text-shadow на десктопе */
  .hero-title,
  .hero-subtitle,
  .hero-usp,
  .hero-actions .btn {
    text-shadow: none;
  }
  .hero-image {
    display: block;
    flex: 1 1 50%;
    max-width: 700px;
    /* Изображение заполняет больше пространства */
  }
  .hero-title {
    font-size: 46px;
  }
  .hero-subtitle {
    font-size: 17.5px;
  }
}

@media (min-width: 1100px) {
  .hero-title {
    font-size: 50px;
  }
  .hero-image {
    max-width: 750px;
    /* На больших экранах изображение может быть еще больше */
  }
}

@media (min-width: 900px) {
  .about {
    padding: 88px 0;
  }
  .about-intro {
    max-width: 100%;
    margin-bottom: 48px;
  }
  .about-title {
    font-size: 34px;
  }
  .about-stats {
    max-width: 100%;
    margin-bottom: 56px;
    padding: 36px 0;
  }
  .stat {
    padding: 0 32px;
  }
  .stat:not(:last-child)::after {
    height: 56px;
  }
  .stat-number {
    font-size: 52px;
    margin-bottom: 10px;
  }
  .stat-label {
    font-size: 15px;
  }
  .advantages {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .services {
    padding: 88px 0;
  }
  .services-title {
    font-size: 34px;
  }
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .request {
    padding: 88px 0;
  }
  .request-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 56px;
  }
  .request-intro {
    flex: 1 1 42%;
    max-width: 420px;
    padding-top: 8px;
  }
  .request-title {
    font-size: 34px;
  }
  .request-form {
    flex: 1 1 58%;
    max-width: 560px;
    padding: 36px 40px;
  }
  .request-submit {
    width: auto;
    align-self: flex-start;
    padding-left: 40px;
    padding-right: 40px;
  }

  .delivery {
    padding: 88px 0;
  }
  .delivery-title {
    font-size: 34px;
  }
  .delivery-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
  }
  /* Первый ряд: 3 карточки по 2fr каждая = 6fr */
  .delivery-card:nth-child(1),
  .delivery-card:nth-child(2),
  .delivery-card:nth-child(3) {
    grid-column: span 2;
  }
  /* Второй ряд: 2 карточки по центру - отступ 1fr, карточка 2fr, карточка 2fr, отступ 1fr */
  .delivery-card:nth-child(4) {
    grid-column: 2 / span 2;
  }
  .delivery-card:nth-child(5) {
    grid-column: 4 / span 2;
  }

  .categories {
    padding: 88px 0;
  }
  .categories-title {
    font-size: 34px;
  }
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .category-card {
    padding: 24px 18px;
  }
  .category-icon {
    width: 52px;
    height: 52px;
  }
  .category-icon svg {
    width: 26px;
    height: 26px;
  }
  .category-name {
    font-size: 15px;
  }

  .steps {
    padding: 88px 0;
  }
  .steps-title {
    font-size: 34px;
  }
  .steps-timeline {
    flex-direction: row;
    max-width: 100%;
    gap: 0;
    align-items: flex-start;
    justify-content: space-between;
  }
  .step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    gap: 16px;
    position: relative;
  }
  .step-number {
    width: 64px;
    height: 64px;
    font-size: 26px;
  }
  .step-content {
    padding-top: 0;
  }
  .step-title {
    font-size: 19px;
  }
  .step-text {
    font-size: 14px;
  }

  /* Горизонтальная соединительная линия для десктопа */
  .step-connector {
    position: absolute;
    left: calc(50% + 32px);
    top: 32px;
    width: calc(100% - 64px);
    height: 2px;
    background: linear-gradient(to right, var(--green) 0%, var(--green) 50%, transparent 50%);
    background-size: 8px 2px;
  }
  .step-item:last-child .step-connector {
    display: none;
  }

  .reviews {
    padding: 88px 0;
  }
  .reviews-title {
    font-size: 34px;
  }
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .faq {
    padding: 88px 0;
  }
  .faq-title {
    font-size: 34px;
  }
  .faq-list {
    max-width: 860px;
  }
  .faq-question {
    padding: 24px 28px;
  }
  .faq-question-text {
    font-size: 17px;
  }
  .faq-answer p {
    padding: 0 28px 24px;
    font-size: 15px;
  }

  .contacts {
    padding: 88px 0;
  }
  .contacts-title {
    font-size: 34px;
  }
  .contacts-content {
    flex-direction: row;
    gap: 48px;
  }
  .contacts-list {
    flex: 1 1 55%;
  }
  .contacts-messengers {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
  .footer-brand .logo {
    justify-content: flex-start;
  }

  .site-footer {
    padding: 40px 0;
  }
}

@media (max-width: 480px) {
  .about-stats {
    flex-direction: column;
    gap: 24px;
    padding: 32px 0;
    border: none;
  }
  .stat {
    padding: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
  }
  .stat:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .stat:not(:last-child)::after {
    display: none;
  }

  .scroll-to-top {
    bottom: 16px;
    left: 16px;
    width: 52px;
    height: 52px;
  }
  .scroll-to-top svg {
    width: 24px;
    height: 24px;
  }

  .floating-messengers {
    bottom: 16px;
    right: 16px;
    z-index: 998;
  }
  .floating-btn {
    width: 52px;
    height: 52px;
  }
  .floating-btn svg {
    width: 26px;
    height: 26px;
  }

  .site-footer {
    padding: 40px 0 120px;
  }
}

/* Дополнительная защита от наложения на мобильных */
@media (max-width: 640px) {
  .contacts {
    padding-bottom: 80px;
  }
}
