/* 
 * ПС Юрист - Light Premium Design System
 * --------------------------------------
 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Colors - Light Theme */
  --bg-color: #f8fafc;
  --surface-color: #ffffff;
  --surface-hover: #f1f5f9;
  --border-color: #e2e8f0;
  
  /* Primary Professional Blue */
  --primary: #004a74;
  --primary-hover: #003352;
  --primary-light: #95ccff;
  
  --text-main: #0f172a;
  --text-muted: #64748b;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 20px rgba(0, 74, 116, 0.15);

  /* Typography */
  --font-sans: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  
  /* Layout */
  --max-width: 1280px;
  --nav-height: 80px;
  --border-radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ================= Buttons ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 74, 116, 0.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 74, 116, 0.3);
  background: var(--primary-hover);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 74, 116, 0.04);
}

/* ================= Header ================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo span {
  color: var(--primary);
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover {
  color: var(--primary);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.phone-link {
  font-weight: 600;
  color: var(--text-main);
}
.phone-link:hover {
  color: var(--primary);
}

/* ================= Hero ================= */
.hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 80px;
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--border-color);
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 74, 116, 0.05) 0%, rgba(255,255,255,0) 70%);
  z-index: 0;
}
.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 1;
}
.hero-title {
  font-size: 4rem;
  margin-bottom: 24px;
  color: var(--text-main);
}
.hero-text {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
}
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
  position: relative;
  z-index: 1;
}
.stat-item h4 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 8px;
}
.stat-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ================= Sections ================= */
.section {
  padding: 100px 0;
}
.section-title {
  font-size: 2.5rem;
  margin-bottom: 48px;
  text-align: center;
}

/* ================= Services Grid ================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}
.service-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
}
.service-img-wrapper {
  width: 200px;
  height: 200px;
  border-radius: 15%;
  background: rgba(0, 74, 116, 0.03);
  margin: 30px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}
.service-card:hover .service-img-wrapper {
  background: rgba(0, 74, 116, 0.08);
  border-color: var(--primary-light);
  transform: scale(1.03);
}
.service-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.5s ease;
}
.service-content {
  padding: 20px 30px 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.service-title {
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: var(--text-main);
}
.service-excerpt {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
  flex-grow: 1;
}
.service-price {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
}

/* ================= Forms / Modal ================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 90%;
  position: relative;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.modal-overlay.active .modal-content {
  transform: translateY(0);
}
.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}
.close-modal:hover {
  color: var(--text-main);
}
.form-group {
  margin-bottom: 20px;
}
.form-control {
  width: 100%;
  padding: 14px 20px;
  background: var(--surface-hover);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-sans);
  transition: var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface-color);
  box-shadow: 0 0 0 3px rgba(0, 74, 116, 0.1);
}

/* ================= Footer ================= */
.site-footer {
  background: var(--text-main); /* Dark footer looks good even on light sites */
  color: #fff;
  padding: 80px 0 40px;
}
.site-footer h5 {
  color: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-col h5 {
  font-size: 1.25rem;
  margin-bottom: 24px;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: #94a3b8;
}
.footer-links a:hover {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* ================= Contacts Page ================= */
.contacts-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  margin-top: 40px;
  align-items: start;
}
.contact-info-section {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.contact-info-section h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.contact-detail-card {
  background: var(--surface-color);
  border: none;
  border-bottom: 1px solid var(--border-color);
  border-radius: 0;
  padding: 24px 0;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  box-shadow: none;
  transition: var(--transition);
}
.contact-detail-card:hover {
  transform: translateX(4px);
  border-bottom-color: var(--primary);
}
.contact-icon-wrapper {
  background: rgba(0, 74, 116, 0.05);
  color: var(--primary);
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}
.contact-detail-card:hover .contact-icon-wrapper {
  background: var(--primary);
  color: #fff;
}
.contact-svg-icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-detail-content h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.contact-detail-content p, .contact-detail-content a {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}
.contact-detail-content a:hover {
  color: var(--primary);
}
.contact-form-wrapper {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}
.contact-map-section {
  margin-top: 80px;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  height: 500px;
  width: 100%;
}
.contact-map-section iframe {
  width: 100% !important;
  height: 100% !important;
  border: none;
}


/* ================= About Us Page ================= */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.advantage-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.advantage-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
}
.team-section {
  padding: 80px 0;
  background: rgba(0, 74, 116, 0.02);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.team-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.team-img-wrapper {
  height: 320px;
  background: var(--surface-hover);
  overflow: hidden;
}
.team-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.team-card:hover .team-img-wrapper img {
  transform: scale(1.04);
}
.team-info {
  padding: 24px;
}
.team-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-main);
}
.team-role {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.team-bio {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .nav-links { display: none; }
  .contacts-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-map-section { height: 350px; }
}
