@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg: #08111f;
  --bg-2: #0f172a;
  --panel: rgba(15, 23, 42, .72);
  --panel-light: rgba(255,255,255,.06);
  --white: #ffffff;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --line: rgba(148,163,184,.18);
  --primary: #c8a24d;
  --primary-2: #f4d28a;
  --primary-dark: #9a772f;
  --shadow: 0 30px 80px rgba(0, 0, 0, .28);
  --shadow-soft: 0 14px 35px rgba(0, 0, 0, .14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(200,162,77,.12), transparent 28%),
    radial-gradient(circle at top right, rgba(244,210,138,.09), transparent 24%),
    linear-gradient(180deg, #07101d 0%, #0b1220 42%, #f8fafc 42%, #f8fafc 100%);
  color: var(--text);
}

a { color: inherit; }

.container {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.75), transparent 70%);
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  opacity: .55;
  animation: float 12s ease-in-out infinite;
}

.orb-1 {
  width: 24rem;
  height: 24rem;
  top: -6rem;
  left: -8rem;
  background: radial-gradient(circle, rgba(200,162,77,.26), transparent 68%);
}

.orb-2 {
  width: 20rem;
  height: 20rem;
  top: 10rem;
  right: -6rem;
  background: radial-gradient(circle, rgba(244,210,138,.17), transparent 70%);
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(18px) translateX(10px); }
}

.site-logo {
  height: 2.2rem;
  width: auto;
  display: block;
  object-fit: contain;
}

.main-content {
  position: relative;
  z-index: 1;
  padding-top: 4.5rem;
}

.fixed-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: rgba(7,16,29,.62);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav-wrapper {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  white-space: nowrap;
}

.logo-mark {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: .55rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  box-shadow: 0 10px 25px rgba(200,162,77,.28);
}

.logo-mark svg { width: 1rem; height: 1rem; }

.nav-links {
  display: flex;
  gap: 1.6rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: rgba(226,232,240,.88);
  font-size: .9rem;
  font-weight: 600;
  transition: color .2s ease, opacity .2s ease;
}

.nav-links a:hover {
  color: var(--primary-2);
}

.nav-actions {
  display: flex;
  gap: .75rem;
  align-items: center;
}

.nav-cta {
  text-decoration: none;
  padding: .58rem 1.1rem;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}

.nav-cta { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #1b1b1b; box-shadow: 0 10px 20px rgba(200,162,77,.18); }
.nav-cta:hover { transform: translateY(-1px); }

.nav-cta-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.12);
}
.nav-cta-secondary:hover {
  border-color: rgba(200,162,77,.45);
  background: rgba(200,162,77,.08);
}

.hero {
  padding: 5.8rem 0 4.8rem;
  color: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
  align-items: center;
}

.hero-badge {
  width: fit-content;
  padding: .45rem .9rem;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.08);
  color: #f8fafc;
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.35rem, 4vw, 4.55rem);
  line-height: 1.06;
  margin: 0 0 1.1rem;
  letter-spacing: -.04em;
}

.gold-text {
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text {
  font-size: 1.08rem;
  color: rgba(226,232,240,.82);
  line-height: 1.75;
  margin: 0 0 1.75rem;
  max-width: 43rem;
}

.hero-buttons, .cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-button-primary, .hero-button-secondary, .panel-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 1rem;
  font-weight: 800;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.hero-button-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #161616;
  padding: 1rem 1.6rem;
  box-shadow: 0 16px 30px rgba(200,162,77,.22);
}
.hero-button-primary:hover { transform: translateY(-2px); color: #161616; }

.hero-button-secondary {
  background: rgba(255,255,255,.04);
  color: #fff;
  padding: 1rem 1.6rem;
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
}
.hero-button-secondary:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(200,162,77,.35);
  color: #fff;
  transform: translateY(-2px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 1.25rem;
  padding: 1rem 1.05rem;
  backdrop-filter: blur(10px);
}

.stat-card strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: .22rem;
  color: #fff;
}

.stat-card span {
  display: block;
  color: rgba(226,232,240,.75);
  font-size: .85rem;
  line-height: 1.4;
}

.glass-panel, .premium-card {
  background: var(--white);
  border: 1px solid rgba(148,163,184,.2);
  box-shadow: var(--shadow);
}

.hero-panel {
  border-radius: 1.6rem;
  padding: 1.5rem;
  color: #0f172a;
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(200,162,77,.08), transparent 35%);
  pointer-events: none;
}

.hero-panel-top {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
  position: relative;
}

.avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #0f172a, #1f2937);
  color: var(--primary-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: var(--shadow-soft);
}

.lawyer-avatar {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid #c8a24d;
  box-shadow: 0 12px 28px rgba(200, 162, 77, 0.18);
  background: #fff;
}

.lawyer-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.panel-title {
  font-weight: 800;
  font-size: 1.05rem;
}

.panel-subtitle {
  color: #64748b;
  font-size: .9rem;
  margin-top: .2rem;
}

.panel-list {
  display: grid;
  gap: .75rem;
  margin-bottom: 1.25rem;
  position: relative;
}

.panel-item {
  background: linear-gradient(180deg, #fff, #f8fafc);
  border: 1px solid #e2e8f0;
  border-radius: .95rem;
  padding: .9rem 1rem;
  color: #334155;
  font-size: .95rem;
  transition: transform .2s ease, border-color .2s ease;
}

.panel-item:hover {
  transform: translateX(4px);
  border-color: #d6bf82;
}

.panel-cta {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #171717;
  padding: .98rem 1rem;
  position: relative;
  z-index: 1;
}
.panel-cta:hover { transform: translateY(-1px); color: #171717; }

.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  margin: 0 0 1rem;
  letter-spacing: -.03em;
  color: #0f172a;
}

.section-subtitle {
  text-align: center;
  color: #64748b;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 56rem;
  margin: 0 auto 2.5rem;
}

.about-section, .features, .pricing, .steps-section, .contacts-section, .cta-section {
  padding: 4.8rem 0;
}

.about-section, .steps-section, .contacts-section {
  background: #fff;
}

.lawyer-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  border-radius: 1.6rem;
  padding: 2rem;
  background: linear-gradient(180deg, #fff, #fbfdff);
  position: relative;
}

.lawyer-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1.6rem;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.lawyer-avatar {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #0f172a, #1f2937);
  color: var(--primary-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 1.6rem;
}

.badge-exp, .badge-popular {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .85rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.badge-exp {
  background: #f7f1df;
  color: #7b5a17;
  border: 1px solid #ead7a8;
}

.badge-popular {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #181818;
  width: fit-content;
  margin: 0 auto .75rem;
  box-shadow: 0 10px 20px rgba(200,162,77,.16);
}

.lawyer-info h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 .75rem;
}

.lawyer-info p {
  margin: 0 0 1rem;
  color: #475569;
  line-height: 1.75;
}

.testimonial {
  background: #f8fafc;
  border-left: 4px solid var(--primary);
  padding: 1rem 1rem 1rem 1.25rem;
  border-radius: .9rem;
  color: #334155;
  font-style: italic;
  line-height: 1.75;
}

.features-grid, .pricing-grid, .start-cards, .contact-grid {
  display: grid;
  gap: 1.5rem;
}

.features-grid {
  grid-template-columns: repeat(3, 1fr);
}

.pricing-grid {
  grid-template-columns: repeat(3, 1fr);
}

.start-cards {
  grid-template-columns: repeat(3, 1fr);
}

.contact-grid {
  grid-template-columns: repeat(3, 1fr);
}

.features-card, .pricing-card, .start-card, .contact-card {
  background: #fff;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 1.5rem;
  padding: 1.8rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.features-card::before, .pricing-card::before, .start-card::before, .contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(200,162,77,.05), transparent 35%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}

.features-card:hover::before,
.pricing-card:hover::before,
.start-card:hover::before,
.contact-card:hover::before {
  opacity: 1;
}

.hover-rise {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.hover-rise:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 45px rgba(15,23,42,.12);
  border-color: rgba(200,162,77,.25);
}

.icon-bubble {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: transform .25s ease;
}
.hover-rise:hover .icon-bubble { transform: scale(1.05); }

.icon-security { background: #f7f1df; color: #8a651a; }
.icon-speed { background: #f6f0ff; color: #7c3aed; }
.icon-analytics { background: #fff0f6; color: #be185d; }

.features-card h3, .start-card h3, .plan-title {
  margin: 0 0 .75rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  text-align: center;
}

.features-card p, .start-card p, .price-list {
  color: #475569;
  line-height: 1.75;
  font-size: .95rem;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
}

.pricing-featured {
  border-color: rgba(200,162,77,.35);
  transform: scale(1.03);
}

.price {
  text-align: center;
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: #0f172a;
}

.price-list {
  margin: 0 0 1.5rem;
  padding-left: 1.1rem;
}

.start-step {
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
}

.start-icon-1 { background: linear-gradient(135deg, #0f172a, #334155); }
.start-icon-2 { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.start-icon-3 { background: linear-gradient(135deg, #be185d, #f43f5e); }

.cta-section {
  background: linear-gradient(180deg, #08111f, #0f172a);
  color: #fff;
}

.cta-title {
  margin-bottom: 1rem;
  color: #fff;
}

.cta-subtitle {
  margin-bottom: 2rem;
  color: rgba(226,232,240,.82);
}

.contact-card {
  text-align: center;
}

.contact-label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
  color: #a8873d;
  margin-bottom: .5rem;
}

.contact-card a, .contact-card span {
  text-decoration: none;
  color: #0f172a;
  font-weight: 800;
  font-size: 1.05rem;
}

@media (max-width: 991.98px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .features-grid, .pricing-grid, .start-cards, .contact-grid { grid-template-columns: 1fr; }
  .lawyer-card { flex-direction: column; }
  .hero-stats { grid-template-columns: 1fr; }
  .pricing-featured { transform: none; }
  .nav-wrapper { padding: .75rem 0; flex-wrap: wrap; }
}

@media (max-width: 575.98px) {
  .nav-actions { width: 100%; }
  .nav-cta { flex: 1 1 auto; text-align: center; }
  .hero-buttons, .cta-buttons { width: 100%; }
  .hero-button-primary, .hero-button-secondary { width: 100%; }
}

.section-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.section-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


.site-footer {
  background: #08111f;
  color: #e2e8f0;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 3rem 0 1.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-brand-top {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1rem;
}

.footer-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

.footer-role {
  font-size: .9rem;
  color: #94a3b8;
  margin-top: .15rem;
}

.footer-text {
  color: #94a3b8;
  line-height: 1.75;
  margin: 0;
  max-width: 34rem;
}

.footer-links-block {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.footer-title {
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #c8a24d;
  margin-bottom: .4rem;
}

.footer-links-block a,
.footer-links-block span {
  text-decoration: none;
  color: #e2e8f0;
  font-size: .95rem;
  transition: color .2s ease, transform .2s ease;
}

.footer-links-block a:hover {
  color: #f4d28a;
  transform: translateX(2px);
}

.footer-bottom {
  margin-top: 2.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #94a3b8;
  font-size: .9rem;
  flex-wrap: wrap;
}

.footer-bottom a {
  color: #f4d28a;
  text-decoration: none;
  font-weight: 700;
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: linear-gradient(135deg, #c8a24d, #f4d28a);
  color: #111827;
  box-shadow: 0 18px 35px rgba(200,162,77,.28);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, box-shadow .25s ease;
  z-index: 60;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  box-shadow: 0 22px 42px rgba(200,162,77,.35);
  transform: translateY(-2px);
}

@media (max-width: 991.98px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: linear-gradient(135deg, #c8a24d, #f4d28a);
  color: #111827;
  box-shadow: 0 18px 35px rgba(200,162,77,.28);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, box-shadow .25s ease;
  z-index: 60;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  box-shadow: 0 22px 42px rgba(200,162,77,.35);
  transform: translateY(-2px);
}

.back-to-top-icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: #111827;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.details-btn {
  margin-top: auto;
  align-self: center;
  border: 1px solid rgba(200, 162, 77, 0.35);
  background: linear-gradient(135deg, rgba(200, 162, 77, 0.12), rgba(244, 210, 138, 0.16));
  color: #0f172a;
  padding: 0.72rem 1rem;
  border-radius: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.details-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(200, 162, 77, 0.6);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 17, 31, 0.72);
  backdrop-filter: blur(8px);
}

.modal-window {
  position: relative;
  width: min(720px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: #fff;
  color: #0f172a;
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.modal-close:hover {
  background: #e2e8f0;
}

.modal-kicker {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: #a8873d;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.modal-header h3 {
  margin: 0 0 0.75rem;
  font-size: 1.8rem;
}

.modal-header p {
  margin: 0;
  color: #475569;
  line-height: 1.7;
}

.modal-body {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.modal-block {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1rem;
}

.modal-block h4 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.modal-block ul {
  margin: 0;
  padding-left: 1.2rem;
  color: #334155;
  line-height: 1.7;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 575.98px) {
  .modal-window {
    width: calc(100% - 1rem);
    max-height: calc(100vh - 1rem);
    padding: 1.25rem;
    border-radius: 1.2rem;
  }

  .modal-close {
    width: 3rem;
    height: 3rem;
    top: 0.6rem;
    right: 0.6rem;
  }
}