/* 1) общий контейнер строки */
body#cms #content .subgrid-row {
  border-bottom: 1px solid #e0e0e0;
  padding: 0.75rem 0;
}



/* 3) заголовок внутри — сброс отступов и нужный размер шрифта */
body#cms #content .subgrid-cell.one h2 {
  margin: 0;
  line-height: 1.3;
  font-size: 1.8em;
  font-weight: 400;
  color: #222;
}
body#cms #content .subgrid-row .subgrid-cell.one {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  padding-right: 3.5em; /* место под стрелку */
}

/* 3) Единый спан со стрелкой */
body#cms #content .arrow.unfold {
  font-family: 'Material Icons';
  font-size: 2.25rem;
  line-height: 1;
  display: inline-block;
  transition: transform 0.3s ease;
  user-select: none;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%) rotate(0deg);
}

/* 4) Сам контент стрелки */
body#cms #content .arrow.unfold::before {
  content: 'expand_more';
}

/* 5) При открытом ответе — поворачиваем на 90° */
body#cms #content .subgrid-row.open .arrow.unfold {
  transform: translateY(-50%) rotate(180deg);
}
body#cms #content .subgrid-cell.two {
  display: none;
  padding: 0.75rem 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #444;
}

/* 7) когда открыт — показываем ответ */
body#cms #content .subgrid-row.open .subgrid-cell.two {
  display: block;
} 

body#cms #content{
  font-family: 'Segoe UI', Tahoma, sans-serif;
  font-size: var(--font-base);
  color: #333;
  line-height: 1.6;
  background: #eef4fb;  /* светло-голубой фон страницы */
  padding: var(--spacing) 0;
}



/* Каждый ряд — две колонки */
body#cms #content .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
  gap: var(--spacing);
  position: relative;
  padding: var(--spacing);
  background: #fff;
  min-height: var(--min-row-height);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Заливка для чётных рядов */
body#cms #content .row:nth-child(even) {
  background: #eef4fb; /* чуть более тёмный фон */
}

/* Зигзагообразная меняющаяся раскладка */
body#cms #content .row:nth-child(even) {
  direction: rtl;
}
body#cms #content .row:nth-child(even) body#cms #content .row__content,
body#cms #content .row:nth-child(even) body#cms #content .row__image {
  direction: ltr;
}

/* Жёлтая полоска между рядами */
body#cms #content .row:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--accent-color);
}
body#cms #content .row:last-child::after {
  display: none;
}
/* Контентная часть */
body#cms #content .row__content {
  padding: 40px;
}
body#cms #content .row__content h2 {
  font-size: 2.25rem;
  color: var(--primary-color);
  margin-bottom: 30px;
  border-bottom: 3px solid var(--primary-color);
  display: inline-block;
  padding-bottom: 0.25rem;
  text-align: center;
}
body#cms #content .row__content p {
  margin-bottom: var(--spacing);
}

/* Картинка */
body#cms #content .row__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  object-fit: cover;
}

/* Кнопка */
body#cms #content .btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #1b82d6;
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
  font-weight: 600;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 30px;
}
body#cms #content .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Мобильная версия */
@media (max-width: 768px) {
  body#cms {
    background: #ffffff;
    padding: 24px 0;
  }
  body#cms #content {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  body#cms #content .row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    min-height: auto;
  }
  body#cms #content .row:nth-child(even) {
    direction: ltr;
    background: #ffffff;
  }
  /* Hide accent stripe */
  body#cms #content .row:not(:last-child)::after {
    display: none;
  }
  body#cms #content .row__content {
    order: 1;
    padding: 0;
  }
  body#cms #content .row__content h2 {
    font-size: 28px;
    margin-bottom: 16px;
  }
  body#cms #content .row__content p {
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.4;
  }
  body#cms #content .row__image {
    order: 2;
    width: 100%;
  }
  body#cms #content .row__image img {
    border-radius: 8px;
  }
  body#cms #content .btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 0;
    font-size: 16px;
    margin-top: 16px;
  }
}