:root {
  --bg: #ffffff;
  --bg-dark: #0f172a;
  --bg-soft: #f1f5f9;
  --text: #1e293b;
  --text-muted: #64748b;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --border: #e2e8f0;
  --white: #ffffff;
  --on-accent: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.16);
}

.theme-premium {
  --bg: #fbfaf6;
  --bg-dark: #0b1f1a;
  --bg-soft: #f1ede2;
  --text: #26302a;
  --text-muted: #6f7d74;
  --accent: #c8a951;
  --accent-dark: #a98d3b;
  --border: #e5ded0;
  --on-accent: #0b1f1a;
}

.theme-tech {
  --bg: #ffffff;
  --bg-dark: #1e1b4b;
  --bg-soft: #eef2ff;
  --text: #1e293b;
  --text-muted: #64748b;
  --accent: #6366f1;
  --accent-dark: #4f46e5;
  --border: #e2e8f0;
  --on-accent: #ffffff;
}

.theme-terracotta {
  --bg: #fffaf5;
  --bg-dark: #2b1b12;
  --bg-soft: #faf0e6;
  --text: #2f241c;
  --text-muted: #7a6a5b;
  --accent: #bc6c3c;
  --accent-dark: #a45a2e;
  --border: #eadfd2;
  --on-accent: #ffffff;
}

.theme-ocean {
  --bg: #ffffff;
  --bg-dark: #083344;
  --bg-soft: #ecfeff;
  --text: #1d3a36;
  --text-muted: #5b7f7a;
  --accent: #0d9488;
  --accent-dark: #0f766e;
  --border: #d1e7e7;
  --on-accent: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Golos Text", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

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

img {
  max-width: 100%;
}

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
}

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

.nav__cta {
  background: var(--accent);
  color: var(--on-accent) !important;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
}

.nav__cta:hover {
  background: var(--accent-dark);
  color: var(--on-accent) !important;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.2s;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: 0.2s;
}

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35);
}

.btn--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

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

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

.btn--max {
  background: var(--bg-dark);
  color: var(--white);
  border: 2px solid var(--bg-dark);
}

.steps__bonus__btns .btn--max,
.contact__bonus__btns .btn--max {
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--max:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  transform: translateY(-2px);
}

.btn--block {
  display: block;
  width: 100%;
}

/* ---------- Hero ---------- */

.hero {
  background: var(--bg-dark);
  color: var(--white);
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -160px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.35), transparent 70%);
  border-radius: 50%;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: rgba(249, 115, 22, 0.15);
  color: var(--accent);
  border: 1px solid rgba(249, 115, 22, 0.4);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.18;
  font-weight: 800;
  margin-bottom: 18px;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero__sub {
  font-size: 18px;
  color: #cbd5e1;
  margin-bottom: 28px;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero__price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.hero__price-old {
  font-size: 20px;
  color: #94a3b8;
  text-decoration: line-through;
}

.hero__price-new {
  font-size: 40px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}

.hero__price-label {
  display: inline-block;
  margin-top: 10px;
  color: #c9b26a;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(200, 169, 81, 0.1);
  border: 1px solid rgba(200, 169, 81, 0.3);
  padding: 5px 14px;
  border-radius: 100px;
}

.hero__price {
  position: relative;
}

.hero__arrow {
  position: absolute;
  top: 0;
  left: 0;
  width: 760px;
  max-width: none;
  height: auto;
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
}

.hero__arrow-line {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 9 9;
  fill: none;
  animation: hero-dash 1.1s linear infinite;
}

.hero__arrow-head {
  fill: var(--accent);
}

.hero .lead-card {
  position: relative;
  z-index: 2;
}

@keyframes hero-dash {
  to { stroke-dashoffset: -18; }
}

.hero .btn--ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

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

.hero__facts {
  list-style: none;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.hero__facts li {
  font-size: 14px;
  color: #94a3b8;
}

.hero__facts strong {
  display: block;
  font-size: 20px;
  color: var(--white);
}

/* ---------- Lead card / form ---------- */

.lead-card {
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.lead-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.lead-card__note {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 18px;
}

.lead-card label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
}

.lead-card input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  color: var(--text);
  background: var(--bg-soft);
  transition: 0.2s;
}

.lead-card input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
}

.lead-card__hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: center;
}

.lead-card__success {
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  background: #dcfce7;
  color: #166534;
  font-weight: 600;
  text-align: center;
}

.lead-card .btn {
  margin-top: 4px;
}

.lead-card--contact .btn + .btn {
  margin-top: 12px;
}

.lead-card--contact .lead-card__note {
  margin-bottom: 20px;
}

/* ---------- Sections common ---------- */

section {
  padding: 84px 0;
}

.section-title {
  font-size: 34px;
  font-weight: 800;
  text-align: left;
  margin-bottom: 16px;
}

.section-sub {
  text-align: left;
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 48px;
  max-width: 640px;
}

/* ---------- Why ---------- */

.why {
  background: var(--bg-soft);
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.why__card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: 0.2s;
}

.why__card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.why__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  min-height: 52px;
}

.why__num--check {
  width: 48px;
  height: 48px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  font-size: 24px;
}

.why__card h3 {
  font-size: 17px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin: 10px 0 8px;
}

.why__card p {
  font-size: 14.5px;
  color: var(--text-muted);
}

/* ---------- Steps bonus ---------- */

.steps__bonus {
  margin-top: 32px;
  background: var(--bg-dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.steps__bonus p {
  max-width: 640px;
  color: #cbd5e1;
}

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

.steps__bonus__btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 260px;
}

/* ---------- Cases foot ---------- */

.cases__foot {
  margin-top: 28px;
  text-align: center;
  color: #94a3b8;
  font-size: 14.5px;
}

.case-card__inv {
  font-weight: 700;
  color: var(--text) !important;
  font-size: 15px !important;
}

/* ---------- Pain ---------- */

.pain {
  background: var(--bg-soft);
}

.pain__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0 32px;
}

.pain__item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.pain__icon {
  width: 40px;
  height: 40px;
  line-height: 38px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #fee2e2;
  color: #dc2626;
  font-weight: 800;
  font-size: 18px;
}

.pain__item p {
  font-size: 15px;
}

.pain__outro {
  text-align: center;
  font-size: 17px;
  color: var(--text-muted);
}

/* ---------- Steps ---------- */

.steps__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.step,
.step-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 26px;
}

.step-card {
  display: flex;
  flex-direction: column;
}

.step-card h3 {
  font-size: 18px;
  margin: 12px 0 8px;
}

.step-card > p {
  font-size: 14.5px;
  color: var(--text-muted);
}

.step-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.step-card__tags span {
  background: rgba(200, 169, 81, 0.12);
  border: 1px solid rgba(200, 169, 81, 0.35);
  color: #a98d3b;
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}

.step-card__btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.step__num {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
}

.step h3 {
  font-size: 18px;
  margin: 12px 0 8px;
}

.step p {
  font-size: 14.5px;
  color: var(--text-muted);
}

/* ---------- Services / pricing ---------- */

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  background: var(--white);
  position: relative;
}

.service-card--hit {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-lg);
}

.service-card__tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 13px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.service-card__price {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent-dark);
  margin-bottom: 18px;
}

.service-card ul {
  list-style: none;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-card ul li {
  padding: 6px 0 6px 24px;
  position: relative;
  font-size: 15px;
}

.service-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

.service-card__note {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* ---------- Cases ---------- */

.cases {
  background: var(--bg-dark);
  color: var(--white);
}

.cases .section-title {
  color: var(--white);
}

.cases__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0 56px;
}

.stat {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}

.stat__num {
  display: block;
  font-size: 34px;
  font-weight: 800;
  color: var(--accent);
}

.stat p {
  color: #94a3b8;
  font-size: 14px;
}

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

.case-card {
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius);
  padding: 26px;
}

.case-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  background: linear-gradient(135deg, var(--white), #fffdf4);
  border: 1px solid rgba(200, 169, 81, 0.3);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
}

.case-card__shot img {
  width: 100%;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.case-card__shot p {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
}

.case-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.case-card__head h3 {
  font-size: 18px;
}

.case-card__result {
  background: #dcfce7;
  color: #166534;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

.case-card > p {
  color: var(--text-muted);
  font-size: 14.5px;
  margin-bottom: 18px;
}

.case-card__row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px dashed var(--border);
  font-size: 14.5px;
}

.case-card__row span {
  color: var(--text-muted);
}

.case-card .case-card__main {
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

.case-card__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.case-card__text {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.case-card__stats div {
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 10px 12px;
}

.case-card__stats span {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.case-card__stats strong {
  font-size: 15px;
  color: var(--accent-dark);
}

.case-card__ach {
  background: linear-gradient(135deg, rgba(200, 169, 81, 0.14), rgba(200, 169, 81, 0.05));
  border: 1px solid rgba(200, 169, 81, 0.3);
  border-radius: 12px;
  padding: 14px 16px;
}

.case-card__ach p {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
}

.case-card__ach ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.case-card__ach li {
  font-size: 13.5px;
  color: var(--text-muted);
  padding-left: 14px;
  position: relative;
  margin-bottom: 4px;
}

.case-card__ach li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #a98d3b;
}

/* ---------- Reviews ---------- */

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.review {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 26px;
}

.review__stars {
  color: #f59e0b;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.review__text {
  font-size: 15px;
  margin-bottom: 14px;
}

.review__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
}

.reviews__gallery {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
}

.gallery__track {
  flex: 1;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px;
  scrollbar-width: none;
}

.gallery__track::-webkit-scrollbar {
  display: none;
}

.gallery__slide {
  flex: 0 0 auto;
  width: auto;
  align-self: flex-start;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 10px;
}

.gallery__slide img {
  height: auto;
  max-height: calc(100vh - 220px);
  width: auto;
  max-width: 80vw;
  display: block;
  border-radius: 8px;
  object-fit: contain;
}

.gallery__btn {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: 0.2s;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery__btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.gallery__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* ---------- About ---------- */

.about__grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 48px;
  align-items: center;
}

.about__photo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 18px 0;
}

.about__photo img {
  flex: 1;
  width: 0;
  height: auto;
  display: block;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.about__photo img:nth-child(1) {
  flex: 2.4;
  z-index: 1;
  transform: translateX(16%);
}

.about__photo img:nth-child(2) {
  flex: 4;
  z-index: 2;
}

.about__photo img:nth-child(3) {
  flex: 1.2;
  z-index: 1;
  transform: translateX(-16%);
}

.about__content .section-title {
  text-align: left;
}

.about__content p {
  color: var(--text-muted);
  margin-bottom: 14px;
}

.about__list {
  list-style: none;
  margin: 20px 0 26px;
}

.about__list li {
  padding: 6px 0 6px 26px;
  position: relative;
  font-size: 15px;
}

.about__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

/* ---------- FAQ ---------- */

.faq__list {
  max-width: 760px;
  margin: 40px auto 0;
}

.faq__item {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  background: var(--white);
}

.faq__item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 18px 22px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq__item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--accent);
  font-weight: 700;
}

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

.faq__item p {
  padding: 0 22px 18px;
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- Contact ---------- */

.contact {
  background: var(--bg-soft);
}

.contact__bonus {
  margin: 0 auto;
  background: var(--bg-dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.contact__bonus .section-title {
  text-align: left;
  color: var(--white);
}

.contact__bonus p {
  max-width: 620px;
  margin-top: 10px;
  color: #cbd5e1;
}

.contact__bonus__note {
  font-size: 13px;
  color: #94a3b8;
  font-style: italic;
}

.contact__bonus__btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 260px;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--bg-dark);
  color: #94a3b8;
  padding: 28px 0;
  font-size: 14px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.footer__links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer__links a {
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 90;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  box-shadow: var(--shadow-lg);
  transition: 0.2s;
}

.to-top:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
}

/* ---------- Legal pages ---------- */

.legal {
  padding: 56px 0 72px;
}

.legal__inner {
  max-width: 860px;
}

.legal__inner .section-title {
  margin-bottom: 20px;
}

.legal h2 {
  margin: 28px 0 10px;
  font-size: 20px;
  color: var(--text);
}

.legal p,
.legal li {
  color: var(--text-muted);
  margin-bottom: 10px;
}

.legal ul {
  padding-left: 22px;
}

.legal__muted {
  color: var(--text-muted);
}

.legal__back {
  margin-top: 36px;
}

.legal__back a {
  font-weight: 600;
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero__arrow {
    display: none;
  }

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

  .hero {
    padding: 56px 0 64px;
  }

  .pain__grid,
  .why__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps__grid,
  .cases__stats,
  .cases__grid,
  .services__grid,
  .reviews__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-card--featured {
    grid-template-columns: 1fr;
  }

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

  .about__photo {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 18px;
    transform: translateY(-130%);
    transition: 0.3s;
    box-shadow: var(--shadow-lg);
  }

  .nav.open {
    transform: none;
  }

  .burger {
    display: flex;
  }
}

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

  .hero h1 {
    font-size: 32px;
  }

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

  .pain__grid,
  .why__grid,
  .steps__grid,
  .cases__stats,
  .cases__grid,
  .services__grid,
  .reviews__grid {
    grid-template-columns: 1fr;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__price-new {
    font-size: 32px;
  }

  .footer__inner {
    flex-direction: column;
  }

  .contact__bonus {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 28px 22px;
  }

  .contact__bonus .section-title {
    font-size: 26px;
  }

  .contact__bonus__btns {
    width: 100%;
    min-width: 0;
  }

  .contact__bonus__btns .btn {
    width: 100%;
  }

  .to-top {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .gallery__slide {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 8px;
  }

  .gallery__slide img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 230px);
    object-fit: contain;
  }

  .gallery__btn {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .reviews__gallery {
    gap: 6px;
    margin-top: 28px;
  }
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 15, 25, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.lightbox img {
  max-width: 94vw;
  max-height: 94vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  cursor: zoom-out;
}

.lightbox--open {
  opacity: 1;
  visibility: visible;
}

.lightbox-locked {
  overflow: hidden;
}
