@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- macOS Light Theme Design System --- */
:root {
  --font-body: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;

  /* macOS/Apple Светлая палитра */
  --bg-primary: #f5f5f7;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;

  --border-glass: rgba(0, 0, 0, 0.06);
  --border-glass-hover: rgba(0, 0, 0, 0.12);

  --color-blue: #0071e3;
  --color-blue-hover: #005bb5;
  --color-orange: #ff6600;
  --color-orange-hover: #e55c00;

  --color-orange-glow: rgba(255, 102, 0, 0.12);
  --color-blue-glow: rgba(0, 113, 227, 0.06);

  --text-main: #1d1d1f;
  --text-muted: #86868b;
  --text-inverse: #ffffff;

  --transition-smooth: all 0.28s cubic-bezier(0.25, 0.1, 0.25, 1);
  --shadow-premium: 0 8px 30px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.06);
  --radius-mac: 16px;
}

/* --- Сброс и базовые стили --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Скроллбар в стиле macOS */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}

/* Фоновые градиенты (мягкие световые пятна) */
.ambient-glow-1 {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
  top: -200px;
  left: -200px;
  z-index: -1;
  filter: blur(60px);
  pointer-events: none;
}

.ambient-glow-2 {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 102, 0, 0.04) 0%, rgba(255, 255, 255, 0) 70%);
  bottom: 10%;
  right: -200px;
  z-index: -1;
  filter: blur(80px);
  pointer-events: none;
}

/* --- Разметка и общие элементы --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: #0071e3;
  color: var(--text-inverse);
}

.btn-primary:hover {
  background-color: var(--color-orange-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: rgba(0, 0, 0, 0.04);
  color: var(--text-main);
  border: 1px solid transparent;
}

.btn-secondary:hover {
  background-color: rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

/* --- Шапка (Header) --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 0;
}

/* --- Верхняя панель контактов (Header Topbar) --- */
.header-topbar {
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  padding: 8px 0;
  font-size: 0.8rem;
  background-color: rgba(255, 255, 255, 0.4);
}

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

.header-contacts {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-link {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.contact-link:hover {
  color: var(--color-blue);
}

.contact-link i {
  font-size: 0.95rem;
}

.header-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-link {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.04);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.social-link:hover {
  color: var(--bg-secondary);
}

.social-link.tg:hover {
  background-color: #24A1DE;
}

.social-link.wa:hover {
  background-color: #25D366;
}

.social-link.vk:hover {
  background-color: #0077FF;
}

.social-link i {
  font-size: 0.9rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.logo span {
  color: var(--color-orange);
}


/* --- Геро-секция и поиск (Spotlight Search) --- */
.hero {
  padding: 60px 0 40px 0;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  background-color: rgba(0, 113, 227, 0.08);
  color: var(--color-blue);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.8px;
  color: var(--text-main);
  margin-bottom: 16px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--text-main) 40%, var(--color-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px auto;
}

/* Spotlight поиск */
.search-wrapper {
  max-width: 540px;
  margin: 0 auto 40px auto;
  position: relative;
  z-index: 10;
}

.search-bar {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 8px 8px 8px 18px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
}

.search-bar:focus-within {
  background-color: #ffffff;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}

.search-icon {
  color: var(--text-muted);
  margin-right: 12px;
  flex-shrink: 0;
}

.search-input {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1rem;
  width: 100%;
  outline: none;
  font-family: var(--font-body);
}

.search-input::placeholder {
  color: var(--text-muted);
}

/* Выпадающий список Spotlight */
.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  max-height: 320px;
  overflow-y: auto;
  display: none;
  box-shadow: var(--shadow-hover);
  text-align: left;
  z-index: 50;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}

.search-result-group {
  padding: 10px 14px 4px 14px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.search-result-item {
  padding: 10px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
}

.search-result-item:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.search-result-name {
  font-weight: 500;
  font-size: 0.95rem;
}

.search-result-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Квиз-калькулятор (macOS Widget Style) --- */
.calculator-section {
  padding: 30px 0;
}

.calculator-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 32px;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: var(--shadow-premium);
}

.calculator-header {
  text-align: center;
  margin-bottom: 24px;
}

.calculator-header h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
}

.calculator-header h2 span {
  color: var(--color-blue);
}

.calculator-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.quick-order-card {
  max-width: 860px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.quick-order-manager {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 22px 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgb(0 227 45 / 8%), rgba(255, 255, 255, 0.75));
  border: 1px solid rgb(0 227 54 / 12%);
}

.quick-order-avatar {
  position: relative;
  width: 112px;
  height: 112px;
  margin-bottom: 14px;
  border-radius: 50%;
  overflow: visible;
}

.quick-order-avatar img {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  background: #fff;
  border: 4px solid #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
}

.quick-order-online-dot {
  position: absolute;
  right: 8px;
  bottom: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #16a34a;
  border: 3px solid #fff;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.14);
}

.quick-order-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #087443;
  font-size: 0.78rem;
  font-weight: 700;
}

.quick-order-online span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
}

.quick-order-manager-info strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 6px;
}

.quick-order-manager-info p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.quick-order-header {
  text-align: left;
}

.quick-order-field label {
  display: block;
}

.quick-order-input-wrap {
  position: relative;
}

.quick-order-input-wrap>i {
  position: absolute;
  left: 14px;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  color: var(--color-blue);
  font-size: 1.08rem;
  pointer-events: none;
}

.quick-order-input-wrap .form-control {
  padding-left: 44px;
}

.step-container {
  position: relative;
  min-height: 220px;
}

.calc-step {
  display: none;
}

.calc-step.active {
  display: block;
}

/* Сетки шага 1 */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.option-card {
  background-color: #f5f5f7;
  border: 1.5px solid transparent;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.option-card:hover {
  background-color: #e8e8ed;
  transform: translateY(-1px);
}

.option-card.selected {
  border-color: var(--color-blue);
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.08);
}

.option-card-icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: var(--color-blue);
}

.option-card-icon i {
  font-size: 1.8rem;
}

.option-card-title {
  font-size: 0.85rem;
  font-weight: 600;
}

/* Формы */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  background-color: #f5f5f7;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 16px;
  color: var(--text-main);
  outline: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  background-color: #ffffff;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2386868b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px;
}

select.form-control option {
  background-color: var(--bg-secondary);
  color: var(--text-main);
}

/* Шаг результатов */
.result-box {
  background-color: #f5f5f7;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.price-display {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-orange);
  margin-bottom: 4px;
}

.price-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Навигация квиза */
.calc-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}

.calc-progress {
  display: flex;
  gap: 6px;
}

.calc-progress-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.1);
  transition: var(--transition-smooth);
}

.calc-progress-dot.active {
  background-color: var(--color-blue);
  transform: scale(1.2);
}

/* --- Сетки карточек и дизайн карточек --- */
.section-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: var(--text-main);
}

.section-title span {
  color: var(--color-blue);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

/* Карточки */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-mac);
  padding: 24px;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-premium);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-glass-hover);
}

/* Контейнеры для изображений (Placeholders) */
.service-image-wrapper {
  height: 130px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e8e8ed 0%, #d2d2d7 100%);
  margin-bottom: 16px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.service-image-wrapper i {
  font-size: 3.5rem;
  color: rgba(0, 0, 0, 0.15);
}

/* Логотип вуза */
.inst-logo-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background-color: #f5f5f7;
  color: var(--text-main);
  border: 1.5px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

/* Иллюстрация специальности */
.specialty-illustration-wrapper {
  height: 300px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.05) 0%, rgba(255, 102, 0, 0.05) 100%);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.specialty-illustration-wrapper i {
  font-size: 3rem;
  color: rgba(0, 113, 227, 0.2);
}

.card-tag {
  display: inline-block;
  background-color: rgba(0, 0, 0, 0.04);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
  align-self: flex-start;
}

.card-tag.orange {
  background-color: rgba(255, 102, 0, 0.08);
  color: var(--color-orange);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-main);
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  padding-top: 14px;
}

.card-price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-orange);
  font-size: 1rem;
}

.card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-blue);
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-link:hover {
  color: var(--color-blue-hover);
  text-decoration: underline;
}

/* Фильтры в стиле iOS-сегментов */
.filter-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  background-color: rgba(0, 0, 0, 0.03);
  padding: 6px;
  border-radius: 12px;
  width: fit-content;
  margin: 0 auto 32px auto;
}

.filter-btn {
  background-color: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover {
  color: var(--text-main);
}

.filter-btn.active {
  background-color: #ffffff;
  color: var(--text-main);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* --- Детальная страница: Шаблоны --- */
.detail-hero-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
}

.detail-illustration-full {
  width: 100%;
  max-height: 250px;
  border-radius: var(--radius-mac);
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.04) 0%, rgba(255, 102, 0, 0.04) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid var(--border-glass);
}

.detail-illustration-full i {
  font-size: 5rem;
  color: rgba(0, 113, 227, 0.15);
}

/* --- Подвал (Footer) --- */
.footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border-glass);
  padding: 50px 0 30px 0;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 30px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-logo span {
  color: var(--color-orange);
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  max-width: 250px;
}

.footer-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--text-main);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--color-blue);
}

.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* --- Всплывающее окно (macOS Modal Sheet) --- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-content {
  background-color: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 32px;
  width: 100%;
  max-width: 440px;
  position: relative;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.15);
  animation: modalSheet 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin: auto;
}

@keyframes modalSheet {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(0, 0, 0, 0.04);
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  background-color: rgba(0, 0, 0, 0.08);
  color: var(--text-main);
}

/* Кнопка гамбургера */
.menu-toggle {
  display: none;
  background: rgba(0, 0, 0, 0.04);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.menu-toggle:hover {
  background: rgba(0, 0, 0, 0.08);
}

.menu-toggle i {
  font-size: 1.3rem;
}

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

/* --- Адаптивность --- */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .ambient-glow-1,
  .ambient-glow-2 {
    display: none !important;
  }

  /* Hide topbar on mobile — contacts are now inside the Bottom Sheet menu */
  .header-topbar {
    display: none !important;
  }

  /* Hide floating badges that overlap on mobile */
  .badge-float {
    display: none !important;
  }

  .nav-link.active::after {
    display: none;
  }

  .calculator-card {
    padding: 20px;
  }

  .quick-order-card {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .quick-order-manager {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    padding: 14px;
  }

  .quick-order-avatar,
  .quick-order-avatar img {
    width: 72px;
    height: 72px;
  }

  .quick-order-avatar {
    margin: 0 14px 0 0;
    flex-shrink: 0;
  }

  .quick-order-online-dot {
    right: 2px;
    bottom: 4px;
  }

  .quick-order-header {
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}


@media (max-width: 480px) {
  .logo {
    font-size: 1.25rem;
  }

  #btn-header-order {
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  .header-contacts {
    flex-direction: column;
    gap: 6px;
  }

  .modal {
    padding: 10px;
  }

  .modal-content {
    padding: 24px 18px;
    border-radius: 16px;
  }

  .modal-close {
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
  }
}

/* --- Стили для динамических блоков статистики --- */
.stats-block-container {
  margin-top: 24px;
  margin-bottom: 32px;
}

.stats-block {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 28px 16px;
  box-shadow: var(--shadow-premium);
}

.stats-column {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  position: relative;
}

.stats-column:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: var(--border-glass);
}

.stats-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(0, 113, 227, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-blue);
  font-size: 1.35rem;
  flex-shrink: 0;
}

.stats-text-wrapper {
  display: flex;
  flex-direction: column;
}

.stats-value {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color-blue);
  line-height: 1.15;
}

.stats-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 1px;
}

.stats-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Адаптивность блока статистики */
@media (max-width: 1024px) {
  .stats-block {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 0;
    padding: 24px;
  }

  .stats-column:nth-child(2n)::after {
    display: none;
  }
}

@media (max-width: 576px) {
  .stats-block {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  .stats-column {
    padding: 0;
  }

  .stats-column::after {
    display: none !important;
  }
}

/* --- Стили для динамических блоков преимуществ (features) --- */
.features-block-container {
  margin-top: 40px;
  margin-bottom: 60px;
}

.features-block {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.features-tag {
  display: inline-block;
  padding: 4px 10px;
  background-color: rgba(46, 204, 113, 0.08);
  color: #2ecc71;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.features-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}

.features-title span {
  color: var(--color-blue);
}

.features-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.feature-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: rgba(46, 204, 113, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2ecc71;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.feature-card:nth-child(even) .feature-icon-wrapper {
  background-color: rgba(0, 113, 227, 0.06);
  color: var(--color-blue);
}

.feature-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.feature-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Иллюстрация ноутбука */
.laptop-illustration {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  perspective: 1000px;
}

.laptop-screen {
  background-color: #0d0d0d;
  border: 12px solid #262626;
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  height: 220px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.screen-content {
  height: 100%;
  background: radial-gradient(circle at top left, #0d385a, #060c24 80%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.shield-logo {
  font-size: 3rem;
  color: #2ecc71;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 10px rgba(46, 204, 113, 0.3));
  animation: floatShield 3s ease-in-out infinite;
}

@keyframes floatShield {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.screen-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.screen-content h3 span {
  color: #2ecc71;
}

.laptop-base {
  background-color: #d1d1d6;
  border-radius: 0 0 12px 12px;
  height: 14px;
  position: relative;
  width: 110%;
  margin-left: -5%;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.base-notch {
  background-color: #a1a1a6;
  border-radius: 0 0 4px 4px;
  height: 4px;
  left: 50%;
  margin-left: -20px;
  position: absolute;
  top: 0;
  width: 40px;
}

.badge-float {
  position: absolute;
  background: white;
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  z-index: 10;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.badge-shield {
  top: -15px;
  right: -20px;
  color: #2ecc71;
  animation: floatBadge1 4s ease-in-out infinite;
}

.badge-clock {
  bottom: 20px;
  left: -40px;
  color: var(--color-blue);
  animation: floatBadge2 4s ease-in-out infinite;
}

@keyframes floatBadge1 {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes floatBadge2 {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

/* --- Стили для отзывов с рейтингом (reviews) --- */
.reviews-block-header {
  margin-top: 40px;
  margin-bottom: 24px;
  text-align: center;
}

.reviews-tag {
  display: inline-block;
  padding: 4px 10px;
  background-color: rgba(46, 204, 113, 0.08);
  color: #2ecc71;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.reviews-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.reviews-title span {
  color: var(--color-blue);
}

.reviews-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

.reviews-block-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 30px;
  margin-bottom: 60px;
}

.reviews-left-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.student-review-card {
  background: white;
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.student-review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 113, 227, 0.15);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.student-avatar-text {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-blue), #8e2de2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
}

.student-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-glass);
}

.student-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

.student-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.review-stars {
  margin-left: auto;
  color: #ffcc00;
  font-size: 0.8rem;
  display: flex;
  gap: 2px;
}

.review-body-text {
  font-size: 0.85rem;
  color: #4a4a4a;
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.review-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.review-tag-pill {
  font-size: 0.75rem;
  padding: 3px 8px;
  background-color: rgba(0, 113, 227, 0.05);
  color: var(--color-blue);
  border-radius: 6px;
  font-weight: 500;
}

.review-tag-pill.success {
  background-color: rgba(46, 204, 113, 0.06);
  color: #2ecc71;
}

.review-footer-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  padding-top: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
}

.footer-stat-icon {
  color: var(--color-blue);
  font-size: 1rem;
}

/* Карточка рейтинга справа */
.summary-score-card {
  background: radial-gradient(circle at top, #0f1c3f, #060c24);
  color: white;
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.summary-score-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 113, 227, 0.22);
}

.summary-badge-star {
  width: 44px;
  height: 44px;
  background-color: var(--color-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin: 0 auto 16px auto;
  box-shadow: 0 0 15px rgba(0, 113, 227, 0.5);
  animation: starPulse 2.5s infinite ease-in-out;
}

@keyframes starPulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 15px rgba(0, 113, 227, 0.5);
  }

  50% {
    transform: scale(1.08);
    box-shadow: 0 0 25px rgba(0, 113, 227, 0.8);
  }
}

.summary-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
}

.summary-rating-value {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
}

.summary-stars {
  color: #ffcc00;
  font-size: 1rem;
  margin: 8px 0;
  display: flex;
  justify-content: center;
  gap: 3px;
}

.summary-reviews-count {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 24px;
}

.summary-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.rating-category-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.3s ease;
  cursor: default;
}

.rating-category-row:hover {
  transform: translateX(6px);
}

.category-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

.category-info span {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s ease;
}

.rating-category-row:hover .category-info span {
  color: white;
}

.category-info strong {
  color: white;
}

.category-progress-bg {
  height: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.category-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #2ecc71, #27ae60);
  border-radius: 2px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.1, 1, 0.1, 1);
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.3);
}

.rating-category-row:hover .category-progress-bar {
  background: linear-gradient(90deg, #2eff8b, #2ecc71);
  box-shadow: 0 0 14px rgba(46, 204, 113, 0.7);
}

/* --- Стили для сетки услуг (services) --- */
.services-block-header {
  margin-top: 40px;
  margin-bottom: 32px;
  text-align: center;
}

.services-tag {
  display: inline-block;
  padding: 4px 10px;
  background-color: rgba(0, 113, 227, 0.06);
  color: var(--color-blue);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.services-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.services-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

.services-grid-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.service-grid-card {
  background: white;
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
}

.service-grid-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 113, 227, 0.15);
}

.service-card-icon-box {
  border-radius: 14px;
  background-color: rgba(0, 113, 227, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-blue);
  font-size: 1.8rem;
  margin-bottom: 20px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-grid-card:hover .service-card-icon-box {
  background-color: var(--color-blue);
  color: white;
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 8px 20px rgba(0, 113, 227, 0.2);
}

.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.service-grid-card h3 {
  font-size: 1.15rem;
  font-weight: 650;
  margin-bottom: 8px;
}

.service-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 2px;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  margin-bottom: 24px;
  font-size: 0.82rem;
}

.meta-item {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.meta-item i {
  color: var(--color-blue);
  font-size: 0.95rem;
}

.price-item {
  color: var(--text-main);
  font-weight: 500;
}

.price-item strong {
  color: var(--color-blue);
  font-size: 1.05rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.service-card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  width: 100%;
}

.service-card-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 30px;
  background-color: rgba(0, 113, 227, 0.05);
  color: var(--color-blue);
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  z-index: 10;
  flex-grow: 1;
  text-align: center;
  max-width: calc(100% - 44px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-card-action-btn:hover {
  background-color: var(--color-blue);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 113, 227, 0.18);
}

.service-card-action-btn i {
  font-size: 0.9rem;
}

.service-card-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(46, 204, 113, 0.08);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2ecc71;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin-left: auto;
  flex-shrink: 0;
}

.service-grid-card:hover .service-card-arrow {
  background-color: #2ecc71;
  color: white;
  transform: translateX(3px) scale(1.05);
}

/* Адаптивность конструктора блоков */
@media (max-width: 1024px) {
  .features-block {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .reviews-block-layout {
    display: flex;
    flex-direction: column-reverse;
    gap: 32px;
  }

  .reviews-right-summary {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .summary-score-card {
    height: auto;
    padding: 28px 24px;
  }

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

@media (max-width: 768px) {
  .reviews-left-grid {
    grid-template-columns: 1fr;
  }

  .reviews-carousel-wrapper {
    padding: 0 10px;
  }
}

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

  .services-grid-layout {
    grid-template-columns: 1fr;
  }

  .features-title,
  .reviews-title,
  .services-title {
    font-size: 1.7rem;
  }
}

@media (max-width: 480px) {
  .review-header {
    flex-wrap: wrap;
    gap: 8px;
  }

  .review-stars {
    margin-left: 0;
    width: 100%;
    margin-top: 4px;
  }

  .student-review-card {
    padding: 16px;
  }

  .summary-score-card {
    padding: 20px 16px;
  }

  .summary-rating-value {
    font-size: 2.8rem;
  }
}

/* ==========================================================================
   КОНКУРЕНТНЫЙ HERO-БЛОК & 3D ИЛЛЮСТРАЦИЯ
   ========================================================================== */

.hero-competitor-container {
  padding: 10px 0 10px 0;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(0, 113, 227, 0.04) 0%, rgba(255, 255, 255, 0) 50%);
  transition: z-index 0.35s ease;
}

body.search-active .hero-competitor-container {
  z-index: 1005;
}

body.search-active .hero-competitor-tag,
body.search-active .hero-competitor-title,
body.search-active .hero-competitor-desc,
body.search-active .hero-badges-row,
body.search-active .hero-actions-row,
body.search-active .hero-social-proof,
body.search-active .hero-right-illustration {
  opacity: 0.15;
  filter: blur(4px);
}

.hero-competitor-tag,
.hero-competitor-title,
.hero-competitor-desc,
.hero-badges-row,
.hero-actions-row,
.hero-social-proof,
.hero-right-illustration {
  transition: opacity 0.35s ease, filter 0.35s ease;
}

.hero-competitor-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-left-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 5;
}

.hero-competitor-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(46, 204, 113, 0.08);
  color: #27ae60;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.tag-dot {
  width: 6px;
  height: 6px;
  background-color: #2ecc71;
  border-radius: 50%;
  box-shadow: 0 0 8px #2ecc71;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(46, 204, 113, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
  }
}

.hero-competitor-title {
  font-family: var(--font-display);
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.2;
  color: #0f1c3f;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.hero-competitor-title span {
  color: #27ae60;
}

.hero-competitor-desc {
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 30px;
}

/* Умный поиск с фоном и тегами */
.search-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 28, 63, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.search-wrapper.hero-search-wrapper {
  position: relative;
  width: 100%;
  max-width: 560px;
  z-index: 5;
  background: white;
  padding: 8px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border-glass);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-wrapper.hero-search-wrapper.focused {
  z-index: 1001;
  /* Поверх затемнения */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.hero-search-wrapper .search-bar {
  background: #f5f5f7;
  border: none;
  border-radius: 12px;
  padding: 4px 14px;
}

.hero-search-wrapper .search-input {
  font-size: 0.95rem;
}

.search-quick-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 0 6px 4px 6px;
  font-size: 0.85rem;
}

.quick-tag-label {
  color: var(--text-muted);
  font-weight: 500;
}

.quick-tag-btn {
  background: rgba(0, 0, 0, 0.04);
  border: none;
  border-radius: 20px;
  padding: 4px 10px;
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.quick-tag-btn:hover {
  background: rgba(0, 113, 227, 0.08);
  color: var(--color-blue);
  transform: translateY(-1px);
}

/* Бейджи */
.hero-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  margin-bottom: 28px;
}

.hero-micro-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 550;
  color: var(--text-main);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.hero-micro-badge i {
  color: #27ae60;
  font-size: 1.1rem;
}

/* Кнопки действий */
.hero-actions-row {
  display: flex;
  gap: 16px;
  margin-bottom: 30px;
}

.hero-btn-order {
  background: #27ae60 !important;
  border-color: #27ae60 !important;
  color: white !important;
  padding: 14px 28px !important;
  font-weight: 600 !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 20px rgba(39, 174, 96, 0.2) !important;
}

.hero-btn-order:hover {
  background: #219653 !important;
  border-color: #219653 !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(39, 174, 96, 0.3) !important;
}

.hero-btn-calc {
  background: white !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-glass) !important;
  padding: 14px 28px !important;
  font-weight: 600 !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
}

.hero-btn-calc:hover {
  background: #fafafa !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06) !important;
}

/* Социальное доказательство */
.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-avatars {
  display: flex;
  align-items: center;
}

.social-avatar-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid white;
  margin-left: -10px;
  object-fit: cover;
}

.social-avatar-img:first-child {
  margin-left: 0;
}

.social-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  font-weight: 550;
}

/* ==========================================================================
   3D CSS ИЛЛЮСТРАЦИЯ (Правая часть)
   ========================================================================== */

.hero-right-illustration {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 440px;
  perspective: 1200px;
}

.illustration-platform {
  position: relative;
  width: 420px;
  height: 400px;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Основание */
.illustration-platform::before {
  content: '';
  position: absolute;
  bottom: 10px;
  width: 380px;
  height: 90px;
  background: radial-gradient(ellipse, rgba(0, 113, 227, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: 1;
  transform: rotateX(25deg);
}

/* Металлическая пластина */
.illustration-platform::after {
  content: '';
  position: absolute;
  bottom: 20px;
  width: 320px;
  height: 45px;
  background: linear-gradient(180deg, rgba(0, 113, 227, 0.08) 0%, rgba(0, 113, 227, 0.22) 100%);
  border: 1px solid rgba(0, 113, 227, 0.15);
  border-radius: 50%;
  z-index: 2;
  box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.7), 0 10px 25px rgba(0, 0, 0, 0.05);
  transform: rotateX(25deg);
}

/* Книжная стопка */
.books-stack {
  position: absolute;
  bottom: 50px;
  left: 55px;
  width: 220px;
  height: 70px;
  z-index: 5;
  transform: rotateX(25deg) rotateY(-10deg) rotateZ(8deg);
  transform-style: preserve-3d;
}

.book-item {
  position: absolute;
  width: 180px;
  height: 22px;
  border-radius: 4px;
  box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.12);
}

.book-blue {
  background: linear-gradient(90deg, #0984e3 0%, #74b9ff 100%);
  bottom: 0;
  left: 0;
  border-bottom: 2px solid #0056b3;
}

.book-blue::before {
  content: '';
  position: absolute;
  right: 3px;
  top: 3px;
  width: 172px;
  height: 14px;
  background: #f5f5f7;
  border-radius: 2px;
}

.book-green {
  background: linear-gradient(90deg, #27ae60 0%, #2ecc71 100%);
  bottom: 18px;
  left: 12px;
  border-bottom: 2px solid #1e7e34;
}

.book-green::before {
  content: '';
  position: absolute;
  right: 3px;
  top: 3px;
  width: 172px;
  height: 14px;
  background: #f5f5f7;
  border-radius: 2px;
}

/* Ноутбук 3D */
.laptop-3d {
  position: absolute;
  bottom: 85px;
  left: 70px;
  width: 240px;
  z-index: 10;
  transform: rotateX(20deg) rotateY(-15deg) rotateZ(8deg);
  transform-style: preserve-3d;
  filter: drop-shadow(5px 12px 20px rgba(0, 0, 0, 0.1));
  animation: laptopFloat 6s ease-in-out infinite;
}

@keyframes laptopFloat {

  0%,
  100% {
    transform: rotateX(20deg) rotateY(-15deg) rotateZ(8deg) translateY(0);
  }

  50% {
    transform: rotateX(20deg) rotateY(-15deg) rotateZ(8deg) translateY(-6px);
  }
}

.laptop-screen-wrapper {
  background: #2d3436;
  border: 5px solid #1e272e;
  border-radius: 10px 10px 0 0;
  height: 145px;
  transform: rotateX(-12deg);
  transform-origin: bottom center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.5);
}

.laptop-screen-glass {
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 65%), radial-gradient(circle at top left, #2980b9, #2c3e50 85%);
  position: relative;
  padding: 10px;
}

.laptop-screen-display {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
}

.display-chart-mock {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sparkline-svg {
  width: 100%;
  height: 38px;
}

.mock-lines {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mock-line {
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.mock-line-long {
  width: 70%;
}

.mock-line-short {
  width: 40%;
}

.laptop-keyboard-base {
  background: #dfe6e9;
  height: 8px;
  border-radius: 0 0 10px 10px;
  position: relative;
  transform: rotateX(20deg);
  transform-origin: top center;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.laptop-keyboard-base::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 18px;
  width: 204px;
  height: 3px;
  background: #b2bec3;
  border-radius: 2px;
}

.trackpad {
  position: absolute;
  bottom: 1px;
  left: 102px;
  width: 36px;
  height: 2px;
  background: #b2bec3;
  border-radius: 1px;
}

/* Цветочный горшок */
.plant-pot {
  position: absolute;
  bottom: 55px;
  right: 65px;
  width: 60px;
  height: 100px;
  z-index: 15;
  transform: rotateX(15deg);
  transform-style: preserve-3d;
}

.pot-body {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #ffffff 0%, #dfe6e9 100%);
  border: 1px solid var(--border-glass);
  border-radius: 50% 50% 40% 40%;
  position: absolute;
  bottom: 0;
  left: 11px;
  box-shadow: 1px 5px 10px rgba(0, 0, 0, 0.06);
}

.leaves {
  position: absolute;
  bottom: 30px;
  left: 0;
  width: 60px;
  height: 60px;
}

.leaf {
  position: absolute;
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  border-radius: 100% 0 100% 0;
  transform-origin: bottom left;
  box-shadow: 1px 2px 6px rgba(0, 0, 0, 0.08);
}

.leaf-1 {
  width: 30px;
  height: 18px;
  bottom: 8px;
  left: 8px;
  transform: rotate(-30deg);
}

.leaf-2 {
  width: 36px;
  height: 20px;
  bottom: 10px;
  left: 12px;
  transform: rotate(-75deg);
}

.leaf-3 {
  width: 32px;
  height: 16px;
  bottom: 12px;
  left: 16px;
  transform: rotate(-120deg);
}

.leaf-4 {
  width: 26px;
  height: 14px;
  bottom: 10px;
  left: 14px;
  transform: rotate(-160deg);
}

.leaf-5 {
  width: 24px;
  height: 13px;
  bottom: 8px;
  left: 10px;
  transform: rotate(15deg);
}

/* Шары и кристаллы */
.decor-sphere {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #74b9ff, #0984e3 80%);
  box-shadow: 0 4px 10px rgba(9, 132, 227, 0.25), inset 0 2px 4px rgba(255, 255, 255, 0.6);
  animation: sphereFloat 4s ease-in-out infinite;
}

.decor-sphere-1 {
  width: 20px;
  height: 20px;
  top: 100px;
  left: 40px;
  animation-delay: 0s;
}

.decor-sphere-2 {
  width: 12px;
  height: 12px;
  bottom: 120px;
  left: 35px;
  animation-delay: 1s;
}

.decor-sphere-3 {
  width: 16px;
  height: 16px;
  bottom: 100px;
  right: 35px;
  animation-delay: 0.5s;
}

.decor-crystal {
  position: absolute;
  background: linear-gradient(135deg, rgba(116, 185, 255, 0.35) 0%, rgba(9, 132, 227, 0.08) 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  clip-path: polygon(50% 0%, 100% 35%, 80% 90%, 20% 90%, 0% 35%);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.04);
  animation: crystalFloat 5s ease-in-out infinite;
}

.decor-crystal-1 {
  width: 30px;
  height: 38px;
  top: 140px;
  left: 15px;
  animation-delay: 0.2s;
}

.decor-crystal-2 {
  width: 35px;
  height: 44px;
  top: 110px;
  right: 25px;
  animation-delay: 0.8s;
}

/* Парящие виджеты */
.floating-widget {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 25;
  transition: transform 0.3s ease;
}

.floating-widget:hover {
  transform: translateY(-4px) scale(1.02);
}

.widget-left-wrap {
  position: absolute;
  top: 35px;
  left: 15px;
  z-index: 25;
  will-change: transform;
}

.widget-right-wrap {
  position: absolute;
  bottom: 40px;
  right: 10px;
  z-index: 25;
  will-change: transform;
}

.widget-left {
  left: 0;
  animation: widgetFloat1 6s ease-in-out infinite;
}

.widget-right {
  right: 0;
  animation: widgetFloat2 6s ease-in-out infinite;
  white-space: nowrap;
}

/* Адаптивность Hero */
@media (max-width: 1024px) {
  .hero-competitor-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    text-align: center;
  }

  .hero-left-content {
    align-items: center;
  }

  .hero-competitor-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .search-wrapper.hero-search-wrapper {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-badges-row {
    justify-content: center;
  }

  .hero-actions-row {
    justify-content: center;
  }

  .hero-social-proof {
    justify-content: center;
  }

  .hero-right-illustration {
    min-height: 380px;
    overflow: hidden;
    max-width: 100%;
  }

  .illustration-platform {
    transform: scale(0.85);
    max-width: 100%;
  }
}

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

  .hero-competitor-title {
    font-size: 2.15rem;
  }

  .illustration-platform {
    transform: scale(0.7);
    max-width: 100%;
  }

  .hero-right-illustration {
    min-height: 320px;
    overflow: hidden;
    max-width: 100%;
  }
}

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

  .hero-actions-row {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-actions-row .btn {
    width: 100%;
    justify-content: center;
  }

  .illustration-platform {
    transform: scale(0.55);
    max-width: 100%;
  }

  .hero-right-illustration {
    min-height: 250px;
    overflow: hidden;
    max-width: 100%;
  }
}

/* ==========================================================================
   ОТСУТСТВУЮЩИЕ АНИМАЦИИ ДЛЯ HERO-ИЛЛЮСТРАЦИИ
   ========================================================================== */

@keyframes sphereFloat {

  0%,
  100% {
    transform: translateY(0) translateX(0);
  }

  33% {
    transform: translateY(-8px) translateX(3px);
  }

  66% {
    transform: translateY(4px) translateX(-3px);
  }
}

@keyframes crystalFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) rotate(8deg);
  }
}

@keyframes widgetFloat1 {

  0%,
  100% {
    transform: translateY(0) translateX(0);
  }

  50% {
    transform: translateY(-10px) translateX(3px);
  }
}

@keyframes widgetFloat2 {

  0%,
  100% {
    transform: translateY(0) translateX(0);
  }

  50% {
    transform: translateY(8px) translateX(-2px);
  }
}

/* Фикс виджета который обрезался справа */
.hero-right-illustration {
  overflow: visible;
}

/* Иконка-стрелка в кнопках hero */
.hero-btn-order i,
.hero-btn-calc i {
  font-size: 1rem;
}

/* Декоративный элемент сзади платформы */
.illustration-platform {
  overflow: visible;
}

/* Подсветка/glow для ноутбука */
.laptop-3d::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 20px;
  right: 20px;
  height: 40px;
  background: radial-gradient(ellipse, rgba(0, 113, 227, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: -1;
  filter: blur(10px);
}

/* Общий glow вокруг платформы */
.hero-right-illustration::after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 360px;
  height: 60px;
  background: radial-gradient(ellipse, rgba(39, 174, 96, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  filter: blur(15px);
  pointer-events: none;
}

/* Улучшение читаемости виджетов */
.widget-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 113, 227, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-blue);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.widget-icon-box.blue {
  background: rgba(0, 113, 227, 0.1);
  color: var(--color-blue);
}

.widget-text-box {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.widget-title {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.widget-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.widget-val.blue {
  color: var(--color-blue);
}

.widget-desc {
  font-size: 0.68rem;
  color: #2ecc71;
  font-weight: 500;
}

/* Дополнительные анимационные улучшения */
.hero-competitor-container * {
  box-sizing: border-box;
}

/* Изображение студента в HERO-блоке */
.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(35px);
  z-index: 1;
  transform: translate(var(--glowX, 0px), var(--glowY, 0px));
  transition: transform 0.1s ease-out;
}

.student-parallax-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  will-change: transform;
}

.hero-student-img {
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
  z-index: 2;
  position: relative;
  animation: studentFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.08));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-student-img:hover {
  transform: scale(1.03) translateY(-4px);
}

@keyframes studentFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 1024px) {
  .hero-image-wrapper {
    max-width: 420px;
    min-height: 400px;
  }

  .hero-student-img {
    max-height: 400px;
  }

  .widget-left-wrap {
    top: 15px;
    left: -10px;
  }

  .widget-right-wrap {
    bottom: 20px;
    right: -10px;
  }

  .floating-widget {
    transform: scale(0.85);
  }

  .floating-widget:hover {
    transform: scale(0.9) translateY(-2px);
  }
}

@media (max-width: 768px) {
  .hero-image-wrapper {
    max-width: 320px;
    min-height: 320px;
  }

  .hero-student-img {
    max-height: 300px;
  }

  .widget-left-wrap,
  .widget-right-wrap {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .hero-image-wrapper {
    max-width: 300px;
    min-height: 300px;
  }

  .hero-student-img {
    max-height: 300px;
  }
}

/* Изображение в блоке преимуществ */
.features-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

.features-image-wrapper::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(39, 174, 96, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(25px);
  z-index: 1;
}

.features-student-img {
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
  z-index: 2;
  position: relative;
  animation: featuresFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.06));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.features-student-img:hover {
  transform: scale(1.03) translateY(-4px);
}

@keyframes featuresFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 1024px) {
  .features-image-wrapper {
    max-width: 360px;
    min-height: 320px;
    margin-top: 20px;
  }

  .features-student-img {
    max-height: 300px;
  }
}

@media (max-width: 768px) {
  .features-image-wrapper {
    max-width: 300px;
    min-height: 280px;
  }

  .features-student-img {
    max-height: 260px;
  }
}

/* Карусель отзывов на детальных страницах услуг */
.reviews-carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: visible;
}

.reviews-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 10px 5px;
  margin: -10px -5px;
  scrollbar-width: none;
  /* Firefox */
}

.reviews-carousel::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.reviews-carousel .student-review-card {
  flex: 0 0 calc(50% - 10px);
  scroll-snap-align: start;
  min-width: 280px;
}

.reviews-carousel-wrapper .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border-glass);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-main);
}

.reviews-carousel-wrapper .carousel-btn:hover {
  background: var(--color-blue);
  color: white;
  border-color: var(--color-blue);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 8px 24px rgba(0, 113, 227, 0.25);
}

.reviews-carousel-wrapper .carousel-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.reviews-carousel-wrapper .prev-btn {
  left: -22px;
}

.reviews-carousel-wrapper .next-btn {
  right: -22px;
}

@media (max-width: 991px) {
  .reviews-carousel .student-review-card {
    flex: 0 0 calc(50% - 10px);
  }

  .reviews-carousel-wrapper .prev-btn {
    left: -10px;
  }

  .reviews-carousel-wrapper .next-btn {
    right: -10px;
  }
}

@media (max-width: 768px) {
  .reviews-carousel .student-review-card {
    flex: 0 0 100%;
  }

  .reviews-carousel-wrapper .carousel-btn {
    display: none !important;
    /* На мобильных свайпают пальцем */
  }
}

/* Настраиваемое изображение в блоке CTA */
.cta-student-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.cta-student-image-wrapper::before {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(20px);
  z-index: 1;
}

.cta-student-img {
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
  z-index: 2;
  position: relative;
  animation: ctaFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.05));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 20px;
}

.cta-student-img:hover {
  transform: scale(1.03) translateY(-4px);
}

@keyframes ctaFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@media (max-width: 1024px) {
  .cta-student-image-wrapper {
    min-height: 240px;
  }

  .cta-student-img {
    max-height: 330px;
  }
}

/* ==========================================================================
   ДЕТАЛЬНЫЙ HERO-БЛОК (Услуги, ВУЗы, Специальности)
   ========================================================================== */

.detail-hero-section {
  padding: 80px 0 60px 0;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(0, 113, 227, 0.03) 0%, rgba(255, 255, 255, 0) 60%), #fafafa;
  border-bottom: 1px solid var(--border-glass);
}

.matrix-hero-section {
  padding-top: 40px;
}

@media (max-width: 768px) {
  .matrix-hero-section {
    padding-top: 20px;
  }
}

/* Специфичные фоновые свечения в зависимости от типа страницы */
.detail-hero-service {
  background: radial-gradient(circle at 85% 30%, rgba(0, 113, 227, 0.05) 0%, rgba(255, 255, 255, 0) 50%), #f8f9fc;
}

.detail-hero-institution {
  background: radial-gradient(circle at 85% 30%, rgba(46, 204, 113, 0.05) 0%, rgba(255, 255, 255, 0) 50%), #f8faf9;
}

.detail-hero-specialty {
  background: radial-gradient(circle at 85% 30%, rgba(155, 89, 182, 0.05) 0%, rgba(255, 255, 255, 0) 50%), #faf8fc;
}

/* Двухколоночный грид */
.detail-hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

/* Мобильная картинка — скрыта на ПК */
.detail-hero-visual-mobile {
  display: none;
}

/* Левая часть: контент */
.detail-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.detail-hero-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--border-glass);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-blue);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-hero-category i {
  font-size: 1rem;
}

.detail-hero-title {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: #1d1d1f;
  line-height: 1.2;
  margin-bottom: 14px;
}

.detail-hero-title .hero-accent-text {
  color: #27ae60;
}

.detail-hero-subtitle {
  font-family: var(--font-main);
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 600px;
}

/* Сетка карточек метаданных */
.detail-hero-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  max-width: 580px;
  margin-bottom: 32px;
}

.meta-grid-card {
  background: white;
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.meta-grid-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.meta-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Цвета иконок метаданных */
.meta-card-icon.color-blue {
  background: rgba(0, 113, 227, 0.08);
  color: var(--color-blue);
}

.meta-card-icon.color-green {
  background: rgba(46, 204, 113, 0.08);
  color: #27ae60;
}

.meta-card-icon.color-orange {
  background: rgba(230, 126, 34, 0.08);
  color: #e67e22;
}

.meta-card-icon.color-purple {
  background: rgba(155, 89, 182, 0.08);
  color: #9b59b6;
}

.meta-card-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.meta-card-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.meta-card-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1d1d1f;
}

/* Кнопки действий */
.detail-hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn-hero-order {
  padding: 12px 28px;
  font-weight: 600;
}

.btn-hero-more {
  padding: 12px 24px;
  font-weight: 500;
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-glass);
}

.btn-hero-more:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.15);
}

/* Правая часть: Визуальная */
.detail-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.detail-hero-media {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Стеклянный фрейм изображения */
.hero-image-card {
  width: 100%;
  height: 100%;
  background: white;
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 2px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: heroMediaFloat 6s ease-in-out infinite;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image-card:hover {
  transform: scale(1.02);
}

.hero-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.hero-media-initials {
  font-size: 5rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--color-blue), #8e2de2);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 113, 227, 0.3);
}

/* 3D Орбитальная иконка (когда нет картинки) */
.hero-icon-orbit-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: heroMediaFloat 6s ease-in-out infinite;
}

.hero-icon-sphere {
  width: 110px;
  height: 110px;
  background: radial-gradient(circle at 30% 30%, var(--color-blue), #081233);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  box-shadow: 0 15px 35px rgba(0, 113, 227, 0.4), inset 0 -10px 20px rgba(0, 0, 0, 0.4), inset 0 8px 15px rgba(255, 255, 255, 0.4);
  z-index: 5;
  transition: transform 0.3s ease;
}

.hero-icon-sphere:hover {
  transform: scale(1.08) rotate(5deg);
}

.hero-orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 113, 227, 0.15);
  pointer-events: none;
}

.hero-orbit-1 {
  width: 160px;
  height: 160px;
  border-left-color: var(--color-blue);
  animation: heroOrbitRotation 12s linear infinite;
}

.hero-orbit-2 {
  width: 220px;
  height: 220px;
  border-right-color: #2ecc71;
  animation: heroOrbitRotationReverse 16s linear infinite;
}

/* Парящие бейджи */
.detail-floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1d1d1f;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
}

.detail-floating-badge i {
  font-size: 0.9rem;
}

.detail-floating-badge.badge-top-left {
  top: -10px;
  left: -20px;
  animation: floatBadge1 5s ease-in-out infinite;
}

.detail-floating-badge.badge-bottom-right {
  bottom: -10px;
  right: -20px;
  animation: floatBadge2 6s ease-in-out infinite;
}

/* Анимации */
@keyframes heroMediaFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes heroOrbitRotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes heroOrbitRotationReverse {
  0% {
    transform: rotate(360deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

@keyframes floatBadge1 {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes floatBadge2 {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}

/* Адаптивность Hero-блока */
@media (max-width: 1024px) {
  .detail-hero-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Показываем мобильную картинку (после h1) */
  .detail-hero-visual-mobile {
    display: block;
    width: 100%;
    margin: 12px 0 20px 0;
  }

  /* Скрываем правую колонку на мобильных (дубль картинки) */
  .detail-hero-visual {
    display: none;
  }

  .detail-hero-content {
    align-items: center;
    text-align: center;
  }

  .detail-hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .detail-hero-meta-grid {
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: 1fr 1fr;
  }

  .detail-hero-actions {
    justify-content: center;
  }

  .detail-hero-visual {
    margin-top: 10px;
  }
}

@media (max-width: 576px) {
  .detail-hero-section {
    padding: 50px 0 40px 0;
  }

  .detail-hero-title {
    font-size: 2.1rem;
  }

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

  .detail-hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-hero-order,
  .btn-hero-more {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .detail-floating-badge.badge-top-left {
    left: 0px;
  }

  .detail-floating-badge.badge-bottom-right {
    right: 0px;
  }
}

/* Элегантные ссылки на мессенджеры в Hero-блоке детальных страниц */
.detail-hero-messengers {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  width: 100%;
}

.detail-hero-messengers .messengers-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.detail-hero-messengers .messengers-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-messenger-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--border-glass);
  padding: 15px 20px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-messenger-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 113, 227, 0.15);
  color: var(--color-blue);
}

.hero-messenger-btn i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.hero-messenger-btn:hover i {
  transform: scale(1.15);
}

/* Индивидуальные цвета ховера под мессенджеры */
.hero-messenger-btn i.ti-brand-telegram {
  color: #0088cc;
}

.hero-messenger-btn i.ti-brand-whatsapp {
  color: #25d366;
}

.hero-messenger-btn i.ti-brand-vk {
  color: #4c75a3;
}

@media (max-width: 1024px) {
  .detail-hero-messengers {
    align-items: center;
  }

  .detail-hero-messengers .messengers-row {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-messenger-btn {
    width: 100%;
    justify-content: center;
  }
}


/* Custom Alert / Success Modal Dialog */
.custom-alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.custom-alert-overlay.active {
  opacity: 1;
}

.custom-alert-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 32px 24px;
  width: 90%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transform: scale(0.85);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-alert-overlay.active .custom-alert-card {
  transform: scale(1);
}

.custom-alert-icon-box {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.custom-alert-icon-box.success {
  background: linear-gradient(135deg, #e3f9e5, #c1f2c6);
  color: #34c759;
}

.custom-alert-icon-box.error {
  background: linear-gradient(135deg, #ffe5e5, #ffcccc);
  color: #ff3b30;
}

.custom-alert-icon-box i {
  animation: popIcon 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.custom-alert-title {
  font-family: var(--font-display), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #1c1c1e;
  margin-bottom: 12px;
}

.custom-alert-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #8e8e93;
  margin-bottom: 24px;
  padding: 0 8px;
}

.custom-alert-btn {
  background: var(--color-blue, #007aff);
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s ease, transform 0.1s ease;
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.25);
}

.custom-alert-btn:hover {
  background: #0062cc;
}

.custom-alert-btn:active {
  transform: scale(0.98);
}

@keyframes popIcon {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ==========================================================================
   BLOG & ARTICLE PAGES DESIGN SYSTEM
   ========================================================================== */

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

/* Category Filters */
.blog-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.blog-filter-btn {
  background: white;
  color: var(--text-main);
  border: 1px solid var(--border-glass);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.blog-filter-btn.active,
.blog-filter-btn:hover {
  background: var(--color-blue);
  color: white;
  border-color: var(--color-blue);
  box-shadow: 0 4px 10px rgba(0, 113, 227, 0.2);
}

/* Blog Card */
.blog-card {
  background: white;
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.08);
}

.blog-card-cover {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.blog-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.blog-card-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(0, 113, 227, 0.85);
  backdrop-filter: blur(4px);
  color: white;
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
}

.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.blog-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 10px;
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card-title a:hover {
  color: var(--color-blue);
}

.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.blog-card-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-blue);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.blog-card-more:hover {
  gap: 10px;
}

/* Article Page Layout */
.article-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 0;
}

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

.article-category {
  display: inline-block;
  background: rgba(0, 113, 227, 0.08);
  color: var(--color-blue);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.article-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 20px;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 24px;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-cover {
  width: 100%;
  height: 450px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  margin-bottom: 40px;
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Block Rendering inside article */
.article-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333333;
}

.post-block-h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin: 40px 0 20px 0;
  color: var(--text-main);
  line-height: 1.3;
}

.post-block-h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 30px 0 15px 0;
  color: var(--text-main);
  line-height: 1.3;
}

.post-block-p {
  margin-bottom: 20px;
}

.post-block-img-wrapper {
  margin: 35px 0;
  text-align: center;
}

.post-block-img {
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.post-block-caption {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 10px;
  font-style: italic;
}

.post-block-btn-wrapper {
  margin: 30px 0;
  text-align: center;
}

.post-block-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-blue), #0056b3);
  color: white !important;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(0, 113, 227, 0.25);
  transition: all 0.2s ease;
}

.post-block-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px rgba(0, 113, 227, 0.35);
}

.post-block-quote {
  margin: 32px 0;
  padding: 22px 26px;
  border-left: 4px solid var(--color-blue);
  background: rgba(0, 113, 227, 0.05);
  border-radius: 8px;
}

.post-block-quote p {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--text-main);
}

.post-block-quote cite {
  display: block;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: normal;
}

.post-block-list {
  margin: 22px 0;
  padding-left: 26px;
}

.post-block-list li {
  margin-bottom: 10px;
}

.post-block-faq {
  margin: 24px 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.post-block-faq summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 700;
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.02);
}

.post-block-faq div {
  padding: 16px 18px;
  color: #333333;
}

.post-block-table-wrapper {
  margin: 30px 0;
  overflow-x: auto;
}

.post-block-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

.post-block-table th,
.post-block-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  text-align: left;
}

.post-block-table th {
  background: rgba(0, 113, 227, 0.06);
  color: var(--text-main);
  font-weight: 700;
}

.post-block-table tr:last-child td {
  border-bottom: none;
}

.post-block-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 36px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.post-block-divider::before,
.post-block-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
}

.post-block-alert,
.post-block-downloads,
.post-block-service-cards,
.post-block-author,
.post-block-toc,
.post-block-related-links,
.post-block-recommended,
.post-block-lead-form {
  margin: 30px 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
}

.post-block-alert {
  border-left: 4px solid #f59e0b;
  background: #fffbeb;
}

.post-block-alert.info {
  border-left-color: var(--color-blue);
  background: rgba(0, 113, 227, 0.05);
}

.post-block-alert.success {
  border-left-color: #16a34a;
  background: #f0fdf4;
}

.post-block-alert strong,
.post-block-downloads h3,
.post-block-service-cards h3,
.post-block-related-links h3,
.post-block-recommended h3,
.post-block-lead-form h3 {
  display: block;
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-main);
}

.post-block-alert p,
.post-block-lead-form p {
  margin: 0;
  color: #333333;
}

.post-download-item,
.post-block-related-links a,
.post-block-recommended a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  color: var(--text-main);
  text-decoration: none;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.post-download-item small,
.post-block-recommended span {
  display: block;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.post-service-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.post-service-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  color: var(--text-main);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.post-service-card i {
  color: var(--color-blue);
  font-size: 1.5rem;
}

.post-service-card span {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.post-block-author {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  align-items: center;
}

.post-block-author img,
.post-author-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
}

.post-author-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 113, 227, 0.08);
  color: var(--color-blue);
  font-size: 2rem;
}

.post-block-author strong,
.post-block-author span {
  display: block;
}

.post-block-author span {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 2px;
}

.post-block-author p {
  margin: 8px 0 0;
  color: #333333;
}

.post-block-toc {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-block-toc a {
  color: var(--color-blue);
  text-decoration: none;
}

.post-block-video {
  margin: 34px 0;
}

.post-block-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
  background: #000;
}

.post-block-video span,
.post-block-gallery figcaption,
.post-block-before-after figcaption {
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.86rem;
  text-align: center;
}

.post-block-gallery,
.post-block-before-after {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 34px 0;
}

.post-block-gallery figure,
.post-block-before-after figure {
  margin: 0;
}

.post-block-gallery img,
.post-block-before-after img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.post-block-lead-form {
  background: rgba(0, 113, 227, 0.05);
}

.post-block-lead-form>div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 16px;
}

.post-block-lead-form input {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
}

.post-block-lead-form button {
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  background: var(--color-blue);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.post-block-related-links a {
  justify-content: space-between;
}

/* Related Posts Section */
.related-posts-section {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 60px 0;
  background: rgba(0, 0, 0, 0.01);
  margin-top: 60px;
}

.related-posts-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
}

@media (max-width: 768px) {
  .article-title {
    font-size: 1.8rem;
  }

  .article-cover {
    height: 250px;
  }

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

  .post-block-gallery,
  .post-block-before-after,
  .post-block-lead-form>div,
  .post-block-author {
    grid-template-columns: 1fr;
  }

  .post-block-lead-form button {
    width: 100%;
  }
}


/* ==========================================================================
   subjects-block (Двухколоночный аккордеон дисциплин в стиле macOS)
   ========================================================================== */

.subjects-block-container {
  margin-top: 80px;
  margin-bottom: 80px;
}

.subjects-block {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.subjects-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.subjects-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(0, 113, 227, 0.08);
  color: var(--color-blue);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.subjects-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.25;
}

.subjects-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* Окно в стиле macOS */
.subjects-window {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-glass, rgba(0, 0, 0, 0.08));
  border-radius: 16px;
  box-shadow: var(--shadow-sm, 0 8px 30px rgba(0, 0, 0, 0.03));
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.subjects-window-header {
  background: var(--bg-window-header, #f6f6f8);
  border-bottom: 1px solid var(--border-glass, rgba(0, 0, 0, 0.08));
  padding: 14px 20px;
  display: flex;
  align-items: center;
  position: relative;
}

.subjects-window-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red {
  background: #ff5f56;
}

.dot-yellow {
  background: #ffbd2e;
}

.dot-green {
  background: #27c93f;
}

.subjects-window-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.subjects-window-body {
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 40px;
  align-items: start;
}

.subjects-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Категория (аккордеон) */
.subject-category {
  border-bottom: 1px solid var(--border-glass, rgba(0, 0, 0, 0.05));
  padding-bottom: 12px;
  transition: all 0.3s ease;
}

.subject-category:last-child {
  border-bottom: none;
}

.subject-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 4px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s ease, padding 0.2s ease;
}

.subject-category-header:hover {
  background: rgba(0, 113, 227, 0.03);
  padding-left: 10px;
  padding-right: 10px;
}

.category-title-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-title-wrapper i {
  font-size: 1.3rem;
  color: var(--color-blue);
  transition: transform 0.3s ease;
}

.subject-category-header:hover .category-title-wrapper i {
  transform: scale(1.15);
}

.category-title-wrapper span {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-color);
}

.category-toggle-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-toggle-icon, #f1f3f5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.subject-category-header:hover .category-toggle-icon {
  background: var(--color-blue);
  color: #ffffff;
}

.subject-category.active .category-toggle-icon {
  background: var(--color-blue);
  color: #ffffff;
  transform: rotate(45deg);
  /* spins plus into cross */
}

/* Список предметов */
.subject-category-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, padding 0.4s ease;
  padding: 0 4px;
}

.subject-category.active .subject-category-content {
  opacity: 1;
  padding-top: 15px;
  padding-bottom: 5px;
}

.subject-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  padding-left: 36px;
}

.subject-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.subject-item i {
  font-size: 0.35rem;
  color: var(--color-blue);
  opacity: 0.7;
  margin-top: 0.45em;
  flex-shrink: 0;
}

.subject-item span {
  word-break: break-word;
}

/* Адаптивность */
@media (max-width: 991px) {
  .subjects-window-body {
    gap: 20px 20px;
  }

  .subject-list {
    grid-template-columns: 1fr;
    padding-left: 24px;
  }
}

@media (max-width: 767px) {
  .subjects-window-body {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .subjects-title {
    font-size: 1.8rem;
  }

  .subjects-window-title {
    display: none;
  }
}

/* Стили для кастомных иконок мессенджеров (PNG/SVG) */
.hero-messenger-btn img,
.social-link img,
.header-mobile-msg-btn img,
.mobile-social-btn img {
  width: 1.1rem;
  height: 1.1rem;
  object-fit: contain;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.social-link img,
.header-mobile-msg-btn img,
.mobile-social-btn img {
  width: 14px;
  height: 14px;
}

.hero-messenger-btn:hover img,
.social-link:hover img,
.header-mobile-msg-btn:hover img,
.mobile-social-btn:hover img {
  transform: scale(1.15);
}

/* --- Стили для динамического блока "Этапы работ" (steps) --- */
.steps-block-container {
  margin-top: 40px;
  margin-bottom: 60px;
}

.steps-block {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.steps-header {
  text-align: center;
  margin-bottom: 12px;
}

.steps-tag {
  display: inline-block;
  padding: 6px 14px;
  background-color: rgba(0, 113, 227, 0.07);
  color: var(--color-blue);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.steps-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}

.steps-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 10px auto 0;
  line-height: 1.5;
}

/* Сетка шагов */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  position: relative;
  margin-top: 16px;
}

/* Карточка шага */
.step-card {
  position: relative;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 32px 24px;
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 113, 227, 0.3);
  box-shadow: 0 16px 36px rgba(0, 113, 227, 0.08);
}

/* Огромная цифра на фоне */
.step-number {
  position: absolute;
  top: 10px;
  right: 15px;
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(0, 113, 227, 0.05);
  user-select: none;
  transition: color 0.35s ease;
}

.step-card:hover .step-number {
  color: rgba(0, 113, 227, 0.09);
}

/* Круглая плашка иконки */
.step-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background-color: rgba(0, 113, 227, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-blue);
  font-size: 1.6rem;
  flex-shrink: 0;
  transition: all 0.35s ease;
}

.step-card:hover .step-icon-wrapper {
  background-color: var(--color-blue);
  color: #fff;
  transform: scale(1.05) rotate(5deg);
}

/* Контент карточки */
.step-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}

.step-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.step-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Адаптивность */
@media (max-width: 768px) {
  .steps-title {
    font-size: 1.8rem;
  }

  .steps-subtitle {
    font-size: 0.92rem;
  }

  .step-card {
    padding: 24px;
  }
}

/* --- Стили для динамического блока "Карточки помощи / Гарантии" (help_cards) --- */
.help-cards-block-container {
  margin-top: 40px;
  margin-bottom: 60px;
}

.help-cards-block {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.help-cards-header {
  text-align: center;
  margin-bottom: 12px;
}

.help-cards-tag {
  display: inline-block;
  padding: 6px 14px;
  background-color: rgba(0, 113, 227, 0.07);
  color: var(--color-blue);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.help-cards-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}

.help-cards-title span {
  color: #34c759;
}

.help-cards-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 10px auto 0;
  line-height: 1.5;
}

/* Сетка карточек помощи */
.help-cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 16px;
}

/* Карточка */
.help-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.help-card.has-button {
  padding-bottom: 84px;
}

.help-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 113, 227, 0.25);
  box-shadow: 0 12px 28px rgba(0, 113, 227, 0.06);
}

/* Оформление контурной иконки */
.help-card-icon-wrapper {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #34c759;
  font-size: 2.2rem;
  transition: transform 0.3s ease;
}

.help-card:hover .help-card-icon-wrapper {
  transform: scale(1.1) rotate(-5deg);
}

/* Заголовок и текст */
.help-card-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.help-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-blue);
  line-height: 1.3;
}

.help-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Фирменная синяя кнопка действия */
.help-card-btn {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background-color: var(--color-blue);
  color: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.15);
}

.help-card-btn:hover {
  background-color: #0066cc;
  box-shadow: 0 6px 16px rgba(0, 113, 227, 0.25);
  transform: translateY(-1px);
}

/* Адаптивность для карточек помощи */
@media (max-width: 1200px) {
  .help-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .help-cards-title {
    font-size: 1.8rem;
  }

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

@media (max-width: 480px) {
  .help-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Стили для Динамического конструктора форм (Dynamic Form Builder Modal) --- */
.dynamic-modal-content {
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 20px 50px rgba(0, 113, 227, 0.15);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.dynamic-form-header {
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 24px;
}

/* Сетка полей формы */
.df-fields-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 16px;
}

/* Поля 50% и 100% */
.df-field-wrap {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}

.df-field-50 {
  flex: 1 1 calc(50% - 8px);
  min-width: 240px;
}

.df-field-100 {
  flex: 1 1 100%;
}

/* Стилизация Зоны загрузки файлов (Drag & Drop) */
.df-file-upload-zone {
  border: 2px dashed var(--border-glass);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  background: var(--bg-secondary);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.df-file-upload-zone:hover {
  border-color: var(--color-blue);
  background: rgba(0, 113, 227, 0.02);
}

.df-file-upload-zone span {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 4px;
}

/* Квиз прогресс-бар */
.df-quiz-progress-wrapper {
  margin-bottom: 20px;
}

.df-quiz-progress-bar {
  height: 6px;
  background: rgba(0, 113, 227, 0.07);
  border-radius: 100px;
  overflow: hidden;
}

.df-quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-blue), #34c759);
  width: 0%;
  border-radius: 100px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.df-quiz-progress-text {
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Шаги квиза (анимация) */
.df-form-step {
  width: 100%;
  animation: dfStepFadeIn 0.4s ease;
}

@keyframes dfStepFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

/* Согласие с персональными данными */
.df-consent-wrapper label {
  user-select: none;
}

/* Адаптивность для полей формы */
@media (max-width: 576px) {
  .dynamic-modal-content {
    padding: 24px;
    border-radius: 20px;
  }

  .df-field-50 {
    flex: 1 1 100%;
  }
}

/* Стили для чипов перелинковки матричного SEO */
.matrix-crosslink-chip {
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.matrix-crosslink-chip:hover {
  background-color: #e0e7ff !important;
  border-color: #818cf8 !important;
  color: #4f46e5 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
}