/* =====================================================
   ILZE Baltic — ilze-cms-pages.css
   Современные стили для CMS-страниц: "О нас", "Доставка", "Оплата" и т.п.
   Mobile-first: блоки впритык к краям, контент с боковыми отступами.
   ===================================================== */

/* ---- Общий фон страницы ---- */
.page-cms {
  padding-bottom: 4rem;
}

.page-cms #content {
  background: transparent;
  box-shadow: none;
  padding: 0 0.75rem;
  border: none;
}

@media (min-width: 768px) {
  .page-cms #content {
    padding: 0 1rem;
  }
}

@media (min-width: 1200px) {
  .page-cms #content {
    padding: 0 1.5rem;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* =====================================================
   HERO HEADER
   ===================================================== */
.cms-hero-header {
  position: relative;
  background: linear-gradient(135deg, #1a2530 0%, #2d3d4d 100%);
  border-radius: 16px;
  padding: 2rem 1.25rem;
  margin: 0 0 1.25rem;
  overflow: hidden;
  color: #fff;
}

.cms-hero-header .cms-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.cms-hero-header .cms-hero-label {
  display: inline-block;
  background: rgba(242, 111, 33, 0.18);
  color: #ffb88a;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(242, 111, 33, 0.25);
}

.cms-hero-header .cms-hero-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff !important;
  margin: 0 0 0.65rem !important;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.cms-hero-header .cms-hero-title::after {
  display: none !important;
}

.cms-hero-header .cms-hero-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  max-width: 480px;
  line-height: 1.5;
}

.cms-hero-header .cms-hero-shape {
  position: absolute;
  right: -80px;
  top: -80px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(242, 111, 33, 0.28) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
}

/* =====================================================
   CONTENT WRAPPER & LAYOUT
   ===================================================== */
.cms-content-wrapper {
  margin-top: 0;
  margin-bottom: 1rem;
  padding: 0;
}

.cms-content-body {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

/* ---- Основной текст ---- */
.cms-main-text {
  background: #ffffff;
  border-radius: 16px;
  box-shadow:
    0 2px 16px rgba(26, 37, 48, 0.04),
    0 1px 3px rgba(26, 37, 48, 0.03);
  padding: 1.5rem 1.25rem;
  margin: 0 0 1.25rem;
}

.cms-main-text h2,
.cms-main-text h3,
.cms-main-text h4 {
  color: #1a2530;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.cms-main-text h2 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.cms-main-text h2:first-child {
  margin-top: 0;
}

.cms-main-text h3 {
  font-size: 1.15rem;
}

.cms-main-text p,
.cms-main-text li {
  color: #4a5563;
  font-size: 0.95rem;
  line-height: 1.75;
}

.cms-main-text p {
  margin-bottom: 1rem;
  text-align: left;
  text-align-last: left;
}

.cms-main-text p:last-child {
  margin-bottom: 0;
}

.cms-main-text .lead,
.cms-main-text p.lead {
  font-size: 1.05rem;
  color: #1a2530;
  font-weight: 500;
  line-height: 1.65;
}

.cms-main-text a {
  color: #f26f21;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.cms-main-text a:hover {
  color: #d85a12;
}

.cms-main-text ul,
.cms-main-text ol {
  margin: 0 0 1.25rem 0;
  padding-left: 0;
}

.cms-main-text li {
  margin-bottom: 0.55rem;
}

.cms-main-text ul > li {
  position: relative;
  padding-left: 1.5rem;
  list-style: none;
}

.cms-main-text ul > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 7px;
  height: 7px;
  background: #f26f21;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(242, 111, 33, 0.12);
}

/* ---- Выделенный блок ---- */
.cms-main-text .ilze-cms-highlight {
  background: linear-gradient(135deg, #fff6f1 0%, #fffdf9 100%);
  border-left: 4px solid #f26f21;
  border-radius: 0 10px 10px 0;
  padding: 1.25rem 1rem;
  margin: 1.5rem 0;
  box-shadow: 0 2px 12px rgba(242, 111, 33, 0.06);
}

/* =====================================================
   SIDEBAR: FACTS CARD & CTA CARD
   ===================================================== */
.cms-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cms-facts-card,
.cms-cta-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow:
    0 2px 16px rgba(26, 37, 48, 0.04),
    0 1px 3px rgba(26, 37, 48, 0.03);
  padding: 1.5rem 1.25rem;
  margin: 0 0 1.25rem;
}

.cms-facts-title,
.cms-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a2530;
  margin: 0 0 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid #f4f6f9;
}

.cms-facts-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cms-fact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid #f4f6f9;
}

.cms-fact:last-child {
  border-bottom: none;
}

.cms-fact strong {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 1.35rem;
  font-weight: 800;
  color: #f26f21;
  min-width: 3rem;
  line-height: 1;
}

.cms-fact span {
  color: #4a5563;
  font-size: 0.9rem;
  line-height: 1.4;
}

.cms-cta-card h3,
.cms-cta-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a2530;
  margin: 0 0 0.65rem;
}

.cms-cta-card p,
.cms-cta-text {
  color: #4a5563;
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 1.1rem;
}

.cms-cta-card .btn,
.cms-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #f26f21;
  border-color: #f26f21;
  color: #fff;
  font-weight: 600;
  padding: 0.7rem 1.15rem;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.cms-cta-card .btn:hover,
.cms-cta-button:hover {
  background: #d85a12;
  border-color: #d85a12;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(242, 111, 33, 0.25);
}

/* =====================================================
   VALUES SECTION
   ===================================================== */
.cms-values-section {
  margin-top: 2rem;
  padding: 0;
}

.cms-section-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1a2530;
  text-align: center;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

.cms-values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.cms-value-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  box-shadow:
    0 2px 16px rgba(26, 37, 48, 0.04),
    0 1px 3px rgba(26, 37, 48, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
}

.cms-value-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 10px 28px rgba(26, 37, 48, 0.07),
    0 3px 6px rgba(26, 37, 48, 0.03);
}

.cms-value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #fff6f1 0%, #fffdf9 100%);
  border-radius: 50%;
  color: #f26f21;
  margin-bottom: 0.85rem;
  border: 1px solid #fdeee4;
}

.cms-value-icon svg {
  width: 24px;
  height: 24px;
}

.cms-value-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a2530;
  margin: 0 0 0.4rem;
}

.cms-value-card p {
  color: #6b7c8d;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* =====================================================
   REQUISITES SECTION
   ===================================================== */
.cms-requisites-section {
  margin-top: 2.5rem;
  padding: 0;
}

.cms-section-heading {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1a2530;
  text-align: center;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

.cms-requisites-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow:
    0 2px 16px rgba(26, 37, 48, 0.04),
    0 1px 3px rgba(26, 37, 48, 0.03);
  padding: 1.5rem 1.25rem;
  margin: 0 0 1.25rem;
}

.cms-requisites-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
}

.cms-requisites-list dt,
.cms-requisites-list dd {
  margin: 0;
  padding: 0;
}

.cms-requisites-list dt {
  font-size: 0.8rem;
  font-weight: 700;
  color: #6b7c8d;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
}

.cms-requisites-list dd {
  font-size: 0.95rem;
  color: #1a2530;
  line-height: 1.5;
}

.cms-requisites-list dd a {
  color: #f26f21;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.cms-requisites-list dd a:hover {
  color: #d85a12;
  text-decoration: underline;
}

@media (min-width: 576px) {
  .cms-requisites-list {
    grid-template-columns: 180px 1fr;
    gap: 0.75rem 1.25rem;
    align-items: baseline;
  }

  .cms-requisites-list dt {
    margin-bottom: 0;
  }
}

/* =====================================================
   Анимация появления
   ===================================================== */
@media (prefers-reduced-motion: no-preference) {
  .cms-hero-header,
  .cms-main-text,
  .cms-facts-card,
  .cms-cta-card,
  .cms-value-card,
  .cms-requisites-card {
    opacity: 0;
    transform: translateY(24px);
    animation: cms-fade-in 0.6s ease forwards;
  }

  .cms-hero-header { animation-delay: 0.05s; }
  .cms-main-text { animation-delay: 0.15s; }
  .cms-facts-card { animation-delay: 0.25s; }
  .cms-cta-card { animation-delay: 0.35s; }
  .cms-value-card:nth-child(1) { animation-delay: 0.2s; }
  .cms-value-card:nth-child(2) { animation-delay: 0.3s; }
  .cms-value-card:nth-child(3) { animation-delay: 0.4s; }
  .cms-value-card:nth-child(4) { animation-delay: 0.5s; }
}

@keyframes cms-fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================================================
   Адаптив
   ===================================================== */
@media (min-width: 576px) {
  .cms-values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .cms-hero-header {
    padding: 2.5rem 1.5rem;
  }

  .cms-hero-header .cms-hero-title {
    font-size: 2.25rem;
  }

  .cms-hero-header .cms-hero-subtitle {
    font-size: 1.1rem;
  }

  .cms-main-text,
  .cms-facts-card,
  .cms-cta-card,
  .cms-value-card {
    padding: 1.75rem 1.5rem;
  }
}

@media (min-width: 768px) {
  .cms-hero-header {
    padding: 3rem 2rem;
    border-radius: 20px;
  }

  .cms-hero-header .cms-hero-title {
    font-size: 2.6rem;
  }

  .cms-hero-header .cms-hero-subtitle {
    font-size: 1.15rem;
  }

  .cms-main-text {
    padding: 2rem 2.25rem;
    border-radius: 20px;
  }

  .cms-main-text h2 {
    font-size: 1.6rem;
  }

  .cms-main-text h3 {
    font-size: 1.25rem;
  }

  .cms-main-text p,
  .cms-main-text li {
    font-size: 1rem;
  }

  .cms-main-text .lead,
  .cms-main-text p.lead {
    font-size: 1.1rem;
  }

  .cms-facts-card,
  .cms-cta-card {
    padding: 1.75rem;
  }

  .cms-value-card {
    padding: 1.75rem 1.5rem;
  }

  .cms-section-title {
    font-size: 1.75rem;
    margin-bottom: 1.75rem;
  }

  .cms-fact strong {
    font-size: 1.5rem;
  }

  .cms-value-icon {
    width: 64px;
    height: 64px;
  }

  .cms-value-icon svg {
    width: 28px;
    height: 28px;
  }
}

@media (min-width: 992px) {
  .cms-content-body {
    grid-template-columns: 1fr 320px;
    align-items: start;
    gap: 1.75rem;
  }

  .cms-sidebar {
    position: sticky;
    top: 100px;
  }

  .cms-hero-header,
  .cms-main-text,
  .cms-facts-card,
  .cms-cta-card,
  .cms-value-card,
  .cms-values-grid {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (min-width: 1200px) {
  .cms-values-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .cms-hero-header .cms-hero-shape {
    width: 340px;
    height: 340px;
    right: -80px;
    top: -80px;
  }
}
