:root {
  --bg: #1A1A1A;
  --panel: #1A1A1A;
  --panel-2: #252525;
  --text: #FFFDFD;
  --muted: #4C4C4C;
  --cyan: #00EDFF;
  --line: rgba(0, 237, 255, 0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  overflow-x: hidden;
}

body {
  font-family: "Roboto Condensed", "Bahnschrift", Barlow, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: #1A1A1A;
  color: var(--text);
}

.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 2000 / 844;
  background: url('images/stance_hill_site-opening.jpg') center/cover no-repeat;
}

.page {
  width: min(100%, 402px);
  margin: 0 auto;
  background: var(--bg);
}

section {
  padding: 24px 30px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.section-title {
  color: var(--cyan);
  font-size: 30px;
  line-height: 1.1;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.about-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.1fr .9fr;
  align-items: start;
}

.about-copy p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  font-weight: 300;
  margin-bottom: 10px;
}

.about-image {
  width: 100%;
  border-radius: 5px;
  display: block;
  box-shadow: 0 4px 17px rgba(0, 0, 0, 0.25);
}

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

.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  border-radius: 5px;
}

.location-section p {
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 300;
}

.video-poster,
.video-player {
  width: 100%;
  display: block;
  border-radius: 5px;
  box-shadow: 0 4px 14px 7px rgba(0, 0, 0, 0.25);
}

/* Form */
.application-form {
  display: grid;
  gap: 20px;
}

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

.form-group label {
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
}

.application-form input,
.application-form textarea {
  width: 100%;
  border: 1px solid var(--cyan);
  background: transparent;
  color: var(--text);
  border-radius: 5px;
  font-size: 11px;
  padding: 12px 14px;
  font-family: inherit;
}

.application-form input::placeholder,
.application-form textarea::placeholder {
  color: var(--muted);
}

.application-form input:focus,
.application-form textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan);
}

.suspension-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.suspension-option {
  border: 1px solid var(--cyan);
  background: transparent;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 5px;
  cursor: pointer;
  color: var(--text);
}

.suspension-option:hover {
  background: rgba(0, 237, 255, 0.08);
}

.suspension-option.active {
  border-color: var(--cyan);
  background: rgba(0, 237, 255, 0.15);
}

.photo-upload-btn {
  border: 1px dashed var(--cyan);
  background: transparent;
  text-align: center;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  cursor: pointer;
  gap: 8px;
  min-height: 80px;
}

.photo-upload-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  font-weight: 400;
}

.photo-upload-text {
  font-size: 16px;
  color: var(--text);
  font-weight: 400;
}

.photo-hint {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.photo-preview {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.photo-preview img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 5px;
}

.submit-btn {
  margin-top: 8px;
  border: 1px solid var(--cyan);
  border-radius: 5px;
  background: var(--cyan);
  color: var(--bg);
  font-weight: 700;
  letter-spacing: .03em;
  font-size: 18px;
  padding: 16px 24px;
  cursor: pointer;
  text-transform: uppercase;
  font-family: inherit;
  box-shadow: 0 0 14px 7px rgba(0, 0, 0, 0.25);
}

.submit-btn:hover {
  background: #00d4e6;
  border-color: #00d4e6;
}

body.form-success-active {
  background: #000;
  overflow: hidden;
}

body.form-success-active main {
  visibility: hidden;
}

.form-success {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  color: #F7FEFF;
  text-align: center;
  overflow: auto;
}

.form-success.show {
  display: flex;
  visibility: visible;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.form-success-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
}

.form-success-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  max-height: 146px;
  object-fit: contain;
  display: block;
}

.form-success-inner {
  max-width: 275px;
  margin: 0 auto;
  padding-top: 48px;
}

.form-success strong {
  color: #F7FEFF;
  font-size: 28px;
  font-weight: 700;
  line-height: 42.56px;
  display: block;
  margin-bottom: 16px;
}

.form-success p {
  color: #F7FEFF;
  font-size: 24px;
  font-weight: 300;
  line-height: 36.48px;
  margin-bottom: 12px;
}

.form-success-social-desktop {
  display: none;
}

.form-success-social {
  margin-top: 1em;
  text-align: center;
}

.form-success-social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  flex-wrap: wrap;
}

.form-success-social-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #F7FEFF;
  text-decoration: none;
  transition: opacity 0.2s;
}

.form-success-social-item:hover {
  opacity: 0.8;
}

.form-success-social-icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  object-fit: contain;
}

.form-success p:last-child {
  margin-bottom: 0;
}


/* Desktop */
@media (min-width: 900px) {
  .page {
    width: min(100%, 1440px);
  }

  .hero {
    aspect-ratio: 2000 / 844;
  }

  section {
    padding: 48px 104px;
  }

  .section-title {
    font-size: 55px;
    margin-bottom: 32px;
  }

  .about-grid {
    grid-template-columns: 1fr 365px;
    gap: 48px;
    align-items: center;
  }

  .about-copy {
    order: 1;
  }

  .about-image {
    order: 2;
    width: 365px;
    height: 548px;
    object-fit: cover;
  }

  .about-copy p,
  .location-section p {
    font-size: 35px;
    line-height: 1.5;
    font-weight: 350;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .gallery-item img {
    aspect-ratio: 587 / 330;
  }

  .application-form {
    gap: 28px;
  }

  .form-group label {
    font-size: 30px;
    font-weight: 350;
  }

  .application-form input,
  .application-form textarea {
    font-size: 29px;
    padding: 20px 24px;
    border-radius: 20px;
  }

  .suspension-option {
    font-size: 29px;
    font-weight: 700;
    padding: 20px 24px;
    border-radius: 20px;
  }

  .photo-upload-btn {
    min-height: 149px;
    border-radius: 20px;
    padding: 40px;
  }

  .photo-upload-icon {
    width: 53px;
    height: 53px;
    font-size: 36px;
  }

  .photo-upload-text {
    font-size: 29px;
    font-family: "Konkhmer Sleokchher", "Bahnschrift", sans-serif;
  }

  .submit-btn {
    font-size: 42px;
    padding: 24px 48px;
    border-radius: 20px;
    max-width: 546px;
    margin-left: auto;
    margin-right: auto;
  }

  .form-success.show {
    padding: 80px 104px;
  }

  .form-success-image {
    max-width: 913px;
    max-height: 333px;
    width: auto;
    height: auto;
  }

  .form-success-inner {
    max-width: 505px;
    padding-top: 60px;
  }

  .form-success-social-mobile {
    display: none;
  }

  .form-success-social-desktop {
    display: block;
  }

  .form-success strong {
    font-size: 40px;
    line-height: 60.8px;
    margin-bottom: 24px;
  }

  .form-success p {
    font-size: 30px;
    line-height: 45.6px;
    margin-bottom: 16px;
  }

  .gallery-item img {
    border-radius: 20px;
    box-shadow: 0 4px 14px 7px rgba(0, 0, 0, 0.25);
  }

  .video-poster,
  .video-player {
    border-radius: 20px;
  }

  .about-image {
    border-radius: 20px;
  }
}

/* Mobile — відповідно до референсу delete/mobile.html */
@media (max-width: 899px) {
  .hero {
    aspect-ratio: 2000 / 844;
  }

  .about-image {
    display: none;
  }

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

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

@media (max-width: 480px) {
  .page {
    width: 100%;
  }

  section {
    padding: 24px 30px;
  }

  .section-title {
    font-size: 30px;
  }

  .about-grid,
  .suspension-options {
    grid-template-columns: 1fr;
  }
}
