
:root{
  --cream:#fffaf1;
  --warm:#f7efe2;
  --terracotta:#e65324;
  --terracotta-dark:#c9441b;
  --teal:#083f4c;
  --blue:#217c98;
  --yellow:#f6c85f;
  --ink:#12333c;
  --muted:#5c7178;
  --green:#21a67a;
  --red:#d94635;
  --shadow:0 24px 60px rgba(8,63,76,.16);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}

body{
  margin:0;
  background:var(--warm);
  color:var(--ink);
  font-family:Inter,system-ui,sans-serif;
}

a{text-decoration:none;color:inherit}

.site{
  max-width:1280px;
  margin:24px auto;
  background:var(--cream);
  box-shadow:var(--shadow);
  overflow:hidden;
  border-radius:18px;
}

.container{
  width:min(1120px,calc(100% - 40px));
  margin:auto;
}

.serif{font-family:'Playfair Display',Georgia,serif}

.btn{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  padding:15px 22px;
  border-radius:10px;
  background:var(--terracotta);
  color:white;
  font-weight:900;
  transition:.2s;
  text-align:center;
  border:0;
  cursor:pointer;
  font-family:Inter,system-ui,sans-serif;
  font-size:14px;
}

.btn:hover{
  background:var(--terracotta-dark);
  transform:translateY(-2px);
}

.btn-outline{
  background:white;
  color:var(--teal);
  border:2px solid var(--teal);
}

.btn-outline:hover{
  background:var(--teal);
  color:white;
}

header{
  background:rgba(255,250,241,.95);
  border-bottom:1px solid rgba(8,63,76,.08);
}

.nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:22px 0;
}

.logo{
  line-height:.88;
  color:var(--teal);
  font-weight:900;
  font-size:31px;
}

.logo span{
  display:block;
  color:var(--terracotta);
  font-family:Inter,sans-serif;
  font-size:10px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
  margin-top:8px;
}

.back{
  font-weight:900;
  color:var(--teal);
}

.hero{
  background:linear-gradient(100deg,#fffaf1 0%,#fbefd7 50%,#cbeaf2 100%);
  padding:80px 0;
}

.eyebrow{
  color:var(--terracotta);
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.12em;
  margin-bottom:18px;
}

h1{
  font-size:64px;
  line-height:1;
  margin:0 0 24px;
  color:var(--teal);
  letter-spacing:-.04em;
  max-width:850px;
}

.hero p{
  font-size:19px;
  line-height:1.7;
  color:#42636c;
  margin:0 0 28px;
  max-width:720px;
}

.practice{
  padding:80px 0;
  scroll-margin-top:30px;
}

.topline{
  display:flex;
  justify-content:space-between;
  gap:24px;
  margin-bottom:30px;
  align-items:end;
}

.section-title{
  font-size:46px;
  line-height:1.05;
  color:var(--teal);
  margin:0;
}

.section-text{
  color:#526d75;
  line-height:1.7;
  font-size:17px;
  margin:10px 0 0;
  max-width:720px;
}

.overall{
  background:var(--teal);
  color:white;
  border-radius:18px;
  padding:20px 22px;
  min-width:230px;
}

.overall strong{
  display:block;
  color:var(--yellow);
  font-size:30px;
}

.bar,
.mini-progress,
.lesson-progress{
  height:12px;
  background:rgba(8,63,76,.12);
  border-radius:999px;
  overflow:hidden;
  margin-top:12px;
}

.bar span,
.mini-progress span,
.lesson-progress span{
  display:block;
  height:100%;
  background:var(--green);
  border-radius:999px;
}

.levels-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:26px;
}

.units-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:26px;
}

.card{
  background:white;
  border-radius:22px;
  padding:32px;
  box-shadow:0 16px 40px rgba(8,63,76,.10);
  border:1px solid rgba(8,63,76,.08);
  cursor:pointer;
  transition:.2s;
  position:relative;

  display:flex;
  flex-direction:column;
}

.card:hover{
  transform:translateY(-4px);
  box-shadow:0 22px 45px rgba(8,63,76,.14);
}

.card h2,
.card h3{
  color:var(--teal);
  font-size:28px;
  margin:0 0 14px;
}

.card p{
  color:#526d75;
  line-height:1.65;
  margin:0 0 24px;

  flex-grow:1;
}

.level-big{
  font-size:60px;
  font-weight:900;
  color:var(--terracotta);
  line-height:1;
  margin-bottom:18px;
  font-family:'Playfair Display',Georgia,serif;
}

.unit-icon{
  width:54px;
  height:54px;
  border-radius:16px;
  background:#fff0e8;
  color:var(--terracotta);
  display:grid;
  place-items:center;
  font-size:26px;
  font-weight:900;
  margin-bottom:18px;
}

.unit-status{
  position:absolute;
  top:20px;
  right:22px;
  font-size:24px;
}

.done .unit-icon{
  background:#e9fbf5;
  color:#11684e;
}

.card-footer{
  display:flex;
  justify-content:space-between;
  margin-top:12px;
  color:var(--muted);
  font-weight:800;
  font-size:13px;
}

.back-row{
  display:flex;
  justify-content:space-between;
  gap:14px;
  margin-bottom:28px;
  flex-wrap:wrap;
}

.reset-panel{
  background:white;
  border:1px solid rgba(8,63,76,.08);
  border-radius:18px;
  padding:20px;
  margin-bottom:28px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  box-shadow:0 12px 30px rgba(8,63,76,.06);
}

.reset-panel p{
  margin:0;
  color:#526d75;
  line-height:1.55;
  font-size:14px;
}

.lesson-shell{
  max-width:900px;
  margin:auto;
  background:white;
  border-radius:26px;
  box-shadow:0 24px 60px rgba(8,63,76,.14);
  overflow:hidden;
}

.lesson-top{
  padding:22px 26px;
  background:var(--teal);
}

.lesson-progress{
  background:rgba(255,255,255,.16);
  margin:0;
}

.lesson-progress span{
  background:var(--yellow);
}

.lesson-body{
  padding:34px;
}

.question-title{
  font-size:36px;
  margin:0 0 10px;
  color:var(--teal);
  line-height:1.08;
}

.question-sub{
  color:var(--muted);
  line-height:1.6;
  margin-bottom:24px;
}

.prompt{
  background:var(--cream);
  border:2px solid rgba(8,63,76,.08);
  border-radius:18px;
  padding:22px;
  font-size:30px;
  font-weight:900;
  text-align:center;
  color:var(--teal);
  margin-bottom:24px;
}

.answers{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.answer{
  background:white;
  border:2px solid rgba(8,63,76,.14);
  border-radius:16px;
  padding:18px;
  font-size:16px;
  font-weight:900;
  color:var(--teal);
  cursor:pointer;
  text-align:left;
  font-family:Inter,system-ui,sans-serif;
}

.answer:disabled{
  cursor:not-allowed;
}

.answer.selected{
  border-color:var(--blue);
  background:#eaf7fb;
}

.answer.correct{
  border-color:var(--green);
  background:#e9fbf5;
  color:#11684e;
}

.answer.wrong{
  border-color:var(--red);
  background:#fff0ee;
  color:#9d2d22;
}

.typing{
  width:100%;
  padding:18px;
  border-radius:16px;
  border:2px solid rgba(8,63,76,.14);
  font-size:19px;
  font-weight:800;
  color:var(--teal);
  font-family:Inter,system-ui,sans-serif;
}

.match-layout{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:28px;
  margin-top:28px;
}

.match-column-title{
  text-align:center;
  font-weight:900;
  padding:14px;
  border-radius:14px;
  margin-bottom:14px;
}

.pt-title{
  color:var(--terracotta);
  background:#fff0e8;
}

.en-title{
  color:var(--blue);
  background:#eaf7fb;
}

.match-column{
  display:grid;
  gap:12px;
}

.match-card{
  background:white;
  border:2px solid rgba(8,63,76,.14);
  border-radius:16px;
  padding:18px;
  font-weight:900;
  color:var(--teal);
  cursor:pointer;
  transition:.18s;
  display:flex;
  align-items:center;
  gap:14px;
}

.match-card::before{
  content:"";
  width:20px;
  height:20px;
  border:2px solid currentColor;
  border-radius:50%;
  opacity:.45;
  flex:0 0 auto;
}

.match-card:hover{
  transform:translateY(-2px);
}

.match-card.active{
  border-color:var(--terracotta);
  background:#fff0e8;
}

.match-card.done{
  border-color:var(--green);
  background:#e9fbf5;
  color:#11684e;
  cursor:default;
}

.match-card.wrong{
  border-color:var(--red);
  background:#fff0ee;
}

.feedback{
  margin-top:24px;
  border-radius:18px;
  padding:18px;
  display:none;
  font-weight:800;
  line-height:1.45;
}

.feedback.good{
  display:block;
  background:#e9fbf5;
  color:#11684e;
}

.feedback.bad{
  display:block;
  background:#fff0ee;
  color:#9d2d22;
}

.feedback.warning{
  display:block;
  background:#fff3d7;
  color:#7a4d00;
}

.lesson-bottom{
  padding:22px 34px 34px;
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:center;
}

.note{
  color:var(--muted);
  font-size:13px;
  font-weight:800;
}

.complete{
  text-align:center;
  padding:56px 34px;
}

.complete h2{
  font-size:44px;
  color:var(--teal);
  margin:0 0 12px;
}

.complete p{
  color:#526d75;
  line-height:1.65;
}

.hidden{
  display:none!important;
}

.beta-notice{
  padding-top:0;
}

.beta-box{
  background:linear-gradient(135deg,#fff,#fff3d7);
  border:2px solid rgba(8,63,76,.08);
  border-radius:22px;
  padding:36px;
  box-shadow:0 12px 30px rgba(8,63,76,.06);
}

.beta-box h2{
  margin:0 0 14px;
  font-size:38px;
  color:var(--teal);
}

.beta-box p{
  margin:0 0 18px;
  color:#587078;
  line-height:1.75;
  font-size:16px;
}

.beta-box p:last-child{
  margin-bottom:0;
}

footer{
  background:#072f3a;
  color:rgba(255,255,255,.72);
  padding:40px 0;
  text-align:center;
  font-size:13px;
}

footer a{
  color:white;
  font-weight:800;
}

@media(max-width:900px){
  .site{
    margin:0;
    border-radius:0;
  }

  h1{
    font-size:44px;
  }

  .section-title{
    font-size:36px;
  }

  .logo{
    font-size:24px;
  }

  .levels-grid,
  .units-grid{
    grid-template-columns:1fr 1fr;
  }

  .topline{
    display:block;
  }

  .overall{
    margin-top:20px;
  }
}

@media(max-width:650px){
  .container{
    width:min(100% - 28px,1120px);
  }

  .hero{
    padding:58px 0;
  }

  h1{
    font-size:40px;
  }

  .hero p{
    font-size:16px;
  }

  .levels-grid,
  .units-grid,
  .answers,
  .match-layout{
    grid-template-columns:1fr;
  }

  .lesson-body{
    padding:24px;
  }

  .lesson-bottom{
    display:block;
  }

  .lesson-bottom .btn{
    width:100%;
    margin-top:14px;
  }

  .btn{
    width:100%;
  }

  .nav{
    gap:18px;
  }

  .back{
    font-size:14px;
  }

  .reset-panel{
    display:block;
  }

  .reset-panel .btn{
    margin-top:16px;
  }

  .beta-box h2{
    font-size:31px;
  }
}
