/* Шапка */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  background: rgba(255, 252, 246, 0.94);
  transition:
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

@supports (backdrop-filter: blur(8px)) {
  .site-header {
    background: rgba(255, 252, 246, 0.82);
    backdrop-filter: blur(10px);
  }
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
  min-height: var(--header-h);
  transition: min-height 0.3s var(--ease-out);
}

.site-header.is-scrolled .site-header__inner {
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  min-height: 44px;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.25s var(--ease);
}

.brand:hover .brand__mark,
.brand:focus-visible .brand__mark {
  background: var(--accent-hover);
}

.brand__name {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 32px);
  justify-self: center;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 9px;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav a.is-active {
  color: var(--ink);
}

.site-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

/* Кнопки */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    transform 0.16s var(--ease-out);
}

.btn:active {
  transform: scale(0.975);
}

.btn--primary {
  background: var(--accent);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 55%);
  color: var(--accent-ink);
  box-shadow: 0 10px 24px -14px rgba(201, 61, 28, 0.75);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: var(--accent-hover);
  box-shadow: 0 16px 34px -16px rgba(201, 61, 28, 0.85);
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--ink);
  background: var(--surface);
}

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

.btn--light:hover,
.btn--light:focus-visible {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.btn--sm {
  min-height: 44px;
  padding: 0 20px;
  font-size: 0.86rem;
}

.btn--block {
  width: 100%;
}

.btn__arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease);
}

.btn:hover .btn__arrow,
.btn:focus-visible .btn__arrow {
  transform: translate(2px, -2px);
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 600;
  transition: color 0.2s var(--ease);
}

.arrow-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease);
}

.arrow-link:hover,
.arrow-link:focus-visible {
  color: var(--accent);
}

.arrow-link:hover svg,
.arrow-link:focus-visible svg {
  transform: translate(3px, -3px);
}

/* Пилюли, метки, чипы */

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-label);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
}

.chip--float {
  position: absolute;
  z-index: 4;
  min-height: 36px;
  padding: 6px 14px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  color: var(--ink);
  font-size: 0.73rem;
  letter-spacing: 0.04em;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
}

.badge--own {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink-soft);
}

.badge--platform {
  background: var(--ink);
  color: var(--dark-ink);
}

/* Карточки и иконки */

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.icon-box {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.icon-box .icon {
  width: 22px;
  height: 22px;
}

/* Витрина первого экрана */

.stage-frame {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  transition:
    box-shadow 0.35s var(--ease-out),
    transform 0.35s var(--ease-out);
}

.stage-frame__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 30px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: #FBF7F0;
}

.stage-frame__dots {
  display: inline-flex;
  gap: 4px;
}

.stage-frame__dots i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
}

.stage-frame__dots i:first-child {
  background: #E4A08E;
}

.stage-frame__dots i:nth-child(2) {
  background: #E8C48E;
}

.stage-frame__url {
  overflow: hidden;
  color: var(--ink-label);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-frame__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
}

.stage-frame__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Мягкий световой акцент на карточках. */
[data-spotlight] {
  position: relative;
}

[data-spotlight]::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: radial-gradient(
    360px circle at var(--spot-x, 50%) var(--spot-y, 50%),
    rgba(201, 61, 28, 0.09),
    transparent 65%
  );
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  [data-spotlight]:hover::after {
    opacity: 1;
  }
}

/* Изображения */

.media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-2);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.media--wide {
  aspect-ratio: 16 / 10;
}

.media--video {
  aspect-ratio: 16 / 9;
}

.media--phone {
  aspect-ratio: 390 / 844;
}

/* Мобильное меню */

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
}

.menu-toggle__lines {
  position: relative;
  display: block;
  width: 18px;
  height: 10px;
}

.menu-toggle__lines::before,
.menu-toggle__lines::after {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.menu-toggle__lines::before {
  top: 0;
}

.menu-toggle__lines::after {
  bottom: 0;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  padding: 20px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--bg);
  opacity: 0;
  transition: opacity 0.22s var(--ease);
}

.mobile-menu.is-open {
  opacity: 1;
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
}

.mobile-menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
}

.mobile-menu__close svg {
  width: 18px;
  height: 18px;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-block: auto;
  padding-block: 40px;
}

.mobile-menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  min-height: 52px;
  padding-block: 6px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.mobile-menu__nav a:hover,
.mobile-menu__nav a:focus-visible {
  color: var(--accent);
}

.mobile-menu__nav .num {
  color: var(--ink-label);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.mobile-menu__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.mobile-menu__foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.mobile-menu__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 18px;
}

.mobile-menu__cta .btn {
  flex: 1 1 180px;
}

/* Форма */

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field__label {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
}

.field__input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.4;
  transition:
    border-color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.field__input::placeholder {
  color: var(--ink-label);
}

.field__input:hover {
  border-color: var(--ink-muted);
}

.field__input:focus {
  border-color: var(--accent);
  background: var(--surface);
  outline: none;
}

.field__input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.field__input[aria-invalid="true"] {
  border-color: var(--accent-hover);
  background: #FFF8F4;
}

.field__input textarea,
textarea.field__input {
  min-height: 98px;
  resize: vertical;
}

.field__error {
  min-height: 1.1em;
  color: var(--accent-hover);
  font-size: 0.8rem;
  line-height: 1.3;
}

.form-status {
  min-height: 2.6em;
  padding-top: 4px;
  color: var(--ink-label);
  font-size: 0.84rem;
  line-height: 1.45;
}

.form-status[data-state="error"] {
  color: var(--accent-hover);
}

.form-status[data-state="done"] {
  color: var(--ok);
}

/* Липкая мобильная кнопка */

.sticky-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 70;
  display: none;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 -10px 30px -24px rgba(23, 19, 14, 0.45);
  transform: translate3d(0, calc(100% + 24px), 0);
  visibility: hidden;
  transition:
    transform 0.28s var(--ease-out),
    visibility 0.28s;
}

.sticky-cta.is-visible {
  transform: none;
  visibility: visible;
}

.sticky-cta__inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sticky-cta .btn {
  flex: 1;
}

.sticky-cta__note {
  color: var(--ink-label);
  font-size: 0.76rem;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .site-header__inner {
    grid-template-columns: 1fr auto;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-header__actions .btn {
    display: none;
  }
}

@media (max-width: 860px) {
  .sticky-cta {
    display: block;
  }

  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 420px) {
  .brand__name {
    display: none;
  }
}

@media (max-width: 640px) {
  .brand__name {
    font-size: 0.98rem;
  }

  .mobile-menu__nav a {
    min-height: 48px;
  }

  .sticky-cta__note {
    display: none;
  }
}

@media print {
  .sticky-cta {
    display: none !important;
  }
}
