/* ConservConnect - Corporate Eco Design System */
:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #14b8a6;
  --secondary: #0f172a;
  --accent: #f59e0b;
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --text: #1e293b;
  --text-muted: #64748b;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.25s ease;
  --header-h: 72px;
  --container: 1200px;
  --font: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }

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

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--secondary);
}
.logo svg { width: 36px; height: 36px; flex-shrink: 0; }
.logo span { color: var(--primary); }

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a {
  padding: 0.5rem 0.9rem;
  color: var(--text);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.nav a:hover, .nav a.active {
  background: rgba(13,148,136,0.1);
  color: var(--primary);
}

.header-cta {
  display: none;
  margin-left: 1rem;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.burger span {
  display: block;
  height: 2.5px;
  background: var(--secondary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.burger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:hover, .mobile-nav a.active { background: rgba(13,148,136,0.08); color: var(--primary); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  line-height: 1.25;
}
.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
}
.btn-secondary {
  background: var(--secondary);
  color: white;
}
.btn-secondary:hover { background: #1e293b; color: white; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.9rem; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0f172a 0%, #134e4a 50%, #0d9488 100%);
  color: white;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/img-eco-hero.jpg') center/cover no-repeat;
  opacity: 0.25;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 4rem 0;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255,255,255,0.2);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 560px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ===== SECTIONS ===== */
.section {
  padding: 4.5rem 0;
}
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.75rem;
  text-align: center;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  font-size: 1.1rem;
}

/* ===== CARDS ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-img {
  height: 200px;
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 1.5rem; }
.card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--secondary);
}
.card-body p { color: var(--text-muted); font-size: 0.95rem; }

.icon-card {
  text-align: center;
  padding: 2rem 1.5rem;
}
.icon-card .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background: rgba(13,148,136,0.12);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.icon-card .icon svg { width: 32px; height: 32px; }

/* ===== STATS ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}
.stat-label { color: var(--text-muted); font-size: 0.95rem; margin-top: 0.25rem; }

/* ===== TEAM ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid var(--border);
}
.team-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}
.team-info { padding: 1.25rem; }
.team-info h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.team-info .role { color: var(--primary); font-weight: 500; font-size: 0.9rem; margin-bottom: 0.5rem; }
.team-info p { font-size: 0.875rem; color: var(--text-muted); }

/* ===== CERTIFICATES / PARTNERS ===== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.25rem;
  align-items: center;
}
.cert-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-height: 120px;
  justify-content: center;
}
.cert-item svg { width: 48px; height: 48px; color: var(--primary); }
.cert-item span { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }

/* ===== TABS ===== */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}
.tab-btn {
  padding: 0.75rem 1.25rem;
  background: none;
  border: none;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color var(--transition), border-color var(--transition);
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.tab-panel { display: none; animation: fadeIn 0.3s ease; }
.tab-panel.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== PRICING / SERVICES TABLE ===== */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.price-table th, .price-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.price-table th {
  background: var(--secondary);
  color: white;
  font-weight: 600;
}
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover td { background: rgba(13,148,136,0.04); }
.price-table .price { font-weight: 700; color: var(--primary); white-space: nowrap; }

/* ===== ACCORDION FAQ ===== */
.accordion { max-width: 800px; margin: 0 auto; }
.accordion-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.accordion-header {
  width: 100%;
  padding: 1.1rem 1.25rem;
  background: none;
  border: none;
  text-align: left;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--secondary);
  gap: 1rem;
}
.accordion-header:hover { color: var(--primary); }
.accordion-header .chevron {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.accordion-item.open .accordion-header .chevron { transform: rotate(180deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.25rem;
  color: var(--text-muted);
}
.accordion-item.open .accordion-body {
  max-height: 400px;
  padding: 0 1.25rem 1.25rem;
}

/* ===== CASES ===== */
.case-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}
.case-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.case-content { padding: 1.75rem; }
.case-tag {
  display: inline-block;
  background: rgba(13,148,136,0.12);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}
.case-content h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.case-content p { color: var(--text-muted); margin-bottom: 1rem; }
.case-results {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.case-result {
  background: var(--bg-alt);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
.case-result strong { color: var(--primary); }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.contact-info h3 { margin-bottom: 1rem; }
.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}
.contact-item .icon-box {
  width: 44px;
  height: 44px;
  background: rgba(13,148,136,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.contact-item .icon-box svg { width: 22px; height: 22px; }
.requisites {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.95rem;
}
.requisites h4 { margin-bottom: 0.75rem; color: var(--secondary); }
.requisites p { margin-bottom: 0.35rem; color: var(--text-muted); }

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13,148,136,0.15);
}
.form-group input.error,
.form-group textarea.error {
  border-color: #ef4444;
}
.form-group .error-msg {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 0.3rem;
  display: none;
}
.form-group.has-error .error-msg { display: block; }
.form-group textarea { min-height: 120px; resize: vertical; }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--secondary);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  z-index: 2000;
  max-width: 360px;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast.success { background: #059669; }
.toast svg { width: 24px; height: 24px; flex-shrink: 0; }

/* ===== FOOTER ===== */
.footer {
  background: var(--secondary);
  color: #94a3b8;
  padding: 3.5rem 0 1.5rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer h4 {
  color: white;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.footer a { color: #94a3b8; }
.footer a:hover { color: var(--primary-light); }
.footer ul li { margin-bottom: 0.5rem; }
.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}
.footer-logo svg { width: 28px; height: 28px; }

/* ===== 404 ===== */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
}
.error-page h1 {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.error-page h2 { font-size: 1.75rem; margin-bottom: 1rem; color: var(--secondary); }
.error-page p { color: var(--text-muted); margin-bottom: 2rem; max-width: 400px; margin-left: auto; margin-right: auto; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, #0f172a 0%, #134e4a 100%);
  color: white;
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/img-page-hero.jpg') center/cover;
  opacity: 0.15;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 0.5rem; }
.page-hero p { opacity: 0.85; max-width: 560px; }

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
  .header-cta { display: inline-flex; }
  .case-card {
    grid-template-columns: 340px 1fr;
  }
  .case-card img { height: 100%; min-height: 260px; }
  .contact-grid { grid-template-columns: 1fr 1.1fr; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: flex; }
}

@media (max-width: 640px) {
  .hero { min-height: 75vh; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .section { padding: 3rem 0; }
  .price-table { font-size: 0.9rem; }
  .price-table th, .price-table td { padding: 0.75rem; }
  .toast { left: 1rem; right: 1rem; bottom: 1rem; max-width: none; }
}

/* Print */
@media print {
  .header, .footer, .burger, .mobile-nav { display: none; }
}
