/* Стили главной страницы. Вынесены из inline <style> в <body>:
   элемент style недопустим как дочерний для body (ошибка валидации HTML).
   Порядок блоков сохранён: расписание -> карточки услуг -> SEO-блок.
   Подключается в theme/head.php последним, после остальных стилей. */

/* ===== Секция графика приёмки и отгрузок ===== */
  .main-schedule-section {
    scroll-margin-top: 110px;
    padding-top: 40px;
  }
  .main-schedule-shell {
    padding: 40px;
    border: 1px solid #d8cec3;
    border-radius: 32px;
    background: linear-gradient(180deg, #fffdf9 0%, #f4eee7 100%);
    box-shadow: 0 24px 70px rgba(54, 41, 28, 0.08);
  }
  .main-schedule-heading {
    margin-bottom: 28px;
    align-items: flex-end;
  }
  .main-schedule-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: #8a6a45;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
  .main-schedule-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
  }
  .main-schedule-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid #e2d7ca;
    color: #6f5943;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    width: max-content;
  }
  .main-schedule-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
  }
  .main-schedule-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid #d9ccb9;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.74);
    color: #443425;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  }
  .main-schedule-tab:hover,
  .main-schedule-tab.is-active {
    border-color: #b98d56;
    background: #2f2418;
    color: #fff7ef;
    box-shadow: 0 12px 30px rgba(47, 36, 24, 0.16);
    transform: translateY(-1px);
  }
  .main-schedule-tab-panel {
    display: none;
  }
  .main-schedule-tab-panel.is-active {
    display: block;
  }
  .main-schedule-copy,
  .main-schedule-note {
    margin: 0 0 18px;
    color: #5b4837;
    font-size: 16px;
    line-height: 1.7;
  }
  .main-schedule-note {
    margin-top: 18px;
    font-style: italic;
    color: #765b43;
  }
  .main-schedule-empty {
    padding: 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px dashed #d8c8b6;
    color: #7a6856;
    text-align: center;
  }
  .main-schedule-table-wrap {
    overflow: auto;
    border-radius: 26px;
    border: 1px solid #ddcfc1;
    background: rgba(255, 255, 255, 0.82);
  }
  .main-schedule-table {
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
  }
  .main-schedule-table th,
  .main-schedule-table td {
    border-right: 1px solid #e3d7cb;
    border-bottom: 1px solid #e3d7cb;
  }
  .main-schedule-line-row th {
    padding: 16px 18px;
    background: linear-gradient(180deg, #efe6d8 0%, #e4d5c0 100%);
    color: #463322;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    white-space: pre-wrap;
  }
  .main-schedule-cell {
    min-width: 220px;
    padding: 14px 16px;
    background: linear-gradient(180deg, #fffefe 0%, #f8f2eb 100%);
    color: #4d3c2d;
    font-size: 16px;
    line-height: 1.55;
    vertical-align: middle;
  }
  .main-schedule-cell--primary {
    min-width: 300px;
  }
  .main-schedule-cell--primary .main-schedule-cell-copy,
  .main-schedule-mobile-cell--primary .main-schedule-cell-copy {
    font-size: 17px;
    font-style: italic;
    font-weight: 700;
  }
  .main-schedule-cell--center .main-schedule-cell-copy,
  .main-schedule-month-mobile-value--center .main-schedule-cell-copy,
  .main-schedule-mobile-cell--center .main-schedule-cell-copy {
    text-align: center;
  }
  .main-schedule-cell--right .main-schedule-cell-copy,
  .main-schedule-month-mobile-value--right .main-schedule-cell-copy,
  .main-schedule-mobile-cell--right .main-schedule-cell-copy {
    text-align: right;
  }
  .main-schedule-cell-copy {
    white-space: pre-wrap;
    word-break: break-word;
  }
  .main-schedule-table--month thead th {
    padding: 14px 16px;
    background: linear-gradient(180deg, #efe6d8 0%, #e4d5c0 100%);
    color: #463322;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
  }
  .main-schedule-month-title-row th {
    font-size: 24px;
    line-height: 1.2;
  }
  .main-schedule-month-head-row th:first-child {
    min-width: 300px;
  }
  .main-schedule-mobile-stack,
  .main-schedule-month-mobile-stack {
    display: none;
  }
  @media (max-width: 760px) {
    .main-schedule-shell {
      padding: 26px 18px;
      border-radius: 24px;
    }
    .main-schedule-heading {
      margin-bottom: 22px;
    }
    .main-schedule-meta {
      justify-content: flex-start;
      margin-top: 12px;
    }
    .main-schedule-tabs {
      display: grid;
      gap: 10px;
    }
    .main-schedule-tab {
      width: 100%;
    }
    .main-schedule-table-wrap,
    .main-schedule-table-wrap--month {
      display: none;
    }
    .main-schedule-mobile-stack,
    .main-schedule-month-mobile-stack {
      display: grid;
      gap: 14px;
    }
    .main-schedule-mobile-line {
      padding: 14px 16px;
      border-radius: 18px;
      background: linear-gradient(180deg, #efe6d8 0%, #e4d5c0 100%);
      color: #463322;
      font-size: 17px;
      font-weight: 700;
      line-height: 1.4;
      text-align: center;
      box-shadow: 0 12px 24px rgba(54, 41, 28, 0.08);
    }
    .main-schedule-mobile-group {
      display: grid;
      gap: 10px;
    }
    .main-schedule-mobile-cities {
      display: grid;
      gap: 8px;
    }
    .main-schedule-mobile-cell {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      min-height: 88px;
      padding: 14px 16px;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.88);
      border: 1px solid #e6d9cd;
      color: #4d3c2d;
    }
    .main-schedule-mobile-cell--compact {
      min-height: 62px;
      padding: 10px 16px;
    }
    .main-schedule-mobile-cell--summary {
      justify-content: center;
      min-height: 76px;
    }
    .main-schedule-month-mobile-card {
      display: grid;
      gap: 12px;
    }
    .main-schedule-month-mobile-head {
      color: #463322;
      font-size: 18px;
      font-weight: 700;
      line-height: 1.2;
      text-align: center;
    }
    .main-schedule-month-mobile-columns,
    .main-schedule-month-mobile-row {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    .main-schedule-month-mobile-rows {
      display: grid;
      gap: 8px;
    }
    .main-schedule-month-mobile-label {
      color: #7c6349;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-align: center;
      text-transform: uppercase;
    }
    .main-schedule-month-mobile-value {
      min-width: 0;
      padding: 12px;
      border-radius: 14px;
      background: rgba(255, 255, 255, 0.88);
      border: 1px solid #e6d9cd;
      color: #4d3c2d;
      font-size: 15px;
      line-height: 1.5;
      word-break: break-word;
    }
  }
  @media (max-width: 520px) {
    .main-schedule-section {
      padding-top: 24px;
    }
    .main-schedule-mobile-stack,
    .main-schedule-month-mobile-stack {
      gap: 12px;
    }
    .main-schedule-month-mobile-columns,
    .main-schedule-month-mobile-row {
      gap: 8px;
    }
    .main-schedule-mobile-group {
      gap: 8px;
    }
    .main-schedule-mobile-cell--compact {
      min-height: 58px;
      padding: 9px 14px;
    }
  }

/* ===== Карточки услуг в слайдере ===== */
  /* Карточки услуг разной высоты обрезали рамку: Swiper выравнивает слайды
     по самому высокому, а .services внутри тянулся только по своему тексту.
     Растягиваем карточку на всю высоту слайда. */
  .services-slider .swiper-slide{height:auto;display:flex}
  .services-slider .swiper-slide > .services{display:flex;flex-direction:column;width:100%}

/* ===== Текстовый SEO-блок перед подвалом ===== */
  .seo-summary{padding:70px 0 80px;background:#fff;color:#000}
  .seo-summary .seo-summary__inner{max-width:1100px;margin:0 auto}
  .seo-summary h2{margin:0 0 22px;font-size:36px;line-height:1.25;font-weight:700}
  .seo-summary h3{margin:32px 0 12px;font-size:22px;line-height:1.35;font-weight:700}
  .seo-summary p{margin:0 0 16px;font-size:16px;line-height:28px}
  .seo-summary ul{margin:0 0 16px;padding-left:22px}
  .seo-summary li{margin-bottom:8px;font-size:16px;line-height:28px}
  .seo-summary a{color:#000;text-decoration:underline}
  .seo-summary a:hover{text-decoration:none}
  @media (max-width:991px){.seo-summary{padding:48px 0 56px}.seo-summary h2{font-size:28px}}
  @media (max-width:767px){.seo-summary{padding:36px 0 44px}.seo-summary h2{font-size:24px}.seo-summary h3{font-size:19px;margin-top:26px}}
