/* =========================================================
   Arimed website — shared styles
   Source design: Figma "Untitled" (file 592Zqu4qHEShB8tSYQjuGO), frame "Home page"
   Design width 1920px, content column 1320px (x 300–1620).
   ========================================================= */

/* The design font is Mardoto. It is used when installed on the machine.
   To ship it with the site, put the .woff2 files in assets/fonts/ and
   add url() sources to the @font-face rules below. */
@font-face { font-family: "Mardoto"; font-weight: 400; src: local("Mardoto Regular"), local("Mardoto-Regular"); }
@font-face { font-family: "Mardoto"; font-weight: 500; src: local("Mardoto Medium"), local("Mardoto-Medium"); }
@font-face { font-family: "Mardoto"; font-weight: 700; src: local("Mardoto Bold"), local("Mardoto-Bold"); }

:root {
  /* colors from the design */
  --green: #7dc044;
  --green-btn: #7cc142;
  --blue: #4680c0;
  --blue-label: #457ec1;
  --navy: #1b3350;
  --gray: #d9d9d9;
  --menu-bg: #ededf7;
  --tile-bg: rgba(217, 217, 217, 0.22);
  --muted: #a5a5a5;
  --text: #000;
  --white: #fff;

  /* type */
  --font: "Mardoto", "Noto Sans Armenian", "Segoe UI", Roboto, Arial, sans-serif;
  --fs-body: clamp(1rem, 0.86rem + 0.45vw, 1.375rem);      /* 22px */
  --fs-h2: clamp(1.5rem, 1.05rem + 1.5vw, 2.5rem);         /* 40px */
  --fs-label: clamp(1.25rem, 0.95rem + 1.1vw, 2rem);       /* 32px */
  --fs-hero: clamp(1.5rem, 0.9rem + 2.2vw, 2.8125rem);     /* 45px */
  --fs-model: clamp(1.375rem, 0.8rem + 2vw, 2.8125rem);    /* 45px */

  /* layout */
  --container: 1320px;
  --gutter: clamp(16px, 4vw, 24px);
  --header-h: 103px;
  --section-gap: clamp(56px, 7vw, 96px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.5; color: var(--text); background: var(--white); overflow-x: hidden; }
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, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 6px; }
.skip-link:focus { top: 8px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--green-btn); color: var(--navy); font-weight: 500; white-space: nowrap; transition: filter .15s, transform .15s; }
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 37px; padding: 5px 15px; border-radius: 15px; font-size: 1rem; }
.btn--lg { min-height: 56px; padding: 8px 21px; border-radius: 25px; font-size: clamp(1.125rem, 1rem + .5vw, 1.5rem); }
.btn--send { min-height: 62px; padding: 19px 45px; border-radius: 4px; background: var(--green); color: var(--white); text-transform: uppercase; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); height: var(--header-h); }
.site-header__inner { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px); height: 100%; position: relative; padding-left: calc(var(--gutter) + clamp(0px, 5.6vw, 108px)); }
.site-logo { align-self: center; margin-top: 0; flex: none; position: relative; z-index: 2; }
.site-logo img { width: 104px; height: 104px; }

.site-nav { display: flex; align-items: center; flex: 1; gap: 24px; margin-left: clamp(8px, 3vw, 60px); }
.site-nav__list { display: flex; align-items: center; gap: clamp(14px, 1.7vw, 32px); }
.site-nav__link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 1rem; color: var(--navy); padding: 8px 0; white-space: nowrap; }
.site-nav__link:hover, .has-menu.is-open > .site-nav__link { color: var(--blue); }
.chevron { transition: transform .2s; }
.has-menu.is-open .chevron { transform: rotate(180deg); }
.site-nav__cta { margin-left: auto; }

/* products mega menu (design: 979x460, #ededf7, radius 15) */
.has-menu { position: static; }
.mega { position: absolute; top: calc(100% + 5px); left: calc(var(--gutter) + clamp(120px, 14vw, 267px)); width: min(979px, calc(100% - 2 * var(--gutter) - 120px)); background: var(--menu-bg); border-radius: 15px; padding: 31px 17px 22px 24px; color: var(--navy); font-weight: 500;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s; }
.has-menu.is-open .mega { opacity: 1; visibility: visible; transform: none; }
.mega__marker { position: absolute; left: 60px; top: -17px; pointer-events: none; }
.mega__all { display: block; padding-bottom: 10px; border-bottom: 3px solid var(--navy); letter-spacing: .01em; }
.mega__group { padding-top: 18px; }
.mega__group + .mega__group { padding-top: 5px; }
.mega__title { font-weight: 700; padding-bottom: 6px; border-bottom: 1px solid var(--navy); }
.mega__title--light { font-weight: 400; }
.mega__group ul { padding: 6px 0 7px; border-bottom: 1px solid var(--navy); }
.mega__group:last-child ul { border-bottom: 0; padding-bottom: 0; }
.mega__group li a { display: block; padding: 6px 0; }
.mega a:hover { color: var(--blue); }

/* language switcher (design: white card 54x88, radius 10, soft shadow) */
.lang { position: relative; flex: none; }
.lang__current { display: grid; place-items: center; width: 54px; height: 44px; border-radius: 10px; background: #fffdfd; box-shadow: 0 4px 4px rgba(0, 0, 0, .15); }
.lang__current img, .lang__list img { width: 38px; height: 23px; object-fit: cover; border-radius: 2px; }
.lang__list { position: absolute; right: 0; top: 0; width: 54px; padding: 10px 0; display: grid; gap: 10px; justify-items: center; border-radius: 10px; background: #fffdfd; box-shadow: 0 4px 4px rgba(0, 0, 0, .15); opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s; }
.lang.is-open .lang__list { opacity: 1; visibility: visible; }
.lang__list button { display: block; border-radius: 4px; }
.lang__list button[aria-current="true"] { outline: 2px solid var(--green); outline-offset: 2px; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; margin-left: auto; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- hero (design: #d9d9d9 block, 1920x802) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: var(--white); min-height: clamp(360px, 41.8vw, 802px); display: flex; align-items: flex-end; }
.hero__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
/* darkens the video so the white title stays readable */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0, 0, 0, .65) 0%, rgba(0, 0, 0, .35) 55%, rgba(0, 0, 0, .2) 100%); }
.hero__inner { position: relative; padding-top: 120px; padding-bottom: clamp(48px, 8.4vw, 161px); }
.hero__title { font-size: var(--fs-hero); font-weight: 700; text-transform: uppercase; line-height: 1.5; max-width: 15.5em; margin-bottom: 11px; text-wrap: balance; }

/* ---------- sections ---------- */
.section { padding-block: var(--section-gap) 0; }
.section--tight { padding-top: clamp(40px, 5vw, 72px); }
.section:last-of-type { padding-bottom: var(--section-gap); }
.section-title { display: flex; align-items: center; gap: 11px; font-size: var(--fs-h2); font-weight: 700; color: var(--green); text-transform: uppercase; line-height: 1.5; }
.section-title::before { content: ""; flex: none; width: .975em; height: 1em; background: var(--blue); }
.lead { font-size: var(--fs-body); line-height: 1.5; }

/* our products: two platforms */
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; margin-top: clamp(32px, 3.3vw, 63px); padding-inline: clamp(0px, 2.2vw, 29px); }
.platform { display: flex; align-items: flex-start; min-width: 0; }
.platform__media { flex: none; width: clamp(150px, 20.3vw, 268px); aspect-ratio: 1; border-radius: 50%; background: var(--gray); display: grid; place-items: center; position: relative; z-index: 1; }
.platform__media img { width: 80%; }
.platform__body { flex: 1; min-width: 0; margin-left: clamp(-53px, -4vw, -30px); padding-top: clamp(0px, .7vw, 9px); }
.platform__name { font-size: var(--fs-h2); font-weight: 700; color: var(--green); text-transform: uppercase; line-height: 1.5; padding-left: clamp(40px, 4.8vw, 63px); }
.platform__card { margin-top: 8px; max-width: 350px; min-height: clamp(96px, 10vw, 132px); display: block; padding: clamp(16px, 2.4vw, 36px) 14px clamp(16px, 2.4vw, 36px) clamp(40px, 4.6vw, 61px); border-radius: 0 10px 10px 0; background: rgba(217, 217, 218, .2); box-shadow: 8px 8px 8px rgba(0, 0, 0, .15); font-size: clamp(.875rem, .7rem + .6vw, 1.25rem); font-weight: 700; text-transform: uppercase; color: var(--green); line-height: 1.5; }
.platform__card--solid { background: #f7f7f8; }
.platform__card b { color: var(--blue); font-weight: inherit; }

/* printing equipment */
.equipment { display: grid; grid-template-columns: minmax(0, 640fr) minmax(0, 725fr); gap: 11px; align-items: center; }
.equipment__text .section-title { margin-bottom: clamp(12px, 1.4vw, 27px); }
.equipment__hero { width: 100%; margin-right: calc(-1 * var(--bleed, 0px)); }
.presses { --bleed: clamp(0px, calc((100vw - 1368px) / 2), 109px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 48px); margin: clamp(32px, 3.6vw, 70px) calc(-1 * var(--bleed)) 0; }
.presses img { width: 100%; }
.models { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px clamp(24px, 3.4vw, 65px); margin-top: clamp(48px, 6.8vw, 130px); }
.models a { position: relative; display: block; padding-top: 65px; font-size: var(--fs-model); font-weight: 700; text-transform: uppercase; line-height: 1.5; white-space: nowrap; }
.models a::before { content: ""; position: absolute; top: 0; left: 50%; width: 39px; height: 40px; margin-left: -20px; background: var(--blue); transform: scale(0); transition: transform .18s; }
.models:not(:hover):not(:focus-within) li:first-child a::before,
.models a:hover::before, .models a:focus-visible::before { transform: none; }

/* duotone photo band (design: grayscale photo, green top half + blue bottom half, darken blend) */
.band { position: relative; height: clamp(170px, 19.4vw, 372px); margin-top: clamp(48px, 4.2vw, 80px); overflow: hidden; background: #888; isolation: isolate; }
.band img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.band::before, .band::after { content: ""; position: absolute; z-index: 1; left: 0; right: 0; height: 50%; mix-blend-mode: darken; }
.band::before { top: 0; background: var(--green); }
.band::after { bottom: 0; background: var(--blue-label); }

/* spare parts / accessories */
.section#spare-parts { padding-top: clamp(56px, 7.7vw, 147px); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; align-items: start; }
.label-title { display: inline-block; background: var(--blue-label); color: var(--white); font-size: var(--fs-label); font-weight: 700; text-transform: uppercase; line-height: 1.375; padding: 0 clamp(20px, 9vw, 124px) 0 clamp(6px, 1vw, 13px); margin-bottom: clamp(8px, .6vw, 10px); }
.split__text .lead { max-width: 648px; }
.tile { background: var(--tile-bg); display: grid; place-items: center; aspect-ratio: 307 / 221; overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.tile--wide { aspect-ratio: 646 / 295; }
.tile--tall { aspect-ratio: 416 / 260; }
.tiles { display: grid; gap: clamp(12px, 2.2vw, 29px); }
.tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 24px; }
.tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2.4vw, 32px); margin-top: clamp(32px, 4.7vw, 90px); }
.tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(0px, 1.8vw, 34px); }

/* partners (design: #d9d9d9 strip, 188px) */
.section--partners { padding-top: clamp(64px, 11.5vw, 222px); }
.partners { background: var(--gray); margin-top: clamp(20px, 2.2vw, 43px); }
.partners__list { display: flex; align-items: center; justify-content: space-between; gap: 24px clamp(24px, 4vw, 75px); min-height: 188px; padding-block: 24px; }
.partners__list li { flex: 0 1 auto; min-width: 0; }
.partners__list img { max-height: 124px; width: auto; }

/* contact */
#contact { padding-top: clamp(56px, 5.2vw, 99px); }
.contact { display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 612px); justify-content: space-between; gap: 40px 48px; align-items: start; }
.contact__title { font-size: clamp(1.25rem, 1rem + .9vw, 1.875rem); font-weight: 500; color: var(--green); line-height: 1.5; margin-bottom: clamp(24px, 2.6vw, 50px); }
.field { display: block; }
.field input, .field textarea { width: 100%; font: inherit; font-size: .875rem; font-weight: 500; color: var(--text); background: transparent; border: 0; border-bottom: 1px solid #000; border-radius: 0; padding: 26px 7px 5px; height: 53px; }
.field + .field input { margin-top: 18px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field--area textarea { display: block; margin-top: 80px; height: 160px; border: 1px solid #000; padding: 5px 7px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 0; border-color: var(--blue); box-shadow: 0 1px 0 var(--blue); }
.field--area textarea:focus-visible { box-shadow: 0 0 0 1px var(--blue); }
.field .is-invalid { border-color: #c62828; }
.contact__actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 12px; padding-right: 24px; }
.contact__status { flex: 1; font-size: .875rem; color: var(--navy); }
.contact__status.is-error { color: #c62828; }
.contact__map { display: block; }
.contact__map img { width: 100%; }

/* ---------- footer (design: #1b3350, 109px) ---------- */
.site-footer { background: var(--navy); color: var(--white); }
.site-footer__inner { display: flex; align-items: center; gap: 24px; min-height: 109px; padding-block: 9px; }
.site-footer__logo { flex: none; margin-left: -12px; }
.site-footer__logo img { width: 69px; height: 69px; }
.site-footer__main { flex: 1; display: grid; gap: 22px; justify-items: center; }
.site-footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 44px; font-size: .875rem; font-weight: 500; }
.site-footer__contacts { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 28px; font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif; font-size: 1rem; font-weight: 600; }
.site-footer__contacts li { display: inline-flex; align-items: center; gap: 5px 8px; }
.site-footer__contacts li a + a { margin-left: 6px; }
.site-footer a:hover { color: var(--green); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1280px) {
  .site-header__inner { padding-left: var(--gutter); }
  .mega { left: var(--gutter); width: min(979px, calc(100% - 2 * var(--gutter))); }
  .mega__marker { left: 150px; }
}

@media (max-width: 1100px) {
  :root { --header-h: 72px; }
  .site-logo { align-self: center; margin-top: 0; }
  .site-logo img { width: 60px; height: 60px; }
  .nav-toggle { display: flex; order: 3; margin-left: 0; }
  .lang { margin-left: auto; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; margin: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); padding: 8px var(--gutter) 24px; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; box-shadow: 0 12px 24px rgba(0, 0, 0, .12); display: none; }
  .nav-open .site-nav { display: flex; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list > li { border-bottom: 1px solid var(--menu-bg); }
  .site-nav__link { width: 100%; justify-content: space-between; padding: 14px 0; font-size: 1.0625rem; white-space: normal; text-align: left; }
  .site-nav__cta { margin: 20px 0 0; align-self: flex-start; }
  .mega { position: static; width: auto; opacity: 1; visibility: visible; transform: none; display: none; padding: 18px 16px; margin-bottom: 14px; }
  .has-menu.is-open .mega { display: block; }
  .mega__marker { display: none; }
  .hero__inner { padding-top: 64px; }
}

@media (max-width: 900px) {
  .platforms { grid-template-columns: 1fr; padding-inline: 0; }
  .platform__media { width: clamp(140px, 30vw, 220px); }
  .equipment { grid-template-columns: 1fr; gap: 24px; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .tiles--2 { margin-top: 0; }
  .tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partners__list { flex-wrap: wrap; justify-content: center; }
  .partners__list li { flex: 0 1 calc(50% - 24px); display: grid; place-items: center; }
  .partners__list img { max-height: 84px; }
  .contact { grid-template-columns: 1fr; }
  .contact__map { max-width: 612px; }
  .contact__actions { padding-right: 0; }
  .site-footer__inner { flex-direction: column; padding-block: 24px; }
  .site-footer__logo { margin-left: 0; }
}

@media (max-width: 600px) {
  .presses { grid-template-columns: 1fr; }
  .models { gap: 8px 28px; }
  .models a { padding-top: 34px; }
  .models a::before { width: 20px; height: 20px; margin-left: -10px; }
  .tiles--3 { grid-template-columns: 1fr 1fr; }
  .tiles--3 .tile:last-child { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
  .label-title { padding-right: 24px; }
  .platform__body { margin-left: -28px; }
  .platform__name { padding-left: 38px; }
  .platform__card { padding-left: 38px; }
  .field--area textarea { margin-top: 40px; }
  .contact__actions { flex-direction: column; align-items: stretch; }
  .site-footer__contacts { flex-direction: column; gap: 12px; font-size: .9375rem; }
  .site-footer__nav { gap: 8px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .hero { background: var(--navy) url("../assets/img/hero-poster.jpg") center / cover no-repeat; }
  .hero__video { display: none; }
}

/* =========================================================
   Product pages (presses and add-on units)
   Source: design/figma/pages/*.png, 1920px wide.
   Body copy on these pages is English, as in the design.
   ========================================================= */
:root {
  --p-blue: #5a7dbd;        /* add-on unit hero panel */
  --p-band: #0189d3;        /* download band */
  --p-badge-blue: #1757be;
  --p-badge-green: #21a97a;
  --p-row: #edf0f4;         /* zebra rows in specification tables */
  --p-line: #e3e6ea;
  --p-soft: #f1f3f3;        /* add-on cards background */
  --fs-p-title: clamp(1.5rem, 1rem + 1.6vw, 2.75rem);     /* 44px */
  --fs-p-text: clamp(1rem, .72rem + 1.1vw, 2rem);         /* 32px */
  --fs-p-caps: clamp(1.125rem, .7rem + 1.8vw, 2.75rem);   /* 44px */
}
[hidden] { display: none !important; }
.container--wide { max-width: calc(1540px + 2 * var(--gutter)); }
.product-page .section:last-of-type { padding-bottom: var(--section-gap); }

/* hero, presses: the artwork already contains the product name and button */
.p-hero { position: relative; }
.p-hero__img { width: 100%; }
.p-hero__btn { position: absolute; border-radius: 999px; }
.p-hero__btn:hover { box-shadow: 0 0 0 3px rgba(255, 255, 255, .6); }
.p-hero--fa-line .p-hero__btn { left: 22.81%; top: 87.28%; width: 15.78%; height: 9.85%; }
.p-hero--fa-26 .p-hero__btn { left: 22.65%; top: 86.68%; width: 15.81%; height: 10.85%; }
.p-hero--fb-line .p-hero__btn { left: 23.07%; top: 85.91%; width: 15.81%; height: 9.85%; }
.p-hero--fb-line-pro .p-hero__btn { left: 22.03%; top: 85.66%; width: 15.81%; height: 9.85%; }
.p-hero--mo-line .p-hero__btn { left: 22.7%; top: 85.66%; width: 15.81%; height: 9.85%; }
.p-hero--fp-4 .p-hero__btn { left: 22.03%; top: 85.66%; width: 15.81%; height: 9.85%; }
.p-hero--fp-5 .p-hero__btn { left: 12.21%; top: 86.66%; width: 15.81%; height: 9.85%; }

/* hero, add-on units: blue panel + photo */
.u-hero { display: grid; grid-template-columns: 52.56% 1fr; min-height: clamp(280px, 41vw, 788px); background: var(--p-blue); }
.u-hero__panel { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: clamp(28px, 5.2vw, 100px) clamp(16px, 4.6vw, 88px) clamp(24px, 2.2vw, 42px); color: var(--white); }
.u-hero__title { font-size: clamp(1.5rem, .8rem + 2.7vw, 3.625rem); font-weight: 700; line-height: 1.17; max-width: 12.5em; text-wrap: balance; }
.u-hero__btn { align-self: flex-start; gap: 12px; min-height: clamp(48px, 4.1vw, 78px); padding: 8px clamp(18px, 1.7vw, 32px); border-radius: 999px; font-size: clamp(1rem, .8rem + .6vw, 1.5rem); text-transform: uppercase; }
.u-hero__img { width: 100%; height: 100%; object-fit: cover; }

/* in-page tabs */
.p-tabs { padding-top: clamp(16px, 2vw, 38px); }
.p-tabs ul { display: flex; justify-content: center; gap: 8px clamp(20px, 3.2vw, 60px); overflow-x: auto; }
.p-tabs a { display: block; padding-bottom: clamp(10px, 1.4vw, 26px); font-size: clamp(.875rem, .6rem + .8vw, 1.5rem); font-weight: 500; color: var(--navy); text-transform: uppercase; white-space: nowrap; background: linear-gradient(var(--green), var(--green)) left bottom / 0 clamp(8px, 1vw, 20px) no-repeat; transition: background-size .2s; }
.p-tabs a:hover, .p-tabs a[aria-current="true"] { background-size: 100% clamp(8px, 1vw, 20px); }

/* text blocks */
.p-block { padding-top: clamp(40px, 5vw, 96px); }
.p-block + .p-block { padding-top: clamp(32px, 4vw, 72px); }
.p-title { font-size: var(--fs-p-title); font-weight: 700; text-transform: uppercase; line-height: 1.3; margin-bottom: clamp(16px, 2.6vw, 50px); }
.p-title::after { content: ""; display: block; width: clamp(64px, 6vw, 115px); height: clamp(8px, 1vw, 20px); margin-top: 8px; background: var(--green); }
.p-title--plain { margin-top: clamp(32px, 4vw, 72px); }
.p-title--plain::after { content: none; }
.p-cutout { margin: 0 auto clamp(24px, 3.4vw, 64px); }
.p-lead { font-size: clamp(1rem, .7rem + .9vw, 1.5rem); font-weight: 500; text-transform: uppercase; line-height: 1.5; margin-bottom: clamp(20px, 3vw, 56px); }
.p-capslead { font-size: var(--fs-p-caps); line-height: 1.55; text-transform: uppercase; margin-bottom: clamp(20px, 2.6vw, 48px); }
.p-headline { font-size: clamp(1.25rem, .8rem + 1.9vw, 2.75rem); font-weight: 700; line-height: 1.3; margin-bottom: clamp(16px, 2vw, 40px); }
.p-headline b, .p-diagram__title b { color: var(--green); font-weight: inherit; }
.p-headline--center { text-align: center; max-width: 18em; margin: clamp(32px, 5vw, 96px) auto 0; text-wrap: balance; }
.p-sub { font-size: var(--fs-p-text); font-weight: 700; line-height: 1.3; margin: clamp(20px, 2.4vw, 44px) 0 clamp(12px, 2.2vw, 42px); }
.p-text { font-size: var(--fs-p-text); line-height: 1.38; }
.p-text + .p-text { margin-top: .6em; }
.p-text--strong { font-weight: 700; }
.p-text--em { font-style: italic; }
.p-text a { text-decoration: underline; }
.p-text a:hover { color: var(--blue); }

/* FA-Line feature icons */
.p-icons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 56px) 16px; max-width: 1160px; margin: clamp(32px, 4vw, 72px) auto 0; text-align: center; }
.p-icons img { width: min(100%, 204px); margin: 0 auto 16px; }
.p-icons span { display: block; font-size: clamp(.8125rem, .5rem + .8vw, 1.5rem); font-weight: 700; color: var(--blue); text-transform: uppercase; line-height: 1.5; text-wrap: balance; }

/* FA-26 capability cards */
.p-caps { padding-top: clamp(48px, 6vw, 120px); }
.caps__kicker { font-size: clamp(.8125rem, .7rem + .3vw, 1.0625rem); font-weight: 700; color: #1560d8; text-transform: uppercase; }
.caps__title { font-size: clamp(1.75rem, 1rem + 2.4vw, 3.5rem); font-weight: 700; color: var(--navy); line-height: 1.25; padding-bottom: clamp(12px, 1.4vw, 26px); margin-bottom: clamp(24px, 3vw, 58px); border-bottom: 5px solid transparent; border-image: linear-gradient(90deg, #1560d8, #0d8fae, #1fac74) 1; }
.caps__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 58px); align-items: start; }
.caps__card { border-radius: clamp(16px, 1.6vw, 30px); background: var(--white); box-shadow: 0 4px 8px rgba(0, 0, 0, .18); overflow: hidden; align-self: stretch; }
.caps__card h3 { padding: clamp(14px, 1.7vw, 32px) clamp(16px, 2.1vw, 40px); font-size: clamp(1rem, .7rem + .8vw, 1.5rem); font-weight: 700; color: var(--white); background: #1560d8; }
.caps__card--2 h3 { background: #0d8fae; }
.caps__card--3 h3 { background: #1fac74; }
.caps__card ol { padding: clamp(8px, 1.4vw, 28px) clamp(16px, 2.1vw, 40px) clamp(16px, 2vw, 40px); }
.caps__card li { display: flex; align-items: center; gap: clamp(10px, 1vw, 20px); padding: clamp(10px, 1.2vw, 24px) 0; font-size: clamp(.9375rem, .7rem + .6vw, 1.375rem); line-height: 1.35; color: #1d2733; }
.caps__card li + li { border-top: 2px solid #dfe6ee; }
.caps__num { flex: none; display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 50%; font-size: .68em; font-weight: 700; color: var(--white); background: #1560d8; }
.caps__card--2 .caps__num { background: #0d8fae; }
.caps__card--3 .caps__num { background: #1fac74; }
.p-icon4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 60px); margin-top: clamp(40px, 5vw, 96px); text-align: center; }
.p-icon4 img { width: clamp(88px, 7.7vw, 147px); margin: 0 auto 20px; }
.p-icon4 h3 { font-size: clamp(.9375rem, .7rem + .5vw, 1.25rem); font-weight: 700; color: #1560d8; text-transform: uppercase; margin-bottom: 10px; }
.p-icon4 p { font-size: clamp(.875rem, .7rem + .4vw, 1.125rem); line-height: 1.45; color: #3d4a5a; text-align: left; }

/* features / benefits lists */
.fb { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(24px, 3vw, 56px); margin-top: clamp(32px, 4.5vw, 86px); }
.fb__title { font-size: var(--fs-p-title); font-weight: 700; color: var(--green); text-transform: uppercase; line-height: 1.2; margin-bottom: clamp(12px, 1.6vw, 30px); }
.fb__list { display: grid; gap: clamp(14px, 2.2vw, 42px); }
.fb__list li { display: flex; align-items: flex-start; gap: clamp(10px, .9vw, 18px); font-size: clamp(.875rem, .6rem + .75vw, 1.4375rem); font-weight: 700; text-transform: uppercase; line-height: 1.55; }
.fb__num { flex: none; display: grid; place-items: center; width: 2.2em; height: 2.2em; margin-top: -.3em; border-radius: 50%; font-size: .87em; color: var(--white); background: var(--p-badge-blue); }
.fb__list li:nth-child(even) .fb__num { background: var(--p-badge-green); }
.fb--row { display: block; }
.fb--row .fb__list { grid-template-columns: repeat(3, minmax(0, auto)); justify-content: space-between; gap: clamp(14px, 1.8vw, 34px) 32px; }

/* galleries: the grid of each page is generated from the design */
.gal { display: grid; gap: 0; }
.gal__item { overflow: hidden; background: var(--white); }
.gal__item img { width: 100%; height: 100%; object-fit: cover; }
.gal__item--contain img { object-fit: contain; }
@media (min-width: 701px) {
  .gal--fa-line { grid-template-columns: 483fr 50fr 250fr 48fr 250fr 44fr 250fr; grid-template-rows: 165fr 42fr 164fr; aspect-ratio: 1375 / 371; }
  .gal--fa-line > :nth-child(1) { grid-area: 1 / 1 / 4 / 2; }
  .gal--fa-line > :nth-child(2) { grid-area: 1 / 3 / 2 / 4; }
  .gal--fa-line > :nth-child(3) { grid-area: 1 / 5 / 2 / 6; }
  .gal--fa-line > :nth-child(4) { grid-area: 1 / 7 / 4 / 8; }
  .gal--fa-line > :nth-child(5) { grid-area: 3 / 3 / 4 / 4; }
  .gal--fa-line > :nth-child(6) { grid-area: 3 / 5 / 4 / 6; }
.gal--fp-4 { grid-template-columns: 660fr 18fr 150fr 179fr 19fr 377fr; grid-template-rows: 34fr 180fr 18fr 239fr; aspect-ratio: 1403 / 471; }
  .gal--fp-4 > :nth-child(1) { grid-area: 1 / 1 / 5 / 2; }
  .gal--fp-4 > :nth-child(2) { grid-area: 1 / 3 / 3 / 4; }
  .gal--fp-4 > :nth-child(3) { grid-area: 1 / 6 / 5 / 7; }
  .gal--fp-4 > :nth-child(4) { grid-area: 2 / 4 / 3 / 5; }
  .gal--fp-4 > :nth-child(5) { grid-area: 4 / 3 / 5 / 5; }
.gal--fp-5 { grid-template-columns: 660fr 18fr 150fr 179fr 19fr 406fr; grid-template-rows: 214fr 18fr 239fr; aspect-ratio: 1432 / 471; }
  .gal--fp-5 > :nth-child(1) { grid-area: 1 / 1 / 4 / 2; }
  .gal--fp-5 > :nth-child(2) { grid-area: 1 / 3 / 2 / 4; }
  .gal--fp-5 > :nth-child(3) { grid-area: 1 / 4 / 2 / 5; }
  .gal--fp-5 > :nth-child(4) { grid-area: 1 / 6 / 4 / 7; }
  .gal--fp-5 > :nth-child(5) { grid-area: 3 / 3 / 4 / 5; }
.gal--digital-high-build-varnish-bar { grid-template-columns: 457fr 33fr 455fr 31fr 473fr; grid-template-rows: 301fr 33fr 301fr 33fr 558fr; aspect-ratio: 1449 / 1226; }
  .gal--digital-high-build-varnish-bar > :nth-child(1) { grid-area: 1 / 1 / 4 / 4; }
  .gal--digital-high-build-varnish-bar > :nth-child(2) { grid-area: 1 / 5 / 2 / 6; }
  .gal--digital-high-build-varnish-bar > :nth-child(3) { grid-area: 3 / 5 / 4 / 6; }
  .gal--digital-high-build-varnish-bar > :nth-child(4) { grid-area: 5 / 1 / 6 / 2; }
  .gal--digital-high-build-varnish-bar > :nth-child(5) { grid-area: 5 / 3 / 6 / 4; }
  .gal--digital-high-build-varnish-bar > :nth-child(6) { grid-area: 5 / 5 / 6 / 6; }
.gal--nilscreen-pro { grid-template-columns: 457fr 33fr 454fr 32fr 473fr; grid-template-rows: 301fr 33fr 301fr 33fr 558fr; aspect-ratio: 1449 / 1226; }
  .gal--nilscreen-pro > :nth-child(1) { grid-area: 1 / 1 / 4 / 4; }
  .gal--nilscreen-pro > :nth-child(2) { grid-area: 1 / 5 / 2 / 6; }
  .gal--nilscreen-pro > :nth-child(3) { grid-area: 3 / 5 / 4 / 6; }
  .gal--nilscreen-pro > :nth-child(4) { grid-area: 5 / 1 / 6 / 2; }
  .gal--nilscreen-pro > :nth-child(5) { grid-area: 5 / 3 / 6 / 4; }
  .gal--nilscreen-pro > :nth-child(6) { grid-area: 5 / 5 / 6 / 6; }
.gal--semi-rotary-die { grid-template-columns: 735fr 37fr 735fr; grid-template-rows: 496fr; aspect-ratio: 1507 / 496; }
  .gal--semi-rotary-die > :nth-child(1) { grid-area: 1 / 1 / 2 / 2; }
  .gal--semi-rotary-die > :nth-child(2) { grid-area: 1 / 3 / 2 / 4; }
.gal--quick-change-die { grid-template-columns: 940fr 36fr 473fr; grid-template-rows: 301fr 33fr 301fr 32fr 448fr; aspect-ratio: 1449 / 1115; }
  .gal--quick-change-die > :nth-child(1) { grid-area: 1 / 1 / 4 / 2; }
  .gal--quick-change-die > :nth-child(2) { grid-area: 1 / 3 / 2 / 4; }
  .gal--quick-change-die > :nth-child(3) { grid-area: 3 / 3 / 4 / 4; }
  .gal--quick-change-die > :nth-child(4) { grid-area: 5 / 1 / 6 / 2; }
  .gal--quick-change-die > :nth-child(5) { grid-area: 5 / 3 / 6 / 4; }
.gal--fa-26 { grid-template-columns: 661fr 21fr 324fr 58fr 319fr; grid-template-rows: 211fr 28fr 234fr; aspect-ratio: 1383 / 473; }
  .gal--fa-26 > :nth-child(1) { grid-area: 1 / 1 / 4 / 2; }
  .gal--fa-26 > :nth-child(2) { grid-area: 1 / 3 / 2 / 4; }
  .gal--fa-26 > :nth-child(3) { grid-area: 1 / 5 / 2 / 6; }
  .gal--fa-26 > :nth-child(4) { grid-area: 3 / 3 / 4 / 4; }
  .gal--fa-26 > :nth-child(5) { grid-area: 3 / 5 / 4 / 6; }
.gal--fb-line { grid-template-columns: 660fr 21fr 323fr 20fr 351fr; grid-template-rows: 214fr 26fr 233fr; aspect-ratio: 1375 / 473; }
  .gal--fb-line > :nth-child(1) { grid-area: 1 / 1 / 4 / 2; }
  .gal--fb-line > :nth-child(2) { grid-area: 1 / 3 / 2 / 4; }
  .gal--fb-line > :nth-child(3) { grid-area: 1 / 5 / 4 / 6; }
  .gal--fb-line > :nth-child(4) { grid-area: 3 / 3 / 4 / 4; }
.gal--fb-line-pro { grid-template-columns: 660fr 23fr 323fr 20fr 351fr; grid-template-rows: 225fr 24fr 224fr; aspect-ratio: 1377 / 473; }
  .gal--fb-line-pro > :nth-child(1) { grid-area: 1 / 1 / 4 / 2; }
  .gal--fb-line-pro > :nth-child(2) { grid-area: 1 / 3 / 2 / 4; }
  .gal--fb-line-pro > :nth-child(3) { grid-area: 1 / 5 / 4 / 6; }
  .gal--fb-line-pro > :nth-child(4) { grid-area: 3 / 3 / 4 / 4; }
.gal--mo-line { grid-template-columns: 660fr 20fr 325fr 21fr 351fr; grid-template-rows: 199fr 22fr 199fr; aspect-ratio: 1377 / 420; }
  .gal--mo-line > :nth-child(1) { grid-area: 1 / 1 / 4 / 2; }
  .gal--mo-line > :nth-child(2) { grid-area: 1 / 3 / 2 / 4; }
  .gal--mo-line > :nth-child(3) { grid-area: 1 / 5 / 4 / 6; }
  .gal--mo-line > :nth-child(4) { grid-area: 3 / 3 / 4 / 4; }
}
@media (max-width: 700px) {
  .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gal__item { aspect-ratio: 4 / 3; }
  .gal__item:first-child { grid-column: 1 / -1; }
}

/* circular diagram */
.p-diagram__title { font-size: clamp(1.25rem, .8rem + 1.6vw, 2.5rem); font-weight: 700; line-height: 1.3; text-align: center; text-wrap: balance; max-width: 24em; margin: 0 auto clamp(24px, 3.6vw, 70px); }
.diagram { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 664px) minmax(0, 1fr); align-items: center; gap: clamp(12px, 2vw, 40px); max-width: 1400px; margin-inline: auto; }
.diagram__list { display: grid; gap: clamp(16px, 3.6vw, 70px); justify-items: end; }
.diagram__list--right { justify-items: start; }
.diagram__list li { position: relative; padding: clamp(10px, 1.1vw, 20px) clamp(20px, 3vw, 60px); border: 2px solid #8a94b8; border-radius: 999px; font-size: clamp(.8125rem, .6rem + .55vw, 1.25rem); font-weight: 700; color: var(--navy); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.diagram__list li::after { content: ""; position: absolute; top: 50%; right: -11px; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: var(--green); }
.diagram__list--right li::after { right: auto; left: -11px; }
.diagram__list--left li:nth-child(odd) { margin-right: clamp(0px, 4vw, 80px); }
.diagram__list--right li:nth-child(odd) { margin-left: clamp(0px, 4vw, 80px); }

/* image + text row */
.p-media__inner { display: grid; grid-template-columns: minmax(0, 626fr) minmax(0, 860fr); gap: clamp(20px, 2.4vw, 46px); align-items: center; }
.p-media__title { font-size: clamp(1.375rem, .9rem + 1.7vw, 2.75rem); font-weight: 700; line-height: 1.2; margin-bottom: clamp(10px, 1.4vw, 26px); }
.p-media__btn { margin-top: 20px; float: right; }

/* specifications */
.p-spec { padding-top: clamp(48px, 7vw, 140px); }
.p-spec__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(20px, 2vw, 38px); }
.p-spec__title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: clamp(1.375rem, 1rem + 1.2vw, 2.375rem); font-weight: 400; line-height: 1.2; }
.p-spec__pill { padding: .25em .65em; border: 1.5px solid var(--green); border-radius: 999px; font-size: .8em; font-weight: 700; color: var(--green); }
.p-spec__controls { display: grid; justify-items: end; gap: 12px; margin-left: auto; }
.unit-switch { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 500; color: #555; }
.unit-switch__label.is-active { color: var(--green); font-weight: 700; }
.unit-switch__btn { position: relative; width: 58px; height: 30px; border: 1.5px solid var(--green); border-radius: 999px; }
.unit-switch__btn span { position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: var(--green); transition: transform .15s; }
.unit-switch__btn[aria-checked="true"] span { transform: translateX(28px); }
.model-switch { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 16px; font-size: 1rem; color: #555; }
.model-switch__group { display: flex; border: 1.5px solid var(--green); border-radius: 999px; overflow: hidden; }
.model-switch__group button { min-width: 78px; min-height: 32px; padding: 4px 16px; font-size: .9375rem; color: var(--green); }
.model-switch__group button + button { border-left: 1.5px solid var(--green); }
.model-switch__group button[aria-pressed="true"] { background: var(--green); color: var(--white); font-weight: 700; }
.model-switch__group button:disabled { color: var(--muted); cursor: not-allowed; }
.p-spec__card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--p-line); border-radius: 12px; overflow: hidden; }
.p-spec__card--1 { grid-template-columns: minmax(0, 1fr); }
.p-spec__table { width: 100%; border-collapse: collapse; align-self: start; font-size: clamp(.9375rem, .8rem + .3vw, 1.125rem); }
.p-spec__table + .p-spec__table { border-left: 1px solid var(--p-line); align-self: stretch; }
.p-spec__table th, .p-spec__table td { padding: clamp(12px, 1.1vw, 20px) clamp(12px, 1.2vw, 22px); text-align: left; vertical-align: top; line-height: 1.4; }
.p-spec__table th { font-weight: 700; width: 1%; white-space: nowrap; }
.p-spec__table th[colspan] { white-space: normal; }
.p-spec__table tr.is-group th { color: var(--green); text-transform: uppercase; }
.p-spec__table tr:not(.is-group):nth-child(even) { background: var(--p-row); }

/* download band */
.dl { margin-top: clamp(48px, 7vw, 138px); background: var(--p-band); color: var(--white); }
.dl__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: clamp(40px, 5.2vw, 100px); padding-inline: clamp(16px, 6vw, 300px) clamp(16px, 12vw, 420px); max-width: none; }
.dl__name { font-size: clamp(1.25rem, .9rem + 1vw, 2.25rem); font-weight: 700; color: #bfe3f6; }
.dl__title { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.75rem); font-weight: 700; line-height: 1.3; margin: 6px 0 clamp(12px, 1.4vw, 26px); }
.dl__text { font-size: clamp(1rem, .8rem + .5vw, 1.375rem); line-height: 1.45; max-width: 17em; }
.dl__btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 40px; min-width: 190px; min-height: 58px; margin-top: clamp(24px, 4vw, 76px); padding: 8px 20px 8px 25px; background: var(--white); color: var(--p-band); font-size: .8125rem; font-weight: 700; }
.dl__btn:hover svg { transform: translateX(4px); }
.dl__btn svg { transition: transform .15s; }
.dl__pdf { display: grid; justify-items: start; gap: 6px; }
.dl__pdf-word { font-size: clamp(2.5rem, 1.5rem + 3vw, 5rem); font-weight: 700; line-height: 1; }
.dl__size { font-size: .8125rem; font-weight: 700; }
.dl__pdf svg { justify-self: center; margin-top: clamp(16px, 4vw, 76px); height: clamp(64px, 6.8vw, 130px); width: auto; transition: transform .15s; }
.dl__pdf:hover svg { transform: translateY(6px); }

/* add-on unit cards */
.addons { background: var(--p-soft); padding-block: clamp(32px, 3.2vw, 60px) clamp(48px, 7vw, 130px); }
.addons__title { font-size: clamp(1.25rem, .9rem + 1.3vw, 2.25rem); font-weight: 700; color: #1a1a1a; line-height: 1.3; margin-bottom: clamp(20px, 2.4vw, 46px); }
.addons__list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: clamp(12px, 1.7vw, 33px); }
.addons__list li { flex: 0 1 276px; display: flex; }
.addon { display: flex; flex-direction: column; width: 100%; min-height: 418px; background: var(--white); color: #1a1a1a; transition: box-shadow .15s, transform .15s; }
.addon:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, .12); transform: translateY(-2px); }
.addon[aria-current="page"] { outline: 2px solid var(--p-band); }
.addon img { width: 100%; aspect-ratio: 276 / 184; object-fit: cover; }
.addon__name { padding: 16px 19px 0; font-size: 1.5rem; font-weight: 700; line-height: 1.17; }
.addon__sub { padding: 4px 19px 0; font-size: .9375rem; line-height: 1.15; color: #666; max-width: 13em; }
.addon__go { display: flex; justify-content: flex-end; margin: auto 19px 0; padding: 8px 0 10px; border-top: 1px solid #cfd8dc; color: var(--p-band); }

.p-contact { padding-top: clamp(56px, 10vw, 200px); }

@media (max-width: 1100px) {
  .caps__grid { grid-template-columns: minmax(0, 1fr); }
  .p-icon4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fb--row .fb__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .fb, .p-spec__card, .p-media__inner { grid-template-columns: minmax(0, 1fr); }
  .p-spec__table + .p-spec__table { border-left: 0; border-top: 1px solid var(--p-line); }
  .p-spec__controls { justify-items: start; margin-left: 0; }
  .model-switch { justify-content: flex-start; }
  .diagram { grid-template-columns: minmax(0, 1fr); }
  .diagram__img { order: -1; width: min(100%, 420px); margin-inline: auto; }
  .diagram__list, .diagram__list--right { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
  .diagram__list li { margin: 0 !important; }
  .diagram__list li::after { content: none; }
  .addons__list { justify-content: flex-start; }
  .p-tabs ul { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .u-hero { grid-template-columns: minmax(0, 1fr); }
  .u-hero__img { aspect-ratio: 16 / 10; }
  .p-icons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fb--row .fb__list, .p-icon4 { grid-template-columns: minmax(0, 1fr); }
  .p-spec__table th { width: auto; white-space: normal; }
  .p-spec__table tr:not(.is-group) { display: grid; }
  .p-spec__table th, .p-spec__table td { display: block; }
  .p-spec__table tr:not(.is-group) th:not([colspan]) { padding-bottom: 0; }
  .p-spec__table tr:not(.is-group) td { padding-top: 2px; }
  .dl__inner { flex-direction: column; align-items: flex-start; }
  .dl__pdf svg { display: none; }
  .addons__list li { flex: 1 1 100%; }
  .addon { min-height: 0; }
  .addon__go { margin-top: 24px; }
  .p-media__btn { float: none; }
}

/* long Armenian/Russian words must wrap on phones */
.p-title, .fb__title, .p-spec__title, .p-diagram__title, .p-media__title, .u-hero__title, .addons__title, .dl__title, .dl__name, .p-tabs a { overflow-wrap: anywhere; }

/* circular diagram animation: JS adds .anim-ready, then .is-in when the diagram is in view; labels reveal one by one, alternating left and right (--order set in main.js) */
.diagram.anim-ready .diagram__img { opacity: 0; transform: scale(.88); transition: opacity .9s ease, transform 1.1s cubic-bezier(.2,.7,.2,1); }
.diagram.anim-ready .diagram__list li { opacity: 0; transition: opacity .6s ease, transform .7s cubic-bezier(.2,.7,.2,1), border-color .25s ease, background-color .25s ease; }
.diagram.anim-ready .diagram__list--left li { transform: translateX(-36px); }
.diagram.anim-ready .diagram__list--right li { transform: translateX(36px); }
.diagram.anim-ready .diagram__list li::after { transform: scale(0); transition: transform .45s cubic-bezier(.34,1.56,.64,1); }
.diagram.is-in .diagram__img { opacity: 1; transform: none; }
.diagram.is-in .diagram__list li { opacity: 1; transform: none; }
.diagram.is-in .diagram__list li::after { transform: scale(1); }
.diagram.is-in .diagram__list li { transition-delay: calc(.3s + var(--order, 0) * .55s), calc(.3s + var(--order, 0) * .55s), 0s, 0s; }
.diagram.is-in .diagram__list li::after { animation: diagram-dot 2.4s ease-out 3.8s infinite; transition-delay: calc(.3s + var(--order, 0) * .55s + .3s); }
.diagram__list li:hover { border-color: var(--green); background: #fff; }
.diagram__list li:hover::after { animation: none; }
@keyframes diagram-dot { 0% { box-shadow: 0 0 0 0 rgba(125,192,68,.55); } 70%, 100% { box-shadow: 0 0 0 14px rgba(125,192,68,0); } }
@media (prefers-reduced-motion: reduce) {
  .diagram.anim-ready .diagram__img, .diagram.anim-ready .diagram__list li, .diagram.anim-ready .diagram__list li::after { transition: none; opacity: 1; transform: none; }
  .diagram.is-in .diagram__list li::after { animation: none; }
}
