/* Mobile-first: крупные зоны нажатия, читаемая типографика, без горизонтального скролла */
:root {
  --bg: #0f1419;
  --surface: #1a222d;
  --text: #e8eef4;
  --muted: #9aa7b2;
  --accent: #3dd6c6;
  --accent-dim: #2a9d8f;
  --danger: #ff6b6b;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --tap: 48px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body.site {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  background: radial-gradient(1200px 600px at 10% -10%, #1e3a4a 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #143a2a 0%, transparent 50%), var(--bg);
  color: var(--text);
  line-height: 1.55;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #0b0f12;
  z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}

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

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

.site-header__inner,
.admin-header__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--accent);
}

.site-main {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
}

.site-footer {
  padding: 1.5rem 1rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer__note a {
  color: var(--accent);
}

.hero {
  padding: 0.5rem 0 1.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

h1 {
  font-size: clamp(1.55rem, 5vw, 2.1rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.lead {
  font-size: 1.05rem;
  color: #c9d5df;
  margin: 0 0 1.25rem;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 520px) {
  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  width: auto;
}

.button--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  border-color: transparent;
  color: #061016;
}

.button--ghost {
  background: transparent;
}

.button--small {
  min-height: 42px;
  font-size: 0.9rem;
}

.button--block {
  width: 100%;
}

.button:hover,
.button:focus-visible {
  filter: brightness(1.06);
}

.section {
  margin-top: 2rem;
}

.section--muted {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
}

.section--tight {
  margin-top: 1.25rem;
}

.section--narrow {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1rem;
}

.card__title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.card__title a {
  color: var(--text);
  text-decoration: none;
}

.card__title a:hover,
.card__title a:focus-visible {
  color: var(--accent);
}

.card__meta {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.card__text {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.card__link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.bullets {
  margin: 0;
  padding-left: 1.1rem;
}

.bullets li {
  margin-bottom: 0.5rem;
}

/* Vacancy + form */
.vacancy__head {
  margin-bottom: 1rem;
}

.prose {
  font-size: 0.98rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-intro,
.form-hint {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-row label {
  font-weight: 600;
  font-size: 0.92rem;
}

.req {
  color: var(--danger);
}

.form input[type="text"],
.form input[type="tel"],
.form input[type="email"],
.form textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0c1016;
  color: var(--text);
  font-size: 1rem;
}

.form textarea,
.input-textarea {
  min-height: 120px;
  resize: vertical;
}

.input-textarea {
  width: 100%;
  min-height: 88px;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0c1016;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}

.form-hint--tight {
  margin-top: 0.35rem;
  font-size: 0.85rem;
}

.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;
}

.scale-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.select-scale {
  min-height: var(--tap);
  padding: 0.4rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0c1016;
  color: var(--text);
  font-size: 1rem;
  max-width: 100%;
}

.scale-hint {
  color: var(--muted);
  font-size: 0.85rem;
}

.choice--checkbox {
  width: 100%;
  align-items: flex-start;
}

.choice--checkbox input {
  margin-top: 0.35rem;
}

.club-workshop {
  width: 100%;
}

.club-workshop__details {
  margin-top: 0.75rem;
}

.club-workshop__details.is-hidden {
  display: none;
}

.checklist-item--club_workshop {
  grid-column: 1 / -1;
}

.form input:focus-visible,
.form textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.checklist-title {
  margin: 1.5rem 0 0.25rem;
  font-size: 1.05rem;
}

.checklist-fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 0.75rem;
  margin: 0 0 1rem;
}

.checklist-legend {
  padding: 0 0.35rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.checklist-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checklist-item__label {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  color: #d5dee6;
}

.checklist-item__opts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font-size: 0.95rem;
  cursor: pointer;
}

.choice input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--accent);
}

.form-actions {
  margin-top: 0.5rem;
}

.privacy-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.75rem 0 0;
}

.thanks .lead {
  margin-bottom: 1.25rem;
}

.form-error {
  color: var(--danger);
  font-weight: 600;
}

/* Admin */
.admin-body {
  background: #0b0e12;
}

.admin-header {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 14, 18, 0.95);
}

.admin-main {
  max-width: 1000px;
}

.inline-form {
  display: inline;
}

.link-button {
  background: none;
  border: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  min-height: var(--tap);
}

.stat-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 520px;
}

.table th,
.table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.table--compact td {
  font-size: 0.88rem;
}

.table a {
  color: var(--accent);
}

.cell-clamp {
  max-width: 14rem;
  min-width: 8rem;
  font-size: 0.85rem;
  white-space: normal;
  word-break: break-word;
}

.dl {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0.35rem 1rem;
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.dl dt {
  color: var(--muted);
}

.dl dd {
  margin: 0;
}

.pre {
  background: #07090c;
  padding: 0.75rem;
  border-radius: 10px;
  overflow: auto;
  font-size: 0.82rem;
}

.back {
  margin: 0 0 0.75rem;
}

.back a {
  color: var(--accent);
  text-decoration: none;
}

/* Публичный сайт (не админка): светлая летняя тема */
body.site:not(.admin-body) {
  --bg: #e8f3f7;
  --surface: #ffffff;
  --text: #152a35;
  --muted: #5a6f7a;
  --accent: #0d9b9e;
  --accent-dim: #0a7d80;
  --danger: #c72c3b;
  --border: rgba(21, 42, 53, 0.12);
}

body.site:not(.admin-body) {
  background: linear-gradient(165deg, #d7ecf5 0%, #f2f9fb 38%, #fff6e8 100%);
  color: var(--text);
}

body.site:not(.admin-body) .site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

body.site:not(.admin-body) .brand {
  color: var(--text);
}

body.site:not(.admin-body) .brand--with-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

body.site:not(.admin-body) .brand__logo {
  display: block;
}

body.site:not(.admin-body) .brand__logo--round {
  width: 48px;
  height: 48px;
  max-width: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(21, 42, 53, 0.12);
  border: 1px solid var(--border);
}

body.site:not(.admin-body) .nav a {
  color: var(--muted);
}

body.site:not(.admin-body) .lead {
  color: #3d5663;
}

body.site:not(.admin-body) .site-footer {
  background: rgba(255, 255, 255, 0.35);
  border-top-color: var(--border);
}

body.site:not(.admin-body) .section--muted {
  background: rgba(13, 155, 158, 0.06);
  border-color: var(--border);
}

body.site:not(.admin-body) .form input[type="text"],
body.site:not(.admin-body) .form input[type="tel"],
body.site:not(.admin-body) .form input[type="email"],
body.site:not(.admin-body) .form textarea,
body.site:not(.admin-body) .input-textarea,
body.site:not(.admin-body) .select-scale {
  background: #f7fbfc;
  color: var(--text);
  border-color: var(--border);
}

body.site:not(.admin-body) .checklist-fieldset {
  background: rgba(255, 255, 255, 0.6);
}

body.site:not(.admin-body) .checklist-item__label {
  color: #2c4552;
}

body.site:not(.admin-body) .pre {
  background: #eef4f7;
  color: var(--text);
}

/* Герой: сетка и фото */
.hero--summer {
  padding-top: 0.25rem;
}

.hero__grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero__figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(21, 42, 53, 0.1);
  background: var(--surface);
}

.hero__photo {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

@media (min-width: 768px) {
  .hero__grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 1.75rem;
    align-items: center;
  }

  .hero--summer .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

body.site:not(.admin-body) .section__intro {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1rem;
  max-width: 40rem;
}

body.site:not(.admin-body) .photo-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  body.site:not(.admin-body) .photo-grid {
    grid-template-columns: 1fr 1fr;
  }
}

body.site:not(.admin-body) .photo-card {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 28px rgba(21, 42, 53, 0.08);
  background: var(--surface);
}

body.site:not(.admin-body) .photo-card img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
