/* Wahfei RU — responsive layout system
 *
 * Breakpoint map (mobile-first base + max-width downscales + min-width upscales):
 *   base .............. ~1025–1439px  container 1360px, section 80px, hero aspect 1920/720 + min 480px
 *   ≥1440px (large) ... 27" laptop/desktop mid   container 1400px (products 1420px), hero min 540px, type↑
 *   ≥1920px (xl) ...... 27"/FHD+ desktop         container 1440px (products 1460px), hero min 720px, padding↑
 *   ≤1024px (tablet) .. 2-col grids, footer 2-col, category/industry 2-col
 *   ≤860px (nav) ...... hamburger nav, about 1-col, hero shorter
 *   ≤640px (mobile) ... 1-col grids, tighter section padding, lang label hidden
 *
 * Gutters: 40px sides (<1920), 64px at ≥1920. Content fills large screens; not a skinny strip.
 */
:root {
  --blue: #0052cc;
  --blue-hover: #0747a6;
  --navy: #0a2540;
  --navy-footer: #0d2137;
  --text: #1a2332;
  --text-muted: #5a6a7a;
  --eyebrow: #8a9aab;
  --bg-soft: #f4f7fb;
  --white: #ffffff;
  --border: #e5ebf2;
  --shadow: 0 8px 24px rgba(10, 37, 64, 0.08);
  --radius: 10px;
  --container: 1360px;
  --header-h: 72px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, p {
  margin: 0;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0, 82, 204, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.logo img {
  width: 160px;
  height: auto;
}

.site-nav ul {
  display: flex;
  gap: 18px;
  align-items: center;
}

.site-nav a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: #3d4a5c;
  padding: 8px 0;
  white-space: nowrap;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--blue);
}

.site-nav a.active {
  color: var(--blue);
  font-weight: 600;
}

.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  transition: 0.2s;
}

/* —— Hero ——
 * Full-bleed product photo: object-fit:cover (no navy letterboxing).
 * object-position keeps the machine on the right; heads/lines stay left for copy.
 * Left scrim keeps overlay text readable.
 */
.hero {
  position: relative;
  aspect-ratio: 1920 / 720;
  min-height: 480px;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background: var(--navy);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--navy);
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  z-index: 0;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-media img,
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }
}

/* Semi-transparent left gradient — readable copy without hiding the machine */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(6, 20, 42, 0.78) 0%,
    rgba(6, 20, 42, 0.42) 34%,
    rgba(6, 20, 42, 0.12) 58%,
    transparent 78%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 96px 0 112px;
  max-width: 720px;
  margin-left: max(20px, calc((100% - var(--container)) / 2));
  margin-right: auto;
  width: min(100% - 40px, 720px);
}

.hero h1 {
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  margin-bottom: 16px;
}

.hero-sub {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.55;
  opacity: 0.95;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: 28px;
  max-width: 580px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s, transform 0.15s;
}

.btn img {
  filter: brightness(0) invert(1);
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.hero-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  padding: 0;
  transition: width 0.25s, background 0.25s;
}

.hero-dots .dot.active {
  width: 28px;
  background: var(--blue);
}

.hero-dots .dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* —— Sections common —— */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--eyebrow);
  margin-bottom: 10px;
}

.section-header h2,
.about-content h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.section-header h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--blue);
  margin: 14px auto 0;
  border-radius: 2px;
}

/* —— Products —— */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.product-card {
  background: var(--white);
}

.product-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  transition: transform 0.2s;
}

.product-link:hover {
  transform: translateY(-4px);
}

.product-link img:first-child {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.product-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.product-card p {
  font-size: 14px;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 12px;
}

.card-arrow img {
  width: 20px;
  height: 20px;
  filter: invert(28%) sepia(98%) saturate(1800%) hue-rotate(204deg) brightness(90%);
}

.product-link:hover .card-arrow img,
.news-link:hover .card-arrow img {
  transform: translateX(4px);
  transition: transform 0.2s;
}

/* —— Advantages —— */
.advantages {
  background: var(--bg-soft);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.advantage-item {
  text-align: center;
  padding: 24px 28px;
  position: relative;
}

.advantage-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: #d5dee8;
}

.adv-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
}

.advantage-item h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.advantage-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* —— About —— */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-media img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow);
}

.about-content .section-eyebrow {
  margin-bottom: 8px;
}

.about-content h2 {
  margin-bottom: 20px;
}

.about-content h2::after {
  content: none;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 14px;
  font-size: 15px;
}

.about-content .btn {
  margin-top: 12px;
}

/* —— News —— */
.news {
  background: var(--bg-soft);
}

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

.news-grid .news-card {
  grid-column: span 2;
}

/* 5 cards: row of 3, then 2 centered */
.news-grid .news-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.news-grid .news-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(10, 37, 64, 0.12);
}

.news-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.news-link > img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.news-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-body time {
  font-size: 13px;
  color: var(--eyebrow);
  margin-bottom: 8px;
}

.news-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 10px;
}

.news-body p {
  font-size: 14px;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 14px;
}

/* —— Footer —— */
.site-footer {
  background: var(--navy-footer);
  color: rgba(255, 255, 255, 0.85);
  padding-top: 56px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand img {
  width: 150px;
  margin-bottom: 16px;
}

.footer-slogan {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  max-width: 260px;
}

.footer-nav {
  display: flex;
  gap: 48px;
}

.footer-nav a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.footer-contact img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  flex-shrink: 0;
}

.footer-contact a:hover {
  color: var(--white);
  text-decoration: underline;
}

.social {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s;
}

.social a:hover {
  background: var(--blue);
}

.social img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

/* —— Responsive: 4 → 2 → 1 —— */
@media (max-width: 1024px) {
  .products-grid,
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .advantage-item:not(:last-child)::after {
    display: none;
  }

  .advantage-item {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid .news-card,
  .news-grid .news-card:nth-child(4),
  .news-grid .news-card:nth-child(5) {
    grid-column: auto;
  }

  .news-grid .news-card:last-child {
    grid-column: 1 / -1;
    max-width: 480px;
    justify-self: center;
    width: 100%;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .site-nav ul {
    gap: 18px;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
    order: 3;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px 24px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .site-nav a {
    display: block;
    padding: 12px 8px;
    width: 100%;
  }

  .site-nav a.active::after {
    bottom: 6px;
    left: 8px;
    right: auto;
    width: 40px;
  }


  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero {
    aspect-ratio: auto;
    min-height: 380px;
  }

  .hero-media img,
  .hero-slide img {
    object-position: 65% center;
  }

  .hero-scrim {
    background: linear-gradient(
      180deg,
      rgba(6, 20, 42, 0.82) 0%,
      rgba(6, 20, 42, 0.62) 45%,
      rgba(6, 20, 42, 0.38) 100%
    );
  }

  .hero-content {
    padding: 48px 0 80px;
    margin-left: 20px;
    max-width: 100%;
  }

  .hero h1 {
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
  }

  .hero-sub {
    opacity: 1;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
  }

  .nav-toggle {
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  .products-grid,
  .advantages-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-grid .news-card,
  .news-grid .news-card:nth-child(4),
  .news-grid .news-card:nth-child(5),
  .news-grid .news-card:last-child {
    grid-column: auto;
    max-width: none;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-nav {
    gap: 32px;
  }

  .section {
    padding: 56px 0;
  }


  .hero {
    min-height: 340px;
  }

  .hero h1 {
    font-size: 24px;
    line-height: 1.3;
  }

  .hero-sub {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .hero-content {
    padding: 40px 0 72px;
  }
}


/* —— Large desktop: fill 27" / 1440–1920 —— */
@media (min-width: 1440px) {
  :root {
    --container: 1400px;
    --header-h: 80px;
  }

  body {
    font-size: 17px;
  }

  .logo img {
    width: 176px;
  }

  .site-nav ul {
    gap: 32px;
  }

  .site-nav a {
    font-size: 16px;
  }

  .hero {
    min-height: 540px;
  }

  .hero-content {
    padding: 110px 0 128px;
    max-width: 760px;
    width: min(100% - 48px, 760px);
  }

  .hero h1 {
    font-size: 52px;
    margin-bottom: 20px;
  }

  .hero-sub {
    font-size: 19px;
    max-width: 620px;
    margin-bottom: 32px;
  }

  .btn {
    padding: 14px 28px;
    font-size: 16px;
  }

  .section {
    padding: 96px 0;
  }

  .section-header {
    margin-bottom: 56px;
  }

  .section-header h2,
  .about-content h2,
  .page-hero h1 {
    font-size: 36px;
  }

  /* Products: near-base scale (slightly wider than global container only) */
  .products .container {
    width: min(100% - 48px, 1420px);
  }

  .products.section {
    padding: 88px 0;
  }

  .products .section-header {
    margin-bottom: 44px;
  }

  .products .section-eyebrow {
    font-size: 12px;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
  }

  .products .section-header h2 {
    font-size: 32px;
  }

  .products .section-header h2::after {
    width: 44px;
    height: 3px;
    margin-top: 12px;
  }

  .products-grid {
    gap: 28px;
  }

  .product-card {
    padding: 0 0 4px;
  }

  .product-link img:first-child {
    min-height: 0;
    margin-bottom: 16px;
  }

  .product-card h3 {
    font-size: 17px;
    margin-bottom: 8px;
  }

  .product-card p {
    font-size: 14px;
    margin-bottom: 0;
  }

  .products .card-arrow {
    display: none;
  }

  .advantages-grid {
    gap: 8px;
  }

  .advantage-item {
    padding: 28px 32px;
  }

  .advantage-item h3 {
    font-size: 18px;
  }

  .advantage-item p {
    font-size: 15px;
  }

  .about-grid {
    gap: 56px;
  }

  .about-content p {
    font-size: 16px;
  }

  .news-grid {
    gap: 32px;
  }

  .news-body {
    padding: 24px 26px 28px;
  }

  .news-body h3 {
    font-size: 18px;
  }

  .news-body p {
    font-size: 15px;
  }

  .footer-top {
    gap: 48px;
    padding-bottom: 48px;
  }

  .site-footer {
    padding-top: 64px;
  }
}

@media (min-width: 1920px) {
  :root {
    --container: 1440px;
  }

  .container {
    width: min(100% - 64px, var(--container));
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    padding: 128px 0 140px;
    margin-left: max(32px, calc((100% - var(--container)) / 2));
  }

  .hero h1 {
    font-size: 56px;
  }

  .section {
    padding: 112px 0;
  }

  .news-grid {
    gap: 40px;
  }

  /* Products: slight bump on FHD+, still near global container */
  .products .container {
    width: min(100% - 64px, 1460px);
  }

  .products.section {
    padding: 96px 0;
  }

  .products .section-header {
    margin-bottom: 48px;
  }

  .products .section-header h2 {
    font-size: 34px;
  }

  .products-grid {
    gap: 30px;
  }

  .product-card {
    padding: 0 0 6px;
  }

  .product-link img:first-child {
    min-height: 0;
    margin-bottom: 16px;
  }

  .product-card h3 {
    font-size: 18px;
  }

  .product-card p {
    font-size: 14px;
  }

  .products .card-arrow {
    display: none;
  }

}

/* —— Inner pages —— */
.page-hero {
  background: linear-gradient(135deg, #0a2540 0%, #0d3a6b 55%, #0052cc 100%);
  color: var(--white);
  padding: 56px 0 64px;
}

.page-hero .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 18px;
}

.page-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
}

.page-hero .breadcrumb a:hover {
  color: var(--white);
  text-decoration: underline;
}

.page-hero .breadcrumb span[aria-hidden="true"] {
  opacity: 0.5;
}

.page-hero h1 {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.page-hero .lead {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
  opacity: 0.92;
  max-width: 720px;
}

.prose {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
}

.prose p + p {
  margin-top: 14px;
}

.prose ul {
  list-style: disc;
  margin: 14px 0 14px 1.25em;
  padding: 0;
}

.prose li {
  margin-bottom: 8px;
}

.content-block {
  margin-bottom: 48px;
}

.content-block h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.content-block h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 24px 0 10px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.category-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  color: inherit;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(10, 37, 64, 0.12);
}

.category-card img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

.category-card .cat-body {
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
}

.category-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.category-card p {
  font-size: 14px;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 16px;
}

.category-card .link-more {
  color: var(--blue);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.model-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.model-card h3 {
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 8px;
}

.model-card .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  background: #e8f0fe;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  width: fit-content;
}

.model-card p {
  font-size: 14px;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 16px;
}

.model-card ul {
  list-style: disc;
  margin: 0 0 16px 1.1em;
  padding: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.model-card li {
  margin-bottom: 4px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 20px 0;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.spec-table th {
  background: var(--bg-soft);
  color: var(--navy);
  font-weight: 600;
  width: 40%;
}

.spec-table td {
  color: var(--text-muted);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.industry-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
}

.industry-card .ind-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  filter: invert(28%) sepia(98%) saturate(1800%) hue-rotate(204deg) brightness(90%);
}

.industry-card h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.industry-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.stat-item {
  text-align: center;
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 24px 16px;
}

.stat-item strong {
  display: block;
  font-size: 28px;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 6px;
}

.stat-item span {
  font-size: 13px;
  color: var(--text-muted);
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.news-article {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.news-article > picture,
.news-article > img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: block;
}

.news-article > picture img,
.news-article > img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  display: block;
}

.news-article .na-body {
  padding: 28px 28px 28px 0;
  display: flex;
  flex-direction: column;
}

.news-article time {
  font-size: 13px;
  color: var(--eyebrow);
  margin-bottom: 8px;
}

.news-article h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.35;
}

.news-article p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.contact-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 28px;
}

.contact-card h2 {
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 16px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text-muted);
}

.contact-list img {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  filter: invert(28%) sepia(98%) saturate(1800%) hue-rotate(204deg) brightness(90%);
  flex-shrink: 0;
}

.contact-list a {
  color: var(--blue);
  font-weight: 500;
}

.contact-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--eyebrow);
  line-height: 1.5;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.contact-form h2 {
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 8px;
}

.contact-form .form-hint {
  font-size: 13px;
  color: var(--eyebrow);
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.15);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.form-actions .btn {
  border: none;
  cursor: pointer;
}

.btn-secondary {
  background: var(--bg-soft);
  color: var(--navy);
}

.btn-secondary:hover {
  background: #e5ebf2;
}

.form-status {
  font-size: 13px;
  color: var(--text-muted);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.cta-band {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  margin-top: 16px;
}

.cta-band h2 {
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 12px;
}

.cta-band p {
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 28px;
  margin: 20px 0;
}

.feature-list li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  color: var(--text-muted);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e8f0fe;
  box-shadow: inset 0 0 0 4px var(--blue);
}

@media (min-width: 1440px) {
  .page-hero {
    padding: 72px 0 80px;
  }

  .category-grid {
    gap: 36px;
  }

  .industry-grid {
    gap: 28px;
  }

  .model-grid {
    gap: 28px;
  }
}

@media (max-width: 1024px) {
  .category-grid,
  .industry-grid,
  .model-grid,
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-card {
    grid-template-columns: 1fr;
  }

  .news-article {
    grid-template-columns: 1fr;
  }

  .news-article .na-body {
    padding: 0 24px 24px;
  }

  .contact-grid,
  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .category-grid,
  .industry-grid,
  .model-grid,
  .stats-row,
  .feature-list,
  .form-row {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 40px 0 48px;
  }

  .contact-form,
  .contact-card {
    padding: 22px;
  }
}

/* Focus visibility for a11y */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* —— Extra mobile polish for inner pages —— */
@media (max-width: 860px) {
  /* P1-B: tablets 641–860 were still 2-col; force single column */
  .form-row {
    grid-template-columns: 1fr;
  }

  .page-hero .lead {
    font-size: 15px;
  }

  .cta-band {
    padding: 28px 20px;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .spec-table th,
  .spec-table td {
    padding: 10px 12px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .hero-content {
    margin-left: 12px;
    width: min(100% - 24px, 720px);
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-item strong {
    font-size: 22px;
  }
}

/* —— Certifications (homepage) —— */
.certs {
  background: var(--white);
  border-top: 1px solid var(--border);
}

.certs .section-lead {
  max-width: 820px;
  margin: 12px auto 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 36px;
  align-items: stretch;
}

.cert-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 12px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  /* Larger mark + tighter padding → less empty card, closer to square-ish tile */
  aspect-ratio: 1 / 1.15;
  min-height: 0;
}

.cert-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(10, 37, 64, 0.1);
}

.cert-item img {
  width: 120px;
  height: 120px;
  max-width: 100%;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}

.cert-item strong {
  font-size: 15px;
  color: var(--navy);
  line-height: 1.2;
}

.cert-item span {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
  margin-top: auto;
}

.certs-note {
  margin-top: 28px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* —— Product model layout —— */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 40px;
}

.img-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #e8f0fe 0%, #f4f7fb 55%, #dce6f2 100%);
  border: 1px dashed #9bb4d0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--navy);
  text-align: center;
  padding: 24px;
}

.img-placeholder-label {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.img-placeholder-hint {
  font-size: 13px;
  color: var(--text-muted);
}

.product-summary .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  background: #e8f0fe;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.product-summary h2 {
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 12px;
}

.product-summary h3 {
  font-size: 17px;
  color: var(--navy);
  margin: 20px 0 8px;
}

.product-summary .prose {
  color: var(--text-muted);
  font-size: 15px;
}

.product-body {
  margin-top: 8px;
}

.muted-note {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 12px;
}

.footer-contact .contact-disclaimer {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.55);
  max-width: 280px;
}

@media (max-width: 1024px) {
  .certs-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .cert-item {
    aspect-ratio: auto;
    padding: 14px 10px 12px;
  }

  .cert-item img {
    width: 112px;
    height: 112px;
  }
}

/* —— Product model chips under category cards —— */
.product-models {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding-top: 4px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--text-muted);
  flex: 0 0 auto;
}

.product-models a {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--navy);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.01em;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.product-models a:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.product-card > .product-link {
  margin-bottom: 0;
}

.product-card > .product-models {
  margin-top: 4px;
}

/* Override generic .product-card p for chips row */
.product-card > p.product-models {
  margin-bottom: 0;
  color: inherit;
  font-size: 13px;
}

/* —— Model entry cards (homepage / product list) —— */
.models-header {
  margin-top: 56px;
}

.model-entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  width: 100%;
}

.model-entry-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  min-width: 0;
}

.model-entry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(10, 37, 64, 0.12);
}

.model-entry-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  background: #f7f9fc;
  padding: 12px;
}

.model-entry-card strong {
  display: block;
  padding: 14px 16px 2px;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}

.model-entry-card span {
  display: block;
  padding: 0 16px 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.contact-models {
  margin-top: 12px;
}

@media (max-width: 1024px) {
  .model-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .model-entry-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-models {
    gap: 6px;
  }
}

@media (min-width: 1440px) {
  .model-entry-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
  }
}

.card-arrow {
  display: none !important;
}

/* Form validation + compliance hint (P0) */
.form-group.is-error input,
.form-group.is-error select,
.form-group.is-error textarea {
  border-color: #c62828;
  box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.15);
}
.form-hint.form-compliance {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #4a5568;
  line-height: 1.45;
}

/* P0-5: industry recommended model chips (product binding; layout may refine) */
.industry-rec-label {
  margin: 12px 0 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5b6b7c;
}
.model-rec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.model-rec-chips .chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #c9d4e0;
  background: #f5f8fb;
  color: #0f2744;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
.model-rec-chips .chip:hover {
  border-color: #1a6fb5;
  color: #1a6fb5;
  background: #eef6fc;
}
.product-template .product-scenarios-title { margin-top: 0; }
.product-sell-title { margin-top: 0; }

/* ===== P0 layout: floating inquiry CTA + polish ===== */

/* Form: denser two-col on desktop, clear single on mobile already via form-row */
.form-row {
  margin-bottom: 0;
}
.form-group select {
  cursor: pointer;
  appearance: auto;
}
.form-group.is-error label {
  color: #c62828;
}

/* Product template rhythm: sell → scenarios → specs → CTA */
.product-sell .product-sell-title {
  font-size: 22px;
  color: var(--navy);
  margin: 4px 0 12px;
}
.product-template {
  display: grid;
  gap: 8px;
  padding: 28px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 32px;
}
.product-template .product-scenarios-title,
.product-template .product-specs-title {
  font-size: 20px;
  color: var(--navy);
  margin: 16px 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(0, 82, 204, 0.2);
}
.product-template .product-scenarios-title {
  margin-top: 0;
}
.product-template .feature-list {
  margin-bottom: 8px;
}
.product-media img {
  width: 100%;
  border-radius: var(--radius);
  background: #f7f9fc;
  border: 1px solid var(--border);
}

/* Industry cards: equal height, chips pinned bottom */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.industry-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.industry-card > p:not(.industry-rec-label) {
  flex: 1;
}
.industry-rec-label {
  margin: 16px 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
}
.model-rec-chips .chip {
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.model-rec-chips .chip:hover {
  transform: translateY(-1px);
}

@media (max-width: 1024px) {
  .industry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .industry-grid {
    grid-template-columns: 1fr;
  }
}

/* Floating / sticky inquiry CTA */
.float-inquiry {
  position: fixed;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 10px 28px rgba(0, 82, 204, 0.35);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.float-inquiry:hover {
  background: var(--blue-hover);
  color: var(--white);
}
.float-inquiry:focus-visible {
  outline: 3px solid rgba(0, 82, 204, 0.35);
  outline-offset: 2px;
}
.float-inquiry-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

/* Desktop: right-side pill */
@media (min-width: 861px) {
  .float-inquiry {
    right: 24px;
    bottom: 28px;
    padding: 14px 20px;
    border-radius: 999px;
    font-size: 14px;
  }
  .float-inquiry:hover {
    transform: translateY(-2px);
  }
  body.has-float-inquiry {
    /* no extra bottom pad on desktop */
  }
}

/* Mobile: bottom bar */
@media (max-width: 860px) {
  .float-inquiry {
    left: 0;
    right: 0;
    bottom: 0;
    justify-content: center;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    border-radius: 0;
    font-size: 15px;
  }
  body.has-float-inquiry {
    padding-bottom: 64px;
  }
}

/* Hide on contact page (already on the form) */
body.page-kontakty .float-inquiry {
  display: none;
}
body.page-kontakty.has-float-inquiry {
  padding-bottom: 0;
}

/* P1-A form hierarchy hooks */
.form-group--primary select {
  font-size: 1.05rem;
  min-height: 2.75rem;
}
.label-optional {
  font-weight: 400;
  color: #64748b;
  font-size: 0.85em;
}
/* ===== P1-B: form collapse + form-row ≤860 + mobile hero ===== */
.form-extra {
  margin: 0.75rem 0 1.25rem;
  border: 1px solid var(--border, #d0d7de);
  border-radius: 8px;
  background: #f8fafc;
  padding: 0.5rem 0.85rem 0.75rem;
  transition: background 0.15s, border-color 0.15s;
}
.form-extra > summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--navy, #0a192f);
  list-style: none;
  padding: 0.45rem 1.6rem 0.45rem 0;
  position: relative;
  user-select: none;
}
.form-extra > summary::-webkit-details-marker { display: none; }
.form-extra > summary::marker { content: ""; }
.form-extra > summary::after {
  content: "";
  position: absolute;
  right: 0.15rem;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--blue, #0052cc);
  border-bottom: 2px solid var(--blue, #0052cc);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.15s;
}
.form-extra[open] {
  background: var(--white, #fff);
  border-color: #c5d0dc;
  padding-bottom: 24px;
}
.form-extra[open] > summary {
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--border, #e5ebf2);
  padding-bottom: 0.65rem;
}
.form-extra[open] > summary::after {
  transform: translateY(-25%) rotate(-135deg);
}
.form-extra__body {
  margin-top: 0.85rem;
  padding-bottom: 8px;
}
.form-extra[open] .form-extra__body {
  padding-bottom: 8px;
}

/* Hero prep list (kontakty) */
.hero-prep {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  max-width: 720px;
}
.hero-prep li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}
.hero-prep li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
}

/* Mobile hero: long lead + prep tucked behind «Подробнее» */
.hero-more {
  margin-top: 4px;
}
.hero-more > summary {
  list-style: none;
  cursor: pointer;
  display: none;
  width: fit-content;
  margin-top: 10px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  user-select: none;
}
.hero-more > summary::-webkit-details-marker { display: none; }
.hero-more > summary::marker { content: ""; }

@media (max-width: 640px) {
  .hero-more > summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .hero-more > summary::after {
    content: "▾";
    font-size: 11px;
    opacity: 0.85;
  }
  .hero-more[open] > summary::after {
    content: "▴";
  }
  .hero-more[open] {
    padding-bottom: 8px;
  }
  /* When closed, UA hides non-summary children — form starts higher */
  .page-hero {
    padding: 32px 0 36px;
  }
}

/* Desktop/tablet: always show hero body; hide disclosure control */
@media (min-width: 641px) {
  .hero-more > summary {
    display: none !important;
  }
  .hero-more > .lead,
  .hero-more > .hero-prep {
    display: block !important;
  }
  .hero-more > .hero-prep {
    display: grid !important;
  }
}

/* ===== P2: guestbook success modal ===== */
body.gb-modal-open {
  overflow: hidden;
}
.gb-modal[hidden] {
  display: none !important;
}
.gb-modal {
  position: fixed;
  inset: 0;
  z-index: 10000; /* above float CTA (z-index: 90) and header (100) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  box-sizing: border-box;
}
.gb-modal.is-open,
.gb-modal:not([hidden]) {
  display: flex;
}
.gb-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 37, 64, 0.58);
  cursor: pointer;
}
.gb-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px 22px;
  box-shadow: 0 20px 56px rgba(10, 37, 64, 0.32);
  border: 1px solid var(--border);
}
.gb-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
}
.gb-modal__close:hover,
.gb-modal__close:focus-visible {
  color: var(--navy);
  background: var(--bg-soft);
  outline: none;
}
.gb-modal__title {
  margin: 0 2rem 0.55rem 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}
.gb-modal__text {
  margin: 0 0 1.15rem;
  color: var(--text-muted);
  line-height: 1.55;
  font-size: 0.98rem;
}
.gb-modal__dialog .btn {
  width: 100%;
}
@media (max-width: 480px) {
  .gb-modal {
    padding: 16px 16px;
    align-items: flex-end;
  }
  .gb-modal__dialog {
    width: 100%;
    border-radius: 14px 14px 10px 10px;
    padding: 24px 18px 18px;
  }
}

/* ===== P2: contact-assist + hint cards 2×2 ===== */
.contact-assist {
  display: grid;
  gap: 28px;
}
.contact-assist .section-header {
  margin-bottom: 0;
}
.checklist-intro {
  max-width: 720px;
}
.hint-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}
.hint-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--blue);
}
.hint-card__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.hint-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.assist-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.assist-card h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}
.assist-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.assist-links a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}
.assist-links a:hover {
  color: var(--blue-hover);
  text-decoration: underline;
}
@media (max-width: 860px) {
  .hint-cards {
    grid-template-columns: 1fr;
  }
}

/* ===== P2: FAQ denser details ===== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.faq-item {
  background: var(--white);
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--border);
  padding: 0;
  margin: 0;
}
.faq-item:last-child {
  border-bottom: 0;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  padding: 16px 44px 16px 18px;
  position: relative;
  user-select: none;
  line-height: 1.4;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::marker {
  content: "";
}
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.15s;
}
.faq-item[open] summary {
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.faq-item[open] summary::after {
  transform: translateY(-25%) rotate(-135deg);
}
.faq-item[open] {
  padding-bottom: 4px;
}
.faq-item p {
  margin: 0;
  padding: 14px 18px 18px;
  color: var(--text-muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

/* ===== P3: choose cards + assist chips ===== */
.choose-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.choose-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  padding: 1.15rem 1.2rem 1.2rem 1.35rem;
  min-height: 100%;
  box-shadow: 0 4px 14px rgba(10, 25, 47, 0.04);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.choose-card:hover,
.choose-card:focus-visible {
  transform: translateY(-3px);
  border-color: #0056b3;
  box-shadow: 0 10px 28px rgba(0, 86, 179, 0.14);
  outline: none;
}
.choose-card__bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: #0056b3;
}
.choose-card__bar--axi { background: #0a192f; }
.choose-card__bar--ct { background: #1d4ed8; }
.choose-card__bar--sw { background: #0369a1; }
.choose-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 8px;
  background: #e8f1fb;
  color: #0056b3;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.15rem;
}
.choose-card__title {
  margin: 0;
  font-size: 1.1rem;
  color: #0a192f;
}
.choose-card__task {
  margin: 0;
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.45;
  flex: 1;
}
.choose-card__models {
  margin: 0;
  color: #64748b;
  font-size: 0.82rem;
}
.choose-card__cta {
  margin-top: auto;
  padding-top: 0.5rem;
  color: #0056b3;
  font-weight: 600;
  font-size: 0.92rem;
}
@media (max-width: 860px) {
  .choose-grid { grid-template-columns: 1fr; }
}

.assist-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.assist-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #c5d4e8;
  background: #f5f7fa;
  color: #0a192f;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.assist-chip:hover,
.assist-chip:focus-visible {
  background: #0056b3;
  border-color: #0056b3;
  color: #fff;
  transform: translateY(-1px);
  outline: none;
}
.assist-card h3 {
  margin: 0 0 0.85rem;
  color: #0056b3;
}

/* ===== P4: footer nav (plain text links, no chips) ===== */
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
}
.footer-nav__label {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.footer-chips {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0.1rem;
}
.footer-chip {
  display: block;
  padding: 0.35rem 0;
  border-radius: 0;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.35;
  white-space: normal;
  transition: color 0.15s ease;
}
.footer-chip:hover,
.footer-chip:focus-visible {
  background: transparent;
  border: none;
  color: #fff;
  outline: none;
}
@media (max-width: 860px) {
  .footer-nav { grid-template-columns: 1fr; }
}

/* ===== P4: news cards (homepage/cases card grids) ===== */
.news-list:has(.news-card) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

/* Dated article list on novosti.html — keep single column stack */
.news-list:has(.news-article) {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 14px rgba(10, 25, 47, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.news-card:hover,
.news-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 86, 179, 0.12);
  outline: none;
}
.news-card__media {
  aspect-ratio: 16/9;
  background: #e8f1fb;
  overflow: hidden;
}
.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-card__body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.news-card__meta {
  font-size: 0.8rem;
  color: #64748b;
}
.news-card__title {
  margin: 0;
  font-size: 1.05rem;
  color: #0a192f;
}
.news-card__excerpt {
  margin: 0;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.45;
  flex: 1;
}
.news-card__cta {
  color: #0056b3;
  font-weight: 600;
  font-size: 0.9rem;
}
@media (max-width: 860px) {
  .news-list:has(.news-card) { grid-template-columns: 1fr; }
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.case-models {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 14px;
}
.case-model {
  display: inline-flex; align-items: center;
  padding: 6px 12px; border-radius: 999px;
  background: #e8f1fb; color: #0056b3;
  font-size: 13px; font-weight: 600; text-decoration: none;
}
.case-model:hover { background: #0056b3; color: #fff; }
.case-card .news-card__cta { margin-top: auto; }
.case-card .news-card__media {
  background: #0a192f;
}
.case-card .news-card__media img {
  object-fit: contain;
}

.case-list .news-card { display: flex; flex-direction: column; }
.industry-flow {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 8px;
  line-height: 1.55;
}
.industry-flow strong {
  color: var(--navy);
  font-weight: 600;
}
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--white);
}
.select-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 15px;
}
.select-table th, .select-table td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid #e6edf5;
}
.select-table thead th {
  background: #0a192f;
  color: #fff;
  font-weight: 600;
  vertical-align: bottom;
}
.select-table .th-sub {
  display: block;
  font-size: 12px;
  font-weight: 400;
  opacity: 0.85;
  margin-top: 4px;
}
.select-table tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--navy);
  background: #f8fafc;
}
.select-table tbody tr:hover td,
.select-table tbody tr:hover th[scope="row"] {
  background: #eef5fc;
}
.mark { font-size: 18px; font-weight: 700; }
.mark-yes { color: #0056b3; }
.mark-opt { color: #6b7c93; }
.mark-no { color: #a0aec0; }
.legend { margin-top: 16px; font-size: 14px; color: var(--text-muted); }
.model-links { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }