/* ======================
   RESET
====================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: #f5f6fb;
  color: #1c1c1c;
  line-height: 1.6;
}

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

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

/* ======================
   VARIABLES
====================== */
:root {
  --primary: #716eff;
  --primary-soft: #ecebff;
  --text-main: #1c1c1c;
  --text-muted: #666;
  --bg-main: #f5f6fb;
  --bg-card: #ffffff;
  --border-light: #e6e9f0;

  --radius-lg: 20px;
  --radius-md: 14px;
}

/* ======================
   LAYOUT
====================== */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 32px 0;
}

/* Отступ между карточками */
.section .card {
  margin-bottom: 24px;
}

.section:last-child .card {
  margin-bottom: 0;
}

/* ======================
   SCROLL ANIMATION
====================== */
/*
.section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}
*/

/* ======================
   HERO PROFILE
====================== */

.hero-profile {
  grid-template-columns: 1.1fr 0.9fr;
}

.hero-photo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-photo img {
  width: 320px;
  height: 320px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}
@media (max-width: 768px) {

  .hero-profile {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    order: -1; /* фото сверху */
    margin-bottom: 20px;
  }

  .hero-photo img {
    width: 220px;
    height: 220px;
  }

  .hero-content {
    text-align: left;
  }
}






/* ======================
   HEADER
====================== */
.header {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 28px;
  width: auto;
}

.nav {
  display: flex;
  gap: 18px;
}

.nav a {
  font-size: 14px;
  color: #333;
  position: relative;
}

.nav a.active {
  color: var(--primary);
  font-weight: 600;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.2s ease;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

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

.icon-link img {
  width: 20px;
  height: 20px;
  opacity: 0.85;
}

.icon-link:hover img {
  opacity: 1;
}

.burger {
  display: none;
  font-size: 22px;
  cursor: pointer;
}

/* ======================
   HERO
====================== */
.hero {
  background: linear-gradient(180deg, #ffffff 0%, #f1f2ff 100%);
  padding: 56px 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

/* Заголовок */
.hero-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;

  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Плашка */
.hero-title span {
  align-self: flex-start;          /* КЛЮЧЕВОЕ */
  display: inline-flex;
  align-items: center;
  white-space: nowrap;

  background: var(--primary-soft);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 999px;
}

/* Текст */
.hero-text {
  font-size: 16px;
  margin-bottom: 12px;
}

.hero-text.muted {
  color: var(--text-muted);
}

/* Картинка */
.hero-image img {
  max-width: 320px;
  margin: 0 auto;
}

/* ======================
   HERO — MOBILE
====================== */
@media (max-width: 768px) {

  .hero {
    padding: 48px 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-title {
    font-size: 30px;
  }

  .hero-title span {
    align-self: flex-start; /* чтобы не растягивалась */
  }

  .hero-image img {
    max-width: 260px;
    margin-top: 24px;
  }
}

/* ======================
   INNER PAGES HERO
====================== */
.hero-inner-page {
  padding: 40px 0;
}

.page-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 520px;
}


/* ======================
   BUTTONS
====================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 20px;
  background: linear-gradient(180deg, #716eff, #5f5bff);
  color: #fff;

  padding: 14px 26px;
  border-radius: var(--radius-md);
  font-weight: 600;
  border: none;
  cursor: pointer;

  box-shadow: 0 8px 20px rgba(113,110,255,0.25);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(113,110,255,0.35);
  filter: brightness(1.03);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(113,110,255,0.25);
}


.btn-pay {
  width: 100%;
  margin-top: 16px;
}

/* ======================
   CARD
====================== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

/* ======================
   PRODUCTS GRID
====================== */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

/* ======================
   PRODUCT CARD
====================== */

.product-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);

  display: flex;
  flex-direction: column;
  gap: 14px;

  text-decoration: none;
  color: inherit;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

/* ======================
   PRODUCT STATES
====================== */

.product-soon {
  opacity: 0.7;
  pointer-events: none;
}

/* ======================
   PRODUCT CONTENT
====================== */

.product-title {
  font-size: 20px;
  font-weight: 700;
}

.product-desc {
  font-size: 14px;
  color: var(--text-muted);
}

.product-list {
  list-style: none;
  padding-left: 0;
}

.product-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  margin-bottom: 8px;
}

.product-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* ======================
   PRODUCT FOOTER
====================== */

.product-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.product-price {
  font-size: 18px;
  font-weight: 700;
}

.product-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.product-link.muted {
  color: var(--text-muted);
}

/* ======================
   PRODUCT BADGE
====================== */

.product-badge {
  position: absolute;
  top: 16px;
  right: 16px;

  font-size: 12px;
  font-weight: 600;

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

  background: var(--primary-soft);
  color: var(--primary);
}

.product-badge.muted {
  background: #eee;
  color: #777;
}
/* ======================
   PRODUCT BADGE — MOBILE FIX
====================== */

@media (max-width: 768px) {

  .product-badge {
    position: static;
    align-self: flex-start;
    margin-bottom: 8px;
  }

  .product-title {
    margin-top: 0;
  }
}


/* ======================
   TITLES
====================== */
.section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: "";
  width: 4px;
  height: 24px;
  background: var(--primary);
  border-radius: 2px;
}

/* ======================
   LISTS
====================== */
.list {
  list-style: none;
}

.list li {
  padding-left: 16px;
  position: relative;
  margin-bottom: 12px;
}

.list li:last-child {
  margin-bottom: 0;
}

.list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* ======================
   PRICE
====================== */
.price {
  font-size: 36px;
  font-weight: 800;
  margin-top: 10px;
}

.price-note {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}

.offer-checkbox {
  display: flex;
  gap: 10px;
  font-size: 14px;
  margin-top: 16px;
}

.offer-checkbox input {
  accent-color: var(--primary);
}

.offer-checkbox a {
  color: var(--primary);
  text-decoration: underline;
}

/* ======================
   PAYMENT BAR
====================== */
.payment-bar {
  background: #eef1fb;
  padding: 16px 0;
  display: flex;
  justify-content: center;
}

.payment-bar img {
  height: 32px;
  max-width: 100%;
}

/* ======================
   FOOTER
====================== */
.footer {
  background: #eef1fb;
  padding: 40px 0 20px;
  font-size: 13px;
  color: #333;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr;
  gap: 32px;
}

.footer-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* Юридика */
.footer-legal p {
  margin-bottom: 6px;
}

/* Навигация */
.footer-nav a {
  display: block;
  margin-bottom: 6px;
  color: var(--primary);
  font-weight: 500;
}

.footer-nav a:hover {
  text-decoration: underline;
}

/* Контакты */
.footer-contacts p {
  margin-bottom: 6px;
}

.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}

.footer-social img {
  width: 22px;
  height: 22px;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.footer-social img:hover {
  opacity: 1;
}

/* Низ */
.footer-bottom {
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  text-align: center;
  font-size: 12px;
  color: #777;
}

/* ======================
   FOOTER — MOBILE
====================== */
@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ======================
   MOBILE
====================== */
/* ======================
   BURGER + MOBILE MENU
====================== */

/* burger base */
.burger {
  width: 26px;
  height: 18px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #1c1c1c;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* burger → cross */
.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
====================== */
@media (max-width: 768px) {

  .burger {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 20px 16px;
    border-bottom: 1px solid var(--border-light);

    display: flex;
    flex-direction: column;
    gap: 14px;

    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}


/* ======================
   HERO ANIMATION
====================== */
.hero-content > * {
  opacity: 0;
  transform: translateY(12px);
  animation: heroFadeUp 0.6s ease forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.hero-content > *:nth-child(2) { animation-delay: 0.15s; }
.hero-content > *:nth-child(3) { animation-delay: 0.25s; }
.hero-content > *:nth-child(4) { animation-delay: 0.35s; }

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.hero-title span {
  animation: badgeIn 0.6s ease-out forwards,
             badgePulse 4s ease-in-out infinite 1s;
}

@keyframes badgeIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes badgePulse {
  0%,100% { box-shadow: 0 0 0 rgba(113,110,255,0); }
  50%     { box-shadow: 0 0 0 6px rgba(113,110,255,0.08); }
}



.price-card {
  position: relative;
  z-index: 2;
}

.btn-pay {
  pointer-events: auto;
}


.gc-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.gc-popup.active {
  display: block;
}

.gc-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.gc-popup-content {
  position: relative;
  max-width: 420px;
  margin: 10vh auto;
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  z-index: 1;
}

.gc-popup-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.gc-popup-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}

.gc-popup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}


/* ======================
   GETCOURSE FORM — POPUP STYLE
====================== */

.gc-popup-content .lt-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* скрываем радиокнопку оффера */
.gc-popup-content .lt-form input[type="radio"] {
  display: none;
}

/* inputs */
.gc-popup-content .lt-form input[type="text"],
.gc-popup-content .lt-form input[type="email"],
.gc-popup-content .lt-form input[type="tel"] {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  border-radius: 12px;
  border: 1px solid #e6e9f0;
  background: #fff;
  outline: none;
}

.gc-popup-content .lt-form input::placeholder {
  color: #999;
}

.gc-popup-content .lt-form input:focus {
  border-color: #716eff;
  box-shadow: 0 0 0 3px rgba(113,110,255,0.12);
}

/* button */
.gc-popup-content .lt-form button {
  margin-top: 8px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 14px;
  border: none;
  cursor: pointer;

  background: linear-gradient(180deg, #716eff, #5f5bff);
  color: #fff;

  box-shadow: 0 8px 20px rgba(113,110,255,0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gc-popup-content .lt-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(113,110,255,0.35);
}

.gc-popup-content .lt-form button:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(113,110,255,0.25);
}

/* убрать <br>, которые GC вставляет */
.gc-popup-content .lt-form br {
  display: none;
}
/* ======================
   POPUP — MOBILE FIX
====================== */

@media (max-width: 768px) {

  .gc-popup-content {
    width: calc(100% - 32px); /* отступы по 16px */
    max-width: 420px;
    margin: 12vh auto;
    border-radius: 18px;
  }

}
