/* ============================================================
   LOYALTY PAGE — Guest club MVP
   Dark wine aesthetic of СердцеВина&meat95.
   ============================================================ */

/* ============================================================
   LOYALTY HERO (extends .page-hero)
   ============================================================ */
.loyalty-hero {
  background:
    radial-gradient(ellipse 55% 40% at 22% 55%, rgba(92, 26, 42, 0.42) 0%, transparent 70%),
    radial-gradient(ellipse 42% 32% at 80% 32%, rgba(212, 175, 55, 0.14) 0%, transparent 70%),
    radial-gradient(ellipse 30% 22% at 55% 92%, rgba(58, 14, 27, 0.28) 0%, transparent 70%),
    var(--bg-deep);
}

/* ============================================================
   SECTION
   ============================================================ */
.loyalty-section {
  padding: clamp(60px, 9vw, 120px) 0;
  position: relative;
}
.loyalty-section-inner {
  width: var(--container);
  margin: 0 auto;
}
.loyalty-section .section-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}
.loyalty-section .section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4.8vw, 60px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin: 0 0 20px;
}
.loyalty-section .section-head h2 em {
  font-style: italic;
  color: var(--gold);
}
.loyalty-section .section-head p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.4;
  color: var(--cream-muted);
  margin: 0;
}

/* ============================================================
   INTRO
   ============================================================ */
.loyalty-intro {
  background:
    radial-gradient(ellipse 40% 50% at 20% 30%, rgba(92, 26, 42, 0.25) 0%, transparent 70%),
    var(--bg-deep);
}

/* ============================================================
   BENEFITS GRID
   ============================================================ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.benefit-card {
  position: relative;
  padding: 36px 28px 32px;
  background: linear-gradient(180deg, rgba(26, 10, 15, 0.75), rgba(13, 5, 8, 0.5));
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: 2px;
  transition: transform 0.5s var(--ease), border-color 0.5s, box-shadow 0.5s;
  display: flex;
  flex-direction: column;
}
.benefit-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 24px 60px -24px rgba(212, 175, 55, 0.2);
}
.benefit-card .benefit-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  margin-bottom: 24px;
}
.benefit-card .benefit-icon svg {
  width: 26px;
  height: 26px;
  color: var(--gold);
}
.benefit-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.benefit-card h3 em {
  font-style: italic;
  color: var(--gold);
}
.benefit-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================================
   TIERS SECTION
   ============================================================ */
.tiers-section {
  background:
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(92, 26, 42, 0.22) 0%, transparent 70%),
    var(--bg-deep);
  border-top: 1px solid rgba(212, 175, 55, 0.06);
  border-bottom: 1px solid rgba(212, 175, 55, 0.06);
}
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}
.tier-card {
  position: relative;
  padding: 36px 26px 30px;
  background: linear-gradient(180deg, rgba(26, 10, 15, 0.8), rgba(13, 5, 8, 0.6));
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease), border-color 0.5s, box-shadow 0.5s;
}
.tier-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.4);
}
.tier-card.tier-gold {
  background:
    linear-gradient(180deg, rgba(35, 14, 22, 0.9), rgba(13, 5, 8, 0.7)),
    radial-gradient(ellipse at top, rgba(212, 175, 55, 0.25), transparent 60%);
  border-color: rgba(212, 175, 55, 0.45);
}
.tier-card.tier-sommelier {
  background:
    linear-gradient(180deg, rgba(58, 14, 27, 0.92), rgba(13, 5, 8, 0.8));
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.15) inset;
}
.tier-card .tier-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.tier-card .tier-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin: 0 0 8px;
}
.tier-card .tier-name em {
  font-style: italic;
  color: var(--gold);
}
.tier-card .tier-points {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}
.tier-card .tier-perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tier-card .tier-perks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--cream-muted);
}
.tier-card .tier-perks li::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 10px;
}

/* ============================================================
   REGISTRATION / PROFILE
   ============================================================ */
.registration-section {
  background:
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(92, 26, 42, 0.25) 0%, transparent 70%),
    var(--bg-deep);
}

.registration-form,
.profile-card {
  max-width: 620px;
  margin: 0 auto;
  padding: 48px 44px;
  background:
    linear-gradient(180deg, rgba(26, 10, 15, 0.85), rgba(13, 5, 8, 0.7)),
    radial-gradient(ellipse at top left, rgba(212, 175, 55, 0.12), transparent 60%);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 3px;
}
.registration-form h3,
.profile-card h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 500;
  color: var(--cream);
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.registration-form h3 em,
.profile-card h3 em {
  font-style: italic;
  color: var(--gold);
}
.registration-form .form-intro {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 32px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}
.form-field label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.form-field input {
  padding: 14px 18px;
  background: rgba(13, 5, 8, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--cream);
  transition: border-color 0.35s, background 0.35s;
}
.form-field input:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.55);
  background: rgba(13, 5, 8, 0.85);
}
.form-field input.error {
  border-color: #c24a30;
}
.form-field .field-error {
  font-size: 12px;
  color: #e8a24a;
  display: none;
}
.form-field input.error + .field-error,
.form-field.is-error .field-error {
  display: block;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 28px;
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--bg-deep);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  margin-top: 8px;
}
.form-submit:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(212, 175, 55, 0.5);
}
.form-consent {
  font-size: 11px;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 18px 0 0;
  text-align: center;
}
.form-consent a { color: var(--gold); }

/* Profile card */
.profile-card .profile-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
  flex-wrap: wrap;
}
.profile-card .welcome {
  font-family: var(--font-display);
  font-size: 15px;
  font-style: italic;
  color: var(--cream-muted);
  letter-spacing: 0.02em;
}
.profile-card .tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
}
.profile-card .tier-badge .star {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

.points-block {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 28px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
  margin-bottom: 28px;
  gap: 20px;
  flex-wrap: wrap;
}
.points-block .points-value {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 500;
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.02em;
}
.points-block .points-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: block;
  margin-bottom: 6px;
}
.points-block .points-hint {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 240px;
  text-align: right;
}

.profile-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 32px;
  margin-bottom: 32px;
}
.profile-details .detail-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.profile-details .detail-row .label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.profile-details .detail-row .value {
  font-size: 14px;
  color: var(--cream);
}

.visit-history {
  margin-bottom: 28px;
}
.visit-history h4 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  font-weight: 400;
  color: var(--cream);
  margin: 0 0 14px;
}
.visit-history .history-empty {
  font-size: 13px;
  color: var(--text-muted);
  padding: 18px 20px;
  background: rgba(13, 5, 8, 0.5);
  border: 1px dashed rgba(212, 175, 55, 0.15);
  border-radius: 2px;
  text-align: center;
  line-height: 1.55;
}

.profile-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.profile-actions .btn-logout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.35s var(--ease);
}
.profile-actions .btn-logout:hover {
  border-color: rgba(194, 74, 48, 0.5);
  color: #e8a24a;
}

/* ============================================================
   FAQ
   ============================================================ */
.loyalty-faq {
  background: var(--bg-deep);
}
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid rgba(212, 175, 55, 0.08);
}
.faq-item summary {
  list-style: none;
  padding: 24px 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 400;
  color: var(--cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: color 0.3s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold); }
.faq-item summary::after {
  content: '';
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 1v12M1 7h12' stroke='%23d4af37' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.4s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body {
  padding: 0 0 28px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--cream-muted);
  max-width: 720px;
}
.faq-item .faq-body p { margin: 0 0 12px; }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* ============================================================
   LEGAL
   ============================================================ */
.loyalty-legal {
  width: var(--container);
  margin: 0 auto;
  padding: 28px 32px;
  background: rgba(13, 5, 8, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.06);
  border-radius: 2px;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.loyalty-legal h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--cream);
  margin: 0 0 10px;
}
.loyalty-legal p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0 0 6px;
}
.loyalty-legal p:last-child { margin: 0; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.loyalty-cta {
  padding: clamp(60px, 9vw, 120px) 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(212, 175, 55, 0.12) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg-deep), rgba(58, 14, 27, 0.35));
  border-top: 1px solid rgba(212, 175, 55, 0.08);
}
.loyalty-cta-inner {
  width: var(--container);
  margin: 0 auto;
  text-align: center;
  max-width: 720px;
}
.loyalty-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--cream);
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.loyalty-cta h2 em {
  font-style: italic;
  color: var(--gold);
}
.loyalty-cta p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(17px, 2vw, 22px);
  color: var(--cream-muted);
  margin: 0 0 32px;
  line-height: 1.4;
}
.loyalty-cta .cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 40px;
  background: var(--gold);
  color: var(--bg-deep);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all 0.4s var(--ease);
  border: 1px solid var(--gold);
  cursor: pointer;
}
.loyalty-cta .cta-btn:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(212, 175, 55, 0.55);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .tiers-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 720px) {
  .benefits-grid { grid-template-columns: 1fr; }
  .tiers-grid { grid-template-columns: 1fr; }
  .registration-form, .profile-card {
    padding: 36px 26px;
  }
  .profile-details { grid-template-columns: 1fr; }
  .points-block { flex-direction: column; align-items: flex-start; }
  .points-block .points-hint { text-align: left; max-width: none; }
  .loyalty-legal { padding: 22px 20px; }
}
