
/* Auth */

/* Hero */
.rules-hero {
  position: relative;
  z-index: 2;
  min-height: 540px;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 26px;
  align-items: center;
  padding-top: 42px;
}

.rules-copy {
  position: relative;
  z-index: 5;
  padding-left: 14px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 20px;
  margin-bottom: 28px;
  border-radius: 999px;
  color: var(--green-dark);
  background: rgba(47, 120, 57, .10);
  font-size: 15px;
  font-weight: 800;
}

.rules-copy h1 {
  margin: 0 0 30px;
  font-size: clamp(76px, 6.4vw, 116px);
  line-height: .88;
  letter-spacing: -5px;
  font-weight: 900;
}

.rules-copy p {
  max-width: 650px;
  margin: 0;
  color: #171717;
  font-size: 23px;
  line-height: 1.48;
  font-weight: 500;
  letter-spacing: -.25px;
}

.rules-visual {
  position: relative;
  min-height: 540px;
}

.rules-orbit {
  position: absolute;
  right: 36px;
  top: 26px;
  width: 665px;
  height: 455px;
  border-radius: 52% 48% 48% 52%;
  background: rgba(230, 211, 164, .38);
}

.rules-character {
  position: absolute;
  z-index: 6;
  right: 54px;
  bottom: -4px;
  height: 535px;
  width: auto;
  max-width: none;
  filter: drop-shadow(0 20px 18px rgba(0,0,0,.08));
}

.watermark {
  position: absolute;
  z-index: 2;
  color: rgba(211, 164, 112, .17);
}

.wm-scale { left: 118px; top: 122px; font-size: 132px; }
.wm-file { right: 52px; top: 92px; font-size: 88px; }
.wm-handshake { right: 120px; top: 274px; font-size: 92px; }

/* Rules list */
.rules-panel,
.offer-strip {
  position: relative;
  z-index: 10;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 250, 241, .58);
  box-shadow: 0 12px 28px rgba(73,48,18,.045);
}

.rules-panel {
  margin-top: 0;
  padding: 30px 34px 34px;
}

.panel-title h2,
.offer-strip h2 {
  margin: 0 0 22px;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -.9px;
  font-weight: 900;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.rules-column {
  display: grid;
  gap: 10px;
  align-content: start;
}

.rule-item {
  align-self: start;
  border: 1px solid rgba(229, 214, 188, .78);
  border-radius: 16px;
  background: rgba(255,255,255,.26);
  overflow: hidden;
}

.rule-item summary {
  min-height: 66px;
  padding: 10px 18px;
  display: grid;
  grid-template-columns: 54px 1fr 26px;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}

.rule-item summary::-webkit-details-marker {
  display: none;
}

.rule-item strong {
  font-size: 16px;
  line-height: 1.25;
  font-weight: 850;
}

.rule-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(47, 120, 57, .10);
  color: var(--green-dark);
  font-size: 20px;
}

.rule-item summary > i {
  color: var(--green-dark);
  font-size: 14px;
  transition: transform .18s ease;
}

.rule-item[open] summary > i {
  transform: rotate(180deg);
}

.rule-item p {
  margin: 0;
  padding: 0 20px 18px 88px;
  color: #2e2a25;
  font-size: 14px;
  line-height: 1.48;
  font-weight: 500;
}

/* Offer file */
.offer-strip {
  margin-top: 22px;
  padding: 28px 34px;
}

.offer-file-card {
  min-height: 76px;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 18px;
  border: 1px solid rgba(229, 214, 188, .78);
  background: rgba(255,255,255,.30);
}

.offer-file-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.offer-file-main strong {
  font-size: 17px;
  font-weight: 850;
}

.offer-link {
  min-height: 52px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border-radius: 14px;
  color: var(--green-dark);
  background: rgba(47, 120, 57, .08);
  border: 1px solid rgba(47, 120, 57, .34);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

/* CTA */
.rules-cta {
  margin-top: 24px;
  min-height: 126px;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 82px 1fr auto;
  gap: 24px;
  align-items: center;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 20%, rgba(47, 120, 57, .26), transparent 34%),
    linear-gradient(145deg, #202020, #090909);
  box-shadow: 0 18px 36px rgba(44,31,12,.12);
}

.cta-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, #3f8f49, #1d6a2d);
  font-size: 30px;
}

.cta-text h2 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
}

.cta-text p {
  margin: 0;
  color: rgba(255,255,255,.74);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 500;
}

.cta-actions {
  display: flex;
  gap: 16px;
}

.green-action,
.dark-action {
  min-height: 58px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.green-action {
  color: #fff;
  background: linear-gradient(145deg, #36a447, #17702a);
  box-shadow: 0 16px 24px rgba(34, 97, 43, .18);
}

.dark-action {
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.04);
}

.rules-footer {
  margin-top: 18px;
  color: rgba(46,42,37,.44);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 1680px) {
  .page-shell { width: min(100% - 38px, 1680px); padding-left: 46px; padding-right: 46px; }
  .topbar { gap: 18px; }
  .nav { gap: 14px; }
  .nav-link { min-width: 112px; padding: 0 16px; font-size: 16px; }
  .auth-main-btn { padding: 0 24px; font-size: 18px; }
  .rules-character { right: 26px; height: 505px; }
  .rules-orbit { right: 0; width: 600px; height: 420px; }
}

@media (max-width: 1366px) {
  .page-shell { width: min(100% - 28px, 1320px); margin: 14px auto; padding: 24px 34px 34px; border-radius: 34px; }
  .topbar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
  .logo { width: 172px; height: 54px; font-size: 16px; }
  .nav { justify-content: center; gap: 10px; min-width: 0; }
  .nav-link { height: 54px; min-width: 102px; padding: 0 13px; gap: 9px; font-size: 15px; }
  .nav-link i { font-size: 18px; }
  .auth-main-btn { height: 54px; padding: 0 20px; font-size: 16px; }
  .rules-hero { min-height: 500px; padding-top: 34px; }
  .rules-copy h1 { font-size: clamp(64px, 5.8vw, 88px); letter-spacing: -3.8px; }
  .rules-copy p { font-size: 19px; }
  .rules-visual { min-height: 485px; }
  .rules-character { height: 480px; }
  .rules-orbit { width: 540px; height: 395px; }
  .rules-grid { gap: 10px 16px; }
  .cta-actions { gap: 10px; }
}

@media (max-width: 1180px) {
  .topbar { display: flex; flex-wrap: wrap; align-items: center; }
  .nav { order: 3; width: 100%; flex: 0 0 100%; justify-content: flex-start; gap: 10px; overflow-x: auto; overflow-y: hidden; padding: 4px 0 10px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
  .nav-link { flex: 0 0 auto; min-width: 118px; }
  .auth-widget { margin-left: auto; }
  .rules-hero { grid-template-columns: 1fr; gap: 0; padding-top: 44px; }
  .rules-copy { padding-left: 0; }
  .rules-copy h1, .rules-copy p { max-width: 760px; }
  .rules-visual { min-height: 455px; }
  .rules-character { left: 50%; right: auto; transform: translateX(-50%); height: 455px; }
  .rules-orbit { left: 50%; right: auto; transform: translateX(-50%); width: min(620px, 90vw); }
  .rules-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .rules-column {
    gap: 10px;
  }
  .rules-cta { grid-template-columns: 64px 1fr; }
  .cta-actions { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .page-shell { width: min(100% - 12px, 680px); margin: 6px auto; padding: 16px 14px 28px; border-radius: 24px; border-width: 1px; }
  .topbar { gap: 12px; }
  .logo { width: 154px; height: 50px; padding: 7px 12px; font-size: 14px; border-radius: 13px; }
  .logo_help { margin-top: 5px; margin-left: 25px; }
  .nav { gap: 8px; margin-left: -2px; margin-right: -2px; padding-bottom: 8px; }
  .nav-link { height: 46px; min-width: auto; padding: 0 13px; gap: 8px; font-size: 13px; white-space: nowrap; }
  .nav-link i { font-size: 16px; }
  .auth-main-btn { height: 46px; padding: 0 14px; gap: 8px; font-size: 14px; }
  .auth-main-btn i { font-size: 18px; }
  .profile-menu { width: min(270px, calc(100vw - 28px)); right: -4px; }
  .rules-hero { padding-top: 34px; }
  .eyebrow { min-height: 34px; padding: 0 14px; margin-bottom: 20px; font-size: 13px; }
  .rules-copy h1 { margin-bottom: 20px; font-size: clamp(50px, 15vw, 68px); line-height: .9; letter-spacing: -2.8px; }
  .rules-copy p { font-size: 16px; }
  .rules-visual { min-height: 345px; }
  .rules-character { height: 350px; bottom: -4px; }
  .rules-orbit { width: min(430px, 92vw); height: 320px; }
  .watermark { display: none; }
  .rules-panel, .offer-strip { border-radius: 22px; }
  .rules-panel { padding: 22px 14px; }
  .offer-strip { padding: 22px 14px; }
  .panel-title h2, .offer-strip h2 { font-size: 27px; }
  .rule-item summary { grid-template-columns: 46px 1fr 20px; gap: 10px; padding: 10px 12px; }
  .rule-icon { width: 40px; height: 40px; }
  .rule-item strong { font-size: 14px; }
  .rule-item p { padding: 0 14px 16px 68px; font-size: 13px; }
  .offer-file-card { align-items: flex-start; flex-direction: column; }
  .offer-link { width: 100%; }
  .rules-cta { grid-template-columns: 1fr; padding: 22px 18px; }
  .cta-actions { flex-direction: column; width: 100%; }
  .green-action, .dark-action { width: 100%; }
  .auth-card { width: min(100% - 20px, 560px); padding: 28px 20px 22px; border-radius: 26px; max-height: calc(100vh - 28px); overflow-y: auto; }
  .auth-card h2 { font-size: 28px; letter-spacing: -.6px; }
  .auth-card-head { grid-template-columns: 54px 1fr; gap: 14px; }
  .auth-icon { width: 54px; height: 54px; border-radius: 16px; font-size: 22px; }
}

@media (max-width: 480px) {
  .page-shell { width: 100%; min-height: 100vh; margin: 0; padding: 14px 12px 26px; border-left: 0; border-right: 0; border-radius: 0; }
  .topbar { align-items: flex-start; }
  .logo { width: 146px; height: 48px; font-size: 13px; }
  .auth-main-btn { height: 44px; padding: 0 12px; font-size: 0; }
  .auth-main-btn i { margin: 0; font-size: 19px; }
  .auth-main-btn span { font-size: 13px; }
  .nav { gap: 7px; }
  .nav-link { height: 44px; padding: 0 12px; font-size: 13px; }
  .profile-menu { position: fixed; top: 76px; right: 12px; left: 12px; width: auto; }
  .profile-menu::before { display: none; }
  .rules-character { height: 315px; }
  .rules-visual { min-height: 305px; }
  .rules-orbit { height: 285px; }
}



