:root {
  --sand: #f7f7f7;
  --terracotta: #4a9ebf;
  --terracotta-light: #6ab4d0;
  --bgbtn: #ffaa2b;
  --ocean: #2d7da0;
  --dark: #2d2d2d;
  --text: #3d3d3d;
  --text-light: #888888;
  --white: #ffffff;
  --green: #4caf7d;
  --red: #e05c5c;
  --yellow: #f5a623;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* ===== NAVBAR ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 3rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 30px rgba(26, 42, 46, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
}

.nav-back {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-back:hover {
  color: var(--bgbtn);
}

.nav-cta {
  background: var(--bgbtn);
  color: white;
  padding: 0.6rem 1.4rem;
  border-radius: 2px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s;
}

.nav-cta:hover {
  background: var(--terracotta-light);
  transform: translateY(-1px);
}

/* ===== HERO ===== */
.rules-hero {
  padding: 8rem 3rem 4rem;
  background: var(--dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.rules-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.02) 0px,
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 60px
  );
}

.rules-hero .section-label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bgbtn);
  margin-bottom: 0.8rem;
  display: block;
}

.rules-hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.rules-hero p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== QUICK SUMMARY ===== */
.quick-summary {
  background: var(--bgbtn);
  padding: 2rem 3rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: white;
}

.summary-icon {
  font-size: 1.3rem;
}

.summary-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
}

.summary-text span {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* ===== CONTENT ===== */
.rules-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 3rem;
}

/* ===== RULE CARD ===== */
.rule-section {
  margin-bottom: 3rem;
}

.rule-section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #efefef;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.rule-card {
  background: var(--sand);
  border-radius: 3px;
  padding: 1.5rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  border-left: 3px solid transparent;
  transition: all 0.3s;
}

.rule-card:hover {
  background: #f0f0f0;
  transform: translateX(4px);
}

.rule-card.allowed {
  border-left-color: var(--green);
}
.rule-card.not-allowed {
  border-left-color: var(--red);
}
.rule-card.info {
  border-left-color: var(--terracotta);
}
.rule-card.warning {
  border-left-color: var(--yellow);
}

.rule-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.rule-card.allowed .rule-icon {
  background: rgba(76, 175, 125, 0.12);
}
.rule-card.not-allowed .rule-icon {
  background: rgba(224, 92, 92, 0.12);
}
.rule-card.info .rule-icon {
  background: rgba(74, 158, 191, 0.12);
}
.rule-card.warning .rule-icon {
  background: rgba(245, 166, 35, 0.12);
}

.rule-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.rule-text p {
  font-size: 0.83rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== TIME TABLE ===== */
.time-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.time-card {
  background: var(--dark);
  color: white;
  border-radius: 3px;
  padding: 2rem;
  text-align: center;
}

.time-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 0.5rem;
}

.time-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.time-value {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
  font-weight: 300;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.time-note {
  font-size: 0.72rem;
  opacity: 0.5;
}

/* ===== IMPORTANT BOX ===== */
.important-box {
  background: linear-gradient(135deg, #fff8e8, #fff3d0);
  border: 1px solid #f5a623;
  border-radius: 3px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.important-box .box-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.important-box p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text);
}

.important-box strong {
  color: var(--dark);
}

/* ===== CTA ===== */
.rules-cta {
  background: var(--sand);
  padding: 4rem 3rem;
  text-align: center;
}

.rules-cta h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 0.8rem;
}

.rules-cta p {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--bgbtn);
  color: white;
  padding: 0.9rem 2.2rem;
  border: none;
  border-radius: 2px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  margin: 0.4rem;
}

.btn-primary:hover {
  background: var(--terracotta-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(74, 158, 191, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  padding: 0.9rem 2.2rem;
  border: 1px solid #e0e0e0;
  border-radius: 2px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
  margin: 0.4rem;
}

.btn-outline:hover {
  border-color: var(--dark);
  background: var(--dark);
  color: white;
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.5);
  padding: 2rem 3rem;
  text-align: center;
  font-size: 0.78rem;
}

footer a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  margin: 0 0.8rem;
}

footer a:hover {
  color: white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  nav {
    padding: 1rem 1.5rem;
  }
  .nav-cta {
    display: none;
  }
  .rules-hero {
    padding: 7rem 1.5rem 3rem;
  }
  .quick-summary {
    gap: 1.5rem;
    padding: 1.5rem;
  }
  .rules-content {
    padding: 3rem 1.5rem;
  }
  .time-table {
    grid-template-columns: 1fr;
  }
  .rules-cta {
    padding: 3rem 1.5rem;
  }
}
