:root {
  --color-navy: #12305c;
  --color-navy-dark: #0a1f3d;
  --color-blue: #1d5fa3;
  --color-blue-light: #eaf2fb;
  --color-gold: #e8a422;
  --color-gold-dark: #c8850f;
  --color-text: #22303f;
  --color-text-muted: #5a6b7d;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f8fb;
  --color-border: #dde6ef;
  --shadow-sm: 0 2px 10px rgba(18, 48, 92, 0.08);
  --shadow-md: 0 8px 30px rgba(18, 48, 92, 0.12);
  --radius: 14px;
  --max-width: 1180px;
  --font-main: "Segoe UI", "PT Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-blue);
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.25;
  margin: 0 0 16px;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 14px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 74px 0;
  scroll-margin-top: 78px;
}

section:nth-of-type(even) {
  background: var(--color-bg-alt);
}

.section-head {
  max-width: 780px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-tag {
  display: inline-block;
  background: var(--color-blue-light);
  color: var(--color-blue);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-lead {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.2s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: nowrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-navy);
  white-space: nowrap;
}

.logo-badge {
  background: linear-gradient(135deg, var(--color-blue), var(--color-navy));
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.logo-sub {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  gap: 26px;
}

.main-nav a {
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
}

.main-nav a:hover {
  color: var(--color-blue);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-navy-dark);
  box-shadow: 0 6px 18px rgba(232, 164, 34, 0.35);
}

.btn-primary:hover {
  background: var(--color-gold-dark);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-navy);
  color: var(--color-navy);
}

.btn-outline:hover {
  background: var(--color-navy);
  color: #fff;
}

.btn-small {
  padding: 9px 18px;
  font-size: 0.85rem;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.burger span {
  width: 26px;
  height: 3px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: 0.25s ease;
}

/* HERO */
.hero {
  position: relative;
  background: linear-gradient(155deg, var(--color-navy-dark) 0%, var(--color-navy) 45%, var(--color-blue) 100%);
  color: #fff;
  overflow: hidden;
  padding: 84px 0 70px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 85% 20%, rgba(232, 164, 34, 0.25), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.08), transparent 40%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4vw, 3rem);
  margin-bottom: 20px;
}

.hero .accent {
  color: var(--color-gold);
}

.hero-lead {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.86);
  max-width: 620px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
}

.hero-stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--color-gold);
  margin-bottom: 4px;
}

.hero-stat span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
}

.hero-visual {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 26px;
  backdrop-filter: blur(4px);
}

.hero-visual h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.hero-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-list li:last-child {
  border-bottom: none;
}

.hero-list .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gold);
  flex-shrink: 0;
}

/* GRID CARDS */
.grid {
  display: grid;
  gap: 22px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--color-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* TOP SITES */
.sites-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.site-card {
  display: flex;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.site-card.featured {
  border: 2px solid var(--color-gold);
  background: linear-gradient(180deg, #fffbf1, #ffffff);
  grid-column: 1 / -1;
}

.site-rank {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--color-navy);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-card.featured .site-rank {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: var(--color-navy-dark);
}

.site-name {
  font-weight: 800;
  color: var(--color-navy);
  font-size: 1.1rem;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.site-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--color-blue-light);
  color: var(--color-blue);
  padding: 3px 10px;
  border-radius: 999px;
}

.site-card.featured .site-badge {
  background: var(--color-gold);
  color: var(--color-navy-dark);
}

.site-card p {
  color: var(--color-text-muted);
  font-size: 0.94rem;
  margin-bottom: 0;
}

/* PROFESSIONS */
.prof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.prof-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.prof-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold);
}

.prof-emoji {
  font-size: 2.1rem;
  margin-bottom: 10px;
}

.prof-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.prof-card p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* DISTRICTS */
.district-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.district-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.district-card h3 {
  font-size: 1.02rem;
  color: var(--color-navy);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.district-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* SALARY */
.salary-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.salary-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.salary-table th, .salary-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.92rem;
}

.salary-table th {
  background: var(--color-navy);
  color: #fff;
  font-weight: 700;
}

.salary-table tr:last-child td {
  border-bottom: none;
}

.salary-table tr:nth-child(even) td {
  background: var(--color-bg-alt);
}

.note-box {
  background: var(--color-blue-light);
  border-left: 4px solid var(--color-blue);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-top: 16px;
}

/* ADVANTAGES */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* GUIDE / STEPS */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.step-card p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* ARTICLE / SEO TEXT */
.article-block {
  max-width: 900px;
  margin: 0 auto;
}

.article-block h3 {
  margin-top: 32px;
}

.article-block p {
  color: var(--color-text);
  font-size: 1rem;
}

.article-block p.lead-text {
  font-size: 1.08rem;
  color: var(--color-text-muted);
}

/* FAQ */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-question .icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-blue-light);
  color: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.25s ease;
}

.faq-item.open .faq-question .icon {
  transform: rotate(45deg);
  background: var(--color-gold);
  color: var(--color-navy-dark);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
  color: var(--color-text-muted);
  font-size: 0.94rem;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 24px 22px;
}

/* EMPLOYERS */
.employers {
  background: linear-gradient(150deg, var(--color-navy-dark), var(--color-navy));
  color: #fff;
  border-radius: 24px;
  padding: 50px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.employers h2 {
  color: #fff;
}

.employers p {
  color: rgba(255, 255, 255, 0.85);
}

.employers ul {
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 20px;
}

.employers ul li {
  margin-bottom: 8px;
}

.employer-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
}

.employer-panel .big-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-gold);
  display: block;
  margin-bottom: 6px;
}

/* CTA BAND */
.cta-band {
  background: var(--color-gold);
  border-radius: 24px;
  padding: 50px;
  text-align: center;
}

.cta-band h2 {
  color: var(--color-navy-dark);
}

.cta-band p {
  color: rgba(10, 31, 61, 0.75);
  max-width: 600px;
  margin: 0 auto 26px;
}

/* FOOTER */
.site-footer {
  background: var(--color-navy-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 50px 0 26px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-grid h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid ul li {
  margin-bottom: 8px;
}

.footer-grid ul a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-grid ul a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 90;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .grid-3, .grid-4, .prof-grid, .district-grid, .adv-grid, .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .salary-wrap {
    grid-template-columns: 1fr;
  }

  .employers {
    grid-template-columns: 1fr;
    padding: 34px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 18px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-130%);
    transition: transform 0.25s ease;
  }

  .main-nav.open {
    transform: translateY(0);
  }

  .main-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
  }

  .burger {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .logo-sub {
    display: none;
  }

  .logo {
    font-size: 1.05rem;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .sites-list, .grid-3, .grid-4, .prof-grid, .district-grid, .adv-grid, .steps {
    grid-template-columns: 1fr;
  }

  section {
    padding: 54px 0;
  }

  .site-card {
    flex-direction: column;
  }

  .cta-band, .employers {
    padding: 30px 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
