/* 
=========================================
Web Dev Italia - Premium OnePage CSS
=========================================
*/

:root {
  /* Color Palette */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --secondary: #0ea5e9;
  --accent: #22c55e;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-white: #ffffff;
  --bg-slate: #f8fafc;
  --bg-dark: #0f172a;
  --border: #e2e8f0;
  
  /* Typography */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Plus Jakarta Sans', var(--font-main);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-primary: 0 10px 15px -3px rgba(37, 99, 235, 0.2);
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Spacing */
  --section-padding: 100px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

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

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

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

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

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

/* Utilities */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.2s; }
.reveal-delay-2 { transition-delay: 0.4s; }
.reveal-delay-3 { transition-delay: 0.6s; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  font-size: 16px;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.3);
}

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

.btn-ghost:hover {
  background-color: var(--bg-slate);
  border-color: var(--text-light);
}

.btn-white {
  background-color: white;
  color: var(--primary);
}

.btn-white:hover {
  background-color: var(--bg-slate);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 14px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 18px;
}

.btn-full {
  width: 100%;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  background-color: var(--bg-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.site-header.scrolled {
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: var(--shadow-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.main-nav ul {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
}

.nav-link:hover {
  color: #ffffff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #ffffff;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  gap: 6px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  position: relative;
  padding: calc(var(--header-height, 100px) + 60px) 0 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-color: var(--bg-slate);
}

.hero-gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  z-index: -1;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: -100px;
  right: -100px;
  animation: float 20s infinite alternate;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: var(--secondary);
  bottom: -50px;
  left: -50px;
  animation: float 15s infinite alternate-reverse;
}

@keyframes float {
  0% { transform: translate(0, 0); }
  100% { transform: translate(40px, 60px); }
}

.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.3;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

.hero-headline {
  font-size: 64px;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 40px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.trust-row {
  display: flex;
  gap: 32px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
}

.hero-mockup {
  width: 100%;
  perspective: 1000px;
}

.mockup-browser {
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  transform: rotateY(-10deg) rotateX(5deg);
}

.mockup-bar {
  background: var(--bg-slate);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.r { background: #ff5f56; }
.dot.y { background: #ffbd2e; }
.dot.g { background: #27c93f; }

.mockup-url {
  background: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 10px;
  color: var(--text-light);
  flex-grow: 1;
  margin-left: 12px;
}

.mockup-content {
  padding: 30px;
}

.mock-hero-block { margin-bottom: 30px; }
.mock-badge { width: 80px; height: 6px; background: #e2e8f0; border-radius: 3px; margin-bottom: 12px; }
.mock-h1 { height: 12px; background: #cbd5e1; border-radius: 6px; margin-bottom: 8px; width: 90%; }
.mock-h1.w70 { width: 70%; }
.mock-p { height: 6px; background: #f1f5f9; border-radius: 3px; margin-bottom: 6px; width: 80%; }
.mock-p.w60 { width: 60%; }
.mock-btns { display: flex; gap: 8px; margin-top: 20px; }
.mock-btn { width: 60px; height: 20px; border-radius: 4px; }
.mock-btn.primary { background: #3b82f6; }
.mock-btn.ghost { background: #f1f5f9; }

.mock-cards { display: flex; gap: 10px; margin-top: 30px; }
.mock-card { flex: 1; height: 80px; background: #f8fafc; border-radius: 8px; border: 1px solid #f1f5f9; }

.floating-badge {
  position: absolute;
  padding: 12px 16px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  z-index: 2;
}

.fb1 { top: 20%; right: -20px; }
.fb2 { bottom: 15%; left: -40px; }

/* Sections Common */
section {
  padding: var(--section-padding) 0;
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-header {
  max-width: 700px;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 42px;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.section-header p {
  font-size: 18px;
  color: var(--text-muted);
}

/* Pillar Cards */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.pillar-card {
  padding: 40px;
  background: var(--bg-white);
  border-radius: 24px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.pillar-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.pillar-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.pillar-card h3 {
  font-size: 22px;
  margin-bottom: 16px;
}

.pillar-card p {
  color: var(--text-muted);
}

/* Services Grid */
.section-servizi {
  background-color: var(--bg-slate);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.service-card {
  background: white;
  padding: 32px;
  border-radius: 20px;
  border: 1px solid transparent;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.1);
}

.service-card.featured {
  border: 1.5px solid var(--border);
}

.service-card.featured:hover {
  border-color: var(--primary);
}

.service-icon {
  margin-bottom: 20px;
  color: var(--primary);
}

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

.service-card p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-cta {
  font-weight: 700;
  color: var(--primary);
  font-size: 14px;
}

/* Process Timeline */
.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.process-step {
  display: flex;
  gap: 40px;
  position: relative;
}

.step-number {
  font-size: 42px;
  font-weight: 800;
  color: var(--border);
  font-family: var(--font-heading);
  line-height: 1;
  flex-shrink: 0;
  width: 60px;
}

.step-content {
  background: white;
  padding: 32px;
  border-radius: 20px;
  border: 1px solid var(--border);
  flex-grow: 1;
  transition: var(--transition);
  position: relative;
  z-index: 2;
}

.process-step:hover .step-content {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.step-icon-wrap {
  width: 44px;
  height: 44px;
  background: var(--bg-slate);
  color: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step-content h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.step-content p {
  color: var(--text-muted);
}

.step-connector {
  position: absolute;
  top: 60px;
  left: 30px;
  bottom: -40px;
  width: 2px;
  background: var(--border);
  z-index: 1;
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 32px;
}

.portfolio-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.portfolio-image {
  height: 260px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.pi-linkedizioni { background-image: url('assets/img/portfolio-1.webp'); background-size: cover; background-position: center; }
.pi-gidi { background-image: url('assets/img/portfolio-2.webp'); background-size: cover; background-position: center; }
.pi-schoolphoto { background-image: url('assets/img/portfolio-3.webp'); background-size: cover; background-position: center; }
.pi-tenute { background-image: url('assets/img/portfolio-5.jpg'); background-size: cover; background-position: center; }
.pi-studioradiologico { background-image: url('assets/img/portfolio-6.jpg'); background-size: cover; background-position: center; }
.pi-annualbook { background-image: url('assets/img/portfolio-4.jpg'); background-size: cover; background-position: center; }
.pi-archeorunning { background-image: url('assets/img/portfolio-7.jpg'); background-size: cover; background-position: center; }
.pi-istib { background-image: url('assets/img/portfolio-8.jpg'); background-size: cover; background-position: center; }
.pi-nitida { background-image: url('assets/img/portfolio-9.jpg'); background-size: cover; background-position: center; }

.portfolio-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  backdrop-filter: blur(4px);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(37, 99, 235, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-link {
  color: white;
  font-weight: 700;
  font-size: 16px;
  border: 2px solid white;
  padding: 12px 24px;
  border-radius: 12px;
}

.portfolio-info {
  padding: 30px;
}

.portfolio-info h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.portfolio-info p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portfolio-tags span {
  padding: 4px 12px;
  background: var(--bg-slate);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Portfolio Loading Styles */
.portfolio-card.is-hidden {
  display: none;
}

.portfolio-load-more {
  display: flex;
  justify-content: center;
  margin-top: 60px;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.portfolio-load-more.active {
  opacity: 1;
  transform: translateY(0);
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  background: white;
  border: 2px solid var(--border);
  color: var(--text-main);
  border-radius: 100px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.load-more-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.load-more-btn svg {
  transition: transform 0.3s ease;
}

.load-more-btn:hover svg {
  transform: rotate(90deg);
}


/* Intermediate CTA */
.section-cta-mid {
  padding: 80px 0;
}

.cta-mid-inner {
  background: var(--bg-dark);
  border-radius: 32px;
  padding: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  color: white;
  position: relative;
  overflow: hidden;
}

.section-label.light { color: var(--secondary); }

.cta-mid-content h2 {
  font-size: 42px;
  margin-bottom: 24px;
}

.cta-mid-content p {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 480px;
}

.cta-mid-visual {
  position: relative;
}

.cta-orb {
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--primary);
  filter: blur(100px);
  opacity: 0.3;
  z-index: 0;
}

.cta-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 48px;
  font-weight: 800;
  font-family: var(--font-heading);
  color: white;
}

.stat-label {
  font-size: 14px;
  color: var(--text-light);
}

/* Contact Section */
.section-contatti {
  background: var(--bg-slate);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-details {
  margin: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-item svg {
  color: var(--primary);
  margin-top: 4px;
}

.contact-item strong {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.contact-item a, .contact-item span {
  font-size: 18px;
  font-weight: 600;
}

.trust-badges {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.contact-form-wrap {
  background: white;
  padding: 48px;
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-family: var(--font-main);
  font-size: 15px;
  transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.form-check-group {
  margin-bottom: 30px;
}

.form-check-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
}

.form-check-label input {
  display: none;
}

.check-custom {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.form-check-label input:checked + .check-custom {
  background: var(--primary);
  border-color: var(--primary);
}

.form-check-label input:checked + .check-custom::after {
  content: '';
  width: 10px;
  height: 5px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg);
  margin-top: -2px;
}

.legal-link {
  background: none;
  border: none;
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
}

.field-error {
  display: block;
  font-size: 12px;
  color: #ef4444;
  margin-top: 6px;
  font-weight: 500;
}

.btn-loading {
  display: none;
  align-items: center;
  gap: 10px;
}

.spinner {
  animation: rotate 1s linear infinite;
}

@keyframes rotate {
  100% { transform: rotate(360deg); }
}

.contact-form.submitting .btn-text { display: none; }
.contact-form.submitting .btn-loading { display: flex; }
.contact-form.submitting button { pointer-events: none; opacity: 0.8; }

.form-notice[hidden] {
  display: none !important;
}

.form-notice {
  margin-top: 24px;
  padding: 20px;
  border-radius: 16px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.form-notice.success {
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.form-notice.error {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.form-notice strong {
  display: block;
  margin-bottom: 4px;
}

.form-notice p {
  font-size: 14px;
  margin: 0;
}

/* Footer */
.site-footer {
  background-color: #0f172a;
  padding-top: 80px;
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand p {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-logo-img {
  height: 28px;
  width: auto;
}

.site-footer h4 {
  font-size: 16px;
  margin-bottom: 24px;
  color: #ffffff;
}

.site-footer ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.site-footer ul a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
}

.site-footer ul a:hover {
  color: #ffffff;
}

.footer-contact li {
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
}

.footer-legal-info p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.footer-bottom {
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-legal-links {
  display: flex;
  gap: 24px;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
}

.modal-content {
  background: white;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  border-radius: 24px;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  animation: modalIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes modalIn {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.modal-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text-main);
  transform: rotate(90deg);
}

.modal-body {
  padding: 32px;
  overflow-y: auto;
}

.modal-body h3 {
  font-size: 20px;
  margin: 30px 0 16px;
}

.modal-body h4 {
  font-size: 17px;
  margin: 20px 0 12px;
}

.modal-body p, .modal-body ul li {
  margin-bottom: 12px;
  color: var(--text-main);
}

.policy-table-wrapper {
  overflow-x: auto;
  margin-top: 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.policy-table th {
  background-color: var(--bg-slate);
  padding: 12px 16px;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 1px solid var(--border);
}

.policy-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.policy-table tr:last-child td {
  border-bottom: none;
}

.policy-table a {
  color: var(--primary);
  font-weight: 600;
}

.policy-table a:hover {
  text-decoration: underline;
}

.modal-body ul {
  padding-left: 20px;
  list-style: disc;
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 1100px) {
  .hero-headline { font-size: 52px; }
  .hero-inner { gap: 40px; }
  .cta-mid-inner { padding: 60px; grid-template-columns: 1fr; }
  .cta-mid-visual { display: none; }
}

@media (max-width: 991px) {
  .site-header { padding: 15px 0; }
  .site-header.scrolled { padding: 10px 0; }
  
  .hamburger { display: flex; }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--bg-dark);
    padding: 100px 40px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    transition: var(--transition);
    z-index: 999;
  }
  
  .main-nav.active { right: 0; }
  
  .main-nav ul { flex-direction: column; gap: 24px; }
  .nav-link { font-size: 18px; }
  
  .header-phone { display: none; }
  
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-badge, .hero-sub, .hero-cta-group, .trust-row { justify-content: center; margin-left: auto; margin-right: auto; }
  .mockup-browser { transform: none; }
  
  .contact-wrapper { grid-template-columns: 1fr; gap: 60px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --section-padding: 60px; }
  .hero-headline { font-size: 40px; }
  .hero-cta-group { flex-direction: column; }
  .section-header h2 { font-size: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 30px 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom-inner { flex-direction: column; gap: 20px; text-align: center; }
  .modal-content { max-height: 85vh; border-radius: 0; }
}
