/* Minimal base — rebuild from here */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.5;
  font-family: system-ui, -apple-system, sans-serif;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

/* ——— Skeleton loader ——— */
.skeleton {
  background: linear-gradient(90deg, #e8e8e8 25%, #f2f2f2 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}

.skeleton--dark {
  background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Image with skeleton background until loaded */
.img-skeleton {
  position: relative;
  background: linear-gradient(90deg, #e8e8e8 25%, #f2f2f2 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.img-skeleton img {
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.img-skeleton.is-loaded {
  background: none;
  animation: none;
}

.img-skeleton.is-loaded img {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .skeleton,
  .skeleton--dark,
  .img-skeleton {
    animation: none !important;
  }
}

/* Skip link — a11y */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  padding: 12px 24px;
  background: #0e2357;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .age-contests__track {
    animation: none !important;
  }
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

a, button, summary, [role="button"] {
  touch-action: manipulation;
}

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

.wrap {
  width: 100%;
  max-width: 1630px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

.wrap--narrow {
  max-width: 1400px;
}

/* ——— Header ——— */
#header {
  background: #fff;
  padding: 15px 0;
}

#header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

#header .logo {
  flex-shrink: 0;
}

#header .logo a {
  display: block;
  text-decoration: none;
}

#header .logo img {
  display: block;
  height: 60px;
  width: auto;
}

#header .nav-main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

#header .nav-main a {
  text-decoration: none;
  color: #1a1a1a;
  font-size: 15px;
  padding: 8px 4px;
  border-radius: 6px;
  transition: color 0.2s;
}

#header .nav-main a:hover {
  color: #0e2357;
}

#header .nav-main a:focus-visible {
  outline: 2px solid #0e2357;
  outline-offset: 2px;
}

#header .header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* ——— Burger ——— */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #1a1a1a;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.burger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.is-active span:nth-child(2) {
  opacity: 0;
}

.burger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav actions — hidden on desktop, shown inside mobile panel */
.nav-main__actions {
  display: none;
}

/* ——— Mobile overlay ——— */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s;
}

.mobile-overlay.is-visible {
  display: block;
  opacity: 1;
}

body.menu-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  /* Hide desktop actions */
  #header .header-actions {
    display: none;
  }

  /* Slide-in panel */
  #header .nav-main {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex-direction: column;
    justify-content: flex-start;
    padding: 24px;
    gap: 0;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  }

  #header .nav-main.is-open {
    transform: translateX(0);
  }

  #header .nav-main a {
    display: block;
    width: 100%;
    padding: 14px 0;
    font-size: 17px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
  }

  #header .nav-main .menu {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
  }

  #header .nav-main .menu li {
    width: 100%;
  }

  #header .nav-main .menu li a {
    display: block;
    width: 100%;
    padding: 14px 0;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
  }

  /* Actions inside panel */
  .nav-main__actions {
    display: flex;
    flex-direction: row;
    gap: 12px;
    width: 100%;
    margin-top: auto;
    padding-top: 24px;
    padding-bottom: 24px;
    border-top: 1px solid #eee;
  }

  #header .nav-main .nav-main__actions .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    font-size: 15px;
    text-align: center;
    white-space: nowrap;
    border-bottom: none;
  }

  #header .nav-main .nav-main__actions .btn-reg {
    color: #fff;
  }

  .nav-main__actions .header-user {
    font-size: 0.95rem;
    color: #1a1a1a;
    padding: 10px 0;
  }

  #header .wrap {
    flex-wrap: nowrap;
  }

  #header .logo {
    flex: 1;
  }
}

#header .btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

#header .btn-login {
  background: #fff;
  border: 1px solid #d0d0d0;
  color: #1a1a1a;
}

#header .btn-login:hover {
  border-color: #0e2357;
  color: #0e2357;
}

#header .btn-login:focus-visible {
  outline: 2px solid #0e2357;
  outline-offset: 2px;
}
#header .header-user {
  font-size: 0.95rem;
  color: #1a1a1a;
}
#header .header-user-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  transition: background 0.15s ease;
}
#header .header-user-link:hover {
  background: #f0f2f7;
}
#header .header-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #e6ecff;
  flex-shrink: 0;
}
#header .btn-logout {
  background: transparent;
  border: 1px solid #d0d0d0;
  color: #1a1a1a;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
}
#header .btn-logout:hover {
  border-color: #0e2357;
  color: #0e2357;
}

#header .btn-reg {
  background: #e85c3a;
  border: 1px solid #e85c3a;
  color: #fff;
}

#header .btn-reg:hover {
  background: #d94e2d;
  border-color: #d94e2d;
}

#header .btn-reg:focus-visible {
  outline: 2px solid #e85c3a;
  outline-offset: 2px;
}

header .wrap,
footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

main {
  min-height: 50vh;
}

/* ——— Hero (home) ——— */
.hero {
  padding-bottom: 0;
}

.hero__wrap {
  padding-left: 15px;
  padding-right: 15px;
}

.hero__inner {
  background: #0e2357;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  max-width: 1630px;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 58%;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #1a3068 25%, #2a4078 50%, #1a3068 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  z-index: -1;
}

.hero__content {
  width: 100%;
  padding: 48px 54px 56px 30px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero__content::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(14, 35, 87, 0.95) 0%, rgba(14, 35, 87, 0.4) 45%, transparent 100%);
  z-index: -1;
}

.hero__title {
  margin: 0;
  font-size: 42px;
  line-height: 1.2;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.hero__text-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hero__text {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: #fff;
}

.hero .btn-hero {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  background: #fff;
  color: #0e2357;
  border: 1px solid #0e2357;
  transition: background 0.2s ease-out, color 0.2s ease-out, transform 0.15s ease-out;
}

.hero .btn-hero:hover {
  background: #f0f0f0;
  color: #0e2357;
}

.hero .btn-hero:active {
  transform: scale(0.97);
}

.hero .btn-hero:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .hero__inner {
    min-height: 400px;
  }
  .hero__content {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 24px 40px;
  }
  .hero__title {
    font-size: 28px;
  }
  .hero__text {
    max-width: none;
  }
}

/* ——— Конкурсы по возрастам ——— */
.age-contests {
  padding: 56px 0 64px;
  background: #fff;
  overflow-x: hidden;
}

.age-contests__title {
  margin: 0 0 24px;
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
}

.age-contests__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.age-filter {
  padding: 10px 20px;
  border: none;
  border-radius: 999px;
  font-size: 15px;
  color: #1a1a1a;
  background: #e8e8e8;
  cursor: pointer;
  transition: background 0.2s ease-out, color 0.2s ease-out;
}

.age-filter:hover {
  background: #ddd;
}

.age-filter.is-active {
  background: #d0d0d0;
  color: #1a1a1a;
  font-weight: 600;
}

.age-filter:focus-visible {
  outline: 2px solid #0e2357;
  outline-offset: 2px;
}

.age-contests__row {
  padding: 24px 0;
  overflow-x: hidden;
  overflow-y: visible;
}

.age-contests__row:last-child {
  margin-bottom: 0;
}

.age-contests__track {
  display: flex;
  width: max-content;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.age-contests__row--left .age-contests__track {
  animation-name: age-scroll-left;
  animation-duration: 90s;
}

.age-contests__row--right .age-contests__track {
  animation-name: age-scroll-right;
  animation-duration: 95s;
}

.age-contests__row:hover .age-contests__track {
  animation-play-state: paused;
}

@keyframes age-scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes age-scroll-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.age-contests__cards {
  display: flex;
  gap: 20px;
  padding: 0 30px;
  flex-shrink: 0;
}

.age-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 450px;
  min-width: 450px;
  height: 290px;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%) center / 200% 100% no-repeat;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  color: #fff;
  text-decoration: none;
  transition: box-shadow 0.2s ease-out, transform 0.2s ease-out;
  overflow: hidden;
  isolation: isolate;
}

.age-card[style*="background-image"] {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: normal;
}

.age-card[style*="background-image"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.6) 100%);
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
}

.age-card.is-img-loaded {
  animation: none;
}

.age-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.age-card__tag {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #1a1a1a;
  background: #fff;
}

.age-card__subject {
  font-size: 28px;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.age-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.age-card__tags span {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #1a1a1a;
  background: rgba(255, 255, 255, 0.85);
}

/* Swup — no transition animation */
.transition-main {
  opacity: 1;
}

/* Swup loading bar — top progress indicator */
.swup-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: #e85c3a;
  z-index: 9999;
  transition: width 0.2s ease-out, opacity 0.3s ease-out;
  pointer-events: none;
}

.swup-progress-bar.is-loading {
  width: 70%;
}

.swup-progress-bar.is-done {
  width: 100%;
  opacity: 0;
}

.is-leaving .transition-main {
  pointer-events: none;
}

/* ——— Партнёры и организаторы ——— */
.partners {
  padding: 80px 0;
  background: #e0e0e0;
}

.partners__title {
  margin: 0 0 16px;
  font-size: 42px;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
}

.partners__subtitle {
  margin: 0 0 48px;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  text-align: center;
}

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

.partners__card {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border-radius: 0;
  transition: transform 0.2s ease-out;
}

.partners__card:hover {
  transform: translateY(-4px);
}

.partners__card--lime {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 337' fill='none' preserveAspectRatio='none'%3E%3Cpath d='M0 20V316.56c0 11.343 9.423 16.415 20.757 15.986L428.757 321.086C439.501 320.679 448 311.852 448 301.101V33.399c0-10.79-8.559-19.635-19.344-19.99L20.656.011C9.36-.36 0 8.697 0 20Z' fill='url(%23a)'/%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' y1='17.28' x2='447.5' y2='313.41' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23ADD248'/%3E%3Cstop offset='1' stop-color='%23CDE55D'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E");
}

.partners__card--purple {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 335' fill='none' preserveAspectRatio='none'%3E%3Cpath d='M0 28.954V314.825c0 11.418 9.542 20.518 20.946 19.978L428.946 315.476C439.612 314.971 448 306.176 448 295.499V20c0-11.218-9.224-20.241-20.439-19.995L19.561 8.959C8.689 9.197 0 18.079 0 28.954Z' fill='url(%23a)'/%3E%3Cdefs%3E%3ClinearGradient id='a' x1='4.385' y1='26.732' x2='455.551' y2='308.964' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%238763FA'/%3E%3Cstop offset='1' stop-color='%23997AF7'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E");
}

.partners__card--gray {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 333' fill='none' preserveAspectRatio='none'%3E%3Cpath d='M0 20V313c0 11.046 8.954 20 20 20h408c11.046 0 20-8.954 20-20V20c0-11.046-8.954-20-20-20H20C8.954 0 0 8.954 0 20Z' fill='url(%23a)'/%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' y1='18.827' x2='433.548' y2='260.226' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23E8E2EA'/%3E%3Cstop offset='1' stop-color='%23F2EEF5'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E");
}

.partners__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2a2a2a;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.partners__name {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a1a;
}

.partners__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #333;
  margin-top: auto;
}

.partners__card--purple .partners__text {
  color: #1a1a1a;
}

.partners__logos {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.partners__logos-label {
  font-size: 14px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.partners__logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
}

.partners__logos-row img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(0.5);
  transition: filter 0.2s ease-out, opacity 0.3s ease-out;
}

.partners__logos-row img:not(.is-loaded) {
  opacity: 0;
}

.partners__logos-row img.is-loaded {
  opacity: 0.5;
}

.partners__logos-row img:hover {
  filter: grayscale(0) opacity(1);
}

@media (max-width: 900px) {
  .partners__title {
    font-size: 32px;
  }

  .partners__cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .partners__card {
    min-height: auto;
  }

  .partners__logos-row {
    gap: 24px;
  }

  .partners__logos-row img {
    height: 40px;
  }
}

/* ——— Benefits ——— */
.benefits {
  padding: 80px 0;
  background: #fff;
}

.benefits__grid {
  display: grid;
  grid-template-columns: 6fr 4fr;
  gap: 64px;
  align-items: start;
}

.benefits__title {
  margin: 0 0 16px;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
  color: #1a1a1a;
}

.benefits__emoji {
  display: inline-block;
  vertical-align: middle;
  margin-top: -4px;
}

.benefits__subtitle {
  margin: 0 0 32px;
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

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

.benefits__list li {
  padding: 20px 0;
  font-size: 17px;
  line-height: 1.5;
  color: #1a1a1a;
  border-bottom: 1px solid #e0e0e0;
  transition: padding-left 0.2s ease-out;
}

.benefits__list li:hover {
  padding-left: 8px;
}

.benefits__list li:first-child {
  border-top: 1px solid #e0e0e0;
}

.benefits__right-title {
  margin: 0 0 24px;
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
}

.benefits__audiences {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 32px;
}

.benefits__audience {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  font-size: 16px;
  line-height: 1.4;
  color: #1a1a1a;
}

.benefits__audience + .benefits__audience {
  border-top: 1px solid #e0e0e0;
}

.benefits__audience-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.benefits__cta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.benefits__price {
  width: 100%;
  padding: 14px 32px;
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  border: 1px solid #d0d0d0;
  border-radius: 50px;
  text-align: center;
}

.benefits__btn {
  display: block;
  width: 100%;
  padding: 16px 48px;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: #d4885a;
  border-radius: 50px;
  transition: background 0.2s, transform 0.15s;
}

.benefits__btn:hover {
  background: #c47a4c;
}

.benefits__btn:active {
  transform: scale(0.97);
}

.benefits__btn:focus-visible {
  outline: 2px solid #d4885a;
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .benefits__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .benefits__title {
    font-size: 32px;
  }

  .benefits__cta {
    align-items: stretch;
    text-align: center;
  }

  .benefits__price {
    text-align: center;
  }

  .benefits__btn {
    text-align: center;
  }
}

/* ——— FAQ ——— */
.faq {
  padding: 80px 0;
  background: #fff;
}

.faq__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.faq__title {
  margin: 0 0 32px;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
  color: #1a1a1a;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq__item {
  background: #f5f5f5;
  border-radius: 16px;
  overflow: hidden;
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 16px;
  color: #1a1a1a;
  cursor: pointer;
  list-style: none;
  border-radius: 16px;
  transition: background 0.2s ease-out;
}

.faq__question:hover {
  background: rgba(0, 0, 0, 0.03);
}

.faq__question:focus-visible {
  outline: 2px solid #0e2357;
  outline-offset: -2px;
  border-radius: 16px;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: #1a1a1a;
  border-radius: 1px;
}

.faq__icon::before {
  width: 16px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.faq__icon::after {
  width: 2px;
  height: 16px;
  transform: translate(-50%, -50%);
  transition: transform 0.3s;
}

.faq__item[open] .faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq__answer {
  padding: 0 24px 20px;
  animation: faq-open 0.25s ease-out;
}

@keyframes faq-open {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq__answer p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #555;
}

.faq__right {
  position: sticky;
  top: 32px;
}

.faq__image {
  border-radius: 20px;
  overflow: hidden;
  border: 4px solid #0e2357;
}

.faq__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: opacity 0.4s;
}

.faq__image img.is-fading {
  opacity: 0;
}

@media (max-width: 900px) {
  .faq__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .faq__title {
    font-size: 32px;
  }

  .faq__right {
    position: static;
  }
}

/* ——— Footer ——— */
.site-footer {
  background: #0e2357;
  color: #fff;
}

/* A11y: screen-reader only labels */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* CTA block */
.footer-cta {
  padding: 64px 0 0;
}

.footer-cta__inner {
  width: 100%;
  background: #fff;
  border-radius: 20px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.footer-cta__title {
  margin: 0 0 20px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a1a;
}

.footer-cta__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #555;
}

.footer-cta__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-cta__field {
  position: relative;
}

.footer-cta__form input {
  width: 100%;
  padding: 16px 20px;
  font-size: 15px;
  border: 1px solid #d0d0d0;
  border-radius: 12px;
  background: #fff;
  color: #1a1a1a;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.footer-cta__form input:focus {
  outline: none;
  border-color: #0e2357;
  box-shadow: 0 0 0 3px rgba(14, 35, 87, 0.1);
}

.footer-cta__form input::placeholder {
  color: #999;
}

.footer-cta__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.footer-cta__btn {
  align-self: flex-start;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  background: #d4885a;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.footer-cta__btn:hover {
  background: #c47a4c;
}

.footer-cta__btn:active {
  transform: scale(0.97);
}

.footer-cta__btn:focus-visible {
  outline: 2px solid #0e2357;
  outline-offset: 2px;
}

.footer-cta__agree {
  margin-top: 4px;
}

.footer-cta__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.5;
  color: #777;
}

.footer-cta__checkbox input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: #0e2357;
}

.footer-cta__checkbox a {
  color: #0e2357;
  text-decoration: underline;
}

/* Footer columns */
.footer-main {
  padding: 40px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-cols {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 8px;
}

.footer-col__title {
  margin: 0 0 20px;
  padding-bottom: 16px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-col__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col__list a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col__list a:hover {
  color: #fff;
}

.footer-col__list a:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
  border-radius: 2px;
}

.footer-phone {
  font-size: 17px !important;
  font-weight: 700;
  color: #fff !important;
  letter-spacing: 0.01em;
}

.footer-note {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.4);
}

/* Footer bottom */
.footer-bottom {
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom__row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-bottom__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.footer-bottom__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-bottom__question {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.footer-bottom__subtext {
  margin: 2px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom__subtext a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bottom__subtext a:hover {
  color: #fff;
}

.footer-bottom__address {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

/* Footer legal */
.footer-legal {
  padding: 20px 0 32px;
}

.footer-legal .wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal__left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-legal__left a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal__left a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.footer-legal__left span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}

.footer-legal__right p {
  margin: 0;
  max-width: 480px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.3);
  text-align: right;
}

/* Footer mobile */
@media (max-width: 900px) {
  .footer-cta__inner {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 32px;
  }

  .footer-cta__title {
    font-size: 28px;
  }

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

  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-bottom .wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-legal .wrap {
    flex-direction: column;
  }

  .footer-legal__right p {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .footer-cta__inner {
    padding: 24px 20px;
  }
}

/* ——— Страница регистрации ——— */
.registration-page,
.auth-page {
  padding: 48px 0 64px;
  min-height: 60vh;
}

.registration-container,
.auth-container {
  max-width: 560px;
  margin: 0 auto;
}

.registration-page h1,
.auth-page h1 {
  margin: 0 0 32px;
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
}

.auth-page .auth-description {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.5;
  color: #666;
}

.registration-form .form-group,
.auth-form .form-group {
  margin-bottom: 20px;
}

.registration-form label,
.auth-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

.registration-form input[type="text"],
.registration-form input[type="email"],
.registration-form input[type="tel"],
.registration-form input[type="number"],
.registration-form input[type="password"],
.registration-form select,
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.2s;
}

.registration-form input:focus,
.registration-form select:focus,
.auth-form input:focus {
  outline: none;
  border-color: #0e2357;
  box-shadow: 0 0 0 3px rgba(14, 35, 87, 0.1);
}

/* Password toggle */
.input-password-wrap {
  position: relative;
}

.input-password-wrap input {
  padding-right: 48px !important;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease-out;
}

.password-toggle:hover {
  color: #0e2357;
}

/* Submit button states */
.btn-submit:disabled,
.btn._big:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-submit:focus-visible,
.btn._big:focus-visible {
  outline: 2px solid #e85c3a;
  outline-offset: 2px;
}

.btn-submit:active,
.btn._big:active {
  transform: scale(0.97);
}

/* Auth footer separator */
.auth-footer__sep {
  margin: 0 4px;
  color: #ccc;
}

.registration-form .form-group.error input,
.registration-form .form-group.error select {
  border-color: #c62828;
}

.registration-form .error-message-field {
  margin-top: 6px;
  font-size: 13px;
  color: #c62828;
}

.registration-form .status-selection {
  margin-bottom: 28px;
}

.registration-form .status-options {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}

.registration-form .status-option {
  flex: 1;
  min-width: 140px;
  cursor: pointer;
}

.registration-form .status-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.registration-form .status-card {
  padding: 20px 16px;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}

.registration-form .status-option input:checked + .status-card,
.registration-form .status-option:hover .status-card {
  border-color: #0e2357;
  background: rgba(14, 35, 87, 0.04);
}

.registration-form .status-icon {
  margin-bottom: 8px;
  color: #0e2357;
  display: flex;
  justify-content: center;
}

.registration-form .status-option input:checked + .status-card .status-icon {
  color: #0e2357;
}

.registration-form .status-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
}

.registration-form .status-description {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
}

.registration-form .form-section h3 {
  margin: 24px 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}

.registration-form .checkbox-group {
  margin-bottom: 16px;
}

.registration-form .checkbox-group .checkbox-label,
.auth-form .checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
}

.registration-form .checkbox-group .checkbox-label.agreement-line {
  flex-wrap: nowrap;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .registration-form .checkbox-group .checkbox-label.agreement-line {
    white-space: normal;
  }
}

.registration-form .checkbox-label input,
.auth-form .checkbox-label input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.registration-form .checkbox-label a,
.auth-form .checkbox-label a {
  color: #0e2357;
  text-decoration: underline;
}

.registration-form .btn._big,
.auth-form .btn-submit {
  width: 100%;
  padding: 14px 24px;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: #e85c3a;
  color: #fff;
  transition: background 0.2s;
}

.registration-form .btn._big:hover,
.auth-form .btn-submit:hover {
  background: #d94e2d;
}

.registration-page .success-message,
.registration-page .error-message,
.auth-page .auth-message {
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.registration-page .success-message {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #1b5e20;
}

.registration-page .error-message,
.auth-page .auth-message.success {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #1b5e20;
}

.auth-page .auth-message.error {
  background: #ffebee;
  border: 1px solid #ef9a9a;
  color: #b71c1c;
}

.registration-page .success-message h2,
.registration-page .error-message h2,
.auth-page .auth-message h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.registration-page .success-message p,
.registration-page .error-message p,
.auth-page .auth-message p {
  margin: 0;
  font-size: 15px;
}

.auth-page .auth-footer {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #eee;
  text-align: center;
  font-size: 14px;
  color: #666;
}

.auth-page .auth-footer a {
  color: #0e2357;
  text-decoration: none;
}

.auth-page .auth-footer a:hover {
  text-decoration: underline;
}

/* Registration: sections hidden until status selected */
.form-section.student-fields,
.form-section.teacher-fields,
.form-section.parent-fields {
  display: none;
}
.form-section.show {
  display: block;
}

/* ——— Хлебные крошки ——— */
.breadcrumbs {
  margin-bottom: 24px;
  padding: 16px 0;
  font-size: 14px;
  color: #999;
}

.breadcrumbs a {
  color: #777;
  text-decoration: none;
  transition: color 0.2s ease-out;
}

.breadcrumbs a:hover {
  color: #0e2357;
}

.breadcrumbs__sep {
  margin: 0 8px;
  color: #ccc;
}

.breadcrumbs__current {
  color: #1a1a1a;
}

/* ——— Контентные страницы ——— */
.content.page,
.content.single {
  padding: 48px 0 80px;
  min-height: 60vh;
}

.content.page h1,
.content.single h1 {
  margin: 0 0 24px;
  font-size: 36px;
  font-weight: 700;
  color: #1a1a1a;
}

.content.page article,
.content.single article {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

.content.page article p,
.content.single article p {
  margin: 0 0 16px;
}

.content.page article h2,
.content.single article h2 {
  margin: 32px 0 16px;
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
}

.content.page article h3,
.content.single article h3 {
  margin: 24px 0 12px;
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
}

.content.page article ul,
.content.page article ol,
.content.single article ul,
.content.single article ol {
  margin: 0 0 16px;
  padding-left: 24px;
  list-style: revert;
}

.content.page article a,
.content.single article a {
  color: #0e2357;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 768px) {
  .content.page h1,
  .content.single h1 {
    font-size: 28px;
  }
}

/* ——— Разводящая страница документов ——— */
.page-docs {
  padding: 48px 0 80px;
  min-height: 60vh;
}

.page-docs__title {
  margin: 0 0 16px;
  font-size: 36px;
  font-weight: 700;
  color: #1a1a1a;
}

.page-docs__content {
  margin-bottom: 32px;
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

.page-docs__nav {
  margin-top: 8px;
}

.page-docs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.page-docs__item {
  border-bottom: 1px solid #eee;
}

.page-docs__item:first-child {
  border-top: 1px solid #eee;
}

.page-docs__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 8px;
  text-decoration: none;
  color: #1a1a1a;
  transition: padding-left 0.2s ease-out, color 0.2s ease-out;
}

.page-docs__link:hover {
  padding-left: 16px;
  color: #0e2357;
}

.page-docs__link:focus-visible {
  outline: 2px solid #0e2357;
  outline-offset: -2px;
  border-radius: 8px;
}

.page-docs__icon {
  flex-shrink: 0;
  color: #ccc;
  transition: color 0.2s ease-out;
}

.page-docs__link:hover .page-docs__icon {
  color: #0e2357;
}

.page-docs__link-text {
  font-size: 17px;
  font-weight: 500;
}

.page-docs__arrow {
  flex-shrink: 0;
  color: #ccc;
  transition: color 0.2s ease-out, transform 0.2s ease-out;
}

.page-docs__link:hover .page-docs__arrow {
  color: #0e2357;
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .page-docs__title {
    font-size: 28px;
  }

  .page-docs__link-text {
    font-size: 16px;
  }
}

/* ——— Theme toggle button (скрыто) ——— */
.theme-toggle { display: none !important; }
.theme-toggle--disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #e0e4eb;
  background: transparent;
  color: #1a1a1a;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  padding: 0;
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: #f0f2f7;
  border-color: #c8d1e0;
}
.theme-toggle .theme-icon--moon { display: inline-block; }
.theme-toggle .theme-icon--sun  { display: none; }
html[data-theme="dark"] .theme-toggle .theme-icon--moon { display: none; }
html[data-theme="dark"] .theme-toggle .theme-icon--sun  { display: inline-block; }

/* ——— Dark theme ——— */
html[data-theme="dark"] {
  color-scheme: dark;
}
html[data-theme="dark"] body {
  background: #0b0f1a;
  color: #e6eaf2;
}
html[data-theme="dark"] a { color: #9ec1ff; }
html[data-theme="dark"] a:hover { color: #c9dcff; }

html[data-theme="dark"] #header {
  background: #0f1524;
  border-bottom: 1px solid #1c2339;
}
html[data-theme="dark"] #header .header-user,
html[data-theme="dark"] #header .header-user-link { color: #e6eaf2; }
html[data-theme="dark"] #header .header-user-link:hover { background: #1c2339; }
html[data-theme="dark"] #header .btn-logout {
  background: transparent;
  border-color: #2a3246;
  color: #e6eaf2;
}
html[data-theme="dark"] #header .btn-login {
  color: #e6eaf2;
}
html[data-theme="dark"] #header .btn-reg {
  background: #e85c3a;
  color: #fff;
}
html[data-theme="dark"] .burger span { background: #e6eaf2; }
html[data-theme="dark"] .theme-toggle {
  border-color: #2a3246;
  color: #e6eaf2;
}
html[data-theme="dark"] .theme-toggle:hover {
  background: #1c2339;
  border-color: #3a4560;
}
html[data-theme="dark"] .nav-main a { color: #e6eaf2; }

/* Заголовки и текст */
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4 { color: #f3f5fa; }

/* Секции с белыми фонами → тёмные поверхности */
html[data-theme="dark"] .partners,
html[data-theme="dark"] .age-contests,
html[data-theme="dark"] .faq,
html[data-theme="dark"] .why,
html[data-theme="dark"] .how,
html[data-theme="dark"] .page-docs,
html[data-theme="dark"] .page-static {
  background: #0b0f1a;
  color: #e6eaf2;
}

/* Партнёры — карточки */
html[data-theme="dark"] .partners__card {
  background: #141a2b;
  color: #e6eaf2;
  border: 1px solid #1c2339;
}
html[data-theme="dark"] .partners__card--lime { background: #243a1a; }
html[data-theme="dark"] .partners__card--purple { background: #2a1f3d; }
html[data-theme="dark"] .partners__card--gray { background: #1c2339; }
html[data-theme="dark"] .partners__subtitle,
html[data-theme="dark"] .partners__text { color: #b8bfd0; }

/* Карточки возрастов — фон картинка, только тегам подкрутить */
html[data-theme="dark"] .age-card__tag,
html[data-theme="dark"] .age-card__tags span { background: rgba(255,255,255,0.9); color: #0b0f1a; }
html[data-theme="dark"] .age-filter {
  background: #141a2b;
  color: #e6eaf2;
  border: 1px solid #2a3246;
}
html[data-theme="dark"] .age-filter.is-active {
  background: #e85c3a;
  color: #fff;
  border-color: #e85c3a;
}

/* FAQ */
html[data-theme="dark"] .faq__item {
  background: #141a2b;
  border: 1px solid #1c2339;
}
html[data-theme="dark"] .faq__q { color: #f3f5fa; }
html[data-theme="dark"] .faq__a { color: #b8bfd0; }

/* Формы */
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] input[type="password"],
html[data-theme="dark"] input[type="tel"],
html[data-theme="dark"] input[type="search"],
html[data-theme="dark"] input[type="number"],
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
  background: #141a2b;
  color: #e6eaf2;
  border-color: #2a3246;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color: #6b7487; }
html[data-theme="dark"] input:focus,
html[data-theme="dark"] textarea:focus,
html[data-theme="dark"] select:focus { border-color: #e85c3a; outline: none; }
html[data-theme="dark"] label { color: #b8bfd0; }

/* Footer */
html[data-theme="dark"] #footer,
html[data-theme="dark"] footer {
  background: #0f1524;
  color: #b8bfd0;
  border-top: 1px solid #1c2339;
}
html[data-theme="dark"] #footer a { color: #e6eaf2; }

/* Mobile nav panel */
html[data-theme="dark"] .nav-main {
  background: #0f1524;
}
html[data-theme="dark"] .nav-main__actions .header-user { color: #e6eaf2; }

/* Hero остаётся тёмно-синим — ок */
html[data-theme="dark"] .hero__inner { background: #142e6e; }

/* Docs */
html[data-theme="dark"] .page-docs__link {
  background: #141a2b;
  border: 1px solid #1c2339;
  color: #e6eaf2;
}
html[data-theme="dark"] .page-docs__link:hover { border-color: #e85c3a; }
html[data-theme="dark"] .page-docs__arrow { color: #6b7487; }

/* Skeleton-shimmer — оставить тёмный */
html[data-theme="dark"] .age-card:not(.is-img-loaded) {
  background: linear-gradient(90deg, #1c2339 25%, #2a3246 50%, #1c2339 75%) center / 200% 100% no-repeat;
}

/* Изображения — немного притушить */
html[data-theme="dark"] .age-card[style*="background-image"]::before {
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.7) 100%);
}

/* Выделения и блоки уведомлений */
html[data-theme="dark"] .cabinet__notice--ok,
html[data-theme="dark"] .notice-success { background: #102a1c; color: #b2e2c4; border-color: #1d4a31; }
html[data-theme="dark"] .cabinet__notice--err,
html[data-theme="dark"] .notice-error { background: #3a1515; color: #f0b8b8; border-color: #5a2020; }

