:root {
  color-scheme: dark;
  --bg: #05070d;
  --bg-soft: #0b1020;
  --bg-card: rgba(12, 18, 34, 0.85);
  --accent: #7fd2ff;
  --accent-strong: #39a8ff;
  --text: #f4f7ff;
  --muted: #b5c2d9;
  --border: rgba(255, 255, 255, 0.12);
}

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

html {
  background: transparent;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", "Arial", sans-serif;
  background: transparent;
  color: var(--text);
  line-height: 1.6;
}

.site-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: -999;
  pointer-events: none;
  background: url("fon.png?v=20260209-15") center / cover no-repeat;
  background-attachment: scroll;
}

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

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

h1,
h2,
h3,
h4 {
  margin: 0 0 16px;
  line-height: 1.2;
}

h1,
.page-title,
.section-title,
.page-header h1 {
  text-shadow:
    0 0 1px rgba(10,20,40,0.9),
    0 0 2px rgba(10,20,40,0.6);
}

p {
  margin: 0 0 16px;
  color: var(--muted);
}

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

.activity-container {
  width: min(1400px, 94%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 10, 20, 0.1);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 0;
}

.logo img {
  height: 28px;
  filter: brightness(0) invert(1);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a,
header nav a,
header a:not(.logo) {
  text-shadow:
    0 0 1px rgba(10,20,40,0.9),
    0 0 2px rgba(10,20,40,0.6);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: transparent;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 20px;
}

.nav-link {
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 500;
  color: #fff;
  transition: background 0.2s ease, color 0.2s ease;
  text-shadow:
    0 0 1px rgba(10,20,40,0.9),
    0 0 2px rgba(10,20,40,0.6);
}

.nav-link:hover {
  background: rgba(127, 210, 255, 0.14);
}

.nav-link.active {
  color: var(--accent);
  background: rgba(127, 210, 255, 0.18);
  font-weight: 700;
}

.search-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
}

.search-trigger svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid var(--border);
}

.hero-content {
  padding: 80px 0;
  max-width: 680px;
  position: relative;
  display: inline-block;
  z-index: 1;
}

.hero-title {
  animation: heroTitleFade 0.9s ease-out both;
  max-width: 720px;
  line-height: 1.2;
  text-shadow:
    0 0 1px rgba(10,20,40,0.9),
    0 0 2px rgba(10,20,40,0.6);
}

.hero-section {
  position: relative;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      700px 260px at 40% 50%,
      rgba(6, 12, 25, 0.55) 0%,
      rgba(6, 12, 25, 0.25) 60%,
      rgba(6, 12, 25, 0) 100%
    );
}

@keyframes heroTitleFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 12px;
}

.page {
  padding: 64px 0 80px;
  background: transparent;
}

.privacy-section {
  padding: 60px 0 80px;
}

.page-title {
  font-size: 42px;
  margin-bottom: 28px;
}

.privacy-card {
  padding: 28px 32px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(12, 26, 54, 0.76);
  border: 1px solid rgba(140, 190, 255, 0.45);
  border-radius: 10px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(140, 190, 255, 0.08);
}

.privacy-card h2,
.privacy-card h3 {
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 20px;
}

.privacy-card p {
  margin-bottom: 14px;
}

.activity-section {
  position: relative;
  z-index: 0;
}

.activity-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      1200px 600px at 25% 45%,
      rgba(6, 12, 25, 0.78) 0%,
      rgba(6, 12, 25, 0.58) 35%,
      rgba(6, 12, 25, 0.32) 60%,
      rgba(6, 12, 25, 0.12) 85%,
      rgba(6, 12, 25, 0) 100%
    );
}

.activity-section > * {
  position: relative;
  z-index: 1;
}

.activity-section .container {
  padding-left: 16px;
  padding-right: 16px;
}

.card {
  background: rgba(12, 26, 54, 0.76);
  border: 1px solid rgba(140, 190, 255, 0.45);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(140, 190, 255, 0.08);
}

.glass-card {
  background: rgba(12, 26, 54, 0.76);
  border: 1px solid rgba(140, 190, 255, 0.45);
  border-radius: 10px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(140, 190, 255, 0.08);
}

.activity-card {
  position: relative;
  width: 100%;
  max-width: none;
  border-radius: 10px;
  padding: 28px;
  background: rgba(12, 26, 54, 0.76);
  border: 1px solid rgba(140, 190, 255, 0.45);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(140, 190, 255, 0.08);
}

.activity-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    rgba(6, 12, 25, 0.22) 0%,
    rgba(6, 12, 25, 0.14) 25%,
    rgba(6, 12, 25, 0.06) 45%,
    rgba(0, 0, 0, 0) 65%
  );
  pointer-events: none;
  z-index: 0;
}

.activity-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    rgba(120, 170, 255, 0.1) 0%,
    rgba(120, 170, 255, 0.05) 18%,
    rgba(0, 0, 0, 0) 40%
  );
  pointer-events: none;
}

.activity-card-inner {
  position: relative;
  z-index: 1;
  padding-top: 16px;
  padding-right: 16px;
  padding-bottom: 16px;
  padding-left: 8px;
}

.activity-card-top {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 24px;
}

.activity-card-media {
  display: block;
}

.activity-card-content {
  display: flex;
  flex-direction: column;
  color: rgba(255,255,255,0.94);
  margin-left: -10px;
  height: 100%;        /* важно */
}

.activity-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(120, 170, 255, 0.18);
  border: 1px solid rgba(120, 170, 255, 0.55);
  box-shadow:
    0 0 0 1px rgba(120, 170, 255, 0.15) inset,
    0 4px 10px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9fc2ff;
  flex-shrink: 0;
}

.activity-icon svg {
  width: 22px;
  height: 22px;
  vector-effect: non-scaling-stroke;
}

.activity-title {
  margin: 0;
  font-size: 22px;
}

.activity-card-content p,
.activity-short {
  margin: 12px 0 10px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
}

.activity-bullets {
  margin: 10px 0 14px 18px;
  color: var(--muted);
}

.activity-bullets li {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
}

.activity-bullets li::marker {
  color: #9fc2ff;
}

/* ===== Activity toggle chip button ===== */
.activity-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  margin-top: auto;

  padding: 7px 14px;
  border-radius: 999px;

  border: 1px solid rgba(140,190,255,0.45);
  background: rgba(120,170,255,0.10);

  color: #9fc2ff;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;

  text-decoration: none;
  cursor: pointer;

  width: fit-content;      /* ключевое */
  max-width: fit-content;  /* ключевое */

  transition:
    background .25s ease,
    border-color .25s ease,
    color .25s ease,
    transform .2s ease;
}

/* стрелка */
.activity-toggle::after {
  content: "→";
  font-size: 14px;
  transition: transform .25s ease;
}

/* hover */
.activity-toggle:hover {
  background: rgba(120,170,255,0.18);
  border-color: rgba(160,210,255,0.75);
  color: #cfe4ff;
}

.activity-toggle:hover::after {
  transform: translateX(3px);
}

/* открыто */
.activity-card.open .activity-toggle::after {
  content: "↑";
}

.activity-card-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}

.activity-card.open .activity-card-details {
  max-height: 1200px;
  opacity: 1;
  margin-top: 18px;
}

.activity-card-details p {
  text-indent: 24px;
  margin: 0 0 16px;
}

.activity-card-details .list,
.activity-card-details ul {
  margin: 0 0 16px 18px;
  color: var(--muted);
}

.activity-card-details .list li,
.activity-card-details ul li {
  margin-bottom: 6px;
}

.activity-image {
  width: 100%;
  height: 280px;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

@media (min-width: 901px) {
  .activity-card-top {
    grid-template-columns: 42% 1fr;
  }

  /* Убираем градиенты секций на desktop, чтобы был виден глобальный фон */
  .hero-section::before {
    background: transparent !important;
    display: none;
  }

  /* Убираем непрозрачные фоны у секций на desktop */
  main,
  section,
  .page,
  .hero,
  .hero-section {
    background: transparent !important;
  }

  /* Убираем фоны у контейнеров на desktop */
  .container {
    background: transparent;
  }

  /* Убираем фоны у about-animate на desktop */
  .about-animate {
    background: transparent;
  }
}

.about-animate {
  animation: aboutFade 0.9s ease-out both;
}

@keyframes aboutFade {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.activity-animate {
  animation: activityFade 0.9s ease-out both;
}

@keyframes activityFade {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.about-animate p,
.activity-animate p,
.activity-animate li {
  color: #e7edf9;
}

.about-animate .card {
  position: relative;
  width: 100%;
  max-width: none;
  border-radius: 10px;
  padding: 28px;
  background: rgba(12, 26, 54, 0.76);
  border: 1px solid rgba(140, 190, 255, 0.45);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(140, 190, 255, 0.08);
  margin-bottom: 24px;
}

.about-animate .card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    rgba(6, 12, 25, 0.35) 0%,
    rgba(6, 12, 25, 0.2) 25%,
    rgba(6, 12, 25, 0.05) 45%,
    rgba(0, 0, 0, 0) 60%
  );
  pointer-events: none;
  z-index: 0;
}

.about-animate .card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    rgba(120, 170, 255, 0.1) 0%,
    rgba(120, 170, 255, 0.05) 18%,
    rgba(0, 0, 0, 0) 40%
  );
  pointer-events: none;
}

.about-animate .card > * {
  position: relative;
  z-index: 1;
}

.about-animate .card p {
  text-indent: 24px;
}

.about-text p {
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 18px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.list li {
  margin-bottom: 8px;
}

.contacts-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.map-wrapper {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(140, 190, 255, 0.45);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(140, 190, 255, 0.08);
}

.map-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6, 12, 25, 0.15);
  pointer-events: none;
  border-radius: inherit;
}

.map-card {
  background: rgba(12, 26, 54, 0.76);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(140, 190, 255, 0.45);
  min-height: 280px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(140, 190, 255, 0.08);
}

.map-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  min-height: 280px;
}

.contact-details p {
  color: var(--text);
}

.contact-details,
.contact-details.card {
  color: rgba(255, 255, 255, 0.9);
}

.contact-details strong,
.contact-details b,
.contact-details .contact-label,
.contacts-card strong,
.contacts-card b,
.contacts-card .label {
  color: #9fb7d9;
  font-weight: 500;
}

.contact-label {
  color: #9fb7d9;
  font-weight: 500;
}

.contact-value {
  color: rgba(255, 255, 255, 0.92);
}

.contact-details.card {
  height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 24px;
  gap: 8px;
  background: rgba(12, 26, 54, 0.76);
  border: 1px solid rgba(140, 190, 255, 0.45);
  border-radius: 10px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(140, 190, 255, 0.08);
}

.contact-details.card p {
  margin: 0;
}

.feedback-form {
  background: rgba(12, 26, 54, 0.76);
  border: 1px solid rgba(140, 190, 255, 0.45);
  border-radius: 10px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(140, 190, 255, 0.08);
  padding: 32px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.feedback-form label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  color: var(--text);
  gap: 8px;
}

.feedback-form input,
.feedback-form textarea {
  background: rgba(6, 18, 40, 0.94);
  border: 1px solid rgba(140, 190, 255, 0.35);
  border-radius: 10px;
  color: var(--text);
  padding: 12px;
  font-size: 14px;
  box-shadow: 0 0 0 1px rgba(140, 190, 255, 0.06);
}

.feedback-form textarea {
  resize: vertical;
}

.form-message {
  grid-column: 1 / -1;
}

.checkbox {
  display: block;
  font-weight: 500;
  margin-top: 0;
  white-space: nowrap;
}

.checkbox input {
  display: inline-block;
  vertical-align: baseline;
  margin-right: 6px;
}

.checkbox span {
  display: block;
  line-height: 1.35;
}

.checkbox-group {
  grid-column: 1 / -1;
  margin-bottom: 16px;
}

.feedback-form label.checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 14px;
}

.feedback-form label.checkbox input {
  margin: 0;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

@media (max-width: 768px) {
  .activity-card-top {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .activity-card-content {
    margin-left: 0;
    width: 100%;
    max-width: none;
  }

  .activity-bullets {
    margin-left: 0;
    padding-left: 18px;
  }

  .activity-bullets li {
    margin-left: 0;
  }

  .activity-card-media {
    margin-top: -4px;
  }

  .activity-image {
    height: 250px;
  }

  .activity-card {
    padding: 20px;
  }

  .activity-card::before {
    background: none;
  }

  .activity-card-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .activity-card-details {
    padding-right: 4px;
  }

  .activity-card-details p {
    line-height: 1.65;
    text-indent: 0;
    hyphens: auto;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .feedback-form label.checkbox {
    font-size: 12px;
    gap: 6px;
  }

  .feedback-form label.checkbox input {
    width: 14px;
    height: 14px;
  }

  /* карточка как в деятельности */
  .about-animate .card {
    background: rgba(12, 26, 54, 0.76);
    border: 1px solid rgba(140, 190, 255, 0.45);
    border-radius: 10px;
    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.35),
      0 0 0 1px rgba(140, 190, 255, 0.08);
    padding: 20px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  /* текст не рвётся */
  .about-animate .card p {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 16px;
    line-height: 1.65;
    text-indent: 0;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    text-align: left;
    box-sizing: border-box;
  }

  .about-animate .card p:last-child {
    margin-bottom: 0;
  }

  .about-text p {
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
    text-align: left;
    max-width: none;
  }

  /* mobile */
  .activity-toggle {
    padding: 9px 16px;
    font-size: 16px;
  }
}

.btn {
  margin-top: 20px;
  background: var(--accent-strong);
  color: #041423;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.btn:hover {
  filter: brightness(1.08);
}

.form-status {
  margin-top: 12px;
  color: var(--muted);
  min-height: 20px;
}

.form-status.error {
  color: #ff9aa9;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(12, 26, 54, 0.76);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(140, 190, 255, 0.45);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(140, 190, 255, 0.08);
}

.data-table th,
.data-table td {
  padding: 6px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  width: 40%;
  color: #d5def0;
  font-weight: 600;
}

.data-table tr:last-child th,
.data-table tr:last-child td {
  border-bottom: none;
}

.site-footer {
  position: relative;
  border-top: 1px solid var(--border);
  background: transparent;
  padding: 40px 0 60px;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5,10,20,0.28) 0%,
    rgba(5,10,20,0.58) 35%,
    rgba(5,10,20,0.85) 65%,
    rgba(5,10,20,0.96) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.site-footer > * {
  position: relative;
  z-index: 1;
}

.site-footer h4,
.site-footer .footer-title {
  color: #EAF2FF;
  font-weight: 600;
}

.site-footer a {
  color: #CFE0FF;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.site-footer a:hover {
  color: var(--accent);
  opacity: 1;
}

.site-footer p,
.site-footer li,
.site-footer span {
  color: #B8C7E6;
}

.site-footer .contacts,
.site-footer .contacts a {
  color: #EAF2FF;
  font-weight: 500;
}

.site-footer .footer-copy,
.site-footer .copyright {
  color: rgba(220, 230, 255, 0.6);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.site-footer .footer-copy span,
.site-footer .copyright span {
  color: inherit;
}

.site-footer .container {
  width: min(1200px, 100%);
  padding: 0 32px 0 120px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 32px;
  row-gap: 24px;
  justify-items: start;
}

.footer-grid > div:first-child {
  padding-left: 20px;
}

.footer-grid h4 {
  margin-bottom: 12px;
}

.footer-grid a {
  display: block;
  margin-bottom: 8px;
}

.footer-copy {
  margin: 48px auto 0;
  font-size: 14px;
  text-align: center;
  width: min(1200px, 100%);
  padding: 0 32px;
  display: block;
}

.search-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 13, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(12px);
  z-index: 9999;
  max-width: 760px;
  width: calc(100% - 32px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.cookie-content {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: 10px;
  background: rgba(12, 26, 54, 0.76);
  border: 1px solid rgba(140, 190, 255, 0.45);
  backdrop-filter: blur(10px);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(140, 190, 255, 0.08);
}

.cookie-text {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
}

.cookie-text a {
  color: #9fc2ff;
  text-decoration: none;
}

.cookie-text a:hover {
  text-decoration: underline;
}

.cookie-btn {
  background: rgba(120, 170, 255, 0.18);
  border: 1px solid rgba(120, 170, 255, 0.45);
  color: #9fc2ff;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.cookie-btn:hover {
  background: rgba(120, 170, 255, 0.28);
}

@media (max-width: 640px) {
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-btn {
    align-self: flex-end;
  }
}

.search-modal.open {
  display: flex;
}

.search-dialog {
  width: min(640px, 100%);
  background: rgba(12, 26, 54, 0.76);
  border: 1px solid rgba(140, 190, 255, 0.45);
  border-radius: 10px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(140, 190, 255, 0.08);
  padding: 24px;
}

.search-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.search-close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

#searchInput {
  width: 100%;
  background: #0b1224;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 12px;
  margin-bottom: 16px;
}

#searchResults {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 280px;
  overflow-y: auto;
}

#searchResults li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

#searchResults li:last-child {
  border-bottom: none;
}

#searchResults a {
  color: var(--accent);
  font-weight: 600;
}

#searchResults p {
  margin-top: 6px;
  font-size: 14px;
}

@media (max-width: 900px) {
  .header-inner {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 12px;
    position: relative;
  }

  .nav-toggle {
    display: inline-flex;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 0 16px;
    z-index: 50;
    background: rgba(16, 32, 64, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(140, 190, 255, 0.35);
    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.35),
      0 0 0 1px rgba(140, 190, 255, 0.08);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav .nav-link,
  .site-nav .search-trigger {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

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

  .contacts-layout {
    grid-template-columns: 1fr;
  }

  .site-footer .container {
    padding: 0 24px;
  }

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

@media (max-width: 600px) {
  .logo {
    width: auto;
    display: flex;
    justify-content: center;
    margin: 0 auto;
  }

  .logo img {
    height: 32px;
    margin: 4px auto 2px;
  }

  .site-nav {
    width: 100%;
    justify-content: center;
    gap: 10px 16px;
    text-align: center;
  }

  .nav-link {
    padding: 8px 10px;
  }

  .search-trigger {
    width: 40px;
    height: 40px;
  }

  .site-footer .container {
    padding: 0 20px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 16px;
  }

  .footer-grid > div {
    font-size: 13px;
    text-align: left;
    padding-left: 24px;
  }

  .footer-grid > div h4 {
    font-size: 14px;
  }

  .site-footer .footer-copy {
    font-size: 15px;
  }

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

  .activity-title {
    font-size: 20px;
  }
}

@media (max-width: 900px) {
  .activity-card-top {
    align-items: center;
  }
}
