/* ============================================================
   WorkAssistent Landing — style.css
   ============================================================ */

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

:root {
  --clr-bg: #ffffff;
  --clr-surface: #f8f9fa;
  --clr-border: #e5e7eb;
  --clr-text: #111827;
  --clr-muted: #6b7280;
  --clr-accent: #16a34a;
  --clr-accent-dark: #15803d;
  --font: 'Inter', system-ui, sans-serif;
  --radius: 6px;
  --max-w: 1100px;
  --gap: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--clr-text);
  background: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 13px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn-primary { background: var(--clr-accent); color: #fff; border-color: var(--clr-accent); }
.btn-primary:hover { background: var(--clr-accent-dark); border-color: var(--clr-accent-dark); }
.btn-outline { background: var(--clr-bg); color: var(--clr-text); border-color: var(--clr-border); }
.btn-outline:hover { background: var(--clr-surface); }
.btn-lg { font-size: 15px; padding: 11px 24px; }

/* ---- Helpers ---- */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 8px;
}

/* ---- Sections ---- */
.section { padding: 20px 0; }
.section-alt { background: var(--clr-surface); }

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 16px;
}
.section-head h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 8px;
}
.section-subhead {
  font-size: 14px;
  color: var(--clr-muted);
  line-height: 1.6;
  margin-top: 6px;
}

/* ---- Grids ---- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

/* ---- Cards (общие) ---- */
.card {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--clr-bg);
}
.card h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--clr-text);
}
.card p {
  font-size: 13px;
  color: #2f2f2f;
  line-height: 1.6;
}

/* Номер карточки */
.card-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--clr-muted);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  opacity: 0.7;
}

/* Карточки архитектуры (8 штук 2×4) */
.cards-grid { }

/* Карточки модулей */
.card-module h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--clr-text);
}

/* ---- Gallery caption ---- */
.gallery-caption {
  font-size: 12px;
  color: var(--clr-muted);
  text-align: center;
  margin-top: 8px;
}

/* ---- Section gallery (full-width карусель после карточек) ---- */
.section-gallery {
  margin-top: 32px;
}
.section-gallery--wide .fc-wrap {
  aspect-ratio: 16 / 8;
}


/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--clr-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo-img {
  width: 26px;
  height: 26px;
  object-fit: cover;
  border-radius: 5px;
}
.logo-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--clr-text);
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 24px;
}
.desktop-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--clr-muted);
  transition: color 0.15s;
}
.desktop-nav a:hover { color: var(--clr-text); }

.header-actions {
  display: none;
  align-items: center;
  gap: 8px;
}

.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--clr-border);
  border-radius: 999px;
  background: var(--clr-bg);
  color: var(--clr-text);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 6px 16px 14px;
  border-top: 1px solid var(--clr-border);
  background: var(--clr-bg);
}
.mobile-nav.active { display: flex; }
.mobile-nav a {
  padding: 9px 12px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--clr-text);
}
.mobile-nav a:hover { background: var(--clr-surface); }
.mobile-nav-cta {
  margin-top: 8px;
  align-self: flex-start;
}

@media (min-width: 860px) {
  .desktop-nav { display: flex; }
  .header-actions { display: flex; }
  .mobile-menu-btn { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 24px 0 24px;
  background:
    radial-gradient(circle at 5% 10%, rgba(22,163,74,0.05), transparent 35%),
    var(--clr-bg);
}
.hero-header {
  margin-bottom: 28px;
}
.hero-header h1 {
  font-size: 23px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: start;
}
.hero-content h1 {
  font-size: 23px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.hero-content p {
  font-size: 14px;
  color: var(--clr-muted);
  line-height: 1.65;
  margin-bottom: 10px;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.hero-visual {
  min-width: 0;
}
.hero-visual-note {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--clr-muted);
  line-height: 1.65;
  padding: 14px 16px;
  border-left: 3px solid var(--clr-accent);
  background: rgba(0,0,0,0.025);
  border-radius: 0 4px 4px 0;
}
.hero-visual-note strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: 5px;
}
.hero-features {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-features li {
  font-size: 13.5px;
  color: var(--clr-muted);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}
.hero-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--clr-accent);
  flex-shrink: 0;
}
.hero-features li strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: 1px;
}


/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.comparison-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--clr-bg);
  border: 1px #aeaeae;
  border-radius: var(--radius);
  margin-top: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
.comparison-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}
.comparison-table th,
.comparison-table td {
  padding: 8px 20px;
  border-bottom: 1px solid var(--clr-border);
  border-right: 1px solid var(--clr-border);
  vertical-align: middle;
}
.comparison-table th:last-child,
.comparison-table td:last-child {
  border-right: none;
}
.comparison-table tbody tr:last-child td {
  border-bottom: none;
}
.comparison-table th {
  background: var(--clr-surface);
  font-size: 13px;
  font-weight: 700;
  color: var(--clr-text);
  line-height: 1.4;
  vertical-align: middle;
  text-align: center;
  border-top: 3px solid transparent;
}
.comparison-table th:first-child {
  text-align: left;
  vertical-align: middle;
  width: 35%;
}
.comparison-table td {
  font-size: 13px;
  color: var(--clr-muted);
  line-height: 1.5;
  text-align: center;
}
.comparison-table td:first-child {
  font-weight: 500;
  color: var(--clr-text);
  text-align: left;
}
.comparison-table th:nth-child(n+2),
.comparison-table td:nth-child(n+2) {
  width: 13%;
}
.comparison-table th span {
  font-size: 11px;
  font-weight: 500;
  color: var(--clr-muted);
  display: block;
  margin-top: 6px;
}
.comparison-table th.highlight,
.comparison-table td.highlight {
  background: rgba(22, 163, 74, 0.08);
}
.comparison-table th.highlight {
  color: var(--clr-accent-dark);
  font-size: 13px;
  border-top: 3px solid var(--clr-accent);
}
.comparison-table td .icon-check {
  stroke: var(--clr-accent);
  color: var(--clr-accent);
  display: block;
  margin: 0 auto;
  width: 20px;
  height: 20px;
}
.comparison-table td .icon-cross {
  stroke: var(--clr-muted);
  color: var(--clr-muted);
  opacity: 0.3;
  display: block;
  margin: 0 auto;
  width: 20px;
  height: 20px;
}
.comparison-table td .text-value {
  display: inline-block;
  font-size: 12px;
  line-height: 1.4;
  color: var(--clr-text);
  font-weight: 500;
}

/* Feature Popup Styles */
.feature-trigger {
  cursor: pointer;
  border-bottom: 1px dashed var(--clr-muted);
  transition: color 0.15s, border-color 0.15s;
  display: inline;
}
.feature-trigger:hover,
.feature-trigger.active {
  color: var(--clr-accent);
  border-bottom-color: var(--clr-accent);
}

.feature-popup {
  position: absolute;
  width: 340px;
  background: #ffffff;
  border: 1px solid var(--clr-accent);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  font-size: 13px;
  line-height: 1.5;
  color: var(--clr-text);
  pointer-events: none;
}
.feature-popup.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}
.feature-popup::before {
  content: '';
  position: absolute;
  top: var(--arrow-top, 20px);
  left: var(--arrow-left, -6px);
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-left: 1px solid var(--clr-accent);
  border-bottom: 1px solid var(--clr-accent);
  transform: rotate(45deg);
  transition: all 0.2s ease;
}
.feature-popup.popup-below {
  transform: translateY(-10px);
}
.feature-popup.popup-below.active {
  transform: translateY(0);
}
.feature-popup.popup-below::before {
  border-left: 1px solid var(--clr-accent);
  border-bottom: none;
  border-top: 1px solid var(--clr-accent);
}
@media (max-width: 768px) {
  .feature-popup {
    width: 280px;
  }
}

/* ============================================================
   SCENARIO TABS
   ============================================================ */
.sc-block {
  border: 0px solid var(--clr-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--clr-bg);
}

.sc-tabs {
  display: flex;
  border-bottom: 1px solid var(--clr-border);
  background: var(--clr-surface);
}
.sc-tab {
  flex: 1;
  padding: 12px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--clr-muted);
  background: none;
  border: none;
  /* border-bottom: 2px solid transparent; */
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  text-align: center;
  position: relative;
  z-index: 1;
}
.sc-tab:hover { color: var(--clr-text); background: rgba(0,0,0,0.02); }
.sc-tab.active {
  color: #1a1a1a;
  border: 1px solid var(--clr-accent);
  border-bottom: 2px solid var(--clr-bg);
  background: var(--clr-bg);
  border-radius: 10px 10px 0px 0px;
  z-index: 3;
  margin-bottom: -1px;
}
.sc-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--clr-bg);
}

.sc-panel { display: none; }
.sc-panel.active { 
  display: block; 
  border: 1px solid var(--clr-accent);
  position: relative;
  z-index: 2;
  margin-top: -1px;
}

.sc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
  padding: 24px;
}
.sc-text h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.3;
}

.sc-situation {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 16px;
}
.sc-situation-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-muted);
  margin-bottom: 6px;
}
.sc-situation p {
  font-size: 13px;
  color: var(--clr-muted);
  line-height: 1.6;
}

.sc-how-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 10px;
}

.sc-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  counter-reset: sc-step;
}
.sc-steps li {
  position: relative;
  padding-left: 28px;
  font-size: 13px;
  color: var(--clr-muted);
  line-height: 1.6;
  counter-increment: sc-step;
}
.sc-steps li::before {
  content: counter(sc-step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--clr-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sc-gallery { min-width: 0; }

/* ============================================================
   FLOW GRID
   ============================================================ */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-top: 28px;
}
.flow-item {
  border-left: 3px solid var(--clr-accent);
  padding: 12px 16px;
  background: var(--clr-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.flow-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--clr-accent);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.flow-item strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 3px;
}
.flow-item p {
  font-size: 13px;
  color: var(--clr-muted);
  line-height: 1.5;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-wrap {
  max-width: 620px;
  margin: 0 auto;
}
.contact-desc {
  font-size: 15px;
  color: var(--clr-muted);
  margin-bottom: 28px;
}
.contact-emails {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.contact-email-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-muted);
  margin-bottom: 4px;
}
.contact-email a {
  font-size: 20px;
  font-weight: 600;
  color: var(--clr-accent);
}
.contact-email a:hover { color: var(--clr-accent-dark); }


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #111827;
  color: #fff;
  padding: 48px 0 20px;
}
.footer-inner {
  display: grid;
  gap: 28px;
  margin-bottom: 32px;
}
.footer-brand { max-width: 280px; }
.footer .logo { margin-bottom: 10px; }
.footer .logo-text { color: #fff; }
.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}
.footer-links { display: grid; gap: 20px; }
.footer-col h4 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 10px;
}
.footer-col a {
  display: block;
  padding: 2px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: color 0.15s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: start; }
  .footer-links { grid-template-columns: repeat(3, minmax(110px, 1fr)); gap: 32px; }
}

/* ============================================================
   CAROUSELS
   ============================================================ */
.fc-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
}
.fc-track {
  position: relative;
  width: 100%;
  /* высота устанавливается через JS после загрузки первого изображения */
}
.fc-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.fc-slide.active { opacity: 1; }
.fc-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  /* MODAL_OPEN_DISABLED cursor: zoom-in; */
  cursor: default;
}

.fc-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: var(--clr-text);
  box-shadow: 0 1px 4px rgba(0,0,0,0.14);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fc-wrap:hover .fc-btn { opacity: 1; }
.fc-btn:hover { background: #fff; }
.fc-prev { left: 8px; }
.fc-next { right: 8px; }

.fc-dots {
  position: absolute;
  left: 50%;
  bottom: 7px;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 3;
}
.fc-dot {
  width: 5px; height: 5px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.15s;
}
.fc-dot.active { width: 14px; background: #fff; }

.fc-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 16px;
  font-size: 12px;
  color: var(--clr-muted);
  text-align: center;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal.active { display: flex; }
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
}
.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.modal-close {
  position: absolute;
  top: -40px; right: 0;
  width: 36px; height: 36px;
  border: none;
  border-radius: 999px;
  background: none;
  color: #fff;
  opacity: 0.7;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { opacity: 1; }
.modal-prev,
.modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.modal-prev:hover,
.modal-next:hover { background: rgba(255,255,255,0.22); }
.modal-prev { left: -54px; }
.modal-next { right: -54px; }
.modal-counter {
  position: absolute;
  left: 50%;
  bottom: -26px;
  transform: translateX(-50%);
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

/* ============================================================
   FADE-IN
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}
.comparison-table-wrap.fade-in.visible {
  border: 1px solid #d1d1d1;
}

/* ============================================================
   EXAMPLES
   ============================================================ */
.ex-tab {
  flex: 1;
  text-align: center;
  padding: 16px 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--clr-muted);
  cursor: pointer;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1;
}
.ex-tab:hover {
  color: var(--clr-text);
  background: rgba(0, 0, 0, 0.02);
}
.ex-tab.active {
  color: var(--clr-accent-dark);
  background: var(--clr-surface);
  border-color: var(--clr-accent);
  border-bottom: 1px solid var(--clr-surface);
  z-index: 3;
}
.ex-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--clr-surface);
}

.ex-content-wrap {
  border: 1px solid var(--clr-accent);
  background: var(--clr-surface);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 32px;
  min-height: 400px;
  position: relative;
  z-index: 2;
  margin-top: -1px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .sc-layout { grid-template-columns: 1fr; }
  .sc-gallery { order: -1; }
}

@media (max-width: 768px) {
  .hero { padding: 24px 0 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 24px 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .sc-tabs { 
    /* flex-wrap: wrap;  */
  }
  .sc-tab { flex: 1 1 auto; font-size: 12px; padding: 10px 10px; }
  .contact-emails { flex-direction: column; gap: 20px; }
}

@media (max-width: 480px) {
  .grid-3 { grid-template-columns: 1fr; }
  .flow-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 24px; }
  .modal-prev { left: -6px; }
  .modal-next { right: -6px; }
}
