/* ============================================================
   VTK Soluciones — Estilos globales
   Mockup aprobado · Home primero
   ============================================================ */

:root {
  --bg: #0B1015;
  --bg-2: #12181E;
  --bg-card: #161D24;
  --yellow: #FFC400;
  --yellow-hover: #e6b000;
  --white: #FFFFFF;
  --muted: #B9C0C7;
  --light: #F4F5F6;
  --dark-text: #1A1F26;
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(0, 0, 0, 0.08);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 80px;
  --container: 1200px;
  --ease: 250ms ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  /* Tipografía — escala legible */
  --fs-body: 17px;
  --fs-sm: 0.9375rem;   /* ~16px */
  --fs-xs: 0.8125rem;   /* ~14px */
  --fs-label: 0.875rem; /* ~15px — nav, botones, eyebrows */
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--white);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--ease), opacity var(--ease); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: var(--fs-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: background var(--ease), border-color var(--ease), transform var(--ease), color var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--yellow);
  color: var(--dark-text);
  border-color: var(--yellow);
}
.btn--primary:hover {
  background: var(--yellow-hover);
  border-color: var(--yellow-hover);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}
.btn--outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--white);
}

.btn--lg { padding: 16px 32px; font-size: 0.9375rem; }

/* ---------- Section utilities ---------- */
.section { padding: 96px 0; }
.section--light { background: var(--light); color: var(--dark-text); }

.section__header { text-align: center; margin-bottom: 56px; }
.section__eyebrow {
  color: var(--yellow);
  font-size: var(--fs-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
}
.section__eyebrow--center { text-align: center; }
.section--light .section__eyebrow { color: #c9a000; }

.section__title {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
}
.section__title--dark { color: var(--dark-text); }

.section__line {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--yellow);
  margin: 18px auto 0;
  border-radius: 2px;
}
.section--light .section__line { background: #c9a000; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--header-h);
  transition: background var(--ease), box-shadow var(--ease), border-color var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-transparent { background: transparent; }
.site-header.is-scrolled {
  background: var(--bg);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-header__logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.site-nav { margin-left: auto; }
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.site-nav__link {
  display: block;
  padding: 8px 14px;
  font-size: var(--fs-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.78);
  position: relative;
}
.site-nav__link:hover,
.site-nav__link.is-active { color: var(--yellow); }
.site-nav__link.is-active::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  background: var(--yellow);
  border-radius: 1px;
}

.site-header__cta { margin-left: 16px; flex-shrink: 0; }
.site-nav__cta-mobile { display: none; }

.site-header__toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-left: auto;
}
.site-header__toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  transition: var(--ease);
}
.site-header__toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__toggle.is-active span:nth-child(2) { opacity: 0; }
.site-header__toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-header__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 190;
}
.site-header__overlay.is-visible { display: block; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 85vh;
  min-height: 85dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(11, 16, 21, 0.92) 0%, rgba(11, 16, 21, 0.72) 42%, rgba(11, 16, 21, 0.35) 100%),
    linear-gradient(180deg, rgba(11, 16, 21, 0.4) 0%, transparent 35%, rgba(11, 16, 21, 0.5) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero__text { max-width: 580px; }

.hero__eyebrow {
  color: var(--yellow);
  font-size: var(--fs-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  text-transform: none;
}
.hero__title-accent { color: var(--yellow); }

.hero__desc {
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--yellow);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   SERVICIOS
   ============================================================ */
.services { padding: 96px 0; }

.services__track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.service-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--ease), box-shadow var(--ease);
  min-width: 0;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #222;
}
.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.service-card:hover .service-card__media img { transform: scale(1.03); }

.service-card__badge {
  position: absolute;
  left: 50%;
  bottom: -20px;
  transform: translateX(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--dark-text);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 1;
}
.service-card__badge svg { width: 18px; height: 18px; }

.service-card__body {
  padding: 32px 16px 20px;
  text-align: center;
}
.service-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.3;
}
.service-card__desc {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 14px;
  min-height: 2.2em;
}
.service-card__link {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.service-card__link:hover { opacity: 0.85; }

/* ============================================================
   TRUST (por qué elegirnos + CTA)
   ============================================================ */
.trust {
  padding: 96px 0;
  background: var(--bg);
}

.trust__block {
  background: var(--bg-2);
  border-radius: var(--radius);
  padding: 56px 48px 0;
  border: 1px solid var(--border);
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 40px;
  margin-bottom: 48px;
}

.trust__item { text-align: center; }
.trust__icon {
  width: 48px; height: 48px;
  margin: 0 auto 16px;
  color: var(--yellow);
}
.trust__icon svg { width: 100%; height: 100%; }
.trust__title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.trust__desc {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.5;
  max-width: 220px;
  margin: 0 auto;
}

.trust__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: rgba(0, 0, 0, 0.25);
  margin: 0 -48px;
  padding: 28px 48px;
  border-radius: 0 0 var(--radius) var(--radius);
  border-top: 1px solid var(--border);
}

.trust__cta-text {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 240px;
}
.trust__cta-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255, 196, 0, 0.12);
  border: 1px solid rgba(255, 196, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  flex-shrink: 0;
}
.trust__cta-icon svg { width: 22px; height: 22px; }
.trust__cta-title {
  font-size: 1.125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}
.trust__cta-desc {
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* ============================================================
   PROYECTOS DESTACADOS
   ============================================================ */
.projects-featured {
  padding: 96px 0;
  background: var(--bg);
}

.projects-featured__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.projects-featured__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--yellow);
  font-size: var(--fs-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.projects-featured__more:hover { opacity: 0.85; }

.projects-featured__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border);
  transition: transform var(--ease), border-color var(--ease);
}
.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 196, 0, 0.25);
}

.project-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #222;
}
.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.project-card:hover .project-card__media img { transform: scale(1.03); }

.project-card__body { padding: 18px 16px 20px; }
.project-card__cat {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--yellow);
  margin-bottom: 6px;
}
.project-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-final {
  padding: 80px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-final__inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.cta-final__title {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.cta-final__desc {
  color: var(--muted);
  font-size: 1.0625rem;
  margin-bottom: 28px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg);
  padding-top: 64px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}
.site-footer__logo img { height: 36px; margin-bottom: 16px; }
.site-footer__tagline {
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.55;
  max-width: 260px;
}
.site-footer__heading {
  font-size: var(--fs-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--yellow);
  margin-bottom: 18px;
}
.site-footer__links li { margin-bottom: 10px; }
.site-footer__links a,
.site-footer__contact li {
  font-size: var(--fs-sm);
  color: var(--muted);
}
.site-footer__links a:hover { color: var(--white); }

.site-footer__social {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.site-footer__social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: border-color var(--ease), color var(--ease);
}
.site-footer__social a:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.site-footer__bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.site-footer__bottom p {
  font-size: var(--fs-xs);
  color: var(--muted);
  text-align: center;
}

/* ============================================================
   RESPONSIVE — Tablet (1024px)
   ============================================================ */
@media (max-width: 1200px) {
  .services__track {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .projects-featured__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .site-nav__link { padding: 8px 10px; font-size: var(--fs-xs); }
  .trust__block { padding: 40px 32px 0; }
  .trust__cta { margin: 0 -32px; padding: 24px 32px; }
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RESPONSIVE — Mobile (768px y 390px)
   ============================================================ */
@media (max-width: 768px) {
  :root { --header-h: 72px; }
  .section { padding: 72px 0; }
  .services { padding: 72px 0; }
  .trust { padding: 72px 0; }
  .projects-featured { padding: 72px 0; }

  .site-header__toggle { display: flex; }
  .site-header__cta { display: none; }
  .site-nav__cta-mobile { display: inline-flex; margin-top: 20px; width: 100%; justify-content: center; }

  .site-nav {
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 88vw);
    height: 100vh;
    height: 100dvh;
    background: var(--bg-2);
    padding: calc(var(--header-h) + 24px) 28px 32px;
    transform: translateX(100%);
    transition: transform var(--ease);
    z-index: 195;
    margin-left: 0;
    overflow-y: auto;
  }
  .site-nav.is-open { transform: translateX(0); }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .site-nav__link {
    font-size: 1rem;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }
  .site-nav__link.is-active::after { display: none; }
  .site-nav__link.is-active { color: var(--yellow); }

  /* Hero mobile */
  .hero {
    min-height: 75vh;
    min-height: 75dvh;
    padding: calc(var(--header-h) + 32px) 0 64px;
  }
  .hero__overlay {
    background:
      linear-gradient(180deg, rgba(11, 16, 21, 0.88) 0%, rgba(11, 16, 21, 0.75) 60%, rgba(11, 16, 21, 0.55) 100%);
  }
  .hero__title { font-size: clamp(2rem, 9vw, 2.85rem); max-width: 42ch; }
  .hero__desc { font-size: 1.0625rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__scroll { display: none; }

  /* Services carousel mobile */
  .services__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 4px 4px 16px;
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
    scrollbar-width: none;
  }
  .services__track::-webkit-scrollbar { display: none; }
  .service-card {
    flex: 0 0 82vw;
    max-width: 320px;
    scroll-snap-align: center;
  }

  .trust__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .trust__block { padding: 32px 20px 0; }
  .trust__cta {
    flex-direction: column;
    align-items: stretch;
    margin: 0 -20px;
    padding: 24px 20px;
    text-align: center;
  }
  .trust__cta-text { flex-direction: column; text-align: center; }
  .trust__cta .btn { width: 100%; justify-content: center; }

  .projects-featured__header { flex-direction: column; align-items: flex-start; }
  .projects-featured__grid { grid-template-columns: 1fr; gap: 16px; }

  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 390px) {
  .container { padding: 0 16px; }
  .hero__title { font-size: 1.9rem; }
  .trust__grid { grid-template-columns: 1fr; }
}

/* ========== Internal pages ========== */
.page-internal .site-header { background: var(--dark); }
.page-internal .site-header.is-scrolled { background: rgba(11, 16, 21, 0.97); }

.page-hero {
  padding: calc(var(--header-h) + 56px) 0 56px;
  background: var(--dark);
  border-bottom: 1px solid var(--border);
}
.page-hero--short { padding-bottom: 40px; }
.page-hero__title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  color: var(--white);
  max-width: 20ch;
  line-height: 1.15;
  margin: 12px 0 16px;
}
.page-hero__desc {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 52ch;
}

.service-detail { padding: 72px 0; }
.service-detail--alt { background: var(--light); }
.service-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.service-detail__grid--reverse .service-detail__media { order: 2; }
.service-detail__grid--reverse .service-detail__content { order: 1; }
.service-detail__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--dark-2);
}
.service-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.service-detail__content h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.service-detail__content p { color: var(--text-muted); margin-bottom: 20px; line-height: 1.7; font-size: 1.0625rem; }
.service-detail--alt .service-detail__content p { color: #4a5560; }
.service-detail__list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-detail__list li {
  padding-left: 20px;
  position: relative;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.service-detail--alt .service-detail__list li { color: #4a5560; }
.service-detail__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  justify-content: center;
}
.filter-bar__btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--ease);
}
.filter-bar__btn:hover { border-color: var(--yellow); color: var(--yellow); }
.filter-bar__btn.is-active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--dark);
}

.projects-page__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.projects-page__empty {
  text-align: center;
  color: var(--muted);
  padding: 48px 0;
}
.project-card--clickable { cursor: pointer; transition: transform var(--ease); }
.project-card--clickable:hover { transform: translateY(-4px); }

.modal[hidden] { display: none !important; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}
.modal__dialog {
  position: relative;
  background: var(--dark-2);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  border: 1px solid var(--border);
}
.modal__dialog--wide { max-width: 960px; height: 85vh; display: flex; flex-direction: column; }
.modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 2;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.modal__media { aspect-ratio: 16/10; overflow: hidden; }
.modal__media img { width: 100%; height: 100%; object-fit: cover; }
.modal__body { padding: 28px; }
.modal__body h2 { font-size: 1.625rem; margin: 8px 0 12px; }
.modal__desc { color: var(--muted); margin-bottom: 20px; font-size: var(--fs-sm); }
.modal--pdf iframe { flex: 1; width: 100%; border: none; background: #fff; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

.about-page__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-page__text p { color: var(--muted); margin-bottom: 16px; line-height: 1.75; font-size: 1.0625rem; }
.about-page__values { display: grid; gap: 16px; }
.about-page__value {
  padding: 20px 24px;
  background: var(--dark-2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.about-page__value strong { color: var(--yellow); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 0.04em; }
.about-page__value span { color: var(--muted); font-size: var(--fs-sm); }

.timeline { max-width: 560px; margin: 0 auto; }
.timeline__item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-left: 2px solid var(--yellow);
  margin-left: 40px;
  padding-left: 32px;
  position: relative;
}
.timeline__item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 28px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--yellow);
}
.timeline__year { font-weight: 800; font-size: 1.375rem; color: var(--yellow); }
.timeline__text { color: var(--muted); margin: 0; padding-top: 4px; font-size: var(--fs-sm); }
.timeline__item--placeholder .timeline__year { color: var(--muted); }

.docs-page__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.doc-card {
  padding: 32px 28px;
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.doc-card__icon { width: 40px; height: 40px; color: var(--yellow); }
.doc-card__icon svg { width: 100%; height: 100%; }
.doc-card__title { font-size: 1.25rem; font-weight: 700; }
.doc-card__desc { color: var(--muted); font-size: var(--fs-sm); flex: 1; }
.doc-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.docs-page__note { margin-top: 32px; color: var(--muted); font-size: 0.85rem; }
.docs-page__note code { color: var(--yellow); }

.contact-page__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}
.contact-page__info h2 { font-size: 1.625rem; margin-bottom: 24px; }
.contact__list { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 20px; }
.contact__list li { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: var(--fs-sm); }
.contact__list a { color: var(--white); text-decoration: none; }
.contact__list a:hover { color: var(--yellow); }
.contact__icon { width: 40px; height: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--dark-2); border-radius: var(--radius); color: var(--yellow); }
.contact__icon svg { width: 20px; height: 20px; }
.contact-page__note { color: var(--muted); font-size: var(--fs-sm); }

.contact__form { display: flex; flex-direction: column; gap: 16px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--yellow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-check { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: var(--fs-sm); cursor: pointer; }
.form-check input { width: auto; accent-color: var(--yellow); }

.btn--sm { padding: 10px 18px; font-size: var(--fs-xs); }

@media (max-width: 1024px) {
  .service-detail__grid,
  .about-page__grid,
  .contact-page__grid,
  .docs-page__grid,
  .projects-page__grid { grid-template-columns: 1fr; }
  .service-detail__grid--reverse .service-detail__media,
  .service-detail__grid--reverse .service-detail__content { order: unset; }
  .form-row { grid-template-columns: 1fr; }
}
