/* ==========================================================================
   MODERN ADVOCATE DESIGN SYSTEM - ADVOKAT-BOROVIKOV.RF
   ========================================================================== */

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', sans-serif;

  /* Solid noble gold palette (no gaudy multi-color gradients) */
  --clr-gold: #c59b27;
  --clr-gold-hover: #ad861a;
  --clr-gold-active: #957214;
  --clr-gold-light: #dfc066;
  --clr-gold-subtle: rgba(197, 155, 39, 0.12);
  --clr-gold-glow: rgba(197, 155, 39, 0.25);

  --clr-dark: #0b1320;
  --clr-dark-surface: #111a2c;
  --clr-dark-card: #172238;
  --clr-dark-border: rgba(255, 255, 255, 0.08);

  --clr-light-bg: #f8fafc;
  --clr-light-surface: #ffffff;
  --clr-light-subtle: #f1f5f9;
  --clr-border: #e2e8f0;

  --clr-text: #1e293b;
  --clr-text-muted: #64748b;
  --clr-text-light: #f8fafc;
  --clr-text-light-muted: #94a3b8;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 16px 38px rgba(15, 23, 42, 0.1);
  --shadow-gold: 0 4px 14px rgba(197, 155, 39, 0.25);
  --shadow-gold-hover: 0 8px 22px rgba(197, 155, 39, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 50px;

  --transition-fast: 0.18s ease-in-out;
  --transition-normal: 0.25s ease-in-out;
}

/* Base resets & typography */
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  font-family: var(--font-main);
  color: var(--clr-text);
  background-color: var(--clr-light-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  position: relative;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6, .fs-1, .fs-2, .fs-3 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.text-gold {
  color: var(--clr-gold) !important;
}

.text-kotchuraspas {
  color: var(--clr-gold) !important;
}

.advid {
  color: var(--clr-gold);
  text-decoration: none;
  transition: var(--transition-fast);
}

.advid:hover {
  color: var(--clr-gold-light);
  text-decoration: underline;
}

.width100 {
  width: 100%;
}

.danger-a {
  color: var(--clr-gold);
  text-decoration: underline;
  transition: var(--transition-fast);
}

.danger-a:hover {
  color: var(--clr-gold-hover);
}

/* ==========================================================================
   NAVIGATION BAR (PINNED TO TOP / STICKY)
   ========================================================================== */
.site-navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1050;
  transition: var(--transition-normal);
  padding: 0.85rem 0;
}

.site-navbar.navbar-dark-mode {
  background: rgba(11, 19, 32, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(197, 155, 39, 0.2);
}

.site-navbar.navbar-light-mode {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--clr-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* White mobile burger toggler icon */
.navbar-dark .navbar-toggler,
.navbar-dark-mode .navbar-toggler,
.site-navbar.navbar-dark-mode .navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.65rem;
}

.navbar-dark .navbar-toggler:focus,
.navbar-dark-mode .navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.35);
}

.navbar-dark .navbar-toggler-icon,
.navbar-dark-mode .navbar-toggler-icon,
.site-navbar.navbar-dark-mode .navbar-toggler-icon,
.navbar-toggler-icon.light {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Light mode toggler */
.navbar-light-mode .navbar-toggler {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.65rem;
}

.navbar-light-mode .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2815, 23, 42, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.site-navbar .nav-link {
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-pill);
  transition: var(--transition-fast);
}

.site-navbar.navbar-dark-mode .nav-link {
  color: rgba(248, 250, 252, 0.85);
}

.site-navbar.navbar-dark-mode .nav-link:hover,
.site-navbar.navbar-dark-mode .nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.site-navbar.navbar-light-mode .nav-link {
  color: #334155;
}

.site-navbar.navbar-light-mode .nav-link:hover,
.site-navbar.navbar-light-mode .nav-link.active {
  color: var(--clr-gold-hover);
  background: var(--clr-light-subtle);
}

.nav-phone-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-heading);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: var(--transition-fast);
}

.navbar-dark-mode .nav-phone-badge {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(197, 155, 39, 0.3);
}

.navbar-dark-mode .nav-phone-badge:hover {
  background: rgba(197, 155, 39, 0.2);
  border-color: var(--clr-gold);
  color: #ffffff;
}

.navbar-light-mode .nav-phone-badge {
  color: #0f172a;
  background: var(--clr-light-subtle);
  border: 1px solid var(--clr-border);
}

.navbar-light-mode .nav-phone-badge:hover {
  background: var(--clr-gold-subtle);
  border-color: var(--clr-gold);
  color: #0f172a;
}

.nav-phone-badge i {
  color: var(--clr-gold);
}

/* ==========================================================================
   BUTTONS (CLEAN, SOLID, TASTEFUL - NO AI GRADIENTS)
   ========================================================================== */
.btn-kotchuraspas,
.btn-luxury {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.72rem 1.65rem;
  border-radius: var(--radius-pill);
  background-color: var(--clr-gold);
  color: #ffffff !important;
  border: 1px solid #b38b1e;
  box-shadow: var(--shadow-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
  text-decoration: none;
  cursor: pointer;
}

.btn-kotchuraspas:hover,
.btn-luxury:hover {
  background-color: var(--clr-gold-hover);
  border-color: #9c7816;
  color: #ffffff !important;
  box-shadow: var(--shadow-gold-hover);
  transform: translateY(-1px);
}

.btn-kotchuraspas:active,
.btn-luxury:active {
  background-color: var(--clr-gold-active);
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-luxury-outline {
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.72rem 1.65rem;
  border-radius: var(--radius-pill);
  background: transparent;
  color: #ffffff !important;
  border: 1.5px solid rgba(197, 155, 39, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
  text-decoration: none;
}

.btn-luxury-outline:hover {
  background: rgba(197, 155, 39, 0.15);
  border-color: var(--clr-gold);
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-wrapper {
  position: relative;
  background: linear-gradient(165deg, #070d17 0%, #0e1728 50%, #131f36 100%);
  padding: 2rem 0 4rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(197, 155, 39, 0.15);
}

.hero-wrapper .container {
  position: relative;
  z-index: 2;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(197, 155, 39, 0.14);
  border: 1px solid rgba(197, 155, 39, 0.35);
  color: var(--clr-gold-light);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-title-main {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.hero-lawyer-name {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--clr-gold-light);
  margin-bottom: 1rem;
}

.hero-registry-card {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 0.98rem;
  margin-bottom: 1.5rem;
  max-width: 100%;
  flex-wrap: wrap;
}

.hero-registry-card a {
  color: var(--clr-gold-light);
  font-weight: 700;
  text-decoration: underline;
}

.hero-lead-text {
  font-size: 1.2rem;
  font-weight: 500;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.hero-lead-highlight {
  display: inline-block;
  color: #ffffff;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  background: rgba(197, 155, 39, 0.2);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--clr-gold);
}

.hero-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.05rem;
  color: #e2e8f0;
  transition: var(--transition-fast);
}

.hero-feature-item i {
  color: var(--clr-gold);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.hero-feature-item a {
  color: #f1f5f9;
  text-decoration: none;
  transition: var(--transition-fast);
}

.hero-feature-item a:hover {
  color: var(--clr-gold-light);
  transform: translateX(4px);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
}

/* Hero Portrait Frame */
.hero-photo-wrapper {
  position: relative;
  text-align: center;
  max-width: 100%;
}

.hero-photo-frame {
  position: relative;
  display: inline-block;
  border-radius: var(--radius-xl);
  padding: 6px;
  background: linear-gradient(135deg, rgba(197, 155, 39, 0.4) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(197, 155, 39, 0.3) 100%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  max-width: 100%;
}

.hero-photo-frame img {
  border-radius: 20px;
  max-width: 100%;
  height: auto;
  display: block;
}

.hero-experience-badge {
  position: absolute;
  bottom: 20px;
  left: -15px;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-lg);
  background: rgba(11, 19, 32, 0.95);
  border: 1px solid rgba(197, 155, 39, 0.4);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 3;
}

.hero-experience-badge .badge-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--clr-gold);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.hero-experience-badge .badge-text {
  text-align: left;
}

.hero-experience-badge .badge-number {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.hero-experience-badge .badge-label {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   SECTIONS & SURFACES
   ========================================================================== */
.section-padding {
  padding: 4.5rem 0;
}

.section-title-wrap {
  margin-bottom: 2.75rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-gold);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  color: #0f172a;
}

.graybg,
.surface-subtle {
  background: var(--clr-light-subtle);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

/* ==========================================================================
   FORM & TRUST BLOCK
   ========================================================================== */
.consultation-form-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--clr-border);
  height: 100%;
}

.form-header-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.form-header-subtitle {
  color: var(--clr-text-muted);
  font-size: 0.98rem;
  margin-bottom: 1.75rem;
}

.form-label-modern {
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.form-label-modern i {
  color: var(--clr-gold);
}

.form-control {
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.98rem;
  transition: var(--transition-fast);
  background-color: #f8fafc;
}

.form-control:focus {
  border-color: var(--clr-gold);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px var(--clr-gold-subtle);
  outline: none;
}

.form-terms-text {
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  margin-top: 0.85rem;
}

/* Trust Cards (Right column) */
.trust-cards-col {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.trust-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.trust-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(197, 155, 39, 0.4);
}

.trust-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--clr-gold-subtle);
  color: var(--clr-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.trust-card:hover .trust-icon-box {
  background-color: var(--clr-gold);
  color: #ffffff;
}

.trust-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.trust-card-text {
  font-size: 0.92rem;
  color: var(--clr-text-muted);
  margin: 0;
  line-height: 1.55;
}

/* ==========================================================================
   SERVICES GRID CARDS
   ========================================================================== */
.service-card-modern {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.service-card-modern:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(197, 155, 39, 0.35);
}

.service-img-wrap {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease-out;
}

.service-card-modern:hover .service-img-wrap img {
  transform: scale(1.06);
}

.service-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.service-card-title a {
  color: #0f172a;
  text-decoration: none;
  transition: var(--transition-fast);
}

.service-card-title a:hover {
  color: var(--clr-gold-hover);
}

.service-card-text {
  color: var(--clr-text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-card-footer {
  margin-top: auto;
}

/* ==========================================================================
   LEGAL ADVISORY SECTION ("ОЧЕНЬ ВАЖНО ЗНАТЬ!")
   ========================================================================== */
.advisory-wrapper {
  background: linear-gradient(135deg, #09101b 0%, #111a2c 100%);
  border-radius: var(--radius-xl);
  padding: 3.5rem 3rem;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(197, 155, 39, 0.25);
}

.advisory-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(197, 155, 39, 0.2);
  border: 1px solid var(--clr-gold);
  color: var(--clr-gold-light);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.advisory-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.advisory-subtitle {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--clr-gold-light);
  margin-bottom: 0.75rem;
}

.advisory-lead {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  max-width: 800px;
}

.advisory-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition-fast);
  margin-bottom: 1rem;
}

.advisory-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(197, 155, 39, 0.4);
  transform: translateX(4px);
}

.advisory-card i {
  color: var(--clr-gold);
  font-size: 1.35rem;
  flex-shrink: 0;
}

.advisory-card p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #f1f5f9;
}

/* ==========================================================================
   CONTACTS SECTION & MAP
   ========================================================================== */
.contact-info-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.25rem;
  transition: var(--transition-fast);
  text-decoration: none;
  color: var(--clr-text);
  max-width: 100%;
}

.contact-info-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--clr-gold);
  color: var(--clr-text);
  transform: translateY(-2px);
}

.contact-icon-bubble {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--clr-gold-subtle);
  color: var(--clr-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.contact-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--clr-text-muted);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.contact-value {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.map-wrapper-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--clr-border);
  height: 420px;
  max-width: 100%;
}

.map-wrapper-card iframe {
  width: 100% !important;
  height: 100%;
  border: none;
  display: block;
}

/* ==========================================================================
   INNER PAGES BANNER
   ========================================================================== */
.page-header-banner {
  background: linear-gradient(135deg, #09101b 0%, #121c2e 100%);
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid rgba(197, 155, 39, 0.2);
  color: #ffffff;
}

.page-header-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.page-content-wrapper {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--clr-border);
  margin-top: -2rem;
  position: relative;
  z-index: 5;
  line-height: 1.8;
  max-width: 100%;
  overflow-wrap: break-word;
}

.page-content-wrapper p {
  margin-bottom: 1.25rem;
  color: #334155;
}

/* ==========================================================================
   MODAL DIALOG
   ========================================================================== */
.modal-content {
  border-radius: var(--radius-xl);
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-header {
  background: var(--clr-light-subtle);
  border-bottom: 1px solid var(--clr-border);
  padding: 1.25rem 1.75rem;
}

.modal-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.modal-body {
  padding: 1.75rem;
}

/* ==========================================================================
   BACK TO TOP BUTTON (.upbtn) - CLEAN SOLID BUTTON
   ========================================================================== */
.upbtn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--clr-gold);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.25s ease-in-out;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.upbtn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.upbtn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold-hover);
  color: #ffffff;
  background-color: var(--clr-gold-hover);
}

/* ==========================================================================
   MODAL & POPUP FIXES (PREVENT HORIZONTAL OVERFLOW & GAP ON OPEN)
   ========================================================================== */
body.modal-open {
  padding-right: 0 !important;
  margin-right: 0 !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
}

body.modal-open .site-navbar,
body.modal-open header,
body.modal-open .fixed-top,
body.modal-open .sticky-top,
body.modal-open .hero-wrapper,
body.modal-open footer,
body.modal-open .site-footer {
  padding-right: 0 !important;
  margin-right: 0 !important;
}

.modal {
  padding-right: 0 !important;
  padding-left: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

.modal-dialog {
  max-width: 500px;
  margin: 1.75rem auto;
}

.modal-backdrop {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
}

.modal-content {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(197, 155, 39, 0.25);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.modal-header {
  border-bottom: 1px solid var(--clr-border);
  padding: 1.25rem 1.5rem;
}

.modal-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: #0f172a;
  word-break: break-word;
}

.modal-body {
  padding: 1.5rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer,
.site-footer {
  background: #090e17;
  border-top: 2px solid var(--clr-gold);
  color: #94a3b8;
  padding: 2.5rem 0;
}

.site-footer a {
  color: #cbd5e1;
  text-decoration: none;
  transition: var(--transition-fast);
}

.site-footer a:hover {
  color: var(--clr-gold-light);
}

.footer-copy {
  margin: 0;
  font-size: 0.95rem;
}

/* ==========================================================================
   MOBILE & RESPONSIVE PERFECTION (NO HORIZONTAL OVERFLOW)
   ========================================================================== */
@media (max-width: 991.98px) {
  .hero-title-main {
    font-size: 2.45rem;
  }
  .hero-lawyer-name {
    font-size: 1.7rem;
  }
  .hero-photo-wrapper {
    margin-top: 2rem;
  }
  
  /* Experience badge centered on tablet/mobile so it never hangs off the right edge */
  .hero-experience-badge {
    position: relative;
    bottom: auto;
    left: auto;
    margin: 1.25rem auto 0;
    width: fit-content;
    max-width: 100%;
  }

  /* Header mobile actions */
  .header-actions {
    flex-direction: column;
    width: 100%;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }
  .header-actions .nav-phone-badge,
  .header-actions .btn-kotchuraspas {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .advisory-wrapper {
    padding: 2.25rem 1.4rem;
  }
  .consultation-form-card {
    padding: 1.75rem;
    margin-bottom: 2rem;
  }
  .page-header-title {
    font-size: 2.1rem;
  }
  .page-content-wrapper {
    padding: 1.75rem;
  }
}

@media (max-width: 767.98px) {
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta-group .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .hero-title-main {
    font-size: 2rem;
  }
  .hero-lawyer-name {
    font-size: 1.45rem;
  }
  .hero-lead-text {
    font-size: 1.05rem;
  }
  .hero-feature-item {
    font-size: 0.95rem;
  }
  .section-padding {
    padding: 3.5rem 0;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .consultation-form-card {
    padding: 1.25rem;
  }
  .upbtn {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
  }
  .contact-info-card {
    padding: 1.15rem;
  }
  .modal-dialog {
    max-width: calc(100% - 1.25rem);
    margin: 0.75rem auto;
  }
  .modal-header {
    padding: 1rem 1.25rem;
  }
  .modal-title {
    font-size: 1.15rem;
  }
  .modal-body {
    padding: 1.25rem !important;
  }
}