/* === Дополнительные стили для каркаса B (инструментальные лендинги) === */

/* Сжимаю воздух между всеми секциями в каркасе B */
body[data-template="b"] .section {
  padding: 40px 0;
}
body[data-template="b"] .section-head {
  margin-bottom: 24px;
}
body[data-template="b"] h2 {
  margin-top: 0;
  margin-bottom: 12px;
}
body[data-template="b"] .section-sub {
  margin: 0;
}
body[data-template="b"] .section--tight {
  padding: 28px 0;
}
body[data-template="b"] .section--tight .lead-para {
  padding: 0;
  font-size: 17px;
}
@media (max-width: 800px) {
  body[data-template="b"] .section {
    padding: 32px 0;
  }
  body[data-template="b"] .section--tight {
    padding: 20px 0;
  }
}

/* Раскрываемый блок «N уроков по Excel — показать» внутри карточки программы */
.prog-lessons-toggle {
  margin-top: 16px;
  padding: 12px 16px;
  background: #f0f6fb;
  border: 1px solid #cee0f3;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.15s ease;
}
.prog-lessons-toggle:hover {
  background: #e3eef9;
}
.prog-lessons-toggle-label {
  font-weight: 600;
  font-size: 14px;
  color: #1a1a1a;
}
.prog-lessons-toggle-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}
.prog-lessons-list {
  margin-top: 12px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #f0e7df;
  border-radius: 10px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding-top: 0;
  padding-bottom: 0;
}
.prog-lessons-list.open {
  max-height: 1500px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.prog-lessons-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.prog-lessons-list li {
  padding: 8px 0;
  border-bottom: 1px solid #f5f0eb;
  font-size: 14px;
  line-height: 1.45;
  color: #2a2a2a;
}
.prog-lessons-list li:last-child {
  border-bottom: none;
}
.prog-lessons-list li::before {
  content: '·';
  color: #3a8dde;
  font-weight: 700;
  margin-right: 10px;
}

.prog .prog-lessons-toggle.open .prog-lessons-toggle-arrow {
  transform: rotate(90deg);
}

/* === Миникурсы === */
.minicourses-section .section-head {
  margin-bottom: 24px;
}
.minicourse-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  justify-content: center;
}
.mini-filter {
  border: 1px solid #d4cfc8;
  background: #fff;
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  color: #3a3a3a;
  cursor: pointer;
  transition: all 0.15s ease;
}
.mini-filter:hover {
  border-color: #3a8dde;
  color: #3a8dde;
}
.mini-filter.active {
  background: #3a8dde;
  color: #fff;
  border-color: #3a8dde;
}

.minicourse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.mini-card.mini-card--hidden {
  display: none;
}
.mini-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  border: 1px solid #ece7e0;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.mini-card:hover {
  border-color: #3a8dde;
  transform: translateY(-2px);
}
.mini-card-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}
.mini-card-meta {
  font-size: 13px;
  color: #888;
  margin-bottom: 12px;
}
.mini-card-meta .pill {
  display: inline-block;
  background: #f5efea;
  padding: 2px 10px;
  border-radius: 12px;
  margin-right: 6px;
}
.mini-card-skills {
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mini-card-skills .chip {
  font-size: 12px;
  padding: 4px 10px;
  background: #f5efea;
  border: none;
  border-radius: 10px;
  color: #4a4137;
}
.mini-card-cta {
  margin-top: auto;
  padding-top: 12px;
}
.mini-card-cta a {
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid #1a1a1a;
}
.mini-card-cta a:hover {
  color: #3a8dde;
  border-bottom-color: #3a8dde;
}
.minicourse-empty {
  text-align: center;
  padding: 40px;
  color: #888;
  font-size: 15px;
}

.minicourse-show-more {
  text-align: center;
  margin-top: 32px;
}
.minicourse-show-more button {
  border: 1px solid #d4cfc8;
  background: #fff;
  padding: 12px 28px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  cursor: pointer;
  transition: all 0.15s ease;
}
.minicourse-show-more button:hover {
  border-color: #1a1a1a;
}
.minicourse-show-more button[hidden] {
  display: none;
}

/* === Паспорт-плашка (короткая, в каркасе B) === */
.passport-callout-section {
  padding-top: 40px;
  padding-bottom: 40px;
}
.passport-callout {
  background: linear-gradient(135deg, #eff6fc 0%, #fff 100%);
  border-radius: 16px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  gap: 32px;
  border: 1px solid #cee0f3;
}
.passport-callout-text {
  flex: 1;
}
.passport-callout-text h2 {
  margin: 8px 0 12px;
  font-size: 24px;
  line-height: 1.25;
}
.passport-callout-text p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #3a3a3a;
}
.passport-callout-cta {
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .passport-callout {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
  }
}

/* === Access (Программа vs Подписка) === */
.access-grid--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 800px) {
  .access-grid--two {
    grid-template-columns: 1fr;
  }
}
.access-grid--two .access-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 28px;
  border: 1px solid #ece7e0;
  display: flex;
  flex-direction: column;
}
.access-grid--two .access-card--subscription {
  background: #1755d9;
  color: #fff;
  border: none;
}
.access-grid--two .access-card-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #3a8dde;
  margin-bottom: 6px;
}
.access-grid--two .access-card-eyebrow--accent {
  color: #ffd9c8;
}
.access-grid--two .access-card-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 8px;
}
.access-grid--two .access-card-desc {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 14px;
  opacity: 0.95;
}
.access-grid--two .access-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}
.access-grid--two .access-bullets li {
  padding: 5px 0 5px 24px;
  position: relative;
  font-size: 13px;
  line-height: 1.4;
}
.access-grid--two .access-bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 5px;
  font-weight: 700;
  color: #3a8dde;
}
.access-grid--two .access-card--subscription .access-bullets li::before {
  color: #fff;
}

.access-cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}
.access-cta-row .btn {
  min-width: 220px;
}
.access-cta-row .btn-secondary {
  background: #fff;
  color: #1a1a1a;
  border: 1px solid #1a1a1a;
}
.access-cta-row .btn-secondary:hover {
  background: #1a1a1a;
  color: #fff;
}
@media (max-width: 600px) {
  .access-cta-row {
    flex-direction: column;
  }
  .access-cta-row .btn {
    width: 100%;
  }
}

/* === Компактный hero для каркаса B === */
.hero--compact {
  min-height: auto !important;
  padding-top: 40px !important;
  padding-bottom: 56px !important;
}
.hero-content--compact {
  margin-top: 32px !important;
}
.hero-content--compact h1 {
  margin-bottom: 16px !important;
}
.hero-content--compact .hero-lead {
  margin-bottom: 28px !important;
}

.section--tight {
  padding-top: 40px !important;
  padding-bottom: 40px !important;
}

/* === Форма консультации (новая в каркасе B) === */
.consultation-section {
  background: #f7f4ee;
}
.consultation-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 800px) {
  .consultation-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
.consultation-text h2 {
  margin: 8px 0 16px;
  font-size: 28px;
  line-height: 1.2;
}
.consultation-text p {
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 16px;
}
.consultation-bullets {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.consultation-bullets li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 14px;
  line-height: 1.45;
}
.consultation-bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 8px;
  font-weight: 700;
  color: #1755d9;
}

.consultation-form {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.consultation-form h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
.consultation-form input {
  padding: 14px 16px;
  border: 1px solid #d4cfc8;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
}
.consultation-form input:focus {
  outline: none;
  border-color: #3a8dde;
}
.consultation-form .btn {
  margin-top: 4px;
  background: #1755d9;
  color: #fff;
}
.consultation-form .btn:hover {
  background: #1145b3;
}
.consultation-disclaimer {
  font-size: 12px;
  color: #888;
  margin: 4px 0 0;
  line-height: 1.4;
}


/* === Программы как лента строк (каркас B) === */
.prog-group--list {
  margin-bottom: 32px;
}
.prog-group--list:last-child {
  margin-bottom: 0;
}
.prog-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.prog-group--list .prog {
  background: #fff;
  border: 1px solid #ece7e0;
  border-left: 3px solid #3a8dde;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.prog-group--list .prog:hover {
  border-color: #d4cfc8;
  border-left-color: #3a8dde;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.prog-group--list .prog.open {
  border-left-color: #3a8dde;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.prog-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
}
.prog-row-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eff6fc;
  border-radius: 8px;
  color: #3a8dde;
}
.prog-row-icon svg {
  width: 22px;
  height: 22px;
}
.prog-row-main {
  flex: 1;
  min-width: 0;
}
.prog-row-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
  margin-bottom: 4px;
}
.prog-row-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.prog-row-meta .prog-pill {
  display: inline-block;
  padding: 2px 10px;
  background: #f5efea;
  border-radius: 12px;
  font-size: 12px;
  color: #5a5a5a;
}
.prog-row-arrow {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  transition: transform 0.2s ease, color 0.2s ease;
}
.prog-group--list .prog.open .prog-row-arrow {
  transform: rotate(180deg);
  color: #3a8dde;
}

.prog-row-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.prog-group--list .prog.open .prog-row-body {
  max-height: 2000px;
}
.prog-row-body-inner {
  padding: 0 20px 20px 76px;
  border-top: 1px solid #f5efea;
  padding-top: 16px;
}
@media (max-width: 600px) {
  .prog-row {
    padding: 14px 16px;
    gap: 12px;
  }
  .prog-row-icon {
    width: 36px;
    height: 36px;
  }
  .prog-row-icon svg {
    width: 20px;
    height: 20px;
  }
  .prog-row-name {
    font-size: 15px;
  }
  .prog-row-body-inner {
    padding: 16px 16px 16px 16px;
  }
}
