:root {
  --bg: #f9fbff;
  --card: #ffffff;
  --muted: #64748b;
  --accent: #3b82f6;
  --accent-600: #1d4ed8;
  --secondary: #9333ea;
  --secondary-light: #ede9fe;
  --radius: 14px;
  --container: 1100px;
  --header-height: 80px;
  --font-main: "Poppins", "Inter", sans-serif;
}

* {
  box-sizing: border-box;
}

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

/* === Базовая структура === */
body {
  background: var(--bg);
  color: #0f172a;
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
}

/* Мягкий фон с акцентами */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top left, #dbeafe 0%, transparent 70%),
    radial-gradient(circle at bottom right, #f3e8ff 0%, transparent 70%);
  opacity: 0.35;
  z-index: -1;
}

/* Абстрактные узоры */
body::after {
  content: "";
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  z-index: 0;
  opacity: 0.2;
  bottom: -200px;
  right: -300px;
  background: radial-gradient(circle, #a18cd1, #fbc2eb);
}

/* Контент поверх узоров */
body > * {
  position: relative;
  z-index: 1;
}

/* === Контейнер === */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
  position: relative;
  height: var(--header-height);
}

/* BRAND */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 70px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.12);
}

.site-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e3a8a;
  margin: 0;
}

.site-tag {
  font-size: 0.85rem;
  color: #475569;
  margin: 0;
}

/* === Навигация === */
.nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  transition: all 0.3s ease;
}

.nav a {
  text-decoration: none;
  color: #1e293b;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: var(--accent-600);
}

.btn-ghost {
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
  font-weight: 500;
}

.btn-ghost:hover {
  background: var(--accent);
  color: white;
}

/* === Мобильное меню === */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--accent);
  z-index: 1100;
  padding: 8px;
}

/* Main content */
main {
  width: 100%;
  background: var(--bg);
  margin-top: var(--header-height);
}

/* === Герой === */
.hero {
  padding: 80px 0 44px;
  width: 100%;
}

.hero-inner {
  display: flex;
  gap: 30px;
  align-items: center;
  width: 100%;
}

.hero-text {
  flex: 1;
}

.hero h2 {
  font-size: 2.4rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.lead {
  color: var(--muted);
  margin: 8px 0 16px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

/* === Кнопки === */
.btn {
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  color: #fff;
  padding: 12px 26px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.25);
  transition: all 0.3s ease;
  border: none;
  display: inline-block;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.35);
}

.btn-sm {
  font-size: 0.95rem;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-sm:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.btn-outline {
  border: 2px solid var(--accent);
  color: var(--accent-600);
  background: transparent;
  padding: 12px 26px;
  border-radius: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

.hero-media {
  width: 360px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

/* === Заголовки === */
h2,
h3,
h4 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: #1e3a8a;
  letter-spacing: -0.3px;
}

h3 {
  font-size: 2rem;
  margin-bottom: 24px;
  text-align: center;
  position: relative;
}

h3::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  margin: 12px auto 0;
  border-radius: 4px;
}

/* Sections */
.section {
  padding: 60px 0;
  width: 100%;
}

.muted {
  color: var(--muted);
  text-align: center;
  font-size: 1.1rem;
}

/* Courses */
#courses {
  padding: 80px 0;
  text-align: center;
}

#courses h3 {
  font-size: 2rem;
  margin-bottom: 40px;
  font-weight: 700;
  color: #1e3a8a;
}

/* SWIPER */
.swiper-wrapper {
  display: flex;
  align-items: stretch;
}

.swiper-slide {
  display: flex;
  align-items: stretch;
  height: auto;
}

/* === Карточки курсов === */
.course-card {
  background: var(--card);
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.15);
}

.course-img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 16px;
  border-radius: 12px;
}

.course-card h4 {
  font-size: 1.3rem;
  color: #0f172a;
  margin-bottom: 8px;
}

.course-card .sub {
  color: #475569;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.course-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  flex-grow: 1;
}

.course-list li {
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.card-foot {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge {
  background: var(--secondary-light);
  color: var(--secondary);
  border-radius: 10px;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 0.8rem;
}

.swiper {
  padding-bottom: 50px;
}

.swiper-button-next,
.swiper-button-prev {
  color: #2563eb;
}

.swiper-pagination-bullet-active {
  background: #2563eb;
}

/* === Преподаватели === */
.teacher-card {
  background: white;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.teacher-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
}

.teacher-img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: block;
  border: 3px solid var(--accent);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.t-body h4 {
  font-size: 1.2rem;
  color: #0f172a;
  margin-bottom: 8px;
  font-weight: 600;
}

.role {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.t-desc {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 12px 0 0;
  line-height: 1.5;
}

/* Reviews */
.reviews-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 30px;
}

.review {
  background: var(--card);
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.03);
  margin: 0;
}

.review p {
  margin: 0;
  font-style: italic;
  line-height: 1.6;
}

.review footer {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

/* Contacts */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
  margin-top: 30px;
}

.contact-info p {
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.1rem;
  color: #334155;
}

.contact-info a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.contact-info a:hover {
  color: #1e40af;
  text-decoration: underline;
}

.contact-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.contact-logo:hover {
  transform: scale(1.1);
}

.map-placeholder {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  background: linear-gradient(90deg, #eef7ff, #f8fbff);
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.map-placeholder iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 14px;
}

/* Signup Form */
.signup-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 0;
  background: #f0f4ff;
  text-align: center;
  width: 100%;
}

.signup-wrapper {
  max-width: 500px;
  width: 100%;
  margin: 0 20px;
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

.signup-wrapper h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: #1e3a8a;
}

.signup-wrapper .muted {
  color: #475569;
  margin-bottom: 30px;
  font-size: 1rem;
}

.signup-form {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.signup-form .form-row {
  margin-bottom: 20px;
  text-align: left;
}

.signup-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #0f172a;
  font-size: 0.95rem;
}

.signup-form input,
.signup-form select,
.signup-form textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.signup-form input:focus,
.signup-form select:focus,
.signup-form textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}

.signup-form .form-actions {
  margin-top: 24px;
}

.signup-form .btn {
  width: 100%;
  padding: 14px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s;
  font-weight: 600;
}

.signup-form .btn:hover {
  background: #1e40af;
}

.signup-form .error {
  color: #dc2626;
  font-size: 0.85rem;
  margin-top: 6px;
  display: block;
}

/* === Подвал === */
.site-footer {
  text-align: center;
  padding: 30px 0;
  color: var(--muted);
  font-size: 0.9rem;
  background: #fff;
  border-top: 1px solid rgba(15, 23, 42, 0.04);
  width: 100%;
}

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

/* Currency Section */
#currency h3 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.2rem;
  color: #1e3a8a;
}

.currency-section {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  justify-content: space-between;
}

.currency-text {
  flex: 1;
  max-width: 500px;
  padding-right: 30px;
}

.currency-text .muted {
  text-align: left;
  margin-bottom: 35px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #475569;
}

/* Currency Carousel */
.currency-carousel {
  flex: 1;
  max-width: 500px;
  position: relative;
  padding: 0 50px;
}

.coin-card {
  background: white;
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(37, 99, 235, 0.1);
  margin: 0 auto;
  max-width: 400px;
  width: 100%;
}

.currencySwiper .swiper-button-next {
  right: 0;
}

.currencySwiper .swiper-button-prev {
  left: 0;
}

.coin-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.coin-img {
  width: 100%;
  max-width: 350px;
  height: 220px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  padding: 15px;
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
  transition: transform 0.3s ease;
}

.coin-card:hover .coin-img {
  transform: scale(1.05);
}

.coin-info h4 {
  margin: 0 0 10px 0;
  font-size: 1.5rem;
  color: #1e3a8a;
  font-weight: 700;
}

.coin-info p {
  margin: 0;
  color: #475569;
  font-size: 1rem;
  line-height: 1.4;
}

/* Swiper для валюты */
.currencySwiper {
  padding: 20px 0 70px;
  width: 100%;
  position: relative;
}

.currencySwiper .swiper-slide {
  display: flex;
  align-items: stretch;
  height: auto;
  padding: 0 5px;
}

.currencySwiper .swiper-wrapper {
  align-items: center;
}

.currencySwiper .swiper-slide {
  justify-content: center;
}

.currencySwiper .swiper-button-next,
.currencySwiper .swiper-button-prev {
  color: #2563eb;
  background: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  top: 50%;
  transform: translateY(-50%);
  margin-top: 0;
}

.currencySwiper .swiper-button-next:after,
.currencySwiper .swiper-button-prev:after {
  font-size: 1.2rem;
  font-weight: bold;
}

.currencySwiper .swiper-button-next:hover,
.currencySwiper .swiper-button-prev:hover {
  background: #2563eb;
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.currencySwiper .swiper-pagination {
  bottom: 20px;
}

.currencySwiper .swiper-pagination-bullet {
  background: #cbd5e1;
  opacity: 1;
  width: 10px;
  height: 10px;
}

.currencySwiper .swiper-pagination-bullet-active {
  background: #2563eb;
}

/* Mobile Styles */
@media (max-width: 900px) {
  .nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    gap: 0;
    padding: 20px;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    align-items: stretch;
    z-index: 1000;
    box-sizing: border-box;
  }

  .nav-open {
    transform: translateY(0);
  }
  .nav.nav-open {
    display: flex;
  }

  .nav a {
  color: #1e293b;
  font-size: 1.1rem;
  text-align: center;
  width: 100%;
  padding: 15px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav a:hover {
  color: var(--accent);
  background: rgba(59, 130, 246, 0.05);
}

.nav a:last-child {
  border-bottom: none;
}

.btn-ghost {
  color: var(--accent);
  border-color: var(--accent);
  width: 100%;
  text-align: center;
  padding: 15px 0;
  margin-top: 10px;
  background: transparent;
  font-weight: 500;
}

.btn-ghost:hover {
  background: var(--accent);
  color: white;
}

  .nav-toggle {
    display: block;
  }

  .header-inner {
    padding: 0 15px;
  }

  .site-title {
    font-size: 1.1rem;
  }

  .site-tag {
    font-size: 0.8rem;
  }

  .hero-inner {
    flex-direction: column-reverse;
    gap: 40px;
  }

  .hero-media {
    width: 100%;
    max-width: 400px;
  }

  .hero-cta {
    flex-direction: column;
    gap: 12px;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .swiper-slide {
    width: 100% !important;
  }

  .currency-section {
    flex-direction: column;
    gap: 40px;
    align-items: center;
  }

  .currency-text {
    padding-right: 0;
    max-width: 100%;
    text-align: center;
  }

  .currency-text .muted {
    text-align: center;
  }

  .currency-carousel {
    max-width: 100%;
    width: 100%;
    padding: 0 40px;
  }

  .coin-card {
    max-width: 320px;
  }

  .coin-img {
    max-width: 280px;
    height: 180px;
    padding: 12px;
  }

  .currencySwiper .swiper-button-next,
  .currencySwiper .swiper-button-prev {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .section {
    padding: 40px 0;
  }

  h3 {
    font-size: 1.6rem;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .lead {
    font-size: 1rem;
  }

  .course-img {
    height: 180px;
  }

  .teacher-img {
    width: 100px;
    height: 100px;
  }

  .signup-wrapper {
    padding: 30px 20px;
    margin: 0 15px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  #currency h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }

  .currency-section {
    gap: 30px;
  }

  .currency-carousel {
    padding: 0 35px;
  }

  .coin-img {
    max-width: 250px;
    height: 160px;
  }

  .coin-card {
    max-width: 280px;
    padding: 20px 15px;
  }

  .coin-info h4 {
    font-size: 1.3rem;
  }

  .currencySwiper {
    padding: 15px 0 60px;
  }
}

@media (max-width: 480px) {
  .signup-wrapper {
    padding: 20px 15px;
    margin: 0 10px;
  }

  .signup-wrapper h3 {
    font-size: 1.5rem;
  }

  .signup-form input,
  .signup-form select,
  .signup-form textarea,
  .signup-form .btn {
    font-size: 0.9rem;
  }

  #currency h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
  }

  .currency-section {
    gap: 25px;
  }

  .currency-carousel {
    padding: 0 30px;
  }

  .coin-img {
    max-width: 220px;
    height: 140px;
    padding: 10px;
  }

  .coin-card {
    max-width: 250px;
    padding: 20px 15px;
  }

  .currencySwiper .swiper-button-next,
  .currencySwiper .swiper-button-prev {
    width: 35px;
    height: 35px;
  }

  .coin-info h4 {
    font-size: 1.2rem;
  }

  .coin-info p {
    font-size: 0.9rem;
  }

  .currencySwiper .swiper-button-next:after,
  .currencySwiper .swiper-button-prev:after {
    font-size: 1rem;
  }
}
