/* ==========================================================================
   style.css — единый файл стилей сайта Timeless Beauty Academy
   Оглавление:
     1. Переменные
     2. Ресет и база
     3. Утилиты
     4. Кнопка
     5. Блок 1 — шапка
     6. Блок 2 — Hero
     7. Блок 3 — Über uns
    17. Страница «Beauty Kurse» (beauty-kurse.html)
   Брейкпоинты как в Elementor: планшет ≤1024px, мобильный ≤767px.
   ========================================================================== */


/* ==========================================================================
   1. Переменные (из Elementor Kit и настроек страницы Start)
   ========================================================================== */
:root {
  /* Цвета */
  --c-white: #fff;
  --c-pink: #ae448f;          /* kit cf59c6f — акцент, активные пункты меню */
  --c-primary: #bf30b1;       /* kit primary */
  --c-primary-hover: #cf41c1; /* kit secondary — hover кнопок */
  --c-btn: #f979d6;           /* кнопки «Zum Erstgespräch» */
  --c-text: #504c6b;          /* kit text */
  --c-slate: #455b66;         /* контакты в шапке */
  --c-nav: #617e8c;           /* пункты меню (десктоп) */
  --c-teal: #4abab3;          /* фон выпадающего меню */
  --c-shadow-title: #832142;  /* тень заголовков в hero */
  --c-h3: #3b3d42;            /* цвет h3 по умолчанию из Elementor Kit */

  /* Шрифты */
  --ff-sans: "Jost", sans-serif;
  --ff-serif: "Noto Serif", serif;
  --ff-accent: "Montserrat", sans-serif;
  --ff-round: "Comfortaa", sans-serif;   /* вводный текст «Über uns» */
  --ff-heading: "Roboto", sans-serif;    /* h3 по умолчанию из Elementor Kit */

  /* Тени */
  --shadow-header: 0 14px 50px -4px rgba(24, 39, 75, 0.17);

  /* Лэйаут */
  --container: 1200px;
  --gutter: 20px;             /* боковой отступ секций, когда контент упирается в края экрана */
  --header-h: 115px;          /* высота шапки: нужна для scroll-margin якорей */
}

@media (max-width: 1024px) {
  :root { --header-h: 100px; }
}


/* ==========================================================================
   2. Ресет и база
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-white);
}

h1, h2, h3, p, ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* Якоря не прячутся под липкой шапкой */
[id] {
  scroll-margin-top: var(--header-h);
}

:focus-visible {
  outline: 2px solid var(--c-pink);
  outline-offset: 3px;
}


/* ==========================================================================
   3. Утилиты
   ========================================================================== */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--c-pink);
  color: var(--c-white);
  border-radius: 4px;
}
.skip-link:focus {
  top: 10px;
}


/* ==========================================================================
   4. Кнопка
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 17px 54px;
  border: 0;
  border-radius: 4px;
  background: var(--c-btn);
  font-family: var(--ff-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  color: var(--c-white);
  transition: background-color 0.3s;
}

.btn:hover,
.btn:focus-visible {
  background: var(--c-primary-hover);
}


/* ==========================================================================
   5. Блок 1 — шапка
   Оригинал: две секции Elementor (9746640 — десктоп, 367b128 — планшет/мобильный).
   Здесь одна разметка: ≥1025px — сетка с контактами, ≤1024px — бургер-меню.
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 25;
  background: url("../img/headnew.svg") center bottom / cover no-repeat;
  box-shadow: var(--shadow-header);
}

.header__inner {
  display: grid;
  grid-template-columns: auto 1fr;   /* колонка лого по ширине лого, всё остальное место — меню и контактам */
  grid-template-rows: auto 1fr;
  max-width: calc(var(--container) + 20px);
  min-height: var(--header-h);
  margin: 0 auto;
  padding-inline: 10px;       /* + 10px у логотипа = 20px от края */
}

.header__logo {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: start;
  padding: 10px;
}

.header__logo img {
  width: 181px;
  height: 95px;
}

/* Телефон + адрес */
.header__contacts {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 43px;
  padding: 15px 10px 0;
}

.header__contact {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 20px;
  line-height: 32px;
  color: var(--c-slate);
}

.header__contact img {
  width: 19px;
  height: 19px;
}

.header__contact--address {
  font-size: 19px;
  line-height: 30px;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
}

/* Меню */
.nav {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  padding: 0 10px 20px;
}

/* Меню всегда в одну строку и занимает всё место справа от лого.
   Шрифт и отступы плавно растут от 1025px (13.5px / 12px) до 1240px и шире (16px / 28px). */
.nav__list {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: clamp(12px, calc(7.44vw - 64.3px), 28px);
}

.nav__link {
  display: block;
  padding: 4px 0;
  font-family: var(--ff-serif);
  font-size: clamp(13.5px, calc(1.163vw + 1.58px), 16px);
  font-weight: 900;
  line-height: 22px;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--c-nav);
  transition: color 0.3s;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--c-pink);
}

.nav__link--cta {
  color: var(--c-pink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Бургер на десктопе не нужен */
.header__toggle {
  display: none;
}

@media (max-width: 1024px) {
  .header {
    z-index: 30;
  }

  .header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 0;
    padding: 5px 15px 7px;
  }

  .header__logo {
    padding: 0;
  }

  .header__logo img {
    width: 181px;
    height: auto;
  }

  .header__contacts {
    display: none;
  }

  .header__toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    background: none;
    font-weight: 600;
    color: var(--c-pink);
  }

  .header__toggle-icon {
    display: grid;
    place-items: center;
    width: 33px;
    height: 33px;
    border-radius: 3px;
    background: var(--c-pink);
    color: var(--c-white);
  }

  .header__toggle-icon svg {
    width: 22px;
    height: 22px;
  }

  /* Выпадающее меню на всю ширину под шапкой */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 0;
    background: var(--c-teal);
  }

  .nav.is-open {
    display: block;
  }

  .nav__list {
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
  }

  .nav__link,
  .nav__link--cta {
    padding: 16px 52px;
    font-size: 16px;
    line-height: 20px;
    color: var(--c-white);
    text-decoration: none;
  }

  .nav__link:hover,
  .nav__link.is-active,
  .nav__link:focus-visible {
    background: var(--c-pink);
    color: var(--c-white);
  }
}

@media (max-width: 767px) {
  .header__inner {
    padding-left: 5%;
  }

  .header__logo img {
    width: 124px;
  }

  .nav__link,
  .nav__link--cta {
    padding: 18px 45px;
  }
}


/* ==========================================================================
   6. Блок 2 — Hero  (Elementor: секция 12157a2)
   Фон fon11.svg уже содержит диагональную волну внизу.
   Колонки: видео (слева, отступ 25%) + текст (справа). ≤1024px — друг под другом.
   ========================================================================== */
.hero {
  position: relative;
  z-index: 2;
  padding: 6% 0 11%;          /* проценты — от ширины экрана, как в оригинале */
  background: url("../img/fon11.svg") center top / cover no-repeat;
}

.hero__inner {
  padding: 10px;
}

/* Hero на всю ширину: боковой отступ нужен, только пока экран уже контейнера */
@media (max-width: 1240px) {
  .hero__inner {
    padding-inline: var(--gutter);
  }
}

.hero__title {
  margin-bottom: 36px;
  font-family: var(--ff-serif);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: var(--c-white);
  text-shadow: 0 10px 14px var(--c-shadow-title);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 28px;
}

.hero__media {
  margin-left: 25%;           /* % от ширины колонки */
  padding: 10px;
}

.hero__content {
  align-self: start;
  margin-left: 26px;
  padding: 10px;
}

.hero__subtitle {
  margin-bottom: 28px;
  font-family: var(--ff-serif);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-white);
  text-shadow: 0 10px 14px var(--c-shadow-title);
}

.hero__list {
  margin-bottom: 17px;
}

.hero__list li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--ff-accent);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  color: var(--c-white);
}

.hero__list li + li {
  margin-top: 26px;
}

.hero__list li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-white);
}

.hero__cta {
  margin-top: 24px;
}

/* Видео: YouTube подгружается по клику (без запросов к Google до согласия) */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0e0e0e;
}

.video__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--c-primary);
}

.video__play svg {
  width: 80px;
  height: 80px;
  transition: transform 0.3s;
}

.video__play:hover svg,
.video__play:focus-visible svg {
  transform: scale(1.08);
}

.video__note {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  font-size: 13px;
  line-height: 1.3;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  pointer-events: none;
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Планшет: колонки друг под другом, отступы как в Elementor (пустые значения наследуются от десктопа) */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__title {
    margin-bottom: 20px;
    font-size: 30px;
  }

  .hero__subtitle {
    margin-bottom: 20px;
    font-size: 30px;
  }

  .hero__list li {
    font-size: 20px;
  }

  .hero__list li + li {
    margin-top: 23px;
  }
}

@media (max-width: 767px) {
  .hero {
    padding: 3% 0 15%;
    background-position: -323px 0;
  }

  .hero__title {
    font-size: 23px;
    text-align: left;
  }

  .hero__grid {
    padding-top: 0;
  }

  .hero__media {
    margin: 9px 9px 9px 0;
    padding: 0;
  }

  .hero__content {
    margin: 9px;
    padding: 0;
  }

  .hero__subtitle {
    font-size: 21px;
  }

  .hero__list li {
    font-size: 16px;
  }

  .hero__list li + li {
    margin-top: 17px;
  }

  .hero__cta {
    margin-top: 32px;
    text-align: center;
  }
}


/* ==========================================================================
   7. Блок 3 — Über uns  (Elementor: секция 5d0f397, якорь #ueber-uns)
   Заходит под волну Hero на 65px (отрицательный margin); Hero поверх (z-index: 2).
   Планшет: две колонки сохраняются. Мобильный: фото сверху, текст под ним.
   ========================================================================== */
.about {
  margin-top: -65px;
  padding: 100px 0 50px;
  background: linear-gradient(90deg, rgba(205, 163, 184, 0.3) 0%, rgba(144, 188, 190, 0.61) 100%);
}

.about__container {
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.about__title {
  margin-bottom: 32px;
  font-family: var(--ff-serif);
  font-size: 50px;
  font-weight: 800;
  line-height: 1;
  color: var(--c-pink);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.about__photo {
  align-self: stretch;         /* колонка на всю высоту сетки — по ней фото «едет» при скролле */
}

.about__photo img {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: block;
  width: 81%;
  height: auto;
}

.about__text {
  padding: 10px 10px 50px;    /* нижние 50px = пустой абзац в конце текста оригинала */
}

/* Общие правила текстовых блоков */
.about__lead,
.about__body {
  line-height: 1.6;
}

.about__lead p,
.about__body p {
  margin-bottom: 0.4em;
}

.about__lead ul,
.about__body ul {
  margin: 1em 0;
  padding-left: 40px;
  list-style: disc;
}

.about__lead li,
.about__body li {
  margin-bottom: 0.4em;
}

.about__lead {
  font-family: var(--ff-round);
  font-size: 22px;
  font-weight: 400;
  color: var(--c-pink);
}

.about__body {
  font-family: var(--ff-sans);
  font-size: 20px;
  font-weight: 400;
  color: var(--c-text);
}

.about__body h3 {
  margin: 1em 0;
  font-family: var(--ff-heading);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--c-h3);
}

@media (max-width: 1024px) {
  .about__title {
    margin-bottom: 8px;
    font-size: 35px;
  }

  .about__lead,
  .about__body {
    font-size: 20px;
  }

  .about__body h3 {
    font-size: 21px;
  }
}

@media (max-width: 767px) {
  :root { --gutter: 15px; }

  .about {
    padding: 30px 0 0;
  }

  .about__title {
    font-size: 25px;
  }

  .about__grid {
    grid-template-columns: 1fr;
    padding-top: 50px;
  }

  .about__photo img {
    position: static;
    width: 100%;
  }

  .about__text {
    padding: 15px 0;
  }

  .about__lead {
    font-size: 18px;
  }

  .about__body {
    font-size: 17px;
  }
}


/* ==========================================================================
   8. Блок 4 — «So kannst Du es auch nach dem Kurs machen»
   (Elementor: секции 6dbf028 — заголовок, ecaf56d — карусель + кнопка + Instagram)
   Карусель — универсальный компонент .carousel (пригодится для блоков 6 и 8):
   scroll-snap + стрелки, число слайдов задаётся переменной --slides.
   ========================================================================== */
.steps {
  padding: 130px 0 150px;
}

.steps__container {
  max-width: calc(var(--container) + 2 * var(--gutter) - 20px);   /* контент 1180px, как в оригинале */
  margin: 0 auto;
  padding: 10px var(--gutter);
}

.steps__title {
  margin-bottom: 90px;        /* 70px + внутренние отступы колонки/секции оригинала */
  font-family: var(--ff-serif);
  font-size: 50px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  color: var(--c-pink);
}

/* --- Карусель --- */
.carousel {
  --slides: 3;
  --gap: 20px;
  position: relative;
}

.carousel__track {
  display: flex;
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__slide {
  flex: 0 0 calc((100% - (var(--slides) - 1) * var(--gap)) / var(--slides));
  scroll-snap-align: start;
}

.carousel__link {
  display: block;
  cursor: zoom-in;
}

.carousel__slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--c-primary);
  cursor: pointer;
  transform: translateY(-50%);
}

.carousel__btn--prev { left: 10px; }
.carousel__btn--next { right: 10px; }

/* Главная, широкий экран: стрелки каруселей «Arbeitsbeispiele» и галерей — за пределами виджета, не поверх фото.
   Контент 1180px, значит с каждой стороны есть ≥50px свободного места. */
@media (min-width: 1280px) {
  .steps .carousel__btn--prev { left: -44px; }
  .steps .carousel__btn--next { right: -44px; }
}

/* --- Лайтбокс (открывается по клику на слайд, см. main.js) --- */
.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.88);
}

.lightbox:not([open]) {
  display: none;
}

.lightbox[open] {
  display: grid;
  place-items: center;
}

.lightbox__img {
  max-width: calc(100vw - 120px);
  max-height: calc(100vh - 60px);
  width: auto;
  height: auto;
}

.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 36px;
  line-height: 1;
  color: var(--c-white);
  cursor: pointer;
}

.lightbox__btn--close { top: 12px; right: 12px; }
.lightbox__btn--prev  { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__btn--next  { right: 8px; top: 50%; transform: translateY(-50%); }

@media (max-width: 767px) {
  .lightbox__img {
    max-width: 100vw;
  }
}

/* --- Кнопка + Instagram --- */
/* Оригинал: две колонки 58% / 42%; кнопка прижата вправо, иконка — внизу второй колонки */
.steps__actions {
  display: grid;
  grid-template-columns: 58.049% 41.909%;
  align-items: end;
  margin-top: 70px;
}

.steps__actions .btn {
  justify-self: end;
  margin: 10px;
}

.steps__social {
  justify-self: start;
  margin: 0 10px 8px 20px;
}

.steps__social img {
  display: block;
  width: 50px;
  height: 50px;
}

@media (max-width: 1024px) {
  .steps {
    padding-top: 130px;
  }

  .steps__title {
    font-size: 35px;
  }

  .carousel {
    --slides: 2;
  }
}

@media (max-width: 767px) {
  .steps {
    padding: 30px 0 50px;
  }

  .steps__title {
    margin-bottom: 0;
    padding-bottom: 50px;
    font-size: 25px;
  }

  .carousel {
    --slides: 1;
  }

  .steps__actions {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    padding: 10px 12px 0 20px;
  }

  .steps__actions .btn {
    margin: 0;
    padding: 21px 36px 21px 35px;
  }

  .steps__social {
    margin: 0 0 6px;
  }

  .steps__social img {
    width: 42px;
    height: 42px;
  }
}


/* ==========================================================================
   9. Блок 5 — Schulungen  (Elementor: секции 15465d2 — заголовок, c09b66b — листинг)
   Листинг JetEngine «pakety» (шаблон 2743): карточки курсов 3 / 2 / 1 в ряд.
   Карточки одной высоты в ряду; кнопки прижаты к низу текста через flex.
   ========================================================================== */
.courses__container {
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Заголовок: 30px сверху = колонка 10 + секция с якорем 20 (оригинал) */
.courses__head {
  padding-top: 30px;
}

.courses__title {
  margin-bottom: 42px;        /* 32px + нижний отступ колонки 10px */
  font-family: var(--ff-serif);
  font-size: 50px;
  font-weight: 800;
  line-height: 1;
  color: var(--c-pink);
}

/* Фон: два рисунка по краям (leftfon слева, fonright справа) */
.courses__body {
  padding: 5% 0;
  background:
    url("../img/fonright-min.jpg") right center / auto no-repeat,
    url("../img/leftfon-min.jpg") left center / auto no-repeat;
}

.courses__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.course {
  display: flex;
  padding: 10px 0;
}

.course__inner {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin: 0 5px;
  padding-bottom: 25px;
  background: var(--c-white);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.course__img {
  display: block;
  width: 380px;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}

.course__title {
  margin: 0 0 0 13px;
  padding: 21px 0 12px;
  font-family: var(--ff-serif);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.6;
  color: #565274;
}

.course__lead {
  margin: 0 0 9px 12px;
  font-family: var(--ff-round);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--c-pink);
}

.course__when {
  flex: 1;                    /* выравнивает кнопки у карточек с разным количеством текста */
  margin-left: 13px;
  font-family: var(--ff-sans);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--c-text);
}

.course__when p {
  margin-bottom: 0.4em;
}

.course__when ul {
  margin: 1em 0;
  padding-left: 40px;
  list-style: disc;
}

.course__more {
  margin: 22px 0 9px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--ff-sans);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  text-decoration: underline;
  text-transform: uppercase;
  color: var(--c-text);
  cursor: pointer;
  transition: color 0.3s;
}

.course__more:hover,
.course__more:focus-visible {
  color: var(--c-primary);
}

.course__cta {
  align-self: center;
  margin-top: 10px;
}

@media (max-width: 1024px) {
  .courses__head {
    padding-top: 80px;        /* 50px секции + 30px */
  }

  .courses__title {
    font-size: 35px;
  }

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

@media (max-width: 767px) {
  .courses__head {
    padding-top: 61px;        /* 30px секции + 10 + 21 */
  }

  .courses__title {
    font-size: 25px;
  }

  .courses__grid {
    grid-template-columns: 1fr;
  }

  .course__title {
    margin-left: 12px;
    padding: 10px 0 6px;
    font-size: 20px;
  }

  .course__lead {
    margin-bottom: 4px;
  }

  .course__when {
    font-size: 18px;
  }

  .course__more {
    margin: 10px 0 13px;
    padding-bottom: 3px;
  }

  .course__cta {
    margin-top: 11px;
  }
}


/* ==========================================================================
   10. Блок 6 — Kundenbewertungen
   (Elementor: ddcb9c4 — якорь, 33c7343 — заголовок + карусель видеоотзывов JetEngine 3704,
    6d61666 — галерея «о нас»: otzyvy::galereia-o-nas)
   Видео вертикальные 9:16, по 3 в ряд (на мобильном — 1). Галерея 3 / 2 / 1.
   ========================================================================== */
.video--portrait {
  aspect-ratio: 9 / 16;
}

/* Локальное превью вместо запроса к YouTube (DSGVO): файл assets/img/reviews/<id>.jpg.
   Селектор «.video .video__poster» (а не просто .video__poster) нужен, чтобы перебить
   «.carousel__slide img» (квадрат, height:auto): постер всегда на весь блок видео. */
.video .video__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.video__poster + .video__play {
  z-index: 1;
}

.video__poster ~ .video__note {
  z-index: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.reviews {
  padding-top: 130px;         /* якорь 20 + секция 100 + колонка 10 */
}

.reviews__container {
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.reviews__title,
.students__title {
  margin-bottom: 60px;
  font-family: var(--ff-serif);
  font-size: 50px;
  font-weight: 800;
  line-height: 1;
  color: var(--c-pink);
}

.carousel--reviews {
  --slides: 3;
  --gap: 0px;
}

.carousel--reviews .carousel__slide {
  padding: 20px;
}

.carousel--reviews .carousel__btn {
  z-index: 1;
  width: 50px;
  height: 50px;
}

.carousel--reviews .carousel__btn svg {
  width: 43px;
  height: 43px;
}

.carousel--reviews .carousel__btn--prev { left: 0; }
.carousel--reviews .carousel__btn--next { right: 0; }

@media (min-width: 1280px) {
  .carousel--reviews .carousel__btn--prev { left: -33px; }
  .carousel--reviews .carousel__btn--next { right: -33px; }
}

/* Галерея */
.gallery {
  padding: 100px 0;
  background:
    url("../img/leftfon-min.jpg") right bottom / contain no-repeat,
    url("../img/leftfon-min.jpg") left bottom / contain no-repeat;
}

.gallery__container,
.students__container {
  max-width: calc(var(--container) + 2 * var(--gutter) - 20px);   /* контент 1180px */
  margin: 0 auto;
  padding: 10px var(--gutter);
}

.carousel--gallery .carousel__track {
  align-items: flex-start;
}

.carousel--gallery .carousel__slide img {
  aspect-ratio: auto;
  object-fit: fill;
  margin-bottom: 6px;         /* как в оригинале: высота карусели = самое высокое фото + 6px */
}

.carousel--gallery .carousel__btn {
  width: 35px;
  height: 35px;
  color: var(--c-pink);
}

.carousel--gallery .carousel__btn svg {
  width: 35px;
  height: 35px;
}

@media (min-width: 1280px) {
  .carousel--gallery .carousel__btn--prev { left: -45px; }
  .carousel--gallery .carousel__btn--next { right: -45px; }
}

@media (max-width: 1024px) {
  .reviews__title,
  .students__title {
    margin-bottom: 8px;
    font-size: 35px;
  }

  .carousel--reviews {
    --slides: 3;
  }
}

@media (max-width: 767px) {
  .reviews {
    padding-top: 60px;
  }

  .reviews__title,
  .students__title {
    margin: 30px 0;
    font-size: 25px;
  }

  .carousel--reviews {
    --slides: 1;
  }

  .gallery {
    padding: 10px 0 1px;
  }

  .gallery__container,
  .students__container {
    padding: 0 10px;
  }
}


/* ==========================================================================
   11. Блок 7 — плавающая панель контактов + «Meine Schülerinnen»
   (Elementor: 75682db — icon-list с position: fixed; c52a01d — заголовок + галерея
    otzyvy::ucheniki-fotootcheti, фото 4:5, 3 / 2 / 1 в ряд)
   ========================================================================== */
.quick {
  position: fixed;
  right: 0;
  bottom: 6%;
  z-index: 50;
}

.quick__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quick__link {
  display: block;
  padding-inline: 8px;
}

.quick__link img {
  display: block;
  width: 39px;
  height: 39px;
  transition: transform 0.3s;
}

.quick__link:hover img,
.quick__link:focus-visible img {
  transform: scale(1.1);
}

.students {
  margin-top: 20px;           /* оригинал: пустая секция с панелью (fixed) высотой 20px */
  padding-top: 100px;
}

@media (max-width: 767px) {
  .quick {
    bottom: 4%;
  }

  .quick__link img {
    width: 42px;
    height: 42px;
  }

  .students {
    padding-top: 0;
  }
}


/* ==========================================================================
   12. BLOCK 8: Bausteine für Deinen Erfolg
   ========================================================================== */
.bausteine {
  padding: 150px var(--gutter);
  background: linear-gradient(90deg, #cda3b8, #90bcbe);
}

.bausteine__heading {
  margin: 0 0 70px;
  font-family: var(--ff-serif);
  font-size: 50px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  color: #fff;
}

.bausteine__list {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.bausteine__item {
  display: grid;
  grid-template-columns: 16.102% 1fr;
  align-items: center;
  min-height: 210px;
  margin-bottom: 20px;
  padding: 10px 38px;
  background: #fff url("../img/line.svg") right center no-repeat;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.bausteine__item:last-child {
  margin-bottom: 0;
}

.bausteine__img {
  display: block;
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.bausteine__body {
  padding: 0 30px 0 28px;
}

.bausteine__title {
  margin: 0;
  font-family: var(--ff-round);
  font-size: 20px;
  line-height: 32px;
  color: #565274;
}

.bausteine__divider {
  width: 105px;
  margin: 10px 0;
  border: 0;
  border-top: 1px solid #11adac;
}

.bausteine__text {
  margin: 0;
  padding-right: 20%;       /* оригинал: выдержка занимает 80% колонки */
  font-family: var(--ff-accent);
  font-size: 16px;
  line-height: 1.2;
  color: #617e8c;
}

.bausteine__actions {
  width: 80%;               /* кнопка по центру выдержки, как в оригинале */
  margin-top: 22px;
  text-align: center;
}

.bausteine__more {
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--ff-sans);
  font-size: 20px;
  font-weight: 700;
  line-height: 20px;
  color: var(--c-primary-hover);
  text-decoration: underline;
  cursor: pointer;
}

.bausteine__more:hover,
.bausteine__more:focus-visible {
  color: var(--c-primary);
}

@media (max-width: 1024px) {
  .bausteine__heading {
    font-size: 35px;
  }

  .bausteine__text {
    padding-right: 0;
  }

  .bausteine__actions {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .bausteine {
    padding-block: 50px;
  }

  .bausteine__heading {
    margin-bottom: 0;
    padding-bottom: 30px;
    font-size: 25px;
  }

  .bausteine__item {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 20px var(--gutter) 25px;
    text-align: center;
    background: #fff url("../img/linedown.svg") center bottom no-repeat;
  }

  .bausteine__body {
    padding: 10px 0 0;
  }

  .bausteine__divider {
    margin-inline: auto;
  }
}


/* ==========================================================================
   13. BLOCK 9: Kontakten + карта; 14. Footer
   ========================================================================== */
.contact {
  margin-top: 6%;
  background: linear-gradient(90deg, #d39cb3 0%, #8fb4b7 87%);
  color: #fff;
}

.contact__container {
  max-width: calc(var(--container) + 2 * var(--gutter) - 20px);
  margin-inline: auto;
  padding: 10px var(--gutter);
}

.contact__head { padding-top: 5%; }
.contact__info { padding-top: 1%; }
.contact__place { padding-top: 2%; }

.contact__title {
  margin: 0 0 50px;
  font-family: var(--ff-serif);
  font-size: 50px;
  font-weight: 800;
  line-height: 1;
  text-align: left;
  color: #fff;
}

.contact__grid {
  display: grid;
  grid-template-columns: calc((100% + 20px) * 0.45 - 20px) 1fr;
  gap: 20px;
  align-items: start;
}

.contact__brand,
.contact__list,
.contact__hours,
.contact__note,
.contact__address {
  margin: 0;
  font-family: var(--ff-sans);
  line-height: 1.6;
}

.contact__brand {
  padding-bottom: 10px;
  font-size: 25px;
  font-weight: 400;
}

.contact__brand--hours { margin-top: 24px; }

.contact__list {
  padding: 0;
  list-style: none;
  font-size: 20px;
}

.contact__list a,
.contact__hours {
  font-size: 20px;
  color: #fff;
}

.contact__list a:hover,
.contact__list a:focus-visible { text-decoration: underline; }

.contact__note {
  margin: 8px 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--c-text);
}

.contact__actions { padding: 10px; }

.contact__btn {
  display: inline-block;
  padding: 15px 45px;
  border: 2px solid var(--c-primary);
  border-radius: 10px;
  background: transparent;
  font-family: var(--ff-sans);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  color: var(--c-primary);
  transition: color 0.3s, border-color 0.3s;
}

.contact__btn:hover,
.contact__btn:focus-visible {
  color: var(--c-primary-hover);
  border-color: var(--c-primary-hover);
}

.contact__social {
  display: flex;
  height: 56px;
  margin: 10px 0 0;
  padding: 10px;
  box-sizing: content-box;
  list-style: none;
}

.contact__social li { margin: 0 10px; }
.contact__social a { display: block; }
.contact__social img { display: block; width: 50px; height: 50px; transition: transform 0.3s; }
.contact__social a:hover img,
.contact__social a:focus-visible img { transform: scale(1.1); }

.contact__address {
  padding-bottom: 10px;
  font-size: 20px;
  font-style: normal;
  color: #fff;
}

/* Карта: click-to-load */
.map {
  position: relative;
  height: 306px;
  background: rgba(255, 255, 255, 0.35);
}

.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.map__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 100%;
  padding: 20px;
  text-align: center;
  color: var(--c-text);
}

.map__text { max-width: 520px; margin: 0; font-size: 16px; line-height: 1.4; }
.map__text a { text-decoration: underline; }

.map__load {
  padding: 13px 34px;
  border: 0;
  border-radius: 4px;
  background: var(--c-btn);
  font-family: var(--ff-sans);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s;
}

.map__load:hover,
.map__load:focus-visible { background: var(--c-primary-hover); }
.map__link { font-size: 14px; text-decoration: underline; color: var(--c-text); }

/* Footer */
.footer {
  background: linear-gradient(90deg, #6f99a1 28%, #cf7197 95%);
}

.footer__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: calc(var(--container) + 2 * var(--gutter) - 20px);
  margin-inline: auto;
  padding: 10px var(--gutter);
}

.footer__link {
  font-family: var(--ff-sans);
  font-size: 26px;
  line-height: 1.6;
  text-align: center;
  color: #fff;
}

.footer__link:hover,
.footer__link:focus-visible { text-decoration: underline; }

@media (max-width: 1024px) {
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .contact__head { padding-top: 4%; }
  .contact__info { padding-top: 4%; }
  .contact__place { padding-top: 2%; }
  .contact__title { margin-bottom: 0; font-size: 25px; }
  .contact__brand { font-size: 25px; }
  .contact__actions { text-align: center; }
  .contact__btn { padding-inline: 47px; }
  .contact__social { justify-content: center; gap: 14px; height: 48px; padding: 10px 10px 30px; }
  .contact__social li { margin: 0; }
  .contact__social img { width: 42px; height: 42px; }
  .footer__link { font-size: 16px; }
}


/* ==========================================================================
   15. Юридические страницы (impressum.html, datenschutz.html)
   ========================================================================== */
.legal-page {
  background: #fff url("../img/fon3-min.jpg") top center / cover no-repeat;
}

.legal-bar {
  position: relative;
  z-index: 5;
  padding: 10px var(--gutter);
  background: #fff;
  text-align: center;
}

.legal-btn {
  display: inline-block;
  padding: 17px 80px;
  border-radius: 10px;
  background: #f16393;
  font-family: var(--ff-sans);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
  transition: background-color 0.3s;
}

.legal-btn:hover,
.legal-btn:focus-visible {
  background: var(--c-primary-hover);
}

.legal__container {
  max-width: calc(var(--container) + 2 * var(--gutter) - 20px);
  margin-inline: auto;
  padding: 50px var(--gutter);
}

.legal__container + .legal__container--end {
  padding-top: 0;
  text-align: center;
}

.legal__title {
  margin: 0 0 20px;
  font-family: var(--ff-serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--c-primary);
}

.legal p,
.legal__h {
  margin: 0 0 20px;
  font-family: var(--ff-sans);
  font-size: 20px;
  line-height: 1.6;
  color: var(--c-text);
  overflow-wrap: anywhere;
}

.legal__h {
  font-weight: 700;
}

@media (max-width: 767px) {
  .legal-bar { padding-block: 3px; }
  .legal-btn { padding: 12px 30px; font-size: 16px; }
  .legal__title { font-size: 20px; }
}


/* ==========================================================================
   16. Попапы (<dialog class="popup">) — «Hast du Fragen?» (fragen)
   ========================================================================== */
html.is-locked { overflow: hidden; }

.popup {
  width: min(790px, calc(100vw - 20px));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: #efdee6 url("../img/fotoform-min.png") right bottom no-repeat;
  color: var(--c-text);
  overflow: visible;
}

.popup::backdrop {
  background: rgba(2, 1, 1, 0.75);
}

.popup__close {
  position: absolute;
  top: 26px;
  right: 42px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.popup__close img { display: block; }

.popup__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-sizing: border-box;
  width: 63.6%;
  padding: 48px 10px 60px 30px;    /* низ 60: высота окна = 458 как в оригинале, иначе фото (прижато вниз) обрезает голову */
}

.popup__title {
  margin: 0;
  font-family: var(--ff-serif);
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
  color: var(--c-pink);
}

.popup__btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 30px 0 0;
  padding: 17px 18px;
  border-radius: 4px;
  background: #3faaa3;
  font-family: var(--ff-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
  transition: background-color 0.3s;
}

.popup__btn + .popup__btn { margin-top: 60px; }
.popup__btn--tel { padding-inline: 70px; background: #f979d6; }
.popup__btn--cal { padding-inline: 20px; background: #716a9c; }

.popup__btn:hover,
.popup__btn:focus-visible { background: var(--c-primary-hover); }

.popup__icon { flex: none; }

@media (max-width: 767px) {
  .popup {
    background-size: 168px auto;
  }

  .popup__close { top: 5px; right: 16px; }

  .popup__body {
    align-items: center;
    width: 100%;
    padding: 7% var(--gutter) 52%;
  }

  .popup__title { align-self: stretch; }

  .popup__btn,
  .popup__btn + .popup__btn { margin-top: 32px; }

  .popup__btn { padding: 15px 17px; }
  .popup__btn--tel { padding-inline: 69px; }
  .popup__btn--cal { padding-inline: 19px; }
}


/* Попап «Mehr Info» (курсы): ширина 1217, текст слева, фото справа; на мобильном — декоративная форма снизу */
.popup--info {
  width: min(1217px, calc(100vw - 20px));
  background: #efdee6 url("../img/img3333-min.png") right bottom no-repeat;
}

.popup__scroll {
  box-sizing: border-box;
  min-height: 535px;
  max-height: calc(100vh - 40px);
  padding: 48px 20px 40px 30px;
  overflow-y: auto;
  border-radius: 5px;
}

.popup__text {
  width: 58.7%;
  font-family: var(--ff-sans);
  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
  color: var(--c-text);
}

.popup__text p { margin: 0 0 8px; }
.popup__text ul { margin: 0 0 8px; padding-left: 30px; }

@media (max-width: 767px) {
  .popup--info {
    background: #efdee6 url("../img/form.svg") left center no-repeat;
  }

  .popup__scroll {
    min-height: 0;
    padding: 30px var(--gutter) 32px;   /* фото барышни на мобилке не показывается — высота по содержимому */
  }

  .popup__text { width: 100%; }
}

/* «Mehr Info»: название курса (жирный в первом абзаце) чуть крупнее; остальное жирное — как было */
.popup__text > p:first-child > strong,
.popup__text > p:first-child > b {
  font-size: 24px;
  line-height: 1.4;
}



/* ==========================================================================
   17. Страница «Beauty Kurse» (beauty-kurse.html, body.page-kurse)
   Палитра по пожеланию клиента: бирюзовый + розовый + белый, оттенки спокойнее
   (бирюза — на кнопках и важных элементах). Токены только для этой страницы.
   ВАЖНО: класс .reviews есть и на главной (блок Kundenbewertungen), поэтому все правила
   отзывов этой страницы начинаются с .page-kurse — иначе они ломают главную.
   ========================================================================== */
.page-kurse {
  --k-teal: #3a9c97;
  --k-teal-dark: #2b7f7a;
  --k-teal-soft: #e5f2f1;
  --k-rose: #c9739f;
  --k-rose-dark: #9b4a78;
  --k-rose-soft: #f9edf3;
  --k-ink: #3e4a5c;
  --k-line: #e8dde3;
  --k-radius: 22px;
  --k-shadow: 0 10px 30px -12px rgba(62, 74, 92, 0.22);
}

/* --- иконки и кнопки --- */
.ic {
  flex: none;
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic--star { fill: currentColor; stroke: none; }

.page-kurse .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn--lg { padding: 17px 36px; }

.btn--teal { background: var(--k-teal); color: #fff; }
.page-kurse .btn--teal:hover,
.page-kurse .btn--teal:focus-visible { background: var(--k-teal-dark); box-shadow: 0 8px 20px -8px rgba(43, 127, 122, 0.6); }

.btn--ghost { background: #fff; border-color: var(--k-teal); color: var(--k-teal-dark); }
.page-kurse .btn--ghost:hover,
.page-kurse .btn--ghost:focus-visible { background: var(--k-teal-soft); }

.btn--light { background: #fff; color: var(--k-teal-dark); }
.page-kurse .btn--light:hover,
.page-kurse .btn--light:focus-visible { background: var(--k-rose-soft); }

.ktitle {
  margin-bottom: 42px;
  font-family: var(--ff-serif);
  font-size: 50px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  color: var(--c-pink);       /* как заголовки секций на главной */
}
.ktitle--left { margin-bottom: 0; }

/* --- Hero --- */
.khero {
  background: linear-gradient(100deg, #fff 0%, var(--k-rose-soft) 55%, var(--k-teal-soft) 100%);
  overflow: hidden;
}
.khero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 56px var(--gutter);
}
.khero__kicker {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--k-rose-dark);
}
.khero__title {
  margin-bottom: 18px;
  font-family: var(--ff-serif);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.12;
  color: var(--k-ink);
}
.khero__title span {
  display: block;
  margin-top: 8px;
  font-size: 26px;
  font-weight: 600;
  color: var(--k-teal-dark);
}
.khero__lead { max-width: 540px; margin-bottom: 26px; font-size: 18px; }
.khero__lead strong { display: block; margin-top: 10px; font-weight: 600; color: var(--k-ink); }
.khero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  margin-bottom: 26px;
}
.khero__facts li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 84px;
  font-size: 13px;
  line-height: 1.3;
  text-align: center;
  color: var(--k-ink);
}
.khero__facts .ic { width: 26px; height: 26px; color: var(--k-teal); }
.khero__prices { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 26px; }
.khero__price { font-family: var(--ff-serif); font-weight: 800; font-size: 40px; line-height: 1; color: var(--k-teal-dark); }
.khero__old { font-size: 20px; color: #8f8aa5; }
.khero__vat { font-size: 13px; color: #8f8aa5; }
.khero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.khero__media {
  position: relative;
  aspect-ratio: 9 / 7;
  border-radius: 40% 0 0 40% / 40% 0 0 40%;
  overflow: hidden;
  box-shadow: -14px 0 0 -2px var(--k-teal-soft), -28px 0 0 -6px #d3ebe9;
}
.khero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 6%; /* бровь вверху кадра — прижимаем к верху */ }
@media (min-width: 1025px) {
  .khero__media { margin-right: min(0px, calc((var(--container) + 2 * var(--gutter) - 100vw) / 2)); }
}

/* --- Преимущества --- */
.perks { border-block: 1px solid var(--k-line); background: #fff; }
.perks__list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 20px var(--gutter);
}
.perk {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--k-ink);
}
.perk .ic { width: 28px; height: 28px; color: var(--k-teal); }

/* --- Курсы в одну линию --- */
.kcourses { padding: 64px 0 40px; background: #fff; }
.kcourses__container,
.pakete__container,
.results__container,
.reviews__container {
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.kcard__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--k-line);
  border-radius: var(--k-radius);
  background: #fff;
  box-shadow: var(--k-shadow);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.kcard__inner:hover { transform: translateY(-4px); }
.kcard__media { position: relative; aspect-ratio: 6 / 5; background: var(--k-teal-soft); }
.kcard__media { overflow: hidden; }
.kcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kcard__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--k-teal);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}
.kcard__body { display: flex; flex: 1; flex-direction: column; padding: 16px 16px 14px; }
.kcard { min-width: 0; }
.kcourses__cta { display: flex; justify-content: center; margin-top: 32px; }
.kcard__title { hyphens: auto; overflow-wrap: break-word; font-family: var(--ff-serif); font-size: 18px; font-weight: 900; line-height: 1.4; color: #565274; }
.kcard__sub { display: block; font-family: var(--ff-round); font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--c-pink); }
.kcard__dur { margin-top: 4px; font-size: 14px; color: #8f8aa5; }
.kcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 14px; }
.kcard__prices { display: flex; flex-direction: column; line-height: 1.2; }
.kcard__old { font-size: 13px; color: #8f8aa5; }
.kcard__price { font-size: 19px; font-weight: 600; white-space: nowrap; color: var(--k-ink); }
.kcard__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--k-teal);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  color: #fff;
  transition: background-color 0.25s;
}
.kcard__more .ic { width: 14px; height: 14px; }
.kcard__more:hover,
.kcard__more:focus-visible { background: var(--k-teal-dark); }

/* --- PMU-пакеты --- */
.pakete { padding: 40px 0 64px; background: #fff; }
.pakete__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.paket__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 38%;
  height: 100%;
  border-radius: var(--k-radius);
  overflow: hidden;
  box-shadow: var(--k-shadow);
}
.paket--rose .paket__inner { background: linear-gradient(120deg, #fbeff4, #f3d9e6); }
.paket--teal .paket__inner { background: linear-gradient(120deg, #eef7f6, #d4eceb); }
.paket__text { position: relative; z-index: 1; padding: 28px 8px 28px 28px; }
.paket__tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}
.paket--rose .paket__tag { background: var(--k-rose); }
.paket--teal .paket__tag { background: var(--k-teal); }
.paket__title { margin-bottom: 14px; font-family: var(--ff-serif); font-size: 28px; font-weight: 800; line-height: 1.2; color: var(--k-ink); }
.paket__feats { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 16px; }
.paket__feats li { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 1.25; color: var(--k-ink); }
.paket__feats .ic { width: 20px; height: 20px; color: var(--k-teal-dark); }
.paket__prices { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.paket__old { font-size: 16px; color: #8f8aa5; }
.paket__price { font-family: var(--ff-serif); font-weight: 800; font-size: 32px; line-height: 1.1; color: var(--k-ink); }
.paket__note { flex-basis: 100%; font-size: 12px; color: #6f6b87; }
.paket__save {
  display: inline-block;
  margin: 10px 0 18px;
  padding: 5px 14px;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--k-rose-dark);
}
.paket__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.paket__actions .btn { padding: 13px 22px; }
.paket__img { align-self: stretch; width: 100%; height: 100%; object-fit: cover; }

/* --- Ergebnisse (вкладки + сетка) --- */
.results { padding: 56px 0; background: var(--k-rose-soft); }
.results__head { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-bottom: 28px; }   /* при крупном заголовке (50px) вкладки всегда под ним, по центру */
.rtabs__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 5px; border-radius: 999px; background: #fff; }
.rtabs__tab {
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--k-ink);
  transition: background-color 0.25s, color 0.25s;
}
.rtabs__tab:hover { background: var(--k-teal-soft); }
.rtabs__tab[aria-selected="true"] { background: var(--k-teal); color: #fff; }

/* --- Отзывы (только страница Kurse; на главной тот же класс .reviews — см. секцию 10) --- */
.page-kurse .reviews { padding: 56px 0; background: #fff; }
.page-kurse .reviews .carousel { --gap: 20px; padding-inline: 52px; }
.page-kurse .reviews .carousel__track { padding: 8px 0 32px; }
.page-kurse .reviews .carousel__btn {
  top: calc(50% - 12px);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--k-teal);
  color: #fff;
  transition: background-color 0.25s;
}
.page-kurse .reviews .carousel__btn:hover,
.page-kurse .reviews .carousel__btn:focus-visible { background: var(--k-teal-dark); }
.page-kurse .reviews .carousel__btn--prev { left: 0; }
.page-kurse .reviews .carousel__btn--next { right: 0; }
.review__inner {
  height: 100%;
  margin: 0;
  padding: 22px 24px;
  border: 1px solid var(--k-line);
  border-radius: var(--k-radius);
  background: #fff;
  box-shadow: var(--k-shadow);
}
.review__head { display: flex; align-items: center; gap: 12px; }
.review__avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--k-rose-soft);
  font-family: var(--ff-serif);
  font-weight: 700;
  color: var(--k-rose-dark);
}
.review__name { font-weight: 600; color: var(--k-ink); }
.review__stars { display: flex; gap: 2px; margin: 10px 0; color: var(--k-teal); }
.review__stars .ic { width: 18px; height: 18px; }
.review__text { margin: 0; font-size: 15px; line-height: 1.6; }

/* --- Финальный CTA --- */
.kcta { background: linear-gradient(100deg, var(--k-teal-dark), var(--k-teal) 60%, #6fb9b4); color: #fff; }
.kcta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px 48px;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 40px var(--gutter);
}
/* два блока: слева журнал + заголовок, справа список + кнопка */
.kcta__intro,
.kcta__action { display: flex; align-items: center; gap: 28px 36px; }
.kcta__img { width: 170px; height: auto; margin-block: -34px -10px; flex: none; filter: drop-shadow(0 14px 18px rgba(0, 40, 40, 0.35)); }
.kcta__title { font-family: var(--ff-serif); font-size: 30px; font-weight: 800; line-height: 1.2; }
.kcta__line { display: block; white-space: nowrap; }      /* заголовок всегда в 2 строки: «Starte jetzt» / «deine Beauty-Karriere!» */
.kcta__list { display: grid; grid-template-columns: 1fr; gap: 8px; }
.kcta__list li { display: flex; align-items: center; gap: 8px; font-size: 15px; white-space: nowrap; }   /* каждый пункт в одну строку */
.kcta__list .ic { color: #fff; }

/* --- Попап: кнопка бронирования внутри текста --- */
.popup__text .btn--teal { margin-top: 8px; color: #fff; }
.popup__text ul { list-style: disc; }

/* --- адаптив --- */
/* курсы и результаты: бесконечные карусели (компонент .carousel), круглые бирюзовые стрелки */
.kcourses .carousel,
.rtabs .carousel { --slides: 3; --gap: 18px; padding-inline: 52px; }
.kcourses__row { display: flex; gap: var(--gap); padding: 6px 0 18px; }
.kcourses .carousel__btn,
.rtabs .carousel__btn {
  display: grid;
  top: calc(50% - 6px);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--k-teal);
  color: #fff;
  transition: background-color 0.25s;
}
.kcourses .carousel__btn:hover,
.kcourses .carousel__btn:focus-visible,
.rtabs .carousel__btn:hover,
.rtabs .carousel__btn:focus-visible { background: var(--k-teal-dark); }
.kcourses .carousel__btn--prev,
.rtabs .carousel__btn--prev { left: 0; }
.kcourses .carousel__btn--next,
.rtabs .carousel__btn--next { right: 0; }
.rtabs .carousel { margin-top: 28px; }
.rtabs .carousel__track { padding: 4px 0; }
.rtabs .carousel__slide img { border-radius: 14px; aspect-ratio: 4 / 5; }
.rtabs .carousel--square .carousel__slide img { aspect-ratio: 1; }
@media (max-width: 1100px) {
  .kcard__more .ic { display: none; }   /* узкие карточки: только текст, чтобы цена и кнопка помещались */
  .kcard__more { padding: 0 12px; }
}
@media (max-width: 1200px) {
  .perks__list { grid-template-columns: repeat(3, 1fr); gap: 16px 10px; }
  .khero__title { font-size: 40px; }
}

@media (max-width: 1024px) {
  .ktitle { font-size: 35px; }
  .khero__inner { grid-template-columns: 1fr; gap: 28px; padding-block: 36px; }
  .khero__media { order: -1; aspect-ratio: 16 / 10; border-radius: 0 0 40% 40% / 0 0 40% 40%; box-shadow: none; }
  .khero__inner { padding-top: 0; }
  .khero__media { margin-inline: calc(-1 * var(--gutter)); }
  .pakete__row { grid-template-columns: 1fr; }
  .page-kurse .reviews .carousel { --slides: 2; }
}

@media (max-width: 767px) {
  .ktitle { font-size: 25px; margin-bottom: 28px; }
  .khero__title { font-size: 30px; }
  .khero__title span { font-size: 20px; }
  .khero__lead { font-size: 16px; }
  .khero__actions .btn,
  .paket__actions .btn { width: 100%; }
  .perks__list { grid-template-columns: repeat(2, 1fr); }
  .kcourses { padding-top: 40px; }
  .kcourses .carousel,
  .rtabs .carousel { --slides: 2; padding-inline: 0; padding-bottom: 56px; }
  /* стрелки под слайдами, справа */
  .kcourses .carousel__btn,
  .rtabs .carousel__btn { top: auto; bottom: 4px; }
  .kcourses .carousel__btn--prev,
  .rtabs .carousel__btn--prev { left: auto; right: 52px; }
  .kcourses .carousel__btn--next,
  .rtabs .carousel__btn--next { right: 0; }
  .kcourses__row { padding-bottom: 14px; }
  .paket__inner { grid-template-columns: 1fr; }
  .paket__img { order: -1; height: 200px; }
  .paket__text { padding: 22px; }
  .paket__title { font-size: 24px; }
  .rtabs__list { border-radius: 18px; }
  .page-kurse .reviews .carousel { --slides: 1; padding-inline: 46px; }
  .kcta__title { font-size: 26px; }
}

/* hero: 4 факта на узких экранах — 2 ряда по 2, по центру (иначе переносится 3+1) */
@media (max-width: 600px) {
  .khero__media { aspect-ratio: 4 / 3; }
  .khero__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 150px));
    justify-content: center;
    gap: 18px 28px;
  }
}

@media (max-width: 480px) {
  .kcourses .carousel,
  .rtabs .carousel { --slides: 1; }
}


/* ≤1180: блоки остаются в ряд, но внутри каждого — по вертикали и по центру (компактнее, чем одна колонка) */
@media (max-width: 1180px) {
  .kcta__inner { justify-content: center; gap: 28px 90px; }
  .kcta__intro,
  .kcta__action { flex-direction: column; text-align: center; }
  .kcta__img { margin-block: -10px 0; }
}
/* мобильный: блоки друг под другом */
@media (max-width: 767px) {
  .kcta__inner { flex-direction: column; }
}
.kcta .btn { white-space: nowrap; }

/* --- Преподаватель --- */
.teacher { padding: 64px 0; background: #fff; }
.teacher__inner {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.teacher__media { margin: 0 28px 28px 0; }
.teacher__media img {
  width: 100%;
  height: auto;
  border-radius: var(--k-radius);
  box-shadow: 14px 14px 0 -2px var(--k-teal-soft), 28px 28px 0 -6px #d3ebe9;
}
.teacher__title {
  margin-bottom: 18px;
  font-family: var(--ff-serif);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.12;
  color: var(--c-pink);
}
.teacher__title span {
  display: block;
  margin-top: 10px;
  font-family: var(--ff-round);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--k-teal-dark);
}
.teacher__kicker { margin-bottom: 14px; font-size: 18px; font-weight: 600; color: var(--k-ink); }
.teacher__text p { margin-bottom: 14px; font-size: 17px; line-height: 1.6; }
.teacher__text strong { font-weight: 600; color: var(--k-ink); }
.teacher__lead { margin-top: 20px; padding-left: 18px; border-left: 4px solid var(--k-teal); font-weight: 600; color: var(--k-ink); }
@media (max-width: 1024px) {
  .teacher__inner { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 44px; }
  .teacher__title { font-size: 32px; }
}
@media (max-width: 767px) {
  .teacher { padding: 40px 0; }
  .teacher__inner { grid-template-columns: 1fr; gap: 34px; }
  .teacher__media { width: min(320px, 82%); margin-inline: auto; }
  .teacher__title { font-size: 27px; text-align: center; }
  .teacher__title span { font-size: 17px; }
  .teacher__text p { font-size: 16px; }
}
