/**
 * EAC Expert Main Stylesheet
 * Version: 3.0.0
 * Pure Standalone 1200px Clean-Slate Design System
 */

/* ==========================================================================
   1. CSS Variables & Design Tokens
   ========================================================================== */
:root {
  --eac-primary: #00b8f2;
  --eac-primary-dark: #008bb8;
  --eac-primary-light: #e0f7fe;
  --eac-primary-gradient: linear-gradient(135deg, #00b8f2 0%, #008bb8 100%);
  --eac-accent: #f59e0b;
  --eac-success: #10b981;
  --eac-error: #ef4444;
  --eac-dark: #0f172a;
  --eac-dark-light: #1e293b;
  --eac-dark-card: #161f30;
  --eac-gray: #64748b;
  --eac-gray-light: #94a3b8;
  --eac-gray-bg: #f1f5f9;
  --eac-bg: #ffffff;
  --eac-bg-alt: #f8fafc;
  --eac-border: #e2e8f0;
  --eac-border-focus: #38bdf8;
  --eac-radius: 8px;
  --eac-radius-lg: 12px;
  --eac-radius-pill: 9999px;
  --eac-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --eac-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  --eac-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
  --eac-shadow-hover: 0 12px 35px rgba(0, 184, 242, 0.16);
  --eac-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* ==========================================================================
   2. Global Reset & Typography
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--eac-font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--eac-dark-light);
  background-color: var(--eac-bg-alt);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--eac-dark);
  font-weight: 700;
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: 0.6em;
  clear: both;
}

h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 1.65rem; font-weight: 750; letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 600; }

p {
  margin: 0 0 1em 0;
}

a {
  color: #0284c7;
  text-decoration: none;
  transition: all 0.15s ease;
}

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

ul, ol {
  margin: 0 0 1.2em 0;
  padding-left: 1.5em;
}

li {
  margin-bottom: 0.35em;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: 14px;
}

/* ==========================================================================
   3. 1200px Grid & Layout Structure
   ========================================================================== */
.eac-container {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.eac-page-layout {
  display: flex;
  gap: 40px;
  margin: 32px auto;
  align-items: flex-start;
}

.eac-main-col {
  flex: 1;
  min-width: 0;
  background: #ffffff;
  border-radius: var(--eac-radius-lg);
  padding: 36px 40px;
  border: 1px solid var(--eac-border);
  box-shadow: var(--eac-shadow);
}

.eac-sidebar-col {
  width: 320px;
  flex-shrink: 0;
}

/* Homepage overrides: full-width, sidebars hidden */
.eac-home .eac-page-layout {
  display: block;
  margin: 0 auto;
}

.eac-home .eac-sidebar-col {
  display: none !important;
}

.eac-home .eac-main-col {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* ==========================================================================
   4. Topbar
   ========================================================================== */
.eac-topbar {
  background: var(--eac-dark);
  color: var(--eac-gray-light);
  font-size: 13px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.eac-topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.eac-topbar__left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.eac-topbar__right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.eac-topbar__city,
.eac-topbar__schedule {
  color: #94a3b8;
}

.eac-topbar__phone {
  font-weight: 600;
  color: #f1f5f9;
}

.eac-topbar__phone:hover {
  color: var(--eac-primary);
}

.eac-topbar__mail {
  color: #cbd5e1;
}

.eac-topbar__mail:hover {
  color: var(--eac-primary);
}

.eac-topbar__cta {
  background: rgba(0, 184, 242, 0.15);
  border: 1px solid rgba(0, 184, 242, 0.4);
  color: #38bdf8 !important;
  padding: 3px 12px;
  border-radius: var(--eac-radius-pill);
  font-weight: 600;
  font-size: 12px;
}

.eac-topbar__cta:hover {
  background: var(--eac-primary);
  color: #ffffff !important;
  border-color: var(--eac-primary);
}

/* ==========================================================================
   5. Header
   ========================================================================== */
.eac-header {
  background: #ffffff;
  border-bottom: 1px solid var(--eac-border);
  padding: 16px 0;
}

.eac-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.eac-header__brand {
  display: flex;
  flex-direction: column;
}

.eac-brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.eac-logo-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--eac-primary-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 184, 242, 0.35);
}

.eac-logo-text {
  display: flex;
  flex-direction: column;
}

.eac-logo-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--eac-dark);
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.eac-logo-sub {
  font-size: 12px;
  color: var(--eac-gray);
  font-weight: 500;
}

.eac-header__tagline {
  font-size: 12px;
  color: var(--eac-gray);
  margin: 4px 0 0 0;
}

.eac-header__meta {
  display: flex;
  align-items: center;
  gap: 24px;
}

.eac-header__info {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.eac-header__info-label {
  font-size: 11px;
  color: var(--eac-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.eac-header__info-val {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--eac-dark);
}

.eac-header__contact {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.eac-header__phone {
  font-size: 19px;
  font-weight: 800;
  color: var(--eac-dark);
  line-height: 1.2;
}

.eac-header__phone:hover {
  color: var(--eac-primary);
}

.eac-header__mail {
  font-size: 12px;
  color: var(--eac-gray);
}

.eac-header__cta-btn {
  background: var(--eac-primary-gradient);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 13.5px;
  padding: 11px 22px;
  border-radius: var(--eac-radius);
  box-shadow: 0 4px 14px rgba(0, 184, 242, 0.28);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.eac-header__cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 184, 242, 0.4);
}

/* ==========================================================================
   6. Navigation Row
   ========================================================================== */
.eac-navrow {
  background: #ffffff;
  border-bottom: 1px solid var(--eac-border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.eac-navrow__inner {
  display: flex;
  align-items: center;
}

.eac-nav ul.menu,
#header_menu ul.menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.eac-nav ul.menu li,
#header_menu ul.menu li {
  margin: 0;
  padding: 0;
}

.eac-nav ul.menu li a,
#header_menu ul.menu li a {
  display: block;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.eac-nav ul.menu li a:hover,
#header_menu ul.menu li a:hover {
  background: #f0f9ff;
  color: var(--eac-primary-dark);
}

.eac-nav ul.menu li.current-menu-item a,
#header_menu ul.menu li.current-menu-item a {
  background: var(--eac-primary-gradient);
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 184, 242, 0.25);
}

/* Mobile Hamburger Toggle */
#eac-burger {
  display: none;
  background: transparent;
  border: 1px solid var(--eac-border);
  border-radius: var(--eac-radius);
  padding: 8px 14px;
  cursor: pointer;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--eac-dark);
  margin: 10px 0;
}

.eac-burger-icon {
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--eac-dark);
  position: relative;
  transition: all 0.2s ease;
}

.eac-burger-icon::before,
.eac-burger-icon::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 2px;
  background: var(--eac-dark);
  left: 0;
  transition: all 0.2s ease;
}

.eac-burger-icon::before { top: -6px; }
.eac-burger-icon::after { bottom: -6px; }

/* ==========================================================================
   7. Homepage Hero Section
   ========================================================================== */
.eac-hero-home {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #0369a1 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 56px 48px;
  margin-bottom: 48px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
  position: relative;
  overflow: hidden;
}

.eac-hero-home::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 184, 242, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.eac-hero-home__badge {
  display: inline-block;
  background: rgba(0, 184, 242, 0.15);
  border: 1px solid rgba(0, 184, 242, 0.4);
  color: #38bdf8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.eac-hero-home__title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 18px 0;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.eac-hero-home__subtitle {
  font-size: 17px;
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 860px;
  margin: 0 0 28px 0;
}

.eac-hero-home__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.eac-hero-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 500;
  color: #f1f5f9;
}

.eac-hero-home__actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.eac-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14.5px;
  padding: 13px 26px;
  border-radius: var(--eac-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.eac-btn--primary {
  background: var(--eac-primary-gradient);
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(0, 184, 242, 0.4);
}

.eac-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 184, 242, 0.5);
}

.eac-btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
}

.eac-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.eac-btn--outline {
  background: #ffffff;
  border: 1px solid var(--eac-border);
  color: var(--eac-dark-light);
  box-shadow: var(--eac-shadow-sm);
}

.eac-btn--outline:hover {
  border-color: var(--eac-primary);
  color: var(--eac-primary-dark);
}

/* ==========================================================================
   8. Section Headers & Services Grid
   ========================================================================== */
.eac-section {
  margin-bottom: 52px;
}

.eac-section__header {
  text-align: center;
  margin-bottom: 32px;
}

.eac-section__title {
  font-size: 28px;
  font-weight: 800;
  color: var(--eac-dark);
  margin: 0 0 10px 0;
  letter-spacing: -0.5px;
}

.eac-section__subtitle {
  font-size: 15px;
  color: var(--eac-gray);
  max-width: 680px;
  margin: 0 auto;
}

.eac-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.eac-service-card {
  background: #ffffff;
  border: 1px solid var(--eac-border);
  border-radius: var(--eac-radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--eac-shadow);
  transition: all 0.2s ease;
}

.eac-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--eac-shadow-hover);
  border-color: #7dd3fc;
}

.eac-service-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.eac-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.eac-badge--price {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.eac-badge--time {
  background: #f0f9ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.eac-service-card__title {
  font-size: 18px;
  font-weight: 750;
  margin: 0 0 10px 0;
  color: var(--eac-dark);
  line-height: 1.35;
}

.eac-service-card__desc {
  font-size: 14px;
  color: var(--eac-gray);
  flex-grow: 1;
  line-height: 1.55;
  margin: 0 0 20px 0;
}

.eac-service-card__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--eac-border);
}

.eac-service-card__link {
  font-size: 13.5px;
  font-weight: 600;
  color: #0284c7;
}

.eac-service-card__link:hover {
  color: var(--eac-primary);
}

.eac-service-card__btn {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: var(--eac-primary-dark);
  font-weight: 700;
  font-size: 12.5px;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.eac-service-card__btn:hover {
  background: var(--eac-primary);
  color: #ffffff;
  border-color: var(--eac-primary);
}

.eac-services-all {
  text-align: center;
  margin-top: 32px;
}

/* ==========================================================================
   9. 4-Steps Workflow Grid
   ========================================================================== */
.eac-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.eac-step-item {
  background: #ffffff;
  border: 1px solid var(--eac-border);
  border-radius: var(--eac-radius-lg);
  padding: 28px 22px;
  box-shadow: var(--eac-shadow);
  position: relative;
}

.eac-step-item__num {
  font-size: 32px;
  font-weight: 900;
  color: #00b8f2;
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.eac-step-item__title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--eac-dark);
  margin: 0 0 8px 0;
}

.eac-step-item__desc {
  font-size: 13.5px;
  color: var(--eac-gray);
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   10. Guarantees Grid
   ========================================================================== */
.eac-guarantees-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.eac-guarantee-card {
  background: #ffffff;
  border: 1px solid var(--eac-border);
  border-radius: var(--eac-radius-lg);
  padding: 26px 20px;
  box-shadow: var(--eac-shadow);
}

.eac-guarantee-card__icon {
  font-size: 30px;
  margin-bottom: 12px;
}

.eac-guarantee-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--eac-dark);
  margin: 0 0 8px 0;
}

.eac-guarantee-card__desc {
  font-size: 13px;
  color: var(--eac-gray);
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   11. News Articles Grid
   ========================================================================== */
.eac-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.eac-news-card {
  background: #ffffff;
  border: 1px solid var(--eac-border);
  border-radius: var(--eac-radius-lg);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--eac-shadow);
}

.eac-news-card__date {
  font-size: 12px;
  color: var(--eac-gray-light);
  font-weight: 600;
  margin-bottom: 8px;
}

.eac-news-card__title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 10px 0;
  line-height: 1.35;
}

.eac-news-card__title a {
  color: var(--eac-dark);
}

.eac-news-card__title a:hover {
  color: var(--eac-primary);
}

.eac-news-card__excerpt {
  font-size: 13.5px;
  color: var(--eac-gray);
  flex-grow: 1;
  line-height: 1.55;
  margin-bottom: 16px;
}

.eac-news-card__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--eac-primary-dark);
}

.eac-news-all {
  text-align: center;
  margin-top: 32px;
}

/* ==========================================================================
   12. Inner Pages, Breadcrumbs & Commercial Trust Bar
   ========================================================================== */
.eac-crumbs {
  font-size: 13px;
  color: var(--eac-gray);
  margin-bottom: 20px;
}

.eac-crumbs a {
  color: var(--eac-gray);
}

.eac-crumbs a:hover {
  color: var(--eac-primary);
}

.eac-hero--inner {
  background: #f8fafc;
  border-left: 4px solid var(--eac-primary);
  border-radius: 0 var(--eac-radius) var(--eac-radius) 0;
  padding: 24px 28px;
  margin-bottom: 28px;
}

.eac-hero__eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--eac-primary-dark);
  margin: 0 0 6px 0;
}

.eac-hero__eyebrow a {
  color: var(--eac-primary-dark);
}

.eac-page-title,
.eac-article-title {
  margin: 0 0 12px 0;
  color: var(--eac-dark);
}

.eac-hero__meta {
  font-size: 13px;
  color: var(--eac-gray);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.eac-meta__sep {
  color: #cbd5e1;
}

/* Commercial Trust Bar */
.eac-trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: var(--eac-radius);
  padding: 18px 20px;
  margin-bottom: 32px;
}

.eac-trust-bar__item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eac-trust-bar__icon {
  font-size: 26px;
  line-height: 1;
}

.eac-trust-bar__text strong {
  display: block;
  font-size: 13.5px;
  color: var(--eac-dark);
  line-height: 1.25;
}

.eac-trust-bar__text span {
  display: block;
  font-size: 12px;
  color: var(--eac-gray);
}

/* ==========================================================================
   13. Content Typography & Floated Images / Certificates
   ========================================================================== */
.eac-entry {
  font-size: 15px;
  line-height: 1.7;
  color: #334155;
}

.eac-entry p:empty {
  display: none !important;
}

.eac-lead {
  font-size: 16.5px;
  line-height: 1.65;
  color: #1e293b;
  font-weight: 500;
  margin-bottom: 1.2em;
}

/* Floated certificates and images */
.alignleft,
.alignright,
.aligncenter,
.wp-caption {
  background: #ffffff;
  border: 1px solid var(--eac-border);
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.alignleft:hover,
.alignright:hover,
.aligncenter:hover,
.wp-caption:hover {
  box-shadow: 0 8px 24px rgba(0, 184, 242, 0.15);
  border-color: #7dd3fc;
}

.alignleft {
  float: left;
  margin: 6px 24px 18px 0;
  max-width: 45%;
}

.alignright {
  float: right;
  margin: 6px 0 18px 24px;
  max-width: 45%;
}

.aligncenter {
  display: block;
  margin: 18px auto;
  clear: both;
}

.wp-caption img {
  border-radius: 4px;
  margin: 0;
}

.wp-caption-text {
  font-size: 12px;
  color: var(--eac-gray);
  text-align: center;
  padding: 6px 4px 2px 4px;
  margin: 0;
}

/* Sub-Services Navigation Pills (modern replacement for raw <ul> at the top) */
.eac-subnav-pills {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--eac-radius);
  padding: 16px 20px;
  margin: 0 0 24px 0;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.eac-subnav-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--eac-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.eac-pills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.eac-pills-list li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.eac-pills-list li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #bae6fd;
  color: var(--eac-primary-dark);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.eac-pills-list li a:hover {
  background: var(--eac-primary-gradient);
  border-color: var(--eac-primary);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 184, 242, 0.25);
}

/* Defensive rule against empty/broken images */
.eac-entry img[src=""],
.eac-entry img:not([src]) {
  display: none !important;
}

/* Content Tables */
.eac-entry table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  background: #ffffff;
  border-radius: var(--eac-radius);
  overflow: hidden;
  border: 1px solid var(--eac-border);
}

.eac-entry th {
  background: #f1f5f9;
  color: var(--eac-dark);
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--eac-border);
}

.eac-entry td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--eac-border);
  color: #334155;
}

.eac-entry tr:nth-child(even) td {
  background: #f8fafc;
}

.eac-entry tr:hover td {
  background: #f0f9ff;
}

/* ==========================================================================
   14. Expert Callout Card
   ========================================================================== */
.eac-expert-callout {
  display: flex;
  gap: 22px;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--eac-primary);
  border-radius: var(--eac-radius);
  padding: 24px 28px;
  margin: 36px 0;
}

.eac-expert-callout__avatar {
  flex-shrink: 0;
}

.eac-expert-callout__badge {
  background: var(--eac-primary-gradient);
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  padding: 14px 16px;
  border-radius: 12px;
  display: inline-block;
  box-shadow: 0 4px 14px rgba(0, 184, 242, 0.3);
}

.eac-expert-callout__content {
  flex: 1;
}

.eac-expert-callout__title {
  font-size: 17px;
  font-weight: 750;
  color: var(--eac-dark);
  margin: 0 0 6px 0;
}

.eac-expert-callout__text {
  font-size: 13.5px;
  color: var(--eac-gray);
  line-height: 1.55;
  margin: 0 0 14px 0;
}

.eac-expert-callout__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.eac-expert-callout__phone {
  font-size: 17px;
  font-weight: 800;
  color: var(--eac-dark);
}

.eac-expert-callout__phone:hover {
  color: var(--eac-primary);
}

/* ==========================================================================
   15. Form Card & Modal Popup
   ========================================================================== */
.eac-form-card {
  background: #ffffff;
  border: 1px solid var(--eac-border);
  border-top: 4px solid var(--eac-primary);
  border-radius: var(--eac-radius-lg);
  padding: 32px 36px;
  margin: 36px 0;
  box-shadow: var(--eac-shadow);
}

.eac-form-card__title {
  font-size: 20px;
  font-weight: 800;
  color: var(--eac-dark);
  margin: 0 0 6px 0;
}

.eac-form-card__subtitle {
  font-size: 13.5px;
  color: var(--eac-gray);
  margin: 0 0 24px 0;
}

.eac-form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.eac-form-group--full {
  grid-column: 1 / -1;
}

.eac-form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

.eac-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid var(--eac-border);
  border-radius: var(--eac-radius);
  background: #ffffff;
  color: var(--eac-dark-light);
  box-sizing: border-box;
  transition: all 0.15s ease;
}

.eac-input:focus {
  outline: none;
  border-color: var(--eac-border-focus);
  box-shadow: 0 0 0 3px rgba(0, 184, 242, 0.15);
}

.eac-textarea {
  resize: vertical;
  min-height: 70px;
}

.eac-form-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.eac-submit-btn {
  background: var(--eac-primary-gradient);
  color: #ffffff;
  border: none;
  border-radius: var(--eac-radius);
  padding: 12px 28px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 184, 242, 0.3);
  transition: all 0.2s ease;
}

.eac-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 184, 242, 0.45);
}

.eac-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.eac-form-privacy {
  font-size: 12px;
  color: var(--eac-gray-light);
  max-width: 460px;
}

.eac-form-privacy a {
  color: var(--eac-gray);
  text-decoration: underline;
}

.eac-form-alert {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--eac-radius);
  font-size: 13.5px;
}

.eac-form-alert--success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

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

/* Modal Overlay */
.eac-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.eac-modal-card {
  background: #ffffff;
  border-radius: 16px;
  width: 540px;
  max-width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px 32px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  animation: eacModalFade 0.2s ease-out;
}

@keyframes eacModalFade {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.eac-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: var(--eac-gray);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.eac-modal-close:hover {
  background: #f1f5f9;
  color: var(--eac-dark);
}

.eac-modal-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--eac-primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.eac-modal-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--eac-dark);
  margin: 0 0 6px 0;
}

.eac-modal-subtitle {
  font-size: 13.5px;
  color: var(--eac-gray);
  margin: 0 0 22px 0;
}

.eac-modal-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.eac-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.eac-submit-btn--modal {
  width: 100%;
}

/* ==========================================================================
   16. Right Sidebar
   ========================================================================== */
.sidebar_right .sidebar {
  background: #ffffff;
  border: 1px solid var(--eac-border);
  border-radius: var(--eac-radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--eac-shadow);
}

.head_sidebar {
  font-size: 16px;
  font-weight: 750;
  color: var(--eac-dark);
  margin: -24px -24px 18px -24px;
  padding: 14px 20px;
  background: #f8fafc;
  border-bottom: 1px solid var(--eac-border);
  border-left: 4px solid var(--eac-primary);
  border-radius: var(--eac-radius-lg) var(--eac-radius-lg) 0 0;
}

.sidebar_right form input[type='text'],
.sidebar_right form input[type='search'] {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--eac-border);
  border-radius: var(--eac-radius);
  box-sizing: border-box;
}

.sidebar_right ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar_right ul li {
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  position: relative;
  margin: 0;
}

.sidebar_right ul li:last-child {
  border-bottom: none;
}

.sidebar_right ul li a {
  color: #334155;
  font-size: 13.5px;
  display: block;
  padding-left: 14px;
  position: relative;
  transition: all 0.15s ease;
}

.sidebar_right ul li a::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--eac-primary);
  font-weight: 800;
  font-size: 15px;
  top: -1px;
}

.sidebar_right ul li a:hover {
  color: var(--eac-primary);
  transform: translateX(3px);
}

/* ==========================================================================
   17. 4-Column Modern Dark Footer
   ========================================================================== */
.eac-footer {
  background: var(--eac-dark);
  color: var(--eac-gray-light);
  padding: 56px 0 28px 0;
  border-top: 1px solid #1e293b;
  margin-top: 60px;
}

.eac-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 36px;
}

.eac-footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

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

.eac-footer-brand-name {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.eac-footer__desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 18px;
}

.eac-footer .copyright {
  display: block;
  font-size: 12px;
  color: #64748b;
}

.eac-footer__title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 16px 0;
  letter-spacing: 0.2px;
}

.eac-footer__menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.eac-footer__menu li {
  margin-bottom: 9px;
}

.eac-footer__menu a {
  color: #94a3b8;
  font-size: 13.5px;
  transition: all 0.15s ease;
}

.eac-footer__menu a:hover {
  color: var(--eac-primary);
  padding-left: 2px;
}

.eac-footer__contacts p,
.eac-footer__contacts span,
.eac-footer__contacts a {
  display: block;
  font-size: 13.5px;
  margin-bottom: 8px;
}

.eac-footer__addr {
  color: #cbd5e1;
  margin-bottom: 8px;
}

.eac-footer__phone {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff !important;
}

.eac-footer__phone:hover {
  color: var(--eac-primary) !important;
}

.eac-footer__mail {
  color: #94a3b8 !important;
}

.eac-footer__mail:hover {
  color: var(--eac-primary) !important;
}

.eac-footer__schedule {
  color: #64748b;
  font-size: 12px;
}

.eac-footer__cta {
  display: inline-block;
  margin-top: 10px;
  background: var(--eac-primary-gradient);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 12.5px;
  padding: 8px 16px;
  border-radius: var(--eac-radius);
  box-shadow: 0 2px 10px rgba(0, 184, 242, 0.25);
}

.eac-footer__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 184, 242, 0.4);
}

.eac-counters {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #1e293b;
}

/* ==========================================================================
   18. Post Navigation & Related Posts
   ========================================================================== */
.eac-post-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 36px 0;
  padding-top: 24px;
  border-top: 1px solid var(--eac-border);
}

.eac-post-nav__prev a,
.eac-post-nav__next a {
  font-size: 14px;
  font-weight: 600;
  color: #0284c7;
}

.eac-post-nav__prev a:hover,
.eac-post-nav__next a:hover {
  color: var(--eac-primary);
}

/* ==========================================================================
   19. Responsive Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
  .eac-page-layout {
    flex-direction: column;
    gap: 32px;
  }

  .eac-sidebar-col {
    width: 100%;
  }

  .eac-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .eac-steps-grid,
  .eac-guarantees-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .eac-footer__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .eac-topbar__schedule {
    display: none;
  }

  .eac-header__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .eac-header__meta {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
  }

  .eac-header__info {
    display: none;
  }

  #eac-burger {
    display: inline-flex;
  }

  .eac-nav {
    display: none;
    width: 100%;
    padding: 12px 0;
  }

  body.eac-nav-open .eac-nav {
    display: block;
  }

  .eac-nav ul.menu,
  #header_menu ul.menu {
    flex-direction: column;
    gap: 2px;
  }

  .eac-nav ul.menu li a,
  #header_menu ul.menu li a {
    padding: 10px 14px;
  }

  .eac-hero-home {
    padding: 36px 24px;
  }

  .eac-hero-home__title {
    font-size: 26px;
  }

  .eac-hero-home__subtitle {
    font-size: 15px;
  }

  .eac-hero-home__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .eac-services-grid,
  .eac-steps-grid,
  .eac-guarantees-grid,
  .eac-news-grid {
    grid-template-columns: 1fr;
  }

  .eac-trust-bar {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .eac-main-col {
    padding: 24px 20px;
  }

  .eac-form-grid {
    grid-template-columns: 1fr;
  }

  .alignleft,
  .alignright {
    float: none;
    margin: 16px auto;
    max-width: 100%;
  }

  .eac-expert-callout {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .eac-footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ==========================================================================
   21. Reviews CTA Component ([mcc-comments] shortcode)
   ========================================================================== */
.eac-reviews-cta-wrap {
  margin: 32px 0;
}

.eac-reviews-cta-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  border: 1px solid #bae6fd;
  border-radius: var(--eac-radius-lg);
  box-shadow: var(--eac-shadow);
}

.eac-reviews-cta-icon {
  font-size: 2.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.eac-reviews-cta-content {
  flex: 1;
}

.eac-reviews-cta-title {
  margin: 0 0 6px 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--eac-dark);
}

.eac-reviews-cta-desc {
  margin: 0;
  font-size: 0.95rem;
  color: var(--eac-gray);
  line-height: 1.5;
}

.eac-reviews-cta-card .eac-hero__btn {
  white-space: nowrap;
  flex-shrink: 0;
  margin: 0;
}

@media (max-width: 768px) {
  .eac-reviews-cta-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
  }

  .eac-reviews-cta-card .eac-hero__btn {
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   22. Modern 404 Error Page Components
   ========================================================================== */
.eac-404-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 0;
  text-align: center;
}

.eac-404-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--eac-primary-light);
  color: var(--eac-primary-dark);
  border-radius: var(--eac-radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.eac-404-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--eac-dark);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.eac-404-desc {
  font-size: 1.1rem;
  color: var(--eac-gray);
  max-width: 600px;
  margin: 0 auto 32px auto;
  line-height: 1.6;
}

.eac-404-search {
  max-width: 520px;
  margin: 0 auto 48px auto;
}

.eac-404-searchform {
  display: flex;
  gap: 10px;
  background: #ffffff;
  padding: 6px;
  border: 1px solid var(--eac-border);
  border-radius: var(--eac-radius-lg);
  box-shadow: var(--eac-shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.eac-404-searchform:focus-within {
  border-color: var(--eac-border-focus);
  box-shadow: 0 0 0 3px rgba(0, 184, 242, 0.15);
}

.eac-404-search-input {
  flex: 1;
  border: none;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  background: transparent;
  color: var(--eac-dark);
}

.eac-404-search-btn {
  background: var(--eac-primary-gradient);
  color: #ffffff;
  border: none;
  border-radius: var(--eac-radius);
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.eac-404-search-btn:hover {
  opacity: 0.9;
}

.eac-404-quick-nav {
  margin: 40px 0;
  text-align: left;
}

.eac-404-nav-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--eac-dark);
  margin-bottom: 20px;
  text-align: center;
}

.eac-404-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.eac-404-link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid var(--eac-border);
  border-radius: var(--eac-radius-lg);
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: var(--eac-shadow-sm);
}

.eac-404-link-card:hover {
  border-color: var(--eac-primary);
  box-shadow: var(--eac-shadow-hover);
  transform: translateY(-2px);
}

.eac-404-card-icon {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}

.eac-404-card-info {
  display: flex;
  flex-direction: column;
}

.eac-404-card-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--eac-dark);
  line-height: 1.3;
}

.eac-404-card-desc {
  font-size: 0.85rem;
  color: var(--eac-gray);
  margin-top: 4px;
  line-height: 1.3;
}

.eac-404-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 44px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .eac-404-title {
    font-size: 1.75rem;
  }

  .eac-404-links-grid {
    grid-template-columns: 1fr;
  }

  .eac-404-actions {
    flex-direction: column;
  }

  .eac-404-actions .eac-hero__btn {
    width: 100%;
    text-align: center;
  }
}


/* ==========================================================================
   16. Фотообложка главной и иллюстрации секций (добавлено 13.09.2026)
   ========================================================================== */
.eac-hero-home {
  background-color: #0f172a;
  background-image:
    linear-gradient(100deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.88) 45%, rgba(3, 105, 161, 0.68) 100%),
    url('../img/hero-lab.jpg');
  background-image:
    linear-gradient(100deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.88) 45%, rgba(3, 105, 161, 0.68) 100%),
    image-set(url('../img/hero-lab.webp') type('image/webp'), url('../img/hero-lab.jpg') type('image/jpeg'));
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

.eac-hero-home__content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

/* Иллюстрация внутри секции: широкая полоса под заголовком */
.eac-section-media {
  margin: 0 0 30px 0;
  border-radius: 16px;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
}

.eac-section-media img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
}

/* Кадрирование по сюжету: в блоке гарантий важны лица, а не стол */
.eac-guarantees-section .eac-section-media img {
  object-position: 50% 20%;
}

.eac-steps-section .eac-section-media img {
  object-position: 50% 45%;
}

/* Иллюстрация в текстовом блоке: обтекание справа */
.eac-text-media {
  float: right;
  width: 42%;
  max-width: 430px;
  margin: 4px 0 22px 28px;
  border-radius: 14px;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
}

.eac-text-media img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .eac-hero-home {
    background-position: 65% center;
    background-image:
      linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.9) 60%, rgba(3, 105, 161, 0.82) 100%),
      url('../img/hero-lab.jpg');
    background-image:
      linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.9) 60%, rgba(3, 105, 161, 0.82) 100%),
      image-set(url('../img/hero-lab.webp') type('image/webp'), url('../img/hero-lab.jpg') type('image/jpeg'));
  }

  .eac-section-media img {
    height: 220px;
  }

  .eac-text-media {
    float: none;
    width: 100%;
    max-width: none;
    margin: 0 0 20px 0;
  }
}
