@layer reset, tokens, layout, components, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  body { min-height: 100vh; line-height: 1.6; }
  img { display: block; max-width: 100%; height: auto; }
  a { text-decoration: none; color: inherit; }
  ul { list-style: none; }
  button { cursor: pointer; border: none; background: none; font: inherit; }
  input, textarea, select { font: inherit; }
  h1, h2, h3, h4, h5, h6 { line-height: 1.2; }
}

@layer tokens {
  :root {
    --c-bg: #f0f4f8;
    --c-bg-alt: #e8eef5;
    --c-surface: #ffffff;
    --c-surface-tint: rgba(255,255,255,0.85);
    --c-text: #1a2332;
    --c-text-muted: #4a5a6b;
    --c-text-light: #7a8a9b;
    --c-primary: #0057b8;
    --c-primary-dark: #003d85;
    --c-primary-light: #e8f0fb;
    --c-accent: #00b4d8;
    --c-accent-dark: #0096b4;
    --c-accent-light: #e0f7fc;
    --c-gold: #f4a535;
    --c-gold-light: #fef3e0;
    --c-border: rgba(0,87,184,0.12);
    --c-border-light: rgba(0,87,184,0.06);

    --orb-blue: rgba(0, 87, 184, 0.18);
    --orb-cyan: rgba(0, 180, 216, 0.16);
    --orb-teal: rgba(0, 150, 180, 0.14);
    --orb-sky: rgba(135, 206, 235, 0.2);
    --orb-gold: rgba(244, 165, 53, 0.12);

    --ff-head: 'Unbounded', sans-serif;
    --ff-body: 'Inter', sans-serif;

    --fs-xs: clamp(0.7rem, 1vw, 0.75rem);
    --fs-sm: clamp(0.8rem, 1.2vw, 0.875rem);
    --fs-base: clamp(0.9rem, 1.4vw, 1rem);
    --fs-md: clamp(1rem, 1.6vw, 1.125rem);
    --fs-lg: clamp(1.1rem, 2vw, 1.375rem);
    --fs-xl: clamp(1.25rem, 2.5vw, 1.75rem);
    --fs-2xl: clamp(1.5rem, 3.5vw, 2.25rem);
    --fs-3xl: clamp(1.8rem, 5vw, 3.5rem);
    --fs-4xl: clamp(2.2rem, 7vw, 5rem);
    --fs-hero: clamp(2.5rem, 9vw, 6.5rem);

    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-5: 1.25rem;
    --sp-6: 1.5rem;
    --sp-8: 2rem;
    --sp-10: 2.5rem;
    --sp-12: 3rem;
    --sp-16: 4rem;
    --sp-20: 5rem;
    --sp-24: 6rem;
    --sp-32: 8rem;

    --r-sm: 6px;
    --r-md: 12px;
    --r-lg: 20px;
    --r-xl: 32px;
    --r-full: 9999px;

    --sh-sm: 0 1px 3px rgba(0,40,100,0.06), 0 1px 2px rgba(0,40,100,0.04);
    --sh-md: 0 4px 16px rgba(0,40,100,0.08), 0 2px 6px rgba(0,40,100,0.05);
    --sh-lg: 0 8px 32px rgba(0,40,100,0.1), 0 4px 12px rgba(0,40,100,0.06), 0 1px 3px rgba(0,40,100,0.04);
    --sh-xl: 0 16px 48px rgba(0,40,100,0.12), 0 8px 24px rgba(0,40,100,0.08), 0 2px 6px rgba(0,40,100,0.04);

    --trans-fast: 150ms ease;
    --trans-base: 250ms ease;
    --trans-slow: 400ms ease;

    --hdr-h: 80px;
  }
}

@layer layout {
  body {
    font-family: var(--ff-body);
    font-size: var(--fs-base);
    color: var(--c-text);
    background-color: var(--c-bg);
    overflow-x: hidden;
  }

  .cnt {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: var(--sp-6);
  }

  .sec {
    position: relative;
    overflow: hidden;
    padding-block: var(--sp-24);
  }

  .sec-hdr {
    text-align: center;
    max-width: 680px;
    margin-inline: auto;
    margin-bottom: var(--sp-16);
  }

  .sec-label {
    display: inline-block;
    font-family: var(--ff-body);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-accent);
    background: var(--c-accent-light);
    padding: var(--sp-2) var(--sp-4);
    border-radius: var(--r-full);
    margin-bottom: var(--sp-4);
  }

  .sec-title {
    font-family: var(--ff-head);
    font-size: var(--fs-3xl);
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: var(--sp-4);
    line-height: 1.15;
  }

  .sec-sub {
    font-size: var(--fs-md);
    color: var(--c-text-muted);
    line-height: 1.7;
  }
}

@layer components {

  /* Blur Orbs */
  .blur-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
  }
  .orb-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--orb-blue) 0%, transparent 70%);
    filter: blur(100px);
    top: -200px; left: -200px;
  }
  .orb-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--orb-cyan) 0%, transparent 70%);
    filter: blur(120px);
    top: 100px; right: -100px;
  }
  .orb-3 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--orb-gold) 0%, transparent 70%);
    filter: blur(90px);
    bottom: 0; left: 40%;
  }
  .orb-4 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--orb-sky) 0%, transparent 70%);
    filter: blur(110px);
    top: -100px; right: -150px;
  }
  .orb-5 {
    width: 700px; height: 700px;
    background: radial-gradient(circle, var(--orb-cyan) 0%, transparent 70%);
    filter: blur(130px);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
  }
  .orb-6 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--orb-blue) 0%, transparent 70%);
    filter: blur(100px);
    bottom: -200px; right: -100px;
  }
  .orb-7 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--orb-teal) 0%, transparent 70%);
    filter: blur(100px);
    top: -100px; left: 50%;
    transform: translateX(-50%);
  }
  .orb-8 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--orb-sky) 0%, transparent 70%);
    filter: blur(120px);
    top: 0; right: -200px;
  }
  .orb-9 {
    width: 700px; height: 700px;
    background: radial-gradient(circle, var(--orb-blue) 0%, transparent 70%);
    filter: blur(130px);
    top: 50%; left: -200px;
    transform: translateY(-50%);
  }
  .orb-ftr {
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--orb-cyan) 0%, transparent 70%);
    filter: blur(100px);
    top: -100px; right: -100px;
  }

  /* Page transition line */
  .pg-line {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
    z-index: 9999;
    transition: width 0.3s ease;
  }

  /* HEADER */
  .hdr {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--hdr-h);
    z-index: 100;
    background: rgba(240,244,248,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--c-border-light);
    transition: transform var(--trans-slow), opacity var(--trans-slow);
  }
  .hdr.hdr--hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
  }
  .hdr-inner {
    display: flex;
    align-items: center;
    gap: var(--sp-8);
    height: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: var(--sp-6);
  }
  .hdr-logo img { height: 36px; width: auto; }
  .hdr-nav {
    display: flex;
    gap: var(--sp-6);
    margin-left: auto;
  }
  .hdr-lnk {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--c-text-muted);
    transition: color var(--trans-fast);
    padding-block: var(--sp-2);
  }
  .hdr-lnk:hover { color: var(--c-primary); }
  .hdr-cta { margin-left: var(--sp-4); }
  .hdr-tog { display: none; flex-direction: column; gap: 5px; padding: var(--sp-3); }
  .hdr-tog span {
    display: block; width: 22px; height: 2px;
    background: var(--c-text);
    border-radius: var(--r-full);
    transition: transform var(--trans-base), opacity var(--trans-base);
  }

  /* Mini Nav Pill */
  .mini-nav {
    position: fixed;
    top: var(--sp-4);
    right: var(--sp-6);
    z-index: 101;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--trans-slow), transform var(--trans-slow);
    transform: translateY(-10px);
  }
  .mini-nav.mini-nav--visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
  }
  .mini-tog {
    width: 48px; height: 48px;
    border-radius: var(--r-full);
    background: var(--c-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--sh-lg);
    transition: background var(--trans-fast), transform var(--trans-fast);
  }
  .mini-tog:hover {
    background: var(--c-primary-dark);
    transform: scale(1.05);
  }
  .mini-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--c-surface);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-xl);
    padding: var(--sp-4);
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.96);
    transition: opacity var(--trans-base), transform var(--trans-base);
    border: 1px solid var(--c-border-light);
  }
  .mini-menu.mini-menu--open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
  }
  .mini-menu a {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--c-text-muted);
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--r-sm);
    transition: color var(--trans-fast), background var(--trans-fast);
  }
  .mini-menu a:hover { color: var(--c-primary); background: var(--c-primary-light); }
  .mini-cta {
    margin-top: var(--sp-2);
    text-align: center;
    padding: var(--sp-3) var(--sp-4);
  }

  /* Mobile Flip Menu */
  .mob-flip {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--hdr-h);
    z-index: 200;
    perspective: 1000px;
    display: none;
  }
  .mob-flip.mob-flip--open {
    height: 100dvh;
  }
  .mob-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
  }
  .mob-flip-inner.flipped {
    transform: rotateX(-180deg);
  }
  .mob-flip-front,
  .mob-flip-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
  .mob-flip-front {
    background: rgba(240,244,248,0.95);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    padding-inline: var(--sp-6);
    border-bottom: 1px solid var(--c-border-light);
  }
  .mob-flip-back {
    background: var(--c-text);
    transform: rotateX(180deg);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: var(--sp-12) var(--sp-8);
    gap: var(--sp-4);
  }
  .mob-flip-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .mob-close, .mob-back-close {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    color: var(--c-text);
    font-size: 1.25rem;
    border-radius: var(--r-md);
    transition: background var(--trans-fast), color var(--trans-fast);
  }
  .mob-close:hover { background: var(--c-border-light); }
  .mob-back-close {
    position: absolute;
    top: var(--sp-6);
    right: var(--sp-6);
    color: rgba(255,255,255,0.7);
    font-size: 1.5rem;
  }
  .mob-back-close:hover { color: #fff; }
  .mob-nav {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    width: 100%;
  }
  .mob-lnk {
    font-family: var(--ff-head);
    font-size: var(--fs-xl);
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    padding: var(--sp-3) 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: color var(--trans-fast);
  }
  .mob-lnk:hover { color: var(--c-accent); }
  .mob-cta { margin-top: var(--sp-6); }
  .mob-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--trans-slow);
  }
  .mob-overlay.mob-overlay--active {
    opacity: 1;
    pointer-events: all;
  }

  /* Buttons */
  .btn-pri {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-family: var(--ff-body);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-accent-dark) 100%);
    padding: var(--sp-3) var(--sp-6);
    border-radius: var(--r-full);
    box-shadow: 0 4px 14px rgba(0,87,184,0.3), 0 2px 6px rgba(0,87,184,0.15);
    transition: transform var(--trans-fast), box-shadow var(--trans-fast), opacity var(--trans-fast);
  }
  .btn-pri:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,87,184,0.35), 0 4px 10px rgba(0,87,184,0.2);
  }
  .btn-pri:active { transform: translateY(0); }

  .btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-family: var(--ff-body);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--c-primary);
    background: transparent;
    padding: var(--sp-3) var(--sp-6);
    border-radius: var(--r-full);
    border: 2px solid var(--c-primary);
    transition: background var(--trans-fast), color var(--trans-fast), transform var(--trans-fast);
  }
  .btn-ghost:hover {
    background: var(--c-primary-light);
    transform: translateY(-2px);
  }

  .lnk-arrow {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--c-primary);
    transition: gap var(--trans-fast), color var(--trans-fast);
  }
  .lnk-arrow:hover { gap: var(--sp-3); color: var(--c-accent-dark); }
  .lnk-arrow i { font-size: 0.8em; }

  /* HERO */
  .hero-sec {
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--sp-12);
    padding-top: calc(var(--hdr-h) + var(--sp-16));
    padding-inline: var(--sp-6);
    max-width: 1240px;
    margin-inline: auto;
    padding-bottom: var(--sp-20);
  }
  .hero-wrap { position: relative; z-index: 1; }
  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-gold);
    background: var(--c-gold-light);
    border: 1px solid rgba(244,165,53,0.25);
    padding: var(--sp-2) var(--sp-4);
    border-radius: var(--r-full);
    margin-bottom: var(--sp-6);
  }
  .hero-badge i { font-size: 0.9em; }
  .hero-h1 {
    font-family: var(--ff-head);
    font-size: var(--fs-hero);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: var(--sp-8);
    display: flex;
    flex-direction: column;
  }
  .h1-line { display: block; }
  .h1-accent {
    background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .hero-sub {
    font-size: var(--fs-md);
    color: var(--c-text-muted);
    line-height: 1.75;
    max-width: 520px;
    margin-bottom: var(--sp-10);
  }
  .hero-actions {
    display: flex;
    gap: var(--sp-4);
    flex-wrap: wrap;
  }
  .hero-img-wrap {
    position: relative;
    z-index: 1;
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--sh-xl);
    aspect-ratio: 4/5;
  }
  .hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
  }
  .hero-img-wrap:hover .hero-img { transform: scale(1.03); }
  .hero-img-blur {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,40,100,0.3) 100%);
    pointer-events: none;
  }

  /* INTRO */
  .intro-sec {
    background: var(--c-surface);
    padding-block: var(--sp-32);
  }
  .intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-16);
    align-items: center;
    position: relative;
    z-index: 1;
  }
  .intro-txt { }
  .intro-txt .sec-label { margin-bottom: var(--sp-4); }
  .intro-txt .sec-title {
    font-size: var(--fs-2xl);
    margin-bottom: var(--sp-6);
    text-align: left;
  }
  .intro-txt p {
    color: var(--c-text-muted);
    line-height: 1.75;
    margin-bottom: var(--sp-4);
  }
  .intro-txt .lnk-arrow { margin-top: var(--sp-4); }
  .intro-visual { position: relative; }
  .intro-img {
    width: 100%;
    border-radius: var(--r-xl);
    box-shadow: var(--sh-xl);
    aspect-ratio: 4/3;
    object-fit: cover;
  }
  .intro-stat-card {
    position: absolute;
    bottom: -var(--sp-6);
    left: var(--sp-6);
    bottom: -20px;
    background: var(--c-surface);
    border-radius: var(--r-lg);
    padding: var(--sp-4) var(--sp-6);
    box-shadow: var(--sh-lg);
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    max-width: 280px;
    border: 1px solid var(--c-border-light);
  }
  .intro-stat-card i {
    font-size: 1.5rem;
    color: var(--c-accent);
    flex-shrink: 0;
  }
  .intro-stat-card span {
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--c-text-muted);
    line-height: 1.4;
  }

  /* SERVICIOS */
  .svc-sec { background: var(--c-bg); }
  .svc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-6);
    position: relative;
    z-index: 1;
  }
  .crd.svc-crd {
    background: var(--c-surface);
    border-radius: var(--r-xl);
    padding: var(--sp-8);
    border: 1px solid var(--c-border-light);
    box-shadow: var(--sh-sm);
    transition: transform var(--trans-base), box-shadow var(--trans-base);
  }
  .crd.svc-crd:hover {
    transform: translateY(-6px);
    box-shadow: var(--sh-lg);
  }
  .svc-crd--alt {
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-accent-dark) 100%);
    color: #fff;
  }
  .svc-crd--alt .crd-ico { background: rgba(255,255,255,0.15); color: #fff; }
  .svc-crd--alt .crd-ttl { color: #fff; }
  .svc-crd--alt .crd-txt { color: rgba(255,255,255,0.85); }
  .svc-crd--alt .crd-list li { color: rgba(255,255,255,0.8); }
  .svc-crd--alt .crd-list li::before { background: rgba(255,255,255,0.6); }
  .crd-ico {
    width: 52px; height: 52px;
    border-radius: var(--r-lg);
    background: var(--c-accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--c-accent-dark);
    margin-bottom: var(--sp-5);
    flex-shrink: 0;
  }
  .crd-ttl {
    font-family: var(--ff-head);
    font-size: var(--fs-md);
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: var(--sp-3);
    line-height: 1.3;
  }
  .crd-txt {
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
    line-height: 1.7;
    margin-bottom: var(--sp-4);
  }
  .crd-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
  }
  .crd-list li {
    font-size: var(--fs-xs);
    color: var(--c-text-muted);
    display: flex;
    align-items: flex-start;
    gap: var(--sp-2);
    line-height: 1.5;
  }
  .crd-list li::before {
    content: '';
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--c-accent);
    margin-top: 6px;
    flex-shrink: 0;
  }

  /* PROCESO */
  .proc-sec {
    background: var(--c-surface);
  }
  .proc-flow {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 800px;
    margin-inline: auto;
    position: relative;
    z-index: 1;
  }
  .proc-step {
    display: grid;
    grid-template-columns: 60px 1fr 60px;
    gap: var(--sp-6);
    align-items: start;
    padding: var(--sp-8);
    background: var(--c-bg);
    border-radius: var(--r-xl);
    border: 1px solid var(--c-border-light);
    transition: transform var(--trans-base), box-shadow var(--trans-base);
  }
  .proc-step:hover {
    transform: translateX(6px);
    box-shadow: var(--sh-md);
  }
  .proc-connector {
    width: 2px;
    height: 32px;
    background: linear-gradient(180deg, var(--c-primary), var(--c-accent));
    margin-left: 89px;
  }
  .proc-num {
    font-family: var(--ff-head);
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--c-border);
    line-height: 1;
    padding-top: 4px;
  }
  .proc-ttl {
    font-family: var(--ff-head);
    font-size: var(--fs-lg);
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: var(--sp-2);
  }
  .proc-txt {
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
    line-height: 1.7;
  }
  .proc-icon {
    width: 48px; height: 48px;
    border-radius: var(--r-full);
    background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0,87,184,0.25);
    flex-shrink: 0;
  }

  /* ÁREAS */
  .areas-sec { background: var(--c-text); }
  .areas-sec .sec-label { color: var(--c-accent); background: rgba(0,180,216,0.15); }
  .areas-sec .sec-title { color: #fff; }
  .areas-sec .sec-sub { color: rgba(255,255,255,0.65); }
  .areas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-4);
    position: relative;
    z-index: 1;
  }
  .area-crd {
    position: relative;
    border-radius: var(--r-xl);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: default;
  }
  .area-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
  }
  .area-crd:hover .area-img { transform: scale(1.06); }
  .area-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(0,20,60,0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--sp-8);
    transition: background var(--trans-slow);
  }
  .area-crd:hover .area-overlay {
    background: linear-gradient(180deg, transparent 0%, rgba(0,20,60,0.92) 100%);
  }
  .area-ico {
    width: 44px; height: 44px;
    border-radius: var(--r-md);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-accent);
    font-size: 1.1rem;
    margin-bottom: var(--sp-3);
  }
  .area-ttl {
    font-family: var(--ff-head);
    font-size: var(--fs-lg);
    font-weight: 600;
    color: #fff;
    margin-bottom: var(--sp-2);
  }
  .area-desc {
    font-size: var(--fs-xs);
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
  }
  .area-crd:hover .area-desc {
    max-height: 200px;
    opacity: 1;
  }

  /* GALLERY */
  .gallery-sec { background: var(--c-bg); }
  .gal-slide { border-radius: var(--r-xl); overflow: hidden; position: relative; }
  .gal-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  .gal-slide:hover .gal-img { transform: scale(1.04); }
  .gal-cap {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: var(--sp-4) var(--sp-5);
    background: linear-gradient(transparent, rgba(0,20,60,0.7));
    font-size: var(--fs-sm);
    font-weight: 500;
    color: #fff;
  }
  .splide__pagination__page.is-active { background: var(--c-primary); }
  .splide__arrow {
    background: var(--c-surface);
    box-shadow: var(--sh-md);
    transition: background var(--trans-fast), transform var(--trans-fast);
  }
  .splide__arrow:hover { background: var(--c-primary); }
  .splide__arrow svg { fill: var(--c-text); }
  .splide__arrow:hover svg { fill: #fff; }

  /* TEAM */
  .team-sec { background: var(--c-surface); }
  .team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-6);
    position: relative;
    z-index: 1;
  }
  .tm-crd {
    background: var(--c-bg);
    border-radius: var(--r-xl);
    overflow: hidden;
    border: 1px solid var(--c-border-light);
    transition: transform var(--trans-base), box-shadow var(--trans-base);
  }
  .tm-crd:hover {
    transform: translateY(-6px);
    box-shadow: var(--sh-lg);
  }
  .tm-img-wrap {
    aspect-ratio: 3/4;
    overflow: hidden;
  }
  .tm-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  .tm-crd:hover .tm-img { transform: scale(1.05); }
  .tm-info { padding: var(--sp-5) var(--sp-5) var(--sp-6); }
  .tm-name {
    font-family: var(--ff-head);
    font-size: var(--fs-md);
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: var(--sp-1);
  }
  .tm-role {
    display: block;
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--c-accent-dark);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: var(--sp-3);
  }
  .tm-bio {
    font-size: var(--fs-xs);
    color: var(--c-text-muted);
    line-height: 1.6;
  }

  /* CONTACT */
  .contact-sec { background: var(--c-bg); }
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-16);
    align-items: start;
    position: relative;
    z-index: 1;
  }
  .contact-info .sec-title {
    font-size: var(--fs-2xl);
    text-align: left;
    margin-bottom: var(--sp-6);
  }
  .contact-info p {
    color: var(--c-text-muted);
    line-height: 1.75;
    margin-bottom: var(--sp-4);
  }
  .contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    margin-top: var(--sp-8);
    margin-bottom: var(--sp-8);
  }
  .contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
  }
  .contact-item i {
    color: var(--c-primary);
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
  }
  .contact-item a {
    color: var(--c-text-muted);
    transition: color var(--trans-fast);
  }
  .contact-item a:hover { color: var(--c-primary); }
  .map-wrap {
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--sh-md);
  }
  .contact-form-wrap {
    background: var(--c-surface);
    border-radius: var(--r-xl);
    padding: var(--sp-10);
    box-shadow: var(--sh-xl);
    border: 1px solid var(--c-border-light);
  }

  /* FORM */
  .frm { display: flex; flex-direction: column; gap: var(--sp-5); }
  .frm-grp { display: flex; flex-direction: column; gap: var(--sp-2); }
  .frm-lbl {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--c-text);
  }
  .frm-inp {
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    padding: var(--sp-3) var(--sp-4);
    font-size: var(--fs-sm);
    color: var(--c-text);
    transition: border-color var(--trans-fast), box-shadow var(--trans-fast);
    outline: none;
  }
  .frm-inp:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(0,87,184,0.1);
  }
  .frm-inp::placeholder { color: var(--c-text-light); }
  .frm-ta { resize: vertical; min-height: 120px; }
  .frm-check {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
  }
  .frm-chk {
    width: 18px; height: 18px;
    margin-top: 2px;
    accent-color: var(--c-primary);
    flex-shrink: 0;
    cursor: pointer;
  }
  .frm-chk-lbl {
    font-size: var(--fs-xs);
    color: var(--c-text-muted);
    line-height: 1.5;
  }
  .frm-lnk {
    color: var(--c-primary);
    text-decoration: underline;
    transition: color var(--trans-fast);
  }
  .frm-lnk:hover { color: var(--c-accent-dark); }
  .frm-btn { width: 100%; justify-content: center; padding-block: var(--sp-4); }

  /* FOOTER */
  .ftr {
    position: relative;
    overflow: hidden;
    background: var(--c-text);
    color: rgba(255,255,255,0.75);
  }
  .ftr-news {
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-block: var(--sp-10);
  }
  .ftr-news-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-8);
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
  }
  .ftr-news-txt h3 {
    font-family: var(--ff-head);
    font-size: var(--fs-lg);
    font-weight: 600;
    color: #fff;
    margin-bottom: var(--sp-1);
  }
  .ftr-news-txt p { font-size: var(--fs-sm); }
  .ftr-news-form {
    display: flex;
    gap: var(--sp-3);
    flex-wrap: wrap;
    flex-shrink: 0;
  }
  .ftr-news-inp {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--r-full);
    padding: var(--sp-3) var(--sp-5);
    color: #fff;
    font-size: var(--fs-sm);
    min-width: 240px;
    outline: none;
    transition: border-color var(--trans-fast);
  }
  .ftr-news-inp:focus { border-color: var(--c-accent); }
  .ftr-news-inp::placeholder { color: rgba(255,255,255,0.4); }
  .ftr-main { padding-block: var(--sp-16); }
  .ftr-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--sp-10);
    position: relative;
    z-index: 1;
  }
  .ftr-logo { margin-bottom: var(--sp-4); filter: brightness(0) invert(1); }
  .ftr-desc {
    font-size: var(--fs-sm);
    line-height: 1.7;
  }
  .ftr-ttl {
    font-family: var(--ff-head);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: var(--sp-5);
  }
  .ftr-ul {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
  }
  .ftr-lnk {
    font-size: var(--fs-sm);
    color: rgba(255,255,255,0.65);
    transition: color var(--trans-fast);
  }
  .ftr-lnk:hover { color: var(--c-accent); }
  .ftr-contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
  }
  .ftr-contact i {
    color: var(--c-accent);
    margin-top: 3px;
    flex-shrink: 0;
    width: 14px;
    text-align: center;
  }
  .ftr-bar {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-block: var(--sp-6);
  }
  .ftr-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    font-size: var(--fs-xs);
    color: rgba(255,255,255,0.4);
    position: relative;
    z-index: 1;
  }
  .ftr-bar-lnk {
    color: rgba(255,255,255,0.4);
    transition: color var(--trans-fast);
  }
  .ftr-bar-lnk:hover { color: rgba(255,255,255,0.8); }

  /* Legal page layout */
  .legal-page {
    padding-top: calc(var(--hdr-h) + var(--sp-16));
    min-height: 100dvh;
  }
  .legal-wrap {
    max-width: 780px;
    margin-inline: auto;
    padding-inline: var(--sp-6);
    padding-bottom: var(--sp-24);
  }
  .legal-badge {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-accent);
    background: var(--c-accent-light);
    padding: var(--sp-2) var(--sp-4);
    border-radius: var(--r-full);
    margin-bottom: var(--sp-4);
  }
  .legal-h1 {
    font-family: var(--ff-head);
    font-size: var(--fs-3xl);
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: var(--sp-4);
    line-height: 1.15;
  }
  .legal-date {
    font-size: var(--fs-sm);
    color: var(--c-text-light);
    margin-bottom: var(--sp-12);
    padding-bottom: var(--sp-8);
    border-bottom: 1px solid var(--c-border);
  }
  .legal-h2 {
    font-family: var(--ff-head);
    font-size: var(--fs-xl);
    font-weight: 600;
    color: var(--c-text);
    margin-top: var(--sp-10);
    margin-bottom: var(--sp-4);
  }
  .legal-h3 {
    font-family: var(--ff-body);
    font-size: var(--fs-md);
    font-weight: 600;
    color: var(--c-text);
    margin-top: var(--sp-6);
    margin-bottom: var(--sp-3);
  }
  .legal-p {
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
    line-height: 1.8;
    margin-bottom: var(--sp-4);
  }
  .legal-ul {
    margin: var(--sp-4) 0;
    padding-left: var(--sp-6);
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
  }
  .legal-ul li {
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
    line-height: 1.7;
    list-style: disc;
  }
  .legal-table {
    width: 100%;
    border-collapse: collapse;
    margin-block: var(--sp-6);
    font-size: var(--fs-sm);
  }
  .legal-table th, .legal-table td {
    text-align: left;
    padding: var(--sp-3) var(--sp-4);
    border: 1px solid var(--c-border);
    color: var(--c-text-muted);
  }
  .legal-table th {
    background: var(--c-primary-light);
    color: var(--c-text);
    font-weight: 600;
  }
  .legal-table tr:hover td { background: var(--c-bg-alt); }

  /* Thanks page */
  .thanks-hero {
    min-height: 100dvh;
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-accent-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--sp-12) var(--sp-6);
    position: relative;
    overflow: hidden;
  }
  .thanks-orb-1 {
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    filter: blur(80px);
    top: -200px; right: -100px;
  }
  .thanks-orb-2 {
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    filter: blur(60px);
    bottom: -100px; left: -100px;
  }
  .thanks-content { position: relative; z-index: 1; max-width: 600px; }
  .thanks-ico {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    margin-inline: auto;
    margin-bottom: var(--sp-8);
  }
  .thanks-h1 {
    font-family: var(--ff-head);
    font-size: var(--fs-4xl);
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--sp-6);
    line-height: 1.1;
  }
  .thanks-p {
    font-size: var(--fs-lg);
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    margin-bottom: var(--sp-10);
  }
  .btn-outline-white {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--fs-base);
    font-weight: 600;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.7);
    padding: var(--sp-4) var(--sp-8);
    border-radius: var(--r-full);
    transition: background var(--trans-base), border-color var(--trans-base), transform var(--trans-fast);
  }
  .btn-outline-white:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    transform: translateY(-2px);
  }
}

@layer utilities {
  .visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
  }

  /* Responsive */
  @media (max-width: 1100px) {
    .svc-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .ftr-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  }

  @media (max-width: 900px) {
    .hero-sec {
      grid-template-columns: 1fr;
      min-height: auto;
      padding-top: calc(var(--hdr-h) + var(--sp-12));
    }
    .hero-img-wrap { max-height: 400px; }
    .intro-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .areas-grid { grid-template-columns: 1fr; }
    .proc-step { grid-template-columns: 50px 1fr 50px; gap: var(--sp-4); }
    .proc-connector { margin-left: 75px; }
  }

  @media (max-width: 768px) {
    :root { --hdr-h: 64px; }
    .hdr-nav, .hdr-cta { display: none; }
    .hdr-tog { display: flex; margin-left: auto; }
    .mob-flip { display: block; }
    .svc-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .ftr-grid { grid-template-columns: 1fr; }
    .ftr-news-inner { flex-direction: column; align-items: flex-start; }
    .ftr-news-form { width: 100%; }
    .ftr-news-inp { min-width: unset; flex: 1; }
    .contact-form-wrap { padding: var(--sp-6); }
    .proc-step { grid-template-columns: 1fr; gap: var(--sp-3); }
    .proc-num { font-size: var(--fs-xl); }
    .proc-icon { display: none; }
    .proc-connector { margin-left: 32px; }
    .intro-stat-card { position: static; margin-top: var(--sp-4); max-width: 100%; }
    .ftr-bar-inner { flex-direction: column; text-align: center; }
  }

  @media (max-width: 480px) {
    .team-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn-pri, .hero-actions .btn-ghost { width: 100%; justify-content: center; }
    .areas-grid { grid-template-columns: 1fr; }
    .cnt { padding-inline: var(--sp-4); }
    .sec { padding-block: var(--sp-16); }
  }
}