/* Вариант B - "Тихий кабинет"
   Фон: очень светлый с тёплым сероватым подтоном. Текст: тёмно-коричневый.
   Акцент: приглушённый хвойный. Системный гротеск, спокойный ритм.
   Без теней, градиентов и анимаций. */

:root {
  --bg:        #F6F5F1;  /* светлый, чуть тёплый, не белый */
  --bg-soft:   #EDEBE4;  /* карточки и панель */
  --text:      #302A24;  /* тёмно-коричневый */
  --text-soft: #6B6459;  /* второстепенный текст */
  --line:      #DEDACF;  /* разделители */
  --accent:    #4F6B57;  /* приглушённый хвойный */
  --accent-on: #F7F8F5;  /* текст на кнопке */
  --col: 640px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0 20px 40px;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

main {
  max-width: var(--col);
  margin: 0 auto;
}

/* ---------- Ритм блоков ---------- */

section { padding: 48px 0; }

h1 {
  font-size: 29px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

h2 {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0 0 22px;
}

p { margin: 0 0 18px; }

/* ---------- Первый экран ---------- */

.hero { padding: 36px 0 48px; }

.photo {
  display: block;
  width: 100%;
  height: auto;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin: 0 0 24px;
  border-radius: 50%;
}

.name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-soft);
  margin: 0 0 10px;
}

.lead {
  font-size: 18px;
  color: var(--text-soft);
  margin: 0 0 28px;
}

/* ---------- Видео ---------- */

.video-block { padding: 0 0 48px; }

.video {
  display: block;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 9 / 16;
  margin: 0 auto 12px;
  border-radius: 8px;
  background: #1c1c1c;
}

.caption {
  font-size: 16px;
  color: var(--text-soft);
  text-align: center;
  margin: 0;
}

/* ---------- С чем приходят ---------- */

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

.cases li {
  margin: 0 0 24px;
  padding: 0 0 0 16px;
  border-left: 2px solid var(--line);
}

.cases li:last-child { margin-bottom: 0; }

/* ---------- Цена ---------- */

.price {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 22px;
  padding: 16px 18px;
  background: var(--bg-soft);
  border-radius: 8px;
}

/* ---------- Тихий блок ---------- */

.quiet {
  color: var(--text-soft);
  font-size: 16px;
  padding-top: 0;
}

/* ---------- Сертификаты ---------- */

.certs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.cert {
  flex: 0 0 auto;
  display: block;
}

.cert img {
  display: block;
  height: 80px;
  width: auto;
  border-radius: 4px;
  border: 1px solid var(--line);
}

/* ---------- Истории ---------- */

.story {
  padding: 22px 0 0;
  margin: 0 0 22px;
  border-top: 1px solid var(--line);
}

.story:first-of-type { border-top: none; padding-top: 0; }

.story-head { font-weight: 600; }

/* ---------- Карточки групп ---------- */

.cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card {
  display: block;
  padding: 20px;
  background: var(--bg-soft);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
}

.card-title {
  display: block;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.card-text {
  display: block;
  font-size: 16px;
  color: var(--text-soft);
}

.hidden { display: none; }

/* ---------- FAQ ---------- */

details {
  border-bottom: 1px solid var(--line);
}

details:first-of-type { border-top: 1px solid var(--line); }

summary {
  cursor: pointer;
  padding: 16px 28px 16px 0;
  min-height: 48px;
  font-weight: 600;
  list-style: none;
  position: relative;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 15px;
  color: var(--accent);
  font-size: 20px;
  font-weight: normal;
}

details[open] summary::after { content: "\2212"; }

details p {
  margin: 0 0 16px;
  color: var(--text-soft);
}

/* ---------- Кнопки ---------- */

.cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 28px 0 0;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 12px 16px;
  background: var(--accent);
  color: var(--accent-on);
  text-decoration: none;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
}

.btn .ic {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.btn:visited { color: var(--accent-on); }

/* ---------- Мелкий текст и подвал ---------- */

.fine {
  font-size: 14px;
  color: var(--text-soft);
  margin: 24px 0 0;
}

footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

/* ---------- Плейсхолдеры (временные, в бою удаляются) ---------- */

.todo {
  border: 1px dashed #BFBBAF;
  color: #7C7669;
  font-size: 14px;
  font-weight: normal;
  padding: 6px 10px;
  border-radius: 6px;
}

.photo.todo { border-radius: 50%; }
.video.todo { border-radius: 8px; }

/* ---------- Десктоп ---------- */

@media (min-width: 700px) {
  h1 { font-size: 34px; }
  .hero { padding-top: 56px; }
  .cta { flex-direction: row; }
  .cta .btn { flex: 1; }
  .cards { flex-direction: row; }
  .card { flex: 1; }
}
