:root {
  --bg: #050716;
  --bg-elevated: #0b0f24;
  --bg-muted: #080c1c;
  --primary: #2f7cf6;
  --primary-soft: rgba(47, 124, 246, 0.2);
  --accent-green: #35c98b;
  --accent-red: #ff4b6b;
  --text: #f9fbff;
  --text-soft: #a7b2d9;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #050716;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 7, 22, 0.98);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo__mark {
  width: 32px;
  height: 32px;
  border-radius: 14px;
  background: radial-gradient(circle at 20% 20%, #6fa3ff, #2f7cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 18px;
}

.logo__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo__title {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.08em;
}

.logo__subtitle {
  font-size: 11px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

.nav__link {
  color: var(--text-soft);
  padding: 6px 0;
  position: relative;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, #2f7cf6, #35c98b);
  transition: width 0.2s ease;
}

.nav__link:hover {
  color: var(--text);
}

.nav__link:hover::after {
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #3f8cff, #35c98b);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.08s ease, box-shadow 0.08s ease,
    filter 0.1s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

.btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.header__burger {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 7, 22, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 0;
}

.header__burger span {
  width: 16px;
  height: 2px;
  border-radius: 99px;
  background: #fff;
}

.header__cta {
  font-size: 13px;
  padding-inline: 16px;
}

.hero {
  padding: 40px 0 36px;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: stretch;
  padding: 24px 24px 26px;
  border-radius: 20px;
  background: radial-gradient(circle at top left, #131b36, #050716);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.65);
}

.hero__title {
  font-size: 34px;
  line-height: 1.15;
  margin: 0 0 14px;
}

.hero__title span {
  background: linear-gradient(135deg, #4e90ff, #35c98b);
  -webkit-background-clip: text;
  color: transparent;
}

.hero__subtitle {
  margin: 0 0 26px;
  max-width: 520px;
  color: var(--text-soft);
  font-size: 15px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.stat-card {
  min-width: 150px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(7, 11, 30, 0.96);
  border: 1px solid rgba(110, 153, 255, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.stat-card:nth-child(2) {
  border-color: rgba(123, 238, 186, 0.55);
}

.stat-card:nth-child(3) {
  border-color: rgba(255, 143, 165, 0.6);
}

.stat-card__value {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 2px;
}

.stat-card__label {
  font-size: 12px;
  color: var(--text-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.card-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 360px;
}

.card-visual {
  border-radius: 18px;
  padding: 14px 16px 16px;
  color: #fff;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-visual--standard {
  background: radial-gradient(circle at top left, #3f7bff, #21409b);
}

.card-visual--school {
  background: radial-gradient(circle at top left, #32c58b, #178b5c);
}

.card-visual--pension {
  background: radial-gradient(circle at top left, #f65a7d, #9b274c);
}

.card-visual__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.95;
}

.card-visual__number {
  font-size: 17px;
  letter-spacing: 0.22em;
  margin-top: 4px;
}

.card-visual__holder {
  font-size: 12px;
  color: rgba(249, 251, 255, 0.85);
}

.card-stack {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 18px;
  width: 100%;
}

.card {
  border-radius: 26px;
  padding: 18px 18px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.65);
  max-width: 260px;
  flex: 1 1 0;
}

.card--blue {
  background: linear-gradient(145deg, #4377ff, #2f7cf6);
}

.card--green {
  background: linear-gradient(145deg, #3fd59a, #1eaf76);
}

.card--red {
  background: linear-gradient(145deg, #ff4b6b, #e6377e);
}

.card__label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.9;
  margin-bottom: 6px;
}

.card__number {
  margin-top: auto;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.card__brand {
  font-weight: 700;
  font-size: 17px;
  text-align: right;
  letter-spacing: 0.18em;
}

.hero__badge {
  position: absolute;
  right: 0;
  bottom: -8px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(5, 7, 22, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  text-align: left;
  color: var(--text-soft);
  backdrop-filter: blur(14px);
}

.section {
  padding: 44px 0;
}

.section--muted {
  background: radial-gradient(circle at top, #101529, #050716);
}

.section__inner {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.section__header h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.section__header p {
  margin: 0;
  color: var(--text-soft);
  max-width: 520px;
  font-size: 15px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature {
  padding: 18px 18px 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    145deg,
    rgba(14, 20, 48, 0.9),
    rgba(5, 7, 22, 0.98)
  );
  border: 1px solid var(--border-subtle);
}

.feature__icon {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature__icon--blue {
  background: var(--primary-soft);
  color: #9cc2ff;
}

.feature__icon--green {
  background: rgba(53, 201, 139, 0.16);
  color: #b8f3d7;
}

.feature__icon--red {
  background: rgba(255, 75, 107, 0.18);
  color: #ffc1cf;
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.feature p {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card-type {
  padding: 18px 18px 16px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, #151b33, #050716);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-type__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 10px;
}

.card-type__badge--blue {
  background: rgba(47, 124, 246, 0.16);
  color: #9bbfff;
}

.card-type__badge--green {
  background: rgba(53, 201, 139, 0.16);
  color: #b3f0d3;
}

.card-type__badge--red {
  background: rgba(255, 75, 107, 0.16);
  color: #ffbfd0;
}

.card-type__text {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--text-soft);
}

.card-type__list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  font-size: 13px;
  color: var(--text-soft);
}

.step {
  padding: 18px 18px 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    145deg,
    rgba(14, 20, 48, 0.9),
    rgba(5, 7, 22, 0.98)
  );
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.step__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.step h3 {
  margin: 0;
  font-size: 16px;
}

.step p {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
}

.apply-form {
  max-width: 640px;
  padding: 22px 22px 20px;
  border-radius: var(--radius-lg);
  background: rgba(6, 9, 26, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.apply-form__row {
  display: flex;
  gap: 14px;
}

.apply-form__field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.apply-form__field label {
  font-size: 13px;
  color: var(--text-soft);
}

.apply-form__field input,
.apply-form__field select,
.apply-form__field textarea {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(4, 7, 22, 0.96);
  color: var(--text);
  padding: 8px 10px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.apply-form__field input::placeholder,
.apply-form__field textarea::placeholder {
  color: rgba(167, 178, 217, 0.65);
}

.apply-form__field input:focus,
.apply-form__field select:focus,
.apply-form__field textarea:focus {
  border-color: rgba(110, 153, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(110, 153, 255, 0.3);
}

.apply-form__checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-soft);
}

.apply-form__checkbox input {
  width: 14px;
  height: 14px;
}

.apply-form__note {
  margin: 0;
  font-size: 11px;
  color: var(--text-soft);
}

.apply-form__buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ======= Панель администратора ======= */
.admin-section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-login {
  max-width: 360px;
}

.admin-login__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
}

.admin-login__desc {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--text-soft);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(7, 10, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.login-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 75, 107, 0.15);
  border: 1px solid rgba(255, 75, 107, 0.3);
  color: #ff8a9e;
  font-size: 13px;
}

.applications-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.applications-header__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-badge {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(53, 201, 139, 0.15);
  border: 1px solid rgba(53, 201, 139, 0.3);
  color: #7beeba;
  font-size: 12px;
  font-weight: 500;
}

/* ======= Список заявок ======= */
.applications-section {
  /* margin-top removed - handled by admin-section */
}

.applications-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.applications-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.applications-empty {
  font-size: 14px;
  color: var(--text-soft);
  margin: 0;
}

.application-card {
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: rgba(7, 10, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.15s ease;
}

.application-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.application-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.application-card__badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}

.application-card__badge--standard {
  background: rgba(47, 124, 246, 0.18);
  color: #9bbfff;
}

.application-card__badge--school {
  background: rgba(53, 201, 139, 0.18);
  color: #b3f0d3;
}

.application-card__badge--pension {
  background: rgba(255, 75, 107, 0.18);
  color: #ffbfd0;
}

.application-card__date {
  font-size: 12px;
  color: var(--text-soft);
}

.application-card__body {
  margin-bottom: 14px;
}

.application-card__info {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 14px;
}

.application-card__info strong {
  color: var(--text);
}

.application-card__info span {
  color: var(--text-soft);
}

.application-card__comment {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--text-soft);
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border-left: 2px solid rgba(47, 124, 246, 0.5);
}

.application-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn--small {
  padding: 6px 14px;
  font-size: 12px;
}

.btn--danger {
  background: linear-gradient(135deg, #ff4b6b, #d93658);
  box-shadow: 0 8px 20px rgba(255, 75, 107, 0.25);
}

.btn--danger:hover {
  filter: brightness(1.08);
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border-radius: var(--radius-md);
  background: rgba(7, 10, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 12px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-size: 14px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 6px 0 2px;
  font-size: 13px;
  color: var(--text-soft);
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px 0 22px;
  background: rgba(5, 7, 22, 0.98);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer__logo .logo__mark {
  width: 26px;
  height: 26px;
  border-radius: 11px;
  font-size: 15px;
}

.footer__copy {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--text-soft);
}

.footer__links {
  display: flex;
  gap: 16px;
  font-size: 13px;
}

.footer__links a {
  color: var(--text-soft);
}

.footer__links a:hover {
  color: var(--text);
}

/* Desktop layout tweaks */
@media (min-width: 960px) {
  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    padding: 28px 32px 30px;
  }

  .hero__title {
    font-size: 40px;
  }

  .hero__visual {
    margin-top: 0;
    justify-content: flex-end;
  }

  .card-showcase {
    max-width: 320px;
  }

  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .card-stack {
    flex-direction: column;
    max-width: 100%;
  }

  .card {
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .hero__visual {
    order: -1;
    justify-content: center;
  }

  .card-stack {
    margin-left: 0;
  }
}

@media (max-width: 780px) {
  .header__btn {
    display: none;
  }

  .nav {
    position: fixed;
    inset: 56px 14px auto 14px;
    padding: 10px 14px;
    border-radius: 18px;
    background: rgba(5, 7, 22, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    transform-origin: top center;
    transform: scaleY(0.4);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.14s ease, opacity 0.14s ease;
  }

  .nav--open {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
  }

  .header__burger {
    display: flex;
  }

  .grid-3,
  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 38px;
  }

  .hero__title {
    font-size: 30px;
  }

  .hero__subtitle {
    font-size: 14px;
  }

  .stat-card {
    min-width: 140px;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .apply-form__row {
    flex-direction: column;
  }

  .application-card__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .application-card__info {
    flex-direction: column;
    gap: 4px;
  }

  .application-card__actions {
    flex-direction: column;
  }

  .application-card__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

