* { box-sizing: border-box; margin: 0; padding: 0; }

@font-face {
  font-family: 'BalsamiqSans';
  src: url('BalsamiqSans-Regular.ttf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

html {
  scrollbar-width: thin;
  scrollbar-color: #F2A49B #fff;
  scroll-behavior: smooth;
}

html::-webkit-scrollbar { width: 6px; }
html::-webkit-scrollbar-track { background: #fff; }
html::-webkit-scrollbar-thumb { background: #F2A49B; border-radius: 99px; }
html::-webkit-scrollbar-thumb:hover { background: #E8857A; }

body {
  font-family: 'Montserrat', sans-serif;
  color: #1a1a1a;
  background: #fff;
  overflow-y: scroll;
}

.site-header {
  background: #fff;
  position: static;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #f0eeec;
  padding-top: 40px;
  padding-bottom: 26px;
}

.site-footer {
  background: #fff;
  border-top: 1px solid #c9c3bc;
}

.site-footer .wrap {
  padding-top: 32px;
  padding-bottom: 28px;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 28px;
}

.footer-copy {
  font-size: 13px;
  color: #666;
  font-weight: 500;
  display: block;
}

.footer-docs {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-doc-link {
  font-size: 13px;
  color: #666;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.footer-doc-link:hover { color: #6060d0; }

.footer-contacts {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 120px 16px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-contact-link {
  font-size: 13px;
  color: #666;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact-link:hover { color: #6060d0; }

.footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f0eeec;
  color: #555;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.footer-social-link:hover { transform: translateY(-2px); }

.footer-social-link[aria-label="TikTok"]:hover { background: #000; color: #fff; }
.footer-social-link[aria-label="Telegram"]:hover { background: #229ED9; color: #fff; }
.footer-social-link[aria-label="ВКонтакте"]:hover { background: #0077FF; color: #fff; }

.course-modal-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: #E79A9B;
    color: #fff;
    text-align: center;
    padding: 14px 20px;
    border-radius: 10px;
    min-width: 170px;
    font-size: 17px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    position: relative;
}

.course-modal-price:hover {
    opacity: 0.88;
    transform: scale(1.01);
}

/* Старая цена — зачёркнутая и поменьше */
.course-price-old {
    font-size: 14px;
    opacity: 0.7;
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.7);
}

/* Новая цена — крупная и жирная */
.course-price-new {
    font-size: 20px;
    font-weight: 800;
}

/* ✅ Зелёная плашка со скидкой */
.course-discount-badge {
    display: inline-block;
    background: #93af8b;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: 4px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.35);
    animation: discountPulse 2s ease-in-out infinite;

    position: absolute;
    top: -10px;
    right: -8px;
    z-index: 2;
}

/* Анимация пульсации для привлечения внимания */
@keyframes discountPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.course-modal-discount-wrap {
  position: relative;
}

.course-modal-price-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #A4B590;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 6px;
  pointer-events: none;
  font-family: 'Montserrat', sans-serif;
}

.course-card-price-wrap {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 5px;
}

.lp-quality-wrap { position: relative; flex-shrink: 0; }

.lp-quality-btn {
  font-size: 11px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  padding: 6px 8px;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s;
}
.lp-quality-btn:hover { color: #F2A49B; }

.lp-quality-menu {
  position: absolute; bottom: calc(100% + 8px); right: 50%;
  background: #1e1e1e; border: 1px solid #333; border-radius: 12px;
  padding: 6px; display: flex; flex-direction: column; gap: 2px;
  min-width: 90px; box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  opacity: 0; pointer-events: none;
  transform: translateX(50%) translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease; z-index: 10;
}
.lp-quality-menu.open {
  opacity: 1; pointer-events: all; transform: translateX(50%) translateY(0);
}
.lp-quality-item {
  padding: 7px 12px; font-size: 13px; font-weight: 600;
  color: #aaa; border-radius: 8px; cursor: pointer; text-align: center;
  transition: background 0.15s, color 0.15s;
}
.lp-quality-item:hover { background: rgba(242,164,155,0.15); color: #F2A49B; }
.lp-quality-item.active { color: #F2A49B; background: rgba(242,164,155,0.12); }



.course-modal-price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.course-modal-price-old,
.course-modal-price-badge,
.course-card-price-old {
  display: none !important;
}

.course-card-detail-btn {
  display: block;
  width: 100%;
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 120px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 50%;
}

.brand-sep {
  display: inline-block;
  width: 2px;
  height: 36px;
  background: #c9bfb8;
  margin: 0 16px;
}

.brand-title {
  font-weight: 900;
  font-size: 30px;
  letter-spacing: 1.5px;
  color: #2a1a0e;
  text-transform: uppercase;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  padding-left: 40px;
}

.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.main-nav a {
  color: #2b1f1b;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  position: relative;
  padding-bottom: 2px;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: #2b1f1b;
  border-radius: 1px;
}

.cta {
  background: #E8857A;
  color: #fff;
  padding: 14px 52px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  white-space: nowrap;
}

/* ============================================================
   SCROLL TO TOP BUTTON
   ============================================================ */

.scroll-top-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: #E79A9B;              /* под стиль сайта — можешь поменять */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(224, 90, 79, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background 0.2s;
    z-index: 9998;
    padding: 0;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: #d98889;
    transform: translateY(-2px);
}

.scroll-top-btn:active {
    transform: translateY(0);
}

/* Мобильная версия */
@media (max-width: 768px) {
    .scroll-top-btn {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
    }
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  flex-shrink: 0;
}

.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #2b1f1b;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border-bottom: 1px solid #f0eeec;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.mobile-menu.open {
  max-height: 400px;
  padding: 16px 0 24px;
}

.mobile-menu a {
  display: block;
  color: #2b1f1b;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  padding: 14px 24px;
  border-bottom: 1px solid #f5f3f1;
}

.mobile-menu a:last-child { border-bottom: none; }

.mobile-menu .cta-mobile {
  margin: 12px 24px 0;
  background: #E8857A;
  color: #fff;
  text-align: center;
  border-radius: 12px;
  padding: 14px;
  font-weight: 700;
  font-size: 16px;
  border-bottom: none;
}

.hero {
  min-height: 460px;
  background-image: url("img/Main/imagesdfsdsdf.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  display: flex;
  align-items: center;
  position: relative;
}

.hero h1 {
  font-family: 'BalsamiqSans', 'Montserrat', sans-serif;
  font-size: 54px;
  line-height: 1.13;
  font-weight: 900;
  color: #1a1a1a;
  padding: 60px 0 60px 80px;
}

.hero .highlight {
  display: inline;
  background: linear-gradient(90deg, rgb(255, 159, 131) 0%, rgb(255, 203, 203) 100%);
  background-repeat: no-repeat;
  background-size: 100% 45%;
  background-position: 0 100%;
  padding-right: 8px;
}

.section-highlight {
  display: inline;
  background: linear-gradient(90deg, #FFE5BE 0%, #fff3e0 100%);
  background-repeat: no-repeat;
  background-size: 100% 45%;
  background-position: 0 100%;
  padding-right: 8px;
}

.about {
  padding: 60px 120px 32px;
  background: #fff;
}

.about-title {
  font-family: 'BalsamiqSans', 'Montserrat', sans-serif;
  text-align: center;
  font-size: 38px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 32px;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  position: relative;
  padding: 4px 12px;
  border-radius: 4px;
}

.about-text {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 16px;
  font-weight: 500;
  color: #444;
  line-height: 1.7;
  text-align: center;
}

.about-welcome {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
}

.about-slogan {
  font-weight: 800;
  color: #E79A9B;
  font-size: 17px;
}

@media (max-width: 1279px) { .about { padding: 60px 48px 32px; } }
@media (max-width: 1024px) { .about { padding: 48px 32px 24px; } .about-title { font-size: 30px; } }
@media (max-width: 640px)  { .about { padding: 40px 16px 20px; } .about-title { font-size: 24px; } }

.courses {
  padding: 32px 120px 60px;
  background: #fff;
}

.courses-title {
  font-family: 'BalsamiqSans', 'Montserrat', sans-serif;
  text-align: center;
  font-size: 38px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 4px;
}

.courses-grid {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: flex-start;
}

.course-card {
  width: 300px;
  position: relative; 
  border-radius: 16px;
  overflow: visible;
  display: flex;
  flex-direction: column;
}



.course-card.purple { background: #FAE0D8; }
.course-card.yellow { background: #FAE0D8; }

.course-badge {
    position: absolute;
    top: -25px;
    left: 16px;         
    
    background: linear-gradient(135deg, #E8857A, #F2A49B);
    color: #fff;
    font-family: 'BalsamiqSans', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 6px 14px 6px 12px;
    border-radius: 8px 8px 0 0;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(232, 133, 122, 0.4);
}

.course-card-img {
  background: #fff;
  border-radius: 12px;
  margin: 16px;
  border: none;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
}

.course-card-img img {
  max-height: 140px;
  width: 100%;
  object-fit: contain;
  background: transparent;
  border: none;
  display: block;
}

.course-card.purple .course-card-img { padding: 0; }

.course-card.purple .course-card-img img {
  max-height: 100%;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
}

.course-card.yellow .course-card-img { padding: 0; background: #fff; }

.course-card.yellow .course-card-img img {
  max-height: 100%;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
}

.course-card-body {
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  margin-bottom: 14px;
}

.course-card-title {
  font-size: 16px;
  font-weight: 800;
  color: #1a1a1a;
  text-transform: uppercase;
  line-height: 1.3;
  text-align: center;
}

.course-card-detail-btn {
  display: block;
  width: 100%;
  background: #E79A9B;
  color: #fff;
  text-align: center;
  padding: 14px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  border: none;
  cursor: pointer;
  margin-top: auto;
  transition: opacity 0.2s;
}

.course-card-detail-btn:hover { opacity: 0.88; }

.course-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.course-card-price-tag {
  font-size: 15px;
  font-weight: 700;
  color: #E79A9B;
  font-family: 'Montserrat', sans-serif;
  white-space: nowrap;
}

.course-modal-desc {
  font-size: 13px;
  color: #444;
  line-height: 1.6;
  margin-bottom: 6px;
}

.course-modal-badge {
  font-size: 13px;
  font-weight: 700;
  color: #E79A9B;
  margin-bottom: 12px;
}

.course-modal-teacher {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: #666;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: #fdf0ee;
  border-radius: 8px;
}

.course-modal-teacher-name {
  font-weight: 700;
  color: #1a1a1a;
  font-size: 13px;
}

.course-modal-program {
  font-size: 12px;
  color: #444;
  line-height: 1.9;
  margin-bottom: 16px;
}

.course-modal-program-title {
  font-weight: 700;
  font-size: 13px;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.course-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.course-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.course-modal {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 760px;
  margin: 16px;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.34,1.3,0.64,1);
  position: relative;
  max-height: 90vh;
}

.course-modal-overlay.active .course-modal { transform: translateY(0) scale(1); }

.course-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e0dbd6;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}

.course-modal-close:hover { background: #d0c9c2; }

.course-modal-img.gradient-img {
    flex: 0 0 33.333%;
    background: #f5ccc0;
    min-height: 420px;
    position: relative;
    overflow: hidden;  /* ← ОСТАВЛЯЕМ, но картинка будет поверх */
}

/* ✅ Картинка выходит за пределы родителя через position: absolute */
.course-modal-img.gradient-img img {
    position: absolute;
    top: 50%;
    left: 50%;
    
    /* ✅ Картинка в ПОЛНЫЙ размер */
    width: 2000% !important;
    height: 1200% !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 120% !important;
    
    /* ✅ Отключаем object-fit */
    object-fit: none !important;
    object-position: unset !important;
    
    /* ✅ Смещаем картинку целиком */
    transform: translate(-55%, -50%) scale(0.5);
    /*          ↑ смещение по X   ↑ центрирование по Y  ↑ масштаб */
    
    display: block;
    z-index: 1;
}

.course-modal-img {
  flex: 0 0 33.333%;
  background: #f5ccc0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 420px;
}

.course-modal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 27% center;
  display: block;
}

.course-modal-info {
  flex: 1;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.course-modal-title {
  font-size: 22px;
  font-weight: 800;
  color: #1a1a1a;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-family: 'Montserrat', sans-serif;
  flex-shrink: 0;
  padding: 40px 48px 0 36px;
}

.course-modal-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0 48px 0 36px;
}

.course-modal-list {
  list-style: disc;
  padding-left: 18px;
  font-size: 14px;
  color: #333;
  line-height: 1.8;
  margin-bottom: 24px;
}

.course-modal-bottom {
  flex-shrink: 0;
  padding: 16px 48px 32px 36px;
  border-top: 1px solid #f0eeec;
}

.course-modal-installment {
  font-size: 13px;
  color: #E79A9B;
  font-weight: 700;
  margin-top: 8px;
  margin-bottom: 0;
  text-align: right;
}

.course-modal-price {
  display: block;
  width: 100%;
  background: #E79A9B;
  color: #fff;
  text-align: center;
  padding: 14px;
  border-radius: 10px;
  min-width: 170px;
  font-size: 17px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.course-modal-price:hover { opacity: 0.88; }

.payment-modal-inner {
  padding: 36px 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.payment-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin: 0;
}

.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.payment-option {
  background: #fdf0ee;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 14px 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}

.payment-option.selected {
  border-color: #E79A9B;
  background: #fce8e6;
}

.pay-option-btn {
  width: 100%;
  background: #E79A9B;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 6px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  line-height: 1.3;
  white-space: normal;
  transition: background 0.15s;
  pointer-events: none;
}

.payment-option.selected .pay-option-btn { background: #EB7A87; }

.payment-option-hint {
  font-size: 12px;
  color: #888;
  text-align: center;
}

.pay-submit {
  width: 100%;
  background: #E79A9B;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.2s;
}

.pay-submit:not([disabled]) { opacity: 1; cursor: pointer; }
.pay-submit[disabled] { opacity: 0.4; cursor: default; }

.success-modal-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 12px 8px 8px;
}

.success-modal-icon {
  font-size: 52px;
  line-height: 1;
  margin-bottom: 4px;
}

.pay-anim-icon {
  display: block;
  width: 88px;
  height: 88px;
  margin-bottom: 4px;
}

.pay-anim-ring,
.pay-anim-mark {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pay-anim-icon--success .pay-anim-ring,
.pay-anim-icon--success .pay-anim-mark { stroke: #4fbf67; }

.pay-anim-icon--error .pay-anim-ring,
.pay-anim-icon--error .pay-anim-mark { stroke: #eb6a6a; }

.modal-overlay.active .pay-anim-icon {
  animation: payIconPop .35s ease-out both;
}

.modal-overlay.active .pay-anim-ring {
  stroke-width: 5;
  stroke-dasharray: 195;
  stroke-dashoffset: 195;
  transform: rotate(-90deg);
  transform-origin: center;
  animation: payRingDraw .55s ease-out forwards;
}

.modal-overlay.active .pay-anim-mark {
  stroke-width: 6;
  stroke-dasharray: 42;
  stroke-dashoffset: 42;
  animation: payMarkDraw .35s ease-out .45s forwards;
}

.modal-overlay.active .pay-anim-mark--second {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation-delay: .62s;
}

@keyframes payRingDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes payMarkDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes payIconPop {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Cookie consent island */
.cookie-island {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 420;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(700px, calc(100vw - 32px));
  padding: 16px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.16), 0 2px 10px rgba(0, 0, 0, 0.06);
  opacity: 0;
  transform: translateX(-50%) translateY(150%);
  transition: transform 0.55s cubic-bezier(0.22, 1.15, 0.36, 1), opacity 0.35s ease;
}
.cookie-island.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.cookie-island.leaving {
  opacity: 0;
  transform: translateX(-50%) translateY(150%);
  pointer-events: none;
}
.cookie-island-text {
  flex: 1;
  min-width: 0;
}
.cookie-island-text strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
  font-weight: 800;
  color: #1a1a1a;
}
.cookie-island-text span {
  font-size: 12.5px;
  line-height: 1.55;
  color: #8a8a8a;
  font-weight: 500;
}
.cookie-island-text a {
  color: #E79A9B;
  text-decoration: underline;
}
.cookie-island-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 11px 20px;
  border: none;
  border-radius: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.cookie-btn--accept {
  background: #EB7A87;
  color: #fff;
  box-shadow: 0 4px 14px rgba(235, 122, 135, 0.35);
}
.cookie-btn--accept:hover { background: #e06b79; }
.cookie-btn--decline {
  background: transparent;
  color: #9b9b9b;
  border: 1.5px solid #e3dedb;
}
.cookie-btn--decline:hover {
  color: #555;
  border-color: #cfc9c6;
}

.success-modal-title {
  font-size: 24px;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.2;
}

.success-modal-text {
  font-size: 14px;
  color: #888;
  font-weight: 500;
  line-height: 1.6;
  margin: 0;
}

.success-modal-sub {
  display: block;
  font-size: 13px;
  color: #9b9999;
  font-weight: 400;
  margin-top: 2px;
}

.success-modal-btn { margin-top: 12px; width: 100%; }

.success-modal-divider {
  width: 48px;
  height: 3px;
  background: #F2A49B;
  border-radius: 99px;
  margin: 4px 0;
}

.how-it-works {
  padding: 60px 120px;
  background: #fff;
  text-align: center;
}

.how-title {
  font-family: 'BalsamiqSans', 'Montserrat', sans-serif;
  font-size: 38px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 48px;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
}

.steps {
  display: flex;
  justify-content: center;
  gap: 40px;
  align-items: flex-end;
  text-align: center;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 260px;
  gap: 16px;
}

.step-left  { margin-right: 50px; }
.step-right { margin-left:  50px; }

.step-icon-wrap {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.step-icon-wrap img { max-width: 100%; max-height: 100%; }

.icon-step {
  width: 150px;
  height: 150px;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.step-left .icon-step  { margin-top: -20px; }
.step-right .icon-step { margin-top: -40px; }

.step-num {
  position: absolute;
  top: 50%;
  left: -54px;
  transform: translateY(-50%);
  z-index: 20;
  width: 52px;
  height: 52px;
  background: #E79A9B;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.step-label {
  font-size: 15px;
  color: #333;
  font-weight: 600;
  line-height: 1.3;
}

.tg-banner {
  margin: 0 120px 60px;
  border: 2px solid #E79A9B;
  border-radius: 16px;
  display: flex;
  align-items: center;
  padding: 24px 36px;
  gap: 24px;
}

.tg-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tg-icon img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.tg-text {
  flex: 1;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  text-align: left;
}

.tg-btn {
  background: #E79A9B;
  color: #fff;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  font-family: 'Montserrat', sans-serif;
  border-color: #E79A9B;
}

.works-nashix-uch {
  padding: 60px 120px;
}

.works-title {
  font-family: 'BalsamiqSans', 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 4px;
}

.works-gallery {
  background: #ffc7d8;
  padding: 0;
  margin: 0 -120px;
  columns: 4;
  column-gap: 0;
}

.works-photo {
  break-inside: avoid;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.works-photo img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 1279px) {
  .wrap             { padding: 0 48px; }
  .courses          { padding: 32px 48px 60px; }
  .how-it-works     { padding: 60px 48px; }
  .tg-banner        { margin: 0 48px 60px; }
  .works-nashix-uch { padding: 60px 48px; }
  .works-gallery    { margin: 0 -48px; }
  .footer-bottom    { padding: 18px 48px; }
  .footer-contacts  { padding: 18px 48px 14px; }
  .hero h1          { font-size: 46px; padding: 60px 0 60px 48px; }
  .brand-title      { font-size: 26px; }
  .step-left        { margin-right: 20px; }
  .step-right       { margin-left: 20px; }
}

@media (max-width: 1024px) {
  .site-header      { padding-top: 24px; padding-bottom: 18px; }
  .wrap             { padding: 0 32px; }
  .brand-title      { font-size: 22px; letter-spacing: 1px; }
  .brand-logo       { width: 38px; height: 38px; }
  .brand-sep        { height: 28px; margin: 0 12px; }
  .nav-group        { padding-left: 0; }
  .nav-group .cta   { padding: 10px 22px; font-size: 14px; border-radius: 10px; }
  .burger           { display: flex; }
  .main-nav         { display: none; }
  .hero             { min-height: 320px; }
  .hero h1          { font-size: 38px; padding: 40px 0 40px 32px; }
  .courses          { padding: 24px 32px 48px; }
  .courses-title    { font-size: 30px; }
  .courses-grid     { flex-wrap: wrap; gap: 24px; }
  .course-card      { width: calc(50% - 12px); min-width: 240px; }
  .how-it-works     { padding: 48px 32px; }
  .how-title        { font-size: 30px; margin-bottom: 36px; }
  .steps            { gap: 24px; }
  .step-left        { margin-right: 0; }
  .step-right       { margin-left: 0; }
  .step             { width: 160px; }
  .step-icon-wrap   { width: 150px; height: 150px; }
  .icon-step        { width: 150px; height: 150px; }
  .step-num         { width: 44px; height: 44px; font-size: 16px; left: -42px; }
  .tg-banner        { margin: 0 32px 48px; padding: 20px 24px; gap: 16px; }
  .tg-text          { font-size: 16px; }
  .tg-btn           { padding: 12px 24px; font-size: 15px; }
  .works-nashix-uch { padding: 48px 32px; }
  .works-gallery    { margin: 0 -32px; columns: 3; }
  .footer-bottom    { padding: 16px 32px; }
  .footer-contacts  { padding: 16px 32px 12px; }
}

@media (max-width: 640px) {
  .site-header      { padding-top: 16px; padding-bottom: 14px; }
  .wrap             { padding: 0 16px; }
  .brand-title      { font-size: 18px; letter-spacing: 0.5px; }
  .brand-logo       { width: 32px; height: 32px; }
  .brand-sep        { height: 22px; margin: 0 10px; }
  .nav-group .cta   { padding: 9px 16px; font-size: 13px; border-radius: 10px; }
  .main-nav         { display: none; }
  .burger           { display: flex; }
  .hero             { min-height: 240px; }
  .hero h1          { font-size: 26px; line-height: 1.2; padding: 32px 20px; }
  .courses          { padding: 20px 16px 40px; }
  .courses-title    { font-size: 24px; }
  .courses-grid     { flex-direction: column; align-items: center; gap: 20px; }
  .course-card      { width: 100%; max-width: 360px; }
  .how-it-works     { padding: 40px 16px; }
  .how-title        { font-size: 24px; margin-bottom: 28px; }
  .steps            { flex-direction: column; align-items: center; gap: 36px; }
  .step-left        { margin-right: 0; }
  .step-right       { margin-left: 0; }
  .step             { width: 100%; max-width: 280px; }
  .step-icon-wrap   { width: 160px; height: 160px; }
  .icon-step        { width: 160px; height: 160px; }
  .step-num         { left: 50%; top: -18px; transform: translateX(-50%); width: 40px; height: 40px; font-size: 15px; }
  .tg-banner        { margin: 0 16px 40px; padding: 20px 16px; flex-direction: column; text-align: center; gap: 14px; }
  .tg-text          { text-align: center; font-size: 15px; }
  .tg-btn           { width: 100%; text-align: center; padding: 13px; }
  .works-nashix-uch { padding: 40px 16px; }
  .works-title      { font-size: 22px; }
  .works-gallery    { margin: 0 -16px; columns: 1; column-gap: 0; }
  .works-photo      { break-inside: avoid; margin: 0; padding: 0; line-height: 0; }
  .works-photo img  { width: 100%; height: auto; display: block; }
  .site-footer .nav-group .cta { display: none; }
  .footer-bottom    { padding: 16px 16px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-contacts  { padding: 14px 16px 10px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-docs      { gap: 12px; flex-direction: column; }
  .footer-doc-link  { font-size: 12px; }
}

@media (max-width: 380px) {
  .hero h1          { font-size: 22px; padding: 24px 16px; }
  .brand-title      { font-size: 15px; }
  .brand-sep        { display: none; }
  .courses-title,
  .how-title        { font-size: 20px; }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  will-change: opacity;
  transform: translateZ(0);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: #f7f6f4;
  border-radius: 20px;
  padding: 44px 48px 40px;
  width: 100%;
  max-width: 460px;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
  will-change: transform;
  transform: translateY(20px) scale(0.97) translateZ(0);
  transition: transform 0.28s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.modal-overlay.active .modal { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: #e0dbd6;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close:hover { background: #d0c9c2; }

.modal-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.modal-subtitle {
  font-size: 14px;
  color: #777;
  margin-bottom: 28px;
  font-weight: 500;
}

.modal-field { margin-bottom: 18px; }

.modal-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #999;
  margin-bottom: 6px;
}

.modal-input {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid #e8e4e0;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.modal-input:focus { border-color: #6060d0; }
.modal-input.input-error { border-color: #e05a5a; }

.modal-error {
  display: block;
  font-size: 12px;
  color: #e05a5a;
  font-weight: 600;
  margin-top: 5px;
  min-height: 16px;
}

.strength-bar-wrap {
  height: 4px;
  background: #e8e4e0;
  border-radius: 4px;
  margin-top: 8px;
  overflow: hidden;
}

.strength-bar {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  transition: width 0.4s ease, background 0.4s ease;
}

.strength-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
  letter-spacing: 0.5px;
  min-height: 16px;
}

.strength-label.easy   { color: #e05a5a; }
.strength-label.medium { color: #e89a30; }
.strength-label.hard   { color: #3dab6a; }

.modal-remember {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 24px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #444;
  user-select: none;
}

.modal-remember input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #6060d0;
  cursor: pointer;
  flex-shrink: 0;
}

.modal-btn {
  width: 100%;
  background: linear-gradient(90deg, rgb(232, 148, 128) 0%, rgb(240, 195, 190) 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}

.modal-btn:hover  { opacity: 0.88; }
.modal-btn:active { transform: scale(0.98); }

.modal-switch-wrap {
  text-align: right;
  margin-top: 14px;
}

.modal-switch {
  background: none;
  border: none;
  color: #6060d0;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
}

.modal-switch:hover { color: #4f4fbb; }

.modal-terms-label {
  margin-top: 0;
  margin-bottom: 0;
  align-items: flex-start;
}

.modal-terms-label input[type="checkbox"] { margin-top: 3px; }

.modal-link {
  color: #6060d0;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.modal-link:hover { color: #4f4fbb; }

.modal-screen.hidden { display: none; }

.course-modal-badge--link {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fce8e6;
  border: 1.5px solid #E79A9B;
  border-radius: 8px;
  padding: 6px 14px;
  transition: background 0.2s, transform 0.15s;
  user-select: none;
}
.course-modal-badge--link:hover {
  background: #f9d6d3;
  transform: scale(1.03);
}

.player-header {
  padding: 28px 36px 20px;
  border-bottom: 1px solid #f0eeec;
}
.player-header-title {
  font-size: 17px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 3px;
}
.player-header-sub {
  font-size: 12px;
  color: #E79A9B;
  font-weight: 700;
}

.course-modal-badge--link {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fce8e6;
  border: 1.5px solid #E79A9B;
  border-radius: 8px;
  padding: 6px 14px;
  transition: background 0.2s, transform 0.15s;
  user-select: none;
}
.course-modal-badge--link:hover {
  background: #f9d6d3;
  transform: scale(1.03);
}

#modalFreeLesson .course-modal {
  max-width: 800px;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: #1a1a1a;
}

/* Video sizing */
.player-video-wrap {
  position: relative;
  background: #000;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
}
.player-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Big play button */
.player-big-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  transition: opacity 0.2s;
}
.player-big-play.hidden {
  opacity: 0;
  pointer-events: none;
}
.player-big-play svg {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

/* Player controls */
.player-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 14px;
  background: #222;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.player-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 6px;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s;
}
.player-btn:hover {
  color: #E79A9B;
  background: rgba(231,154,155,0.15);
}

.player-time {
  font-size: 12px;
  font-weight: 600;
  color: #aaa;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 90px;
  font-family: 'Montserrat', sans-serif;
}

/* Progress bar */
.player-seek-wrap {
  flex: 1;
  min-width: 0;
}
.player-seek-bg {
  position: relative;
  height: 4px;
  background: #444;
  border-radius: 4px;
  cursor: pointer;
}
.player-seek-bg:hover { height: 6px; margin-top: -1px; }
.player-seek-progress {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: #E79A9B;
  border-radius: 4px;
  pointer-events: none;
  width: 0%;
  transition: width 0.1s linear;
}
.player-seek {
  position: absolute;
  inset: -8px 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}

/* Volume */
.player-volume {
  width: 72px;
  accent-color: #E79A9B;
  cursor: pointer;
  flex-shrink: 0;
}

/* Fullscreen controls */
.player-video-wrap:-webkit-full-screen { width: 100%; height: 100%; }
.player-video-wrap:-webkit-full-screen video { object-fit: contain; height: 100%; }
.player-video-wrap:fullscreen { width: 100vw; height: 100vh; }
.player-video-wrap:fullscreen video { width: 100%; height: calc(100% - 56px); object-fit: contain; }
.player-video-wrap:fullscreen .player-controls {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 20px 16px 14px;
  z-index: 10;
}
.player-video-wrap:fullscreen .player-big-play { z-index: 9; }

@media (max-width: 640px) {
  .modal {
    padding: 36px 24px 32px;
    margin: 0 16px;
    max-width: 100%;
  }
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap .modal-input { padding-right: 44px; }

.pwd-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  color: #aaa;
  transition: color 0.2s;
  line-height: 0;
}

.pwd-toggle:hover { color: #6060d0; }