/* =============================================================
   PORTFÓLIO — Eng. Tulio Lyra
   Design System: Engenharia / BIM
   Estrutura: Variáveis -> Reset -> Layout -> Componentes -> Seções -> Responsivo
============================================================= */

/* ---------- 1. VARIÁVEIS DE TEMA ---------- */
:root {
  /* Paleta - Light mode */
  --bg: #f4f6f8;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-hover: #eef1f4;
  --border: #dfe4e9;

  --text-primary: #10151c;
  --text-secondary: #4b5563;
  --text-muted: #7a8593;

  --brand-primary: #30503a;   /* verde escuro — cor principal da marca Plano BIM */
  --brand-secondary: #4a7a5a; /* verde médio, tom secundário da marca */
  --accent: #dc5800;          /* laranja — cor de destaque da marca Plano BIM */
  --accent-hover: #b84700;
  --accent-blue: #5b8f6b;     /* verde suave (alternativa decorativa) */

  --success: #1e9e63;
  --shadow-sm: 0 2px 8px rgba(48, 80, 58, 0.08);
  --shadow-md: 0 8px 24px rgba(48, 80, 58, 0.12);
  --shadow-lg: 0 20px 48px rgba(48, 80, 58, 0.18);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --font-heading: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  --transition: 0.25s ease;
  --header-height: 76px;
}

/* Dark mode: aplicado via atributo no <html> pelo JS */
html[data-theme="dark"] {
  --bg: #0e1712;
  --bg-alt: #122016;
  --surface: #16261b;
  --surface-hover: #1c3121;
  --border: #2b4232;

  --text-primary: #eef2ee;
  --text-secondary: #b9c7bb;
  --text-muted: #84987f;

  --brand-primary: #cfe3d5;
  --brand-secondary: #8fb89c;
  --accent: #ff8a3d;
  --accent-hover: #dc5800;
  --accent-blue: #7fb890;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.5);
}

/* ---------- 2. RESET ---------- */
* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  /* Compensa o menu "sticky" ao pular para uma seção via âncora */
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; color: var(--text-primary); }

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

.hidden { display: none !important; }

/* ---------- 3. SCROLL REVEAL (CSS puro) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 4. FAIXA DA LOGO + HEADER / NAVEGAÇÃO ---------- */

/* Faixa da logo, de ponta a ponta, acima do menu. O fundo usa a mesma
   cor de fundo da própria logo, então ela parece "esticar" a peça
   sem cortar ou distorcer a imagem (object-fit: contain). */
.logo-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #30503a;
  padding: 12px 0;
}
.logo-banner__img {
  height: 56px;
  width: auto;
  max-width: 90%;
  object-fit: contain;
  display: block;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(244, 246, 248, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
html[data-theme="dark"] .header { background: rgba(14, 23, 18, 0.85); }

.header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo__image {
  height: 40px;
  width: auto;
  border-radius: 8px;
  display: block;
}

.nav__list {
  display: flex;
  gap: 32px;
}
.nav__link {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 0;
  transition: color var(--transition);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav__link:hover, .nav__link.active-link {
  color: var(--text-primary);
}
.nav__link:hover::after, .nav__link.active-link::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-toggle {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  transition: background var(--transition), transform var(--transition);
}
.theme-toggle:hover { background: var(--surface-hover); transform: rotate(15deg); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 24px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ---------- 5. BOTÕES ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn--sm { padding: 10px 18px; font-size: 0.85rem; margin-top: 8px; }
.btn--full { width: 100%; }
.btn--whatsapp {
  background: #25d366;
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}
.btn--whatsapp:hover {
  background: #1ebe5b;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* CTA de WhatsApp centralizado ao final de cada seção */
.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* Botão flutuante de WhatsApp (fixo, canto inferior esquerdo) */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  box-shadow: var(--shadow-md);
  z-index: 900;
  transition: transform var(--transition), background var(--transition);
}
.whatsapp-float:hover { background: #1ebe5b; transform: translateY(-3px) scale(1.05); }

@media (max-width: 640px) {
  .whatsapp-float { width: 50px; height: 50px; font-size: 1.4rem; bottom: 18px; left: 18px; }
}

/* ---------- 6. HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(220, 88, 0, 0.14), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(48, 80, 58, 0.20), transparent 45%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg) 100%);
  z-index: -1;
}
.hero__container { max-width: 820px; }

.hero__eyebrow {
  display: inline-block;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 18px;
}
.hero__title {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}
.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 34px;
}
.hero__subtitle strong { color: var(--text-primary); }

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero__stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat__number {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--brand-primary);
}
html[data-theme="dark"] .stat__number { color: var(--accent); }
.stat__label { color: var(--text-muted); font-size: 0.85rem; }

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
  animation: bounce 2.2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------- 7. SEÇÕES GERAIS ---------- */
.section { padding: 110px 0; }
.section--alt { background: var(--bg-alt); }

.section__head { max-width: 620px; margin-bottom: 56px; }
.section__tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.section__title {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 700;
}
.section__desc {
  margin-top: 12px;
  color: var(--text-secondary);
}

/* ---------- 8. SOBRE ---------- */
.about {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* Bloco superior: foto ao lado do texto */
.about__intro {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 44px;
  align-items: center;
}
.about__text p { color: var(--text-secondary); margin-bottom: 18px; }

.about__photo-wrap {
  position: relative;
  width: 100%;
}
/* Blob decorativo que acompanha o mouse (efeito parallax sutil) */
.about__photo-bg {
  position: absolute;
  inset: -26px;
  background:
    radial-gradient(circle at 28% 25%, var(--accent) 0%, transparent 60%),
    radial-gradient(circle at 75% 75%, var(--brand-secondary) 0%, transparent 60%);
  filter: blur(38px);
  opacity: 0.6;
  border-radius: 50%;
  z-index: 0;
  transition: transform 0.2s ease-out;
  pointer-events: none;
  will-change: transform;
}
.about__photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 3px solid var(--surface);
}

/* Bloco inferior: softwares e tecnologias, em largura total */
.about__tools-section {
  padding-top: 44px;
  border-top: 1px solid var(--border);
}
.about__tools-title {
  font-size: 1.05rem;
  text-align: center;
  margin-bottom: 24px;
}
.tools-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 1 130px;
  padding: 18px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.tool-card i { font-size: 1.4rem; color: var(--accent-blue); }
.tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

/* ---------- 9. SERVIÇOS / ESPECIALIDADES ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 26px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.service-card__icon {
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 20px;
}
.service-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.service-card p { font-size: 0.9rem; color: var(--text-secondary); }

/* ---------- 10. FILTROS DE PORTFÓLIO ---------- */
.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--accent); color: var(--text-primary); }
.filter-btn.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}
html[data-theme="dark"] .filter-btn.active { background: var(--accent); border-color: var(--accent); color: #10151c; }

/* ---------- 11. GRID DE PROJETOS ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.project-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-hover);
}
.project-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover .project-card__image img { transform: scale(1.08); }

.project-card__tag {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(48, 80, 58, 0.88);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.project-card__body { padding: 24px; }
.project-card__body h3 { font-size: 1.05rem; margin-bottom: 10px; }
.project-card__body p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.project-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap var(--transition);
}
.project-card__link:hover { gap: 12px; }

.projects-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0;
}

/* ---------- 12. MODAL ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 16, 11, 0.72);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 24px;
}
.modal-overlay.active { display: flex; }

.modal {
  display: none;
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalPop 0.3s ease;
}
.modal.active { display: block; }

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.94) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal__image { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(48, 80, 58, 0.75);
  color: #fff;
  font-size: 1.4rem;
  display: grid;
  place-items: center;
  line-height: 1;
  z-index: 2;
}
.modal__body { padding: 30px; }
.modal__body h3 { font-size: 1.3rem; margin: 12px 0 16px; }
.modal__body p { color: var(--text-secondary); margin-bottom: 14px; font-size: 0.92rem; }
.modal__specs { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.modal__specs li { font-size: 0.88rem; color: var(--text-secondary); display: flex; gap: 10px; align-items: center; }
.modal__specs i { color: var(--success); }

/* ---------- 13. FLUXO BIM ---------- */
.flow {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.flow__step {
  flex: 1 1 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.flow__step:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.flow__icon {
  width: 52px; height: 52px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-blue));
  color: #fff;
  font-size: 1.2rem;
}
.flow__step h3 { font-size: 1rem; margin-bottom: 8px; }
.flow__step p { font-size: 0.85rem; color: var(--text-secondary); }
.flow__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.2rem;
}

/* ---------- 14. CONTATO ---------- */
.contact {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 50px;
}
.contact__form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text-primary);
  transition: border-color var(--transition);
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-error {
  font-size: 0.78rem;
  color: #e0392b;
  min-height: 14px;
}
.form-success {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--success);
  font-weight: 600;
}
.form-success.visible { display: flex; }

.contact__info { display: flex; flex-direction: column; gap: 22px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: transform var(--transition), border-color var(--transition);
}
.contact-item:hover { transform: translateX(4px); border-color: var(--accent); }
.contact-item i { font-size: 1.4rem; color: var(--accent); width: 28px; text-align: center; }
.contact-item span { display: block; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 2px; }
.contact-item a, .contact-item div strong { font-weight: 600; font-size: 0.95rem; }
.contact-item .contact-item__value {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

/* ---------- 14.1 DEPOIMENTOS ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial-card__icon {
  color: var(--accent);
  font-size: 1.4rem;
  opacity: 0.5;
  margin-bottom: 14px;
  display: block;
}
.testimonial-card p {
  font-size: 1.02rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 18px;
}
.testimonial-card footer {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
}
@media (max-width: 640px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ---------- 15. RODAPÉ ---------- */
.footer {
  background: var(--brand-primary);
  color: #dbe7f5;
  padding: 40px 0;
}
html[data-theme="dark"] .footer { background: #0c1710; }

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-family: var(--font-heading);
}
.logo__image--footer { height: 44px; }
.footer__social { display: flex; gap: 14px; }
.footer__social a {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  transition: background var(--transition), transform var(--transition);
}
.footer__social a:hover { background: var(--accent); transform: translateY(-3px); }
.footer__legal { text-align: right; font-size: 0.8rem; opacity: 0.75; }
.footer__legal p { margin-bottom: 4px; }

/* ---------- 16. BOTÃO VOLTAR AO TOPO ---------- */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  z-index: 900;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-hover); }

/* =============================================================
   17. RESPONSIVIDADE (Mobile-first refinado com breakpoints)
============================================================= */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-card { flex-basis: 110px; }
}

@media (max-width: 720px) {
  .about__intro {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .about__photo-wrap { max-width: 220px; }
}

@media (max-width: 860px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .nav.open { max-height: 400px; }
  .nav__list {
    flex-direction: column;
    gap: 0;
    padding: 10px 24px 20px;
  }
  .nav__list li { border-bottom: 1px solid var(--border); }
  .nav__link { display: block; padding: 14px 0; }

  .client-area-link { font-size: 0; padding: 10px; }
  .client-area-link i { font-size: 1rem; }

  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .contact { grid-template-columns: 1fr; }
  .flow { flex-direction: column; }
  .flow__arrow { transform: rotate(90deg); }
}

@media (max-width: 640px) {
  .section { padding: 70px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .tool-card { flex-basis: calc(50% - 8px); }
  .hero__stats { gap: 26px; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__legal { text-align: center; }
  .contact__form { padding: 24px; }
  .logo-banner { padding: 10px 0; }
  .logo-banner__img { height: 40px; }
}
