:root {
  --bg: #080c18;
  --bg-soft: #0d1425;
  --panel: #121d31;
  --panel-light: #192740;
  --gold: #f0cf85;
  --gold-light: #ffe8ad;
  --green: #25d477;
  --white: #f5f7fc;
  --muted: #9aa8bd;
  --border: rgba(240, 207, 133, .16);
  --radius: 22px;
  --transition: .3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--white);
  font-family: "Manrope", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

[hidden] {
  display: none !important;
}

.container {
  width: min(1180px, 90%);
  margin: 0 auto;
}

.background-glow {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 8% 5%, rgba(0, 145, 75, .15), transparent 36%),
    radial-gradient(ellipse at 90% 45%, rgba(240, 207, 133, .08), transparent 38%),
    radial-gradient(ellipse at 45% 100%, rgba(0, 95, 65, .12), transparent 42%),
    var(--bg);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* YUKLANISH */

.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, rgba(0, 115, 60, .18), transparent 48%),
    #050a10;
  transition: opacity .6s ease, visibility .6s ease;
}

.loader.hide {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  width: min(280px, 80%);
  text-align: center;
}

.loader-logo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 28px;
  filter: drop-shadow(0 0 25px rgba(240, 207, 133, .3));
  animation: logoFloat 2.5s ease-in-out infinite;
}

.loader-line {
  height: 4px;
  background: rgba(255, 255, 255, .12);
  border-radius: 20px;
  overflow: hidden;
}

.loader-line span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--gold));
  transition: width .15s linear;
}

.loader-content p {
  color: var(--gold);
  font-size: 12px;
  margin-top: 10px;
  letter-spacing: 2px;
}

/* SCROLL PROGRESS */

.scroll-progress {
  position: fixed;
  z-index: 1001;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

/* HEADER */

.header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(8, 12, 24, .88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(240, 207, 133, .65);
  box-shadow: 0 0 20px rgba(240, 207, 133, .15);
  transition: transform var(--transition);
}

.brand:hover .brand-logo {
  transform: rotate(-5deg) scale(1.06);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.brand-text strong {
  font-size: 15px;
  letter-spacing: 1.5px;
  color: var(--gold-light);
}

.brand-text small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1.7px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 3px;
}

.nav a {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  padding: 9px 10px;
  border-radius: 30px;
  transition: var(--transition);
}

.nav a:hover,
.nav a.active {
  color: #10150f;
  background: var(--gold);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  width: 19px;
  height: 2px;
  background: var(--gold);
  border-radius: 4px;
  transition: var(--transition);
}

.menu-toggle.open span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

/* UMUMIY BO‘LIMLAR */

.section {
  padding: 100px 0;
  position: relative;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 45px;
}

.section-kicker {
  display: block;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 13px;
}

.section-heading h2 {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.8px;
  margin-bottom: 15px;
}

.section-heading h2 span,
.creator-info h2 span {
  color: var(--gold);
}

.section-heading > p {
  color: var(--muted);
  font-size: 15px;
  max-width: 570px;
}

.panel {
  background: linear-gradient(145deg, rgba(25, 39, 64, .94), rgba(13, 21, 37, .96));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 55px rgba(0, 0, 0, .16);
}

/* HERO */

.hero {
  min-height: 690px;
  display: flex;
  align-items: center;
  padding: 85px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 65px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.1px;
  margin-bottom: 25px;
}

.eyebrow span {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 13px var(--green);
}

.hero h1 {
  font-size: clamp(43px, 6.6vw, 82px);
  line-height: .99;
  letter-spacing: -4px;
  font-weight: 800;
}

.hero h1 span {
  display: block;
  color: var(--gold);
  text-shadow: 0 0 35px rgba(240, 207, 133, .12);
}

.hero-subtitle {
  margin-top: 25px;
  font-size: 17px;
  color: var(--muted);
}

.hero-subtitle strong {
  color: var(--gold-light);
}

.hero-description {
  max-width: 500px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
  margin: 18px 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 800;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #1a160d;
  box-shadow: 0 10px 30px rgba(240, 207, 133, .15);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(240, 207, 133, .25);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--white);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-4px);
}

.hero-stats {
  display: flex;
  gap: 42px;
  margin-top: 42px;
}

.hero-stats div {
  display: flex;
  flex-direction: column;
}

.hero-stats strong {
  color: var(--gold);
  font-size: 27px;
  line-height: 1.2;
}

.hero-stats span {
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}

.hero-emblem {
  position: relative;
  text-align: center;
  padding: 22px;
}

.emblem-frame {
  width: min(100%, 430px);
  aspect-ratio: 1;
  margin: auto;
  border-radius: 50%;
  padding: 10px;
  background: linear-gradient(135deg, rgba(240, 207, 133, .65), rgba(0, 115, 65, .5), rgba(240, 207, 133, .5));
  box-shadow: 0 0 70px rgba(0, 140, 75, .13), 0 0 50px rgba(240, 207, 133, .1);
  animation: emblemFloat 5s ease-in-out infinite;
}

.emblem-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #15130c;
}

.emblem-caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 20px;
}

.emblem-caption span {
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 4px;
  font-size: 16px;
}

.emblem-caption small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 2px;
}

.floating-label {
  position: absolute;
  padding: 10px 16px;
  background: rgba(18, 29, 49, .92);
  border: 1px solid var(--border);
  border-radius: 30px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
  animation: labelFloat 4s ease-in-out infinite;
}

.label-one {
  top: 15%;
  left: -5px;
}

.label-two {
  right: -5px;
  bottom: 24%;
  animation-delay: 1s;
}

/* MARQUEE */

.marquee {
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .015);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 42px;
  animation: marqueeMove 35s linear infinite;
}

.marquee-track span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
  white-space: nowrap;
}

/* ABOUT */

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 20px;
}

.about-main {
  padding: 38px;
  position: relative;
  overflow: hidden;
}

.about-main::after {
  content: "02";
  position: absolute;
  right: 20px;
  bottom: -60px;
  color: rgba(240, 207, 133, .045);
  font-size: 220px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.about-number {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
}

.about-main h3 {
  max-width: 450px;
  font-size: clamp(30px, 4vw, 45px);
  line-height: 1.12;
  margin: 22px 0;
}

.about-main p {
  max-width: 600px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 15px;
}

.about-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 35px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.about-cards {
  display: grid;
  gap: 14px;
}

.info-card {
  padding: 22px 25px;
  transition: var(--transition);
}

.info-card:hover {
  transform: translateX(6px);
  border-color: rgba(240, 207, 133, .45);
}

.info-icon {
  color: var(--gold);
  font-size: 22px;
}

.info-card h3 {
  font-size: 17px;
  margin: 7px 0;
}

.info-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

/* KURATOR */

.curator-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 42px;
  align-items: center;
  padding: 30px;
}

.photo-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #172b2a, #19243a);
  border: 1px solid var(--border);
}

.curator-photo {
  height: 390px;
  border-radius: 18px;
}

.curator-photo img,
.creator-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.photo-fallback {
  display: none;
  position: absolute;
  inset: 0;
  place-items: center;
  color: var(--gold);
  font-size: 65px;
  font-weight: 800;
  background: radial-gradient(circle, rgba(0, 120, 65, .25), transparent 65%), #101a2c;
}

.curator-info h3 {
  font-size: clamp(27px, 4vw, 40px);
  margin: 5px 0;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.gold-line {
  width: 65px;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  margin: 22px 0;
  border-radius: 10px;
}

.curator-info > p:not(.muted) {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 25px;
}

.detail-grid div {
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255, 255, 255, .02);
}

.detail-grid small {
  display: block;
  color: var(--gold);
  font-size: 10px;
  margin-bottom: 5px;
}

.detail-grid strong {
  font-size: 12px;
}

/* STUDENTS */

.student-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 25px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(450px, 100%);
  padding: 0 18px;
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
}

.search-box span {
  color: var(--gold);
  font-size: 25px;
}

.search-box input {
  width: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--white);
  font-size: 13px;
}

.search-box input::placeholder {
  color: #748198;
}

.result-count {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

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

.student-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #17243a, #101a2c);
  border: 1px solid var(--border);
  border-radius: 17px;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.student-card:hover {
  transform: translateY(-8px);
  border-color: rgba(240, 207, 133, .55);
  box-shadow: 0 18px 35px rgba(0, 0, 0, .25);
}

.student-photo {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: #1b2a3b;
}

.student-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .6s ease;
}

.student-card:hover .student-photo img {
  transform: scale(1.07);
}

.student-placeholder {
  display: none;
  position: absolute;
  inset: 0;
  place-items: center;
  background: radial-gradient(circle, rgba(0, 135, 75, .3), transparent 65%), #172338;
  color: var(--gold);
  font-size: 48px;
  font-weight: 800;
}

.student-number {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  border-radius: 20px;
  color: #17140d;
  background: var(--gold);
  font-size: 10px;
  font-weight: 800;
}

.student-info {
  padding: 16px;
}

.student-info h3 {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 5px;
}

.student-info p {
  color: var(--muted);
  font-size: 11px;
}

.student-open {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
}

.empty-message {
  padding: 35px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 15px;
}

/* FAOLLAR */

.active-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.active-card {
  text-align: center;
  padding: 22px 12px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--panel);
  transition: var(--transition);
}

.active-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
}

.active-avatar {
  width: 85px;
  height: 85px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  overflow: hidden;
  background: var(--panel-light);
}

.active-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.active-card h3 {
  font-size: 12px;
  margin-bottom: 5px;
}

.active-card p {
  color: var(--gold);
  font-size: 10px;
}

/* REYTING */

.ranking-panel {
  padding: 30px;
}

.ranking-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.ranking-heading h3 {
  font-size: 22px;
}

.ranking-tag {
  color: var(--gold);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 8px 13px;
  font-size: 10px;
  font-weight: 800;
}

.ranking-list {
  display: grid;
  gap: 15px;
  margin-top: 20px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 38px 1fr 65px;
  align-items: center;
  gap: 15px;
}

.rank-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(240, 207, 133, .1);
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.ranking-item:nth-child(1) .rank-number {
  color: #17140d;
  background: var(--gold);
}

.ranking-person {
  min-width: 0;
}

.ranking-person strong {
  display: block;
  font-size: 12px;
  margin-bottom: 7px;
}

.ranking-bar {
  height: 5px;
  background: rgba(255, 255, 255, .08);
  border-radius: 10px;
  overflow: hidden;
}

.ranking-bar span {
  display: block;
  height: 100%;
  width: var(--score);
  background: linear-gradient(90deg, var(--green), var(--gold));
  border-radius: inherit;
}

.ranking-score {
  text-align: right;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

/* GALEREYA */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-item {
  position: relative;
  height: 260px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--panel);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 35px 16px 15px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .85));
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.gallery-placeholder {
  display: none;
  position: absolute;
  inset: 0;
  place-items: center;
  color: var(--gold);
  font-size: 35px;
  background: radial-gradient(circle, rgba(0, 135, 75, .25), transparent 65%), #172338;
}

/* PROJECTS */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project-card {
  padding: 24px;
  background: linear-gradient(145deg, #17243a, #101a2c);
  border: 1px solid var(--border);
  border-radius: 17px;
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(240, 207, 133, .55);
}

.project-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 14px;
  color: #17140d;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  font-size: 22px;
}

.project-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.project-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.project-card a {
  display: inline-block;
  margin-top: 18px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
}

/* CREATOR */

.creator-card {
  display: grid;
  grid-template-columns: 190px 1fr 130px;
  gap: 30px;
  align-items: center;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.creator-photo {
  width: 190px;
  height: 210px;
  border-radius: 17px;
}

.creator-info h2 {
  font-size: clamp(25px, 4vw, 39px);
  margin: 6px 0;
}

.creator-info > p:not(.muted) {
  max-width: 620px;
  color: var(--muted);
  font-size: 13px;
  margin-top: 14px;
}

.creator-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.creator-tags span {
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 30px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
}

.creator-emblem {
  width: 125px;
  height: 125px;
  object-fit: cover;
  border-radius: 50%;
  opacity: .9;
  filter: drop-shadow(0 0 18px rgba(240, 207, 133, .2));
}

/* FOOTER */

.footer {
  padding: 35px 0 20px;
  background: rgba(3, 7, 13, .6);
  border-top: 1px solid var(--border);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 25px;
}

.footer-top > p {
  color: var(--muted);
  font-size: 12px;
}

.back-top {
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: #77849a;
  font-size: 10px;
}

/* MODAL */

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.show {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(8px);
}

.modal-dialog,
.gallery-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--panel);
  animation: modalIn .25s ease;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 5;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--gold);
  background: #17243a;
  font-size: 24px;
}

.modal-close:hover {
  background: var(--gold);
  color: #111;
}

.modal-profile {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 25px;
  align-items: start;
}

.modal-profile-photo {
  height: 280px;
  overflow: hidden;
  position: relative;
  border-radius: 15px;
  background: var(--panel-light);
}

.modal-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.modal-profile h2 {
  font-size: 25px;
  line-height: 1.3;
  margin: 10px 0;
}

.modal-profile p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 10px;
}

.profile-detail {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.profile-detail small {
  display: block;
  color: var(--gold);
  font-size: 10px;
  margin-bottom: 4px;
}

.profile-detail strong {
  font-size: 12px;
}

.gallery-dialog {
  width: min(950px, 100%);
  text-align: center;
  overflow: visible;
}

.gallery-dialog img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 12px;
}

.gallery-dialog p {
  margin-top: 12px;
  color: var(--gold);
  font-size: 13px;
}

/* YUQORIGA */

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 300;
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--gold);
  color: #111;
  font-size: 21px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
}

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

/* ANIMATSIYALAR */

@keyframes emblemFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes logoFloat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes labelFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@keyframes marqueeMove {
  to { transform: translateX(-50%); }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .nav {
    gap: 0;
  }

  .nav a {
    padding: 8px 7px;
    font-size: 10px;
  }

  .hero-grid {
    gap: 35px;
  }

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

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

@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 12px 5%;
    background: #0b1322;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 13px 10px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
  }

  .nav a.active {
    color: var(--gold);
    background: transparent;
  }

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

  .curator-card {
    grid-template-columns: 250px 1fr;
  }

  .creator-card {
    grid-template-columns: 150px 1fr;
  }

  .creator-photo {
    width: 150px;
    height: 180px;
  }

  .creator-emblem {
    display: none;
  }
}

@media (max-width: 700px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    padding: 65px 0;
  }

  .hero-grid,
  .about-grid,
  .curator-card {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    letter-spacing: -2.5px;
  }

  .hero-emblem {
    width: min(100%, 440px);
    margin: 0 auto;
  }

  .emblem-frame {
    width: min(100%, 340px);
  }

  .about-main {
    padding: 27px;
  }

  .curator-card {
    gap: 25px;
    padding: 22px;
  }

  .curator-photo {
    height: 330px;
  }

  .students-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .student-photo {
    height: 220px;
  }

  .creator-card {
    grid-template-columns: 120px 1fr;
    padding: 22px;
  }

  .creator-photo {
    width: 120px;
    height: 150px;
  }

  .footer-top {
    flex-wrap: wrap;
  }

  .footer-top > p {
    width: 100%;
    order: 3;
  }
}

@media (max-width: 480px) {
  .container {
    width: 91%;
  }

  .header-inner {
    min-height: 72px;
  }

  .brand-logo {
    width: 49px;
    height: 49px;
  }

  .brand-text strong {
    font-size: 13px;
  }

  .brand-text small {
    font-size: 8px;
  }

  .hero h1 {
    font-size: 43px;
  }

  .hero-stats {
    gap: 25px;
  }

  .hero-stats strong {
    font-size: 23px;
  }

  .floating-label {
    font-size: 9px;
    padding: 8px 11px;
  }

  .label-one {
    left: -3px;
  }

  .label-two {
    right: -3px;
  }

  .student-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .students-grid,
  .active-grid,
  .gallery-grid,
  .projects-grid {
    gap: 10px;
  }

  .student-photo {
    height: 175px;
  }

  .student-info {
    padding: 11px;
  }

  .student-info h3 {
    font-size: 11px;
  }

  .student-info p {
    font-size: 10px;
  }

  .student-open {
    font-size: 9px;
  }

  .active-card {
    padding: 15px 8px;
  }

  .active-avatar {
    width: 68px;
    height: 68px;
  }

  .active-card h3 {
    font-size: 10px;
  }

  .gallery-item {
    height: 165px;
  }

  .ranking-panel {
    padding: 20px 14px;
  }

  .ranking-item {
    grid-template-columns: 30px 1fr 48px;
    gap: 9px;
  }

  .ranking-person strong {
    font-size: 10px;
  }

  .ranking-score {
    font-size: 11px;
  }

  .modal-dialog {
    padding: 22px 17px;
  }

  .modal-profile {
    grid-template-columns: 1fr;
  }

  .modal-profile-photo {
    height: 250px;
  }

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

  .creator-photo {
    width: 125px;
    height: 145px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .loader-logo {
    width: 120px;
    height: 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}