@charset "UTF-8";
/* Страница «Обучение» — минимальные дополнения к стилям главной */

.box-h1.box-h1--obuchenie {
  --obuchenie-hero-title-gap: 2rem;
  margin: 0% 0 5% 2%;
}

.site-header--obuchenie .head-area .obuchenie-hero__label {
  margin: 0 0 var(--obuchenie-hero-title-gap);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.box-h1.box-h1--obuchenie > #obuchenie-page-title {
  line-height: 0.8;
  margin: 0 0 var(--obuchenie-hero-title-gap);
}

@media (max-width: 767px) {
  .box-h1.box-h1--obuchenie {
    --obuchenie-hero-title-gap: 1.5rem;
  }

  .box-h1.box-h1--obuchenie > #obuchenie-page-title {
    font-size: 44px;
  }
}

.site-header--obuchenie .header-hero-image {
  object-position: 52% center;
}

.obuchenie-status span.icon-history {
  color: #3dcd67;
}

.obuchenie-status span.icon-video {
  color: #58a6ff;
}

.obuchenie-status span.icon-trophy {
  color: #dacebd;
}

.obuchenie-status span.icon-file-text {
  color: #f7f7f7;
}

.obuchenie-status p {
  font-size: clamp(0.9375rem, 0.88rem + 0.28vw, 1.25rem);
}

.obuchenie-status span {
  font-size: clamp(1.25rem, 0.95rem + 1.2vw, 2.75rem);
}

.obuchenie-gallery {
  width: 100%;
  margin: clamp(2.5rem, 5vw, 5rem) auto;
}

.obuchenie-gallery h2 {
  color: #fff;
  margin: 0 0 1.75rem;
  font-size: clamp(1.375rem, 1.1rem + 1.1vw, 2.25rem);
  font-weight: 900;
  line-height: 1.2;
}

.obuchenie-gallery h2::before {
  display: none;
}

.obuchenie-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.obuchenie-gallery__item {
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #323232;
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.45);
}

.obuchenie-gallery__item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.obuchenie-gallery__caption {
  padding: 0.75rem 1rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.content-block__text ul {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.content-block__text li {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
}

.films-shop-card .content-block__actions {
  margin-top: auto;
  padding-top: 0.5rem;
}

.films-shop-card .content-block__actions .btn-icon {
  margin: 0;
}

.obuchenie-callback-widget .callback-widget__trigger {
  display: none;
}

.obuchenie-formats {
  width: 100%;
  margin: clamp(2rem, 4vw, 4rem) auto;
}

.obuchenie-formats .content-block__label {
  margin-bottom: 0.75rem;
}

.obuchenie-formats h2 {
  color: #fff;
  margin: 0 0 1.5rem;
  font-size: clamp(1.375rem, 1.1rem + 1.1vw, 2.25rem);
  font-weight: 900;
  line-height: 1.2;
}

.obuchenie-formats h2::before {
  display: none;
}

.obuchenie-formats__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  max-width: 100%;
  border-radius: 20px;
  background: #323232;
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.45);
}

.obuchenie-formats__table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.obuchenie-formats__table th,
.obuchenie-formats__table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
}

.obuchenie-formats__table thead th {
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.obuchenie-formats__table tbody th[scope="row"] {
  font-weight: 600;
  color: #dacebd;
  width: 28%;
}

.obuchenie-formats__table tbody tr:last-child th,
.obuchenie-formats__table tbody tr:last-child td {
  border-bottom: none;
}

.obuchenie-formats__note {
  margin: 1.25rem 0 0;
  font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
}

.obuchenie-courses__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.films-shop-card--online {
  border: 1px solid rgba(2, 102, 2, 0.35);
}

@media (max-width: 1023px) {
  .obuchenie-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .ultra-top.split-screen .status {
    flex-direction: column;
    gap: 1rem;
  }

  .obuchenie-gallery__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .obuchenie-courses__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Сравнение форматов: карточки вместо широкой таблицы */
  .obuchenie-formats__table-wrap {
    overflow: visible;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }

  .obuchenie-formats__table {
    min-width: 0;
    display: block;
    width: 100%;
  }

  .obuchenie-formats__table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .obuchenie-formats__table tbody {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }

  .obuchenie-formats__table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.65rem;
    margin: 0;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    background: #323232;
    box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.45);
  }

  .obuchenie-formats__table tbody th,
  .obuchenie-formats__table tbody td {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0;
    border: none;
  }

  .obuchenie-formats__table tbody th[scope="row"] {
    width: auto;
    margin-bottom: 0.15rem;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .obuchenie-formats__table tbody td {
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
  }

  .obuchenie-formats__table tbody td:nth-child(2)::before,
  .obuchenie-formats__table tbody td:nth-child(3)::before {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.55);
  }

  .obuchenie-formats__table tbody td:nth-child(2)::before {
    content: "Видеокурс";
  }

  .obuchenie-formats__table tbody td:nth-child(3)::before {
    content: "Студия в Казани";
  }

  .obuchenie-formats__note {
    overflow-wrap: anywhere;
    max-width: 100%;
  }
}
