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

:root {
  --bg: #f4eee8;
  --bg-soft: #fbf7f2;
  --surface: rgba(255, 252, 248, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --text: #181411;
  --muted: #74665b;
  --accent: #b97252;
  --accent-2: #d8a07c;
  --accent-dark: #8d5137;
  --gold: #d9b47a;
  --line: rgba(24, 20, 17, 0.08);
  --shadow: 0 22px 70px rgba(78, 46, 28, 0.12);
  --shadow-soft: 0 14px 35px rgba(78, 46, 28, 0.08);
  --radius: 30px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(217, 180, 122, 0.12), transparent 26%),
    radial-gradient(circle at 85% 8%, rgba(185, 114, 82, 0.12), transparent 24%),
    linear-gradient(180deg, #fdfaf7 0%, #f2eae2 100%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  padding: 18px 20px;
  transition: all 0.25s ease;
}

.header.scrolled {
  backdrop-filter: blur(18px);
  background: rgba(253, 247, 240, 0.82);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.header-inner {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.burger {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.86);
  display: grid;
  place-items: center;
  gap: 4px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 10px;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 60;
}

.overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.sidenav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(380px, 88vw);
  height: 100vh;
  background: linear-gradient(180deg, #fffaf6 0%, #f6ede5 100%);
  z-index: 70;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: 28px;
  box-shadow: -20px 0 50px rgba(0,0,0,0.12);
}

.sidenav.open {
  transform: translateX(0);
}

.sidenav-close {
  margin-left: auto;
  display: block;
  background: transparent;
  border: 0;
  font-size: 1.8rem;
  cursor: pointer;
}

.sidenav ul {
  list-style: none;
  margin-top: 40px;
  display: grid;
  gap: 18px;
}

.snav-link {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--muted);
}

.snav-link.active,
.snav-link:hover {
  color: var(--text);
}

.hero {
  min-height: 100vh;
  padding: 128px 20px 64px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 42px;
  width: min(1240px, 100%);
  margin: 0 auto;
  position: relative;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 24%, rgba(185,114,82,0.24), transparent 24%),
    radial-gradient(circle at 80% 34%, rgba(217,180,122,0.18), transparent 20%),
    radial-gradient(circle at 65% 78%, rgba(255,255,255,0.72), transparent 20%),
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0));
  z-index: -1;
}

.hero-content {
  max-width: 640px;
  position: relative;
  z-index: 2;
}

.hero-tag,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.78);
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 10px 28px rgba(0,0,0,0.04);
}

.hero h1,
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  line-height: 0.92;
  margin: 26px 0 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero-sub {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.22s ease;
  border: 1px solid transparent;
  min-height: 56px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  box-shadow: 0 18px 38px rgba(141,81,55,0.24);
}

.btn-ghost {
  border-color: rgba(0,0,0,0.07);
  background: rgba(255,255,255,0.82);
  color: var(--text);
}

.btn-full {
  width: 100%;
}

.hero-photo-placeholder,
.mentor-photo-ph,
.about-photo-ph,
.contacts-photo-ph {
  min-height: 600px;
  border-radius: 38px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(242,227,214,0.98)),
    repeating-linear-gradient(-45deg, rgba(185,114,82,0.07), rgba(185,114,82,0.07) 14px, transparent 14px, transparent 28px);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.hero-photo-card,
.about-photo-card {
  padding: 0;
  align-items: stretch;
}

.hero-photo-img {
  width: 100%;
  height: 100%;
  min-height: 600px;
  object-fit: cover;
}

.hero-photo-badge {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 14px 18px;
  border-radius: 20px;
  background: rgba(255, 252, 248, 0.86);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-weight: 700;
  text-align: left;
  box-shadow: var(--shadow-soft);
}

.photo-ph-label {
  font-size: 1.05rem;
  font-weight: 700;
  max-width: 220px;
  line-height: 1.5;
}

.section {
  padding: 108px 0;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1;
  margin-bottom: 18px;
  text-align: center;
  letter-spacing: -0.02em;
}

.section-sub,
.problems-cta,
.marathon-desc,
.page-hero p,
.form-info p,
.center-cta p,
.contact-label,
.footer-copy {
  color: var(--muted);
}

.problems-grid,
.inside-grid,
.reviews-grid,
.reviews-big-grid,
.screenshots-grid,
.certs-grid,
.contacts-grid {
  display: grid;
  gap: 18px;
}

.problems-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.problem-item,
.inside-item,
.review-card,
.review-big-card,
.screenshot-ph,
.cert-ph,
.stage-full-card,
.contact-card,
.pricing-card,
.form-wrap,
.contact-block,
.contacts-cta-block {
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: var(--shadow);
}

.problem-item,
.inside-item {
  padding: 24px;
  border-radius: 26px;
  font-weight: 600;
  line-height: 1.5;
}

.problems-cta {
  text-align: center;
  margin-top: 26px;
  font-size: 1.15rem;
}

.stages-row {
  display: grid;
  grid-template-columns: repeat(7, auto);
  align-items: stretch;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.stage-card {
  width: 240px;
  padding: 28px;
  border-radius: 30px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: var(--shadow-soft);
}

.stage-card--accent {
  background: linear-gradient(180deg, rgba(185,114,82,0.16), rgba(255,255,255,0.92));
}

.stage-num {
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 10px;
}

.stage-card h3,
.pricing-name,
.form-info h2,
.contacts-info h2,
.about-text h2,
.review-big-card strong {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.stage-divider {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 1.6rem;
}

.results-band {
  padding-top: 0;
}

.results-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 24px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255,255,255,0.75), rgba(246,236,228,0.95));
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: var(--shadow);
}

.result-metric {
  padding: 22px;
  border-radius: 28px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(0,0,0,0.04);
  text-align: center;
}

.result-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
  margin-bottom: 10px;
}

.result-text {
  display: block;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.5;
}


.mentor-inner,
.about-inner,
.contacts-layout,
.form-wrap {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: center;
}

.mentor-text p,
.about-text p,
.marathon-desc {
  margin-bottom: 16px;
}

.pricing-card {
  max-width: 640px;
  margin: 38px auto 0;
  padding: 42px 36px;
  border-radius: 34px;
  text-align: center;
}

.pricing-price {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 1;
  margin-bottom: 16px;
}

.pricing-list {
  list-style: none;
  display: grid;
  gap: 10px;
  text-align: left;
  margin: 0 0 26px;
}

.reviews-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.review-card,
.review-big-card {
  padding: 28px;
  border-radius: 30px;
}

.stars {
  letter-spacing: 0.18em;
  color: #cb8e39;
  margin-bottom: 12px;
}

.center-cta {
  text-align: center;
  margin-top: 28px;
}

.pricing {
  background: linear-gradient(180deg, rgba(255,255,255,0.2), rgba(255,255,255,0.45));
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  text-align: center;
  margin-top: 16px;
  font-size: 0.92rem;
}

.page-hero {
  min-height: 50vh;
  padding: 150px 20px 74px;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(185,114,82,0.16), transparent 24%),
    radial-gradient(circle at 80% 25%, rgba(217,180,122,0.14), transparent 20%),
    linear-gradient(180deg, rgba(255,255,255,0.54), rgba(245,237,230,0.74));
}

.page-hero-inner {
  width: min(860px, 100%);
  display: grid;
  gap: 18px;
  justify-items: center;
}

.hero-cta--center {
  justify-content: center;
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 30px 0;
}

.fact {
  padding: 20px;
  border-radius: 26px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: var(--shadow-soft);
}

.fact-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
}

.certs h3,
.certs-block h3,
.real-reviews-section h2 {
  margin-bottom: 14px;
}

.certs-grid,
.screenshots-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cert-ph,
.screenshot-ph {
  min-height: 180px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
}

.stages-full {
  display: grid;
  gap: 20px;
  margin-top: 34px;
}

.stage-full-card {
  border-radius: 32px;
  padding: 30px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
}

.stage-full-card--accent {
  background: linear-gradient(135deg, rgba(185,114,82,0.16), rgba(255,255,255,0.88));
}

.stage-full-num {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.stage-full-content ul,
.form-include {
  margin-top: 14px;
  padding-left: 20px;
}

.inside-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
}

.form-wrap {
  padding: 24px;
  border-radius: 38px;
  align-items: start;
}

.form-info-price {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 16px 0;
}

.app-form {
  background: var(--surface-strong);
  border-radius: 30px;
  border: 1px solid rgba(0,0,0,0.05);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.fgroup {
  margin-bottom: 18px;
}

.fgroup label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

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

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(0,0,0,0.07);
  background: rgba(255,255,255,0.96);
  border-radius: 18px;
  padding: 16px 18px;
  font: inherit;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(168,100,67,0.45);
  box-shadow: 0 0 0 4px rgba(168,100,67,0.08);
}

.radio-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.rlabel,
.clabel {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.rlabel input,
.clabel input {
  width: auto;
}

.form-status {
  margin-top: 14px;
  min-height: 24px;
}

.form-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.form-status.success { color: #1f8f58; }
.form-status.error { color: #c24141; }

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

.review-meta {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-weight: 700;
}

.real-reviews-section {
  margin-top: 50px;
}

.contacts-layout {
  align-items: start;
}

.contact-block,
.contacts-cta-block {
  border-radius: 32px;
  padding: 30px;
}

.contact-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.contact-icon {
  font-size: 1.5rem;
}

.contacts-photo-ph {
  min-height: 260px;
  margin-top: 26px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(245,230,220,0.95));
  border: 1px solid rgba(0,0,0,0.06);
  display: grid;
  place-items: center;
}

@media (max-width: 1100px) {
  .hero,
  .mentor-inner,
  .about-inner,
  .contacts-layout,
  .form-wrap {
    grid-template-columns: 1fr;
  }

  .hero-photo-placeholder,
  .mentor-photo-ph,
  .about-photo-ph {
    min-height: 420px;
  }

  .stages-row {
    grid-template-columns: 1fr;
  }

  .stage-divider {
    display: none;
  }

  .stage-card {
    width: 100%;
  }

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

@media (max-width: 820px) {
  .problems-grid,
  .reviews-grid,
  .reviews-big-grid,
  .certs-grid,
  .screenshots-grid,
  .inside-grid,
  .about-facts,
  .results-panel {
    grid-template-columns: 1fr;
  }

  .stage-full-card {
    grid-template-columns: 1fr;
  }

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

  .radio-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .rlabel,
  .clabel {
    align-items: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 108px;
    padding-bottom: 38px;
    gap: 24px;
  }

  .hero-content {
    order: 1;
  }

  .hero-photo-placeholder {
    order: 2;
    min-height: 340px;
    border-radius: 30px;
  }

  .hero-photo-img {
    min-height: 340px;
  }

  .hero-photo-badge {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 12px 14px;
    font-size: 0.95rem;
  }

  .section {
    padding: 78px 0;
  }

  .page-hero {
    min-height: 36vh;
    padding: 120px 20px 46px;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 0.72rem;
    max-width: 210px;
    line-height: 1.35;
  }

  .header {
    padding: 14px 14px;
  }

  .burger {
    width: 48px;
    height: 48px;
  }

  .container {
    width: min(100%, calc(100% - 20px));
  }

  .hero {
    width: min(100%, calc(100% - 16px));
    padding-left: 0;
    padding-right: 0;
    gap: 18px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.4rem);
    line-height: 0.98;
  }

  .hero-sub,
  .page-hero p,
  .section-sub {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .hero-cta {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    width: 100%;
    min-height: 52px;
    padding: 15px 20px;
  }

  .hero-photo-placeholder,
  .mentor-photo-ph,
  .about-photo-ph,
  .contacts-photo-ph {
    min-height: 260px;
    border-radius: 22px;
  }

  .about-photo-card .hero-photo-img {
    min-height: 260px;
  }

  .hero-photo-img {
    min-height: 260px;
  }

  .hero-photo-badge {
    font-size: 0.9rem;
    border-radius: 16px;
  }

  .problem-item,
  .inside-item,
  .review-card,
  .review-big-card,
  .pricing-card,
  .contact-block,
  .contacts-cta-block,
  .app-form,
  .stage-card,
  .stage-full-card,
  .cert-ph,
  .screenshot-ph,
  .fact {
    border-radius: 20px;
    padding: 18px;
  }

  .section-title {
    margin-bottom: 14px;
  }

  .pricing-card {
    padding: 26px 18px;
  }

  .form-wrap {
    padding: 12px;
    border-radius: 22px;
  }

  .app-form {
    padding: 18px;
  }

  .stages-row {
    gap: 10px;
  }

  .stage-card {
    width: 100%;
  }
}
