/* ==========================================================================
   COURSE PAGE TEMPLATE — sobakarisovaka.ru
   Единый шаблон для всех курсов.
   Акцентный цвет меняется через --accent.
   ЦА: женщины 45-65+, шрифты увеличены.
   ========================================================================== */

:root {
  --accent: #B0742E;
  --accent-light: #b0742e18;
  --accent-hover: #8F5D24;
  --text: #2D2D2D;
  --text-muted: #6B6B6B;
  --bg: #FFFFFF;
  --bg-alt: #F8F6F3;
  --bg-dark: #2D2D2D;
  --border: #E8E4DF;
  --card-shadow: 0 2px 20px rgba(0,0,0,0.06);
  --card-shadow-hover: 0 4px 30px rgba(0,0,0,0.10);
  --radius: 12px;
  --section-gap: 100px;
}

/* ---------- RESET & BASE ---------- */

body {
  font-family: "PT Sans", sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a { color: var(--accent); transition: color 0.2s; }
a:hover { color: var(--accent-hover); text-decoration: none; }

/* ---------- TYPOGRAPHY ---------- */

main h1, main h2, main h3 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 50px;
}

main h1 {
  font-size: 52px;
  line-height: 1.15;
}
main h2 {
  font-size: 44px;
  line-height: 1.2;
}
main h3 {
  font-size: 30px;
  line-height: 1.3;
  margin-bottom: 30px;
}

@media (max-width: 991.98px) {
  main h1 { font-size: 44px; }
  main h2 { font-size: 38px; }
}
@media (max-width: 767.98px) {
  main h1 { font-size: 36px; }
  main h2 { font-size: 32px; }
  main h3 { font-size: 26px; }
  :root { --section-gap: 70px; }
}
@media (max-width: 575.98px) {
  main h1 { font-size: 30px; }
  main h2 { font-size: 28px; }
  main h3 { font-size: 24px; }
  :root { --section-gap: 50px; }
}

main h2 .accent {
  color: var(--accent);
}

/* ---------- SECTION SPACING ---------- */

.section {
  padding: var(--section-gap) 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section--dark {
  background: var(--bg-dark);
  color: #fff;
}
.section--dark h2,
.section--dark h3 {
  color: #fff;
}

/* ---------- MOBILE STICKY CTA ---------- */

.mobile-cta {
  display: none;
}

@media (max-width: 991.98px) {
  .mobile-cta {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 50px;
    z-index: 102;
    background: var(--accent);
    color: #fff;
    text-align: center;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
  }
  .mobile-cta:hover {
    background: var(--accent-hover);
    color: #fff;
    text-decoration: none;
  }
}

/* ---------- HERO ---------- */

.head_nav_mt {
  margin-top: 55px;
}
@media (max-width: 991.98px) {
  .head_nav_mt {
    margin-top: 42px;
  }
}

.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-alt);
  background-size: auto;
  background-position: center;
  padding: 100px 0;
}
@media (min-width: 1921px) {
  .hero { background-size: cover; }
}

.hero__bg-image {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.hero__bg-image img {
  height: 100%;
  width: auto;
  max-width: none;
  max-height: 800px;
}

.hero__image {
  position: relative;
  z-index: 1;
}

.hero__image img {
  width: 100%;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero__tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  background: var(--accent-light);
  padding: 6px 16px;
  border-radius: 6px;
  margin-bottom: 24px;
}

.hero h1 {
  text-align: left;
  margin-bottom: 16px;
}

.hero__expert-name {
  display: block;
  color: var(--accent);
  font-size: 0.65em;
  font-weight: 400;
  margin-top: 8px;
}

.hero__bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.hero__bullets li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 19px;
  line-height: 1.5;
}

.hero__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.hero__bullets li strong {
  font-weight: 700;
}

.hero__cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 16px 40px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  margin-bottom: 32px;
}
.hero__cta:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--card-shadow-hover);
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.hero__meta-item {
  text-align: center;
  background: var(--accent-light);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 12px;
}

.hero__meta-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.hero__meta-value {
  display: block;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  line-height: 1.2;
}

@media (max-width: 767.98px) {
  .hero { min-height: auto; padding: 40px 0 40px; }
  .hero__image { margin-top: 24px; }
  .hero h1 { font-size: 28px; }
  .hero__meta { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .hero__meta-value { font-size: 16px; }
  .hero__meta-label { font-size: 11px; letter-spacing: 0; }
  .hero__meta-item { padding: 10px 6px; }
  .hero__bullets li { font-size: 17px; }
  .hero__cta { font-size: 16px; padding: 14px 30px; }
}

/* ---------- ABOUT ---------- */

.about__grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 50px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

.about__text {
  font-size: 20px;
  line-height: 1.7;
}

.about__text strong {
  color: var(--accent);
  font-weight: 700;
}

.about__highlight {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  padding: 20px 28px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 30px 0;
  font-size: 19px;
  line-height: 1.6;
}

.about__photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.about__photo img {
  width: 100%;
  display: block;
}

@media (max-width: 767.98px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .about__photo {
    max-width: 250px;
    margin: 0 auto;
  }
}

/* ---------- TARGET AUDIENCE ---------- */

.audience__grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 50px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

.audience__photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.audience__photo img {
  width: 100%;
  display: block;
}

.audience__text {
  font-size: 20px;
  line-height: 1.7;
}

.audience__text p {
  margin-bottom: 16px;
}

@media (max-width: 767.98px) {
  .audience__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .audience__photo {
    max-width: 250px;
    margin: 0 auto;
  }
}

/* ---------- PROGRAM ---------- */

.program__lesson {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.program__lesson:last-child {
  border-bottom: none;
}

.program__lesson:nth-child(even) {
  direction: rtl;
}
.program__lesson:nth-child(even) > * {
  direction: ltr;
}

.program__lesson-number {
  font-family: "Playfair Display", serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 8px;
}

.program__lesson-title {
  font-family: "Playfair Display", serif;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
}

.program__lesson-duration {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.program__lesson-desc {
  color: var(--text);
  margin-bottom: 16px;
  font-size: 18px;
}

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

.program__lesson-skills li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
  font-size: 17px;
  color: var(--text);
}

.program__lesson-skills li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.program__lesson-image {
  display: flex;
  justify-content: center;
}

.program__lesson-image img {
  width: auto;
  max-width: 100%;
  max-height: 500px;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  transition: transform 0.3s;
}

.program__lesson-image:hover img {
  transform: scale(1.02);
}

/* Cutout lessons (transparent oval/plate, no card backing or shadow) */
.program__lesson-image--cutout img {
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 767.98px) {
  .program__lesson {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px 0;
  }
  .program__lesson:nth-child(even) {
    direction: ltr;
  }
  .program__lesson-title { font-size: 22px; }
}

/* ---------- EXPERT ---------- */

.expert {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 50px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

.expert__photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.expert__photo img {
  width: 100%;
  display: block;
}

.expert__name {
  font-family: "Playfair Display", serif;
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 8px;
}

.expert__role {
  color: var(--accent);
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

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

.expert__bio li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 18px;
}

.expert__bio li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 767.98px) {
  .expert {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  .expert__photo {
    max-width: 250px;
    margin: 0 auto;
  }
  .expert__bio li {
    text-align: left;
  }
}

/* ---------- CURATOR (reuses .expert layout) ---------- */

.course-curator__title {
  margin-bottom: 12px;
}

.course-curator__name {
  text-align: center;
  margin-bottom: 40px;
}

.expert--curator {
  align-items: center;
}

.expert__photo--cutout {
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.course-curator__img {
  width: 100%;
  display: block;
}

.expert__bio--check .course-curator__item {
  padding-left: 42px;
  margin-bottom: 16px;
}

.expert__bio--check .course-curator__item::before {
  top: 2px;
  width: 26px;
  height: 26px;
  border-radius: 0;
  background: url("../images/curator/bullet.svg") no-repeat center / contain;
}

@media (max-width: 767.98px) {
  .course-curator__name {
    font-size: 28px;
    margin-bottom: 30px;
  }
}

/* ---------- GALLERY (masonry via CSS columns) ---------- */

.gallery__grid {
  columns: 4;
  column-gap: 12px;
}

.gallery__item {
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  display: inline-block;
  width: 100%;
}

.gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s;
}

.gallery__item:hover img {
  transform: scale(1.05);
}

@media (max-width: 991.98px) {
  .gallery__grid { columns: 3; }
}

@media (max-width: 575.98px) {
  .gallery__grid { columns: 2; column-gap: 8px; }
  .gallery__item { margin-bottom: 8px; }
}

/* ---------- MATERIALS ---------- */

.materials__note {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
}

.materials__note--gap {
  margin-top: 18px;
}

.materials__note--plain {
  font-weight: 400;
}

.materials__group {
  max-width: 700px;
  margin: 0 auto 28px;
}

.materials__group-title {
  font-family: "PT Sans", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.materials__list {
  columns: 2;
  column-gap: 40px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.materials__list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  break-inside: avoid;
  font-size: 18px;
}

.materials__list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  top: 2px;
}

@media (max-width: 575.98px) {
  .materials__list { columns: 1; }
}

.materials__palette {
  margin: 40px auto 0;
  max-width: 900px;
  text-align: center;
}
.materials__palette img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}
.materials__palette figcaption {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 17px;
}

/* ---------- TARIFFS ---------- */

.tariffs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1060px;
  margin: 0 auto;
}

.tariff {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 28px 32px;
  text-align: center;
  position: relative;
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.tariff:hover {
  box-shadow: var(--card-shadow-hover);
}

.tariff__name {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
}

.tariff__features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  text-align: left;
  flex-grow: 1;
}

.tariff__features li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.4;
}

.tariff__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
}

.tariff__features li.disabled {
  color: #ccc;
  text-decoration: line-through;
}

.tariff__features li.disabled::before {
  color: #ccc;
}

.tariff__features li.bonus {
  padding-left: 28px;
  text-decoration: none;
}

.tariff__features li.bonus::before {
  content: "💰";
  font-size: 16px;
}

.tariff__price-block {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: auto;
}

.tariff__price-block .tariff__price {
  margin-bottom: 12px;
}

.tariff__price {
  font-family: "Playfair Display", serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
  line-height: 1.1;
}

.tariff__price .symbol {
  font-family: "PT Sans", sans-serif;
  font-size: 28px;
  margin-left: 2px;
}

.tariff__price-currency {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.tariff__price-currency a {
  font-size: 16px;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s;
}

.tariff__price-currency a.active,
.tariff__price-currency a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.tariff__btn {
  display: block;
  padding: 18px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.tariff__btn--primary {
  background: var(--accent);
  color: #fff;
}
.tariff__btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

.tariff__btn--outline {
  border: 2px solid var(--accent);
  color: var(--accent);
}
.tariff__btn--outline:hover {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 991.98px) {
  .tariffs__grid { grid-template-columns: 1fr; max-width: 480px; }
}

/* ---------- CURATOR ---------- */

.curator {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.curator__photo {
  border-radius: 50%;
  overflow: hidden;
}

.curator__photo img {
  width: 100%;
  display: block;
}

.curator__name {
  font-family: "Playfair Display", serif;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 4px;
}

.curator__role {
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.curator__bio {
  color: var(--text-muted);
  margin: 0;
  font-size: 18px;
}

@media (max-width: 575.98px) {
  .curator {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 30px;
  }
  .curator__photo {
    max-width: 150px;
    margin: 0 auto;
  }
}

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

.faq__item {
  max-width: 780px;
  margin: 0 auto 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq__question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 28px;
  font-family: "PT Sans", sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq__question:hover {
  background: var(--bg-alt);
}

.faq__question:focus {
  outline: none;
}

.faq__chevron {
  flex-shrink: 0;
  margin-left: 16px;
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  color: var(--accent);
}

.faq__item.active .faq__chevron {
  transform: rotate(180deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 28px;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 18px;
}

.faq__item.active .faq__answer {
  max-height: 400px;
  padding: 0 28px 22px;
}

/* ---------- CONTACTS ---------- */

.contacts__links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.contacts__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s;
}

.contacts__link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 575.98px) {
  .contacts__links { flex-direction: column; align-items: center; }
  .contacts__link { width: 100%; max-width: 300px; justify-content: center; }
}

/* ---------- FOOTER ---------- */

.course-footer {
  background: var(--bg-dark);
  color: #999;
  padding: 40px 0;
  font-size: 15px;
}

.course-footer a {
  color: #999;
  transition: color 0.2s;
}

.course-footer a:hover {
  color: #fff;
}

.course-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: center;
  margin-bottom: 24px;
}

.course-footer__bottom {
  text-align: center;
  border-top: 1px solid #444;
  padding-top: 20px;
}

/* ---------- UTILITY ---------- */

.text-accent { color: var(--accent); }
.bg-accent-light { background: var(--accent-light); }

/* ---------- NAV COMPACT ---------- */
.main-navigation .logoHref .logo-img {
  max-width: 50px;
}
.main-navigation__list-nav-link {
  padding: 14px 3px !important;
}
.main-navigation__phone-block {
  padding: 14px 3px !important;
}

/* ---------- NAV ICON OVERRIDES ---------- */
/* Replace background-image icons with inline SVG */
.main-navigation__icon-tg,
.main-navigation__icon-wa {
  background-image: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.main-navigation__icon-tg svg,
.main-navigation__icon-wa svg {
  width: 30px;
  height: 30px;
}

/* ---------- MOBILE: hide section backgrounds ---------- */

@media (max-width: 991.98px) {
  .hero[style*="background-image"],
  #packages[style*="background-image"] {
    background-image: none !important;
  }
  #packages {
    background: var(--bg-alt);
  }
}

/* ---------- DESKTOP: section backgrounds ---------- */

.hero[style*="background-image"],
#packages[style*="background-image"] {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* Smooth scroll */
html { scroll-behavior: smooth; }
