/* EHL journal — landing */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@500;600;700&family=Montserrat:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

.home-page {
  font-family: 'Montserrat', system-ui, sans-serif;
  --landing-pad: clamp(24px, 4vw, 48px);
  --landing-max: 1400px;
  /* только светлый синий + жёлтый */
  --landing-blue-soft: #ffffff;
  --landing-blue: #a8c8f0;
  --landing-blue-mid: #7eb0e8;
  --landing-blue-deep: #3a7fd4;
  --landing-ink: #0c3d82;
  --landing-yellow: #f5c518;
  --landing-yellow-soft: #ffe566;
  background: #f0f4f7;
}

/* Одна левая линия — герой */
.home-page .landing-hero-inner {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: auto;
  padding-left: var(--landing-pad);
  padding-right: 0;
  box-sizing: border-box;
}

/* Шапка на всю ширину — кнопки у правого края */
.home-page .landing-nav-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: var(--landing-pad);
  padding-right: var(--landing-pad);
  box-sizing: border-box;
}

.home-page .announce-bar {
  background: linear-gradient(90deg, var(--landing-blue-mid) 0%, var(--landing-yellow) 100%);
  border-bottom: 1px solid rgba(12, 61, 130, 0.12);
  color: var(--landing-ink);
}

/* ---- Меню: фон в тон герою ---- */
.landing-header {
  position: relative;
  z-index: 50;
  background: #f0f4f7;
  border-bottom: 3px solid var(--landing-yellow);
  box-shadow: 0 4px 20px rgba(12, 61, 130, 0.06);
}

.landing-nav-inner {
  min-height: 80px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  flex-wrap: nowrap;
  width: 100%;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--landing-ink);
}

.landing-brand:hover { text-decoration: none; color: var(--landing-ink); }

.landing-brand-mark {
  width: 52px;
  height: 52px;
  background: linear-gradient(145deg, #ffe566 0%, #f5c518 55%, #d4a60a 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  color: #072554;
  box-shadow: 0 6px 20px rgba(245,197,24,0.40);
  border: 2px solid rgba(12, 61, 130, 0.15);
  flex-shrink: 0;
}

.landing-brand-text { display: flex; flex-direction: column; gap: 0; line-height: 1.15; }
.landing-brand-sm { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(12, 61, 130, 0.7); }
.landing-brand-lg { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: var(--landing-ink); }

.landing-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  justify-content: flex-start;
  flex: 0 1 auto;
  margin-left: 40px;
}

/* Только пункты меню шапки — Inter (чуть крупнее: на экране кажется меньше Montserrat) */
.landing-menu > a,
.landing-dropdown > button {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

.landing-menu > a {
  color: var(--landing-ink);
  text-decoration: none;
  padding: 13px 20px;
  white-space: nowrap;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.landing-menu > a:hover {
  background: rgba(245, 197, 24, 0.35);
  color: var(--landing-ink);
  text-decoration: none;
}

.landing-dropdown {
  position: relative;
}

.landing-dropdown > button {
  background: transparent;
  border: none;
  color: var(--landing-ink);
  padding: 13px 20px;
  white-space: nowrap;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
}

.landing-dropdown > button:hover { background: rgba(245, 197, 24, 0.35); color: var(--landing-ink); }

.landing-dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #ffffff;
  border: 1px solid #c5daf5;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(12, 61, 130, 0.18);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 100;
}

.landing-dropdown:focus-within .landing-dropdown-panel,
.landing-dropdown:hover .landing-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.landing-dropdown-panel a {
  display: block;
  padding: 12px 16px;
  color: var(--landing-ink);
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
}

.landing-dropdown-panel a:hover { background: rgba(245, 197, 24, 0.4); text-decoration: none; }
.landing-dropdown-panel hr { border: none; border-top: 1px solid var(--landing-blue-mid); margin: 6px 0; }
.landing-dropdown-panel .muted { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(12, 61, 130, 0.55); padding: 6px 14px 4px; }

.landing-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  white-space: nowrap;
  margin-left: auto;
}

.landing-actions .lang-switch--inline {
  position: static;
  top: auto;
  right: auto;
  z-index: auto;
  flex-shrink: 0;
}

.home-page .lang-switch__btn {
  border-color: rgba(12, 61, 130, 0.25);
  background: var(--landing-blue);
  color: var(--landing-ink);
}

.home-page .lang-switch__btn:hover {
  background: var(--landing-yellow-soft);
}

.home-page .lang-switch__btn.is-active {
  background: var(--landing-yellow);
  color: var(--landing-ink);
  border-color: transparent;
}

.landing-link-login {
  color: var(--landing-ink);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  padding: 9px 12px;
  white-space: nowrap;
}

.landing-link-login:hover { color: var(--landing-ink); text-decoration: underline; }

.landing-cta-orange {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ffe566 0%, #f5c518 55%, #e0b010 100%);
  color: #072554 !important;
  font-size: 16px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(245,197,24,0.45);
  border: none;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s;
}

.landing-cta-orange:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(245,197,24,0.55);
  text-decoration: none;
  color: #072554 !important;
}

/* Пульс «как в рекламе» — кнопки на месте, чуть ближе/дальше */
@keyframes btn-pulse-ad {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 18px rgba(245, 197, 24, 0.45);
  }
  50% {
    transform: scale(1.07);
    box-shadow: 0 8px 32px rgba(245, 197, 24, 0.6);
  }
}

@keyframes btn-pulse-ad-soft {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.12);
  }
}

.btn-pulse-ad {
  animation: btn-pulse-ad 2.4s ease-in-out infinite;
  transform-origin: center center;
}

.btn-pulse-ad--soft {
  animation-name: btn-pulse-ad-soft;
  animation-duration: 2.8s;
}

.landing-cta-orange.btn-pulse-ad:hover {
  animation-play-state: paused;
  transform: translateY(-1px) scale(1.06);
}

.landing-hero-ghost.btn-pulse-ad:hover,
.btn-pulse-ad--soft:hover {
  animation-play-state: paused;
  transform: scale(1.05);
}

.home-page .btn-primary.btn-pulse-ad:hover {
  animation-play-state: paused;
  transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
  .btn-pulse-ad,
  .btn-pulse-ad--soft {
    animation: none !important;
  }
}

/* ---- Hero: фон как у иллюстрации, картинка без «квадрата» ---- */
.landing-hero {
  position: relative;
  background: #f0f4f7;
  color: var(--landing-ink);
  overflow: hidden;
  min-height: min(520px, 85vh);
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

/* Жёлтая линия на стыке героя и контента */
.home-page .landing-hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 4px;
  background: var(--landing-yellow);
  box-shadow: 0 0 24px rgba(245, 197, 24, 0.45);
  z-index: 6;
  pointer-events: none;
}

/* Мягкий переход: слева чуть светлее, справа тон под картинку */
.landing-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 90% at 78% 48%,
    #f0f4f7 0%,
    #f5f8fb 45%,
    #eef3f8 100%
  );
  pointer-events: none;
  z-index: 1;
}

.landing-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(12, 61, 130, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 61, 130, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
  /* сетка только слева у текста — справа не спорит с иллюстрацией */
  mask-image: linear-gradient(90deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.22) 42%, transparent 68%);
}

/* Лёгкое свечение слева (синее) */
.landing-hero-glow {
  position: absolute;
  width: 55%;
  height: 90%;
  left: -8%;
  top: 5%;
  right: auto;
  background: radial-gradient(ellipse at 30% 50%, rgba(126, 176, 232, 0.22) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.landing-hero-inner {
  position: relative;
  z-index: 2;
  overflow: visible;
  padding-top: 48px;
  padding-bottom: 56px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 8px 16px;
  align-items: center;
}

.landing-hero-copy h1 {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
  color: var(--landing-ink);
  text-shadow: 0 2px 0 rgba(245, 197, 24, 0.35);
}

.landing-hero-copy .sub {
  font-size: clamp(1.12rem, 2.2vw, 1.38rem);
  font-weight: 500;
  color: rgba(12, 61, 130, 0.82);
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: 34px;
}

.landing-hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.landing-hero-cta-row .landing-cta-orange {
  padding: 17px 38px;
  font-size: 18px;
}

.landing-hero-ghost {
  display: inline-flex;
  align-items: center;
  padding: 16px 28px;
  border-radius: 999px;
  border: 2px solid var(--landing-ink);
  color: var(--landing-ink);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  background: rgba(245, 197, 24, 0.25);
  transition: background 0.15s, border-color 0.15s;
}

.landing-hero-ghost:hover {
  background: var(--landing-yellow);
  border-color: var(--landing-ink);
  text-decoration: none;
  color: var(--landing-ink);
}

/* EHL hero visual — illustration instead of globe */
.landing-hero-art {
  position: relative;
  height: 100%;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  width: auto;
  max-width: none;
  margin-right: 0;
  margin-left: auto;
  overflow: visible;
}

.ehl-hero-visual {
  position: relative;
  width: min(560px, 54vw);
  margin-left: auto;
  margin-right: clamp(4px, 1.5vw, 20px);
  /* мягкая круглая маска — углы квадрата исчезают */
  -webkit-mask-image: radial-gradient(closest-side at 50% 50%, #000 72%, transparent 100%);
  mask-image: radial-gradient(closest-side at 50% 50%, #000 72%, transparent 100%);
  animation: ehl-hero-float 6s ease-in-out infinite;
}

.ehl-hero-visual__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  /* светлый фон PNG «растворяется» в фоне героя */
  mix-blend-mode: multiply;
  filter: contrast(1.02) saturate(1.05);
}

@keyframes ehl-hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .ehl-hero-visual {
    animation: none !important;
  }
}

/* Journal strip under hero */
.landing-journals-wrap {
  background: #ffffff;
  border-bottom: 1px solid #c5daf5;
  box-shadow: 0 4px 20px rgba(12,61,130,0.06);
}

.landing-journals {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.landing-journals-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8896a8;
  margin-right: 4px;
}

.landing-journals .journal-btn {
  background: #f4f7fb;
  border: 1px solid #dce3ed;
  color: #0c3d82;
}

.landing-journals .journal-btn:hover {
  background: #e8f0fd;
  border-color: #0c3d82;
  color: #0c3d82;
}

.home-page .sub-nav {
  background: #ffffff;
}

/* Светло-синяя полоса контента */
.home-page .main-content {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 48px var(--landing-pad) 64px;
  box-sizing: border-box;
  background: #f0f4f7;
}

/* Линия снизу — жёлтая */
.home-page .main-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 4px;
  background: var(--landing-yellow);
  box-shadow: 0 0 18px rgba(245, 197, 24, 0.35);
  pointer-events: none;
  z-index: 2;
}

.landing-journal-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

/* Карточка журнала — центр, аккуратная типографика */
.home-page .ehl-journal-card {
  max-width: 920px;
  width: 100%;
  margin-bottom: 0;
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 4px 6px rgba(12, 61, 130, 0.04),
    0 20px 50px rgba(12, 61, 130, 0.12);
  background: #ffffff;
}

.home-page .ehl-journal-card:hover {
  box-shadow:
    0 8px 12px rgba(12, 61, 130, 0.06),
    0 28px 56px rgba(12, 61, 130, 0.16);
}

.ehl-journal-card__cover {
  width: 296px;
  min-height: 360px;
  background: #3a7fd4;
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ehl-journal-card__cover-img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  max-height: 360px;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 14px 10px;
  box-sizing: border-box;
  background: #3a7fd4;
}

.ehl-journal-card__body {
  padding: 40px 44px 44px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}

.ehl-journal-card__head {
  position: relative;
  margin: 0 -44px 28px;
  padding: 0 44px 26px 62px;
  border-bottom: 2px solid #d0dae6;
}

.ehl-journal-card__head::before {
  content: '';
  position: absolute;
  left: 44px;
  top: 0;
  bottom: 26px;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, #0c3d82 0%, #1a5a9e 100%);
}

.ehl-journal-card__eyebrow {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7c8f;
  margin: 0 0 14px;
}

.ehl-journal-card__title {
  font-family: 'Plus Jakarta Sans', 'Montserrat', system-ui, sans-serif;
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: #072d5c;
  margin: 0 0 12px;
  letter-spacing: -0.035em;
}

.ehl-journal-card__meta {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #3d4f63;
  line-height: 1.5;
  margin: 0;
}

.ehl-journal-card__pricing {
  display: flex;
  flex-wrap: wrap;
  gap: 36px 48px;
  padding-top: 4px;
}

.ehl-journal-card__price-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8896a8;
  margin-bottom: 8px;
}

.ehl-journal-card__price-value {
  display: block;
  font-family: 'Plus Jakarta Sans', 'Montserrat', system-ui, sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #0c3d82;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.ehl-journal-card__price-value--free {
  color: #f5c518;
}

.ehl-journal-card__price-note {
  display: block;
  font-size: 15px;
  color: #8896a8;
  margin-top: 6px;
}

.ehl-journal-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.ehl-journal-card__btn {
  font-size: 17px;
  padding: 14px 36px;
  border-radius: 999px;
}

@media (max-width: 768px) {
  .home-page .ehl-journal-card {
    flex-direction: column;
  }
  .ehl-journal-card__cover {
    width: 100%;
    min-height: 280px;
  }
  .ehl-journal-card__body {
    padding: 28px 24px 32px;
  }
  .ehl-journal-card__head {
    margin: 0 -24px 24px;
    padding: 0 24px 22px 42px;
  }
  .ehl-journal-card__head::before {
    left: 24px;
    bottom: 22px;
  }
}

.home-page .section-title {
  color: #0c3d82;
}

.landing-menu > a.landing-nav-highlight {
  background: rgba(245, 197, 24, 0.45);
  color: var(--landing-ink);
  border: 1px solid rgba(212, 166, 10, 0.5);
}

.landing-menu > a.landing-nav-highlight:hover {
  background: var(--landing-yellow);
  color: var(--landing-ink);
}

@media (max-width: 960px) {
  .landing-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .landing-hero-copy {
    position: relative;
    z-index: 3;
  }
  .landing-hero-copy .sub { margin-left: auto; margin-right: auto; }
  .landing-hero-cta-row { justify-content: center; }
  .landing-hero-art {
    position: relative;
    z-index: 1;
    height: auto;
    min-height: 0;
    margin-top: 8px;
    margin-left: auto;
    margin-right: auto;
    justify-self: center;
    justify-content: center;
    max-width: min(420px, 92vw);
    width: 100%;
    overflow: hidden;
  }
  .ehl-hero-visual {
    width: min(420px, 90vw);
    margin: 0 auto;
  }
  .landing-menu { order: 3; width: 100%; margin-left: 0; justify-content: flex-start; }
  .landing-nav-inner { flex-wrap: wrap; height: auto; min-height: 80px; padding-top: 12px; padding-bottom: 12px; }
  .landing-menu > a,
  .landing-dropdown > button {
    font-size: 18px;
    padding: 12px 18px;
  }
  .landing-actions { margin-left: auto; }
}

@media (max-width: 600px) {
  .landing-brand-lg { font-size: 15px; }
  .landing-actions { width: 100%; justify-content: center; }
  .landing-cta-orange { width: 100%; justify-content: center; }
  .landing-hero-art { max-width: min(320px, 88vw); }
  .landing-hero-copy h1 { font-size: clamp(1.35rem, 7vw, 1.85rem); }
}
