@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #0c1a2e;
  --navy-light: #152a45;
  --navy-dark: #070f1a;
  --gold: #b8942e;
  --gold-light: #d4af4a;
  --gold-dark: #96781f;
  --cream: #f4f5f7;
  --white: #ffffff;
  --gray-100: #eef0f3;
  --gray-300: #d5dae0;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --text: #1f2937;
  --shadow: 0 2px 16px rgba(12, 26, 46, 0.08);
  --shadow-lg: 0 8px 32px rgba(12, 26, 46, 0.14);
  --radius: 10px;
  --transition: 0.25s ease;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
  padding-bottom: 64px;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 992px) { body { padding-bottom: 0; } }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

a { color: var(--gold-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

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

/* Buttons */
.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
  border: none;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.625rem 1.375rem;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-gold:hover {
  background: var(--gold-light);
  color: var(--navy-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(184, 148, 46, 0.35);
}

.btn-outline-gold {
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-weight: 600;
  border-radius: var(--radius);
  background: transparent;
  transition: all var(--transition);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border: none;
  font-weight: 600;
  padding: 0.625rem 1.375rem;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.btn-navy:hover { background: var(--navy-light); color: var(--white); }

/* Header */
.site-header .navbar {
  background: var(--navy);
  padding: 0;
  min-height: var(--header-h);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.site-header.scrolled .navbar { box-shadow: var(--shadow-lg); }

.brand-logo { width: 40px; height: 40px; flex-shrink: 0; border-radius: 8px; object-fit: cover; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.125rem; font-weight: 800; color: #fff; letter-spacing: 0.04em; }
.brand-text small { font-size: 0.625rem; font-weight: 500; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.08em; }

.navbar-dark .nav-link {
  color: rgba(255,255,255,0.8) !important;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 0.875rem !important;
}
.navbar-dark .nav-link:hover,
.navbar-dark .nav-link.active { color: var(--gold-light) !important; }

.dropdown-menu {
  background: var(--navy-light);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 0.375rem;
  box-shadow: var(--shadow-lg);
}
.dropdown-item {
  color: rgba(255,255,255,0.85);
  border-radius: 6px;
  font-size: 0.9rem;
  padding: 0.5rem 0.875rem;
}
.dropdown-item:hover { background: rgba(184,148,46,0.15); color: var(--gold-light); }
.dropdown-divider-light { border-color: rgba(255,255,255,0.1); }

.navbar-toggler { border-color: rgba(255,255,255,0.2); padding: 0.375rem 0.5rem; }
.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%28255,255,255,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.header-cta { align-items: center; }

/* Icon box */
.icon-box {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(184,148,46,0.1);
  border: 1px solid rgba(184,148,46,0.2);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  color: var(--gold-dark);
  font-size: 1.375rem;
}

/* Hero */
.hero {
  position: relative;
  background: var(--navy);
  overflow: hidden;
  padding-top: var(--header-h);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(184,148,46,0.07), transparent 60%);
  pointer-events: none;
}

.hero h1 {
  color: #fff;
  font-size: clamp(1.875rem, 4.5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
}
.hero h1 .highlight { color: var(--gold-light); }

.hero-badge {
  display: inline-block;
  color: var(--gold-light);
  border: 1px solid rgba(184,148,46,0.35);
  background: rgba(184,148,46,0.08);
  padding: 0.35rem 0.875rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-lead {
  color: rgba(255,255,255,0.72);
  font-size: 1.0625rem;
  max-width: 540px;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.hero-stat span { color: rgba(255,255,255,0.5); font-size: 0.8125rem; font-weight: 500; }

.hero-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 2rem;
}
.hero-card .icon-box {
  background: rgba(184,148,46,0.15);
  border-color: rgba(184,148,46,0.3);
  color: var(--gold-light);
}
.hero-card h3 { color: #fff; font-size: 1.125rem; margin-bottom: 0.75rem; }
.hero-card p { color: rgba(255,255,255,0.65); margin: 0; font-size: 0.9375rem; }

/* Sections */
.section { padding: 4.5rem 0; }
@media (min-width: 768px) { .section { padding: 5.5rem 0; } }

.section-header { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.section-label {
  display: block;
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.625rem;
}
.section-header h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); margin-bottom: 0.75rem; }
.section-header p { color: var(--gray-500); font-size: 1rem; margin: 0; }

.divider-gold {
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin: 0.875rem auto 1rem;
  border-radius: 2px;
}

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

/* Cards */
.card-service {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.card-service:hover {
  border-color: rgba(184,148,46,0.4);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.card-service h3 { color: var(--navy); margin-bottom: 0.5rem; }
.card-service p { color: var(--gray-500); font-size: 0.9375rem; margin: 0; }

.link-arrow {
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.card-lawyer {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card-lawyer:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.card-lawyer-photo {
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--navy-light), var(--navy));
  overflow: hidden;
}
.card-lawyer-photo img { width: 100%; height: 100%; object-fit: cover; }

.card-lawyer-body { padding: 1.5rem; }
.card-lawyer-body h3 { font-size: 1.0625rem; }
.card-lawyer-position { color: var(--gold-dark); font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.625rem; }
.card-lawyer-body p { color: var(--gray-500); font-size: 0.9rem; margin: 0; }

.card-article {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card-article:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.card-article-image {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
}
.article-thumb-icon { font-size: 2.5rem; color: rgba(184,148,46,0.6); }

.card-article-body { padding: 1.5rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.8125rem; color: var(--gray-500); margin-bottom: 0.625rem; }
.article-category { color: var(--gold-dark); font-weight: 600; }
.card-article-body h3 { font-size: 1.0625rem; margin-bottom: 0.5rem; }
.card-article-body p { color: var(--gray-500); font-size: 0.9rem; }

/* Features */
.feature-item {
  text-align: center;
  padding: 1.5rem 1rem;
  height: 100%;
}
.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  color: var(--gold-dark);
  font-size: 1.375rem;
}
.feature-item h4 { font-size: 1rem; margin-bottom: 0.375rem; }
.feature-item p { color: var(--gray-500); font-size: 0.875rem; margin: 0; }

/* Page hero */
.page-hero {
  background: var(--navy);
  padding: calc(var(--header-h) + 3rem) 0 3.5rem;
  text-align: center;
}
.page-hero h1 { color: #fff; font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.65); max-width: 560px; margin: 0 auto; }

.breadcrumb-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}
.breadcrumb-nav a { color: rgba(255,255,255,0.5); }
.breadcrumb-nav a:hover { color: var(--gold-light); }
.breadcrumb-nav span { color: var(--gold-light); }

/* CTA */
.cta-section {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
  text-align: center;
}
@media (min-width: 768px) { .cta-section { padding: 3.5rem 2.5rem; } }
.cta-section h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-section p { color: rgba(255,255,255,0.65); max-width: 480px; margin: 0 auto 1.5rem; }

/* Lawyer profile */
.lawyer-profile-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-300);
  aspect-ratio: 4/5;
  background: var(--navy-light);
}
.lawyer-profile-photo img { width: 100%; height: 100%; object-fit: cover; }

.lawyer-info .position { color: var(--gold-dark); font-weight: 600; margin-bottom: 1.25rem; }
.lawyer-meta-item {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 1rem;
  height: 100%;
  font-size: 0.9375rem;
}
.lawyer-meta-item strong {
  display: block;
  font-size: 0.6875rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.achievements-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.achievements-list li {
  background: rgba(184,148,46,0.1);
  color: var(--gold-dark);
  padding: 0.375rem 0.875rem;
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
}

/* Service / article / contact / privacy — content blocks */
.service-content,
.article-content,
.privacy-content,
.contact-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 2rem;
}
@media (min-width: 768px) {
  .service-content, .article-content, .privacy-content, .contact-card { padding: 2.5rem; }
}

.service-content h2, .article-content h2, .privacy-content h2 { font-size: 1.25rem; margin-top: 1.75rem; margin-bottom: 0.75rem; }
.service-content h2:first-child, .article-content h2:first-of-type { margin-top: 0; }

.service-sidebar { position: sticky; top: calc(var(--header-h) + 1rem); }
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.sidebar-card h4 { font-size: 0.9375rem; font-weight: 700; margin-bottom: 0.75rem; }
.sidebar-links { list-style: none; padding: 0; margin: 0; }
.sidebar-links li { border-bottom: 1px solid var(--gray-100); }
.sidebar-links a {
  display: block;
  padding: 0.5rem 0;
  color: var(--text);
  font-size: 0.875rem;
}
.sidebar-links a:hover, .sidebar-links a.active { color: var(--gold-dark); }

.contact-item { display: flex; gap: 0.875rem; margin-bottom: 1rem; }
.contact-item i { color: var(--gold); font-size: 1.125rem; margin-top: 0.15rem; flex-shrink: 0; }

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-300);
  height: 380px;
  background: var(--gray-100);
}
.map-container iframe { width: 100%; height: 100%; border: 0; }

.messenger-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.messenger-btn-large {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
}
.messenger-btn-large:hover { color: #fff; opacity: 0.9; }
.messenger-btn-large.whatsapp { background: #25d366; }
.messenger-btn-large.telegram { background: #229ed9; }
.messenger-btn-large.max { background: #5b4fc7; }

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.65);
  padding: 3.5rem 0 0;
}
.footer-brand strong { color: #fff; font-size: 1.125rem; }
.footer-slogan { font-size: 0.875rem; color: rgba(255,255,255,0.5); margin-top: 1rem; line-height: 1.6; }

.site-footer h6 {
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.375rem; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.875rem; }
.footer-links a:hover { color: var(--gold-light); }

.footer-contacts { list-style: none; padding: 0; margin: 0; }
.footer-contacts li { display: flex; gap: 0.625rem; margin-bottom: 0.625rem; font-size: 0.875rem; }
.footer-contacts i { color: var(--gold); flex-shrink: 0; }
.footer-contacts a { color: rgba(255,255,255,0.6); }
.footer-contacts a:hover { color: var(--gold-light); }

.footer-messengers { display: flex; gap: 0.625rem; }
.messenger-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem;
  transition: opacity var(--transition);
}
.messenger-btn:hover { opacity: 0.85; color: #fff; }
.messenger-btn.whatsapp { background: #25d366; }
.messenger-btn.telegram { background: #229ed9; }
.messenger-btn.max { background: #5b4fc7; font-weight: 700; font-size: 0.8rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 2.5rem;
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8125rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--gold-light); }

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.footer-bottom-sep { color: rgba(255,255,255,0.25); }

.section-sm {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.site-links-block {
  color: var(--gray-500);
  font-size: 0.9375rem;
}

.site-links-block .site-link-line + .site-link-line { margin-top: 0.5rem; }

.hero-lead .site-link-anchor,
.site-links-block .site-link-anchor {
  color: var(--gold-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero-lead .site-link-anchor:hover,
.site-links-block .site-link-anchor:hover { color: var(--gold); }

.footer-external-links { display: contents; }

/* Mobile bar */
.mobile-action-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1050;
  display: flex;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.mobile-action-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.625rem;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  gap: 0.2rem;
}
.mobile-action-btn i { font-size: 1.125rem; }
.mobile-action-btn.message { background: var(--gold); color: var(--navy-dark); }

/* Cookie */
.cookie-banner {
  position: fixed;
  bottom: 64px; left: 0; right: 0;
  z-index: 1040;
  background: var(--navy-light);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 0.875rem 0;
}
@media (min-width: 992px) { .cookie-banner { bottom: 0; } }
.cookie-banner .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.cookie-banner p { color: rgba(255,255,255,0.8); margin: 0; font-size: 0.875rem; flex: 1; }
.cookie-banner a { color: var(--gold-light); }

/* 404 / sitemap */
.error-page { min-height: 70vh; display: flex; align-items: center; padding: 2rem 0; }
.error-code { font-size: clamp(5rem, 12vw, 8rem); font-weight: 800; color: var(--gold); opacity: 0.25; line-height: 1; }

.sitemap-list { list-style: none; padding: 0; }
.sitemap-list > li { margin-bottom: 1.25rem; }
.sitemap-list > li > a { font-size: 1.125rem; font-weight: 700; color: var(--navy); }
.sitemap-list ul { list-style: none; padding-left: 1.25rem; margin-top: 0.375rem; }
.sitemap-list ul a { font-size: 0.9375rem; color: var(--gray-700); }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
