/* Собственные кемпы TennisFan: зелёный корт, тёплое золото, спокойные материалы. */

.camp-shell {
  box-sizing: border-box;

  --camp-green: var(--color-primary, #a6824a);
  --camp-ink: var(--color-text, #c0c0c0);
  --camp-heading: var(--color-primary, #a6824a);
  --camp-surface: rgb(0 31 20 / 88%);
  --camp-soft: rgb(166 130 74 / 8%);
  --camp-input: #03271c;
  --camp-gold: var(--color-primary, #a6824a);
  --camp-muted: #b2c0b7;
  --camp-line: rgb(166 130 74 / 28%);

  padding: 36px 0 80px;
  background: transparent;
  color-scheme: dark;
  width: 100%;
  min-width: 0;
  font-size: 1rem;
  color: var(--camp-ink);
  min-height: 65vh;
}

.camp-shell *, .camp-shell *::before, .camp-shell *::after {
  box-sizing: border-box;
  min-width: 0;
}

.camp-shell a {
  color: inherit;
}

.camp-shell h1, .camp-shell h2, .camp-shell h3, .camp-shell h4 {
  color: var(--camp-heading);
  margin: 0 0 16px;
  overflow-wrap: anywhere;
}

.camp-shell h1 {
  font-size: clamp(2.3rem, 5.2vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -.045em;
  font-weight: 650;
}

.camp-shell h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -.025em;
}

.camp-shell h3 {
  font-size: 1.3rem;
  line-height: 1.3;
  letter-spacing: -.015em;
}

.camp-shell h4 {
  font-size: 1.1rem;
}

.camp-shell p {
  margin: 0 0 16px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.camp-shell :focus-visible {
  outline: 3px solid var(--camp-gold);
  outline-offset: 4px;
}

.camp-topline, .camp-section-heading, .camp-session__heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.camp-topline {
  margin-bottom: 24px;
}

.camp-eyebrow {
  display: block;
  font-size: .7rem;
  letter-spacing: .13em;
  line-height: 1.6;
  font-weight: 750;
  margin-bottom: 12px;
  color: var(--camp-muted);
}

.camp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.camp-actions a {
  font-size: .9rem;
}

.camp-hero {
  overflow: hidden;
  isolation: isolate;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  background: linear-gradient(125deg, rgb(1 43 28 / 96%), rgb(0 31 20 / 92%));
  border: 1px solid var(--camp-line);
  color: #fff;
  border-radius: 28px;
  padding: clamp(28px, 5vw, 66px);
  gap: 40px;
  min-height: 420px;
}

.camp-hero h1 {
  color: #fff;
  margin: 24px 0;
}

.camp-hero em {
  font-family: Georgia, serif;
  color: #e4ce99;
  font-weight: 400;
}

.camp-hero p {
  max-width: 540px;
  color: #e2eae4;
  font-size: 1.05rem;
}

.camp-hero .camp-tag {
  color: #f3e0b6;
  border-color: #6d8e72;
  background: #ffffff0a;
}

.camp-hero__content {
  grid-column: 1 / -1;
  max-width: 740px;
}

.camp-hero--photo {
  min-height: 480px;
  background: #143d2f;
}

.camp-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.camp-hero--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #072c23ed, #072c23a3 65%, #072c234d);
  z-index: -1;
}

.camp-tag {
  display: inline-flex;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  border: 1px solid var(--camp-line);
  padding: 7px 12px;
  border-radius: 100px;
  line-height: 1.4;
  background: var(--camp-soft);
}

.camp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--camp-green);
  color: #03110d !important;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
  font: inherit;
  font-size: .95rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 150ms cubic-bezier(.23,1,.32,1), opacity 150ms ease;
}

.camp-button:active {
  transform: scale(.98);
}

.camp-button:disabled {
  opacity: .65;
  cursor: wait;
}

.camp-hero .camp-button {
  background: #e1c887;
  color: #183c31 !important;
  margin-top: 12px;
}

.camp-button--outline {
  background: var(--camp-soft);
  border-color: var(--camp-line);
  color: var(--camp-ink) !important;
}

.camp-button--wide {
  width: 100%;
}

.camp-court-art {
  position: relative;
  border: 2px solid #e9e5bca6;
  transform: rotate(-8deg);
  margin: 30px 0 30px 20px;
  background: linear-gradient(100deg, #1c6146, #2e7951);
  border-radius: 2px;
  box-shadow: 22px 25px 0 #0c382875;
}

.camp-court-art::before {
  content: '';
  position: absolute;
  inset: 0 12%;
  border-inline: 2px solid #e9e5bca6;
}

.camp-court-art::after {
  content: '';
  position: absolute;
  inset: 23% 12%;
  border-block: 2px solid #e9e5bca6;
}

.camp-court-art__line {
  position: absolute;
  top: 50%;
  width: 100%;
  border-top: 2px solid #e9e5bca6;
}

.camp-court-art__line::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  height: 160px;
  border-left: 2px solid #e9e5bca6;
}

.camp-court-art__ball {
  position: absolute;
  height: 48px;
  width: 48px;
  border-radius: 50%;
  background: #e0d77f;
  top: 30%;
  right: 20%;
  box-shadow: 12px 18px 20px #092c3870;
}

.camp-court-art__ball::after {
  content: '';
  position: absolute;
  inset: 5px 10px;
  border-inline: 2px solid #ffffffb3;
  border-radius: 50%;
  transform: rotate(30deg);
}

.camp-court-art__caption {
  position: absolute;
  bottom: -40px;
  font-size: .7rem;
  letter-spacing: .1em;
  color: #e3d7ae;
  transform: rotate(8deg);
}

.camp-section-heading {
  margin: 56px 0 24px;
  flex-wrap: wrap;
}

.camp-section-heading h2 {
  margin-bottom: 0;
}

.camp-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.camp-section-heading .camp-filters {
  margin-bottom: 0;
}

.camp-filters a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid var(--camp-line);
  border-radius: 100px;
  text-decoration: none;
  font-size: .85rem;
  background: var(--camp-soft);
}

.camp-filters [aria-current='page'] {
  background: var(--camp-gold);
  border-color: var(--camp-gold);
  color: #03110d;
}

.camp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.camp-card {
  border: 1px solid var(--camp-line);
  border-radius: 22px;
  overflow: hidden;
  background: var(--camp-surface);
}

.camp-card__image, .camp-card__placeholder {
  display: flex;
  aspect-ratio: 3/2;
  overflow: hidden;
}

.camp-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camp-card__placeholder {
  align-items: flex-end;
  padding: 32px;
  background: linear-gradient(135deg, #296249, #123d2d);
  color: #dfd7b0 !important;
  text-decoration: none;
}

.camp-card__placeholder span {
  font-size: 2.7rem;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: .95;
}

.camp-card__body {
  padding: 24px;
}

.camp-card__body h3 {
  margin-top: 18px;
}

.camp-card__body h3 a {
  text-decoration: none;
}

.camp-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: .85rem;
  padding-block: 16px;
  border-top: 1px solid var(--camp-line);
}

.camp-text-link {
  display: inline-block;
  font-weight: 650;
  text-underline-offset: 5px;
}

.camp-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid var(--camp-line);
}

.camp-values span {
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--camp-muted);
  display: block;
  margin-bottom: 16px;
}

.camp-values p {
  color: var(--camp-muted);
}

.camp-panel {
  background: var(--camp-surface);
  border: 1px solid var(--camp-line);
  border-radius: 22px;
  padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 8px 30px rgb(0 0 0 / 12%);
}

.camp-empty {
  grid-column: 1/-1;
  padding: 48px;
  text-align: center;
}

.camp-empty p {
  max-width: 560px;
  margin-inline: auto;
}

.camp-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 20px;
  text-decoration: none;
  font-size: .9rem;
}

.camp-anchor-nav {
  position: sticky;
  top: 76px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px;
  border-radius: 16px;
  background: rgb(0 31 20 / 94%);
  backdrop-filter: blur(12px);
  border: 1px solid var(--camp-line);
  margin: 24px 0;
  z-index: 4;
}

.camp-anchor-nav a {
  padding: 10px 16px;
  text-decoration: none;
  font-size: .9rem;
}

.camp-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr);
  align-items: start;
  gap: 32px;
}

.camp-summary {
  position: sticky;
  top: 156px;
}

.camp-summary .camp-button {
  width: 100%;
}

.camp-section {
  margin-block: 36px;
  scroll-margin-top: 170px;
}

.camp-prose {
  overflow-wrap: anywhere;
}

.camp-callout {
  border-left: 3px solid var(--camp-gold);
  background: var(--camp-soft);
  border-radius: 0 12px 12px 0;
  padding: 20px;
  margin: 24px 0;
}

.camp-callout p {
  margin: 8px 0 0;
}

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

.camp-coach {
  --camp-avatar-size: 72px;

  display: grid;
  grid-template-columns: var(--camp-avatar-size) minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  text-decoration: none;
}

.camp-coach .camp-coach__photo {
  display: block;
  width: var(--camp-avatar-size);
  height: var(--camp-avatar-size);
  min-width: var(--camp-avatar-size);
  max-width: var(--camp-avatar-size);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.camp-coach__info {
  min-width: 0;
  overflow-wrap: anywhere;
}

.camp-coach__placeholder {
  display: grid !important;
  place-items: center;
  background: var(--camp-soft);
  border: 1px solid var(--camp-line);
  color: var(--camp-gold);
  font-size: 1.5rem;
}

.camp-coach h3, .camp-coach p {
  margin-bottom: 6px;
}

.camp-session {
  margin-block: 24px;
  scroll-margin-top: 170px;
}

.camp-session__heading {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--camp-line);
  flex-wrap: wrap;
}

.camp-session__heading h3 {
  margin: 12px 0 6px;
  font-size: 1.6rem;
}

.camp-session__heading p {
  margin: 0;
}

.camp-facts {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 20px;
  padding: 24px 0;
}

.camp-facts span, .camp-facts strong {
  display: block;
  line-height: 1.5;
}

.camp-facts span {
  font-size: .8rem;
  color: var(--camp-muted);
  margin-bottom: 5px;
}

.camp-packages {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px;
  margin: 24px 0;
}

.camp-package {
  padding: 24px;
  background: var(--camp-soft);
  border-radius: 16px;
}

.camp-package .camp-muted {
  display: block;
  margin-bottom: 16px;
}

.camp-price {
  display: block;
  font-size: 1.8rem;
  letter-spacing: -.035em;
  margin: 12px 0 4px;
}

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

.camp-disclosure {
  border-top: 1px solid var(--camp-line);
  padding: 16px 0;
}

.camp-disclosure summary {
  cursor: pointer;
  font-weight: 650;
  min-height: 28px;
}

.camp-disclosure[open] summary {
  margin-bottom: 16px;
}

.camp-games-intro {
  background: var(--camp-surface);
}

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

.camp-small {
  font-size: .8rem;
  margin-top: 16px !important;
}

.camp-page-heading {
  margin: 16px 0 36px;
  max-width: 950px;
}

.camp-page-heading h1 {
  font-size: clamp(2rem,4vw,3.3rem);
}

.camp-page-heading > p {
  color: var(--camp-muted);
}

.camp-form input:not([type='checkbox'], [type='hidden']), .camp-form select, .camp-form textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  font: inherit;
  color: var(--camp-ink);
  background: var(--camp-input);
  border: 1px solid var(--camp-line);
  border-radius: 10px;
  padding: 11px 13px;
}

.camp-form textarea {
  resize: vertical;
}

.camp-field {
  margin-bottom: 20px;
}

.camp-field label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.camp-field--check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.camp-field--check input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin: 2px 0;
  accent-color: var(--camp-gold);
}

.camp-field--check label {
  font-weight: 400;
  line-height: 1.5;
}

.camp-form-section {
  border-top: 1px solid var(--camp-line);
  margin-top: 32px;
  padding-top: 28px;
}

.camp-person {
  padding: 22px;
  border: 1px solid var(--camp-line);
  border-radius: 14px;
  margin-bottom: 20px;
  min-width: 0;
}

.camp-person legend {
  padding: 0 8px;
  font-weight: 650;
}

.camp-errors, .camp-field-errors {
  color: #ffb4a8;
  background: rgb(160 0 0 / 18%);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: .9rem;
}

.camp-errors ul, .camp-field-errors ul {
  padding-left: 16px;
  margin: 0;
}

.camp-field:has(.camp-field-errors) input, .camp-field:has(.camp-field-errors) select {
  border-color: #ad4640;
}

.camp-definition {
  margin-bottom: 24px;
}

.camp-definition > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--camp-line);
}

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

.camp-definition dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.camp-application-card {
  text-decoration: none;
  display: block;
}

.camp-application-card h2 {
  margin-top: 16px;
  font-size: 1.5rem;
}

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

.camp-stats span, .camp-stats strong {
  display: block;
}

.camp-stats span {
  color: var(--camp-muted);
  font-size: .85rem;
}

.camp-stats strong {
  font-size: 2.3rem;
  margin-top: 12px;
  letter-spacing: -.04em;
}

.camp-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  background: var(--camp-surface);
  max-width: 100%;
  border: 1px solid var(--camp-line);
}

.camp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  text-align: left;
}

.camp-table th {
  background: var(--camp-soft);
  font-weight: 650;
}

.camp-table th, .camp-table td {
  padding: 18px;
  border-bottom: 1px solid var(--camp-line);
  vertical-align: top;
  min-width: 140px;
}

.camp-ledger {
  border-top: 1px solid var(--camp-line);
  padding-top: 14px;
}

.camp-ledger span {
  display: block;
  color: var(--camp-muted);
  font-size: .8rem;
}

.camp-game {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--camp-line);
}

.camp-game:last-child {
  border: 0;
}

.camp-game p {
  margin: 6px 0 0;
  font-size: .85rem;
  color: var(--camp-muted);
}

.camp-game .camp-muted {
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .camp-button:hover {
    opacity: .9;
  }

  .camp-text-link:hover {
    text-decoration-thickness: 2px;
  }
}

@media (width <= 1000px) {
  .camp-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .camp-detail-grid {
    grid-template-columns: minmax(0,1.5fr) minmax(240px,1fr);
    gap: 20px;
  }

  .camp-hero {
    gap: 20px;
  }

  .camp-court-art {
    margin-inline: 0;
  }

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

@media (width <= 900px) {
  .camp-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .camp-summary {
    position: static;
  }
}

@media (width <= 700px) {
  .camp-shell {
    padding-top: 20px;
  }

  .camp-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .camp-hero {
    grid-template-columns: 1fr;
    padding: 30px 24px;
    min-height: 0;
    border-radius: 22px;
  }

  .camp-hero h1 {
    font-size: clamp(1.9rem, 7.8vw, 2.8rem);
    overflow-wrap: anywhere;
  }

  .camp-court-art {
    height: 180px;
    margin: 0 22px 32px;
  }

  .camp-grid, .camp-detail-grid, .camp-values, .camp-coaches, .camp-packages, .camp-two-columns, .camp-stats {
    grid-template-columns: minmax(0,1fr);
  }

  .camp-values {
    gap: 22px;
  }

  .camp-summary {
    position: static;
  }

  .camp-anchor-nav {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    white-space: normal;
  }

  .camp-anchor-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px;
    text-align: center;
    font-size: .9rem;
  }

  .camp-section-heading {
    margin-top: 36px;
    gap: 16px;
  }

  .camp-session__heading .camp-button {
    width: 100%;
  }

  .camp-empty {
    padding: 30px 22px;
  }

  .camp-game {
    flex-direction: column;
    gap: 8px;
  }

  .camp-hero--photo {
    min-height: 320px;
  }

  .camp-shell > .container {
    padding-inline: 12px;
  }

  .camp-panel {
    padding: 20px;
    border-radius: 18px;
  }

  .camp-coach {
    --camp-avatar-size: 56px;

    gap: 14px;
    padding: 18px;
  }

  .camp-coach h3 {
    font-size: 1.05rem;
    line-height: 1.4;
  }

  .camp-coach p, .camp-coach .camp-muted {
    font-size: .95rem;
  }

  .camp-section-heading, .camp-session__heading {
    align-items: flex-start;
  }

  .camp-actions {
    width: 100%;
    gap: 12px;
  }

  .camp-actions .camp-button {
    flex: 1 1 180px;
  }

  .camp-form input:not([type='checkbox'], [type='hidden']), .camp-form select, .camp-form textarea {
    max-width: 100%;
    font-size: 16px;
  }

  .camp-field--check label {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .camp-definition > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .camp-table {
    min-width: 680px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .camp-shell .camp-button {
    transition: opacity 100ms ease;
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .camp-anchor-nav, .camp-panel {
    background: #001f14;
    backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  .camp-panel, .camp-anchor-nav, .camp-card {
    border-color: var(--camp-gold);
    background: #001f14;
  }

  .camp-muted {
    color: #fff;
  }
}

.camp-access-panel { max-width: 680px; }

.camp-access-page {
  margin: 0;
  font: 100%/1.5 system-ui, sans-serif;
  background: #012b1c url("../../images/site-bg.cce21ff35873.svg?v=5") center / cover fixed;
  color: #c0c0c0;
}

.camp-access-page .camp-shell {
  min-height: 100vh;
  padding: 40px 20px;
}
.camp-access-page .camp-access-panel { margin: 0 auto; }
.camp-access-page h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.camp-access-page .camp-muted { margin-top: 20px; }

.camp-cancellation + .camp-cancellation {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--camp-line);
}

/* Длинные контакты и подписи не расширяют сетку или страницу. */
.camp-shell a, .camp-shell strong, .camp-shell summary, .camp-shell label, .camp-shell legend {
  overflow-wrap: anywhere;
}

.camp-shell > .container {
  min-width: 0;
  max-width: 1400px;
}

@media (width <= 380px) {
  .camp-hero {
    padding: 24px 18px;
  }

  .camp-court-art {
    height: 150px;
    margin-inline: 16px;
  }

  .camp-facts {
    grid-template-columns: minmax(0, 1fr);
  }
}
