/* Alevez — header + hero (match reference layout) — fonts linked in HTML */

.page-alevez {
  font-family: "Montserrat", system-ui, sans-serif;
}

/* Якоря (#overview, #faq…) не уезжают под sticky-шапку */
html:has(.page-alevez) {
  scroll-padding-top: clamp(5.5rem, 14vh, 8.5rem);
}

.page-alevez .site-header,
.page-alevez .disclosure-bar {
  display: none;
}

/* Плашка «Publicité» + шапка — липкие сверху */
.alevez-topbar-wrap {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
}

.ad-disclosure-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, #f6f4ef 0%, #faf9f7 55%, #ffffff 100%);
  border-bottom: 1px solid rgba(154, 123, 60, 0.1);
  padding: 0.5rem 1rem 0.45rem;
  padding-top: max(0.5rem, calc(0.35rem + env(safe-area-inset-top)));
  user-select: none;
}

.ad-disclosure-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
}

.ad-disclosure-line {
  flex: 1 1 auto;
  height: 1px;
  min-width: 0.75rem;
  max-width: 5rem;
  background: linear-gradient(90deg, transparent, rgba(154, 123, 60, 0.28), transparent);
}

.ad-disclosure-label {
  flex-shrink: 0;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7d6b4f;
  padding: 0.22rem 0.75rem;
  border-radius: 999px;
  background: rgba(154, 123, 60, 0.08);
  border: 1px solid rgba(154, 123, 60, 0.18);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

@media (max-width: 380px) {
  .ad-disclosure-inner {
    max-width: 100%;
    gap: 0.5rem;
  }
  .ad-disclosure-line {
    max-width: 2.5rem;
  }
  .ad-disclosure-label {
    letter-spacing: 0.12em;
    padding: 0.2rem 0.6rem;
  }
}

/* —— Header —— */
.alevez-header {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.alevez-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.alevez-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.alevez-brand:hover {
  text-decoration: none;
}

.alevez-logo {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  color: #9a7b3c;
  letter-spacing: 0.06em;
  line-height: 1;
}

.alevez-divider {
  color: #c5c5c5;
  font-weight: 300;
  font-size: 1.25rem;
  line-height: 1;
}

.alevez-tagline {
  font-size: 0.7rem;
  font-weight: 500;
  color: #5c5c5c;
  line-height: 1.35;
  max-width: 11rem;
  text-transform: none;
}

@media (min-width: 480px) {
  .alevez-tagline {
    font-size: 0.75rem;
    max-width: none;
  }
}

.alevez-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex-wrap: wrap;
}

.alevez-nav a {
  color: #3d3d3d;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: capitalize;
}

.alevez-nav a:hover {
  color: #4eb8c4;
}

.alevez-btn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff !important;
  background: linear-gradient(180deg, #5ec8d4 0%, #4ab8c4 45%, #3da8b4 100%);
  border-radius: 999px;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(74, 184, 196, 0.35);
  border: none;
  white-space: nowrap;
}

.alevez-btn-buy:hover {
  filter: brightness(1.05);
  text-decoration: none !important;
}

/* —— Hero split —— */
.page-alevez section.hero-alevez {
  padding: 0;
  margin: 0;
}

/* Картинка на весь блок; текст поверх */
.hero-alevez {
  position: relative;
  min-height: min(92vh, 640px);
  width: 100%;
  overflow: hidden;
  background: #2b3a78;
  z-index: 0;
}

/* Только на мобилках: фото наколенника; на десктопе скрыто */
.hero-mobile-brace {
  display: none;
}

.hero-alevez-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-alevez-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Затемнение слева под белый текст — при необходимости ослабьте или удалите блок .hero-alevez-scrim в HTML */
.hero-alevez-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(43, 58, 120, 0.9) 0%,
    rgba(43, 58, 120, 0.55) 40%,
    rgba(43, 58, 120, 0.12) 68%,
    transparent 85%
  );
}

.hero-alevez-content {
  position: relative;
  z-index: 2;
  min-height: min(92vh, 640px);
  display: flex;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  padding: 0 1rem;
}

.hero-alevez-left {
  flex: 0 1 46%;
  min-width: 0;
  max-width: 560px;
  background: transparent;
  padding: 2.25rem 0.5rem 2.5rem clamp(0.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  margin-bottom: 1.1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
}

.hero-stars {
  color: #ff9800;
  letter-spacing: 0.08em;
  font-size: 1rem;
  line-height: 1;
}

.hero-h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.35rem, 2.4vw, 2.05rem);
  font-weight: 800;
  line-height: 1.18;
  color: #fff;
  letter-spacing: -0.02em;
}

.hero-h1 span {
  color: #7ec8e8;
  font-weight: 800;
}

.hero-benefits {
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
}

.hero-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  font-size: clamp(0.8rem, 1.1vw, 0.9rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}

.hero-chk {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e65100;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.hero-chk svg {
  width: 12px;
  height: 12px;
  fill: #fff;
}

.hero-offer {
  margin: 0 0 1.25rem;
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.45;
}

.hero-offer strong {
  color: #ff9800;
  font-weight: 800;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff !important;
  background: linear-gradient(180deg, #5ed4e0 0%, #4ab8c4 40%, #3aa5b2 100%);
  border-radius: 999px;
  text-decoration: none !important;
  box-shadow: 0 4px 18px rgba(74, 184, 196, 0.45);
  margin-bottom: 1.35rem;
  align-self: flex-start;
  text-transform: none;
  letter-spacing: 0.02em;
}

.hero-cta-btn:hover {
  filter: brightness(1.06);
  text-decoration: none !important;
}

.hero-trust-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.hero-trust-line span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-trust-line svg {
  flex-shrink: 0;
  opacity: 0.95;
}

/* При необходимости бейдж RECOMMENDED можно добавить поверх фото */
.hero-recommended-badge {
  display: none;
}

.hero-us-icon {
  font-size: 1.1rem;
  line-height: 1;
}

/* Планшеты и узкие ноутбуки */
@media (max-width: 991px) {
  .hero-alevez {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
  }

  /* Полноэкранный баннер скрыт — только фото наколенника */
  .hero-alevez-bg {
    display: none !important;
  }

  .hero-alevez-scrim {
    display: none;
  }

  /* Сначала текст (.hero-alevez-content), затем фото наколенника */
  .hero-alevez-content {
    flex: 0 1 auto;
    order: 1;
    align-items: stretch;
    justify-content: flex-start;
    padding: max(0.75rem, env(safe-area-inset-top)) 1.25rem 1rem;
    padding-bottom: 1rem;
  }

  .hero-alevez-left {
    flex: none;
    width: 100%;
    max-width: 36rem;
    margin: 0 auto;
    padding: 0.5rem 0.25rem 0;
    align-self: stretch;
  }

  .hero-mobile-brace {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    order: 2;
    width: 100%;
    padding: 0.5rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
    background: #2b3a78;
    box-sizing: border-box;
  }

  .hero-mobile-brace img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(92%, 340px);
    max-height: min(42vh, 320px);
    object-fit: contain;
    object-position: center;
  }

  .hero-h1 {
    font-size: clamp(1.35rem, 5.2vw, 1.85rem);
    line-height: 1.22;
    margin-bottom: 1rem;
  }

  .hero-benefits li {
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
  }

  .hero-cta-btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1rem 1.25rem;
    text-align: center;
  }

  .hero-trust-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.6875rem;
  }
}

/* Телефоны */
@media (max-width: 480px) {
  .hero-alevez {
    min-height: 100vh;
    min-height: 100dvh;
    min-height: 100svh;
  }

  .hero-alevez-content {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .hero-mobile-brace img {
    max-height: min(36vh, 280px);
    max-width: 92%;
  }

  .hero-rating {
    font-size: 0.75rem;
    margin-bottom: 0.85rem;
  }

  .hero-h1 {
    font-size: 1.28rem;
    margin-bottom: 0.85rem;
  }

  .hero-benefits {
    margin-bottom: 1rem;
  }

  .hero-offer {
    font-size: 0.8125rem;
    margin-bottom: 1rem;
  }

  .hero-cta-btn {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
}

/* Шапка на мобилках: одна строка лого + CTA, меню — горизонтальный скролл */
@media (max-width: 767px) {
  .alevez-header {
    border-bottom-color: #eee;
  }

  .alevez-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 0.75rem;
    row-gap: 0;
    padding: 0.55rem max(1rem, env(safe-area-inset-left)) 0.5rem max(1rem, env(safe-area-inset-right));
    flex-wrap: unset;
  }

  .alevez-brand {
    grid-column: 1;
    grid-row: 1;
    justify-content: flex-start;
    flex-wrap: nowrap;
    min-width: 0;
  }

  .alevez-logo {
    font-size: 1.45rem;
  }

  .alevez-divider,
  .alevez-tagline {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .alevez-btn-buy {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    max-width: none;
    padding: 0.52rem 1.15rem;
    font-size: 0.74rem;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(74, 184, 196, 0.35);
  }

  .alevez-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
    margin: 0.45rem -1rem 0;
    margin-left: calc(-1 * max(1rem, env(safe-area-inset-left)));
    margin-right: calc(-1 * max(1rem, env(safe-area-inset-right)));
    padding: 0.4rem max(1rem, env(safe-area-inset-left)) 0.45rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-top: 1px solid #f0f0f0;
    background: linear-gradient(90deg, #fafafa 0%, #fff 8%, #fff 92%, #fafafa 100%);
  }

  .alevez-nav::-webkit-scrollbar {
    display: none;
  }

  .alevez-nav a {
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 600;
    color: #444;
    padding: 0.35rem 0.85rem;
    margin-right: 0.15rem;
    border-radius: 999px;
    background: #f3f4f6;
    text-decoration: none !important;
  }

  .alevez-nav a:hover,
  .alevez-nav a:active {
    color: #2a9daa;
    background: #e8f7f9;
  }
}

@media (max-width: 360px) {
  .alevez-logo {
    font-size: 1.3rem;
  }

  .alevez-btn-buy {
    padding: 0.48rem 0.95rem;
    font-size: 0.7rem;
  }

  .alevez-nav a {
    font-size: 0.72rem;
    padding: 0.32rem 0.7rem;
  }
}

/* Альбомная ориентация — не растягивать выше экрана, компактнее текст */
@media (max-width: 991px) and (orientation: landscape) and (max-height: 520px) {
  .hero-alevez,
  .hero-alevez-content {
    min-height: auto;
    min-height: 100svh;
  }

  .hero-alevez-content {
    align-items: center;
    padding-top: 0.5rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  }

  .hero-alevez-left {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .hero-rating {
    margin-bottom: 0.5rem;
    font-size: 0.7rem;
  }

  .hero-h1 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
  }

  .hero-benefits {
    margin-bottom: 0.5rem;
  }

  .hero-benefits li {
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
  }

  .hero-offer {
    font-size: 0.72rem;
    margin-bottom: 0.5rem;
  }

  .hero-cta-btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }

  .hero-trust-line {
    font-size: 0.62rem;
    gap: 0.35rem;
  }

  .hero-mobile-brace {
    padding-top: 0.25rem;
    padding-bottom: 0.15rem;
  }

  .hero-mobile-brace img {
    max-height: min(24vh, 150px);
    max-width: 70%;
  }
}
