/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: #09090b;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== Container ===== */
.container-main {
  width: 100%;
  max-width: 1480px;
  margin-left: auto;
  margin-right: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 768px) {
  .container-main { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1440px) {
  .container-main { padding-left: 2.5rem; padding-right: 2.5rem; }
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.header-inner {
  height: 72px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .header-inner { grid-template-columns: 1fr auto 1fr; }
}
.logo { display: flex; align-items: center; gap: 0.5rem; font-size: 19px; color: #8b4513; white-space: nowrap; }
.logo img { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.logo b { font-weight: 700; }
.nav-desktop { display: none; gap: 1.5rem; justify-content: center; }
@media (min-width: 768px) {
  .nav-desktop { display: flex; }
}
.nav-desktop a {
  font-size: 15px;
  font-weight: 500;
  color: #52525b;
  transition: color 0.2s;
}
.nav-desktop a:hover { color: #c2410c; }
.header-right { justify-self: end; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 15px;
  font-weight: 500;
  border-radius: 0.625rem;
  border: none;
  cursor: pointer;
  background: #8b4513;
  color: #fff;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn:hover { background: #7a3b10; }
@media (max-width: 560px) {
  .btn { white-space: normal; text-align: center; }
  .banner-buttons .btn { width: 100%; }
}
.btn-sm { padding: 0.5rem 1rem; font-size: 14px; }
.btn-ghost {
  background: #fff7ed;
  color: #8b4513;
}
.btn-ghost:hover { background: #ffedd5; }

/* ===== Main ===== */
.main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding-top: 1.5rem; padding-bottom: 4rem; }
@media (min-width: 1024px) {
  .main { padding-top: 2.5rem; }
}

/* ===== Sections ===== */
.section-plain { padding: 0; }
.section-card {
  background: #fff;
  border: 1px solid rgba(82,82,91,0.12);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
@media (min-width: 768px) {
  .section-card { padding: 2rem; }
}
.section-title {
  font-size: clamp(24px, 2.6vw, 37px);
  font-weight: 600;
  line-height: 1.2;
}
.section-desc {
  font-size: 17px;
  color: #52525b;
  max-width: 70ch;
  margin-top: 0.625rem;
}
.section-header-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

/* ===== Banner ===== */
.banner {
  margin-top: 0.75rem;
  border-radius: 1.5rem;
  overflow: hidden;
  background: linear-gradient(135deg, #8b4513 0%, #a0522d 50%, #cd853f 100%);
  color: #fff;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: end;
  position: relative;
}
@media (min-width: 768px) {
  .banner { padding: 2rem 2.5rem; grid-template-columns: minmax(0,1fr) auto; gap: 2rem; }
}
.banner-title {
  font-size: clamp(36px, 6.4vw, 92px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}
.banner-subtitle {
  font-size: 17px;
  font-weight: 500;
  margin-top: 0.75rem;
  max-width: 50ch;
  opacity: 0.95;
}
.banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.banner-meta {
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  opacity: 0.9;
}
@media (min-width: 768px) {
  .banner-meta { text-align: right; font-size: 17px; }
}
.banner-logo {
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 200px;
  height: 200px;
  opacity: 0.3;
  pointer-events: none;
}

/* ===== Cards ===== */
.cards-2, .cards-3, .cards-4 {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.cards-2, .cards-3, .cards-4 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) {
  .cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.card-row {
  background: #fff7ed;
  border-radius: 0.875rem;
}
.card-padded { padding: 1.25rem; }
@media (min-width: 768px) {
  .card-padded { padding: 1.5rem; }
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.card-title { font-size: 18px; font-weight: 500; line-height: 1.3; margin-bottom: 0.5rem; }
.card-title-lg { font-size: 23px; font-weight: 500; line-height: 1.2; }
.card-text { font-size: 15px; color: #52525b; }
.card-text-lg { font-size: 18px; font-weight: 500; margin: 0.5rem 0; }

/* ===== Tags ===== */
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  padding: 0.375rem 0.75rem;
}
.tag-teal { background: #b2f2ea; color: #0d3b36; }
.tag-amber { background: #ffe4d1; color: #c2410c; }
.tag-brown { background: #eaddcf; color: #5c3a1e; }
.tag-coral { background: #fecaca; color: #991b1b; }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.tag-block { margin-top: 0.75rem; }

/* ===== Lists ===== */
.list-dots { display: grid; gap: 7px; margin: 0.75rem 0; }
.list-dots li {
  display: flex;
  gap: 0.625rem;
  font-size: 15px;
}
.list-dots li::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8b4513;
  margin-top: 0.5rem;
}
.meta-list {
  display: grid;
  gap: 3px;
  font-size: 15px;
  color: #52525b;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(82,82,91,0.1);
  margin: 0.75rem 0;
}
.meta-list span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.meta-list svg { flex: none; }

/* ===== Coach ===== */
.coach {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: stretch;
}
@media (min-width: 768px) {
  .coach { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.coach-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.875rem;
  min-height: 300px;
}
.coach-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  min-width: 0;
}
.stats { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
.stats-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.stat b {
  display: block;
  font-size: clamp(32px, 3vw, 44px);
  font-weight: 600;
  line-height: 1;
}
.stat span {
  display: block;
  font-size: 14px;
  color: #52525b;
  margin-top: 0.25rem;
}
.stat-large b { font-size: clamp(48px, 5vw, 72px); }
.stat-large span { font-size: 15px; }

/* ===== Goal ===== */
.num { font-size: 36px; font-weight: 600; line-height: 1; }
.num-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #8b4513;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.accent-text {
  display: block;
  font-size: 18px;
  font-weight: 500;
  color: #c2410c;
  line-height: 1.4;
  margin: 0.5rem 0;
}
.summary-bar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  background: #f3f4f6;
  border-radius: 0.875rem;
  padding: 1rem 1.25rem;
  font-size: 15px;
  font-weight: 500;
  margin-top: 1.25rem;
}
.dot {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #8b4513;
  flex: none;
}
.dot-accent {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #c2410c;
  flex: none;
}

/* ===== Price ===== */
.price {
  font-size: 31px;
  font-weight: 600;
  line-height: 1;
}
.price small {
  font-size: 15px;
  font-weight: 500;
  color: #52525b;
  margin-left: 0.375rem;
}
.card-footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.5rem;
}
.hint { font-size: 15px; color: #52525b; }

/* ===== Razbor ===== */
.razbor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
  align-items: start;
}
@media (min-width: 768px) {
  .razbor-grid { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); }
}
.cover {
  position: relative;
  aspect-ratio: 210/297;
  max-width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #8b4513;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.cover-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
}
.cover-badge {
  position: absolute;
  left: 7%;
  right: 7%;
  top: 6%;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 9999px;
  padding: 0.25rem 0.625rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 11px;
  font-weight: 700;
  color: #2a1405;
}
.cover-title-block {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 14%;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 0.75rem;
  padding: 0.75rem;
}
.cover-title-block b {
  display: block;
  font-size: 21px;
  font-weight: 700;
  color: #c8380f;
  margin-bottom: 0.375rem;
  letter-spacing: -0.02em;
}
.cover-title-block span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}
.cover-footer {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 5%;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 10px;
  padding: 0.375rem 0.625rem;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}
.razbor-content { display: grid; gap: 0.75rem; }
.card-bordered {
  border: 1px solid rgba(82,82,91,0.12);
  border-radius: 0.875rem;
  padding: 1rem 1.25rem;
  display: grid;
  gap: 0.625rem;
}
.question {
  font-size: 18px;
  font-weight: 600;
  color: #c2410c;
}

/* ===== Tabs (CSS only) ===== */
.tabs { position: relative; }
.tabs input { position: absolute; opacity: 0; width: 0; height: 0; }
.tab {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  border-radius: 9999px;
  padding: 0.5rem 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
  color: #52525b;
  height: fit-content;
}
#gov:checked ~ .tab-gov,
#opp:checked ~ .tab-opp {
  background: #ffe4d1;
  color: #c2410c;
}
#opp:checked ~ .tab-gov,
#gov:checked ~ .tab-opp {
  background: #fff;
  color: #52525b;
}
.tab-content { display: none; }
#gov:checked ~ .gov-content,
#opp:checked ~ .opp-content { display: grid; }
.tab-content { flex: 1 0 100%; margin-top: 0.75rem; background: #fff; border-radius: 0.75rem; padding: 1rem; gap: 0.75rem; }
.tabs input:focus-visible + input + .tab-gov, .tabs input:focus-visible ~ .tab-opp { outline: 2px solid #c2410c; }
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.content-block { min-width: 0; }
.content-example { background: #fff7ed; border-radius: 0.625rem; padding: 0.625rem 0.75rem; }
.content-example p b { font-size: 15px; }
.content-compare { border: 1.5px dashed #fed7aa; border-radius: 0.625rem; padding: 0.625rem 0.75rem; }
.content-compare ol { list-style: none; display: grid; gap: 0.25rem; font-size: 15px; }
.content-compare li { display: flex; gap: 0.375rem; }
.content-compare li > span { flex: none; font-weight: 600; color: #c2410c; }
.content-block .label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #52525b;
  margin-bottom: 0.125rem;
}
.content-block > b { font-size: 18px; font-weight: 600; line-height: 1.3; display: block; }
.content-block p { font-size: 15px; }

/* ===== Records ===== */
.records-grid { align-items: stretch; }
.card-accent {
  background: #fff3e8;
  border-radius: 0.875rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 200px;
  position: relative;
  overflow: hidden;
}
.bg-logo {
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 320px;
  height: 320px;
  opacity: 0.2;
  pointer-events: none;
}
.big-num {
  position: relative;
  z-index: 1;
  font-size: 84px;
  line-height: 0.9;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #c2410c;
}
.big-text {
  position: relative;
  z-index: 1;
  font-size: 18px;
  font-weight: 500;
}

/* ===== FAQ ===== */
.faq-list { margin-top: 1rem; }
.faq-item {
  border-bottom: 1px solid rgba(82,82,91,0.1);
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  flex: none;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23c2410c' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat center;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item p {
  padding-bottom: 1rem;
  font-size: 15px;
  color: #52525b;
  max-width: 70ch;
}

/* ===== Links ===== */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: #c2410c;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
.link-arrow:hover { text-decoration: underline; }
.link-arrow svg { flex: none; }
.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

/* ===== Footer ===== */
.footer {
  background: #f9f9f9;
  border-top: 1px solid rgba(82,82,91,0.08);
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.04);
  margin-top: 2.5rem;
}
.footer-inner { padding: 3rem 0; }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.footer-title {
  font-size: clamp(24px, 2.2vw, 31px);
  font-weight: 600;
  line-height: 1.2;
}
.footer-text {
  font-size: 15px;
  color: #52525b;
  margin-top: 0.5rem;
  max-width: 50ch;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(82,82,91,0.1);
  font-size: 15px;
  color: #52525b;
}

.link-inline { color: #c2410c; font-weight: 500; }
.link-inline:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid #c2410c; outline-offset: 2px; }
