/* SMART UP — mobile-first, тёмный фон, оранжевый акцент */

:root {
  --bg: #1a1a1c;
  --bg-soft: #242428;
  --text: #ffffff;
  --text-muted: #e0e0e6;
  --accent: #e05535;
  --accent-hover: #e96a45;
  --border: #3a3a3e;
  --radius: 8px;
  --space: 1rem;
  --heading-size: 1.5rem;
  --section-gap: 3rem;
  --font: 'Oswald', sans-serif;
  --font-menu: 'Oswald', sans-serif;
  --font-button: 'Oswald', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.25rem;
  font-weight: 200;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

a:hover {
  color: var(--accent-hover);
}

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

/* Header & burger — не липнет при скролле */
.header {
  position: relative;
  z-index: 100;
  background: rgba(26, 26, 28, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 15rem 20px 1.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 36px;
  width: auto;
}

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  border-radius: var(--radius);
  position: absolute;
  left: 20px;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--bg);
  padding: 4rem 20px 20px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}

.nav.is-open {
  transform: translateX(0);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: block;
  padding: 0.5rem 0;
  color: var(--text);
  font-size: 1.25rem;
  font-family: var(--font-menu);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45), 0 0 10px rgba(232, 92, 43, 0.18);
  border-bottom: 1px solid var(--border);
}

.nav-list a:hover {
  color: var(--accent);
}

@media (min-width: 768px) {
  .burger {
    display: none;
  }

  .nav {
    position: static;
    background: transparent;
    padding: 0;
    transform: none;
    overflow: visible;
    flex: 1;
    min-width: 0;
  }

  .nav-list {
    display: flex;
    gap: 0;
    justify-content: space-around;
    width: 100%;
  }

  .nav-list a {
    padding: 0.35rem 0.4rem;
    border: none;
    font-size: 1.25rem;
    white-space: nowrap;
  }

  .burger {
    position: static;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.92rem 1.6rem;
  font-family: var(--font-button);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary::after {
  content: "→";
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.2s ease;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-primary:hover::after {
  transform: translateX(5px);
}

.btn-signup {
  font-size: 1.5rem;
  font-weight: 500;
  padding: 1rem 1.75rem;
  line-height: 1.5;
  white-space: normal;
}

.btn-signup::after {
  font-size: 1.4rem;
  font-weight: 600;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-text {
  background: none;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.btn-text:hover {
  color: var(--accent);
}

/* Hero — та же сетка, что и у секций: один .container на всю ширину контента */
.hero {
  padding: var(--section-gap) 0;
  text-align: center;
  display: flex;
  align-items: center;
}

.hero .container {
  width: 100%;
}

.hero .hero-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
}

.hero-left,
.hero-right {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-logo {
  width: 100%;
  max-width: 280px;
  height: auto;
}

.hero-motto {
  font-size: var(--heading-size);
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin: 0 0 var(--section-gap);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  width: auto;
  max-width: none;
  align-items: center;
}

.hero-actions .btn {
  width: auto;
}

@media (min-width: 768px) {
  .hero {
    padding: var(--section-gap) 0;
  }

  .hero-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    max-width: 100%;
  }

  .hero-left,
  .hero-right {
    flex: 1;
    align-items: center;
    text-align: center;
  }

  .hero-motto {
    margin-bottom: var(--section-gap);
  }

  .hero-actions {
    flex-direction: column;
    max-width: none;
  }

  .hero-logo {
    max-width: 560px;
  }
}

/* Sections */
.section {
  padding: var(--section-gap) 0;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Отступ шапки: от слов меню до верха (переопределяет .container) */
.header .header-inner {
  padding-top: 2.5rem;
  padding-bottom: 1rem;
}

.section-title {
  font-size: var(--heading-size);
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 var(--section-gap);
}

@media (min-width: 1024px) {
  .section {
    padding: var(--section-gap) 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .header .header-inner {
    padding: 2.5rem 16px 1rem;
  }

  .burger {
    left: 16px;
  }
}

/* About */
.about {
  padding-top: 0;
}

.about-text p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.about-text strong {
  color: var(--accent);
}

.philosophy,
.directions {
  margin-top: var(--section-gap);
}

.philosophy h3,
.directions h3 {
  font-size: var(--heading-size);
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin: 0 0 var(--section-gap);
}

.philosophy ul {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--text-muted);
}

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

.direction-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: var(--section-gap);
}

.directions .direction-card:last-child {
  margin-bottom: 0;
}

.direction-card h4 {
  font-size: var(--heading-size);
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 0 0 var(--section-gap);
}

.direction-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.1875rem;
  line-height: 1.7;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--section-gap);
  margin-top: var(--section-gap);
}

.gallery-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  transform: rotate(var(--tilt, 0deg));
  background: var(--bg-soft);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* Schedule */
.schedule-intro {
  color: var(--text-muted);
  margin: 0 0 var(--section-gap);
  font-size: 1.1875rem;
  line-height: 1.7;
}

.schedule-block {
  margin-bottom: var(--section-gap);
}

.schedule-block h3 {
  font-size: var(--heading-size);
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 0 0 var(--section-gap);
}

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

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.125rem;
  line-height: 1.6;
  table-layout: fixed;
}

.schedule-table th,
.schedule-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  vertical-align: middle;
}

.schedule-table th:last-child,
.schedule-table td:last-child {
  border-right: none;
}

.schedule-table th:nth-child(1),
.schedule-table td:nth-child(1) {
  width: 5rem;
  text-align: left;
}

.schedule-table th:nth-child(2),
.schedule-table th:nth-child(3),
.schedule-table th:nth-child(4),
.schedule-table td:nth-child(2),
.schedule-table td:nth-child(3),
.schedule-table td:nth-child(4) {
  text-align: center;
}

.schedule-table th {
  background: var(--bg-soft);
  color: var(--text);
  font-weight: 200;
}

.schedule-table td {
  color: var(--text-muted);
}

.schedule-table tbody tr:last-child td {
  border-bottom: none;
}

.schedule-table td[data-trainer] {
  color: var(--text);
  font-weight: 200;
}

/* Prices */
.prices-list {
  display: grid;
  gap: var(--section-gap);
  margin-top: var(--section-gap);
}

.price-item {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 1.5rem;
  border-left: 4px solid var(--accent);
}

.price-item h3 {
  font-size: var(--heading-size);
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin: 0 0 var(--section-gap);
}

.price-desc {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.price-value {
  font-size: 1.7rem;
  font-weight: 200;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin: 0;
}

@media (min-width: 640px) {
  .prices-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Stories */
.stories-list {
  margin-top: var(--section-gap);
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
}

.story-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--section-gap);
  align-items: start;
}

.story-photo.portrait {
  aspect-ratio: 3/4;
  max-width: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
}

.story-photo.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-card {
  margin: 0;
  padding: 1.25rem 1.5rem;
  background: var(--bg-soft);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
}

.story-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.1875rem;
  font-style: italic;
  font-weight: 100;
  opacity: 0.75;
  line-height: 1.75;
  letter-spacing: 0.04em;
}

@media (min-width: 640px) {
  .story-item {
    grid-template-columns: 200px 1fr;
    gap: var(--section-gap);
  }

  .story-photo.portrait {
    max-width: 200px;
  }
}

@media (min-width: 1024px) {
  .story-item {
    grid-template-columns: 240px 1fr;
    gap: var(--section-gap);
  }

  .story-photo.portrait {
    max-width: 240px;
  }
}

/* Signup: quiz & form */
.signup-intro {
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 var(--section-gap);
}

.signup-actions {
  margin-bottom: var(--section-gap);
}

.quiz-block,
.quiz-result,
.signup-form,
.form-success {
  max-width: 400px;
  margin-bottom: var(--section-gap);
}

.quiz-block .quiz-progress {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.quiz-block .quiz-question {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.quiz-answers {
  display: flex;
  gap: 0.75rem;
}

.quiz-result-text {
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 1rem;
  padding: 1rem;
  background: var(--bg-soft);
  border-radius: var(--radius);
}

.signup-form .form-group {
  margin-bottom: 1.25rem;
}

.signup-form label {
  display: block;
  font-size: 1.1875rem;
  font-weight: 200;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.signup-form input[type="text"],
.signup-form input[type="tel"],
.signup-form select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.signup-form input::placeholder {
  color: var(--text-muted);
}

.signup-form input:focus,
.signup-form select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-message {
  margin-top: 0.5rem;
  font-size: 1.125rem;
  color: var(--accent);
}

.form-success p {
  color: var(--text);
  font-size: 1.1875rem;
  line-height: 1.7;
}

.hidden {
  display: none !important;
}

/* Contacts */
.contacts-block {
  margin-bottom: var(--section-gap);
}

.contacts-block p {
  margin: 0 0 0.5rem;
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--text-muted);
}

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

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--section-gap);
}

.map-wrap iframe {
  display: block;
}

.map-2gis {
  width: 100%;
  height: 300px;
}

.map-open-link {
  margin: 0 0 var(--section-gap);
}

.map-open-link a {
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  color: var(--accent);
  font-weight: 200;
}

.map-note {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

/* Footer */
.footer {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-contacts {
  margin: 0 0 var(--section-gap);
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--text-muted);
}

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

.footer .btn {
  margin-bottom: var(--section-gap);
}

.footer-logo {
  display: block;
  margin-bottom: var(--section-gap);
  text-align: center;
}

.footer-logo img {
  height: 64px;
  width: auto;
  display: inline-block;
}

.footer-copy {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}
