@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #fff;
  --soft: #f6f6f4;
  --ink: #0a0a0a;
  --muted: #666;
  --line: #dededb;
  --accent: #ff5a1f;
  --accent-dark: #df430c;
  --white: #fff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font: 400 17px/1.2 "Inter", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open { overflow: hidden; }

a { color: inherit; }

.wrap {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
}

.content-wrap { max-width: 880px; }

.section { padding: 52px 0; }

.section--soft {
  border-block: 1px solid var(--line);
  background: var(--soft);
}

h1,
h2,
h3,
p { margin-top: 0; }

h1,
h2,
h3,
.logo,
.price {
  font-family: "Inter", Arial, sans-serif;
}

h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.04em;
}

.hero-copy h1 { font-size: clamp(36px, 4.1vw, 52px) !important; }

h2 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.025em;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.015em;
}

p { margin-bottom: 16px; }

strong { font-weight: 700; }

.title-accent { color: var(--accent); }

.btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font: 700 16px/1.15 "Inter", Arial, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease;
}

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

/* Первый экран */
.hero {
  padding: 0 0 64px;
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 90, 31, .09), transparent 28%),
    var(--bg);
}

.hero::before,
.hero::after { content: none; }

.hero-nav {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.hero-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.hero-nav .logo {
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif !important;
  font-size: 22px !important;
  font-weight: 800;
}

.hero-grid {
  display: block;
  min-height: 0;
  padding-top: 56px;
}

.hero-copy {
  width: min(100%, 960px);
  max-width: none;
  margin-inline: auto;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
  box-shadow: none;
  backdrop-filter: none;
}

.hero-intro,
.hero-copy p:not(.terms) {
  width: min(100%, 780px);
  max-width: none;
  margin: 0 auto 26px;
  color: #3e3e3e;
  font-size: 18px;
  line-height: 1.2;
}

/* Смысловые блоки */
.reading-copy {
  max-width: 790px;
  margin: 0;
}

.reading-copy p { max-width: 760px; }

.return-points,
.course-outline {
  margin: 16px 0 22px;
  padding-left: 1.2em;
}

.return-points li,
.course-outline li {
  margin-bottom: 9px;
  padding-left: 2px;
}

.return-points li::marker,
.course-outline li::marker { color: var(--accent); }

.task-list {
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

#return-with { padding-top: 28px; }

.task-list > h2 { margin-bottom: 18px; }

.task-list article,
.included-list article {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr);
  gap: 34px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.task-list article p,
.included-list article p {
  margin: 1px 0 0;
  color: #404040;
}

.included-list {
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

.included-copy p + p { margin-top: 16px; }

.included-note {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--muted);
}

/* Отзывы между блоками */
.reviews-interlude {
  background:
    url("/rumba-repeat/assets/noise-fine-v1.svg?v=20261022-10") repeat,
    var(--soft);
  background-size: 155px 155px, auto;
}

.review-break { padding: 32px 0; }

.review-break__wrap { max-width: 1000px; }

.review {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.review::before { content: none; }

.review--with-gallery > h3,
.review--with-gallery > .review-meta {
  width: min(100%, 580px);
  margin-inline: auto;
}

.review--with-gallery > h3 { margin-bottom: 4px; }

.review-meta {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
}

.review-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: min(100%, 580px);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.review-gallery a {
  display: block;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.review-gallery a:last-child { border-bottom: 0; }

.review-gallery img {
  display: block;
  width: 100%;
  height: auto;
}

.review-gallery__crop {
  position: relative;
  overflow: hidden;
}

.review-gallery__crop--karolina-start { aspect-ratio: 591 / 620; }

.review-gallery__crop--karolina-start img { transform: translateY(-43.2%); }

.review-gallery__crop--karolina-finish { aspect-ratio: 756 / 790; }

.review-break--pair .review-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.phone-review {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.phone-review__head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.phone-review__avatar {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
}

.phone-review__person strong {
  font-size: 18px;
  line-height: 1.1;
}

.phone-review__body { padding: 18px; }

.phone-review__body p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.2;
}

.phone-review__body p:last-child { margin-bottom: 0; }

/* Дополнительные отзывы из картотеки */
.additional-reviews {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.additional-review-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 48px;
  margin-top: 34px;
}

.additional-review {
  padding-top: 18px;
  border-top: 1px solid var(--ink);
}

.additional-review header {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.additional-review header h3,
.additional-review header p {
  margin: 0;
}

.additional-review header p {
  color: var(--muted);
  font-size: 13px;
}

.additional-review > p {
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.2;
}

.additional-review > p:last-child { margin-bottom: 0; }

/* Предложение */
#offer {
  color: var(--white);
  background: var(--ink);
}

#offer .content-wrap { max-width: 880px; }

#offer h2,
#offer h3,
#offer p,
#offer li { color: var(--white); }

.offer-copy { max-width: 780px; }

.offer-copy h3 { margin-top: 34px; }

.offer-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.offer-list li {
  position: relative;
  padding-left: 20px;
}

.offer-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.offer-action {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid #333;
}

.price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 0 0 20px;
}

.price span {
  color: #a5a5a5;
  font-size: 18px;
  text-decoration: line-through;
}

.price strong {
  color: var(--white);
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
}

.offer-action > p:last-child {
  margin: 16px 0 0;
  color: #bdbdbd !important;
}

/* FAQ */
.faq {
  margin-top: 54px;
  padding-top: 34px;
  border-top: 1px solid #333;
}

#offer #faq {
  color: var(--white);
  background: transparent;
}

.faq details { border-bottom: 1px solid #333; }

.faq summary {
  position: relative;
  padding: 18px 42px 18px 0;
  color: var(--white);
  font: 600 17px/1.2 "Inter", Arial, sans-serif;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  top: 16px;
  right: 2px;
  color: var(--accent);
  font-size: 24px;
}

.faq details[open] summary::after { content: "−"; }

.faq details p {
  max-width: 740px;
  padding: 0 34px 18px 0;
  color: #c8c8c8 !important;
}

.legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: center;
  padding: 28px 24px;
  color: #888;
  background: var(--ink);
  font-size: 13px;
}

/* Форма */
.gc-modal[hidden] { display: none; }

.gc-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.gc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .72);
}

.gc-modal__dialog {
  position: relative;
  width: min(100%, 500px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 18px;
  background: var(--white);
}

.gc-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.gc-modal__title {
  margin: 0;
  font-family: "Inter", Arial, sans-serif !important;
  font-size: 22px;
}

.gc-modal__close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  font-size: 25px;
  cursor: pointer;
}

.gc-modal__body { padding: 24px; }

.order-form { display: grid; gap: 16px; }

.order-form__field {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.order-form__field input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #bdbdbd;
  border-radius: 10px;
  color: var(--ink);
  background: var(--white);
  font: 400 16px/1.2 "Inter", Arial, sans-serif;
}

.order-form__field input:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(255, 90, 31, .2);
}

.order-form__consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: #4d4d4d;
  font-size: 13px;
  line-height: 1.2;
}

.order-form__consent input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.order-form__submit { width: 100%; }

@media (max-width: 767px) {
  body { font-size: 14px; }

  .wrap { width: min(100% - 32px, 1120px); }

  .section { padding: 36px 0; }

  h1,
  .hero-copy h1 {
    margin-bottom: 18px;
    font-size: 32px !important;
    line-height: 1.04;
  }

  h2 {
    margin-bottom: 18px;
    font-size: 26px;
    line-height: 1.08;
  }

  h3 { font-size: 19px; }

  p { margin-bottom: 13px; }

  .hero { padding-bottom: 44px; }

  .hero-nav { min-height: 58px; }

  .hero-nav .logo { font-size: 18px !important; }

  .hero-grid { padding-top: 38px; }

  .hero-intro,
  .hero-copy p:not(.terms) {
    margin-bottom: 22px;
    font-size: 16px;
  }

  .btn {
    width: 100%;
    min-height: 48px;
    padding-inline: 18px;
    font-size: 14px;
  }

  .return-points,
  .course-outline { padding-left: 1.1em; }

  .task-list {
    padding-top: 20px;
  }

  .task-list article,
  .included-list article {
    display: block;
    padding: 20px 0;
  }

  .task-list article p,
  .included-list article p { margin-top: 7px; }

  .review-break { padding: 24px 0; }

  #return-with { padding-top: 24px; }

  .review--with-gallery > h3,
  .review--with-gallery > .review-meta,
  .review-gallery { width: min(100%, 430px); }

  .review-break--pair .review-list {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .phone-review__body p { font-size: 14px; }

  .additional-review-list {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 26px;
  }

  .additional-review > p { font-size: 14px; }

  .price strong { font-size: 44px; }

  .faq { margin-top: 44px; }

  .faq summary { font-size: 14px; }

  .legal {
    display: grid;
    justify-items: center;
    text-align: center;
  }

  .gc-modal { padding: 12px; }

  .gc-modal__dialog { max-height: calc(100vh - 24px); }

  .gc-modal__head,
  .gc-modal__body { padding: 18px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .wrap { width: min(100% - 48px, 1120px); }

  .review-break--pair .review-list { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
