/* ============ Reset & Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1e293b;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { padding-left: 1.2em; }

/* Variables */
:root {
  --navy: #0f2942;
  --navy-deep: #0a1f33;
  --teal: #0d9488;
  --teal-dark: #0b7a70;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --accent: #14b8a6;
  --shadow-sm: 0 1px 2px rgba(15, 41, 66, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 41, 66, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 41, 66, 0.12);
}

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

/* ============ Navigation ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--slate-200);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
}
.logo-mark {
  font-size: 28px;
  color: var(--teal);
  line-height: 1;
}
.logo-text span { color: var(--teal); }
.nav nav { display: flex; align-items: center; gap: 28px; }
.nav nav a {
  font-weight: 500;
  font-size: 15px;
  color: var(--slate-700);
  transition: color .15s;
}
.nav nav a:hover { color: var(--teal); }
.nav-cta {
  background: var(--navy);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--teal) !important; color: #fff !important; }

@media (max-width: 768px) {
  .nav nav { gap: 16px; }
  .nav nav a:not(.nav-cta) { display: none; }
}

/* ============ Hero ============ */
.hero {
  background: linear-gradient(135deg, #f8fafc 0%, #ecfeff 50%, #f0f9ff 100%);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(13, 148, 136, 0.1);
  color: var(--teal-dark);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 52px;
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 20px;
  color: var(--navy-deep);
  letter-spacing: -0.02em;
}
.hero .lead {
  font-size: 18px;
  color: var(--slate-700);
  margin: 0 0 32px;
  max-width: 560px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  transition: all .2s;
  text-align: center;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--teal); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-ghost {
  background: #fff;
  color: var(--navy);
  border: 1.5px solid var(--slate-200);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-link {
  padding: 0;
  color: var(--teal-dark);
  font-weight: 600;
  background: none;
}
.btn-link:hover { color: var(--navy); }
.btn-full { width: 100%; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--slate-200);
  padding-top: 24px;
  max-width: 560px;
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 16px; color: var(--navy); font-weight: 600; }
.hero-stats span { font-size: 13px; color: var(--slate-500); margin-top: 2px; }

.hero-visual { position: relative; }
.hero-chart {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-200);
  transform: rotate(1deg);
  transition: transform .3s;
}
.hero-chart:hover { transform: rotate(0); }

@media (max-width: 960px) {
  .hero { padding: 60px 0 80px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 38px; }
  .hero .lead { font-size: 17px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}

/* ============ Sections ============ */
.section { padding: 90px 0; }
.section-alt { background: var(--slate-50); }
.section-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 38px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 16px;
  color: var(--navy-deep);
  letter-spacing: -0.015em;
}
.section-sub {
  text-align: center;
  font-size: 17px;
  color: var(--slate-500);
  max-width: 680px;
  margin: 0 auto 56px;
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section-title { font-size: 30px; }
  .section-sub { font-size: 16px; margin-bottom: 40px; }
}

/* ============ Cards (Services) ============ */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 28px;
  transition: all .2s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
}
.card-icon {
  font-size: 32px;
  margin-bottom: 16px;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(13, 148, 136, 0.08);
  border-radius: 12px;
}
.card h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--navy-deep);
  line-height: 1.3;
}
.card p { font-size: 14.5px; color: var(--slate-700); margin: 0; }

/* ============ Methods ============ */
.methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.method-block {
  background: #fff;
  border-radius: 12px;
  padding: 26px;
  border-top: 3px solid var(--teal);
  box-shadow: var(--shadow-sm);
}
.method-block h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy-deep);
  margin: 0 0 14px;
}
.method-block ul {
  list-style: none;
  padding: 0; margin: 0;
}
.method-block li {
  font-size: 14px;
  padding: 6px 0 6px 20px;
  position: relative;
  color: var(--slate-700);
  border-bottom: 1px dashed var(--slate-200);
}
.method-block li:last-child { border-bottom: none; }
.method-block li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}
@media (max-width: 960px) { .methods-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .methods-grid { grid-template-columns: 1fr; } }

/* ============ Cases ============ */
.cases { display: flex; flex-direction: column; gap: 32px; }
.case {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 32px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 24px;
  transition: all .2s;
}
.case:hover { box-shadow: var(--shadow-md); border-color: var(--slate-300); }
.case-thumb {
  background: var(--slate-50);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.case-thumb img { width: 100%; height: auto; max-height: 240px; object-fit: contain; }
.case-body { display: flex; flex-direction: column; }
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal-dark);
  background: rgba(13, 148, 136, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
  align-self: flex-start;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.case h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--navy-deep);
  margin: 0 0 12px;
  line-height: 1.3;
}
.case p { font-size: 15px; color: var(--slate-700); margin: 0 0 14px; }
.case-meta {
  list-style: none;
  padding: 0; margin: 0 0 16px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.case-meta li {
  font-size: 12.5px;
  background: var(--slate-100);
  color: var(--slate-700);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 500;
}
.case-gallery {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}
.case-gallery a {
  flex: 1 1 100px;
  min-width: 100px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--slate-200);
  transition: border-color .2s;
}
.case-gallery a:hover { border-color: var(--teal); }
.case-gallery img { width: 100%; height: 80px; object-fit: cover; }

@media (max-width: 768px) {
  .case { grid-template-columns: 1fr; padding: 20px; }
}

/* ============ Process ============ */
.process {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.process li {
  background: #fff;
  border-radius: 14px;
  padding: 28px 24px;
  border: 1px solid var(--slate-200);
  position: relative;
}
.step-num {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 14px;
  opacity: 0.7;
}
.process h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy-deep);
  margin: 0 0 8px;
}
.process p { font-size: 14.5px; color: var(--slate-700); margin: 0; }
@media (max-width: 960px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* ============ Contact ============ */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-info p { font-size: 16px; color: var(--slate-700); margin-bottom: 24px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 32px; }
.contact-list li { padding: 10px 0; border-bottom: 1px solid var(--slate-200); font-size: 15px; }
.contact-list li:last-child { border-bottom: none; }
.contact-list strong { color: var(--navy); margin-right: 8px; }
.contact-list a { color: var(--teal-dark); font-weight: 500; }
.contact-list a:hover { text-decoration: underline; }

.contact-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--slate-200);
}
.contact-trust div { display: flex; flex-direction: column; }
.contact-trust strong { font-size: 15px; color: var(--navy); font-weight: 600; }
.contact-trust span { font-size: 12px; color: var(--slate-500); margin-top: 2px; }

.contact-form {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.contact-form label {
  display: block;
  margin-bottom: 16px;
}
.contact-form label span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-deep);
  margin-bottom: 6px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--slate-900);
  background: #fff;
  border: 1.5px solid var(--slate-200);
  border-radius: 8px;
  transition: border-color .15s, box-shadow .15s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 12px; color: var(--slate-500); margin-top: 12px; text-align: center; }
.form-status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  display: none;
}
.form-status.pending { display: block; background: var(--slate-100); color: var(--slate-700); }
.form-status.ok { display: block; background: rgba(13, 148, 136, 0.1); color: var(--teal-dark); }
.form-status.err { display: block; background: rgba(220, 38, 38, 0.08); color: #dc2626; }

@media (max-width: 960px) {
  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .contact-form { padding: 24px; }
}

/* ============ Footer ============ */
.footer {
  background: var(--navy-deep);
  color: var(--slate-300);
  padding: 60px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer .logo { color: #fff; margin-bottom: 12px; }
.footer .logo-text span { color: var(--accent); }
.footer-tag { font-size: 14px; color: var(--slate-300); max-width: 380px; }
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.footer-cols h5 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-cols a, .footer-cols span {
  display: block;
  font-size: 14px;
  color: var(--slate-300);
  padding: 4px 0;
  transition: color .15s;
}
.footer-cols a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  font-size: 13px;
  color: var(--slate-500);
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
