@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --page: #eef1f4;
  --surface: #ffffff;
  --ink: #0b1220;
  --muted: #5b6472;
  --line: #e3e7ed;

  --accent: #12b76a;
  --accent-strong: #0e9356;
  --accent-soft: #e7f8ef;
  --panel: #0b1220;
  --panel-muted: #9aa6b6;

  --radius-card: 20px;
  --radius-row: 12px;
  --radius-pill: 999px;

  --shadow-soft: 0 2px 6px rgba(11, 18, 32, 0.05);
  --shadow-lift: 0 18px 40px -20px rgba(11, 18, 32, 0.28);

  --font-sans: "Manrope", ui-sans-serif, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;

  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

::selection {
  background: var(--accent);
  color: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(18, 183, 106, 0.6);
  outline-offset: 3px;
  border-radius: var(--radius-pill);
}

.container {
  width: min(100% - 40px, 1240px);
  margin: 0 auto;
}

/* Верхняя панель */

.topbar {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand::before {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 4px;
  background: var(--accent);
  content: "";
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.3;
  text-align: right;
  text-transform: uppercase;
}

.status::before {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

/* Вводный блок — тёмный баннер с градиентом */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.7fr);
  align-items: end;
  gap: 48px;

  margin-top: 32px;
  border-radius: 28px;
  background:
    radial-gradient(
      120% 160% at 100% 0%,
      rgba(18, 183, 106, 0.28) 0%,
      rgba(18, 183, 106, 0) 55%
    ),
    linear-gradient(135deg, #0b1220 0%, #14243f 100%);
  color: #ffffff;
  padding: 56px 48px 52px;
}

.hero__title {
  max-width: 760px;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.hero__title strong {
  color: #7ee2a8;
}

.hero__note {
  max-width: 380px;
  padding-bottom: 6px;
  color: var(--panel-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Фильтры — пилюли */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding-bottom: 28px;
}

.filter {
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  color: var(--muted);
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transition:
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.filter:hover,
.filter:focus-visible {
  color: var(--ink);
  outline: none;
}

.filter.is-active {
  background: var(--ink);
  color: #ffffff;
}

/* Сетка карточек */

.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 8px 0 56px;
}

.products__empty {
  grid-column: 1 / -1;
  padding: 56px 0;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

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

.card {
  display: flex;
  min-height: 0;
  flex-direction: column;

  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 24px;

  transition:
    box-shadow 180ms ease,
    transform 180ms ease;
}

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

.card[hidden] {
  display: none;
}

.card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

/* Приоритетный оффер */

.card--priority {
  position: relative;
  border: 1px solid var(--accent);
  background: var(--surface);
  overflow: hidden;
}

.card--priority::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 56px;
  height: 56px;
  background: linear-gradient(
    225deg,
    var(--accent) 0%,
    var(--accent) 50%,
    transparent 50.5%
  );
}

/* Жёлтая корона поверх зелёного уголка */
.card--priority::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  width: 20px;
  height: 15px;
  background: yellow;
  clip-path: polygon(
    0% 100%,
    0% 28%,
    24% 58%,
    50% 12%,
    76% 58%,
    100% 28%,
    100% 100%
  );
}

.card--priority:hover {
  border-color: var(--accent-strong);
  transform: translateY(-4px);
}

.card__logo {
  display: block;
  width: 120px;
  height: 50px;
  max-width: 100%;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  object-fit: contain;
  padding: 12px;
}

.card__title {
  max-width: 260px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.card__number {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  padding-top: 20px;
}

/* Условия: вертикальный список на мягких плашках */

.card__data {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 24px 0 auto;
}

.metric {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-radius: var(--radius-row);
  background: #f4f6f8;
  padding: 12px 16px;
}

.metric__label {
  flex: 0 0 auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metric__value {
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  text-align: right;
}

.card__bottom {
  margin-top: 24px;
}

/* Кнопка — акцентная пилюля */

.card__action {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #ffffff;
  padding: 15px 20px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;

  transition:
    background 160ms ease,
    transform 160ms ease;
}

.card__action::after {
  content: "\2192";
  font-size: 18px;
  line-height: 0;
  transition: transform 160ms ease;
}

.card__action:hover,
.card__action:focus-visible {
  background: var(--accent-strong);
  color: #ffffff;
  outline: none;
}

.card__action:hover::after {
  transform: translateX(4px);
}

.card__action:focus-visible {
  box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.3);
}

/* Нижнее примечание */

.disclaimer {
  display: block;
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.disclaimer p {
  max-width: 1240px;
  margin-bottom: 12px;
  text-align: justify;
  hyphens: auto;
}

.disclaimer p:last-of-type {
  margin-bottom: 0;
}

.disclaimer__warning {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.disclaimer__age {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
}

/* Планшеты */

@media (max-width: 1023px) {
  .hero {
    gap: 32px;
    padding: 44px 36px;
  }

  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Телефоны */

@media (max-width: 680px) {
  .container {
    width: min(100% - 32px, 1240px);
  }

  .topbar {
    min-height: 64px;
  }

  .status {
    max-width: 190px;
    font-size: 10px;
  }

  .hero {
    display: block;
    margin-top: 20px;
    border-radius: 22px;
    padding: 36px 24px;
  }

  .hero__title {
    font-size: clamp(32px, 9vw, 46px);
  }

  .hero__note {
    margin-top: 20px;
    font-size: 14px;
  }

  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-right: -16px;
    padding-right: 16px;
    scrollbar-width: none;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filter {
    flex: 0 0 auto;
  }

  .products {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 4px;
  }

  .card {
    padding: 20px;
  }

  .card__title {
    font-size: 21px;
  }

  .disclaimer {
    display: block;
  }

  .disclaimer p {
    text-align: justify;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Юридическая информация в футере */

.footer-legal {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.footer-legal__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

/* Убираем системный треугольник раскрытия */
.footer-legal__summary::-webkit-details-marker {
  display: none;
}

.footer-legal__sign {
  position: relative;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 1px solid var(--muted);
  border-radius: 50%;
}

.footer-legal__sign::before,
.footer-legal__sign::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--muted);
  transform: translate(-50%, -50%);
}

.footer-legal__sign::before {
  width: 10px;
  height: 1.5px;
}

.footer-legal__sign::after {
  width: 1.5px;
  height: 10px;
}

/* При раскрытии вертикальная палочка «плюса» гаснет — получается «минус» */
.footer-legal[open] .footer-legal__sign::after {
  display: none;
}

.footer-legal__list {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.footer-legal__name {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
}

.footer-legal__lines {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
