:root {
  /* --- цвет: бренд (зелёный) --- */
  --brand: #075f48;       /* основной бренд */
  --brand-500: #0b7b5a;   /* интерактив / hover */
  --brand-700: #064b3a;   /* тёмный, для текста на светлом */
  --brand-900: #04372a;   /* самый тёмный */
  --brand-050: #eef6f2;   /* фоновые плашки на бренд-цвете */

  /* --- цвет: золото (акцент, использовать точечно) --- */
  --gold: #d4b97a;
  --gold-600: #c9a227;
  --beige: #e6d0a2;
  --accent: #f6e7b8;

  /* --- нейтральные --- */
  --text: #15201c;
  --muted: #6e7a74;
  --ink: #0f1715;
  --gray: #f4f3f2;
  --line: #e8ecea;
  --white: #ffffff;
  --bg: #f8fbfa;

  /* --- шкала отступов (8px-шаг) --- */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;

  /* --- шкала типографики (clamp: мобильный → десктоп) --- */
  --fs-1: .75rem;                          /* 12px, подписи/лейблы */
  --fs-2: .875rem;                         /* 14px, мелкий текст */
  --fs-3: 1rem;                            /* 16px, базовый текст */
  --fs-4: clamp(1.125rem, 1.05rem + .3vw, 1.25rem);  /* 18–20px, подзаголовки */
  --fs-5: clamp(1.375rem, 1.2rem + .8vw, 1.75rem);   /* 22–28px, h3/h2 малые */
  --fs-6: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);    /* 28–40px, h2 */
  --fs-7: clamp(2.25rem, 1.7rem + 2.6vw, 3.5rem);    /* 36–56px, h1/hero */

  /* --- радиусы: три значения вместо восьми --- */
  --radius-sm: 12px;   /* мелкие элементы: чипы, инпуты */
  --radius: 20px;      /* карточки */
  --radius-pill: 999px; /* кнопки, таблетки */

  --shadow-sm: 0 6px 16px rgba(0,0,0,.08);
  --shadow: 0 18px 40px rgba(0,0,0,.12);
  --container: 1140px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* {
  box-sizing: border-box;
}

html,body {
  margin: 0;
  height: 100%;
}

main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: min(var(--container),92vw);
  margin-inline: auto;
}

h1,h2,h3 {
  color: var(--ink);
  letter-spacing: .2px;
}

p {
  color: var(--text);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--brand);
  color: #fff;
  height: 72px;
  display: flex;
  align-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.logo {
  height: 48px;
  transition: transform .2s var(--ease);
}

.logo--lg {
  height: 60px;
}

.logo:hover {
  transform: scale(1.03);
}

.brand-title {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.brand-title b {
  font-weight: 800;
  letter-spacing: .3px;
  font-size: 1.06rem;
  color: #fff;
}

.brand-title span {
  font-size: .92rem;
  opacity: .96;
  color: #f4f3e0;
}

.menu {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu a {
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background .2s var(--ease), box-shadow .2s var(--ease);
}

.menu a:hover {
  background: rgba(255,255,255,.14);
}

.menu a.active {
  background: rgba(255,255,255,.22);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}

.burger {
  display: none;
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  padding: 0;
}

.burger span {
  display: block;
  height: 3px;
  background: #fff;
  margin: 6px 8px;
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-decoration: none;
}

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #2a2110;
  box-shadow: 0 12px 26px rgba(0,0,0,.12);
  transition: background .2s ease, box-shadow .2s ease, transform .15s ease;
}

.btn--gold:hover {
  background: #e0c485;
  box-shadow: 0 16px 34px rgba(0,0,0,.16);
  transform: translateY(-1px);
}

.btn--green {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn--green:hover {
  filter: brightness(.95);
}

.arrow-btn {
  padding-right: 20px;
}

.arrow-btn::after {
  content: none;
}

.btn-yt {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background: #FF0000;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(255,0,0,.35);
  border: none;
  transition: .25s ease;
}

.btn-yt:hover {
  background: #cc0000;
  box-shadow: 0 8px 22px rgba(255,0,0,.45);
  transform: translateY(-1px);
}

.yt-icon {
  width: 26px;
  height: 18px;
  background: #fff;
  border-radius: 4px / 6px;
  position: relative;
  display: inline-block;
}

.yt-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #FF0000;
}

.hero {
  position: relative;
  padding: 30px 0 80px; /* нижнього поля не хватало: повернутий на 45° ромб виступає ~64px за межі своєї 520px колонки */
  color: #0f1715;
  background: #f8fbfa;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 0%, rgba(255,255,255,0.85) 0, rgba(255,255,255,0) 40%),
    radial-gradient(circle at 85% 100%, rgba(223,244,236,0.95) 0, rgba(223,244,236,0) 55%);
  pointer-events: none;
  z-index: 0;
}

.hero-split {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
}

.hero-col {
  flex: 1 1 0;
  min-width: 0;
}

.hero-content {
  max-width: 520px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: rgba(7,95,72,0.06);
  color: #075f48;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero-title span {
  color: #075f48;
}

.lead {
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.7;
  color: #4c5a54;
}

.hero-col.hero-media {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
}

.rhombs-layout {
  position: relative;
  width: 760px;
  height: 520px;
}

.rhomb {
  position: absolute;
  transform: rotate(45deg);
  border-radius: 32px;
  overflow: hidden;
  background: #ffffff;
  border: 10px solid rgba(255,255,255,0.98);
  outline: 2px solid rgba(212,185,122,0.9);
  outline-offset: 0;
  box-shadow: 0 30px 80px rgba(0,0,0,0.26);
  transition: .3s ease;
}

.rhomb:hover {
  transform: rotate(45deg) scale(1.06);
  box-shadow: 0 40px 110px rgba(0,0,0,0.35);
}

.rhomb__inner {
  position: absolute;
  inset: -25%;
  transform: rotate(-45deg);
}

.rhomb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rhomb--big {
  width: 320px;
  height: 320px;
  top: -85px;
  left: 330px;
}

.rhomb--medium {
  width: 260px;
  height: 260px;
  top: 270px;
  left: 215px;
}

.rhomb--small {
  width: 190px;
  height: 190px;
  top: 100px;
  left: 95px;
}

section {
  padding: 64px 0;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(22px,3.2vw,30px);
  font-weight: 800;
  color: var(--brand-900);
}

.split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 36px;
  align-items: center;
}

.about-section {
  padding: 48px 0 56px;
  background: #ffffff;
}

.about-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 34px;
  flex-wrap: nowrap;
}

.about-photo {
  flex: 0 0 240px;
  display: flex;
  justify-content: center;
}

.photo-circle {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  overflow: hidden;
  border: none;
  box-shadow: 0 10px 24px rgba(0,0,0,0.16);
  background: transparent;
  position: relative;
}

.photo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-text {
  flex: 1;
  min-width: 380px;
  max-width: 900px;
}

.section-title {
  font-size: 28px;
  margin: 0 0 12px;
  color: #064b3a;
}

.about-text p {
  font-size: 14px;
  line-height: 1.75;
  color: #15201c;
  margin: 0 0 10px;
}

.about-text p.muted {
  color: #6e7a74;
}

.about-btn {
  display: inline-flex;
  margin-top: 16px;
  padding: 10px 28px;
  border-radius: 999px;
  background: #075f48;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: .3s;
}

.about-btn:hover {
  background: #0c7a59;
  box-shadow: 0 8px 22px rgba(12,122,89,0.25);
}

.programs {
  padding: 60px 0 70px;
  background: #fafafa;
}

.programs-header {
  text-align: center;
  margin-bottom: 40px;
}

.programs-title {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  color: #0f1715;
  letter-spacing: -0.02em;
}

.programs-title::after {
  content: "";
  width: 70px;
  height: 3px;
  border-radius: 2px;
  background: #b01616;
  display: block;
  margin: 12px auto 0;
}

.programs-subtitle {
  margin: 18px auto 0;
  max-width: 650px;
  font-size: 16px;
  color: #4e5854;
  line-height: 1.5;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 24px;
  justify-items: center;
}

.prog-card {
  position: relative;
  width: 220px;
  padding: 18px 18px 20px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
  transition: box-shadow .25s ease, transform .25s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.prog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(0,0,0,0.10);
}

.prog-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(176,22,22,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  margin-bottom: 6px;
}

.prog-icon svg {
  width: 24px;
  height: 24px;
}

.prog-icon svg,
.prog-icon svg * {
  stroke: #ffffff;
  fill: none;
  color: #ffffff;
}

.prog-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #28332e;
  white-space: normal;
  word-wrap: break-word;
}

.prog-term {
  margin: 0;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
  color: #b01616;
  display: inline-block;
  padding-bottom: 1px;
  border-bottom: 1.5px solid rgba(176,22,22,0.7);
}

.prog-term--muted {
  color: #b01616;
  opacity: .85;
}

.prog-popup {
  position: absolute;
  bottom: -110px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 230px;
  background: rgba(255,255,255,0.96);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.55;
  color: #474f4c;
  opacity: 0;
  pointer-events: none;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  backdrop-filter: blur(3px);
  transition: opacity .25s ease, transform .25s ease;
  z-index: 15;
}

.prog-popup::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.96);
  border-left: 1px solid rgba(0,0,0,0.07);
  border-top: 1px solid rgba(0,0,0,0.07);
}

.prog-card:hover .prog-popup {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.partners {
  padding: 36px 0;
  background: #fff;
}

.partners-title {
  text-align: center;
  margin: 0 0 20px;
  font-weight: 800;
  color: #075f48;
  font-size: clamp(18px,2.4vw,28px);
}

.partners-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.partners-logo {
  height: 48px;
  width: auto;
  display: block;
  filter: grayscale(100%) brightness(.9);
  opacity: .95;
  transition: .25s ease;
}

.partners-logo:hover {
  filter: none;
  opacity: 1;
  transform: translateY(-1px);
}

.teachers-section {
  padding: 80px 0;
  background: #f9faf9;
  text-align: center;
}

.teachers-title {
  font-size: 32px;
  font-weight: 800;
  color: #064b3a;
  margin-bottom: 10px;
}

.teachers-subtitle {
  color: #6e7a74;
  margin-bottom: 40px;
}

.news-section {
  padding: 80px 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 28px;
}

.news-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
  transition: .25s;
}

.news-card:hover {
  transform: translateY(-4px);
}

.news-img {
  height: 170px;
  background: #cfcfcf;
}

.news-body {
  padding: 20px 24px;
}

.news-h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}

.news-excerpt {
  color: #5d6964;
  font-size: 15px;
  margin-bottom: 12px;
}

.news-link {
  font-weight: 600;
  color: #075f48;
  text-decoration: none;
  transition: .2s;
}

.news-link:hover {
  color: #053c2d;
}

.page {
  background: var(--white);
  padding: 48px 0 80px;
}

.page-stack {
  display: grid;
  gap: 22px;
}

.card {
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.note {
  background: var(--white);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 22px;
}

h3 {
  font-size: 1.15rem;
  color: var(--brand-700);
  margin: 10px 0;
}

.intro {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text);
}

.list {
  margin: 8px 0 0 1.2rem;
}

.list li {
  margin: .35rem 0;
}

.quran {
  background: var(--bg);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: 22px;
}

.pill {
  display: inline-block;
  background: #eef6f3;
  color: var(--brand-700);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 8px;
}

.arabic {
  font-family: "Amiri",serif;
  font-size: 1.35rem;
  line-height: 2;
  text-align: right;
  margin: 4px 0;
}

.trans {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 16px;
}

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

.edu-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.06);
  padding: 24px 22px 22px;
  margin-bottom: 24px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.04);
  transition: border-color .35s ease,
    box-shadow .35s ease,
    background-color .35s ease,
    transform .35s ease;
}

.edu-card:target {
  background: rgba(176,22,22,0.06);
  border-color: rgba(176,22,22,0.55);
  box-shadow: 0 14px 40px rgba(176,22,22,0.18);
  transform: translateY(-4px);
}

@keyframes fadeIn{ to{ opacity:1; transform:none } }

.card,.note,.quran {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeIn .6s cubic-bezier(.2,.7,.2,1) .05s both;
}

html {
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

.page-hero {
  padding: 64px 0 40px;
  background: #f5faf8;
  border-bottom: 1px solid var(--line);
}



.page-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 10px;
}

.page-subtitle {
  max-width: 720px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

.hero--abitur {
  background: #f8fbfa;
  padding: 72px 0 64px;
}

.hero-abitur-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}

.hero-abitur-left {
  flex: 1 1 320px;
  max-width: 560px;
}

.hero-abitur-left h1 {
  margin: 16px 0 10px;
  font-size: clamp(26px,3vw,32px);
  line-height: 1.2;
  color: var(--brand-900);
}

.hero-abitur-left .lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

.hero-abitur-left .lead b {
  color: var(--brand-900);
  font-weight: 600;
}

.hero-abitur-left .hero-actions {
  margin-top: 20px;
}

.hero-abitur-right {
  flex: 1 1 260px;
}

.hero-abitur-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 16px;
}

.hero-abitur-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 16px 18px 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.03);
}

.hero-abitur-icon-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(7,95,72,0.06);
}

.hero.hero--courses {
  padding: 48px 0 40px;
  min-height: 400px;
  display: flex;
  align-items: center;
}

.hero--inner {
  background: #f8fbfa;
  padding: 48px 0 40px;
  min-height: 250px;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal__dialog {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: var(--radius,18px);
  box-shadow: var(--shadow,0 18px 40px rgba(0,0,0,.12));
  padding: 1.75rem clamp(1.5rem,3vw,2.25rem);
  max-width: 520px;
  width: 100%;
  margin: 0 1rem;
}

#success-modal .modal__dialog {
  max-width: 420px;
  text-align: center;
}

.modal__close {
  position: absolute;
  top: .6rem;
  right: .7rem;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted,#6e7a74);
}

.modal__close:hover {
  color: var(--ink,#0f1715);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 1rem 1.25rem;
}

.admission-form label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink,#0f1715);
}

.admission-form .required {
  color: #c0392b;
  margin-left: .15rem;
}

.admission-form input:focus,
.admission-form select:focus,
.admission-form textarea:focus {
  border-color: var(--brand,#075f48);
  box-shadow: 0 0 0 1px rgba(7,95,72,.1);
  background: #ffffff;
}

.admission-form input::placeholder,
.admission-form textarea::placeholder {
  color: var(--muted,#6e7a74);
}

.btn--wide {
  width: 100%;
  margin-top: 1rem;
}

.form-note {
  margin-top: .75rem;
  font-size: .8rem;
  color: var(--muted,#6e7a74);
}



.footer {
  background: #014f3b;
  color: #d7e3e0;
  margin-top: auto;
  padding-top: 18px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
  padding: 36px 0;
}

.footer h4 {
  margin: 0 0 10px;
  color: #fff;
}

.links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.links a {
  color: #e6eee9;
}

.footer p {
  color: #fff;
}

footer .lead,
footer p.lead,
footer .tagline,
.lead.tagline,
.tagline-footer,
footer .lead-line {
  color: #ffffff;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.copyright {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 12px 0;
  color: #a2b3ae;
  text-align: center;
}

.library-hero {
  padding: 64px 0 48px;
  background: linear-gradient(135deg,#075f48 0%,#0a7b5a 35%,#f7f7f6 100%);
  color: #fff;
}

.library-hero h1 {
  color: #fff;
}

.library-hero p {
  color: #fefefe;
  max-width: 720px;
}

.library-ebooks {
  padding: 56px 0 72px;
  background: #f7f7f6;
}

.ebook-icon,
.ebook-badge,
.icon-ebook {
  display: none !important;
}

a:focus-visible,.btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(255,255,255,.35), var(--shadow-sm);
}

@media (prefers-reduced-motion:reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

@media (prefers-color-scheme:dark) {
  .uni-showcase__veil {
    background: radial-gradient(1200px 600px at 70% 35%, rgba(20,24,22,.15), rgba(20,24,22,.6) 55%, rgba(20,24,22,.78)),
        linear-gradient(0deg, rgba(20,24,22,.65), rgba(20,24,22,.65));
  }
}

@media (max-width:1200px) {
  .rhombs-layout {
    transform: scale(.9);
    transform-origin: center;
  }
}

@media (max-width:700px) {
  .rhombs-layout {
    transform: scale(.7);
  }
}

@media (max-width:768px) {
  .header {
    height: 60px;
  }
  body {
    padding-top: 60px;
  }
  .brand .logo {
    height: 44px;
    width: auto;
  }
  .brand-title b {
    font-size: 0.95rem;
    line-height: 1.1;
  }
  .brand-title span {
    font-size: 0.78rem;
    line-height: 1;
  }
  .burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
  }
  .burger span {
    width: 20px;
    height: 2px;
    margin: 0;
    background: #ffffff;
    border-radius: 999px;
  }
  .header .nav {
    position: relative;
  }
  .header .menu {
    position: absolute;
    top: 60px;
    right: 12px;
    left: auto;
    width: 78vw;
    max-width: 320px;
    margin: 0;
    padding: 10px 16px 12px;
    list-style: none;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 1500;
  }
  .header .menu.open {
    display: flex;
  }
  .header .menu li+li {
    border-top: 1px solid #f3f4f5;
  }
  .header .menu a {
    display: block;
    padding: 8px 0;
    font-size: 15px;
    font-weight: 600;
    color: #15201c;
    background: transparent;
    border-radius: 8px;
  }
  .header .menu a.active {
    color: #075f48;
  }
  .hero {
    padding-top: 38px;
    padding-bottom: 18px;
  }
  .hero-split {
    display: block;
  }
  .hero-col.hero-media {
    display: none;
  }
  .hero-col.hero-content {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    padding: 32px 16px 0;
  }
  .hero .kicker {
    margin-top: 6px;
    margin-bottom: 6px;
  }
  .hero-title {
    font-size: 1.85rem;
    margin-bottom: 10px;
  }
  .hero .lead {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }
  .ayah-card {
    margin-top: 8px;
    margin-bottom: 10px;
    padding: 10px 12px;
  }
  .ayah-ar {
    font-size: 18px;
  }
  .hero-actions {
    margin-top: 10px;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
    max-width: 300px;
    margin-inline: auto;
    justify-content: center;
  }
  .programs {
    padding: 40px 0 50px;
  }
  .programs-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .prog-card {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .prog-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    box-shadow: none;
  }
  .prog-popup,
    .prog-card:hover .prog-popup {
    display: none;
  }
  .prog-title {
    font-size: 14px;
    text-align: left;
  }
  .prog-term {
    font-size: 13px;
  }
  .about-row {
    flex-wrap: wrap;
    text-align: center;
    gap: 22px;
  }
  .about-text {
    max-width: 100%;
    min-width: 0;
  }
  .about-photo .photo-circle {
    width: 160px;
    height: 160px;
  }
  .about-btn {
    justify-content: center;
  }
  .teachers-grid,
    .news-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 18px;
  }
  .modal__dialog {
    width: 100%;
    max-width: 480px;
    margin: 20px 12px;
    padding: 18px 14px;
  }
  .form-grid {
    display: block;
  }
  .form-group {
    width: 100%;
    margin-bottom: 10px;
  }
  .btn--wide {
    width: 100%;
  }
  .library-hero {
    padding: 48px 0 32px;
  }
}

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

@media (max-width:900px) {
  .container {
    width: min(var(--container), 94vw);
  }
  .split {
    grid-template-columns: 1fr;
  }
  .grid.cols-2 {
    grid-template-columns: 1fr;
  }
  .rhombs-layout {
    transform: scale(.8);
  }
  .hero-abitur-inner {
    flex-direction: column;
  }
  .hero-abitur-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width:480px) {
  .hero-title {
    font-size: 1.6rem;
  }
}

.prayer-widget,
.hero-prayer {
  display: none !important;
}

.hero-title-row {
  display: block;
}

.hero-title {
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  font-weight: 700;
  white-space: nowrap !important;
  display: inline-block;
}

.partners-grid .partner {
  border: 2px solid var(--gold);
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 18px 40px rgba(0,0,0,.08);
  transition: .25s var(--ease);
}

.partners-grid .partner:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 55px rgba(0,0,0,.12);
  border-color: var(--brand);
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(7,95,72,.25);
  transition: .25s var(--ease);
}

.btn--primary:hover {
  background: var(--brand-700);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(7,95,72,.35);
}

.btn--ghost {
  box-shadow: none;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid var(--brand);
  color: var(--brand);
  background: #fff;
  font-weight: 700;
  transition: .25s var(--ease);
}

.btn--ghost:hover {
  border-color: #0c7a59;
  box-shadow: 0 8px 22px rgba(12,122,89,.22);
  background: var(--brand);
  color: #fff;
  transform: translateY(-2px);
}

.diamond {
  position: relative;
  width: 120px;
  height: 120px;
  transform: rotate(45deg);
  overflow: hidden;
  border-radius: 18px;
  border: 3px solid transparent;
  background-image: linear-gradient(#ffffff, #ffffff),
    linear-gradient(135deg, #075f48, #0a7f60, #064b3a);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 10px 22px rgba(0,0,0,0.15),
    inset 0 0 18px rgba(7, 95, 72, 0.15);
  transition: .25s ease;
}

.diamond img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: rotate(-45deg);
  border-radius: 14px;
}

.diamond::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  background: radial-gradient(circle at 80% 20%, rgba(7,95,72,0.18), transparent 60%),
    radial-gradient(circle at 0% 100%, rgba(10,127,96,0.15), transparent 60%);
  opacity: .9;
}

.diamond:hover {
  transform: rotate(45deg) translateY(-4px);
  box-shadow: 0 18px 38px rgba(0,0,0,0.18),
    inset 0 0 25px rgba(7, 95, 72, 0.22);
}

.ayah-card {
  margin: 0 0 28px;
  text-align: center;
  border-left: 4px solid var(--brand);
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(#fdfbf6, #fdfbf6) padding-box,
    linear-gradient(135deg,
      var(--brand-900, #04372a),
      var(--gold, #d4b97a),
      var(--brand-700, #064b3a)
    ) border-box;
  border: 1px solid transparent;
  box-shadow: 0 8px 24px rgba(0,0,0,.16);
  position: relative;
}

.ayah-card::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 16px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  transform: rotate(45deg);
  background: radial-gradient(circle at 30% 30%, #ffffff, transparent 55%),
    linear-gradient(135deg,
      var(--gold, #d4b97a),
      var(--brand, #075f48)
    );
}

.ayah-caption {
  margin-bottom: 6px;
  font-weight: 500;
  margin: 0 0 10px;
  padding-left: 28px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--muted, #6e7a74);
}

.ayah-src {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-900, #04372a);
}

.ayah-ar {
  direction: rtl;
  margin: 4px 0 6px;
  font-family: "Noto Naskh Arabic", "Scheherazade New", serif;
  font-size: 1.6rem;
  line-height: 2.2;
  text-align: center;
  color: var(--ink, #0f1715);
  -webkit-font-smoothing: antialiased;
  font-weight: 700;
}

.ayah-ua {
  margin-top: 4px;
  font-style: italic;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
  color: var(--text, #15201c);
  font-weight: 500;
}

.hero-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}

.btn.btn--primary {
  border-radius: 999px;
  padding: 10px 22px;
  border: none;
  background-image: linear-gradient(135deg, var(--gold, #d4b97a), #f7e4aa);
  color: #1b1b17;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
}

.btn.btn--ghost.arrow-btn {
  border-radius: 999px;
  padding: 10px 20px;
  border: 1px solid rgba(253,251,246,.7);
  background: rgba(4,55,42,.18);
  color: #fdfbf6;
  font-size: 0.93rem;
  font-weight: 500;
  text-decoration: none;
}

.btn.btn--primary:hover,
.btn.btn--ghost.arrow-btn:hover {
  filter: brightness(1.03);
}

.home-tab-icon {
  flex-shrink: 0;
}

.home-program-block {
  padding: 40px 0;
  background: #f4f3f2;
}

.home-tab:last-child {
  border-right: none;
}

.home-tab-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.home-tab:hover {
  background: #f7faf8;
}
.home-tab{
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  position: relative;
}
.home-tab:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(7,95,72,.10);
  z-index: 1;
}
@media (prefers-reduced-motion: reduce){
  .home-tab{ transition: none !important; }
  .home-tab:hover{ transform: none !important; }
}

.home-program-left {
  background: #ffffff;
}

.home-shaikh-photo {
  display: block;
  height: 100%;
}

.home-program-right {
  position: relative;
  color: #fdfbf6;
  background: linear-gradient(rgba(7,95,72,0.8), rgba(7,95,72,0.8)),
    url("/images/project-universitet-4.jpg") center/cover no-repeat;
}

.home-program-right p.muted {
  color: #c5dcd3;
}

.home-program-right .about-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.85);
  background: #ffffff;
  color: #075f48;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.home-program-right .about-btn:hover {
  background: #f3f7f5;
}

.home-program-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid #e3e3e0;
  background: #ffffff;
  padding: 16px 0;
}

.home-tab {
  display: flex;
  align-items: center;
  text-decoration: none;
  border-right: 1px solid #e3e3e0;
  padding: 28px 34px;
  gap: 22px;
}

.home-tab-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #075f48;
}

.home-tab-sub {
  font-size: 0.95rem;
  color: #7a8480;
}

.home-program-right-inner {
  max-width: 560px;
  padding: 38px 42px;
}

.home-program-right p {
  margin: 5px 0;
  color: #e5f1ec;
  font-size: 1rem;
  line-height: 1.72;
}

.home-program-right .section-title {
  margin-top: 0;
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 1.6rem;
}

.home-program-card {
  border-radius: 22px;
  box-shadow: 0 22px 48px rgba(0,0,0,.12);
  padding-bottom: 0 !important;
  background: #ffffff;
  overflow: hidden;
}

.home-program-main {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.4fr);
  min-height: 280px;
  margin-bottom: 0 !important;
}

.home-tab-icon svg {
  color: #1a1a1a !important;
  stroke: #1a1a1a !important;
  width: 46px;
  height: 46px;
  stroke-width: 2 !important;
}

.home-shaikh-photo-wrapper {
  position: relative;
  overflow: hidden;
}

.shaikh-hover-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: rgba(7, 95, 72, 0.82);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transform: translateY(100%);
  transition: all .25s ease;
  pointer-events: none;
}

.home-shaikh-photo-wrapper:hover .shaikh-hover-label {
  opacity: 1;
  transform: translateY(0);
}

.home-shaikh-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.call-btn {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(
    180deg,
    var(--accent) 0%,   /* светлый верх */
    var(--beige) 50%,   /* мягкая середина */
    var(--gold) 100%    /* глубокий золотой низ */
  );
  color: #0f1715;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.18),
    0 12px 32px rgba(0,0,0,0.22);
  cursor: pointer;
  transition: all .25s var(--ease);
  z-index: 99999;
}

.call-btn:hover {
  background: linear-gradient(
    180deg,
    var(--accent) 0%,
    var(--beige) 30%,
    var(--gold) 100%
  );
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.22),
    0 18px 40px rgba(0,0,0,0.28);
}

.call-btn__icon {
  width: 32px;
  height: 32px;
  stroke: #0f1715;
  opacity: .9;
}

@media (max-width: 600px) {
  .home-program-tabs {
    grid-template-columns: 1fr;
  }
  .call-btn {
    width: 60px;
    height: 60px;
    right: 18px;
    bottom: 18px;
  }
  .call-btn__icon {
    width: 26px;
    height: 26px;
  }
}

@media (min-width: 900px) {
  .form-grid--two {
    grid-template-columns: minmax(0,1.05fr) minmax(0,1fr);
  }
}

.phone-row {
  display: flex;
  gap: 8px;
}

.phone-row select {
  flex: 0 0 170px;
}

.phone-row input {
  flex: 1 1 auto;
}

@media (max-width:600px) {
  .phone-row select {
    flex: 0 0 130px;
  }
}

.modal__dialog--wide .admission-form {
  margin-top: 12px;
}

.form-grid--two .form-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admission-form .form-group > label {
  font-size: 14px;
  font-weight: 600;
  color: #15201c;
}

.admission-form input,
.admission-form select,
.admission-form textarea {
  font: inherit;
  padding: .6rem .75rem;
  border-radius: 10px;
  border: 1px solid var(--line,#f7f7f6);
  background: #fdfdfd;
  outline: none;
  transition: border-color .18s var(--ease),
    box-shadow .18s var(--ease),
    background .18s var(--ease);
  font-size: 14px;
}

@media (max-width: 720px) {
  .modal__dialog--wide {
    max-width: 100%;
    margin: 12px;
  }
  .form-grid--two {
    grid-template-columns: 1fr;
  }
}

.country-select {
  position: relative;
  font-size: 14px;
}

.country-select__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid #d4ddd9;
  background: #fff;
  cursor: pointer;
}

.country-select__left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.iti__flag-box {
  width: 20px;
  height: 14px;
  position: relative;
}

.country-select__name {
  white-space: nowrap;
}

.country-select__arrow {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid #7b8782;
}

.country-select.is-open .country-select__arrow {
  transform: rotate(180deg);
}

.country-select__dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #d4ddd9;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  max-height: 260px;
  display: none;
  z-index: 1200;
}

.country-select.is-open .country-select__dropdown {
  display: block;
}

.country-select__search {
  width: 100%;
  padding: 6px 10px;
  border: none;
  border-bottom: 1px solid #e3ece8;
  outline: none;
  font-size: 13px;
}

.country-select__list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  max-height: 220px;
  overflow-y: auto;
}

.country-select__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 13px;
}

.country-select__item:hover {
  background: #f4f7f6;
}

.country-select__item.is-active {
  background: #eef6f2;
  font-weight: 600;
}

.modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
}

.modal__head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 1.2rem 1.4rem 0.8rem;
  background: linear-gradient(135deg,#f8fbfa,#ffffff);
}

.admission-form input:invalid,
.admission-form select:invalid,
.admission-form textarea:invalid {
  border-color: #e74c3c;
  box-shadow: 0 0 0 1px rgba(231,76,60,0.12);
}

.form-grid--two {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,1fr);
  gap: 1.4rem 1.8rem;
}

.admission-form .btn--primary.btn--wide {
  display: block;
  margin: 1.2rem auto 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.8rem 2.4rem;
  box-shadow: 0 14px 30px rgba(7,95,72,0.35);
  background: var(--brand,#075f48);
  color: #fff;
  width: auto;
  text-align: center;
}

@media (min-width: 901px) {
  .header .menu {
    display: flex !important;
    align-items: center;
    gap: 10px !important;
  }
  .header .menu > li {
    margin: 0 !important;
  }
  .header .menu > li > a {
    padding: 5px 8px !important;
    font-size: 0.93rem !important;
  }
}

.menu > .lang-switch {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 14px;
}

.lang-switch__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.7);
  background: linear-gradient(135deg,#ffffff,#f4f7f6);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: #04372a;
  cursor: pointer;
  outline: none;
}

.lang-flag {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,.1);
  flex-shrink: 0;
}

.lang-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lang-flag--ua {
  background: linear-gradient(to bottom,#0057b7 50%,#ffd700 50%);
}

.lang-code,
.lang-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #04372a;
}

.lang-arrow {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #7b8782;
  transition: transform .2s ease;
}

.lang-switch__toggle:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
  transform: translateY(-.5px);
}

.lang-switch__list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  margin: 0;
  padding: 4px;
  list-style: none;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  display: none;
  z-index: 1000;
  white-space: nowrap;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1d;
}

.lang-option:hover {
  background: #f4f3f2;
}

.lang-option.is-active {
  background: #eef6f2;
  color: #075f48;
}

.menu > .lang-switch:hover .lang-switch__list,
.menu > .lang-switch:focus-within .lang-switch__list {
  display: block;
}

.menu > .lang-switch:hover .lang-arrow,
.menu > .lang-switch:focus-within .lang-arrow {
  transform: rotate(180deg);
}

.modal__dialog--wide {
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  max-width: 960px;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
  overflow: hidden;
  background: linear-gradient(135deg,#f8fbfa,#ffffff);
  border: 1px solid rgba(7,95,72,0.12);
}

.modal__title {
  margin: 0 0 .5rem;
  line-height: 1.3;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brand,#075f48);
  margin-bottom: 0.35rem;
}

.modal__subtitle {
  margin: 0 0 1rem;
  line-height: 1.5;
  color: var(--muted,#6e7a74);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.wizard {
  display: flex;
  gap: 1.5rem;
}

.wizard-sidebar {
  flex: 0 0 260px;
  padding: 0.8rem 1rem 1.3rem;
  border-radius: 18px;
  background: linear-gradient(145deg,#f6faf8,#ffffff);
  border: 1px solid rgba(232,236,234,0.95);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.wizard-caption {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted,#6e7a74);
  margin: 0 0 .4rem;
}

.wizard-progress {
  margin-bottom: 1rem;
}

.wizard-progress-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
}

.wizard-progress-step {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink,#0f1715);
}

.wizard-progress-percent {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand,#075f48);
}

.wizard-progress-bar {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg,#edf3f1,#f4f7f6);
  overflow: hidden;
}

.wizard-progress-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg,#075f48,#0b8b62);
  box-shadow: 0 0 12px rgba(7,95,72,.55);
  transition: width .25s ease-out;
}

.wizard-steps-list {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.wizard-steps-list li {
  font-size: 0.8rem;
  padding: 0.25rem 0.4rem;
  border-radius: 999px;
  color: var(--muted,#6e7a74);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.wizard-steps-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cbd5d0;
  flex-shrink: 0;
}

.wizard-steps-list li.is-active {
  background: #eef6f2;
  color: var(--brand,#075f48);
  font-weight: 600;
}

.wizard-steps-list li.is-active::before {
  background: var(--brand,#075f48);
}

.wizard-steps-list li.is-completed {
  color: var(--ink,#0f1715);
}

.wizard-steps-list li.is-completed::before {
  background: var(--brand,#075f48);
}

.wizard-main {
  flex: 1 1 auto;
}

.admission-form {
  padding-right: 12px;
  overflow-y: auto;
  max-height: calc(92vh - 80px);
  margin-top: 1.2rem;
  padding: 1.4rem 1.2rem 1.6rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 14px 40px rgba(0,0,0,.06);
  border: 1px solid rgba(232,236,234,0.9);
}

.wizard-step {
  display: none;
  animation: wizard-step-in .25s ease-out;
}

.wizard-step.is-active {
  display: block;
}

@keyframes wizard-step-in{
  from{
    opacity:0;
    transform:translateY(8px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

.wizard-step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink,#0f1715);
  margin: 0 0 .25rem;
}

.wizard-step-text {
  font-size: 0.9rem;
  color: var(--muted,#6e7a74);
  margin: 0 0 1rem;
}

.form-col {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink,#0f1715);
}

.required {
  color: #c0392b;
  margin-left: 2px;
}

.admission-form input[type="text"],
.admission-form input[type="email"],
.admission-form input[type="tel"],
.admission-form textarea,
.admission-form select {
  border-radius: 14px;
  border: 1px solid var(--line,#e8ecea);
  padding: 0.55rem 0.8rem;
  font-size: 0.95rem;
  outline: none;
  background: #fdfdfd;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.admission-form input[type="text"]:focus,
.admission-form input[type="email"]:focus,
.admission-form input[type="tel"]:focus,
.admission-form textarea:focus,
.admission-form select:focus {
  border-color: var(--brand,#075f48);
  box-shadow: 0 0 0 1px rgba(7,95,72,0.15);
  background: #ffffff;
}

.admission-form textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group--full {
  grid-column: 1 / -1;
  padding: 0.6rem 0.7rem;
  border-radius: 16px;
  background: linear-gradient(135deg,#f7faf8,#ffffff);
  border: 1px solid rgba(232,236,234,0.9);
}

.file-input {
  display: none;
}

.file-field {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.25rem;
}

.file-field__btn {
  border: none;
  border-radius: 999px;
  padding: 0.45rem 1.35rem;
  font-size: 0.86rem;
  font-weight: 600;
  background: var(--gold,#d4b97a);
  color: #04372a;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.file-field__btn:hover {
  background: #e2c27f;
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
  transform: translateY(-0.5px);
}

.file-field__btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}

.file-field__name {
  font-size: 0.85rem;
  color: var(--muted,#6e7a74);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 230px;
}

.wizard-nav {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.wizard-nav--final {
  justify-content: space-between;
}

.wizard-nav .btn {
  border-radius: 999px;
  font-size: 0.9rem;
  padding: 0.6rem 1.35rem;
}

.wizard-nav .btn.wizard-btn-prev {
  background: #f4f3f2;
  color: var(--ink,#0f1715);
  border: none;
}

.wizard-nav .btn.wizard-btn-prev:hover {
  background: #e7e5e3;
}

.btn--primary.btn--wide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.8rem 1.6rem;
  background: var(--brand,#075f48);
  color: #fff;
  box-shadow: 0 14px 30px rgba(7,95,72,0.35);
  border: none;
  cursor: pointer;
  max-width: 260px;
  width: 100%;
  margin: 1.2rem auto 0;
}

.btn--primary.btn--wide:hover {
  box-shadow: 0 18px 40px rgba(7,95,72,0.4);
}

.country-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

#f-country {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.country-picker {
  position: relative;
}

.country-picker__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  border-radius: 14px;
  border: 1px solid var(--line,#e8ecea);
  padding: 0.45rem 0.75rem;
  background: #fdfdfd;
  cursor: pointer;
  font-size: 0.95rem;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .08s ease;
}

.country-picker__btn:hover {
  border-color: var(--brand,#075f48);
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(7,95,72,0.12);
  transform: translateY(-0.5px);
}

.country-picker__left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.country-picker__flag {
  width: 20px;
  height: 15px;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.12);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.country-picker__flag.iti__flag {
  margin-right: 0;
}

.country-picker__name {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  color: var(--ink,#0f1715);
}

.country-picker__arrow {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #7b8782;
  flex-shrink: 0;
  transition: transform .18s ease;
}

.country-picker.open .country-picker__arrow {
  transform: rotate(180deg);
}

.country-picker__dropdown {
  position: absolute;
  left: 0;
  right: 0;
  margin-top: 4px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
  border: 1px solid rgba(232,236,234,1);
  z-index: 1200;
  display: none;
}

.country-picker.open .country-picker__dropdown {
  display: block;
}

.country-picker__search {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line,#e8ecea);
  padding: 0.45rem 0.7rem;
  font-size: 0.9rem;
  outline: none;
}

.country-picker__list {
  max-height: 220px;
  overflow: auto;
  margin: 0;
  padding: 4px 0;
  list-style: none;
}

.country-picker__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.7rem;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
}

.country-picker__item:hover {
  background: #f4f8f6;
}

.country-picker__item-name {
  color: var(--ink,#0f1715);
}

.country-picker__item-iso {
  color: var(--muted,#6e7a74);
  font-size: 0.78rem;
}

#f-city {
  text-transform: none;
}

.modal__dialog--success {
  border-radius: 20px;
  text-align: center;
}

.success-fireworks {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
}

.success-burst--two {
  animation-delay: .25s;
}

.success-burst--three {
  animation-delay: .5s;
}

.success-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--brand,#075f48);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  font-size: 2.2rem;
  color: var(--brand,#075f48);
  z-index: 1;
}

@keyframes success-burst{
  0%{
    transform:scale(0.6) rotate(0deg);
    opacity:0;
  }
  30%{
    transform:scale(1) rotate(25deg);
    opacity:0.95;
  }
  100%{
    transform:scale(1.25) rotate(60deg);
    opacity:0;
  }
}


.country-picker__flag.iti__ua {
  background-image: linear-gradient(to bottom, #0057b7 50%, #ffd700 50%) !important;
  background-size: 100% 100% !important;
  background-position: center !important;
}

.privacy-section {
  margin-top: 40px;
  padding: 56px 0 72px;
  background: #f8fbfa;
  border-top: 1px solid var(--line);
}

.privacy-section h2 {
  font-size: 1.6rem;
  margin-bottom: 18px;
  color: var(--ink);
}

.privacy-section p {
  max-width: 780px;
  line-height: 1.7;
  margin-bottom: 10px;
  color: var(--muted);
}

.privacy-section p:first-of-type {
  border-left: 3px solid var(--gold);
  padding-left: 14px;
}

.consent-box {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #f8fbfa;
  display: flex;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--muted);
}

.consent-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
}

.consent-label input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  accent-color: var(--brand);
}

.consent-box a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dotted rgba(7,95,72,0.45);
}

.consent-box a:hover {
  border-bottom-style: solid;
  border-bottom-color: var(--brand);
}

.modal__dialog--privacy {
  max-width: 760px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg,#f8fbfa,#ffffff);
  border: 1px solid rgba(7,95,72,0.12);
}

.privacy-modal-body {
  margin-top: 10px;
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--muted);
  max-height: min(60vh,480px);
  overflow-y: auto;
  padding-right: 4px;
}

.privacy-modal-body h3 {
  font-size: 1rem;
  margin: 16px 0 6px;
  color: var(--ink);
}

.wizard-step[data-step="7"] .wizard-step-text {
  margin-bottom: 10px;
}

.wizard-step[data-step="7"] .form-group {
  margin-bottom: 14px;
}

.success-burst {
  mix-blend-mode: screen;
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(212,185,122,0.8) 0,
    rgba(212,185,122,0.4) 35%,
    rgba(7,95,72,0.2) 60%,
    transparent 80%
  );
  opacity: 0.9;
  animation: success-burst 1.6s ease-out infinite;
}

.agree-label a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-group--agree {
  transition: box-shadow .18s ease, background-color .18s ease, transform .18s ease;
}

.form-group--agree.has-error {
  background: rgba(220, 53, 69, 0.03);
  box-shadow: 0 0 0 1px rgba(220, 53, 69, 0.7);
  border-radius: var(--radius);
}

@keyframes agree-shake{
  0%,100% { transform: translateX(0); }
  20%,60% { transform: translateX(-4px); }
  40%,80% { transform: translateX(4px); }
}

.form-group--agree.shake {
  animation: agree-shake .25s linear;
}

.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select,
.form-group--agree.has-error {
  border-color: #d9534f !important;
  box-shadow: 0 0 0 1px rgba(217,83,79,0.35);
}

.country-picker--error .country-picker__btn {
  border-color: #d9534f !important;
  box-shadow: 0 0 0 1px rgba(217,83,79,0.35);
}

@keyframes ui-shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  50% { transform: translateX(3px); }
  75% { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: ui-shake 0.25s linear;
}

.form-group--agree a {
  text-decoration: underline;
  font-weight: 600;
}

.hero--edu {
  background: radial-gradient(circle at 0% 0%, rgba(6,96,72,.10), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(6,96,72,.05), transparent 55%),
    #f4faf8;
  padding: 40px 0 24px;
}

.hero-edu-card {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 28px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(0,0,0,0.06);
  border: 1px solid rgba(6,109,82,.06);
}

.hero-edu-kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 700;
  color: #0b7b5a;
  margin-bottom: 8px;
}

.hero-edu-title {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.25;
  color: #062b20;
}

.hero-edu-lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #31413b;
}

.page-edu {
  background: #f8fbfa;
  padding: 16px 0 40px;
}

.edu-section {
  padding: 8px 0 8px;
}

.edu-step:target {
  background: #fff4f4;
  border: 1px solid rgba(220,60,60,0.35);
  box-shadow: 0 0 0 1px rgba(220,60,60,0.25),
    0 18px 45px rgba(220,60,60,0.18);
}

.edu-step::before {
  content: attr(data-edu-step);
  position: absolute;
  top: 14px;
  left: 22px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(6, 59, 44, 0.45);
  pointer-events: none;
  z-index: 1;
}

.edu-step.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.edu-step__media {
  flex: 0 0 38%;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  z-index: 1;
}

.edu-step__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(5,75,56,0.18), rgba(6,99,72,0.05));
  mix-blend-mode: multiply;
  pointer-events: none;
}

.edu-step__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform .6s ease;
}

.edu-step:hover .edu-step__media img {
  transform: scale(1.06);
}

.edu-step__body {
  flex: 1;
  position: relative;
  z-index: 1;
  margin-top: 14px;
}

.edu-step__title {
  font-size: 22px;
  margin: 0 0 12px;
  color: #062b20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.edu-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(8,112,80,0.08);
  color: #086f50;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
}

.edu-step__subtitle {
  font-size: 15px;
  margin: 18px 0 8px;
  color: #074231;
}

.edu-step p {
  font-size: 15px;
  line-height: 1.6;
  color: #32433c;
  margin: 0 0 6px;
}

.edu-list {
  margin: 0 0 4px 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.6;
  color: #32433c;
}

.edu-note {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f0f7f4;
  font-size: 14px;
  color: #205244;
}

.edu-step--image-right {
  flex-direction: row-reverse;
}

@media (max-width: 960px) {
  .hero-edu-title {
    font-size: 24px;
  }
  .edu-step {
    flex-direction: column;
    padding: 22px 18px;
    gap: 18px;
  }
  .edu-step--image-right {
    flex-direction: column;
  }
  .edu-step__media {
    flex: 0 0 auto;
    width: 100%;
    max-height: 260px;
  }
  .edu-step::before {
    top: 10px;
    left: 18px;
    font-size: 18px;
  }
}

@media (max-width: 640px) {
  .privacy-section {
    padding: 40px 0 52px;
  }
  .privacy-section h2 {
    font-size: 1.4rem;
  }
  .consent-box {
    padding: 12px 12px;
  }
  .hero--edu {
    padding: 28px 0 16px;
  }
  .hero-edu-card {
    padding: 20px 18px;
  }
  .page-edu {
    padding-top: 12px;
    padding-bottom: 28px;
  }
  .edu-step {
    margin-bottom: 32px;
  }
}

.edu-step__index {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(6, 59, 44, 0.45);
  margin-bottom: 6px;
}

.edu-step {
  position: relative;
  gap: 40px;
  margin-bottom: 48px;
  padding: 28px 26px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(0,0,0,0.06);
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
  scroll-margin-top: 140px;
  display: grid;
  grid-template-columns: 90px 38% 1fr;
  align-items: flex-start;
}

.edu-step__index-col {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(6, 59, 44, 0.55);
  padding-top: 10px;
}

.teachers-grid {
  grid-template-columns: repeat(3,1fr);
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px 0;
}

.teacher-card {
  padding: 28px 20px;
  flex: 0 0 260px;
  max-width: 260px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(7, 95, 72, 0.1);
  overflow: hidden;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  transition: .25s;
}

.teacher-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(7, 95, 72, 0.18);
}

.teacher-card-body {
  padding: 14px 16px;
}

.teacher-name {
  font-size: 15px;
  font-weight: 700;
  color: #0b4334;
  margin: 0 0 4px;
}

.teacher-role {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: .08em;
  color: #89959b;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.teacher-desc {
  font-size: 12px;
  color: #5b666c;
  margin: 0;
  max-height: 55px;
  overflow: hidden;
}

.teachers-controls {
  display: flex;
  justify-content: space-between;
  width: 100%;
  position: relative;
  margin-top: -10px;
}

.teachers-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .2s;
}

.teachers-arrow:hover {
  background: #e9f5ef;
  transform: translateY(-2px);
}

.teachers-arrow svg {
  width: 16px;
  height: 16px;
  stroke: #075f48;
}

.teachers-grid::-webkit-scrollbar {
  display: none;
}

body {
  font-family: Inter,system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial,sans-serif;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  padding-top: 72px;
}

.teacher-photo {
  margin: 0 auto 16px;
  height: 160px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: #f3f6f5;
  margin-bottom: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.teacher-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.news-premium {
  --brand: #075f48;
  --ink: #0d1b14;
  --muted: rgba(13,27,20,.70);
  --line: rgba(7,95,72,.14);
  --glass: rgba(255,255,255,.72);
  padding: 70px 0;
  position: relative;
  overflow: hidden;
  background: radial-gradient(900px 420px at 15% 15%, rgba(7,95,72,.10), transparent 62%),
    radial-gradient(780px 420px at 85% 25%, rgba(7,95,72,.08), transparent 60%),
    linear-gradient(180deg, rgba(7,95,72,.05), rgba(7,95,72,0) 60%);
}

.news-premium__shell {
  position: relative;
  border-radius: 26px;
  padding: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.75));
  border: 1px solid rgba(7,95,72,.12);
  box-shadow: 0 30px 70px rgba(0,0,0,.10),
    0 1px 0 rgba(255,255,255,.85) inset;
}

.news-premium__shell::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 28px;
  background: linear-gradient(
    135deg,
    rgba(7,95,72,.32),
    rgba(7,95,72,.10),
    rgba(255,255,255,0)
  );
  filter: blur(12px);
  opacity: .55;
  z-index: -1;
}

.news-premium__decor {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  opacity: .85;
  filter: blur(0px);
}

.news-premium__decor--a {
  width: 420px;
  height: 420px;
  left: -160px;
  top: -170px;
  background: radial-gradient(circle at 35% 35%,
      rgba(7,95,72,.18),
      rgba(7,95,72,.08) 45%,
      transparent 70%);
}

.news-premium__decor--b {
  width: 520px;
  height: 520px;
  right: -220px;
  bottom: -240px;
  background: radial-gradient(circle at 45% 45%,
      rgba(7,95,72,.14),
      rgba(7,95,72,.06) 48%,
      transparent 72%);
}

.news-premium__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.news-premium__title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.news-premium__subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14.7px;
  line-height: 1.6;
  max-width: 620px;
}

.news-premium__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-premium__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .02em;
  color: rgba(7,95,72,.92);
  background: rgba(7,95,72,.08);
  border: 1px solid rgba(7,95,72,.16);
  padding: 10px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.news-premium__badge::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(7,95,72,.85);
  box-shadow: 0 0 0 4px rgba(7,95,72,.12);
}

.news-premium__card {
  border-radius: 20px;
  padding: 14px;
  background: var(--glass);
  border: 1px solid rgba(7,95,72,.12);
  box-shadow: 0 18px 50px rgba(0,0,0,.08),
    0 1px 0 rgba(255,255,255,.80) inset;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateZ(0);
  transition: transform .25s ease, box-shadow .25s ease;
}

.news-premium__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 65px rgba(0,0,0,.10),
    0 1px 0 rgba(255,255,255,.85) inset;
}

.news-premium__card iframe {
  width: 100% !important;
  border: 0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}

@media (min-width: 1100px) {
  .news-premium__shell {
    padding: 28px 30px;
  }
}

.news-premium__card-inner {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.06);
  position: relative;
  min-height: 520px;
}

.news-premium__loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: rgba(7,95,72,.75);
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.82));
  pointer-events: none;
}

.news-section.news-premium {
  position: relative;
  padding: 64px 0 72px;
  overflow: visible;
}

.news-section.news-premium::before {
  content: "";
  position: absolute;
  inset: -120px 0 -140px 0;
  background: radial-gradient(700px 220px at 20% 15%, rgba(7,95,72,.12), transparent 60%),
    radial-gradient(700px 240px at 80% 20%, rgba(7,95,72,.10), transparent 62%),
    radial-gradient(900px 300px at 50% 85%, rgba(7,95,72,.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.news-premium .container {
  position: relative;
  z-index: 1;
}

.news-head {
  text-align: center;
  margin-bottom: 22px;
}

.news-title {
  text-align: center;
  font-size: 32px;
  color: #064b3a;
  margin-bottom: 40px;
  margin: 0;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.news-subtitle {
  margin: 10px auto 0;
  max-width: 760px;
  opacity: .8;
  line-height: 1.55;
}

.news-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.75));
  border-radius: 22px;
  pointer-events: none;
}

.news-loading__text {
  font-weight: 700;
  opacity: .85;
}

.news-loading__spinner {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 3px solid rgba(7,95,72,.18);
  border-top-color: rgba(7,95,72,.75);
  animation: newsSpin 1s linear infinite;
}

@keyframes newsSpin{
  to{ transform: rotate(360deg); }
}

@media (max-width: 820px) {
  .news-premium {
    padding: 56px 0;
  }
  .news-premium__shell {
    padding: 18px;
    border-radius: 22px;
  }
  .news-premium__head {
    flex-direction: column;
    align-items: flex-start;
  }
  .news-premium__badge {
    padding: 9px 11px;
  }
  .news-premium__card {
    padding: 10px;
    border-radius: 18px;
  }
  .news-premium__card-inner {
    border-radius: 14px;
  }
  .news-section.news-premium {
    padding: 52px 0 62px;
  }
  .news-shell__inner {
    min-height: 520px;
    padding: 14px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.9rem;
  }
  .news-premium__subtitle {
    font-size: 14px;
  }
  .news-title {
    font-size: 20px;
  }
  .news-subtitle {
    font-size: 14px;
  }
  .news-shell {
    border-radius: 18px;
  }
  .news-shell__inner {
    min-height: 500px;
  }
}

.news-shell {
  position: relative;
  border-radius: 28px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.85));
  border: 1px solid rgba(7,95,72,.14);
  box-shadow: 0 30px 70px rgba(11,95,74,.10), 0 1px 0 rgba(255,255,255,.9) inset;
}

.news-shell::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(201,162,77,.35), rgba(7,95,72,.12) 45%, rgba(255,255,255,0));
  filter: blur(14px);
  opacity: .55;
  z-index: -1;
}

.news-shell__inner {
  position: relative;
  padding: 16px;
  min-height: 560px;
  background: rgba(255,255,255,.85);
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.05);
  overflow: hidden;
}

.news-premium__decor-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.news-badge-row {
  display: flex;
  justify-content: center;
  margin: 0 0 28px;
}

.news-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #075f48;
  background: rgba(7,95,72,.08);
  border: 1px solid rgba(7,95,72,.16);
  padding: 9px 16px;
  border-radius: 999px;
}

.news-live-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #0b5f4a;
  animation: newsLivePulse 1.8s ease-out infinite;
}

@keyframes newsLivePulse {
  0%   { box-shadow: 0 0 0 0 rgba(11,95,74,.45); }
  70%  { box-shadow: 0 0 0 8px rgba(11,95,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(11,95,74,0); }
}

@media (prefers-reduced-motion: reduce) {
  .news-live-badge__dot { animation: none; }
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 10px;
}

.auth-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: all .2s ease;
}

.auth-btn--login {
  color: #075f48;
  background: rgba(7,95,72,.08);
  border: 1px solid rgba(7,95,72,.18);
}

.auth-btn--login:hover {
  background: rgba(7,95,72,.14);
}

.auth-btn--register {
  color: #fff;
  background: linear-gradient(135deg, #0a7a5a, #075f48);
  border: 1px solid rgba(7,95,72,.6);
  box-shadow: 0 6px 16px rgba(7,95,72,.25);
}

.auth-btn--register:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(7,95,72,.35);
}

@media (max-width: 900px) {
  .home-program-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-program-main {
    grid-template-columns: 1fr;
  }
  .menu > .lang-switch {
    margin-left: 0;
    margin-top: 8px;
  }
  .lang-switch__list {
    position: static;
    width: 100%;
    box-shadow: none;
    margin-top: 4px;
  }
  .lang-switch__toggle {
    width: 100%;
    justify-content: flex-start;
  }
  .auth-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin: 12px 0 6px;
  }
  .auth-btn {
    text-align: center;
    padding: 10px 16px;
    font-size: 14px;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  backdrop-filter: blur(10px);
  background: var(--brand);
  border-bottom: 1px solid rgba(255,255,255,.18);
}

.header-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 10px 0;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
  color: rgba(255,255,255,.92);
}

.header-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.header-brand-text b {
  display: block;
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1.05;
  font-size: 14px;
  color: rgba(255,255,255,.92);
}

.header-brand-text span {
  display: block;
  font-size: 12px;
  line-height: 1.15;
  color: rgba(255,255,255,.92);
}

.header-nav {
  min-width: 0;
}

.header-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: nowrap;
}

.header-menu a {
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 6px;
  border-radius: 10px;
  transition: background .15s ease, color .15s ease;
  color: rgba(255,255,255,.92);
}

.header-menu a:hover {
  color: #fff;
  background: rgba(255,255,255,.14);
}

.header-menu a.is-active {
  color: #075f48;
  background: rgba(7,95,72,.10);
}

.header-right {
  display: grid;
  justify-items: end;
  gap: 6px;
  white-space: nowrap;
}

.header-contacts {
  display: grid;
  gap: 2px;
  text-align: right;
}

.header-contacts a {
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  color: rgba(0,0,0,.70);
}

.header-contacts a:hover {
  color: #075f48;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.header-auth {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: rgba(0,0,0,.72);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 12px;
  transition: background .15s ease, color .15s ease;
}

.header-auth:hover {
  background: rgba(7,95,72,.08);
  color: #075f48;
}

.auth-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  color: rgba(0,0,0,.55);
}

.auth-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.auth-sep {
  opacity: .55;
}

.lang-dd {
  position: relative;
}

.lang-dd__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.95);
  cursor: default;
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
}

.lang-dd__flag {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
  display: grid;
  place-items: center;
  background: #fff;
}

.lang-dd__flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lang-dd__code {
  font-weight: 900;
  letter-spacing: .06em;
  font-size: 12px;
  color: #075f48;
}

.lang-dd__chev {
  width: 16px;
  height: 16px;
  color: rgba(0,0,0,.55);
}

.lang-dd__chev svg {
  width: 16px;
  height: 16px;
  display: block;
}

.lang-dd__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 160px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.98);
  box-shadow: 0 18px 46px rgba(0,0,0,.14);
  display: none;
}

.lang-dd.is-open .lang-dd__menu {
  display: block;
}

.lang-dd__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  text-decoration: none;
  color: rgba(0,0,0,.72);
  font-weight: 800;
}

.lang-dd__item:hover {
  background: rgba(7,95,72,.08);
  color: #075f48;
}

.lang-dd__item.is-active {
  background: rgba(7,95,72,.10);
  color: #075f48;
}

.header-burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.95);
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
  cursor: default;
}

.header-burger span {
  display: block;
  height: 2px;
  margin: 6px 10px;
  background: rgba(0,0,0,.62);
  border-radius: 3px;
}

@media (max-width: 980px) {
  .header-wrap {
    grid-template-columns: auto auto;
    grid-template-areas: "brand right"
        "nav nav";
    row-gap: 10px;
  }
  .header-brand {
    grid-area: brand;
    color: rgba(255,255,255,.92);
  }
  .header-right {
    grid-area: right;
  }
  .header-nav {
    grid-area: nav;
  }
  .header-menu {
    justify-content: flex-start;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .header-menu::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 700px) {
  .header-contacts {
    display: none;
  }
  .header-burger {
    display: inline-block;
  }
  .header-menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    background: rgba(255,255,255,.98);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 16px;
    padding: 10px;
    margin-top: 10px;
    box-shadow: 0 18px 46px rgba(0,0,0,.14);
  }
  .header-menu.is-open {
    display: flex;
  }
  .header-menu a {
    width: 100%;
    color: rgba(255,255,255,.92);
  }
}
/* =========================
   HEADER (двухрядный, зелёный)
   ========================= */
:root{
  --header-top-h: 34px;
  --header-bottom-h: 72px;
  --header-h: calc(var(--header-top-h) + var(--header-bottom-h));
}

/* Перекрываем старые отступы под хедер */
body{ padding-top: var(--header-h) !important; }

/* Обёртка */
.header-wrapper{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1100;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,.10);
}

/* Верхняя строка */
.top-header{
  height: var(--header-top-h);
  display: flex;
  align-items: center;
  background: rgba(0,0,0,.12);
}
.container.top-line{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.top-left{
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.top-right{
  display: flex;
  align-items: center;
  gap: 12px;
}
.top-phone,
.top-email,
.top-auth{
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  line-height: 1;
  opacity: .95;
}
.top-phone:hover,
.top-email:hover,
.top-auth:hover{ opacity: 1; text-decoration: underline; }
.top-auth{ display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.auth-icon{ display: inline-flex; width: 18px; height: 18px; }
.auth-icon svg{ width: 18px; height: 18px; }

/* Язык */
.lang-dd{ position: relative; }
.lang-dd__btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
}
.lang-dd__btn:hover{ background: rgba(255,255,255,.18); }
.lang-dd__flag img{ width: 18px; height: 12px; display: block; }
.lang-dd__chev svg{ width: 16px; height: 16px; }
.lang-dd__menu{
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 120px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(0,0,0,.16);
  padding: 8px;
  display: none;
}
.lang-dd.is-open .lang-dd__menu{ display: block; }
.lang-dd__item{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: #111;
}
.lang-dd__item:hover{ background: rgba(0,0,0,.06); }
.lang-dd__item.is-active{ background: rgba(0,0,0,.08); font-weight: 700; }

/* Нижняя строка */
.bottom-header{
  height: var(--header-bottom-h);
  display: flex;
  align-items: center;
}
.container.bottom-line{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  min-width: 240px;
}
.logo.logo--lg{
  width: 50px;
  height: 50px;
  object-fit: contain;
}
.brand-title{ display: flex; flex-direction: column; line-height: 1.05; }
.brand-title b{
  font-size: 14px;
  letter-spacing: .10em;
}
.brand-title span{
  font-size: 12px;
  opacity: .92;
  margin-top: 2px;
}

/* Меню */
.nav-right{
  display: flex;
  align-items: center;
  gap: 14px;
}
.menu{
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu a{
  display: inline-flex;
  align-items: center;
  padding: 10px 10px;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .01em;
  opacity: .96;
}
.menu a:hover{ background: rgba(255,255,255,.14); opacity: 1; }
.menu a.active{ background: rgba(255,255,255,.20); opacity: 1; }

/* Бургер */
.burger{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  display: none;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.burger span{
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
}

/* Мобайл-меню */
@media (max-width: 980px){
 @media (max-width: 980px){

  .burger{
    display: flex;
  }

  .menu{
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;

    background: #075f48;

    display: flex;
    flex-direction: column;
    padding: 100px 25px 40px;
    gap: 18px;

    transition: right .3s ease;
    z-index: 10000;
  }

  .menu.is-open{
    right: 0;
  }

}
  .menu a{ padding: 12px 12px; }
  .brand{ min-width: 0; }
  .top-email{ display: none; } /* чтобы не ломало строку на мобиле */
}
/* ===========================
   LANG SWITCH (as screenshot)
   =========================== */

.lang-switch{
  position: relative;
  list-style: none;
  z-index: 20000; /* поверх меню */
}

/* Кнопка */
.lang-switch__toggle{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.12);
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.lang-switch__toggle:hover{
  background: rgba(255,255,255,.18);
}

.lang-switch__toggle:active{
  transform: translateY(1px);
}

/* Круглый флаг */
.lang-flag{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.25);
  flex: 0 0 22px;
}

.lang-flag img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Код языка */
.lang-code{
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .4px;
  line-height: 1;
}

/* Стрелка */
.lang-arrow{
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid rgba(255,255,255,.9);
  margin-left: 2px;
  transition: transform .18s ease;
}

/* Выпадающий список */
.lang-switch__list{
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  padding: 8px;
  margin: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
  border: 1px solid rgba(0,0,0,.06);
  display: none;
}

/* показываем меню */
.lang-switch.is-open .lang-switch__list{
  display: block;
}

.lang-switch.is-open .lang-arrow{
  transform: rotate(180deg);
}

/* элементы списка */
.lang-switch__list li{
  list-style: none;
  margin: 0;
  padding: 0;
}

.lang-option{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px;
  border-radius: 10px;
  text-decoration: none;
  color: #0b2b22;
  font-weight: 700;
  font-size: 12px;
}

.lang-option:hover{
  background: rgba(7,95,72,.08);
}

.lang-option.is-active{
  background: rgba(7,95,72,.12);
}

/* ВАЖНО: чтобы dropdown не резался хедером */
header, .header-wrapper, .top-header, .bottom-header, .bottom-line, nav{
  overflow: visible !important;
}
/* ===== FIX: FLAGS VISIBILITY (LANG DROPDOWN) ===== */
.lang-dd__flag{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  background: rgba(255,255,255,.9);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.10);
}

.lang-dd__flag img{
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;

  /* на случай если где-то задано скрытие */
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  transform: none !important;
}

/* чтобы в списке тоже были одинаковые кружки */
.lang-dd__item .lang-dd__flag{
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

/* меню языков всегда поверх меню сайта */
.lang-dd{
  position: relative;
  z-index: 9999;
}
.lang-dd__menu{
  position: absolute;
  z-index: 10000;
}
.bottom-header,
.nav-right,
.menu{
  position: relative;
  z-index: 1;
}
/* ===== LANGUAGE SWITCH — WHITE PILL (AS IN DESIGN) ===== */
.lang-dd__btn{
  background: #ffffff !important;
  color: #0b5f4a !important;          /* зелёный под цвет хедера */
  border-radius: 999px !important;
  padding: 6px 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.12) !important;
  cursor: pointer;
}

.lang-dd__btn:hover{
  background: #f5f7f6 !important;
}

/* стрелка */
.lang-dd__chev{
  width: 14px;
  height: 14px;
  opacity: .7;
}

/* код языка (UA) */
.lang-dd__code{
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
}

/* флаг в кнопке */
.lang-dd__btn .lang-dd__flag{
  width: 18px !important;
  height: 18px !important;
  border-radius: 999px !important;
  overflow: hidden !important;
}

/* ===== DROPDOWN (white, above menu) ===== */
.lang-dd__menu{
  background: #ffffff !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.18) !important;
  padding: 6px !important;
  margin-top: 8px !important;
  z-index: 9999 !important;
}

/* пункт языка */
.lang-dd__item{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #1b1b1b;
  text-decoration: none;
}

.lang-dd__item:hover{
  background: #f0f3f2;
}

/* активный */
.lang-dd__item.is-active{
  background: #e7f3ee;
  font-weight: 600;
}
/* ===== BRAND: LOGO + TITLE (BIGGER) ===== */
.brand{
  display: flex;
  align-items: center;
  gap: 14px; /* расстояние между логотипом и текстом */
}

/* сам логотип */
.brand .logo{
  width: 64px;        /* было ~40–48 */
  height: auto;
}

/* контейнер текста */
.brand-title{
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

/* ISLAMIC UNIVERSITY */
.brand-title b{
  font-size: 20px;    /* основной крупный текст */
  font-weight: 800;
  letter-spacing: .3px;
  color: #ffffff;
}

/* of Ukraine */
.brand-title span{
  font-size: 14px;
  font-weight: 500;
  opacity: .9;
  color: #e6f2ed;
}
.brand .logo{ width: 120px; }

.brand-title b{ font-size: 50px; }

.brand-title span{ font-size: 15px; }
/* ===== TOP LINE красивее ===== */
.header--green .top-header--green{
  background:#0b5f4a;
  border-bottom:1px solid rgba(255,255,255,.14);
}

.top-line{
  min-height:52px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.top-left{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.top-chip{
  display:inline-flex;
  align-items:center;
  height:30px;
  padding:0 10px;
  border-radius:999px;
  text-decoration:none;
  color:#fff;
  font-size:13px;
  font-weight:600;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.14);
}
.top-chip:hover{ background:rgba(255,255,255,.14); }

.top-right{
  display:flex;
  align-items:center;
  gap:10px;
  position:relative;
  z-index:9999;
}

/* ===== AUTH кнопки ===== */
.auth-actions{
  display:flex;
  align-items:center;
  gap:8px;
}

.top-auth-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:32px;
  padding:0 12px;
  border-radius:999px;
  text-decoration:none;
  font-size:13px;
  font-weight:700;
  white-space:nowrap;
  border:1px solid transparent;
}

.top-auth-btn--ghost{
  color:#fff;
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.18);
}
.top-auth-btn--ghost:hover{ background:rgba(255,255,255,.14); }

.top-auth-btn--solid{
  color:#0b3f33;
  background:#ffffff;
  border-color:rgba(255,255,255,.30);
  box-shadow:0 10px 22px rgba(0,0,0,.14);
}
.top-auth-btn--solid:hover{ filter:brightness(.98); }

/* ===== LANGUAGE pill (как на картинке) ===== */
.lang-dd{ position:relative; z-index:10000; }

.lang-dd__btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  height:32px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.28);
  background:#ffffff;
  cursor:pointer;
  box-shadow:0 10px 22px rgba(0,0,0,.14);
}

.lang-dd__flag{
  width:18px; height:18px;
  border-radius:50%;
overflow-x:auto;

  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.08);
}
.lang-dd__flag img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.lang-dd__code{
  font-weight:900;
  font-size:12px;
  letter-spacing:.06em;
  color:#0b3f33;
}

.lang-dd__chev{
  width:16px; height:16px;
  color:rgba(0,0,0,.55);
}
.lang-dd__chev svg{ width:16px; height:16px; display:block; }

/* ===== dropdown по ширине контента (без пустоты) ===== */
.lang-dd__menu{
  position:absolute;
  right:0;
  top:calc(100% + 10px);

  width:fit-content;
  min-width:140px;

  padding:8px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.10);
  background:#ffffff;
  box-shadow:0 18px 46px rgba(0,0,0,.18);
  display:none;

  z-index:20000; /* поверх меню */
}

.lang-dd.is-open .lang-dd__menu{ display:block; }

.lang-dd__item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 10px;
  border-radius:12px;
  text-decoration:none;
  color:#0f172a;
  font-weight:700;
  white-space:nowrap;
}

.lang-dd__item:hover{ background:#f3f4f6; }
.lang-dd__item.is-active{ background:#eef2ff; }

.lang-dd__label{ font-size:13px; }
.lang-dd__meta{
  margin-left:auto;
  font-size:12px;
  font-weight:900;
  opacity:.7;
}

/* Чтобы dropdown не прятался за нижним меню */
.bottom-header, .bottom-line, .nav-right, #main-menu{ overflow:visible !important; }
/* =========================
   FORCE FIX: TOP LINE PADDING (100% сработает)
   Вставить в самый конец style.css
========================= */

/* верхняя полоса */
#site-header.header-wrapper.header--green .top-header.top-header--green,
#site-header.header-wrapper.header--green #top-header.top-header--green,
#site-header.header-wrapper.header--green .top-header.top-header--green#top-header{
  padding: 12px 0 !important;               /* воздух сверху/снизу */
  background: #0b5f4a !important;
  border-bottom: 1px solid rgba(255,255,255,.14) !important;
}

/* контейнер строки */
#site-header.header-wrapper.header--green .top-line{
  min-height: 44px !important;              /* чтобы “дышало” */
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
}

/* левый блок (телефон+почта) */
#site-header.header-wrapper.header--green .top-left{
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

/* ссылки слева — чтобы не “липли” */
#site-header.header-wrapper.header--green .top-left a{
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.08) !important;
  color: #ffffff !important;
}

/* правый блок */
#site-header.header-wrapper.header--green .top-right{
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

/* кнопки вход/регистрация */
#site-header.header-wrapper.header--green .top-auth-btn,
#site-header.header-wrapper.header--green .btn-auth{
  height: 34px !important;
  padding: 0 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
}

/* кнопка языка */
#site-header.header-wrapper.header--green .lang-dd__btn{
  height: 34px !important;
  padding: 0 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
}
/* ======================================
   FORCE TOP HEADER SPACING (FINAL FIX)
====================================== */

/* снимаем все ограничения высоты */
#site-header .top-header,
#site-header .top-header--green,
#top-header{
  height: auto !important;
  min-height: unset !important;
}

/* даём реальный воздух сверху и снизу */
#site-header .top-header,
#site-header .top-header--green{
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}

/* сама строка */
#site-header .top-line{
  min-height: 48px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

/* левый блок (телефон + почта) */
#site-header .top-left a{
  padding: 6px 12px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.10) !important;
  line-height: 1 !important;
}

/* правый блок */
#site-header .top-right{
  gap: 12px !important;
}

/* кнопки вход / регистрация */
#site-header .top-auth-btn,
#site-header .btn-auth{
  height: 34px !important;
  padding: 0 14px !important;
}

/* язык */
#site-header .lang-dd__btn{
  height: 34px !important;
  padding: 0 12px !important;
}
/* ===== LANGUAGE DROPDOWN: COMPACT SPACING ===== */

/* контейнер меню */
.lang-dd__menu{
  padding: 6px !important;        /* было больше */
  border-radius: 12px !important;
}

/* каждый пункт */
.lang-dd__item{
  padding: 6px 10px !important;   /* уменьшили вертикаль */
  gap: 8px !important;
}

/* расстояние между пунктами */
.lang-dd__item + .lang-dd__item{
  margin-top: 2px !important;     /* вместо большого отступа */
}

/* флаг */
.lang-dd__flag{
  width: 18px !important;
  height: 18px !important;
}

/* текст */
.lang-dd__meta,
.lang-dd__label{
  font-size: 13px !important;
  line-height: 1.2 !important;
}
/* ===== LANGUAGE DROPDOWN — ULTRA COMPACT ===== */

.lang-dd__menu{
  padding: 4px !important;
  border-radius: 10px !important;
  min-width: 110px !important;   /* убираем лишнюю ширину */
}

/* пункт языка */
.lang-dd__item{
  padding: 4px 8px !important;   /* СИЛЬНО уменьшаем */
  gap: 6px !important;
  border-radius: 8px !important;
  line-height: 1.1 !important;
}

/* расстояние между пунктами */
.lang-dd__item + .lang-dd__item{
  margin-top: 1px !important;
}

/* флаг — компактнее */
.lang-dd__flag{
  width: 20px !important;
  height:20px !important;
}

/* текст */
.lang-dd__meta,
.lang-dd__label{
  font-size: 12.5px !important;
  line-height: 1.1 !important;
}

/* hover — аккуратный */
.lang-dd__item:hover{
  background: rgba(8, 90, 60, 0.08) !important;
}
.auth-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.btn-auth{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:36px;
  padding:0 16px;
  border-radius:999px;
  font-size:14px;
  font-weight:600;
  text-decoration:none;
  transition:all .2s ease;
  white-space:nowrap;
}

.btn-auth--ghost{
  color:#fff;
  border:1px solid rgba(255,255,255,.4);
}

.btn-auth--ghost:hover{
  background:rgba(255,255,255,.12);
}

.btn-auth--solid{
  background:#ffffff;
  color:#0b5f4a;
}

.btn-auth--solid:hover{
  background:#e9f3ef;
}

.auth-user{
  color:#dff3ec;
  font-size:14px;
}
/* === HERO ниже, чтобы был виден верхний ромб === */
#hero{
  padding-top: 60px;  /* попробуй 50–90px */
}

/* на больших экранах можно чуть больше */
@media (min-width: 1100px){
  #hero{ padding-top: 74px; }
}

/* на телефонах меньше, чтобы не было огромного пустого места */
@media (max-width: 700px){
  #hero{ padding-top: 40px; }
}
/* =========================
   TOP CONTACTS — PREMIUM
   (phone + email pills + svg icons + copy hint)
========================= */

.top-header .top-left{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.top-header .top-left a{
  display:inline-flex;
  align-items:center;
  gap:8px;

  padding:7px 12px;
  border-radius:999px;

  font-size:13.5px;
  font-weight:600;
  letter-spacing:.01em;

  color:#eaf7f1;
  text-decoration:none;

  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 10px 22px rgba(0,0,0,.10);
  backdrop-filter: blur(10px);

  transition:transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  position:relative;
}

/* разные акценты */
.top-header .top-phone{
  background:linear-gradient(135deg, rgba(212,185,122,.22), rgba(255,255,255,.08));
  border-color:rgba(212,185,122,.28);
}

.top-header .top-email{
  background:linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.08));
  border-color:rgba(255,255,255,.16);
}

/* hover */
.top-header .top-left a:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.16);
  border-color:rgba(255,255,255,.22);
  box-shadow:0 14px 30px rgba(0,0,0,.16);
}

/* иконки SVG */
.top-header .top-left .top-ic{
  width:16px;
  height:16px;
  flex:0 0 16px;
  opacity:.95;
  color:#eaf7f1;
}

.top-header .top-phone .top-ic{ color: rgba(212,185,122, .95); }
.top-header .top-email .top-ic{ color: rgba(234,247,241, .95); }

/* текст */
.top-header .top-left .top-text{
  line-height:1;
  white-space:nowrap;
}

/* subtle divider точка между pills (если нужно) */
/* .top-header .top-left{ gap:10px; } */

/* Tooltip (копирование email) */
.top-header .top-email[data-copied="1"]::after{
  content:"Скопировано";
  position:absolute;
  top:calc(100% + 8px);
  left:12px;
  padding:6px 10px;
  border-radius:10px;

  font-size:12px;
  font-weight:700;
  color:#0f1715;

  background:rgba(255,255,255,.94);
  border:1px solid rgba(0,0,0,.10);
  box-shadow:0 14px 30px rgba(0,0,0,.14);

  white-space:nowrap;
  pointer-events:none;
}

/* мобильная компактность */
@media (max-width:720px){
  .top-header .top-left{
    gap:8px;
  }
  .top-header .top-left a{
    padding:6px 10px;
    font-size:13px;
    box-shadow:0 8px 18px rgba(0,0,0,.10);
  }
}
/* =========================
   TOP CONTACTS — DIVIDER
   Премиальный разделитель
========================= */

.top-header .top-left{
  position: relative;
}

/* вертикальный разделитель */
.top-header .top-left::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%, -50%);

  width:1px;
  height:22px;

  background:linear-gradient(
    to bottom,
    transparent,
    rgba(255,255,255,.55),
    transparent
  );

  pointer-events:none;
}

/* если элементы переносятся (мобилка) — убираем */
@media (max-width:720px){
  .top-header .top-left::after{
    display:none;
  }
}
/* =========================
   TOP LINE: телефон + почта (100% рабочий фикс)
========================= */

.top-header .top-line{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

/* левый блок */
.top-header .top-left{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}

/* ссылки */
.top-header .top-left a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:700;
  font-size:13px;
  color:rgba(255,255,255,.92);
  text-decoration:none;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  transition:background .18s ease, transform .18s ease;
}

.top-header .top-left a:hover{
  background:rgba(255,255,255,.14);
  transform:translateY(-1px);
}

/* РАЗДЕЛИТЕЛЬ МЕЖДУ ТЕЛЕФОНОМ И ПОЧТОЙ */
.top-header .top-left a + a{
  position:relative;
  margin-left:10px; /* маленький воздух */
}

.top-header .top-left a + a::before{
  content:"";
  position:absolute;
  left:-12px;
  top:50%;
  transform:translateY(-50%);
  width:1px;
  height:18px;
  background:linear-gradient(to bottom, transparent, rgba(255,255,255,.65), transparent);
  opacity:.9;
}

/* мобильная: убираем разделитель, если переносится */
@media (max-width:720px){
  .top-header .top-left{
    gap:10px;
  }
  .top-header .top-left a + a{
    margin-left:0;
  }
  .top-header .top-left a + a::before{
    display:none;
  }
}
/* =========================================================
   FIX: ХЭДЕР НА ВНУТРЕННИХ СТРАНИЦАХ = КАК НА ГЛАВНОЙ
   ========================================================= */

/* убираем лишнюю высоту */
#site-header {
  margin: 0;
  padding: 0;
}

/* одинаковая высота top-line */
#site-header .top-header {
  padding: 6px 0 !important;
}

/* одинаковая высота bottom-line */
#site-header .bottom-header {
  padding: 10px 0 !important;
}

/* фикс контейнера */
#site-header .bottom-line {
  align-items: center;
  min-height: unset !important;
}

/* логотип — КАК НА ГЛАВНОЙ */
#site-header .logo--lg {
  width: 44px !important;
  height: 44px !important;
}

/* текст бренда — КАК НА ГЛАВНОЙ */
#site-header .brand-title b,
#site-header .brand-title strong {
  font-size: 15px !important;
  line-height: 1.1 !important;
}

#site-header .brand-title span {
  font-size: 12px !important;
  margin-top: 2px !important;
}

/* меню — без “растягивания” */
#site-header .menu a {
  padding: 6px 12px !important;
  font-size: 13px !important;
}

/* УБИРАЕМ любые page-specific переопределения */
.page-hero,
.page-abitur {
  margin-top: 0 !important;
}
/* === FIX: рівний заголовок зліва (як у інших секціях) === */
.teachers-head--premium{
  display:grid;
  grid-template-columns: 1fr auto; /* ліва колонка + права колонка */
  align-items:start;
  gap:18px;
  margin-bottom:18px;
}

.teachers-head__left{
  text-align:left;
  max-width: 760px;   /* як у інших блоків */
}

.teachers-head__right{
  justify-self:end;   /* права частина чітко вправо */
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

/* мобільний */
@media (max-width: 980px){
  .teachers-head--premium{
    grid-template-columns: 1fr;
  }
  .teachers-head__right{
    justify-self:start;
  }
}
/* === FIX: убрать белую плашку/фон вокруг блока преподавателей === */
.teachers-shell{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  padding: 0 !important;          /* чтобы не было "рамки" */
}

/* если где-то фон сидит на гриде/обертке */
.teachers-grid--premium,
.teachers-grid{
  background: transparent !important;
}
/* === Teachers: reveal animation (stagger) === */
.teacher-card--premium{
  opacity: 0;
  transform: translateY(14px) scale(.985);
  transition:
    opacity .55s ease,
    transform .55s ease,
    box-shadow .2s ease,
    border-color .2s ease;
  will-change: transform, opacity;
}

.teacher-card--premium.is-in{
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* отключение анимаций для тех, у кого reduced motion */
@media (prefers-reduced-motion: reduce){
  .teacher-card--premium{
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
/* ====== TEACHERS: выравнивание текста (слева направо, без центра) ====== */
.teachers-premium,
.teachers-premium *{
  text-align: left;
}

/* на всякий случай: убираем центрирование там, где оно чаще всего задано */
.teacher-card--premium,
.teacher-card-body--premium,
.teacher-top,
.teacher-role,
.teacher-desc,
.teacher-tags,
.teacher-actions{
  text-align: left;
  justify-content: flex-start;
}

/* бейдж справа оставляем справа (красиво и логично) */
.teacher-top{
  display:flex;
  align-items:flex-start;
  justify-content: space-between; /* имя слева, бейдж справа */
}

/* кнопки тоже слева */
.teacher-actions{
  justify-content:flex-start;
}

/* если где-то в глобальном CSS стоит center у заголовков */
.teachers-title,
.teachers-subtitle,
.teacher-name{
  text-align:left;
}
/* =====================================
   TEACHERS — АБСОЛЮТНО РОВНЫЙ НИЗ
   кнопки Профіль / Курси / Записатися
   ===================================== */

/* карточка */
.teacher-card--premium{
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 560px;
}

/* тело */
.teacher-card-body--premium{
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* описание тянется */
.teacher-desc{
  flex: 1;
}

/* зона тегов — фиксированная */
.teacher-tags{
  min-height: 64px;
  max-height: 64px;
  overflow: hidden;
  margin-bottom: 12px;
}

/* 🔥 КЛЮЧЕВОЕ МЕСТО
   фиксированная "полка" под кнопки */
.teacher-actions{
  height: 44px;              /* ← ОДИНАКОВО ВЕЗДЕ */
  display: flex;
     /* вертикальное выравнивание */
  gap: 10px;
  margin-top: auto;          /* прижимаем вниз */
}

/* кнопки НЕ влияют на высоту */
.teacher-actions .btn{
  height: 36px;
  line-height: 36px;
  padding-top: 0;
  padding-bottom: 0;
}

/* на всякий случай — убираем центр */
.teacher-actions,
.teacher-card-body--premium{
  text-align: left;
}
/* =========================================
   TEACHERS — 100% РОВНЫЕ КАРТОЧКИ И КНОПКИ
   ========================================= */

/* карусель: растягиваем элементы */
.teachers-grid--premium{
  align-items: stretch !important;
}

/* карточка: фикс высоты + относительное позиционирование */
.teacher-card--premium{
  height: 560px !important;     /* можно 540/580 под дизайн */
  position: relative !important;
  display: block !important;    /* убираем возможные flex-эффекты сверху */
}

/* фото фикс */
.teacher-photo--premium{
  height: 200px !important;
}

/* тело: делаем запас снизу под кнопки */
.teacher-card-body--premium{
  padding: 18px !important;
  padding-bottom: 84px !important;  /* место под кнопки */
}

/* описание: ограничиваем, чтобы не ломало низ */
.teacher-desc{
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 4 !important; /* 3-5 строк */
  overflow: hidden !important;
}

/* теги: фикс зона (2 ряда максимум) */
.teacher-tags{
  max-height: 64px !important;
  overflow: hidden !important;
  margin-bottom: 12px !important;
}

/* ✅ КНОПКИ: всегда на одном уровне между карточками */
.teacher-actions{
  position: absolute !important;
  left: 18px !important;
  right: 18px !important;
  bottom: 18px !important;

  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  justify-content: flex-start !important;
}

/* кнопки одинаковой высоты */
.teacher-actions .btn{
  height: 36px !important;
  line-height: 36px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
/* =========================================
   TEACHERS — УВЕЛИЧЕННАЯ ВЫСОТА КАРТОЧЕК
   ========================================= */

/* увеличиваем общую высоту карточки */
.teacher-card--premium{
  height: 640px !important;   /* было 560 — теперь помещается ВСЁ */
}

/* если нужно ещё воздуха — можно 660/680 */
@media (min-width: 1200px){
  .teacher-card--premium{
    height: 660px !important;
  }
}

/* фото можно оставить как есть, либо чуть увеличить */
.teacher-photo--premium{
  height: 220px !important;   /* было 200 */
}

/* тело карточки — чуть больше воздуха */
.teacher-card-body--premium{
  padding-bottom: 96px !important; /* запас под кнопки */
}

/* описание можно показывать больше строк */
.teacher-desc{
  -webkit-line-clamp: 5 !important; /* было 4 */
}

/* style.css тянет teachers в центр — исправляем */
#teachers.teachers-section{ text-align: left !important; }

/* карточки — строго слева */
#teachers .teacher-card-body--premium,
#teachers .teacher-name,
#teachers .teacher-role,
#teachers .teacher-desc,
#teachers .teacher-tags{
  text-align: left !important;
}

/* одинаковая высота карточек + кнопки внизу */
#teachers .teacher-card--premium{
  display:flex;
  flex-direction:column;
  height: 560px; /* если мало — поставь 580/600 */
}

#teachers .teacher-photo--premium{ flex:0 0 190px; }
#teachers .teacher-card-body--premium{
  flex:1;
  display:flex;
  flex-direction:column;
}

#teachers .teacher-desc{ min-height: 80px; }
#teachers .teacher-tags{ min-height: 64px; }

#teachers .teacher-actions{
  margin-top:auto;
  display:flex;
  gap:10px;
  align-items:center;
}

#teachers .teacher-actions .btn{
  min-height: 38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
/* ===== COURSES BLOCK ===== */

.courses-head{
  max-width: 1080px;
  margin: 0 auto 32px;
}

.courses-kicker{
  display:inline-block;
  padding:4px 12px;
  border-radius:999px;
  background:#e6f4ef;
  color:#0b7b5a;
  font-size:11px;
  font-weight:700;
}

.courses-title{
  font-size:32px;
  margin:10px 0 6px;
}

.courses-subtitle{
  color:rgba(0,0,0,.6);
  max-width:520px;
}



/* ===== CARD ===== */
.course-card{
  width:520px;
  height:520px;
  padding:24px;
  border-radius:22px;
  background:#fff;
  display:flex;
  flex-direction:column;
  box-shadow:0 20px 40px rgba(0,0,0,.08);
}

/* CONTENT */
.course-name{
  font-size:18px;
  margin:10px 0;
}

.course-desc{
  font-size:14px;
  line-height:1.55;
}

.course-features{
  font-size:13px;
  margin:12px 0;
}

.course-bottom{
  margin-top:auto;
}

.course-actions{
  display:flex;
  gap:12px;
  margin-top:10px;
}

/* META */
.course-meta{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.course-pill{
  font-size:11px;
  padding:4px 10px;
  border-radius:999px;
  background:#f2f4f3;
}

/* MOBILE */
@media (max-width:1100px){
  .courses-grid{
    grid-template-columns:1fr;
  }

  .course-card{
    margin:0 auto;
  }
}
.courses-head{
  max-width: 1080px;        /* РОВНО КАК КАРТОЧКИ */
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: 520px 1fr; /* ЛЕВО = карточка */
  gap: 40px;                          /* КАК МЕЖДУ КАРТОЧКАМИ */
  align-items: center;
}

.courses-title{
  margin: 0;
}

.courses-subtitle{
  margin: 0;
  max-width: 520px;
  line-height: 1.6;
  color: rgba(0,0,0,.6);
}
.courses-cta{
  max-width: 1080px;     /* ТО ЖЕ, ЧТО И GRID */
  margin: 32px auto 0;
  padding: 24px 28px;
  border-radius: 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  background: #f3f9f6;
}
/* ЕДИНЫЙ ЦЕНТР БЛОКА */
.courses__inner{
  max-width:1080px;
  margin:0 auto;
}

/* ХЕДЕР */
.courses-head{
  display:grid;
  grid-template-columns:520px 520px;
  gap:40px;
  align-items:center;
  margin-bottom:32px;
}

/* СЕТКА КАРТОЧЕК */
.courses-grid{
  display:grid;
  grid-template-columns:520px 520px;
  gap:40px;
  justify-content:center;
}

/* CTA */
.courses-cta{
  max-width:1080px;
  margin:32px auto 0;
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:24px;
}
.courses-head{
  max-width:1080px;                 /* как карточки */
  margin:0 auto 32px;

  display:grid;
  grid-template-columns:520px 520px; /* ЛЕВО / ПРАВО */
  gap:40px;

  align-items:center;
}

/* левая часть */
.courses-head__left{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}

/* заголовок */
.courses-title{
  margin:6px 0 0;
  font-size:36px;
}

/* описание справа */
.courses-subtitle{
  margin:0;
  max-width:520px;
  line-height:1.6;
  color:rgba(0,0,0,.6);
}
/* === FIX COURSES HEAD ALIGNMENT === */
.courses-head{
  display: grid !important;
  grid-template-columns: 520px 520px;
  gap: 40px;
  align-items: center;

  max-width: 1080px;
  margin: 0 auto 32px;
}
/* ===== КНОПКИ НАВИГАЦИИ КАЛЕНДАРЯ ===== */
.events-cal__nav{
  width:36px;
  height:36px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:all .2s ease;
}

.events-cal__nav svg{
  width:18px;
  height:18px;
  stroke:#0b7b5a;
}

.events-cal__nav:hover{
  background:#f3f9f6;
  border-color:#0b7b5a;
}
/* ===== EVENTS SHELL ===== */
.events-shell{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:32px;
  align-items:start;
}

/* ===== CALENDAR CARD ===== */
.events-cal{
  background:#fff;
  border-radius:24px;
  padding:24px;
  box-shadow:0 20px 40px rgba(0,0,0,.08);
}

/* ===== CALENDAR HEADER ===== */
.events-cal__top{
  display:grid;
  grid-template-columns: auto 1fr auto;
  align-items:center;
  gap:16px;
  margin-bottom:16px;
}

.events-month{
  font-size:18px;
  font-weight:700;
  text-align:center;
}

.events-meta{
  font-size:12px;
  color:rgba(0,0,0,.55);
  text-align:center;
}

/* ===== FILTER CHIPS ===== */
.events-filters{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:16px;
}

.events-chip{
  padding:6px 14px;
  font-size:12px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
  cursor:pointer;
  transition:.2s ease;
}

.events-chip.is-active,
.events-chip:hover{
  background:#e6f4ef;
  border-color:#0b7b5a;
  color:#0b7b5a;
}

/* ===== WEEKDAYS ===== */
.events-weekdays{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  margin-bottom:8px;
  font-size:11px;
  color:rgba(0,0,0,.5);
  text-align:center;
}

/* ===== DAYS GRID ===== */
.events-grid{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:8px;
}

.ev-day{
  position:relative;
  aspect-ratio:1 / 1;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.06);
  background:#fff;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  transition:.2s ease;
}

.ev-day:hover{
  background:#f3f9f6;
  border-color:#0b7b5a;
}

.ev-day.is-active{
  background:#0b7b5a;
  color:#fff;
  border-color:#0b7b5a;
}

/* ===== DOT FOR EVENTS ===== */
.ev-day .ev-dot {
  z-index: 2;
}
.ev-number {
  position: relative;
  z-index: 1;
}
.ev-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background-color: #1f7a5c;
  border-radius: 50%;
  pointer-events: none;
}
/* ===== TODAY ===== */
.ev-day.is-today{
  box-shadow:0 0 0 2px rgba(11,123,90,.2);
}

/* ===== EVENTS LIST ===== */
.events-list{
  background:#fff;
  border-radius:24px;
  padding:24px;
  box-shadow:0 20px 40px rgba(0,0,0,.08);
}

.events-list__top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:16px;
}

.events-list__title{
  font-size:18px;
  font-weight:700;
}

.events-list__sel{
  font-size:12px;
  color:rgba(0,0,0,.55);
}

/* ===== EVENT CARDS ===== */
.event-card{
  padding:16px;
  border-radius:16px;
  border:1px solid rgba(0,0,0,.06);
  margin-bottom:12px;
  transition:.2s ease;
}

.event-card:hover{
  background:#f9fbfa;
  border-color:#0b7b5a;
}

.event-card h4{
  margin:0 0 6px;
  font-size:14px;
}

.event-card div{
  font-size:12px;
  color:#0b7b5a;
  margin-bottom:6px;
}

.event-card p{
  font-size:13px;
  color:rgba(0,0,0,.7);
  margin:0;
}

/* ===== EMPTY STATE ===== */
.events-empty{
  padding:24px;
  text-align:center;
  font-size:13px;
  color:rgba(0,0,0,.6);
}

/* ===== MOBILE ===== */
@media (max-width:1024px){
  .events-shell{
    grid-template-columns:1fr;
  }
}
.ev-day{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 6px; /* место под точку */
}
.ev-dot{
  position: absolute;
  bottom: 6px;              /* ВНИЗУ */
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0b7b5a;
  pointer-events: none;
}
.ev-day.is-active .ev-dot,
.ev-day.is-today .ev-dot{
  background:#0b7b5a;
}
/* ===================================== */
/* ULTRA COURSES SLIDER — CLEAN VERSION */
/* ===================================== */

.courses{
    padding:90px 0;
}

/* wrapper */

.courses-slider-wrapper{
    position:relative;
    padding:0 60px;
}

/* track */

.courses-slider{

    display:flex;
    gap:28px;

    overflow-x:auto;
    scroll-behavior:smooth;

    padding:20px 10px 50px;

    scrollbar-width:none;
}

.courses-slider::-webkit-scrollbar{
    display:none;
}

/* ===== CARDS ===== */

.course-card{

    min-width:360px;
    flex:0 0 auto;

    background:#fff;
    border-radius:26px;
    padding:28px;

    box-shadow:0 10px 35px rgba(0,0,0,.06);

    transition:.35s;
}

/* 🔥 ГЛАВНАЯ КАРТОЧКА */

.course-card:first-child{

    min-width:440px;
    transform:scale(1.05);

    box-shadow:0 25px 70px rgba(0,0,0,.14);
}

/* hover */

.course-card:hover{

    transform:translateY(-12px);
    box-shadow:0 35px 90px rgba(0,0,0,.18);
}

/* logo */

.course-logo{
    height:90px;
    margin-bottom:12px;
}

.course-logo img{
    height:100%;
    width:auto;
}

/* buttons */

.btn--primary{

    background:linear-gradient(135deg,#d6b36a,#b8964f);
    color:#fff;

    padding:12px 22px;
    border-radius:14px;

    font-weight:600;
}

.btn--ghost{

    border:2px solid #0f5132;
    color:#0f5132;

    border-radius:14px;
    padding:10px 20px;
}

/* pills */

.course-pill{

    padding:6px 12px;
    border-radius:20px;

    background:#eef3f1;
    font-size:13px;
    font-weight:600;
}

/* arrows */

.slider-arrow{

    position:absolute;
    top:50%;
    transform:translateY(-50%);

    width:58px;
    height:58px;

    border-radius:50%;
    border:none;

    background:#fff;

    font-size:26px;
    cursor:pointer;

    box-shadow:0 20px 50px rgba(0,0,0,.18);

    z-index:5;
}

.slider-arrow-left{
    left:0;
}

.slider-arrow-right{
    right:0;
}

.slider-arrow:hover{
    transform:translateY(-50%) scale(1.1);
}

/* mobile */

@media(max-width:768px){

.courses-slider-wrapper{
    padding:0 20px;
}

.slider-arrow{
    display:none;
}

.course-card:first-child{
    min-width:360px;
    transform:none;
}

}
/* =====================================
   COURSES — FINAL FIX
   ===================================== */

/* УБИВАЕМ GRID */
.courses-grid{
    display:flex !important;
}

/* slider родитель */
.courses-slider{
    display:flex !important;
    gap:28px;
    overflow-x:auto;
    scroll-behavior:smooth;
    padding:20px 10px 60px;
}

/* карточки */
.course-card{

    flex:0 0 360px !important;
    min-width:360px !important;

    height:auto !important;     /* КЛЮЧЕВОЕ */
    min-height:520px;

    display:flex;
    flex-direction:column;

    border-radius:26px;
    background:#fff;

    box-shadow:0 12px 40px rgba(0,0,0,.08);

    transition:.35s;
}

/* первая — большая */
.course-card:first-child{

    flex:0 0 440px !important;
    min-width:440px !important;

    transform:scale(1.04);
}

/* hover */
.course-card:hover{
    transform:translateY(-10px);
}

/* кнопки вниз */
.course-bottom{
    margin-top:auto;
}

/* стрелки */
.slider-arrow{

    position:absolute;
    top:50%;
    transform:translateY(-50%);

    width:56px;
    height:56px;

    border-radius:50%;
    border:none;
    background:#fff;

    box-shadow:0 18px 50px rgba(0,0,0,.18);

    z-index:20;
}

.slider-arrow-left{ left:0; }
.slider-arrow-right{ right:0; }

/* НЕ ОБРЕЗАТЬ */
.courses-slider-wrapper{
    overflow:visible !important;
}
.library-access-note{
  margin-top:20px;
  padding:16px 18px;
  border-radius:14px;
  background:linear-gradient(135deg,#eef6f2,#ffffff);
  border:1px solid rgba(7,95,72,0.2);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

.library-access-note p{
  margin:0;
  font-size:0.95rem;
  color:#075f48;
}

@media (max-width:768px){
  .library-access-note{
    flex-direction:column;
    align-items:flex-start;
  }
}
/* =====================================================
   LIBRARY SLIDER — CLEAN PRO VERSION
   ===================================================== */

.library-ebooks{
position:relative;
z-index:1;
overflow:hidden;
padding:70px 0;
background:#f7f8f7;
}

/* ---------- WRAPPER ---------- */

.ebooks-slider-wrapper{
position:relative;
max-width:1200px;
margin:40px auto;
}

/* ---------- SLIDER ---------- */

.ebooks-slider{
display:flex;
gap:24px;

overflow-x:auto;
overflow-y:hidden;

scroll-behavior:smooth;
scroll-snap-type:x mandatory;

padding:10px 4px;
}

.ebooks-slider::-webkit-scrollbar{
display:none;
}
.ebooks-slider{
scrollbar-width:none;
}

/* ---------- CARD ---------- */

.ebook-card{
flex:0 0 270px;
scroll-snap-align:start;
}

/* CARD BODY */

.ebook-card__inner{

height:440px;

display:flex;
flex-direction:column;
align-items:center;
text-align:center;

padding:22px;

border-radius:20px;

background:
radial-gradient(circle at 0 0, rgba(212,185,122,0.18), transparent 55%),
radial-gradient(circle at 100% 100%, rgba(7,95,72,0.12), transparent 55%),
#fff;

border:1px solid rgba(7,95,72,0.08);

box-shadow:0 18px 40px rgba(0,0,0,.06);

transition:
transform .35s cubic-bezier(.2,.8,.2,1),
box-shadow .35s cubic-bezier(.2,.8,.2,1);
}

/* HOVER МЯГКИЙ */

.ebook-card__inner:hover{
transform:translateY(-8px);
box-shadow:0 28px 60px rgba(0,0,0,.12);
}

/* ---------- COVER ---------- */

.ebook-card__cover{
width:130px;
height:180px;
margin-bottom:14px;

display:flex;
align-items:center;
justify-content:center;

background:#fff;
border-radius:14px;

box-shadow:0 12px 26px rgba(0,0,0,.12);
}

.ebook-card__cover img{
width:100%;
height:100%;
object-fit:contain;
}

/* ---------- TITLE ---------- */

.ebook-title{

font-size:17px;
font-weight:700;
line-height:1.35;

min-height:46px;

margin-bottom:6px;

display:-webkit-box;
-webkit-line-clamp:2;
-webkit-box-orient:vertical;
overflow:hidden;
}

/* ---------- PRICE ---------- */

.ebook-price-row{
font-size:14px;
margin-bottom:8px;
}

/* ---------- TEXT ---------- */

.ebook-text{

font-size:14px;
line-height:1.5;
color:#5b6b65;

display:-webkit-box;
-webkit-line-clamp:3;
-webkit-box-orient:vertical;
overflow:hidden;

margin-bottom:14px;
}

/* ---------- BUTTON ---------- */

.ebook-card__bottom{
margin-top:auto;
}

/* ВАЖНО — кнопка НЕ на всю ширину */

.ebook-card__bottom .btn{

width:auto;
min-width:150px;

padding:10px 18px;

border-radius:999px;

display:inline-flex;
justify-content:center;
align-items:center;

cursor:pointer !important;
}

/* ---------- ARROWS ---------- */

.slider-btn{
position:absolute;
top:50%;
transform:translateY(-50%);

width:48px;
height:48px;

border-radius:50%;
border:none;

background:#075f48;
color:#fff;
font-size:22px;

cursor:pointer;

z-index:20;

display:flex;
align-items:center;
justify-content:center;

box-shadow:0 10px 30px rgba(0,0,0,.25);

transition:.25s;
}

.slider-prev{ left:-24px; }
.slider-next{ right:-24px; }

.slider-btn:hover{
background:#043d31;
transform:translateY(-50%) scale(1.08);
}

/* ---------- FIX КУРСОРА ---------- */

a,
button,
.btn{
cursor:pointer !important;
}

/* ---------- MOBILE ---------- */

@media(max-width:768px){

.ebook-card{
flex:0 0 220px;
}

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

}
/* =====================================
   SOON SECTION — COMPACT PREMIUM
   ===================================== */

.library-soon{
padding:70px 0;
background:#f6f8f7; /* убрали белый */
}

/* сетка */

.soon-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
gap:28px;
margin-top:36px;
}

/* карточка */

.soon-card{

display:flex;
gap:18px;
align-items:flex-start;

padding:18px;

border-radius:16px;

background:#ffffff;

border:1px solid rgba(0,0,0,.05);

transition:.25s ease;
}

/* hover — легкий */

.soon-card:hover{
transform:translateY(-4px);
box-shadow:0 12px 30px rgba(0,0,0,.06);
}

/* мини-обложка */

.soon-cover{

min-width:90px;
height:120px;

border-radius:10px;

background:linear-gradient(135deg,#e9efed,#dde6e3);

display:flex;
align-items:center;
justify-content:center;

font-size:13px;
font-weight:600;
color:#075f48;
}

/* текст */

.soon-title{
font-size:18px;
font-weight:700;
margin-bottom:6px;
}

.soon-text{
font-size:14px;
color:#5f6f68;
line-height:1.5;
margin-bottom:8px;
}

/* статус */

.soon-status{

display:inline-block;

font-size:12px;
font-weight:600;

color:#075f48;
background:rgba(7,95,72,.08);

padding:4px 10px;
border-radius:999px;
}

/* мобильная */

@media(max-width:768px){

.soon-card{
flex-direction:row;
}

}
/* =====================================
   SOON BOOKS — UNIVERSITY PREMIUM
   ===================================== */

.library-soon{
padding:110px 0;
background:#f4f7f6;
}

/* заголовок */

.soon-main-title{
font-size:34px;
font-weight:800;
color:#0e3b2e;
margin-bottom:10px;
}

.soon-main-subtitle{
font-size:17px;
color:#5f6f68;
margin-bottom:60px;
max-width:700px;
}

/* список */

.soon-books{
display:flex;
flex-direction:column;
gap:34px;
}

/* карточка */

.soon-book-card{

display:flex;
gap:34px;
align-items:center;

padding:34px;

border-radius:22px;

background:#ffffff;

box-shadow:0 25px 60px rgba(0,0,0,.06);

transition:.35s;
}

/* hover */

.soon-book-card:hover{
transform:translateY(-6px);
box-shadow:0 35px 80px rgba(0,0,0,.09);
}

/* ОБЛОЖКА */

.soon-book-cover{

width:120px;
height:170px;
flex-shrink:0;

border-radius:10px;

background:linear-gradient(145deg,#e8eeec,#dde5e2);

position:relative;
}

/* корешок */

.soon-book-cover::before{
content:"";
position:absolute;
left:0;
top:0;
bottom:0;
width:10px;
background:#075f48;
border-radius:10px 0 0 10px;
}

/* текст */

.soon-book-info h3{
font-size:22px;
margin-bottom:10px;
color:#123c32;
}

.soon-book-info p{
font-size:16px;
line-height:1.7;
color:#52635d;
margin-bottom:14px;
max-width:650px;
}

/* badge */

.soon-badge{

display:inline-block;

padding:6px 14px;

font-size:12px;
font-weight:700;
letter-spacing:.06em;
text-transform:uppercase;

color:#075f48;
background:rgba(7,95,72,.1);

border-radius:999px;
}

/* mobile */

@media(max-width:768px){

.library-soon{
padding:70px 0;
}

.soon-book-card{
flex-direction:column;
text-align:center;
padding:26px;
}

.soon-book-info p{
max-width:100%;
}

}
/* ===== MAHAD TEACHERS ===== */

.mahads-teachers{
  padding:90px 0;
  background:
    radial-gradient(900px 500px at 10% 10%, rgba(11,95,74,.08), transparent 60%),
    #ffffff;
}

.mahads-title{
  text-align:center;
  font-size:34px;
  margin-bottom:50px;
  letter-spacing:-.02em;
}

/* slider wrapper */

.teachers-slider{
  position:relative;
  max-width:1100px;   /* 🔥 ВАЖНО — ограничивает видимую область */
  margin:auto;
  overflow:hidden;
}

/* track */

.slider-track{
  display:flex;
  align-items:center;
  gap:55px;
  scroll-behavior:smooth;
  padding:10px 60px; /* место под стрелки */
}

/* card */

.teacher-slide{
  flex:0 0 230px;   /* 🔥 фикс ширина -> всегда будет скролл */
  text-align:center;
}

/* photo */

.teacher-slide img{
  width:200px;
  height:200px;
  object-fit:cover;
  border-radius:50%;

  padding:5px;
  background:linear-gradient(135deg,#d4af37,#f3e2a0);

  transition:.45s;
}

.teacher-slide:hover img{
  transform:scale(1.07);
}

/* name */

.teacher-slide h3{
  margin-top:16px;
  font-size:17px;
  font-weight:600;
}

/* arrows */

.slider-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:5;

  width:48px;
  height:48px;
  border-radius:50%;
  border:none;
  cursor:pointer;

  background:#ffffff;
  box-shadow:0 10px 30px rgba(0,0,0,.12);

  font-size:22px;
  transition:.25s;
}

.slider-btn:hover{
  transform:translateY(-50%) scale(1.12);
}

.prev{
  left:0;
}

.next{
  right:0;
}

/* mobile */

@media (max-width:768px){

  .slider-track{
    gap:35px;
    padding:10px 40px;
  }

  .teacher-slide{
    flex:0 0 180px;
  }

  .teacher-slide img{
    width:160px;
    height:160px;
  }

}
.teacher-slide img{
  width:200px !important;
  height:200px !important;
  border-radius:50% !important;
  object-fit:cover !important;
}
.slider-btn{
  z-index:999;
}
.slider-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:999;

  width:54px;
  height:54px;
  border-radius:50%;
  border:none;
  cursor:pointer;

  background:#ffffff;
  color:#0b5f4a;
  font-size:34px;
  font-weight:300;
  line-height:1;

  box-shadow:0 12px 35px rgba(0,0,0,.18);

  display:flex;
  align-items:center;
  justify-content:center;
}

.prev{ left:-25px; }
.next{ right:-25px; }

.slider-btn:hover{
  transform:translateY(-50%) scale(1.15);
}
.teachers-slider{
  position:relative;
  overflow:visible; /* ВАЖНО */
}
.teacher-slide{
  flex: 0 0 240px; /* обязательно */
}

.header--green, .top-header--green, .bottom-header--green { background:#0b5f4a; }
  .top-header--green .top-phone,
  .top-header--green .top-email,
  .top-header--green .top-auth-btn,
  .bottom-header--green .menu a,
  .bottom-header--green .brand-title { color:#fff; }

  /* dropdown поверх всего меню */
  .lang-dd { position: relative; z-index: 5000; }
  .lang-dd__menu { position:absolute; z-index: 6000; }

  /* увеличенный бренд */
  .logo--xl{ width:56px; height:56px; object-fit:contain; }
  .brand--xl{ gap:12px; }
  .brand-title--xl b{ font-size:15px; letter-spacing:.06em; }
  .brand-title--xl span{ font-size:12px; opacity:.9; display:block; margin-top:2px; }

  /* кнопки вход/регистрация */
  .auth-actions{ display:flex; gap:10px; align-items:center; }
  .top-auth-btn{ display:inline-flex; align-items:center; gap:8px; padding:7px 10px; border-radius:999px; font-weight:600; font-size:13px; line-height:1; text-decoration:none; }
  .top-auth-btn--ghost{ background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.22); }
  .top-auth-btn--solid{ background:#ffffff; color:#0b5f4a !important; border:1px solid rgba(255,255,255,.35); }
  .top-auth-btn .auth-icon{ width:16px; height:16px; display:inline-flex; }
  .top-auth-btn svg{ width:16px; height:16px; }

/* ====== Events календар ====== */
  .events-section{
    padding:76px 0;
    background:
      radial-gradient(1000px 520px at 15% 10%, rgba(11,95,74,.12), transparent 60%),
      radial-gradient(900px 520px at 85% 35%, rgba(17,24,39,.06), transparent 60%);
    position:relative;
  }

  .events-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:20px;
    margin-bottom:22px;
  }
  .events-kicker{
    display:inline-flex;
    padding:6px 10px;
    border-radius:999px;
    background:rgba(11,95,74,.10);
    color:#0b5f4a;
    font-weight:800;
    letter-spacing:.12em;
    font-size:12px;
  }
  .events-title{
    margin:10px 0 8px;
    font-size:34px;
    line-height:1.12;
    letter-spacing:-.02em;
  }
  .events-subtitle{
    margin:0;
    max-width:760px;
    color:rgba(17,24,39,.70);
    font-size:16px;
    line-height:1.6;
  }
  .events-head__right{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    justify-content:flex-end;
  }

  .events-shell{
    display:grid;
    grid-template-columns: 1.2fr .8fr;
    gap:16px;
    align-items:start;
  }

  .events-cal{
    border-radius:22px;
    border:1px solid rgba(17,24,39,.10);
    background:linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.64));
    box-shadow: 0 12px 40px rgba(17,24,39,.08);
    backdrop-filter: blur(12px);
    padding:16px;
  }

  .events-cal__top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:12px;
  }
  .events-cal__nav{
    width:42px; height:42px;
    border-radius:14px;
    border:1px solid rgba(17,24,39,.10);
    background:rgba(255,255,255,.70);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:transform .12s ease, border-color .12s ease;
  }
  .events-cal__nav:hover{ transform:translateY(-1px); border-color:rgba(11,95,74,.22); }
  .events-cal__nav svg{ width:22px; height:22px; }

  .events-cal__title{ text-align:center; flex:1; }
  .events-month{ font-weight:900; letter-spacing:-.01em; }
  .events-meta{ font-size:12px; color:rgba(17,24,39,.62); margin-top:2px; }

  .events-filters{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin:10px 0 12px;
  }
  .events-chip{
    border:1px solid rgba(11,95,74,.18);
    background:rgba(255,255,255,.60);
    color:#0b5f4a;
    padding:9px 11px;
    border-radius:999px;
    font-weight:800;
    font-size:12px;
    cursor:pointer;
    transition:transform .12s ease, background .12s ease, border-color .12s ease;
  }
  .events-chip:hover{ transform: translateY(-1px); border-color: rgba(11,95,74,.35); }
  .events-chip.is-active{
    background:#0b5f4a;
    color:#fff;
    border-color:#0b5f4a;
  }

  .events-weekdays{
    display:grid;
    grid-template-columns: repeat(7, 1fr);
    gap:8px;
    padding:10px 6px 8px;
    font-size:12px;
    font-weight:800;
    color:rgba(17,24,39,.60);
  }

  .events-grid{
    display:grid;
    grid-template-columns: repeat(7, 1fr);
    gap:8px;
    padding:6px;
  }

  .ev-day{
    position:relative;
    height:48px;
    border-radius:16px;
    border:1px solid rgba(17,24,39,.08);
    background:rgba(255,255,255,.70);
    cursor:pointer;
    display:flex;
    align-items:flex-start;
    justify-content:flex-start;
    padding:10px 10px;
    font-weight:900;
    color:rgba(17,24,39,.78);
    transition:transform .12s ease, border-color .12s ease, box-shadow .12s ease;
    user-select:none;
  }
  .ev-day:hover{
    transform: translateY(-1px);
    border-color: rgba(11,95,74,.22);
    box-shadow: 0 10px 22px rgba(17,24,39,.08);
  }
  .ev-day.is-muted{
    opacity:.45;
    cursor:default;
  }
  .ev-day.is-muted:hover{
    transform:none;
    box-shadow:none;
    border-color: rgba(17,24,39,.08);
  }
  .ev-day.is-today{
    border-color: rgba(11,95,74,.30);
    box-shadow: 0 14px 28px rgba(11,95,74,.10);
  }
  .ev-day.is-selected{
    background: linear-gradient(135deg, rgba(11,95,74,.14), rgba(255,255,255,.70));
    border-color: rgba(11,95,74,.35);
  }

  .ev-dot{
    position:absolute;
    right:10px;
    top:10px;
    width:9px;
    height:9px;
    border-radius:999px;
    background:#0b5f4a;
    box-shadow: 0 0 0 4px rgba(11,95,74,.12);
  }
  .ev-count{
    position:absolute;
    right:10px;
    bottom:10px;
    font-size:11px;
    font-weight:900;
    color:rgba(17,24,39,.62);
    background:rgba(17,24,39,.05);
    border:1px solid rgba(17,24,39,.08);
    padding:3px 8px;
    border-radius:999px;
  }

  .events-hint{
    margin-top:12px;
    color:rgba(17,24,39,.60);
    font-size:13px;
    padding:10px 12px;
    border-radius:16px;
    background:rgba(17,24,39,.04);
    border:1px solid rgba(17,24,39,.06);
  }

  .events-list{
    border-radius:22px;
    border:1px solid rgba(17,24,39,.10);
    background:linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.64));
    box-shadow: 0 12px 40px rgba(17,24,39,.08);
    backdrop-filter: blur(12px);
    padding:16px;
    position:sticky;
    top:16px;
  }

  .events-list__top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:10px;
    margin-bottom:12px;
  }
  .events-list__title{
    margin:0;
    font-size:16px;
    font-weight:900;
  }
  .events-list__sel{
    font-size:12px;
    color:rgba(17,24,39,.62);
    font-weight:800;
    text-align:right;
  }

  .events-cards{
    display:grid;
    gap:10px;
  }

  .event-card{
    border-radius:18px;
    border:1px solid rgba(17,24,39,.10);
    background:rgba(255,255,255,.70);
    padding:12px 12px;
    transition:transform .12s ease, border-color .12s ease;
  }
  .event-card:hover{
    transform: translateY(-1px);
    border-color: rgba(11,95,74,.22);
  }
  .event-top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:10px;
    margin-bottom:8px;
  }
  .event-type{
    display:inline-flex;
    padding:6px 9px;
    border-radius:999px;
    font-size:11px;
    font-weight:900;
    border:1px solid rgba(11,95,74,.18);
    color:#0b5f4a;
    background:rgba(11,95,74,.08);
  }
  .event-time{
    font-size:12px;
    font-weight:900;
    color:rgba(17,24,39,.68);
  }
  .event-name{
    margin:0 0 6px;
    font-size:14px;
    font-weight:900;
    letter-spacing:-.01em;
  }
  .event-desc{
    margin:0 0 10px;
    font-size:13px;
    line-height:1.55;
    color:rgba(17,24,39,.70);
  }
  .event-actions{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
  }
  .event-actions .btn{
    padding:9px 10px;
    font-size:13px;
  }

  .events-empty{
    margin-top:10px;
    padding:12px;
    border-radius:16px;
    background:rgba(17,24,39,.04);
    border:1px solid rgba(17,24,39,.06);
    color:rgba(17,24,39,.62);
    font-size:13px;
  }

  @media (max-width: 980px){
    .events-head{ align-items:flex-start; }
    .events-title{ font-size:28px; }
    .events-shell{ grid-template-columns: 1fr; }
    .events-list{ position:relative; top:auto; }
  }

/* мини-правки именно для "поверх меню" + зеленый */
  .courses-section{
    position:relative;
    padding:76px 0;
    background:
      radial-gradient(1100px 600px at 15% 10%, rgba(11,95,74,.14), transparent 60%),
      radial-gradient(900px 540px at 90% 20%, rgba(255,255,255,.10), transparent 65%),
      linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.00));
  }
  .courses-section::before{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background:
      radial-gradient(1px 1px at 10% 20%, rgba(11,95,74,.20) 0, transparent 60%),
      radial-gradient(1px 1px at 45% 30%, rgba(11,95,74,.18) 0, transparent 60%),
      radial-gradient(1px 1px at 70% 60%, rgba(11,95,74,.16) 0, transparent 60%),
      radial-gradient(1px 1px at 85% 25%, rgba(11,95,74,.14) 0, transparent 60%);
    opacity:.8;
  }

  .courses-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:20px;
    margin-bottom:22px;
    position:relative;
    z-index:1;
  }
  .courses-kicker{
    display:inline-flex;
    padding:6px 10px;
    border-radius:999px;
    background:rgba(11,95,74,.10);
    color:#0b5f4a;
    font-weight:700;
    letter-spacing:.12em;
    font-size:12px;
  }
  .courses-title{
    margin:10px 0 8px;
    font-size:34px;
    line-height:1.12;
    letter-spacing:-.02em;
  }
  .courses-subtitle{
    margin:0;
    max-width:720px;
    color:rgba(17,24,39,.70);
    font-size:16px;
    line-height:1.6;
  }
  .courses-head__right{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    justify-content:flex-end;
  }

  .courses-filters{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
    margin:20px 0 24px;
    position:relative;
    z-index:1;
  }
  .courses-chip{
    border:1px solid rgba(11,95,74,.18);
    background:rgba(255,255,255,.60);
    color:#0b5f4a;
    padding:10px 12px;
    border-radius:999px;
    font-weight:700;
    font-size:13px;
    cursor:pointer;
    transition:transform .12s ease, background .12s ease, border-color .12s ease;
    backdrop-filter: blur(8px);
  }
  .courses-chip:hover{ transform: translateY(-1px); border-color: rgba(11,95,74,.35); }
  .courses-chip.is-active{
    background:#0b5f4a;
    color:#fff;
    border-color:#0b5f4a;
  }

  .courses-search{
    display:flex;
    align-items:center;
    gap:8px;
    padding:10px 12px;
    border-radius:14px;
    border:1px solid rgba(17,24,39,.10);
    background:rgba(255,255,255,.70);
    min-width:280px;
    flex:1;
    max-width:420px;
    backdrop-filter: blur(10px);
  }
  .courses-search svg{ width:18px; height:18px; opacity:.7; }
  .courses-search input{
    border:none;
    outline:none;
    background:transparent;
    width:100%;
    font-size:14px;
  }

  .courses-grid{
    display:grid;
    grid-template-columns: repeat(12, 1fr);
    gap:16px;
    position:relative;
    z-index:1;
  }
  .course-card{
    grid-column: span 6;
    border-radius:22px;
    padding:18px 18px 16px;
    background:
      linear-gradient(180deg, rgba(255,255,255,.80), rgba(255,255,255,.62));
    border:1px solid rgba(17,24,39,.10);
    box-shadow: 0 12px 40px rgba(17,24,39,.08);
    backdrop-filter: blur(12px);
    transition:transform .14s ease, box-shadow .14s ease, border-color .14s ease;
    overflow:hidden;
    position:relative;
  }
  .course-card::after{
    content:"";
    position:absolute;
    inset:auto -40px -40px auto;
    width:180px;
    height:180px;
    background: radial-gradient(circle at 30% 30%, rgba(11,95,74,.18), transparent 60%);
    transform: rotate(15deg);
    pointer-events:none;
  }
  .course-card:hover{
    transform: translateY(-3px);
    box-shadow: 0 18px 55px rgba(17,24,39,.12);
    border-color: rgba(11,95,74,.22);
  }

  .course-card__top{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:12px;
    margin-bottom:10px;
  }

  .course-badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 10px;
    border-radius:999px;
    font-weight:800;
    font-size:12px;
    letter-spacing:.02em;
    border:1px solid rgba(17,24,39,.10);
    background:rgba(255,255,255,.75);
  }
  .course-badge--new{ color:#0b5f4a; border-color: rgba(11,95,74,.20); }
  .course-badge--pro{ color:#0b5f4a; border-color: rgba(11,95,74,.20); }
  .course-badge--soft{ color:#0b5f4a; border-color: rgba(11,95,74,.20); }
  .course-badge--deep{ color:#0b5f4a; border-color: rgba(11,95,74,.20); }

  .course-meta{
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-end;
    gap:8px;
  }
  .course-pill{
    display:inline-flex;
    padding:6px 9px;
    border-radius:999px;
    font-size:12px;
    font-weight:700;
    color:rgba(17,24,39,.75);
    background:rgba(17,24,39,.04);
    border:1px solid rgba(17,24,39,.06);
  }

  .course-name{
    margin:6px 0 8px;
    font-size:18px;
    line-height:1.25;
    letter-spacing:-.01em;
  }
  .course-desc{
    margin:0 0 12px;
    color:rgba(17,24,39,.70);
    line-height:1.6;
    font-size:14px;
    max-width:560px;
  }

  .course-features{
    list-style:none;
    padding:0;
    margin:0 0 14px;
    display:grid;
    gap:8px;
    color:rgba(17,24,39,.78);
    font-size:13px;
  }
  .course-features li{
    display:flex;
    align-items:flex-start;
    gap:10px;
  }
  .course-features li::before{
    content:"";
    width:8px;
    height:8px;
    border-radius:999px;
    background:#0b5f4a;
    margin-top:6px;
    flex:0 0 8px;
  }

  .course-bottom{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
    padding-top:12px;
    border-top:1px solid rgba(17,24,39,.08);
  }
  .course-time{
    display:flex;
    align-items:center;
    gap:8px;
    color:rgba(17,24,39,.72);
    font-weight:700;
    font-size:13px;
  }
  .course-time svg{ width:18px; height:18px; opacity:.75; }

  .course-actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    justify-content:flex-end;
  }

  .courses-cta{
    margin-top:18px;
    padding:18px;
    border-radius:22px;
    border:1px solid rgba(11,95,74,.16);
    background:
      linear-gradient(135deg, rgba(11,95,74,.10), rgba(255,255,255,.70));
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    flex-wrap:wrap;
    position:relative;
    z-index:1;
  }
  .courses-cta h3{
    margin:0 0 6px;
    font-size:16px;
    letter-spacing:-.01em;
  }
  .courses-cta p{
    margin:0;
    color:rgba(17,24,39,.70);
    line-height:1.6;
    font-size:14px;
  }
  .courses-cta__right{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
  }

  /* Responsive */
  @media (max-width: 980px){
    .courses-head{ align-items:flex-start; }
    .courses-title{ font-size:28px; }
    .course-card{ grid-column: span 12; }
    .courses-search{ max-width:none; }
  }

.lang-dd{
  position:relative;
}

.lang-dd__menu{
  position:absolute;
  top:120%;
  right:0;
  display:none;
  background:#fff;
  border-radius:12px;
  box-shadow:0 10px 30px rgba(0,0,0,.15);
  overflow:hidden;
  z-index:9999;
}

.lang-dd.is-open .lang-dd__menu{
  display:block;
}

.lang-dd__menu a{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  text-decoration:none;
  color:#222;
}

.lang-dd__menu a:hover{
  background:#f3f3f3;
}
.lang-dd{
    position:relative;
}

.lang-dd__menu{
    position:absolute;
    right:0;
    top:120%;
    background:#fff;
    border-radius:10px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    display:none;
    padding:8px 0;
    z-index:9999;
}

.lang-dd__menu a{
    display:flex;
    gap:10px;
    align-items:center;
    padding:8px 14px;
    text-decoration:none;
    color:#222;
}

.lang-dd__menu a:hover{
    background:#f3f3f3;
}

.lang-dd.is-open .lang-dd__menu{
    display:block;
}
.mahads-teachers {
  padding: 80px 0;
  background: #f7f9f8;
  text-align: center;
}

.teachers-kicker {
  display: block;
  font-size: 14px;
  letter-spacing: 2px;
  color: #6c757d;
  margin-bottom: 10px;
}

.mahads-title {
  font-size: 32px;
  margin-bottom: 50px;
  color: #0f3d2e;
}

.teachers-wrapper {
  position: relative;
  display: flex;

}

.teachers-track {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 20px;
}

.teachers-track::-webkit-scrollbar {
  display: none;
}

.teacher-card {
  flex: 0 0 auto;
  width: 180px;
  text-align: center;
}

.teacher-card img {
  width: 180px;
  aspect-ratio: 1 / 1;   /* всегда квадрат */
  object-fit: cover;     /* обрезает без искажений */
  border-radius: 50%;    /* делает круг */
  border: 4px solid #caa64b;
  display: block;
  margin: 0 auto;
}


.teacher-card img:hover {
  transform: scale(1.05);
}

.teacher-card h3 {
  margin-top: 15px;
  font-size: 16px;
  color: #1f2d3d;
}

/* Кнопки */
.slider-btn {
  background: white;
  border: none;
  font-size: 24px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: 0.3s;
}

.slider-btn:hover {
  background: #0f3d2e;
  color: white;
}

.prev {
  margin-right: 15px;
}

.next {
  margin-left: 15px;
}

/* Адаптив */
@media (max-width: 768px) {
  .teacher-card {
    width: 140px;
  }
.modal {
  z-index: 9999;
}
  .teacher-card img {
    width: 140px;
    height: 140px;
  }
}
@media (max-width: 768px) {
  .teacher-avatar {
    width: 140px;
  }
}
.teachers-section {
  padding: 80px 0;
  background: #f7f9f8;
}

.teachers-head {
  margin-bottom: 50px;
}

.teachers-kicker {
  display: inline-block;
  padding: 6px 14px;
  background: #e6f1ec;
  color: #0f3d2e;
  font-size: 12px;
  letter-spacing: 1px;
  border-radius: 20px;
  font-weight: 600;
  margin-bottom: 15px;
}

.teachers-title {
  font-size: 36px;
  color: #0f3d2e;
  margin-bottom: 15px;
}

.teachers-subtitle {
  font-size: 16px;
  color: #5c6b66;
  max-width: 600px;
  line-height: 1.6;
}
.events-head {
  text-align: left;
}

.events-head__left {
  max-width: 700px;
}

.events-kicker {
  display: inline-block;
}
.events-head {
  text-align: left;
  margin-left: 0;
}

.events-head__left {
  margin-left: 0;
}
.events-head {
  width: 100%;
  text-align: left;
}
.events-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;   /* ← вот это ключ */
}
/* /* ================= BURGER MENU CLEAN FIX ================= */

/* по умолчанию меню видно на десктопе */
.menu {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* бургер скрыт на десктопе */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
}

/* ================= MOBILE ================= */
@media (max-width: 980px) {

  .burger {
    display: block;
    z-index: 4001;
  }

  .menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #075f48;
    flex-direction: column;
    padding: 100px 24px 40px;
    gap: 18px;
    transition: right 0.3s ease;
    z-index: 4000;
  }

  .menu.is-open {
    right: 0;
  }

  .menu a {
    color: #fff;
    font-size: 18px;
  }

 
}
/* ================= MOBILE MENU FINAL ================= */

@media (max-width: 980px){

  .menu{
    position:fixed;
    top:0;
    right:-100%;
    width:280px;
    height:100vh;
    background:#075f48;
    display:flex;
    flex-direction:column;
    padding:100px 25px 40px;
    gap:18px;
    transition:right .3s ease;
    z-index:9999;
  }

  .menu.is-open{
    right:0;
  }

  .menu a{
    color:#fff;
    font-size:18px;
    font-weight:600;
    text-decoration:none;
  }

  .menu-divider{
    height:1px;
    background:rgba(255,255,255,.2);
    margin:15px 0;
  }

  .menu-auth{
    margin-top:5px;
  }

  .menu-login{
    display:block;
    padding:10px 0;
  }

  .menu-register{
    display:block;
    padding:12px 0;
    background:#fff;
    color:#075f48 !important;
    border-radius:8px;
    text-align:center;
    font-weight:700;
  }

}
/* ================= MOBILE FIX ================= */

.mobile-only-auth,
.mobile-only-divider{
  display:none;
}

@media (max-width: 980px){

  /* 1. Скрываем вход/рег сверху */
  .bottom-header .btn-auth,
  .top-header .auth-actions{
    display:none !important;
  }

  /* 2. Боковое меню */
  .menu{
    position:fixed;
    top:0;
    right:-100%;
    width:280px;
    height:100vh;
    background:#075f48;
    display:flex;
    flex-direction:column;
    padding:100px 25px 40px;
    gap:18px;
    transition:right .3s ease;
    z-index:10000;
  }

  .menu.is-open{
    right:0;
  }

  .menu a{
    color:#fff;
    font-size:18px;
  }

  /* 3. Показываем мобильные кнопки */
  .mobile-only-auth{
    display:block;
  }

  .mobile-only-divider{
    display:block;
    height:1px;
    background:rgba(255,255,255,.2);
    margin:20px 0;
  }

  .menu-register{
    background:#fff;
    color:#075f48;
    padding:12px;
    border-radius:8px;
    text-align:center;
    font-weight:700;
  }

}

/* ================= MOBILE MENU UI UPGRADE ================= */

@media (max-width: 980px){

  /* Панель */
  .menu{
    background: linear-gradient(180deg, #0c5a46 0%, #064233 100%);
    box-shadow: -10px 0 40px rgba(0,0,0,.25);
    padding: 110px 28px 40px;
    gap: 6px;
  }

  /* Ссылки */
  .menu li{
    list-style: none;
  }

  .menu a{
    display: block;
    padding: 14px 0;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: .3px;
    color: #ffffff;
    text-decoration: none;
    position: relative;
    transition: all .2s ease;
  }

  /* Hover / Tap эффект */
  .menu a:active{
    transform: translateX(4px);
    opacity: .85;
  }

  /* Разделительная линия */
  .menu li:not(:last-child){
    border-bottom: 1px solid rgba(255,255,255,.05);
  }

  /* Блок входа */
  .menu li.mobile-only-divider{
    border: none;
    margin: 20px 0 12px;
  }

  /* Кнопка Вхід */
  .menu-login{
    opacity: .85;
  }

  /* Кнопка Реєстрація */
  .menu-register{
    display: block;
    margin-top: 10px;
    padding: 14px;
    border-radius: 12px;
    background: #ffffff;
    color: #075f48 !important;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
    transition: all .2s ease;
  }

  .menu-register:active{
    transform: scale(.97);
  }

  /* Анимация появления */
  .menu{
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,.0,.2,1);
  }

  .menu.is-open{
    transform: translateX(0);
  }

  /* Бургер красивее */
  .burger span{
    width: 26px;
    height: 3px;
    border-radius: 2px;
    background: #ffffff;
    transition: all .3s ease;
  }

  /* Крестик анимация */
  .menu.is-open + .burger span:nth-child(1){
    transform: rotate(45deg) translate(5px,5px);
  }

}
/* ================= MOBILE BASE ================= */
@media (max-width: 768px) {
  html {
    -webkit-text-size-adjust: 100%;
  }

  html, body {
    width: 100%;
    overflow-x: hidden;
  }

  input, textarea, select {
    font-size: 16px;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  section {
    padding: 48px 0;
  }

  h1 {
    font-size: 28px;
    line-height: 1.2;
  }

  h2 {
    font-size: 22px;
  }

  p {
    font-size: 15px;
    line-height: 1.6;
  }

  .btn {
    width: 100%;
    text-align: center;
    padding: 14px 18px;
    font-size: 15px;
    border-radius: 14px;
  }
}

/* =====================================
   HOME PROGRAM – MOBILE CLEAN UI
===================================== */

@media (max-width: 768px) {

  /* Карточка */
  .home-program-card {
    padding: 14px;
    border-radius: 16px;
  }

  /* Табы компактные */
  .home-program-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
  }

  .home-tab {
    padding: 12px;
    border-radius: 14px;
    background: #f7f8f7;
    flex-direction: column;
    align-items: flex-start;
    min-height: 92px;
  }

  .home-tab-icon svg {
    width: 24px;
    height: 24px;
  }

  .home-tab-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
  }

  .home-tab-sub {
    font-size: 11px;
    opacity: 0.6;
    margin-top: 4px;
  }

  /* Главный блок компактный */
  .home-program-main {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  /* Фото компактное */
  .home-shaikh-photo img {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 16px;
  }

  .shaikh-hover-label {
    display: none;
  }

  /* Текст */
  .home-program-right-inner {
    padding: 0;
  }

  .section-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .home-program-right p {
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 10px;
  }

  /* Кнопка аккуратная */
  .about-btn {
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 12px;
  }

}
/* =====================================
   ПРО УНІВЕРСИТЕТ – MOBILE PREMIUM
===================================== */

@media (max-width: 768px) {

  .home-program-right {
    background: #ffffff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  }

  /* Убираем зеленый фон если он через overlay */
  .home-program-right::before,
  .home-program-right-inner::before {
    display: none !important;
  }

  .section-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f5132;
    margin-bottom: 12px;
  }

  .home-program-right p {
    font-size: 14px;
    line-height: 1.5;
    color: #3a3a3a;
    margin-bottom: 10px;
  }

  .home-program-right p b {
    color: #0f5132;
  }

  .muted {
    opacity: 0.7;
  }

  .about-btn {
    display: block;
    width: 100%;
    margin-top: 14px;
    background: linear-gradient(135deg, #d8b36a, #f0d48a);
    color: #1f1f1f;
    font-weight: 600;
    border-radius: 14px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  }

}
/* =====================================
   PARTNERS – MOBILE FORCE SLIDER
===================================== */

@media (max-width: 768px) {

  /* УБИВАЕМ GRID ПОЛНОСТЬЮ */
  .partners-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 18px;
    padding: 10px 0 20px;
    scroll-snap-type: x mandatory;
  }

  .partners-row::-webkit-scrollbar {
    display: none;
  }

  .partners-row li {
    flex: 0 0 auto !important;
    scroll-snap-align: center;
  }

  /* УМЕНЬШАЕМ ЛОГО */
  .partners-logo {
    height: 45px !important;
    width: auto !important;
    max-width: 120px !important;
    object-fit: contain;
  }

}
/* =====================================
   COURSES MOBILE – CORRECT ALIGN
===================================== */

@media (max-width: 768px) {

  /* 1️⃣ Выравниваем заголовок по карточке */
  .courses-head {
    padding-left: 18px;
    padding-right: 18px;
  }

  .courses__inner {
    padding-left: 0;
    padding-right: 0;
  }

  /* 2️⃣ Карточки чуть компактнее */
  .course-card {
    padding: 18px;
  }

  /* 3️⃣ Делаем кнопки одинаковыми как в 1 карточке */
  .course-card .course-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }

  .course-card .course-actions .btn {
    flex: 0 0 auto;   /* НЕ растягивать */
    width: auto;      /* вернуть нормальную ширину */
  }

}
/* =====================================
   COURSES CTA – MOBILE APP STYLE
===================================== */

@media (max-width: 768px) {

  .courses-cta {
    margin: 24px 18px 10px;
    padding: 18px;
    border-radius: 18px;
    background: #f3f6f4;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  }

  .courses-cta strong {
    font-size: 16px;
    display: block;
    margin-bottom: 6px;
  }

  .courses-cta div:last-child {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* кнопки одинаковой ширины и аккуратные */
  .courses-cta .btn {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    border-radius: 14px;
  }

  .courses-cta .btn--ghost {
    border-width: 2px;
  }

}


/* =====================================
   HERO TITLE FIX – MOBILE
===================================== */

@media (max-width: 768px) {

  .hero-title {
    font-size: 28px;        /* было слишком большое */
    line-height: 1.2;
    letter-spacing: -0.3px;
    word-break: break-word;
    padding-right: 10px;
  }

  .hero-content {
    padding-left: 18px;
    padding-right: 18px;
  }

}
/* =====================================
   FIX BIG GAP BETWEEN SECTIONS – MOBILE
===================================== */

@media (max-width: 768px) {

  /* убираем лишний нижний отступ у партнёров */
  .partners {
    margin-bottom: 20px !important;
    padding-bottom: 20px !important;
  }

  /* убираем лишний верхний отступ у курсов */
  .courses {
    margin-top: 0 !important;
    padding-top: 20px !important;
  }

}


/* =====================================
   EVENTS CALENDAR – MOBILE FIX
===================================== */

@media (max-width: 768px) {

  /* Заголовок по центру */
  .events-head {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .events-head__right {
    display: none; /* кнопку "Як нас знайти" убираем на мобиле */
  }

  .events-title {
    font-size: 22px;
  }

  .events-subtitle {
    font-size: 14px;
  }

  /* Секция в одну колонку */
  .events-shell {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .events-cal,
  .events-list {
    width: 100%;
  }

  /* Верх календаря */
  .events-cal__top {
    padding: 10px 0;
  }

  .events-month {
    font-size: 16px;
  }

  .events-meta {
    font-size: 13px;
  }

  /* Фильтры — горизонтальный скролл */
  .events-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .events-filters::-webkit-scrollbar {
    display: none;
  }

  .events-chip {
    flex: 0 0 auto;
    font-size: 13px;
    padding: 6px 12px;
  }

  /* Дни недели */
  .events-weekdays span {
    font-size: 12px;
  }

  /* Сетка календаря */
  .events-grid {
    gap: 6px;
  }

  .ev-day {
    height: 42px;
    font-size: 13px;
    border-radius: 10px;
  }

  /* Подсказка */
  .events-hint {
    font-size: 12px;
  }

  /* Список событий */
  .events-list__title {
    font-size: 16px;
  }

  .events-list__sel {
    font-size: 13px;
  }

}

/* =====================================
   EVENTS – REMOVE BIG GAP (MOBILE)
===================================== */

@media (max-width: 768px) {

  /* уменьшаем верхний отступ секции */
  .events-section {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
    margin-top: 0 !important;
  }

  /* убираем лишний отступ после заголовка */
  .events-head {
    margin-bottom: 16px !important;
  }

  /* уменьшаем расстояние между календарем и списком */
  .events-shell {
    gap: 18px !important;
  }

}
/* =====================================
   EVENTS CALENDAR – COMPACT MOBILE
===================================== */

@media (max-width: 768px) {

  /* Уменьшаем карточку календаря */
  .events-cal {
    padding: 16px;
    border-radius: 18px;
  }

  /* Верхний блок */
  .events-cal__top {
    padding: 4px 0 10px;
  }

  .events-month {
    font-size: 16px;
    font-weight: 600;
  }

  .events-meta {
    font-size: 12px;
  }

  /* Кнопки стрелок меньше */
  .events-cal__nav {
    width: 36px;
    height: 36px;
  }

  .events-cal__nav svg {
    width: 18px;
    height: 18px;
  }

  /* Фильтры компактнее */
  .events-chip {
    font-size: 12px;
    padding: 6px 10px;
  }

  /* Дни недели */
  .events-weekdays span {
    font-size: 11px;
  }

  /* Сетка дней компактная */
  .events-grid {
    gap: 6px;
  }

  .events-grid button,
  .events-grid div {
    height: 36px;
    font-size: 13px;
    border-radius: 10px;
  }

  /* Уменьшаем подсказку */
  .events-hint {
    font-size: 12px;
    margin-top: 8px;
  }

}

/* =====================================
   HEADER LOGO BALANCE – MOBILE
===================================== */

@media (max-width: 768px) {

  .brand {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  /* логотип */
  .logo,
  .logo--xl {
    height: 52px !important;
    width: auto;
    display: block;
  }

  /* текст рядом */
  .brand-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
  }

  .brand-title strong {
    font-size: 16px;
  }

  .brand-title span {
    font-size: 12px;
  }

}
/* =====================================
   HEADER BRAND ALIGN FIX (ALL DEVICES)
===================================== */

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Логотип */
.logo,
.logo--xl {
  height: 56px;     /* единая высота */
  width: auto;
  display: block;
}

/* Текст */
.brand-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.05;
}

.brand-title strong {
  font-size: 20px;
}

.brand-title span {
  font-size: 14px;
  opacity: 0.9;
}
/* =====================================
   FORCE HEADER ALIGN FIX (DESKTOP + MOBILE)
===================================== */

.bottom-header .brand {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
}

/* Логотип */
.bottom-header .logo,
.bottom-header .logo--xl {
  height: 54px !important;
  width: auto !important;
  display: block !important;
  margin: 0 !important;
}

/* Текст */
.bottom-header .brand-title {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  line-height: 1.05 !important;
  margin: 0 !important;
}

/* Убираем лишние отступы */
.bottom-header {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}
/* =====================================
   DESKTOP: опустить текст бренда ниже
===================================== */

@media (min-width: 992px) {

  .bottom-header .brand-title {
    position: relative;
    top: 10px;   /* регулируй: 3–6px по вкусу */
  }

}
/* =====================================
   HERO CONTENT WIDTH FIX – MOBILE
===================================== */

@media (max-width: 768px) {

  .hero .container {
    max-width: 100%;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box;
  }

  .hero h1 {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

}
/* =====================================
   HERO TITLE FIX – MOBILE WRAP
===================================== */

@media (max-width: 768px) {

  .hero h1 {
    white-space: normal !important;
    word-break: break-word;
    padding-right: 16px;
    box-sizing: border-box;
  }

}
/* =====================================
   EVENTS GRID HARD FIX – MOBILE
===================================== */

@media (max-width: 768px) {

  .events-grid {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .events-grid > * {
    width: 100% !important;
  }

}
/* =====================================
   TEACHERS – MOBILE ADAPTATION
===================================== */

@media (max-width: 768px) {

  /* Заголовок слева */
  .mahads-teachers .events-head {
    text-align: left;
    padding-left: 16px;
    padding-right: 16px;
  }

  .mahads-teachers .teachers-kicker {
    display: block;
    margin-bottom: 4px;
  }

  /* Убираем стрелки */
  .mahads-teachers .slider-btn {
    display: none;
  }

  /* Контейнер */
  .teachers-wrapper {
    overflow: hidden;
  }

  /* Трек делаем свайповым */
  .teachers-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-left: 16px;
    padding-right: 16px;
    -webkit-overflow-scrolling: touch;
  }

  .teachers-track::-webkit-scrollbar {
    display: none;
  }

  /* Карточки компактные */
  .teacher-card {
    flex: 0 0 75%;
    scroll-snap-align: start;
    border-radius: 16px;
  }

  .teacher-card img {
    width: 100%;
    height: auto;
    border-radius: 16px;
  }

  .teacher-card h3 {
    font-size: 15px;
    margin-top: 8px;
    text-align: center;
  }

}
/* =====================================
   MOBILE – UNIFIED SECTION HEAD STYLE
   (перебивает всё существующее)
===================================== */

@media (max-width: 768px) {

  /* Универсальный контейнер заголовков */
  .events-head,
  .courses-head,
  .mahads-teachers .events-head {
    text-align: left !important;
    margin-bottom: 18px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Маленький kicker */
  .events-kicker,
  .courses-kicker,
  .teachers-kicker {
    font-size: 11px !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    display: inline-block !important;
    margin-bottom: 8px !important;
    background: rgba(15,79,61,0.08) !important;
  }

  /* Основные заголовки */
  .events-title,
  .courses-title,
  .teachers-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
  }

}
/* =====================================
   MOBILE – REDUCE SPACE BETWEEN SECTIONS
===================================== */

@media (max-width: 768px) {

  /* уменьшаем нижний отступ курсов */
  .courses {
    margin-bottom: 30px !important;
    padding-bottom: 10px !important;
  }

  /* уменьшаем верхний отступ календаря */
  .events-section {
    margin-top: 30px !important;
    padding-top: 10px !important;
  }

}
/* =====================================
   DESKTOP – FIX HERO BUTTON WIDTH
===================================== */

@media (min-width: 992px) {

  .hero .btn {
    width: auto !important;
    display: inline-flex !important;
  }

  .hero-buttons,
  .hero .btn-wrapper {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
  }

}
/* =====================================
   DESKTOP – CTA BUTTONS FIX
===================================== */

@media (min-width: 992px) {

  /* Контейнер кнопок */
  .courses-cta > div:last-child {
    display: flex !important;
    gap: 18px !important;
    align-items: center !important;
  }

  /* Кнопки */
  .courses-cta .btn {
    width: auto !important;
    min-width: 180px !important;
    padding: 0 26px !important;
    height: 44px !important;
    display: inline-flex !important;
    justify-content: center !important;
  }

}
.ev-day {
  position: relative;   /* обязательно */
}

.ev-dot {
  position: absolute !important;
  top: 6px;
  right: 6px;
  transform: none !important;
  margin: 0 !important;
}
.ev-day {
  overflow: visible;
}
.ev-dot {
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
}
.events-grid .ev-day {
  position: relative !important;
  overflow: visible !important;
}

.events-grid .ev-day .ev-dot {
  position: absolute !important;
  top: -3px !important;
  right: -10px !important;
  width: 8px !important;
  height: 8px !important;
  background: #1f7a5c !important;
  border-radius: 50% !important;
  transform: none !important;
  margin: 0 !important;
}
/* полностью отключаем старое поведение */
.events-grid .ev-day .ev-dot {
  all: unset !important;
  position: absolute !important;
  width: 8px !important;
  height: 8px !important;
  background: #1f7a5c !important;
  border-radius: 50% !important;
  top: -4px !important;
  right: -3px !important;
}
/* ===== LIBRARY ACCESS BUTTON FIX ===== */
.library-access-note .btn--primary {
  width: auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 12px 28px !important;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

/* чтобы не прилипала к тексту */
.library-access-note {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.library-access-note .btn--primary {
 align-self: center;

}
/* ===== FIX BUTTONS ON CONTACTS PAGE ===== */

.page-contacts .contacts-actions .btn {
  width: auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 12px 26px !important;
  border-radius: 999px;
  white-space: nowrap;
}

.page-contacts .contacts-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
/* ===== MOBILE AUTH BUTTONS (как на главной) ===== */

.menu-auth {
  display: none;
}

@media (max-width: 980px){

  .menu-auth {
    display: block;
    margin-top: 10px;
  }

  .menu-login,
  .menu-register {
    display: block;
    text-align: center;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 600;
  }

  /* Вхід — контурная */
  .menu-login {
    border: 1px solid rgba(255,255,255,0.6);
    background: transparent;
    color: #ffffff;
  }

  /* Реєстрація — БЕЛАЯ */
  .menu-register {
    background: #ffffff;
    color: #075f48;
    margin-top: 8px;
  }
}
/* ===== UNIFIED PAGE HERO SPACING (ALL INNER PAGES) ===== */

.page-hero {
  padding-top: 48px !important;
  padding-bottom: 36px !important;
}

/* Мобильная версия */
@media (max-width: 768px){
  .page-hero {
    padding-top: 64px !important;
    padding-bottom: 32px !important;
  }
}
main:not(.home-page) {
  padding-top: 38px;
}

@media (max-width: 768px){
  .slider-btn{
    display:none;
  }
}
/* ===== MOBILE APP STYLE LIBRARY ===== */
@media (max-width: 768px){

  .library-ebooks{
    padding: 32px 0 60px;
  }

  .section-title{
    font-size: 22px;
  }

  .section-subtitle{
    font-size: 14px;
    padding: 0 10px;
  }

  .ebooks-slider-wrapper{
    margin-top: 24px;
  }

  .ebooks-slider{
    display:flex;
    gap:16px;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
    padding: 10px 16px 20px;
  }

  .ebooks-slider::-webkit-scrollbar{
    display:none;
  }

  .ebook-card{
    flex:0 0 85%;
    scroll-snap-align:start;
    border-radius:18px;
  }

  .ebook-card__inner{
    padding:20px;
  }

  .ebook-title{
    font-size:16px;
  }

  .ebook-text{
    font-size:13px;
  }

}
@media (max-width:768px){
  body{
    background:#f5f7f8;
  }

  .ebook-card{
    box-shadow:0 8px 25px rgba(0,0,0,0.08);
  }
}
/* ===== MOBILE 2-COLUMN WITH DESCRIPTION ===== */
@media (max-width: 768px){

  .soon-books{
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    gap:14px;
  }

  .soon-book-card{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    padding:16px 14px;
    border-radius:16px;
    background:#ffffff;
    box-shadow:0 6px 18px rgba(0,0,0,0.06);
  }

  .soon-book-cover{
    width:60px;
    height:90px;
    border-radius:12px;
    background:linear-gradient(135deg,#0f5f48,#0a3f33);
    margin-bottom:10px;
  }

  .soon-book-info h3{
    font-size:13px;
    margin-bottom:6px;
    line-height:1.3;
  }

  .soon-book-info p{
    font-size:11.5px;
    line-height:1.4;
    opacity:.75;
    margin-bottom:8px;

    /* ограничиваем 3 строки */
    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }

  .soon-badge{
    font-size:10px;
    padding:5px 10px;
    border-radius:999px;
    background:#eef4f2;
    color:#0f5f48;
    font-weight:600;
  }

}
.btn--outline{
  border:1.5px solid #0f5f48;
  color:#0f5f48;
  background:transparent;
  padding:14px 22px;
  border-radius:999px;
  font-weight:600;
  text-decoration:none;
  display:inline-block;
  transition:all .2s ease;
}

.btn--outline:hover{
  background:#0f5f48;
  color:#fff;
}
/* ===== SOFT PASTEL LEFT BLOCK ===== */

.edu-step{
  display:flex;
  gap:50px;
  align-items:stretch;
}

.edu-step__media--soft{
  position:relative;
  width:240px;
  min-width:240px;
  border-radius:28px;
  background:linear-gradient(
      135deg,
      #f3f8f6 0%,
      #e9f2ee 50%,
      #f7fbf9 100%
  );
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.edu-soft-number{
  font-size:130px;
  font-weight:800;
  color:#0f5f48;
  opacity:0.05;
  line-height:1;
  user-select:none;
}

@media (max-width:768px){

  .edu-step{
    flex-direction:column;
    gap:24px;
  }

  .edu-step__media--soft{
    width:100%;
    height:150px;
  }

  .edu-soft-number{
    font-size:90px;
  }

}
/* родитель должен растягивать детей */
.edu-step{
  display:flex;
  align-items:stretch; /* ВАЖНО */
  gap:50px;
}

/* левый блок на всю высоту */
.edu-step__media--soft{
  position:relative;
  width:240px;
  min-width:240px;
  border-radius:28px;

  background:linear-gradient(
      180deg,
      #eef5f2 0%,
      #e2eeea 100%
  );

  display:flex;
  align-items:center;
  justify-content:center;

  align-self:stretch;      /* ключевой момент */
}

/* чтобы высота не схлопывалась */
.edu-step__body{
  flex:1;
}

/* цифра */
.edu-soft-number{
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 900;

  font-size: 310px;   /* БОЛЬШЕ */
  line-height: 1;

  color:#0f5f48;
  opacity:0.06;

  user-select:none;
}
.edu-step__media--soft-2{
  background:linear-gradient(
      160deg,
      #e9f2ee 0%,
      #f1e4c4 55%,
      #f6e7b8 100%
  );
}
/* переворачиваем порядок */
.edu-step--reverse{
  flex-direction:row-reverse;
}

/* чтобы отступы оставались аккуратными */
.edu-step--reverse .edu-step__body{
  margin-left:0;
}
@media (max-width:768px){
  .edu-step--reverse{
    flex-direction:column;
  }
}
.edu-step__media--gold{
  background:linear-gradient(
      155deg,
      #fbf6e6 0%,
      #f3e3b4 45%,
      #e8cf8a 100%
  );
}
.edu-step__media--soft{
  background:linear-gradient(
      160deg,
      #e2eeea 0%,
      #d4e6df 35%,
      #f6e7b8 100%
  );
}
@media (max-width:768px){

  .edu-step{
    flex-direction:column;
    gap:24px;
  }

  /* важно — убираем reverse на моб */
  .edu-step--reverse{
    flex-direction:column;
  }

  .edu-step__media--soft,
  .edu-step__media--gold{
    width:100%;
    min-width:100%;
    height:160px;
    border-radius:20px;
  }

  .edu-soft-number{
    font-size:100px;
  }

}
html[dir="rtl"] .events-weekdays span {
direction: rtl;
}
.home-tab-icon{
direction:ltr;
}

.home-tab{
unicode-bidi:isolate;
}
.home-tab-icon svg{
transform: scaleX(1) !important;
direction:ltr;
}
.home-tab-icon{
display:flex;
align-items:center;
justify-content:center;
direction:ltr;
}

.home-tab-icon svg{
flex-shrink:0;
}
.home-tab{
display:flex;
align-items:center;
gap:16px;
}

.home-tab-text{
direction:rtl;
text-align:right;
}
.ar-page{
direction:ltr;
}

.ar-page .home-tab-text{
direction:rtl;
text-align:right;
}
.home-program-tabs{
flex-direction: row !important;
}
.home-program-tabs{
direction:ltr;
}
.home-tab-text{
text-align:center;
}
.abitur-yt-block{
    margin-top: 28px;
    padding: 28px 30px;
    border-radius: 20px;
}
.abitur-yt-block{
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 28px;
}
.abitur-card{
    padding: 36px 42px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-title {
    display: flex;
    align-items: baseline;
    gap: 6px;
    white-space: nowrap;
}

.brand-title strong {
    font-size: 18px;
    line-height: 1;
}

.brand-title span {
    font-size: 14px;
    opacity: 0.9;
}
.brand-title span {
    display: block;
}
.logo--xl {
    height: 48px;
    width: auto;
}
.brand-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
@media (max-width: 768px) {
  .brand-title {
    display: flex;
    flex-direction: column;
    font-size: 14px;
  }

  .brand-title span {
    font-size: 12px;
  }
}
@media (max-width: 768px) {

  .brand {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .brand-title {
    font-size: 13px;
    line-height: 1.1;
    max-width: 65%;
  }

  .brand-title strong {
    font-size: 14px;
    display: block;
  }

  .brand-title span {
    font-size: 11px;
  }

}
@media (max-width: 768px) {
  .brand-title {
    display: flex;
    flex-direction: column;
    font-size: 13px;
  }
}
@media (max-width: 768px) {

  .modal {
    padding-top: 100px !important;
  }

}
@media (max-width: 768px) {

  .modal__dialog {
    position: relative !important;
    top: 100px !important;
  }

}
@media (max-width: 768px) {

 
}
.modal.is-open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: calc(140px + env(safe-area-inset-top));
}

/* =========================================================
   UX-ПОЛИРОВКА: компактный хедер при скролле
   ========================================================= */
.header-wrapper{
  transition: box-shadow .25s ease;
}
.header-wrapper::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-1px;
  height:1px;
  background: rgba(255,255,255,.16);
  opacity:0;
  transition: opacity .25s ease;
}
.header-wrapper.is-scrolled::after{
  opacity:1;
}
.top-header{
  transition: height .25s ease, padding .25s ease, margin .25s ease;
  overflow: hidden;
}
.bottom-header{
  transition: height .25s ease;
  overflow: hidden; /* страховка: ничего не вылезает за пределы сжатой шапки */
}
.bottom-header .logo--xl{
  transition: height .25s ease, width .25s ease;
}
.menu a{
  transition: padding .25s ease;
}
.burger{
  transition: width .25s ease, height .25s ease;
}
body{
  transition: padding-top .25s ease;
}

/* На скролле прячем верхню строку (телефон/пошта/мова/вхід) повністю */
.header-wrapper.is-scrolled .top-header{
  height: 0 !important;
  min-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}
.header-wrapper.is-scrolled .bottom-header{
  height: 58px !important;
}
.header-wrapper.is-scrolled .bottom-header .logo--xl{
  height: 38px !important;
  width: 38px !important;
}
.header-wrapper.is-scrolled .menu a{
  padding: 7px 10px !important;
}
.header-wrapper.is-scrolled .burger{
  width: 38px !important;
  height: 38px !important;
}
.header-wrapper.is-scrolled{
  box-shadow: 0 6px 20px rgba(0,0,0,.28);
}

@media (prefers-reduced-motion: reduce){
  .header-wrapper, .header-wrapper::after, .top-header, .bottom-header, .bottom-header .logo--xl, .menu a, .burger, body{
    transition: none !important;
  }
}

/* =========================================================
   UX-ПОЛИРОВКА: рядок довіри під hero — бігуча стрічка
   ========================================================= */
.trust-strip{
  background: #fff;
  border-top: 1px solid #e8ecea;
  border-bottom: 1px solid #e8ecea;
  overflow: hidden;
  flex-shrink: 0; /* body{display:flex;flex-direction:column} стискає елементи з overflow:hidden до 0 — забороняємо */
}
.trust-marquee{
  overflow: hidden;
  width: 100%;
  display: block;
  flex-shrink: 0;
}
.trust-track{
  display: flex;
  align-items: center;
  width: max-content;
  gap: 28px;
  padding: 16px 0;
  white-space: nowrap;
  animation: trust-marquee-scroll 34s linear infinite;
}
.trust-marquee:hover .trust-track{
  animation-play-state: paused;
}
.trust-item{
  font-size: 13.5px;
  color: #4a5751;
}
.trust-item b{
  color: #0f1715;
  font-weight: 700;
}
.trust-strip .trust-dot{
  color: #d4b97a;
  display: inline-block;
  animation: trust-dot-pulse 2.4s ease-in-out infinite;
}
@keyframes trust-marquee-scroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
@keyframes trust-dot-pulse{
  0%, 100% { transform: scale(1) rotate(0deg); opacity: .75; }
  50% { transform: scale(1.35) rotate(90deg); opacity: 1; }
}
@media (prefers-reduced-motion: reduce){
  .trust-track{ animation: none !important; }
  .trust-strip .trust-dot{ animation: none !important; }
  .trust-marquee{ overflow-x: auto; }
  .trust-track[aria-hidden="true"]{ display: none; }
}
@media (max-width: 640px){
  .trust-track{
    gap: 16px;
    padding: 14px 0;
  }
  .trust-item{
    font-size: 12.5px;
  }
}

/* =========================================================
   UX-ПОЛИРОВКА: плавна поява секцій при скролі
   ========================================================= */
.reveal-section{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.19,1,.22,1), transform .7s cubic-bezier(.19,1,.22,1);
}
.reveal-section.is-visible{
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce){
  .reveal-section{
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* =========================================================
   UX-ПОЛИРОВКА: іконки програм — золотий hover
   (перебиває .home-tab-icon svg{color:#1a1a1a!important} з базового CSS —
   та сама специфічність, але цей блок нижче за кодом, тому виграє)
   ========================================================= */
.home-tab-icon svg{
  color: #075f48 !important;
  transition: color .2s ease;
}
.home-tab:hover .home-tab-icon svg{
  color: #d4b97a !important;
}
@media (prefers-reduced-motion: reduce){
  .home-tab-icon svg{ transition: none !important; }
}

/* =========================================================
   UX-ПОЛИРОВКА: фото кампусу за зеленою плашкою — трохи помітніше
   ========================================================= */
.home-program-right{
  background: linear-gradient(rgba(7,95,72,0.62), rgba(7,95,72,0.62)),
    url("/images/project-universitet-4.jpg") center/cover no-repeat !important;
}

/* =========================================================
   UX-ПОЛИРОВКА: захист "N років" від можливого reverse порядку
   ========================================================= */
.home-tab-sub,
.home-tab-title{
  unicode-bidi: isolate;
  direction: ltr;
}
.ar-page .home-tab-sub,
.ar-page .home-tab-title{
  direction: rtl;
}

/* =========================================================
   UX-ПОЛИРОВКА: підпис під фото шейха — завжди видно
   ========================================================= */
.shaikh-hover-label{
  opacity: 1 !important;
  transform: none !important;
}
@media (max-width: 900px){
  .shaikh-hover-label{
    display: block !important;
    position: static;
    background: var(--brand);
    color: #fff;
    text-align: center;
    padding: 10px 12px;
    border-radius: 0 0 16px 16px;
  }
}

/* =========================================================
   UX-ПОЛИРОВКА: єдиний тон фото викладачів
   ========================================================= */
.teacher-card img{
  filter: saturate(1.04) contrast(1.03);
  transition: transform .25s ease, filter .25s ease;
}
.teacher-card img:hover{
  filter: saturate(1.1) contrast(1.05);
}

/* =========================================================
   UX-ПОЛИРОВКА: картки курсів — однакова ширина, факти, кнопки
   ========================================================= */
.course-card,
.course-card:first-child{
  flex: 0 0 360px !important;
  min-width: 360px !important;
  transform: none !important;
}
.course-card:hover{
  transform: translateY(-10px) !important;
}
.course-desc{
  min-height: 48px;
}
.course-card__badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #4a3a12;
  background: linear-gradient(135deg, #f3e2a0, #d9b877);
  box-shadow: 0 6px 16px rgba(212,185,122,.35);
  padding: 5px 12px;
  border-radius: 999px;
  width: fit-content;
  flex-shrink: 0;
}

/* =========================================================
   UX-ПОЛИРОВКА: картки курсів — перероблено без обрізання
   ========================================================= */
.course-card__top{
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 14px;
}
.course-logo--icon{
  height: 56px;
  width: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft, #e7f0ea);
  color: #0b5f4a;
  margin-bottom: 14px;
}

/* На десктопі показуємо всі 3 картки одразу — без бічної обрізки слайдером */
@media (min-width: 901px){
  .courses-slider-wrapper{
    padding: 0 !important;
  }
  .courses-slider{
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    overflow: visible !important;
    gap: 28px !important;
  }
  .course-card,
  .course-card:first-child{
    flex: initial !important;
    min-width: 0 !important;
    width: 100% !important;
    grid-column: auto !important;
  }
  .slider-arrow{
    display: none !important;
  }
}

/* ширший контейнер курсів — картки менш стиснуті */
.courses__inner{
  max-width: 1180px !important;
}

/* соцмережі картки 3 — окремим рядом над футером картки, щоб не зсувати кнопку */
.course-social{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

/* однакова висота під розклад — кнопки "Записатися" тепер на одному рівні */
.course-bottom > span{
  display: block;
  min-height: 38px;
}

/* =========================================================
   UX-ПОЛИРОВКА: єдиний заголовок секцій «Партнери» / «Курси»
   ========================================================= */
.section-head-pro{
  max-width: 620px;
  margin: 0 auto 44px;
  text-align: center;
  flex-shrink: 0;
}
.section-head-pro__kicker{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #0b7b5a;
}
.section-head-pro__kicker::before,
.section-head-pro__kicker::after{
  content: "";
  width: 20px;
  height: 1px;
  background: #d4b97a;
}
.section-head-pro__title{
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 800;
  color: #0f1715;
  margin: 14px 0 12px;
  letter-spacing: -.01em;
}
.section-head-pro__sub{
  color: rgba(15,23,21,.62);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 600px){
  .section-head-pro{ margin-bottom: 32px; }
  .section-head-pro__kicker::before,
  .section-head-pro__kicker::after{ width: 12px; }
}

/* ---- Партнери: м'яка тонована зона + бігуча стрічка ---- */
.partners{
  background: linear-gradient(180deg, #ffffff 0%, #f8f3e8 100%);
  padding: 88px 0 76px;
  flex-shrink: 0;
}
.partners-marquee{
  overflow: hidden;
  width: 100%;
  flex-shrink: 0;
  margin-top: 8px;
}
.partners-track{
  display: flex;
  align-items: center;
  width: max-content;
  gap: 56px;
  padding: 4px 28px;
  animation: partners-scroll 42s linear infinite;
  flex-shrink: 0;
}
.partners-marquee:hover .partners-track{
  animation-play-state: paused;
}
.partners-tile{
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
}
.partners-tile img{
  height: 46px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  filter: grayscale(100%) opacity(.55);
  transition: filter .25s ease, transform .25s ease;
}
.partners-tile:hover img{
  filter: grayscale(0%) opacity(1);
  transform: translateY(-2px);
}
@keyframes partners-scroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .partners-track{ animation: none !important; }
  .partners-marquee{ overflow-x: auto; }
  .partners-track > span[aria-hidden="true"]{ display: none; }
}

/* ---- Курси: продовження плавного переходу ---- */
.courses{
  background: linear-gradient(180deg, #f8f3e8 0%, #ffffff 110px, #ffffff 100%);
  flex-shrink: 0;
}

/* =========================================================
   UX-ПОЛИРОВКА: Календар заходів
   ========================================================= */
.events-shell{
  align-items: stretch !important;
}
.events-list{
  display: flex;
  flex-direction: column;
}

/* сьогодні — золотий контур замість ледь помітного зеленого */
.ev-day.is-today{
  box-shadow: 0 0 0 2px #c9a24d inset !important;
  font-weight: 800;
}
.ev-day.is-active.is-today{
  box-shadow: 0 0 0 2px #fff inset, 0 0 0 4px #c9a24d !important;
}

/* дні тижня — трохи більше характеру */
.events-weekdays{
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 700;
}

/* порожній стан — по центру, з іконкою і закликом до дії */
.events-empty{
  display: block;
  min-height: 280px;
  flex: 1;
}
.events-empty__inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 232px;
  gap: 12px;
}
.events-empty__icon{
  color: #0b7b5a;
  opacity: .4;
}
.events-empty__text{
  margin: 0;
  line-height: 1.6;
  max-width: 26ch;
}
.events-empty__cta{
  margin-top: 2px;
  font-weight: 600;
  font-size: 13px;
  color: #0b7b5a;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: opacity .2s ease;
}
.events-empty__cta:hover{
  opacity: .7;
}
.events-cards{
  flex: 1;
}

/* =========================================================
   UX-ПОЛИРОВКА: Викладачі Магаду — статична галерея
   ========================================================= */
.mahads-teachers{
  padding: clamp(56px,8vw,96px) 0;
  flex-shrink: 0;
}
.teachers-marquee{
  width: 100%;
  flex-shrink: 0;
  margin-top: 8px;
}
.teachers-track{
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 32px;
  padding: 14px 28px 28px;
  flex-shrink: 0;
}
.teacher-tile{
  flex-shrink: 0;
  width: 172px;
  text-align: center;
}
.teacher-tile__photo{
  width: 152px;
  height: 152px;
  margin: 0 auto 16px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, #d4b97a, #f3e2a0 55%, #d4b97a);
  box-shadow: 0 14px 30px rgba(11,95,74,.14);
  transition: transform .3s ease, box-shadow .3s ease;
}
.teacher-tile__photo img{
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid #fff;
}
.teacher-tile:hover .teacher-tile__photo{
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(11,95,74,.22);
}
.teacher-tile__name{
  margin: 0 0 4px;
  font-size: 15.5px;
  font-weight: 700;
  color: #0f1715;
}
.teacher-tile__role{
  font-size: 11.5px;
  color: #6e7a74;
  text-transform: uppercase;
  letter-spacing: .05em;
}
@media (max-width: 600px){
  .teacher-tile{ width: 140px; }
  .teacher-tile__photo{ width: 124px; height: 124px; }
}

/* ---- Навігація: випадаюче меню "Освіта" ---- */
.has-submenu{
  position: relative;
}
.has-submenu::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
}
.menu-link-parent{
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.menu-caret{
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  transition: transform .2s ease;
}
.has-submenu:hover .menu-caret,
.has-submenu:focus-within .menu-caret{
  transform: rotate(180deg);
}
.submenu{
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 981px){
  .menu{ overflow: visible; }
  .submenu{
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    min-width: 230px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 46px rgba(0,0,0,.16);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 500;
  }
  .has-submenu:hover .submenu,
  .has-submenu:focus-within .submenu{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
  .submenu li{ margin: 0; }
  .submenu a{
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    color: #0f1715 !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 1;
  }
  .submenu a:hover,
  .submenu a.active{
    background: rgba(7,95,72,.08);
    color: #075f48 !important;
  }
}
@media (max-width: 980px){
  .menu-caret{ display: none; }
  .submenu{
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 0 0 14px;
    padding-left: 14px;
    border-left: 2px solid rgba(255,255,255,.18);
  }
  .submenu a{
    color: rgba(255,255,255,.82);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
  }
  .submenu a.active{
    color: #fff;
    font-weight: 700;
  }
}

