/* =========================================================
   SHRI VIDHYABHARATHI CBSE SENIOR SECONDARY SCHOOL
   RULES & POLICIES — CLEAN, COMPACT, DISTINCT PAGE
   Requires styles.css
   ========================================================= */

:root{
  --rules-paper:#fffdf9;
  --rules-cream:#fff8ee;
  --rules-line:rgba(184,119,11,.18);
  --rules-shadow:0 14px 34px rgba(62,39,35,.09);
  --rules-shadow-lg:0 24px 54px rgba(62,39,35,.15);
  --rules-ease:cubic-bezier(.22,.75,.32,1);
}

/* =========================================================
   BASE
   ========================================================= */

.rules-page{
  background:#fff;
}

.rules-page .section{
  padding:68px 0;
}

.rules-page h2,
.rules-page h3,
.rules-page h4{
  text-wrap:balance;
}

.rules-page p{
  color:var(--ink-2);
}

.rules-media{
  position:relative;
  margin:0;
}

.rules-media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.rules-kicker,
.rules-section-label{
  display:inline-flex;
  align-items:center;
  gap:9px;
  margin:0 0 15px;

  color:var(--sky-deep);

  font-family:var(--head);
  font-size:11px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.rules-kicker__icon,
.rules-section-label__icon{
  display:grid;
  place-items:center;

  width:32px;
  height:32px;

  border-radius:9px;

  background:rgba(245,166,35,.13);
  color:var(--navy);
}

.rules-kicker__icon .icon,
.rules-section-label__icon .icon{
  width:16px;
  height:16px;
}

.rules-section-label--dark{
  color:#ffd06e;
}

.rules-section-label--dark .rules-section-label__icon{
  background:rgba(245,166,35,.13);
  color:var(--gold);
}

.rules-section-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(320px,.7fr);
  gap:54px;
  align-items:end;
  margin-bottom:26px;
}

.rules-section-head h2{
  margin:0;
  color:var(--navy);
  font-size:clamp(30px,3.2vw,42px);
  line-height:1.12;
}

.rules-section-head > p{
  margin:0 0 2px;
  font-size:14px;
  line-height:1.65;
}

/* =========================================================
   01. INTRO
   ========================================================= */

.rules-intro{
  position:relative;
  overflow:hidden;

  background:
    radial-gradient(circle at 8% 12%,rgba(245,166,35,.10),transparent 25%),
    var(--cream);
}

.rules-intro::after{
  content:"";
  position:absolute;
  right:-60px;
  bottom:-70px;
  width:220px;
  height:220px;
  opacity:.18;
  background-image:radial-gradient(rgba(139,26,26,.24) 1.3px,transparent 1.3px);
  background-size:17px 17px;
  pointer-events:none;
}

.rules-intro__shell{
  position:relative;
  z-index:1;
}

.rules-intro__top{
  display:grid;
  grid-template-columns:minmax(0,.92fr) minmax(430px,1.08fr);
  gap:58px;
  align-items:start;
}

.rules-intro__content h2{
  max-width:670px;
  margin:0 0 20px;
  color:var(--navy);
  font-size:clamp(35px,3.7vw,49px);
  line-height:1.05;
  letter-spacing:-.02em;
}

.rules-intro__lead{
  max-width:690px;
  margin:0 !important;
  color:var(--ink) !important;
  font-size:16px !important;
  line-height:1.72 !important;
}

.rules-intro__media{
  height:340px;
}

.rules-intro__media img{
  border-radius:24px;
  box-shadow:var(--rules-shadow-lg);
}

.rules-intro__media::before{
  content:"";
  position:absolute;
  inset:12px -11px -11px 12px;
  z-index:-1;
  border-radius:24px;
  background:linear-gradient(135deg,rgba(245,166,35,.18),rgba(139,26,26,.07));
}

.rules-intro__media figcaption{
  position:absolute;
  left:14px;
  right:14px;
  bottom:14px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:11px;
  background:rgba(74,25,19,.82);
  backdrop-filter:blur(8px);
  color:#fff;
  font-family:var(--head);
  font-size:11px;
  font-weight:600;
}

.rules-intro__media figcaption .icon{
  width:15px;
  height:15px;
  color:var(--gold);
}

.rules-intro__bottom{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:30px;
  align-items:center;
  margin-top:27px;
  padding-top:22px;
  border-top:1px solid rgba(184,119,11,.18);
}

.rules-intro__bottom > p{
  max-width:850px;
  margin:0;
  font-size:14px;
  line-height:1.65;
}

.rules-intro__pillars{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:7px;
}

.rules-intro__pillars span{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:35px;
  padding:7px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,.76);
  color:var(--ink);
  font-size:10.5px;
  font-weight:600;
}

.rules-intro__pillars .icon{
  width:14px;
  height:14px;
  color:var(--orange);
}

/* =========================================================
   02. SCHOOL RULES
   ========================================================= */

.rules-school{
  background:#fff;
}

.rules-school__panel{
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:20px;
  background:var(--rules-paper);
  box-shadow:0 12px 32px rgba(62,39,35,.055);
}

.rules-school__panel-head{
  display:flex;
  align-items:center;
  gap:12px;
  padding:18px 22px;
  border-bottom:1px solid var(--line);
  background:rgba(255,248,238,.65);
}

.rules-school__panel-icon{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  flex:none;
  border-radius:11px;
  background:rgba(245,166,35,.13);
  color:var(--navy);
}

.rules-school__panel-icon .icon{
  width:17px;
  height:17px;
}

.rules-school__panel-head small{
  display:block;
  margin-bottom:2px;
  color:var(--orange);
  font-size:9.5px;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
}

.rules-school__panel-head h3{
  margin:0;
  color:var(--navy);
  font-size:15px;
}

.rules-school__list{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0;
  padding:0;
  margin:0;
  list-style:none;
}

.rules-school__list li{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:84px;
  padding:15px 17px;
  border-right:1px solid rgba(236,217,184,.82);
  border-bottom:1px solid rgba(236,217,184,.82);
  background:transparent;
}

.rules-school__list li:nth-child(3n){
  border-right:0;
}

.rules-school__list li:nth-last-child(-n+3){
  border-bottom:0;
}

.rules-school__list li:nth-child(even){
  background:rgba(255,248,238,.42);
}

.rules-school__list li > span{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  flex:none;
  border-radius:10px;
  background:rgba(245,166,35,.12);
  color:var(--navy);
}

.rules-school__list li:nth-child(3n + 2) > span{
  background:rgba(31,157,87,.10);
  color:var(--green);
}

.rules-school__list li:nth-child(3n + 3) > span{
  background:rgba(139,26,26,.08);
  color:var(--navy);
}

.rules-school__list .icon{
  width:16px;
  height:16px;
}

.rules-school__list b{
  color:var(--ink);
  font-size:12.5px;
  line-height:1.45;
}

/* =========================================================
   03. DISCIPLINE
   ========================================================= */

.rules-discipline{
  position:relative;
  overflow:hidden;
  padding:70px 0;
  color:#f7ece2;
  background:
    radial-gradient(circle at 90% 12%,rgba(245,166,35,.10),transparent 26%),
    linear-gradient(118deg,#4c1716 0%,#5d1d1c 48%,#70251f 100%);
}

.rules-discipline__grid{
  display:grid;
  grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr);
  gap:60px;
  align-items:center;
}

.rules-discipline__intro h2{
  margin:0 0 18px;
  color:#fff;
  font-size:clamp(33px,3.6vw,48px);
  line-height:1.08;
}

.rules-discipline__intro p{
  margin:0;
  color:#f1decf;
  font-size:15.5px;
  line-height:1.68;
}

.rules-discipline__principles{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
}

.rules-discipline__principles > div{
  min-height:130px;
  padding:16px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  background:rgba(255,255,255,.045);
}

.rules-discipline__principles > div > span{
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  margin-bottom:12px;
  border-radius:10px;
  background:rgba(245,166,35,.14);
  color:var(--gold);
}

.rules-discipline__principles > div:nth-child(2) > span{
  background:rgba(31,157,87,.14);
  color:#9be4b7;
}

.rules-discipline__principles > div:nth-child(3) > span{
  background:rgba(255,255,255,.08);
  color:#fff;
}

.rules-discipline__principles .icon{
  width:17px;
  height:17px;
}

.rules-discipline__principles b,
.rules-discipline__principles small{
  display:block;
}

.rules-discipline__principles b{
  margin-bottom:4px;
  color:#fff;
  font-size:13px;
}

.rules-discipline__principles small{
  color:#ddc8b7;
  font-size:10.5px;
  line-height:1.42;
}

.rules-discipline__principles > p{
  grid-column:1 / -1;
  margin:7px 0 0;
  padding-top:15px;
  border-top:1px solid rgba(255,255,255,.10);
  color:#eddacb;
  font-size:13.5px;
  line-height:1.65;
}

/* =========================================================
   04. YELLOW / RED CARD SYSTEM — COMPACT DISCIPLINE TIMELINE
   ========================================================= */

.rules-cards{
  position:relative;
  overflow:hidden;

  background:
    radial-gradient(
      circle at 96% 8%,
      rgba(245,166,35,.08),
      transparent 24%
    ),
    linear-gradient(
      180deg,
      #fffaf2 0%,
      #fff7e9 100%
    );
}

.rules-cards::before{
  content:"";
  position:absolute;

  left:-105px;
  bottom:-135px;

  width:320px;
  height:320px;

  border-radius:50%;

  background:
    radial-gradient(
      circle,
      rgba(139,26,26,.045),
      transparent 68%
    );

  pointer-events:none;
}


/* ---------------------------------------------------------
   Heading
   --------------------------------------------------------- */

.rules-cards__head{
  position:relative;
  z-index:1;

  display:grid;

  grid-template-columns:
    minmax(0,1fr)
    minmax(340px,.62fr);

  gap:56px;
  align-items:end;

  margin-bottom:26px;
}

.rules-cards__head .eyebrow{
  margin-bottom:9px;
}

.rules-cards__head h2{
  max-width:760px;

  margin:0;

  color:var(--navy);

  font-size:clamp(31px,3.3vw,43px);
  line-height:1.08;
  letter-spacing:-.015em;
}

.rules-cards__head > p{
  max-width:500px;

  margin:0 0 2px;

  color:var(--ink-2);

  font-size:14.5px;
  line-height:1.65;
}


/* ---------------------------------------------------------
   Main system shell
   --------------------------------------------------------- */

.rules-card-system{
  position:relative;
  z-index:1;

  overflow:hidden;

  border:1px solid var(--line);
  border-radius:22px;

  background:rgba(255,255,255,.72);

  box-shadow:
    0 14px 36px rgba(62,39,35,.065);
}


/* ---------------------------------------------------------
   Horizontal progression
   --------------------------------------------------------- */

.rules-card-track{
  position:relative;

  display:grid;

  grid-template-columns:
    repeat(4,minmax(0,1fr));

  padding:22px;

  border-bottom:1px solid rgba(236,217,184,.84);
}


/* connecting line */

.rules-card-track::before{
  content:"";

  position:absolute;

  left:9%;
  right:9%;
  top:56px;

  height:1px;

  background:
    linear-gradient(
      90deg,
      rgba(245,166,35,.40),
      rgba(184,119,11,.22) 48%,
      rgba(139,26,26,.28)
    );

  pointer-events:none;
}


/* stage */

.rules-card-stage{
  position:relative;
  z-index:1;

  min-width:0;

  padding:0 20px;

  border-right:1px solid rgba(236,217,184,.72);
}

.rules-card-stage:first-child{
  padding-left:0;
}

.rules-card-stage:last-child{
  padding-right:0;
  border-right:0;
}

.rules-card-stage__top{
  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:12px;

  margin-bottom:13px;
}

.rules-card-stage__number{
  display:grid;
  place-items:center;

  min-width:34px;
  height:30px;

  padding:0 9px;

  border-radius:9px;

  background:#fff7e7;

  color:var(--gold-deep);

  font-family:var(--head);
  font-size:10px;
  font-weight:800;

  box-shadow:
    inset 0 0 0 1px rgba(184,119,11,.10);
}

.rules-card-stage__icon{
  display:grid;
  place-items:center;

  width:39px;
  height:39px;

  border-radius:12px;

  background:#fff;

  color:var(--navy);

  box-shadow:
    0 0 0 5px rgba(255,250,242,.96),
    inset 0 0 0 1px rgba(184,119,11,.16);
}

.rules-card-stage--yellow .rules-card-stage__icon{
  background:#fff3bd;
  color:#9c6600;
}

.rules-card-stage--red .rules-card-stage__icon{
  background:#f9e5e2;
  color:var(--navy);
}

.rules-card-stage__icon .icon{
  width:17px;
  height:17px;
}

.rules-card-stage small{
  display:block;

  margin-bottom:5px;

  color:var(--orange);

  font-size:9.5px;
  line-height:1.2;
  font-weight:800;

  letter-spacing:.09em;
  text-transform:uppercase;
}

.rules-card-stage--red small{
  color:var(--navy);
}

.rules-card-stage h3{
  margin:0 0 7px;

  color:var(--navy);

  font-size:16px;
  line-height:1.3;
}

.rules-card-stage p{
  max-width:245px;

  margin:0;

  color:var(--ink-2);

  font-size:11.5px;
  line-height:1.5;
}


/* ---------------------------------------------------------
   Yellow / Red detail pair
   --------------------------------------------------------- */

.rules-card-details{
  display:grid;

  grid-template-columns:
    repeat(2,minmax(0,1fr));

  gap:0;

  padding:0 22px;
}

.rules-card-policy{
  padding:24px 24px 22px 0;
}

.rules-card-policy + .rules-card-policy{
  padding-left:24px;
  padding-right:0;

  border-left:1px solid rgba(236,217,184,.84);
}

.rules-card-policy__head{
  display:flex;
  align-items:center;

  gap:11px;

  margin-bottom:13px;
}

.rules-card-policy__icon{
  display:grid;
  place-items:center;

  width:40px;
  height:40px;

  flex:none;

  border-radius:11px;

  background:rgba(245,166,35,.13);
  color:#a56d03;
}

.rules-card-policy--red .rules-card-policy__icon{
  background:rgba(139,26,26,.08);
  color:var(--navy);
}

.rules-card-policy__icon .icon{
  width:18px;
  height:18px;
}

.rules-card-policy__head small{
  display:block;

  margin-bottom:2px;

  color:var(--orange);

  font-size:9px;
  font-weight:800;

  letter-spacing:.08em;
  text-transform:uppercase;
}

.rules-card-policy--red .rules-card-policy__head small{
  color:var(--navy);
}

.rules-card-policy h3{
  margin:0;

  color:var(--navy);

  font-size:17px;
  line-height:1.3;
}

.rules-card-policy ul{
  padding:0;
  margin:0;

  list-style:none;
}

.rules-card-policy li{
  position:relative;

  padding:8px 0 8px 22px;

  color:var(--ink);

  font-size:12.5px;
  line-height:1.52;
}

.rules-card-policy li::before{
  content:"";

  position:absolute;

  left:2px;
  top:14px;

  width:7px;
  height:7px;

  border-radius:50%;

  background:var(--gold);
}

.rules-card-policy--red li::before{
  background:var(--navy);
}


/* ---------------------------------------------------------
   Bottom note
   --------------------------------------------------------- */

.rules-card-system__note{
  display:flex;
  align-items:center;

  gap:11px;

  margin:0 22px 22px;
  padding:13px 15px;

  border-radius:12px;

  background:rgba(245,166,35,.085);
}

.rules-card-system__note > span{
  display:grid;
  place-items:center;

  width:30px;
  height:30px;

  flex:none;

  border-radius:9px;

  background:#fff;

  color:var(--orange);
}

.rules-card-system__note .icon{
  width:15px;
  height:15px;
}

.rules-card-system__note p{
  margin:0;

  color:var(--ink-2);

  font-size:12.5px;
  line-height:1.5;
}


/* ---------------------------------------------------------
   Hover
   --------------------------------------------------------- */

@media (hover:hover){

  .rules-card-stage{
    transition:
      transform .25s var(--rules-ease);
  }

  .rules-card-stage:hover{
    transform:translateY(-2px);
  }

  .rules-card-stage__icon{
    transition:
      transform .25s var(--rules-ease),
      box-shadow .25s ease;
  }

  .rules-card-stage:hover .rules-card-stage__icon{
    transform:translateY(-2px);
  }

}


/* ---------------------------------------------------------
   Tablet
   --------------------------------------------------------- */

@media (max-width:1000px){

  .rules-cards__head{
    grid-template-columns:1fr;

    gap:11px;

    margin-bottom:22px;
  }

  .rules-cards__head > p{
    max-width:720px;
  }

  .rules-card-track{
    grid-template-columns:
      repeat(2,minmax(0,1fr));

    gap:0;

    padding:18px;
  }

  .rules-card-track::before{
    display:none;
  }

  .rules-card-stage{
    padding:18px;

    border-right:1px solid rgba(236,217,184,.76);
    border-bottom:1px solid rgba(236,217,184,.76);
  }

  .rules-card-stage:first-child{
    padding-left:18px;
  }

  .rules-card-stage:last-child{
    padding-right:18px;
  }

  .rules-card-stage:nth-child(2n){
    border-right:0;
  }

  .rules-card-stage:nth-last-child(-n+2){
    border-bottom:0;
  }

  .rules-card-stage p{
    max-width:none;
  }

}


/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width:640px){

  .rules-cards__head h2{
    font-size:30px;
  }

  .rules-card-track{
    grid-template-columns:1fr;

    padding:0;
  }

  .rules-card-stage,
  .rules-card-stage:first-child,
  .rules-card-stage:last-child{
    display:grid;

    grid-template-columns:
      42px 38px minmax(0,1fr);

    gap:10px;
    align-items:center;

    padding:14px 15px;

    border-right:0;
    border-bottom:1px solid rgba(236,217,184,.76);
  }

  .rules-card-stage:last-child{
    border-bottom:0;
  }

  .rules-card-stage__top{
    display:contents;
  }

  .rules-card-stage__number{
    grid-column:1;
    grid-row:1 / span 3;

    align-self:center;

    min-width:36px;
  }

  .rules-card-stage__icon{
    grid-column:2;
    grid-row:1 / span 3;

    width:35px;
    height:35px;

    align-self:center;
  }

  .rules-card-stage small,
  .rules-card-stage h3,
  .rules-card-stage p{
    grid-column:3;
  }

  .rules-card-stage small{
    margin:0 0 2px;
  }

  .rules-card-stage h3{
    margin:0 0 3px;

    font-size:14px;
  }

  .rules-card-stage p{
    font-size:11px;
    line-height:1.42;
  }

  .rules-card-details{
    grid-template-columns:1fr;

    padding:0 16px;
  }

  .rules-card-policy{
    padding:18px 0;
  }

  .rules-card-policy + .rules-card-policy{
    padding:18px 0;

    border-left:0;
    border-top:1px solid rgba(236,217,184,.84);
  }

  .rules-card-system__note{
    margin:0 16px 16px;
  }

}

/* =========================================================
   05. GENERAL RULES — COMPACT 3×3 POLICY DIRECTORY
   ========================================================= */

.rules-general{
  position:relative;
  overflow:hidden;

  background:
    radial-gradient(
      circle at 96% 4%,
      rgba(245,166,35,.07),
      transparent 24%
    ),
    #fff;
}

.rules-general::before{
  content:"";
  position:absolute;

  left:-100px;
  bottom:-130px;

  width:320px;
  height:320px;

  border-radius:50%;

  background:
    radial-gradient(
      circle,
      rgba(139,26,26,.045),
      transparent 68%
    );

  pointer-events:none;
}


/* ---------------------------------------------------------
   Compact heading row
   --------------------------------------------------------- */

.rules-general__head{
  position:relative;
  z-index:1;

  display:grid;

  grid-template-columns:
    minmax(0,1.05fr)
    minmax(340px,.65fr);

  gap:58px;
  align-items:end;

  margin-bottom:25px;
}

.rules-general__title h2{
  max-width:720px;

  margin:0;

  color:var(--navy);

  font-size:clamp(30px,3.2vw,42px);
  line-height:1.1;
  letter-spacing:-.015em;
}

.rules-general__summary{
  display:flex;
  align-items:flex-start;
  gap:11px;

  padding:0 0 3px;
}

.rules-general__summary-icon{
  display:grid;
  place-items:center;

  width:38px;
  height:38px;

  flex:none;

  border-radius:11px;

  background:rgba(245,166,35,.12);
  color:var(--navy);
}

.rules-general__summary-icon .icon{
  width:17px;
  height:17px;
}

.rules-general__summary p{
  max-width:500px;

  margin:0;

  color:var(--ink-2);

  font-size:14.5px;
  line-height:1.64;
}


/* ---------------------------------------------------------
   One unified panel
   --------------------------------------------------------- */

.rules-general__panel{
  position:relative;
  z-index:1;

  display:grid;

  grid-template-columns:
    repeat(3,minmax(0,1fr));

  overflow:hidden;

  border:1px solid var(--line);
  border-radius:20px;

  background:rgba(255,253,249,.82);

  box-shadow:
    0 12px 32px rgba(62,39,35,.055);
}


/* ---------------------------------------------------------
   Rule cell
   --------------------------------------------------------- */

.rules-general__item{
  position:relative;

  display:grid;

  grid-template-columns:
    29px 38px minmax(0,1fr);

  gap:10px;
  align-items:center;

  min-height:94px;

  padding:16px 17px;

  border-right:1px solid rgba(236,217,184,.82);
  border-bottom:1px solid rgba(236,217,184,.82);

  background:transparent;

  transition:
    background .25s ease;
}

.rules-general__item:nth-child(3n){
  border-right:0;
}

.rules-general__item:nth-last-child(-n+3){
  border-bottom:0;
}

.rules-general__item:nth-child(even){
  background:rgba(255,248,238,.40);
}


/* number */

.rules-general__number{
  color:var(--orange);

  font-family:var(--head);
  font-size:10px;
  font-weight:800;
  line-height:1;

  letter-spacing:.04em;
}


/* icon */

.rules-general__icon{
  display:grid;
  place-items:center;

  width:38px;
  height:38px;

  border-radius:11px;

  background:rgba(245,166,35,.12);
  color:var(--navy);
}

.rules-general__item:nth-child(3n + 2) .rules-general__icon{
  background:rgba(31,157,87,.10);
  color:var(--green);
}

.rules-general__item:nth-child(3n + 3) .rules-general__icon{
  background:rgba(139,26,26,.075);
  color:var(--navy);
}

.rules-general__icon .icon{
  width:17px;
  height:17px;
}


/* text */

.rules-general__item p{
  margin:0;

  color:var(--ink);

  font-size:13px;
  line-height:1.48;
  font-weight:600;
}


/* ---------------------------------------------------------
   Hover
   --------------------------------------------------------- */

@media (hover:hover){

  .rules-general__item:hover{
    background:rgba(245,166,35,.045);
  }

  .rules-general__icon{
    transition:
      transform .25s var(--rules-ease),
      background .25s ease;
  }

  .rules-general__item:hover .rules-general__icon{
    transform:translateY(-2px);
  }

}


/* ---------------------------------------------------------
   Tablet
   --------------------------------------------------------- */

@media (max-width:1000px){

  .rules-general__head{
    grid-template-columns:1fr;

    gap:12px;

    margin-bottom:21px;
  }

  .rules-general__summary{
    max-width:720px;
  }

  .rules-general__panel{
    grid-template-columns:
      repeat(2,minmax(0,1fr));
  }

  .rules-general__item,
  .rules-general__item:nth-child(3n){
    border-right:1px solid rgba(236,217,184,.82);
    border-bottom:1px solid rgba(236,217,184,.82);
  }

  .rules-general__item:nth-child(2n){
    border-right:0;
  }

  .rules-general__item:nth-last-child(-n+3){
    border-bottom:1px solid rgba(236,217,184,.82);
  }

  .rules-general__item:last-child{
    grid-column:1 / -1;

    border-right:0;
    border-bottom:0;
  }

}


/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width:640px){

  .rules-general__title h2{
    font-size:30px;
  }

  .rules-general__summary p{
    font-size:13.5px;
  }

  .rules-general__panel{
    grid-template-columns:1fr;

    border-radius:16px;
  }

  .rules-general__item,
  .rules-general__item:nth-child(2n),
  .rules-general__item:nth-child(3n),
  .rules-general__item:nth-last-child(-n+3),
  .rules-general__item:last-child{
    grid-column:auto;

    min-height:72px;

    padding:13px 14px;

    border-right:0;
    border-bottom:1px solid rgba(236,217,184,.82);
  }

  .rules-general__item:last-child{
    border-bottom:0;
  }

  .rules-general__item{
    grid-template-columns:
      25px 34px minmax(0,1fr);

    gap:9px;
  }

  .rules-general__icon{
    width:34px;
    height:34px;

    border-radius:10px;
  }

  .rules-general__icon .icon{
    width:15px;
    height:15px;
  }

  .rules-general__item p{
    font-size:12.3px;
  }

}

/* =========================================================
   06. BUS RULES
   ========================================================= */

.rules-bus{
  position:relative;
  overflow:hidden;
  background:linear-gradient(145deg,#fff5e5,var(--cream));
}

.rules-bus__grid{
  display:grid;
  grid-template-columns:minmax(420px,.95fr) minmax(0,1.05fr);
  gap:58px;
  align-items:center;
}

.rules-bus__media{
  height:420px;
}

.rules-bus__media img{
  border-radius:26px 58px 26px 26px;
  box-shadow:var(--rules-shadow-lg);
}

.rules-media__badge{
  position:absolute;
  right:15px;
  top:15px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:8px 11px;
  border-radius:999px;
  background:var(--gold);
  color:var(--navy-deep);
  font-size:10px;
  font-weight:800;
  letter-spacing:.05em;
  text-transform:uppercase;
  box-shadow:0 8px 18px rgba(62,39,35,.14);
}

.rules-media__badge .icon{
  width:14px;
  height:14px;
}

.rules-bus__content h2{
  margin:0 0 16px;
  color:var(--navy);
  font-size:clamp(30px,3.2vw,42px);
  line-height:1.12;
}

.rules-bus__content > p{
  margin:0 0 16px;
  font-size:14px;
  line-height:1.62;
}

.rules-bus__list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0 22px;
  padding:0;
  margin:0;
  list-style:none;
}

.rules-bus__list li{
  position:relative;
  padding:9px 0 9px 24px;
  border-bottom:1px solid rgba(236,217,184,.82);
  color:var(--ink);
  font-size:12.3px;
  line-height:1.48;
}

.rules-bus__list li::before{
  content:"✓";
  position:absolute;
  left:0;
  top:9px;
  display:grid;
  place-items:center;
  width:17px;
  height:17px;
  border-radius:5px;
  background:rgba(31,157,87,.12);
  color:var(--green);
  font-family:Arial,sans-serif;
  font-size:9px;
  font-weight:900;
}

.rules-bus__closing{
  display:flex;
  align-items:flex-start;
  gap:8px;
  margin:17px 0 0 !important;
  padding:11px 12px;
  border-radius:10px;
  background:rgba(245,166,35,.09);
  font-size:12px !important;
  line-height:1.52 !important;
}

.rules-bus__closing .icon{
  width:15px;
  height:15px;
  flex:none;
  color:var(--orange);
}

/* =========================================================
   07. UNIFORM POLICY
   ========================================================= */

.rules-uniform{
  background:#fff;
}

.rules-uniform__layout{
  display:grid;
  grid-template-columns:minmax(300px,.72fr) minmax(0,1.28fr);
  gap:56px;
  align-items:start;
}

.rules-uniform__title{
  display:flex;
  align-items:flex-start;
  gap:14px;
}

.rules-uniform__icon{
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  flex:none;
  border-radius:14px;
  background:var(--navy);
  color:#fff;
}

.rules-uniform__icon .icon{
  width:21px;
  height:21px;
}

.rules-uniform__title h2{
  margin:0;
  color:var(--navy);
  font-size:clamp(28px,3vw,39px);
  line-height:1.12;
}

.rules-uniform__content{
  padding-left:32px;
  border-left:1px solid var(--line);
}

.rules-uniform__content > p{
  margin:0 0 16px;
  font-size:14px;
  line-height:1.62;
}

.rules-uniform__content h3{
  margin:0 0 12px;
  color:var(--navy);
  font-size:13px;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.rules-uniform__content ul{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  padding:0;
  margin:0;
  list-style:none;
}

.rules-uniform__content li{
  display:flex;
  align-items:flex-start;
  gap:9px;
  min-height:54px;
  padding:10px 11px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--rules-paper);
  color:var(--ink);
  font-size:11.8px;
  line-height:1.45;
}

.rules-uniform__content li > span{
  display:grid;
  place-items:center;
  width:25px;
  height:25px;
  flex:none;
  border-radius:7px;
  background:rgba(245,166,35,.13);
  color:var(--orange);
}

.rules-uniform__content li > span .icon{
  width:13px;
  height:13px;
}

.rules-uniform__note{
  margin:17px 0 0 !important;
  padding-top:15px;
  border-top:1px solid var(--line);
  color:var(--ink-2) !important;
  font-size:12.5px !important;
  line-height:1.58 !important;
}

/* =========================================================
   HOVER
   ========================================================= */

@media (hover:hover){
  .rules-media img{
    transition:transform .55s var(--rules-ease);
  }

  .rules-intro__media:hover img,
  .rules-bus__media:hover img{
    transform:scale(1.018);
  }

  .rules-school__list li,
  .rules-card-step{
    transition:
      transform .25s var(--rules-ease),
      background .25s ease,
      border-color .25s ease;
  }

  .rules-school__list li:hover{
    background:rgba(245,166,35,.04);
  }

  .rules-card-step:hover{
    transform:translateY(-3px);
    border-color:rgba(245,166,35,.30);
  }
}

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

@media (max-width:1100px){
  .rules-intro__top{
    grid-template-columns:minmax(0,.9fr) minmax(390px,1.1fr);
    gap:40px;
  }

  .rules-discipline__grid,
  .rules-bus__grid,
  .rules-uniform__layout{
    gap:40px;
  }

  .rules-school__list{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .rules-school__list li:nth-child(3n){
    border-right:1px solid rgba(236,217,184,.82);
  }

  .rules-school__list li:nth-child(2n){
    border-right:0;
  }

  .rules-school__list li:nth-last-child(-n+3){
    border-bottom:1px solid rgba(236,217,184,.82);
  }

  .rules-school__list li:last-child{
    border-bottom:0;
  }

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

@media (max-width:900px){
  .rules-page .section{
    padding:58px 0;
  }

  .rules-intro__top,
  .rules-section-head,
  .rules-discipline__grid,
  .rules-cards__head,
  .rules-bus__grid,
  .rules-uniform__layout{
    grid-template-columns:1fr;
  }

  .rules-intro__media,
  .rules-bus__media{
    width:min(100%,680px);
    height:350px;
    margin:0 auto;
  }

  .rules-intro__bottom{
    grid-template-columns:1fr;
    gap:17px;
  }

  .rules-intro__pillars{
    justify-content:flex-start;
  }

  .rules-section-head,
  .rules-cards__head{
    gap:10px;
  }

  .rules-discipline{
    padding:58px 0;
  }


  .rules-uniform__content{
    padding-left:0;
    padding-top:18px;
    border-left:0;
    border-top:1px solid var(--line);
  }
}

@media (max-width:700px){
  .rules-card-system__visual{
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
  }

  .rules-card-system__arrow{
    width:auto;
    height:20px;
    transform:rotate(90deg);
  }
}

@media (max-width:640px){
  .rules-page .section{
    padding:48px 0;
  }

  .rules-intro__content h2{
    font-size:31px;
  }

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

  .rules-intro__media,
  .rules-bus__media{
    height:270px;
  }

  .rules-intro__pillars span{
    width:100%;
    border-radius:10px;
  }

  .rules-school__list{
    grid-template-columns:1fr;
  }

  .rules-school__list li,
  .rules-school__list li:nth-child(2n),
  .rules-school__list li:nth-child(3n){
    border-right:0;
    border-bottom:1px solid rgba(236,217,184,.82);
  }

  .rules-school__list li:last-child{
    border-bottom:0;
  }

  .rules-discipline{
    padding:50px 0;
  }

  .rules-discipline__principles{
    grid-template-columns:1fr;
  }

  .rules-discipline__principles > p{
    grid-column:auto;
  }

  .rules-card-system__details{
    padding:20px;
  }

  .rules-general__intro{
    padding:21px;
  }

  .rules-bus__list,
  .rules-uniform__content ul{
    grid-template-columns:1fr;
  }

  .rules-uniform__title{
    flex-direction:column;
  }
}

@media (max-width:430px){
  .rules-intro__media,
  .rules-bus__media{
    height:235px;
  }

  .rules-card-step{
    padding:16px;
  }
}

@media (prefers-reduced-motion:reduce){
  .rules-page *,
  .rules-page *::before,
  .rules-page *::after{
    animation:none !important;
    transition:none !important;
  }
}

/* Project typography polish */
.rules-page p,
.rules-intro__lead,
.rules-school__intro p,
.rules-discipline__intro p,
.rules-card-system__note p,
.rules-general__intro p,
.rules-bus__content > p,
.rules-uniform__content > p{
  font-size:16px;
  line-height:1.7;
}

.rules-intro__lead,
.rules-school__intro p,
.rules-discipline__intro p,
.rules-card-system__note p,
.rules-general__intro p,
.rules-bus__content > p,
.rules-uniform__content > p{
  text-align:justify;
  text-justify:inter-word;
  hyphens:auto;
}

.rules-school__list b,
.rules-card-stage p,
.rules-card-policy li,
.rules-general__item p,
.rules-bus__list li,
.rules-uniform__content li,
.rules-discipline__principles p{
  font-size:14px !important;
  line-height:1.55;
}

.rules-kicker,
.rules-section-label,
.rules-card-stage small,
.rules-card-policy__head small,
.rules-discipline__principles small,
.rules-intro__media figcaption,
.rules-bus__media figcaption,
.rules-intro__pillars span{
  font-size:12px !important;
  line-height:1.42;
  letter-spacing:.12em;
}

.rules-bus__closing,
.rules-uniform__note{
  font-size:14px !important;
  line-height:1.6;
}

@media (max-width:640px){
  .rules-intro__lead,
  .rules-school__intro p,
  .rules-discipline__intro p,
  .rules-card-system__note p,
  .rules-general__intro p,
  .rules-bus__content > p,
  .rules-uniform__content > p{
    text-align:left;
    hyphens:none;
  }
}
