/* ALL BLING — компоненты и страницы (токены: variables.css) */
@font-face {
  font-family: "Maslov";
  src:
    url("../fonts/Maslov.otf") format("opentype"),
    url("../font/Maslov.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Commissioner";
  src:
    url("../fonts/Commissioner.ttf") format("truetype"),
    url("../font/Commissioner.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html {
  scroll-padding-top: calc(var(--header-top) + var(--header-h) + 16px);
}

body,
button,
input,
textarea,
select {
  font-family: var(--font-body);
}

body {
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

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

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

.section--tight {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

/* ——— Кнопки ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  font-size: var(--btn-font-size);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 0;
  border: 1px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition),
    transform var(--transition), box-shadow var(--transition);
}

.btn--primary {
  background: var(--color-accent);
  color: #ffffff;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  color: #ffffff;
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--light {
  background: var(--color-surface);
  color: var(--color-accent);
  border-color: var(--color-border);
}

.btn--light:hover,
.btn--light:focus-visible {
  background: var(--color-accent-light);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--color-heading);
  border-color: rgba(17, 24, 109, 0.35);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  border-color: var(--color-accent);
  background: rgba(17, 24, 109, 0.04);
}

.btn--wide {
  min-width: min(100%, 320px);
}

.btn--sm {
  padding: 0.65rem 1.1rem;
  font-size: var(--btn-font-size-sm);
}

/* Шапка: static/css/header.css */

/* Контент страниц — от верхнего края, хедер поверх */
main,
#main-content {
  margin: 0;
  padding-top: 0;
}

.site-messages {
  position: fixed;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  top: calc(var(--header-top) + var(--header-h) + 12px);
  left: 12px;
  right: 12px;
  max-width: none;
  width: auto;
}

@media (min-width: 768px) {
  .site-messages {
    left: 20px;
    right: 20px;
  }
}

@media (min-width: 1024px) {
  .site-messages {
    top: auto;
    bottom: 24px;
    left: 24px;
    right: auto;
    width: min(420px, calc(100vw - 48px));
  }
}

/* ——— Hero (Оптимизировано: Изображение СПРАВА СНИЗУ) ——— */
.hero {
  position: relative;
  margin-top: -130px;
  height: 100vh;
  min-height: 800px;
  background: radial-gradient(circle at center, #2527db 0%, #141575 100%);
  overflow: hidden;
}

.hero__container {
  position: relative;
  height: 100%;
  width: 100%;
}

/* Визуальная часть (Модель) — ТЕПЕРЬ СПРАВА СНИЗУ */
.hero__visual {
  position: absolute;
  bottom: 0;   /* Прижимаем к низу */
  right: 0;    /* Прижимаем к правому краю */
  
  width: 50%;  /* Немного увеличил, так как справа обычно больше места под контент */
  height: 100%; 
  max-height: 100vh; /* Позволяем быть чуть выше, если нужно */
  
  z-index: 1; 
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: contain; 
  object-position: right bottom; /* Якорь в правый нижний угол */
}

/* Контентный слой */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2; 
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 180px; 
  padding-bottom: 50px; 
}

/* ——— Типографика (Возвращаем лесенку под правую композицию) ——— */
.hero__typography {
  color: #fff;
  text-transform: uppercase;
  padding-left: 30px; 
}

.hero__svg-title {
  width: 100%;
  max-width: 800px;
  height: auto;
  margin-bottom: -15px;
}

.hero__text-lines {
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

/* ПРО ТЕБЯ: 128px, Стрелка 360x40px, Отступ всей строки 150px */
.main-line {
  display: flex;
  align-items: center;
  margin-top: 40px; 
  font-family: var(--font-display);
  font-size: 90px;
  line-height: 1.1;
  text-transform: uppercase;
}

.hero__arrow {
  width: 250px;
  height: 40px;
  object-fit: contain;
  margin-right: 20px;
}

/* ДЛЯ ТЕБЯ: 96px, отступ слева 120px */
.side-line {
  font-family: var(--font-display);
  font-size: 60px;
  margin-left: 120px;
  margin-top: 40px;
  line-height: 1.1;
  text-transform: uppercase;
}

/* О ТЕБЕ: 64px, отступ слева 490px */
.hero__line-sub {
  font-family: var(--font-display);
  font-size: 40px;
  margin-left: 350px;
  margin-top: 40px;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}



/* Описание: 24px, выравнивание по линии "О ТЕБЕ" (490px) */
.hero__desc-small {
  font-size: 12px;
  font-family: var(--font-body); /* или укажи нужный шрифт для текста */
  font-weight: 300;
  margin-left: 90px;
  line-height: 1.3;
  max-width: 130px;
  text-transform: none;
}

/* ——— Оптимизированная часть для выравнивания в одну строку ——— */

.hero__row-bottom {
  display: flex;
  flex-direction: row; /* Выстраиваем в ряд */
  align-items: end;
}

/* ——— Кнопки (Строго 930x70) ——— */
.hero__actions {
  display: flex;
  gap: 20px;
  padding: 0 25px;
  justify-content: center;
}

.hero .hero__actions .btn {
  width: 930px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 0; 
  background: #fff;
  color: #000;
  border: 1px solid #fff;
  transition: all 0.3s ease;
}

.hero .hero__actions .btn:hover {
  background: transparent;
  color: #fff;
}

/* Адаптив для кнопок */
@media (max-width: 1800px) {
  .hero .hero__actions .btn {
    width: 100%;
  }
}

/* Мобильный адаптив */
@media (max-width: 768px) {
  .hero {
    margin-top: 0;
    min-height: 100dvh;
    height: auto;
  }

  .hero__overlay {
    padding-top: 72px;
    padding-bottom: 0;
  }

  .hero__visual {
    width: 58%;
    max-height: 72%;
    opacity: 1;
  }

  .hero__typography {
    padding-left: 16px;
    padding-right: 8px;
  }

  .hero__svg-title {
    max-width: 92%;
    margin-bottom: 0;
  }

  .main-line {
    margin-top: 12px;
    font-size: clamp(1.5rem, 7vw, 2rem);
    flex-wrap: wrap;
  }

  .hero__arrow {
    width: 72px;
    height: auto;
    margin-right: 8px;
  }

  .side-line {
    margin-left: 0;
    margin-top: 8px;
    font-size: clamp(1.25rem, 6vw, 1.75rem);
  }

  .hero__row-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
  }

  .hero__line-sub {
    margin-left: 0;
    font-size: clamp(1rem, 5vw, 1.35rem);
    margin-top: 0;
  }

  .hero__desc-small {
    margin-left: 0;
    max-width: 11rem;
    font-size: 0.6875rem;
    line-height: 1.35;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
    margin-top: auto;
  }

  .hero .hero__actions .btn {
    width: 100%;
    height: 56px;
    padding: 0 8px;
    font-size: 0.625rem;
    line-height: 1.2;
    text-align: center;
    border-radius: 0;
    border: none;
  }

  .hero .hero__actions .btn:first-child {
    background: #dce0e4;
    color: #11186d;
  }

  .hero .hero__actions .btn:last-child {
    background: #ffffff;
    color: #11186d;
  }

  .hero .hero__actions .btn:hover {
    background: inherit;
    color: inherit;
  }
}

@media (max-width: 359px) {
  .hero .hero__actions .btn {
    font-size: 0.5625rem;
    height: 52px;
  }
}


/* ——— Гарантия ——— */
.quality {
  background: linear-gradient(180deg, #f3f4f8 0%, #ffffff 100%);
}

.quality__grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

@media (min-width: 900px) {
  .quality__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  }
}

.quality__title {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-heading);
}

.quality__lead {
  margin: 0 0 1.5rem;
  color: var(--color-text-muted);
  max-width: 48ch;
}

.quality__brand {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.quality__visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.quality__img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

/* ——— CTA-баннер ——— */
.cta-banner {
  --cb-muted: rgba(255, 255, 255, 0.72);
  background: linear-gradient(120deg, #11186d 0%, #0d1250 45%, #1a2288 100%);
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 90% 10%, rgba(255, 255, 255, 0.12), transparent 55%);
  pointer-events: none;
}

.cta-banner__inner {
  position: relative;
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .cta-banner__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

.cta-banner__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #ffffff;
}

.cta-banner__text {
  margin: 0 0 1.5rem;
  color: var(--cb-muted);
  max-width: 48ch;
}

.cta-banner__photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.cta-banner__photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

/* ——— Категории ——— */
.categories__grid {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .categories__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .categories__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .categories__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.category-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  align-content: end;
  gap: 0.5rem;
  padding: 1rem;
  min-height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

@media (min-width: 1280px) {
  .category-card {
    min-height: 240px;
  }
}

.category-card:hover,
.category-card:focus-visible {
  transform: translateY(-8px);
  border-color: rgba(17, 24, 109, 0.2);
  box-shadow: var(--shadow-hover);
}

.category-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.category-card:hover .category-card__img {
  transform: scale(1.06);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(10, 12, 40, 0.88) 100%);
  pointer-events: none;
}

.category-card__label,
.category-card__arrow {
  position: relative;
  z-index: 1;
}

.category-card__label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-surface);
}

.category-card__arrow {
  font-size: 1.25rem;
  line-height: 1;
  color: var(--color-gold);
}

/* ——— Рассылка ——— */
.newsletter {
  background: var(--color-bg-soft);
  border-block: 1px solid var(--color-border);
}

.newsletter__inner {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .newsletter__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: start;
  }
}

.newsletter__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--color-heading);
}

.newsletter__lead {
  margin: 0;
  color: var(--color-text-muted);
}

.newsletter__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.newsletter__input {
  flex: 1 1 240px;
  min-height: 52px;
  padding: 0 1rem;
  font: inherit;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.newsletter__input::placeholder {
  color: rgba(26, 26, 26, 0.4);
}

.newsletter__input:focus {
  outline: none;
  border-color: rgba(17, 24, 109, 0.45);
  box-shadow: 0 0 0 3px rgba(17, 24, 109, 0.08);
}

.newsletter__btn {
  flex: 0 0 auto;
}

.newsletter__consent {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  cursor: pointer;
}

.newsletter__consent input {
  margin-top: 0.2rem;
}

/* ——— Отзывы ——— */
.reviews__scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  margin-inline: calc(50% - 50vw);
  padding-inline: clamp(16px, 4vw, 48px);
  -webkit-overflow-scrolling: touch;
}

.review-card {
  flex: 0 0 min(280px, 78vw);
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.review-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.review-card__media {
  position: relative;
  aspect-ratio: 280 / 360;
  overflow: hidden;
}

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

.review-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 24, 109, 0.18);
  transition: background var(--transition);
}

.review-card:hover .review-card__play {
  background: rgba(17, 24, 109, 0.32);
}

.review-card__play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-accent);
  font-size: 1.25rem;
  padding-left: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform var(--transition);
}

.review-card:hover .review-card__play-icon {
  transform: scale(1.08);
}

.review-card__caption {
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* ——— Toast-уведомления (messages framework) ——— */
@keyframes site-toast-in {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 1024px) {
  @keyframes site-toast-in {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

.site-messages__item {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(20, 21, 117, 0.1);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 4px 24px rgba(17, 24, 109, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  animation: site-toast-in 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-messages__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  object-fit: contain;
}

.site-messages__text {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: #212529;
}

.site-messages__item--success {
  border-left: 4px solid #141575;
}

.site-messages__item--error {
  border-left: 4px solid #dc3545;
}

.site-messages__item--warning {
  border-left: 4px solid #9a7b2d;
}

.site-messages__item--info {
  border-left: 4px solid #6c757d;
}

@media (prefers-reduced-motion: reduce) {
  .site-messages__item {
    animation: none;
  }
}

/* ——— 320px ——— */
@media (max-width: 359px) {
  .hero__title {
    font-size: 1.65rem;
  }

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

  .hero__cta {
    width: 100%;
  }

  .newsletter__row {
    flex-direction: column;
  }

  .newsletter__btn {
    width: 100%;
  }

  .section-head__controls {
    display: none;
  }
}
