/* Static design for "ТОП сервисов курсовых" */
:root{
  --bg: #fff7ed;
  --surface: #ffffff;
  --surface-2: #fff1df;
  --border: #ffd9b3;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #c2410c;
  --accent-2: #7c2d12;
  --success: #059669;
  --shadow: 0 14px 35px rgba(31, 41, 55, 0.08);
  --radius: 18px;
  --container: 1120px;
}

*{ box-sizing: border-box; }

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background: radial-gradient(1200px 600px at 15% 0%, rgba(194,65,12,0.08), transparent 60%),
              radial-gradient(900px 520px at 90% 10%, rgba(5,150,105,0.08), transparent 55%),
              var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a{ color: inherit; text-decoration: none; }

.container{
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.header{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,247,237,0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,217,179,0.85);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand{
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--accent);
  white-space: nowrap;
}

.nav{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a{
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  transition: 0.18s ease;
}

.nav a:hover{
  color: var(--accent);
  border-color: rgba(194,65,12,0.18);
  background: rgba(255,241,223,0.7);
}

.nav a.active{
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: rgba(0,0,0,0);
}

.main{
  padding: 22px 0 56px;
}

.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.kicker{
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  margin: 0 0 10px;
}

h1{
  font-size: clamp(2rem, 4vw, 3.0rem);
  line-height: 1.1;
  margin: 0 0 14px;
}

h2{
  margin: 0 0 10px;
  font-size: 1.55rem;
}

h3{
  margin: 0;
  font-size: 1.15rem;
}

.lead{
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.7;
}

.criteria{
  margin: 12px 0 0;
  padding-left: 20px;
}

.criteria li{
  line-height: 1.75;
  margin: 10px 0;
}

.section{
  margin-top: 18px;
}

.top5-header{
  margin-bottom: 14px;
  display: grid;
  gap: 8px;
}

.top5-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.rank-card{
  border-left: 6px solid #d1d5db;
  background: linear-gradient(180deg, rgba(255,241,223,0.4), rgba(255,255,255,0.96));
}

.rank-1{
  border-left-color: var(--success);
  background: linear-gradient(180deg, rgba(5,150,105,0.12), rgba(255,255,255,0.96));
}

.rank-top{
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.rank-badge{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #fff;
  background: rgba(194,65,12,0.15);
  border: 1px solid rgba(194,65,12,0.25);
}

.rank-1 .rank-badge{
  background: rgba(5,150,105,0.15);
  border-color: rgba(5,150,105,0.25);
}

.score{
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.rank-card p{
  margin: 0 0 12px;
  color: var(--text);
  line-height: 1.75;
}

.rank-points{
  margin: 0;
  padding-left: 20px;
}

.rank-points li{
  margin: 9px 0;
  line-height: 1.65;
  color: var(--muted);
}

.grid-links{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.link-list{
  margin: 0;
  padding-left: 18px;
}

.link-list li{
  margin: 10px 0;
}

.link-list a{
  color: var(--accent);
  border-bottom: 1px dashed rgba(194,65,12,0.35);
}

.link-list a:hover{
  border-bottom-color: rgba(194,65,12,0.85);
}

.reviews-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.review-quote{
  font-size: 1.02rem;
  margin: 0 0 10px;
  color: var(--text);
  line-height: 1.75;
}

.review-meta{
  margin: 0;
  color: var(--muted);
}

.faq-item h3{
  margin-bottom: 8px;
}

.faq-item p{
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.footer{
  padding: 24px 0 40px;
  border-top: 1px solid rgba(255,217,179,0.7);
  color: var(--muted);
}

.footer-inner{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer small{ color: var(--muted); }

@media (max-width: 900px){
  .grid-links, .reviews-grid{
    grid-template-columns: 1fr;
  }
  .header-inner{
    flex-direction: column;
    align-items: flex-start;
  }
  .nav{
    justify-content: flex-start;
  }
}

