:root {
  --ink: #0a1f32;
  --muted: #5a6f83;
  --paper: #edf3f9;
  --white: #ffffff;
  --line: #d9e4f0;
  --blue-100: #e5eef9;
  --blue-200: #bfd4ed;
  --blue-300: #8aa7ca;
  --blue-500: #2d5d8d;
  --blue-700: #163d63;
  --blue-900: #0b1f33;
  --deep: #0d2339;
  --shadow: 0 18px 48px rgba(10, 31, 50, .15);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", "Noto Sans Armenian", sans-serif;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.topline {
  height: 6px;
  background: linear-gradient(90deg, var(--blue-100) 0 25%, var(--blue-300) 25% 50%, var(--blue-500) 50% 75%, var(--blue-900) 75%);
}
header {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  color: var(--white);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .04em; }
.brand img { width: 116px; height: auto; filter: brightness(0) invert(1); }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: .88rem; }
.nav-links a { opacity: .84; transition: opacity .2s, color .2s; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--blue-200); opacity: 1; }
.nav-cta {
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--white) !important;
  opacity: 1 !important;
}
.menu-toggle { display: none; border: 1px solid rgba(255,255,255,.5); background: transparent; color: var(--white); border-radius: 8px; padding: 8px 11px; font-size: 1.1rem; }

.hero {
  /* Trial: the slide fills the whole first screen (svh avoids mobile browser-bar jumps). */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--deep) url("assets/targsys_slide_1.png") center / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(11, 31, 51, .72); }
.hero::after { content: ""; position: absolute; left: -10%; bottom: -180px; width: 70%; height: 300px; background: var(--blue-200); transform: rotate(-7deg); opacity: .12; }
/* Shares the header's width so its left edge lines up with the logo; sits low-left, below the arm in the slide. */
.hero-content { position: relative; z-index: 1; padding-top: 100px; /* padding-bottom: 96px; */ }
/* Top rule exactly as wide as the word (padding offsets the trailing negative letter-spacing). */
.hero h1 { width: fit-content; padding: 18px .04em 0 0; border-top: 3px solid var(--blue-200); }
.eyebrow { color: var(--blue-200); text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; font-weight: 800; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 22px; font-size: clamp(2.8rem, 7vw, 5.8rem); line-height: 1.03; letter-spacing: -.04em; }
.hero-copy { max-width: 590px; color: rgba(255,255,255,.82); font-size: 1.08rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; padding: 12px 20px; font: inherit; font-weight: 700; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover, .button:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(11,31,51,.16); }
.button-primary { color: var(--white); background: var(--blue-500); }
.button-ghost { color: var(--white); border: 1px solid rgba(255,255,255,.48); background: transparent; }
.button-dark { color: var(--white); background: var(--ink); }
.hero-note { margin-top: 82px; display: flex; gap: 30px; align-items: center; color: rgba(255,255,255,.66); font-size: .85rem; }
.hero-note strong { display: block; color: var(--white); font-size: 1.1rem; }

section { padding: 104px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.section-head h2 { max-width: 620px; margin-bottom: 0; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.08; letter-spacing: -.035em; }
.section-head p { max-width: 400px; margin-bottom: 0; color: var(--muted); }
.kicker { margin-bottom: 12px; color: var(--blue-500); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 800; }

.about { background: var(--white); }
.about-grid { 
  display: grid; 
  grid-template-columns: 1.05fr .95fr; 
  /* gap: 76px;  */
  column-gap: 76px;
  align-items: center; 
}
.about-photo { position: relative; padding: 18px 18px 0 0; }
.about-photo::before { content: ""; position: absolute; inset: 0 0 18px 18px; border: 1px solid var(--blue-300); border-radius: var(--radius); }
.about-photo img { position: relative; width: 100%; aspect-ratio: 1.25; object-fit: cover; border-radius: var(--radius); }
.about-copy p { color: var(--muted); }
.about-more {
  grid-column: 1 / -1;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .55s ease, opacity .3s ease;
}
.about-more.is-open {
  opacity: 1;
  /* margin-top: 18px */
}
.about-more h3 { margin: 28px 0 14px; color: var(--ink); font-size: 1.25rem; }
.about-more-toggle { justify-self: start; margin-top: 24px; }
/* Keep the hidden button's space on desktop so the centered photo and text do not shift. */
.about-more-open { transition: opacity .3s, visibility .3s, transform .2s, box-shadow .2s, background .2s; }
.about-more-open.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.about-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 25px; padding: 0; margin: 28px 0 0; list-style: none; font-weight: 700; font-size: .91rem; }
.about-list li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 9px 2px 0; border-radius: 50%; background: var(--blue-500); }

.services { background: var(--paper); }
.service-filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 28px; }
.filter { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; color: var(--muted); background: transparent; font: inherit; cursor: pointer; }
.filter[aria-selected="true"], .filter:hover, .filter:focus-visible { border-color: var(--ink); color: var(--white); background: var(--ink); }
/* dense lets the cards after an open full-width panel fill back into the panel's card row.
   Row spacing lives on the cards and panels (not row-gap) so an opening panel grows smoothly from zero. */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: row dense; gap: 0 14px; align-items: start; margin-bottom: -14px; }
.service { min-height: 380px; margin-bottom: 14px; display: flex; flex-direction: column; justify-content: end; position: relative; overflow: hidden; border-radius: var(--radius); color: var(--white); background: var(--deep); }
.service img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform .5s, opacity .3s, filter .3s; }
.service::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 26%, rgba(10,31,50,.94) 100%); }
.service:hover img { transform: scale(1.06); opacity: .7; }
.service-content { position: relative; z-index: 1; padding: 22px; transition: filter .3s; }
.service-number { display: block; margin-bottom: 40px; color: var(--blue-200); font-size: .76rem; font-weight: 800; }
.service h3 { margin-bottom: 8px; font-size: 1.45rem; line-height: 1.15; }
.service p { margin-bottom: 0; color: rgba(255,255,255,.72); font-size: .9rem; }
.service-item { display: contents; }
.service-item[data-hidden="true"] { display: none; }
.service-more { position: absolute; inset: 0; z-index: 2; width: fit-content; height: fit-content; margin: auto; opacity: 0; pointer-events: none; transition: opacity .25s, transform .2s, box-shadow .2s, background .2s; }
/* Blur and reveal the button on hover (mouse), on tap (.is-active, touch), and on keyboard focus. */
.service.is-active img, .service.is-active .service-content,
.service:has(.service-more:focus-visible) img, .service:has(.service-more:focus-visible) .service-content { filter: blur(3px); }
.service.is-active .service-more, .service-more:focus-visible { opacity: 1; pointer-events: auto; }
@media (hover: hover) {
  .service:hover img, .service:hover .service-content { filter: blur(3px); }
  .service:hover .service-more { opacity: 1; pointer-events: auto; }
}
.service-details { display: none; grid-column: 1 / -1; overflow: hidden; }
.service-details.is-open, .service-details.is-closing { display: block; }
.service-details-body { margin-bottom: 14px; padding: 28px 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.service-details p { margin: 0 0 14px; color: var(--muted); font-size: .95rem; }
.service-details p:last-child { margin-bottom: 0; }
.service-details h4 { margin: 26px 0 8px; color: var(--ink); font-size: 1.05rem; line-height: 1.3; }
.service-details-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 8px 28px; margin: 4px 0 16px; padding: 0; list-style: none; }
.service-details-list li { position: relative; padding-left: 17px; color: var(--ink); font-size: .93rem; font-weight: 600; line-height: 1.5; }
.service-details-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-500); }
.service-details-list:last-child { margin-bottom: 0; }
/* Lead paragraph: larger, darker, with a blue accent rule, to introduce each service. */
.service-details .service-details-lead { margin-bottom: 6px; padding-left: 18px; border-left: 3px solid var(--blue-500); color: var(--ink); font-size: clamp(1.08rem, 1.6vw, 1.28rem); font-weight: 600; line-height: 1.55; }
.service-details-lead strong { color: var(--blue-500); font-weight: 800; }

.support { color: var(--white); background: var(--deep); }
.support-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: center; }
.support h2 { margin-bottom: 20px; font-size: clamp(2.1rem, 4vw, 4rem); line-height: 1.04; letter-spacing: -.04em; }
.support p { color: rgba(255,255,255,.7); }
.support-points { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.16); }
.support-point { padding: 25px; background: var(--deep); }
.support-point strong { display: block; margin-bottom: 5px; color: var(--blue-200); font-size: 1.7rem; }
.support-point span { color: rgba(255,255,255,.8); font-size: .9rem; }

.partners { background: var(--paper); }
.partner-carousel { --partner-tile: 210px; --partner-gap: 16px; position: relative; padding: 26px 68px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* One row of logos; the track scrolls by transform and its edges fade out beneath the buttons. */
.partner-viewport { overflow: hidden; padding: 6px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); touch-action: pan-y; cursor: grab; }
.partner-viewport.is-dragging { cursor: grabbing; }
.partner-track { display: flex; gap: var(--partner-gap); width: max-content; will-change: transform; }
.partner-logo { flex: 0 0 var(--partner-tile); height: 124px; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); transition: transform .2s, border-color .2s; }
.partner-logo:hover { transform: translateY(-3px); border-color: var(--blue-500); }
.partner-logo img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.carousel-control { position: absolute; top: 50%; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--white); box-shadow: 0 6px 16px rgba(11,31,51,.08); cursor: pointer; transform: translateY(-50%); transition: color .2s, background .2s, border-color .2s, box-shadow .2s, transform .2s; }
.carousel-control svg { transition: transform .2s; }
.carousel-control:hover { color: var(--white); border-color: var(--ink); background: var(--ink); box-shadow: 0 10px 24px rgba(11,31,51,.16); }
.carousel-control.prev:hover svg { transform: translateX(-2px); }
.carousel-control.next:hover svg { transform: translateX(2px); }
.carousel-control:focus-visible { outline: 3px solid var(--blue-200); outline-offset: 2px; }
.carousel-control:active { transform: translateY(-50%) scale(.92); }
.carousel-control.prev { left: 12px; }
.carousel-control.next { right: 12px; }

.training { background: var(--white); }
.training-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.training img { width: 100%; aspect-ratio: 1.25; object-fit: cover; border-radius: var(--radius); }
.training-copy p { color: var(--muted); }
.training-topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; }
.topic { padding: 8px 12px; border-radius: 6px; color: var(--ink); background: var(--blue-100); font-size: .86rem; font-weight: 700; }

.contact { background: var(--blue-200); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.contact h2 { max-width: 500px; margin-bottom: 16px; font-size: clamp(2.3rem, 5vw, 4.6rem); line-height: 1; letter-spacing: -.045em; }
.contact-intro { max-width: 480px; color: rgba(10,31,50,.72); }
.contact-list { display: grid; gap: 16px; align-content: center; }
.contact-item { display: grid; grid-template-columns: 110px 1fr; align-items: center; padding-bottom: 14px; border-bottom: 1px solid rgba(10,31,50,.22); }
.contact-item dt { color: rgba(10,31,50,.62); font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.contact-item dd { margin: 0; font-weight: 700; }
.contact-item a { text-decoration: underline; text-decoration-color: rgba(10,31,50,.32); text-underline-offset: 4px; }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-item .social-link { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--white); background: var(--ink); text-decoration: none; transition: transform .2s, background .2s, box-shadow .2s; }
.contact-item .social-link:hover, .contact-item .social-link:focus-visible { background: var(--blue-500); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(11,31,51,.16); }
.social-link svg { width: 20px; height: 20px; }
.map-frame { width: 100%; height: 500px; margin-top: 60px; border: 0; border-radius: var(--radius); box-shadow: 0 12px 30px rgba(10,31,50,.12); background: var(--blue-100); }

footer { padding: 30px 0; color: rgba(255,255,255,.68); background: var(--ink); font-size: .85rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }
.footer-social { display: flex; gap: 18px; color: var(--white); }
.footer-social a:hover { color: var(--blue-200); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 10; max-width: 310px; padding: 13px 16px; border-radius: 10px; color: var(--white); background: var(--ink); box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: none; }

/* On wide screens keep the header near the screen edges (30px, as at 1220px) instead of the 1160px content width. */
@media (min-width: 1221px) {
  .nav, .hero-content { width: calc(100% - 60px); }
}
@media (prefers-reduced-motion: reduce) {
  .service img, .service-content, .service-more { transition: none; }
  .carousel-control, .carousel-control svg { transition: none; }
}
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 75px; left: 20px; right: 20px; padding: 18px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; background: rgba(13,35,57,.97); }
  .nav-links.open { display: grid; gap: 14px; }
  .menu-toggle { display: block; }
  /* .hero-content { padding-bottom: 72px; } */
  .about-grid, .support-grid, .training-grid, .contact-grid { grid-template-columns: 1fr; gap: 42px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .about-photo { max-width: 600px; }
  .about-more-open.is-hidden { display: none; }
  /* Cancel the 42px grid row gap so the expanded text follows the first paragraph at normal paragraph spacing. */
  .about-more { margin-top: -42px; }
  .partner-carousel { --partner-tile: 180px; }
  .partner-logo { height: 108px; padding: 14px 16px; }
}
@media (max-width: 560px) {
  .wrap { width: min(100% - 28px, 1160px); }
  section { padding: 76px 0; }
  .nav { min-height: 72px; }
  .brand img { width: 94px; }
  .hero-content { padding-bottom: 20px; }
  /* .hero-content { padding-bottom: 56px; } */
  .hero h1 { padding-top: 14px; }
  .hero-note { margin-top: 55px; gap: 18px; }
  .section-head { display: block; }
  .section-head p { margin-top: 18px; }
  .about-list, .support-points { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .service { min-height: 300px; }
  .service-details-body { padding: 22px 18px; }
  .service-details .service-details-lead { padding-left: 14px; }
  /* The arrows move below the logos so the row can use the full width. */
  .partner-carousel { --partner-tile: 150px; --partner-gap: 12px; padding: 20px 0 76px; }
  .partner-viewport { -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); }
  .partner-logo { height: 96px; padding: 12px; }
  .carousel-control { top: auto; bottom: 20px; width: 40px; height: 40px; transform: none; }
  .carousel-control:active { transform: scale(.92); }
  .carousel-control.prev { left: calc(50% - 48px); }
  .carousel-control.next { right: calc(50% - 48px); }
  .map-frame { height: 300px; margin-top: 42px; }
  .contact-item { grid-template-columns: 92px 1fr; }
  .footer-inner { display: grid; }
}
@media (max-width: 526px) {
  .hero-content { text-align: center; }
  .hero h1, .hero-copy { margin-right: auto; margin-left: auto; }
  .hero .actions { justify-content: center; }
}
@media (max-width: 315px) {
  .wrap { width: calc(100% - 20px); }
  section { padding: 58px 0; }
  h1, h2, h3, p, .contact-item dd { overflow-wrap: anywhere; }
  h1 { font-size: 2.45rem; }
  .hero-note { flex-wrap: wrap; }
  .actions .button { width: 100%; }
  .section-head h2 { font-size: 1.9rem; }
  .service-content { padding: 16px; }
  .service h3 { font-size: 1.25rem; }
  .partner-carousel { --partner-tile: 132px; --partner-gap: 10px; }
  .partner-logo { height: 88px; padding: 10px; }
  .contact-item { grid-template-columns: 1fr; gap: 3px; }
}
