@font-face {
  font-family: "Chicoree";
  src: url("fonts/ofont.ru_Chicoree.ttf") format("truetype");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

:root {
  --white: #ffffff;
  --bg: #f4f9ff;
  --text: #07111f;
  --muted: #62748b;
  --blue: #0b7cff;
  --blue-2: #00b8ff;
  --blue-soft: #e8f5ff;
  --line: #dbe7f5;
  --shadow: 0 24px 70px rgba(11, 124, 255, 0.14);
  --dark-shadow: 0 24px 80px rgba(7, 17, 31, 0.18);
  --error: #e54868;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 4%, rgba(0, 184, 255, 0.22), transparent 34%),
    radial-gradient(circle at 82% 16%, rgba(11, 124, 255, 0.15), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

button,
input {
  font: inherit;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.header {
  width: min(100%, 1160px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-2), var(--blue));
  box-shadow: 0 0 24px rgba(11, 124, 255, 0.55);
}

.partner-stats {
  display: flex;
  align-items: center;
  gap: 10px;
}

.partner-stats div {
  min-width: 118px;
  padding: 10px 14px;
  border: 1px solid rgba(11, 124, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 34px rgba(11, 124, 255, 0.08);
}

.partner-stats strong {
  display: block;
  color: var(--blue);
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.partner-stats span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.main {
  flex: 1;
  width: min(100%, 1160px);
  margin: 0 auto;
  display: grid;
  align-content: center;
  gap: 38px;
  padding: 70px 0 44px;
}

.hero {
  text-align: center;
}

.badge {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 9px 14px;
  border: 1px solid rgba(11, 124, 255, 0.18);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 30px rgba(11, 124, 255, 0.08);
}

h1 {
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-family: "Chicoree", "Arial Black", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-style: italic;
}

.title-white {
  color: #ffffff;
  text-shadow:
    0 10px 36px rgba(11, 124, 255, 0.34),
    0 2px 0 rgba(11, 124, 255, 0.2);
  -webkit-text-stroke: 1px rgba(11, 124, 255, 0.18);
}

.title-blue {
  color: var(--blue);
  text-shadow: 0 10px 36px rgba(11, 124, 255, 0.22);
}

.subtitle {
  max-width: 680px;
  margin: 22px auto 34px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
}

.search {
  width: min(100%, 760px);
  min-height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 148px;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(11, 124, 255, 0.13);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.search input {
  width: 100%;
  border: 0;
  outline: none;
  padding: 0 18px;
  color: var(--text);
  background: transparent;
  font-size: 18px;
}

.search input::placeholder {
  color: #9aabc0;
}

.search button,
.watch-btn,
.buy-btn {
  border: 0;
  border-radius: 20px;
  color: white;
  background: linear-gradient(135deg, var(--blue-2), var(--blue));
  cursor: pointer;
  font-weight: 900;
  transition: 0.2s ease;
  box-shadow: 0 16px 34px rgba(11, 124, 255, 0.23);
}

.search button:hover,
.watch-btn:hover,
.buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(11, 124, 255, 0.32);
}

.message {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--error);
  font-size: 14px;
  font-weight: 700;
}

.locked-card,
.result {
  width: min(100%, 760px);
  margin: 18px auto 0;
  padding: 24px;
  border: 1px solid rgba(11, 124, 255, 0.14);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  text-align: left;
  animation: show 0.35s ease both;
}

.locked-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
}

.locked-label,
.result-label {
  display: block;
  margin-bottom: 7px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.locked-card h2,
.result h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.locked-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.unlock-actions {
  display: grid;
  gap: 10px;
  min-width: 240px;
}

.watch-btn,
.buy-btn {
  min-height: 52px;
  padding: 0 18px;
}

.buy-btn {
  background: #07111f;
  box-shadow: 0 16px 34px rgba(7, 17, 31, 0.18);
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.copy-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 16px;
  color: var(--blue);
  background: white;
  cursor: pointer;
  font-weight: 900;
  transition: 0.2s ease;
}

.copy-btn:hover {
  border-color: rgba(11, 124, 255, 0.35);
  box-shadow: 0 10px 30px rgba(11, 124, 255, 0.12);
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.result-item {
  padding: 20px;
  border-radius: 22px;
  background: var(--blue-soft);
}

.result-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.result-item strong {
  display: block;
  color: var(--blue);
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.features article {
  padding: 24px;
  border: 1px solid rgba(11, 124, 255, 0.11);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 44px rgba(7, 17, 31, 0.06);
}

.features span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 950;
}

.features h3 {
  margin: 10px 0 8px;
  font-size: 21px;
  letter-spacing: -0.04em;
}

.features p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.footer {
  width: min(100%, 1160px);
  margin: 0 auto;
  color: #8493a8;
  font-size: 13px;
  text-align: center;
}

.hidden {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 17, 31, 0.62);
  backdrop-filter: blur(16px);
}

.modal-card {
  width: min(100%, 460px);
  position: relative;
  padding: 28px;
  border-radius: 30px;
  background: white;
  box-shadow: var(--dark-shadow);
  text-align: center;
  animation: modalIn 0.25s ease both;
}

.modal-badge {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.modal-card h2 {
  margin: 0 0 18px;
  font-size: 30px;
  letter-spacing: -0.05em;
}

.ad-box {
  padding: 24px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 184, 255, 0.2), transparent 35%),
    linear-gradient(135deg, #f7fbff, #eaf5ff);
  border: 1px solid rgba(11, 124, 255, 0.13);
}

.ad-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: white;
  background: linear-gradient(135deg, var(--blue-2), var(--blue));
  font-weight: 950;
  letter-spacing: -0.04em;
  box-shadow: 0 16px 34px rgba(11, 124, 255, 0.24);
}

.ad-box p {
  margin: 0;
  color: var(--text);
  font-weight: 850;
}

.ad-box small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
}

.timer {
  margin-top: 18px;
}

.timer-line {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6eef8;
}

.timer-line span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--blue-2), var(--blue));
  transition: width 0.25s linear;
}

.timer p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.close-modal {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: white;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.payment-text {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.full {
  width: 100%;
  min-height: 56px;
}

.payment-small {
  display: block;
  margin-top: 12px;
  color: #8493a8;
  line-height: 1.45;
}

@keyframes show {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1020px) {
  h1 {
    white-space: normal;
  }
}

@media (max-width: 860px) {
  .header {
    align-items: flex-start;
    flex-direction: column;
  }

  .partner-stats {
    width: 100%;
  }

  .partner-stats div {
    flex: 1;
  }

  .locked-card {
    grid-template-columns: 1fr;
  }

  .unlock-actions {
    min-width: 0;
  }

  .features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .page {
    padding: 18px;
  }

  .main {
    padding: 52px 0 34px;
  }

  .partner-stats {
    gap: 8px;
  }

  .partner-stats div {
    min-width: 0;
    padding: 9px 10px;
  }

  .search {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .search input {
    min-height: 58px;
    text-align: center;
    font-size: 16px;
  }

  .search button {
    min-height: 58px;
  }

  .locked-card,
  .result {
    padding: 20px;
    border-radius: 24px;
  }

  .result-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .copy-btn {
    width: 100%;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }
}

/* FINAL MOBILE UX V4 */
@font-face {
  font-family: "Chicoree";
  src: url("/fonts/ofont.ru_Chicoree.ttf") format("truetype");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* Главный заголовок: desktop в одну строку */
.hero-title-wrap {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  margin: 0 auto !important;
}

.main-title {
  width: 100% !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: baseline !important;
  justify-content: center !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  font-family: "Chicoree", "Arial Black", Inter, Arial, sans-serif !important;
  font-style: italic !important;
  line-height: 1 !important;
  transform: rotate(-0.35deg) !important;
}

.main-title .title-chip {
  display: inline-block !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #07111f !important;
  font-family: "Chicoree", "Arial Black", Inter, Arial, sans-serif !important;
  font-size: clamp(42px, 3.7vw, 66px) !important;
  font-weight: 900 !important;
  font-style: italic !important;
  line-height: 1 !important;
  letter-spacing: -0.022em !important;
  text-align: center !important;
  text-shadow: 0 12px 28px rgba(7, 17, 31, 0.08) !important;
  box-shadow: none !important;
}

.main-title .title-accent {
  display: inline-block !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #18bfff !important;
  font-family: "Chicoree", "Arial Black", Inter, Arial, sans-serif !important;
  font-size: clamp(42px, 3.7vw, 66px) !important;
  font-weight: 900 !important;
  font-style: italic !important;
  line-height: 1 !important;
  letter-spacing: -0.022em !important;
  text-shadow: 0 12px 30px rgba(24, 191, 255, 0.24) !important;
  box-shadow: none !important;
}

/* Общая посадка блока: меньше пустоты сверху */
.main {
  padding-top: 52px !important;
}

.subtitle {
  margin-top: 20px !important;
  margin-bottom: 30px !important;
}

/* Поиск выглядит как поисковик */
.search {
  max-width: 760px !important;
}

/* Планшеты */
@media (max-width: 980px) {
  .main-title .title-chip,
  .main-title .title-accent {
    font-size: clamp(32px, 5vw, 48px) !important;
  }

  .main-title {
    gap: 8px !important;
  }
}

/* Мобильная версия */
@media (max-width: 620px) {
  body {
    background:
      radial-gradient(circle at 12% 0%, rgba(0, 184, 255, 0.20), transparent 38%),
      radial-gradient(circle at 95% 8%, rgba(11, 124, 255, 0.12), transparent 36%),
      linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%) !important;
  }

  .page {
    padding: 16px !important;
  }

  .header {
    width: 100% !important;
    align-items: center !important;
    flex-direction: row !important;
    gap: 10px !important;
  }

  .brand {
    font-size: 15px !important;
  }

  .partner-stats {
    margin-left: auto !important;
    display: flex !important;
    gap: 6px !important;
  }

  .partner-stats div {
    min-width: 74px !important;
    padding: 8px 9px !important;
    border-radius: 14px !important;
  }

  .partner-stats strong {
    font-size: 15px !important;
  }

  .partner-stats span {
    font-size: 9px !important;
    line-height: 1.1 !important;
  }

  .main {
    padding: 44px 0 28px !important;
    gap: 26px !important;
  }

  .badge {
    margin-bottom: 14px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
  }

  /* На телефоне разрешаем аккуратный перенос, иначе текст будет слишком мелким */
  .main-title {
    display: block !important;
    width: 100% !important;
    max-width: 390px !important;
    white-space: normal !important;
    text-align: center !important;
    transform: rotate(-0.25deg) !important;
    line-height: 0.95 !important;
  }

  .main-title .title-chip,
  .main-title .title-accent {
    display: inline !important;
    font-size: clamp(38px, 11vw, 54px) !important;
    line-height: 0.92 !important;
    letter-spacing: -0.018em !important;
  }

  .main-title .title-accent {
    color: #18bfff !important;
  }

  .subtitle {
    max-width: 330px !important;
    margin: 18px auto 24px !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
  }

  .search {
    width: 100% !important;
    min-height: auto !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 8px !important;
    border-radius: 24px !important;
  }

  .search input {
    min-height: 56px !important;
    padding: 0 14px !important;
    text-align: center !important;
    font-size: 15px !important;
  }

  .search button {
    min-height: 56px !important;
    border-radius: 18px !important;
    font-size: 15px !important;
  }

  .locked-card,
  .result {
    width: 100% !important;
    margin-top: 14px !important;
    padding: 18px !important;
    border-radius: 22px !important;
  }

  .locked-card {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .locked-card h2,
  .result h2 {
    font-size: 22px !important;
  }

  .unlock-actions {
    min-width: 0 !important;
  }

  .watch-btn,
  .buy-btn {
    width: 100% !important;
    min-height: 52px !important;
    border-radius: 18px !important;
  }

  .result-head {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .copy-btn {
    width: 100% !important;
  }

  .result-grid {
    grid-template-columns: 1fr !important;
  }

  .result-item {
    padding: 18px !important;
    border-radius: 18px !important;
  }

  .result-item strong {
    font-size: 30px !important;
  }

  .features {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .features article {
    padding: 18px !important;
    border-radius: 22px !important;
  }

  .features h3 {
    font-size: 19px !important;
  }

  .features p {
    font-size: 14px !important;
  }

  .footer {
    padding-bottom: 8px !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
  }

  .modal-card {
    width: 100% !important;
    padding: 22px !important;
    border-radius: 24px !important;
  }
}



/* TOTAL VIEWS STATS FIX V1 */
.partner-stats {
  grid-template-columns: repeat(3, minmax(92px, auto)) !important;
}

.partner-stats div {
  min-width: 112px !important;
}

@media (max-width: 620px) {
  .partner-stats {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
  }

  .partner-stats div {
    min-width: 0 !important;
    padding: 8px 6px !important;
    border-radius: 14px !important;
    text-align: center !important;
  }

  .partner-stats strong {
    font-size: 14px !important;
  }

  .partner-stats span {
    font-size: 8.5px !important;
    line-height: 1.1 !important;
  }
}


/* LEGAL FOOTER V1 */
.legal-footer {
  width: min(100%, 920px);
  margin: 28px auto 0;
  padding: 18px;
  border-top: 1px solid rgba(11, 124, 255, .14);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: #65758b;
  font-size: 13px;
}

.legal-footer a {
  color: #65758b;
  text-decoration: none;
  font-weight: 800;
}

.legal-footer a:hover {
  color: #0b7cff;
}
