﻿@import url("https://fonts.cdnfonts.com/css/sf-pro-display");

:root {
  --font-main: "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --color-bg: #fbfbfd;
  --color-bg-soft: #f5f5f7;
  --color-text: #242527;
  --color-muted: #727378;
  --color-accent: #f7c843;
  --color-accent-2: #ffd96a;
  --color-border: rgba(0, 0, 0, 0.1);
  --glass: rgba(255, 255, 255, 0.68);
  --radius: 20px;
  --transition: 220ms ease;
  --transition-long: 600ms cubic-bezier(0.25, 1, 0.5, 1);
  --card-gradient: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 248, 252, 0.94));
}

/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: var(--font-weight-regular);
  color: var(--color-text);
  background: radial-gradient(circle at 20% 20%, rgba(180, 182, 188, 0.08), transparent 45%),
    radial-gradient(circle at 75% 0%, rgba(208, 210, 216, 0.08), transparent 40%),
    var(--color-bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -20% -20% auto;
  height: 60%;
  background: radial-gradient(circle, rgba(200, 202, 210, 0.18), transparent 60%);
  filter: blur(80px);
  z-index: -1;
  animation: drift var(--transition-long) infinite alternate;
  opacity: 0.4;
}
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent); }
img { display: block; max-width: 100%; height: auto; }

/* Layout */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(165deg, rgba(42, 45, 52, 0.98), rgba(26, 28, 34, 0.95) 55%, rgba(18, 19, 23, 0.92));
  backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 16px 46px rgba(8, 8, 12, 0.4);
  overflow: hidden;
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(70, 72, 82, 0.65), rgba(46, 48, 56, 0.55) 60%, rgba(30, 31, 38, 0.65));
  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px rgba(255,255,255,0.08);
  z-index: -1;
}
.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}
.header__logo img {
  height: clamp(48px, 5vw, 72px);
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
  transition: transform var(--transition);
}
.header__logo img:hover {
  transform: scale(1.02);
}
.header__phone {
  font-weight: var(--font-weight-medium);
  font-size: 17px;
  letter-spacing: 0.2px;
  padding: 0;
  border: none;
  background: transparent;
  color: #ffffff;
  transition: color var(--transition);
}
.header__phone:hover {
  color: var(--color-accent-2);
}

/* Sections */
.section {
  padding: 96px 0;
  text-align: center;
  position: relative;
}

.catalog-panel,
.iphone-card,
.hero,
.service-grid > .card,
.discount-card,
.qr-card {
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
}

.section::before {
  content: "";
  position: absolute;
  inset: 10% 10% auto;
  height: 60%;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.06), transparent 60%);
  filter: blur(60px);
  z-index: -1;
  opacity: 0.4;
  pointer-events: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-main);
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin: 0;
}

p {
  font-size: 16px;
  line-height: 1.6;
  font-weight: var(--font-weight-regular);
  color: var(--color-text);
}

/* Hero */
.hero {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 248, 252, 0.94));
  border-radius: 40px;
  padding: clamp(48px, 8vw, 72px);
  box-shadow: 0 32px 110px -70px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 10%;
  background: radial-gradient(circle at 30% 20%, rgba(196, 199, 209, 0.28), transparent 50%),
    radial-gradient(circle at 80% 0%, rgba(220, 222, 230, 0.3), transparent 55%);
  filter: blur(60px);
  opacity: 0.45;
  z-index: 0;
}

.hero__layout { display: flex; flex-direction: column; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero__intro { max-width: 700px; }
.hero__intro h1 { font-size: clamp(36px,6vw,54px); font-weight: var(--font-weight-semibold); letter-spacing: -0.01em; }
.hero__intro p { font-size: 18px; color: var(--color-muted); margin-top: 12px; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  padding: 8px 18px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.7);
  background: rgba(255,255,255,0.9);
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  animation: pulseGlow 4s ease-in-out infinite;
}
.hero__badge::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent);
}
.hero__media {
  width: 100%;
  max-width: 640px;
  margin: 32px auto 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__media img {
  width: clamp(320px, 48vw, 520px);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
  animation: float 6s ease-in-out infinite;
  filter: brightness(1.05) saturate(1.08);
}

/* Cards (Объединённые для .card и .service-card) */
.hero__cards {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 48px;
}

.card,
.service-card {
  background: linear-gradient(150deg, rgba(255,255,255,0.96), rgba(245,246,250,0.94));
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 28px;
  padding: clamp(24px, 5vw, 36px);
  text-align: left;
  box-shadow: 0 20px 50px rgba(15, 22, 35, 0.06);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card::after,
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(210, 213, 222, 0.25), transparent 55%);
  pointer-events: none;
  transition: opacity var(--transition);
}

.card:hover,
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(15, 22, 35, 0.12);
  border-color: rgba(0, 0, 0, 0.08);
}

.card:hover::after,
.service-card:hover::after {
  opacity: 1;
}

.card h3,
.service-card h3 {
  font-weight: var(--font-weight-semibold);
  font-size: 18px;
  margin-bottom: 8px;
}
.card p,
.service-card p {
  color: var(--color-muted);
  font-size: 15px;
}

/* Catalog */
.catalog-panel {
  margin-top: clamp(12px, 3vw, 28px);
  padding: clamp(24px, 5vw, 36px);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 28px 60px rgba(15, 22, 35, 0.08);
  backdrop-filter: blur(18px);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: clamp(20px, 4vw, 32px);
  padding: 8px;
  border-radius: 999px;
  background: rgba(243, 244, 248, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.tab {
  border-radius: 999px;
  border: none;
  background: transparent;
  padding: 10px 22px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(36, 37, 39, 0.6);
  transition: color var(--transition), background var(--transition), box-shadow var(--transition);
}

.tab--active {
  background: #fff;
  color: var(--color-text);
  box-shadow: 0 12px 30px rgba(15, 22, 35, 0.12);
}

.catalog-grid {
  display: grid;
  gap: clamp(20px, 4vw, 32px);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  text-align: left;
  align-items: stretch;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(160deg, #ffffff, #f5f5f7);
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 16px 40px rgba(15, 22, 35, 0.06);
  position: relative;
  overflow: hidden;
}

.product-card__media {
  position: relative;
  z-index: 1;
  border-radius: 0;
  background: transparent;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: visible;
  padding: 0;
  flex-shrink: 0;
}

.product-card__media img {
  width: 80%;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.1));
}

.product-card:hover img {
  transform: translateY(-4px) scale(1.02);
  transition: transform 0.3s ease;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
  flex: 1;
}

.product-card__description {
  margin: 0;
  color: var(--color-muted);
  font-size: 15px;
  flex: 1;
}

.product-card__meta {
  margin-top: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(36, 37, 39, 0.06);
  color: rgba(36, 37, 39, 0.75);
}

.service-grid {
  display: grid;
  gap: clamp(20px, 4vw, 32px);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  margin-top: clamp(24px, 5vw, 40px);
}

/* (visual стили service-card уже объединены с .card выше) */
.service-card ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--color-muted);
  display: grid;
  gap: 8px;
  list-style: disc;
}

.service-card li::marker {
  color: var(--color-accent);
}

.discount-layout {
  display: grid;
  gap: clamp(24px, 5vw, 48px);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: stretch;
}

.discount-card,
.wheel-card {
  border-radius: 32px;
  padding: clamp(28px, 5vw, 40px);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.96), rgba(240, 243, 252, 0.92));
  box-shadow: 0 32px 64px rgba(15, 22, 35, 0.12);
  text-align: left;
}

.discount-form {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--color-muted);
  text-align: left;
  color: #1a1a1a;
  font-weight: 500;
}

.input {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 15px;
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(247, 225, 0, 0.25);
}

.caption {
  margin: 0;
  font-size: 14px;
  color: var(--color-muted);
  text-align: center;
}

.result-card {
  display: grid;
  gap: 12px;
  justify-items: center;
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 18px 36px rgba(15, 22, 35, 0.15);
}

.qr-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
  background: #fff;
  border-radius: 32px;
  padding: clamp(24px, 5vw, 40px);
  box-shadow: 0 30px 60px rgba(15, 22, 35, 0.12);
}

.qr-card__content {
  text-align: left;
  display: grid;
  gap: 12px;
}

.qr-card__image img {
  border-radius: 24px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
  background: #fff;
  padding: 16px;
}

.alert {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  color: var(--color-text);
  font-size: 14px;
}

.alert--warn {
  border-color: rgba(247, 225, 0, 0.4);
  background: rgba(247, 225, 0, 0.12);
}

.alert--error {
  border-color: rgba(255, 99, 99, 0.4);
  background: rgba(255, 99, 99, 0.1);
}

.alert--success {
  border-color: rgba(30, 160, 90, 0.4);
  background: rgba(30, 160, 90, 0.12);
}

.hidden {
  display: none !important;
}

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 12px 24px;
  font-weight: var(--font-weight-medium); font-size: 14px; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer;
  transition: all var(--transition);
  margin-top: 12px;
}
.button--filled {
  background: #f7e100;
  color: #1a1a1a;
  box-shadow: 0 14px 28px rgba(247, 225, 0, 0.4);
}
.button--filled:hover {
  transform: translateY(-2px) scale(1.01);
  background: #ffe84a;
  box-shadow: 0 18px 34px rgba(247, 225, 0, 0.45);
}
.button--ghost {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.08);
  color: var(--color-text);
  box-shadow: inset 0 1px rgba(255,255,255,0.6);
}
.button--ghost:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* iPhone Card */
.iphone-card {
  background: transparent;
  border: none;
  box-shadow: none;
}

.iphone-card h2 {
  margin: 0;
  font-size: clamp(30px, 4.6vw, 38px);
  font-weight: var(--font-weight-semibold);
}

.iphone-card p {
  margin: 0;
  color: var(--color-muted);
  max-width: 540px;
}

.iphone-result {
  display: none;
  background: transparent;
  border: none;
  padding: 0;
  margin-top: 24px;
}

.iphone-result.visible {
  display: grid;
}

.iphone-result img {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.iphone-result h3 {
  margin: 0 0 4px;
  font-size: clamp(20px, 3vw, 24px);
}
.iphone-result p {
  margin: 0;
  color: var(--color-muted);
}

/* Footer */
.footer {
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(245,245,247,0.95));
  border-top: 1px solid rgba(255,255,255,0.6);
  padding: 32px 0;
  color: var(--color-muted);
  font-size: 14px;
  text-align: center;
  box-shadow: 0 -20px 60px rgba(0,0,0,0.08);
}
.footer__phone { display: block; color: var(--color-accent); margin-top: 8px; }

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
  50% { box-shadow: 0 6px 22px rgba(0,113,227,0.25); }
  100% { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
}

@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(50px, 30px, 0) scale(1.05); }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero {
    border-radius: 28px;
  }
  .hero__media img {
    width: 100%;
  }
  .hero__layout {
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .header__logo img { height: 42px; }
  .section { padding: 60px 0; }
  .card,
  .service-card { padding: 20px; }
  .iphone-card { padding: 28px; }
}

/* убираем подсветку фона у блока "Какой вы сегодня iPhone?" */
#iphone-today.section::before {
  display: none;
}

#iphone-today .iphone-card {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(40px, 6vw, 60px);
}

#iphone-today .iphone-result {
  justify-content: center;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

#iphone-today .iphone-result img {
  max-width: 260px;
}

#iphone-today .button--filled + .button--filled {
  margin-top: 16px;
}

#iphone-today .button--filled {
  margin-top: 20px;
}

/* --- Эффекты и анимация для блока "Сервисы AppleHub" --- */
/* Только анимация и списки, без перезаписи фона/отступов карточек */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card,
.card {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

.service-card:nth-child(1),
.card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2),
.card:nth-child(2) { animation-delay: 0.25s; }
.service-card:nth-child(3),
.card:nth-child(3) { animation-delay: 0.4s; }

/* Акцент на списках */
.service-card ul li,
.card ul li {
  position: relative;
  padding-left: 14px;
  list-style: none;
}

.service-card ul li::before,
.card ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: bold;
  font-size: 18px;
  line-height: 1;
}

/* --- Credit Section (Finbox) --- */
.credit-card {
  background: linear-gradient(150deg, rgba(255,255,255,0.96), rgba(245,246,250,0.94));
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-radius: 32px;
  padding: clamp(40px, 6vw, 60px);
  box-shadow: 0 28px 60px rgba(15,22,35,0.08);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.credit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 36px 80px rgba(15,22,35,0.12);
}

.credit-card h2 {
  font-size: clamp(30px, 4vw, 42px);
  margin-bottom: 16px;
}

.credit-card p {
  color: var(--color-muted);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 28px;
}

.credit-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  gap: 10px;
  justify-items: center;
  font-size: 16px;
  color: var(--color-text);
}

.credit-list li {
  position: relative;
  padding-left: 18px;
}

.credit-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-size: 22px;
  line-height: 1;
}

#creditSubmit {
  margin-top: 10px;
  font-weight: var(--font-weight-medium);
  box-shadow: 0 14px 30px rgba(247,225,0,0.4);
}

/* --- Единое выравнивание контента по центру --- */
.section, 
.section__header, 
.credit-card, 
.discount-card, 
.iphone-card, 
.service-grid, 
.catalog-panel, 
.hero__intro {
  text-align: center;
}

.section p, 
.section h2, 
.section h3 {
  margin-left: auto;
  margin-right: auto;
}

#spinButton {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 340px;
  margin: 24px auto 0;
}

#surveyMessage {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

#surveyMessage:not(.hidden) {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .discount-form {
    gap: 14px;
  }
  .label {
    font-size: 13px;
  }
  .input {
    font-size: 14px;
  }
}

select.input {
  appearance: none;
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 12px 16px;
  font-family: "SF Pro Display", sans-serif;
  font-size: 15px;
  color: #1a1a1a;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%231a1a1a' height='16' width='16' xmlns='http://www.w3.org/2000/svg'><path d='M4 6l4 4 4-4z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
}

select.input:focus {
  border-color: #000;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

option {
  background-color: #fff;
  color: #000;
  font-family: inherit;
}

/* Fortune wheel */
.wheel-wrapper {
  position: relative;
  width: min(420px, 82vw);
  aspect-ratio: 1 / 1;
  margin: clamp(24px, 5vw, 48px) auto;
  display: grid;
  place-items: center;
  isolation: isolate;
  padding: clamp(8px, 2vw, 16px);
}

.wheel-wrapper__halo {
  position: absolute;
  inset: -34px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 225, 0, 0.45), rgba(247, 225, 0, 0) 60%);
  filter: blur(8px);
  opacity: 0.65;
  animation: haloPulse 8s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

.wheel {
  --wheel-size: min(360px, 70vw);
  --slice-count: 10;
  --slice-angle: calc(360deg / var(--slice-count));
  width: var(--wheel-size);
  height: var(--wheel-size);
  border-radius: 50%;
  border: 8px solid #fff;
  background: conic-gradient(
    #fffbe8 0deg 36deg,
    #fff3c4 36deg 72deg,
    #fffbe8 72deg 108deg,
    #fff3c4 108deg 144deg,
    #fffbe8 144deg 180deg,
    #fff3c4 180deg 216deg,
    #fffbe8 216deg 252deg,
    #fff3c4 252deg 288deg,
    #fffbe8 288deg 324deg,
    #fff3c4 324deg 360deg
  );
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.08),
    inset 0 8px 18px rgba(255, 255, 255, 0.8),
    inset 0 -8px 18px rgba(0, 0, 0, 0.06);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--spin-duration, 3.8s) cubic-bezier(0.19, 1, 0.22, 1);
}

/* подписи точно по центру сектора, строго горизонтальные */
.wheel__labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wheel__labels span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center center;
  transform:
    rotate(calc(var(--slice-angle) * var(--index) + var(--slice-angle) / 2))
    translateY(calc(var(--wheel-size) / -2.6))
    rotate(calc(-1 * (var(--slice-angle) * var(--index) + var(--slice-angle) / 2)));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  color: #1a1a1a;
}

.wheel::before,
.wheel::after,
.wheel__dividers {
  display: none !important;
}

.wheel.is-spinning {
  box-shadow: 0 34px 72px rgba(15, 22, 35, 0.32), inset 0 12px 26px rgba(255, 255, 255, 0.4);
  filter: drop-shadow(0 0 25px rgba(247, 225, 0, 0.35));
}


.wheel-center {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(242, 242, 245, 0.9));
  box-shadow: inset 0 8px 16px rgba(255, 255, 255, 0.8), inset 0 -6px 14px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #1d1f27;
}

.wheel-center small {
  font-size: 12px;
  letter-spacing: 0.25em;
  color: rgba(17, 19, 27, 0.6);
}

.wheel-indicator {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #0f1118;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.35), inset 0 -6px 10px rgba(255, 255, 255, 0.08);
  color: #fff;
}

.wheel-indicator span {
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 26px solid var(--color-accent);
  transform: translateY(8px);
  animation: indicatorPulse 1.8s ease-in-out infinite;
}

#discountResult {
  font-weight: 600;
  color: #10131b;
  margin-top: 12px;
  font-size: 22px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

#discountResult.show {
  opacity: 1;
  transform: translateY(0);
}

.review-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  border-radius: 32px;
  padding: clamp(24px, 5vw, 40px);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.97), rgba(240, 243, 252, 0.92));
  box-shadow: 0 30px 64px rgba(15, 22, 35, 0.15);
  margin-top: 32px;
  gap: clamp(20px, 4vw, 32px);
  align-items: center;
}

.qr-thanks {
  display: none;
}

.qr-thanks.show {
  display: grid;
  animation: reviewFade 0.6s ease forwards;
}

.review-card__content {
  display: grid;
  gap: 12px;
  text-align: left;
}

.review-card__eyebrow {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
}

.review-card__meta {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  color: #2c2f38;
  font-size: 14px;
}

.review-card__meta li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-card__meta li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(247, 225, 0, 0.22);
}

.review-card__qr {
  justify-self: center;
  text-align: center;
  display: grid;
  gap: 10px;
}

.review-card__qr img {
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 34px rgba(15, 22, 35, 0.15);
  padding: 14px;
}

.review-card__qr span {
  font-size: 13px;
  color: var(--color-muted);
}

@keyframes haloPulse {
  0% { transform: scale(0.9); opacity: 0.4; }
  50% { transform: scale(1); opacity: 0.75; }
  100% { transform: scale(0.9); opacity: 0.4; }
}

@keyframes indicatorPulse {
  0% { transform: translateY(8px) scale(1); }
  50% { transform: translateY(4px) scale(1.08); }
  100% { transform: translateY(8px) scale(1); }
}

@keyframes reviewFade {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/*───────────────────────────────────────────────
🎡 Колесо скидок — AppleHub design
───────────────────────────────────────────────*/
.wheel-section {
  background: linear-gradient(180deg, #fff 0%, #f6f7fa 100%);
  border-radius: 32px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.06);
  padding: clamp(40px, 6vw, 80px) 0;
  text-align: center;
}

/* Секция результата */
/* QR-карточка */
/* Bounce эффект при остановке */
@media (max-width: 540px) {
  .wheel__labels span {
    width: 60px;
    font-size: 12px;
    padding: 6px 7px;
  }

  .wheel-center {
    width: 96px;
    height: 96px;
  }

  .wheel-indicator {
    width: 54px;
    height: 54px;
  }
}
