:root {
  --ink: oklch(27% 0.035 273);
  --accent: #5b6cff;
  --font-sans: "Manrope", sans-serif;
  --font-display: "Unbounded", sans-serif;
  --max: min(96rem, 90vw);
  --gutter: clamp(1.25rem, 3vw, 3rem);
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: linear-gradient(#f3f6fd 0%, #e6ecf9 50%, #f6f8ff 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.font-display {
  font-family: var(--font-display);
}

.chrome-btn {
  color: #fff;
  background: linear-gradient(#8e9bff 0%, #5b6cff 55%, #4653e8 100%);
  box-shadow: rgba(91, 108, 255, 0.7) 0 10px 26px -10px, rgba(255, 255, 255, 0.7) 0 1px inset;
}

.chrome-text {
  display: inline-block;
  color: #4054e8;
  background: none;
  font-weight: 800;
  text-shadow: 0 0.08em 0.2em rgb(91 108 255 / 0.3);
}

.shine {
  border-radius: inherit;
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.shine::after {
  content: "";
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0) 100%);
  width: 40%;
  animation: shine 5s ease-in-out infinite;
  position: absolute;
  top: 0;
  bottom: 0;
}

@keyframes shine {
  0% { transform: translate(-160%) skew(-20deg); }
  60%, 100% { transform: translate(320%) skew(-20deg); }
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-xl);
  font-family: var(--font-display);
  font-size: 0.875rem;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.025em;
}

.nav {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--accent);
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  border-radius: var(--radius-xl);
  font-weight: 600;
  transition: filter 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  filter: brightness(1.1);
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  filter: none;
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.875rem 1.75rem;
}

.btn-ghost {
  border: 1px solid color-mix(in oklab, var(--ink) 15%, transparent);
  background: rgb(255 255 255 / 0.7);
  color: var(--ink);
  box-shadow: none;
}

.btn-ghost:hover {
  background: #fff;
  filter: none;
}

/* Hero */
.hero {
  display: grid;
  align-items: center;
  gap: 2.5rem;
  padding-top: 4rem;
  padding-bottom: 3rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
  background: rgb(255 255 255 / 0.6);
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  color: var(--accent);
}

.dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background: var(--accent);
}

.hero h1 {
  margin: 1.5rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.4vw + 0.8rem, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.hero-copy,
.hero-media {
  min-width: 0;
}

.lead {
  margin: 1.5rem 0 0;
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.625;
  color: color-mix(in oklab, var(--ink) 70%, transparent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2.5rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: color-mix(in oklab, var(--ink) 60%, transparent);
}

.hero-photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  max-height: 26rem;
  border-radius: var(--radius-2xl);
  object-fit: cover;
  outline: 1px solid rgb(0 0 0 / 0.05);
  outline-offset: -1px;
}

/* Sections */
.section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
  }
}

.section-head h2,
.block-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.muted {
  font-size: 0.875rem;
  color: color-mix(in oklab, var(--ink) 50%, transparent);
}

.about-grid,
.dates-grid,
.committee-grid,
.org-grid {
  display: grid;
  gap: 1.25rem;
}

/* Три карточки: без 2-колоночного режима, иначе третья «висит» одна */
.org-grid {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.org {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  height: 100%;
  min-width: 0;
  text-align: center;
  padding-top: 1.35rem;
  padding-bottom: 1.35rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.org:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -24px rgb(30 34 53 / 0.5);
}

.org-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 4rem;
}

.org-logo {
  display: block;
  width: auto;
  height: 3.5rem;
  max-width: 9rem;
  object-fit: contain;
}

.org-logo-wide {
  height: 2.4rem;
  max-width: 10rem;
}

.org-copy {
  min-width: 0;
  width: 100%;
}

.org-title {
  font-family: var(--font-display);
  font-size: 1rem;
}

.org-sub {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: color-mix(in oklab, var(--ink) 60%, transparent);
}

.card {
  border-radius: var(--radius-2xl);
  border: 1px solid color-mix(in oklab, var(--ink) 8%, transparent);
  background: rgb(255 255 255 / 0.8);
  padding: 1.5rem;
}

.card p,
.about-grid p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.625;
  color: color-mix(in oklab, var(--ink) 70%, transparent);
}

.date-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.date-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -24px rgb(30 34 53 / 0.5);
}

.num {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-xl);
  font-family: var(--font-display);
  font-size: 1.125rem;
}

.date-card h3 {
  margin: 1.25rem 0 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
}

.date-card p {
  margin: 0.5rem 0 0;
  color: color-mix(in oklab, var(--ink) 65%, transparent);
}

.label-accent {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
}

.committee-grid ul,
.members ul {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.committee-grid li,
.members li {
  font-size: 0.875rem;
  line-height: 1.625;
  color: color-mix(in oklab, var(--ink) 70%, transparent);
}

.committee-grid li + li,
.members li + li {
  margin-top: 0.5rem;
}

.members {
  margin-top: 1.25rem;
  border-radius: var(--radius-2xl);
  border: 1px solid color-mix(in oklab, var(--ink) 8%, transparent);
  background: rgb(255 255 255 / 0.7);
  padding: 1.5rem;
}

.members ul {
  display: grid;
  gap: 0.5rem 2rem;
}

/* Contact + application */
.split {
  display: grid;
  gap: 2.5rem;
}

.contact-intro {
  margin: 1rem 0 0;
  line-height: 1.625;
  color: color-mix(in oklab, var(--ink) 70%, transparent);
}

.meta-list {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.meta-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-xl);
  font-family: var(--font-display);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.meta-title {
  font-size: 0.875rem;
  font-weight: 600;
}

.meta-sub {
  font-size: 0.75rem;
  color: color-mix(in oklab, var(--ink) 55%, transparent);
}

.form {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.form-tight {
  margin-top: 1.25rem;
}

.field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: color-mix(in oklab, var(--ink) 70%, transparent);
}

.field input,
.field select,
.field textarea {
  margin-top: 0.375rem;
  width: 100%;
  border-radius: var(--radius-xl);
  border: 1px solid color-mix(in oklab, var(--ink) 15%, transparent);
  background: #fff;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  outline: none;
  resize: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent) 20%, transparent);
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.app-card {
  border-radius: var(--radius-3xl);
  border: 1px solid color-mix(in oklab, var(--ink) 8%, transparent);
  background: rgb(255 255 255 / 0.85);
  padding: 1.75rem;
  box-shadow: 0 30px 60px -40px rgb(30 34 53 / 0.6);
}

.app-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
}

.btn-block {
  width: 100%;
  padding: 0.875rem 1.5rem;
}

.legal {
  margin: 0;
  text-align: center;
  font-size: 11px;
  color: color-mix(in oklab, var(--ink) 45%, transparent);
}

.flash {
  border-radius: var(--radius-xl);
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
}

.flash-ok {
  background: color-mix(in oklab, #16a34a 12%, white);
  color: #166534;
}

.flash-err {
  background: color-mix(in oklab, #dc2626 12%, white);
  color: #991b1b;
}

/* Footer */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid color-mix(in oklab, var(--ink) 10%, transparent);
  padding: 2.5rem var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}

.footer .mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
}

.footer p {
  margin: 0;
  font-size: 0.75rem;
  color: color-mix(in oklab, var(--ink) 50%, transparent);
  text-align: center;
}

.footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-logos img {
  display: block;
  width: auto;
  height: 1.75rem;
  max-width: 5.5rem;
  object-fit: contain;
  opacity: 0.75;
  transition: opacity 0.15s ease;
}

.footer-logos img.org-logo-wide {
  height: 1.35rem;
  max-width: 6.5rem;
}

.footer-logos:hover img {
  opacity: 1;
}

/* Admin */
.admin-shell {
  min-height: 100vh;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 0;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.admin-grid {
  display: grid;
  gap: 1.25rem;
  padding: 2rem 0 4rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

th,
td {
  text-align: left;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 8%, transparent);
  vertical-align: top;
}

th {
  font-size: 0.75rem;
  font-weight: 600;
  color: color-mix(in oklab, var(--ink) 55%, transparent);
}

.empty {
  padding: 1rem 0;
  color: color-mix(in oklab, var(--ink) 55%, transparent);
  font-size: 0.875rem;
}

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.5rem;
}

.login-card {
  width: 100%;
  max-width: 26rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-on {
  background: color-mix(in oklab, #16a34a 14%, white);
  color: #166534;
}

.status-off {
  background: color-mix(in oklab, #d97706 16%, white);
  color: #92400e;
}

.row-2 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .members ul {
    grid-template-columns: 1fr 1fr;
  }

  .row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .lead {
    font-size: 1.125rem;
  }

  .about-grid,
  .dates-grid,
  .committee-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-head h2,
  .block-title {
    font-size: 1.875rem;
  }
}

@media (min-width: 700px) {
  .org-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .nav {
    display: flex;
    gap: 1.75rem;
  }

  .footer {
    flex-direction: row;
  }

  .footer p {
    text-align: right;
  }

  .dates-grid,
  .committee-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: repeat(12, 1fr);
  }

  .hero-photo {
    max-height: 42rem;
  }

  .hero-copy {
    grid-column: span 7;
  }

  .hero-media {
    grid-column: span 5;
  }

  .split {
    grid-template-columns: 1fr 1fr;
  }

  .members ul {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
