@font-face {
    font-family: 'vazirmatn';
    font-style: normal;
    font-weight: normal;
    font-display: swap;
    src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
}
@font-face {
    font-family: 'vazirmatn';
    font-style: normal;
    font-weight: bold;
    font-display: swap;
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
}

:root {
    --ink: #0F172A;
    --text: #64748B;
    --primary: #195DDE;
    --primary-2: #137FEC;
    --accent: #1D4ED8;
    --blue-mid: #3B82F6;
    --blue-soft: #86BDF4;
    --blue-tint: #EFF6FF;
    --line: #E2E8F0;
    --surface: #F8FAFC;
    --white: #FFFFFF;
    --page-bg: #F4F5F7;
    --shadow: 0 18px 45px rgba(15, 23, 42, .09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'vazirmatn', Tahoma, sans-serif; color: var(--text); background: #fff; line-height: 1.9; }
button, input, textarea, select { font-family: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; }
.container { width: min(1280px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 92px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--primary); font-size: 16px; font-weight: 600; line-height: 1; margin-bottom: 18px; }
.eyebrow::before { content: ''; width: 35px; height: 2px; background: var(--primary-2); flex-shrink: 0; }
.eyebrow.light { color: #fff; }
.eyebrow.light::before { background: var(--blue-soft); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.4; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(32px, 4.5vw, 52px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: 18px; }
/* Header — measured from the original: a sticky bar 106px tall, white at 80%
   over an 8px blur, the 114px logo at the right edge with the menu right next
   to it and the search pushed to the far left. */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.main-header-inner { min-height: 106px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-logo { width: 114px; height: 114px; object-fit: contain; flex-shrink: 0; margin-block: -4px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { color: var(--ink); font-size: 24px; font-weight: 700; }
.brand-text small { color: var(--text); font-size: 12px; letter-spacing: .7px; direction: ltr; text-align: right; }
.main-nav { flex: 0 1 auto; }
.nav-list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-list li { position: relative; }
.nav-list > li > a { display: flex; align-items: center; gap: 6px; padding: 13px 16px; color: var(--ink); font-size: 16px; font-weight: 900; line-height: 20px; white-space: nowrap; transition: color .2s ease; }
.nav-list > li > a:hover, .nav-list > li > a.active, .nav-list > li:hover > a { color: var(--primary-2); }
.sub-arrow { width: 10px; height: 18px; fill: var(--text); flex-shrink: 0; }
/* Dropdowns: white, blurred, items separated by a hairline. The first level
   drops 25px below the bar; deeper levels open to the side (left, RTL). */
.sub-menu { position: absolute; top: 100%; right: 0; min-width: 220px; list-style: none; margin: 25px 0 0; padding: 0; background: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 10px 30px rgba(15,23,42,.10); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease; z-index: 30; }
.sub-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -25px; height: 25px; }
.sub-menu .sub-menu { top: 0; right: 100%; margin: 0; }
/* Long third-level lists (flanges: 16 items) used to run off the bottom of a
   laptop screen with no way to reach the rest. Now every side list starts at
   the top of the dropdown — the items of the second level are static, so the
   list is placed against the dropdown, not against its own row — and scrolls
   inside itself when it is taller than the window. */
.sub-menu > li { position: static; }
.sub-menu .sub-menu { max-height: calc(100vh - 150px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.sub-menu .sub-menu::before { display: none; }
.nav-list li:hover > .sub-menu, .nav-list li:focus-within > .sub-menu { opacity: 1; visibility: visible; }
.sub-menu li:not(:last-child) { border-bottom: 1px solid var(--line); }
.sub-menu a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; color: var(--text); font-size: 15px; font-weight: 500; line-height: 1.4; white-space: nowrap; transition: color .2s ease; }
.sub-menu a:hover, .sub-menu li:hover > a { color: var(--primary-2); }
.sub-menu .sub-arrow { width: 7px; height: 14px; }
.menu-toggle { display: none; border: 0; background: var(--primary); padding: 10px; border-radius: 6px; margin-inline-start: auto; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 4px 0; }

.header-search { position: relative; flex-shrink: 0; margin-inline-start: auto; }
.search-form { display: flex; align-items: center; gap: 10px; }
.search-input { border: 1px solid #E1E5EB; background: #fff; border-radius: 6px; padding: 9px 15px; font-size: 14px; color: #000; width: 193px; height: 38px; outline: none; }
.search-input:focus { border-color: var(--primary); }
.search-submit { border: 0; background: var(--primary); color: #fff; border-radius: 6px; width: 44px; height: 34px; padding: 0; display: grid; place-items: center; transition: background .2s ease; }
.search-submit svg { width: 14px; height: 14px; fill: currentColor; }
.search-submit:hover { background: var(--accent); }
.search-dropdown { position: absolute; top: calc(100% + 8px); left: 0; width: 340px; max-width: 90vw; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); z-index: 40; padding: 10px; }
.search-dropdown-count { font-size: 11px; color: var(--text); padding: 4px 8px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.search-dropdown-list { max-height: 420px; overflow-y: auto; }
.search-dropdown-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px; border-radius: 8px; }
.search-dropdown-item:hover { background: var(--surface); }
.search-dropdown-item img { width: 40px; height: 40px; object-fit: contain; background: var(--surface); border-radius: 6px; flex-shrink: 0; }
.search-dropdown-item strong { font-size: 12px; color: var(--ink); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-dropdown-item span { font-size: 10px; color: var(--text); display: block; }
.search-dropdown-item span.model { direction: ltr; text-align: right; }
.search-dropdown-item span.excerpt { direction: rtl; text-align: right; font-size: 11px; margin-top: 3px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-dropdown-empty { padding: 14px 8px; font-size: 12px; color: var(--text); text-align: center; }
.search-dropdown-more { display: block; text-align: center; padding: 10px; margin-top: 6px; border-top: 1px solid var(--line); color: var(--primary); font-size: 12px; font-weight: 600; }
@media (max-width: 980px) {
    /* .main-header-inner is a nowrap flex row and .header-search is flex-shrink:0,
       so "width:100%" did not move the search box onto its own line — it widened
       the row past the screen (554px inside a 375px viewport) and every section
       below inherited that width. Wrapping is what puts it on its own line. */
    .main-header-inner { flex-wrap: wrap; }
    .header-search { order: 3; flex: 1 0 100%; min-width: 0; margin-top: 10px; }
    .search-form { min-width: 0; }
    .search-input { width: 100%; min-width: 0; }
    .search-dropdown { width: 100%; left: 0; right: 0; }
}

/* ---------- Hero ---------- */
.hero { min-height: 620px; position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.hero-slides { position: relative; min-height: 620px; }
.hero-slide { min-height: 620px; position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; pointer-events: none; transition: opacity 1s ease; background-image: var(--slide-image); background-size: cover; background-position: center; }
.hero-slide.is-active { opacity: 1; pointer-events: auto; z-index: 1; }
.hero-content { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; }
.hero-copy { max-width: 650px; }
.hero-kicker { color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 1.2px; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.hero h1, .hero-slide h2 { color: #fff; margin: 16px 0; max-width: 680px; font-size: 46px; line-height: 1.35; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.hero-copy p { max-width: 590px; color: #fff; font-size: 17px; text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.hero-visual { height: 330px; display: grid; place-items: center; position: relative; }
.visual-ring { position: absolute; border: 1px solid rgba(134,189,244,.4); border-radius: 50%; }
.visual-ring-one { width: 260px; height: 260px; animation: pulse 4s infinite; }
.visual-ring-two { width: 180px; height: 180px; border-color: rgba(59,130,246,.5); }
.visual-core { width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue-mid), var(--primary)); color: #fff; font-size: 28px; font-weight: 700; box-shadow: 0 0 0 18px rgba(19,127,236,.1), 0 0 60px rgba(19,127,236,.45); }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.08); opacity: .25; } }
/* z-index 2 because .hero-slide.is-active raises itself to 1 and would otherwise
   paint over the arrows and dots; left/right 0 so the .container centring on this
   same element has a box to centre inside. */
.hero-controls { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 2; display: flex; justify-content: center; align-items: center; gap: 15px; }
.hero-arrow { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.4); background: rgba(15,23,42,.35); color: #fff; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.hero-arrow:hover { background: rgba(19,127,236,.75); border-color: rgba(255,255,255,.75); }
.hero-dot { cursor: pointer; }
.hero-dots { display: flex; gap: 8px; }
.hero-dot { width: 8px; height: 8px; border: 0; border-radius: 50%; background: rgba(255,255,255,.45); padding: 0; }
.hero-dot.is-active { background: var(--primary-2); width: 22px; border-radius: 10px; }

.section-heading { margin-bottom: 38px; }
.section-heading-center { text-align: center; max-width: 700px; margin-inline: auto; }
.section-heading h2 { margin-bottom: 18px; font-size: 30px; font-weight: 600; line-height: 1.3; }
.section-heading p { color: var(--text); font-size: 18px; font-weight: 600; margin-bottom: 0; }
.about-copy h2 { font-size: 36px; font-weight: 600; line-height: 1.35; }
.services-section { background: var(--surface); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.service-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); padding: 30px; border-radius: 16px; transition: .25s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.service-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-tint); color: var(--primary); font-size: 24px; margin-bottom: 18px; }
.service-icon img { width: 34px; height: 34px; object-fit: contain; }
.service-card h3 { margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.service-card p { color: var(--text); font-size: 13px; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.service-card a, .text-link { color: var(--primary); font-size: 12px; font-weight: 600; margin-top: auto; }
.service-card a span, .text-link span { margin-inline-start: 5px; }

.about-preview { background: #fff; }
.about-preview-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 70px; }
.about-visual { min-height: 430px; border-radius: 12px; background: linear-gradient(135deg, var(--ink), var(--primary)); position: relative; overflow: hidden; }
.about-visual-image { position: absolute; inset: 0; opacity: .3; background: radial-gradient(circle at 70% 30%, var(--blue-soft) 0, transparent 28%), linear-gradient(135deg, var(--blue-mid), var(--ink)); }
.about-visual-image:after { content: ""; position: absolute; width: 240px; height: 240px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; right: -70px; top: -70px; box-shadow: 0 0 0 35px rgba(255,255,255,.06), 0 0 0 70px rgba(255,255,255,.04); }
/* The photo fills the rounded square and is cropped by it — object-fit keeps
   the aspect ratio and overflow:hidden on .about-visual hides the rest, so an
   image of any proportion sits in the shape without stretching. */
.about-visual-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* With a photo behind it the decorative layer becomes a light scrim: dark
   enough at the bottom for the white "15+" badge to stay readable, light
   enough that the photograph is still the thing you see. */
.about-visual.has-photo .about-visual-photo { z-index: 1; }
/* With a photo the decorative layer (gradient and ring) is switched off: the
   original shows the photograph clean, and the white badge reads on its own. */
.about-visual.has-photo .about-visual-image { display: none; }
.experience-badge { z-index: 3; position: absolute; left: 30px; bottom: 30px; background: #fff; color: var(--ink); padding: 18px 22px; border-radius: 14px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); }
.experience-badge strong { font-size: 34px; color: var(--primary); line-height: 1; }
.experience-badge span { font-size: 11px; line-height: 1.5; }
.check-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 22px 0 26px; color: var(--ink); font-size: 13px; font-weight: 600; }
.check-list li:before { content: "✓"; color: var(--primary); margin-inline-end: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 28px; border-radius: 8px; font-size: 16px; font-weight: 500; line-height: 1; border: 1px solid transparent; transition: background-color .3s ease, border-color .3s ease, color .3s ease, transform .3s ease; }
.button:hover { transform: translateY(-8px); }
.button-primary { background: var(--primary-2); border-color: var(--primary-2); color: #fff; box-shadow: 0 5px 15px rgba(59,130,246,.2); }
.button-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.button-outline { border-color: var(--primary-2); color: var(--primary-2); background: #fff; box-shadow: 0 5px 15px rgba(59,130,246,.2); }
.button-outline:hover { background: var(--primary-2); color: #fff; }
.button-light { background: #fff; border-color: #fff; color: var(--primary-2); box-shadow: 0 5px 15px rgba(15,23,42,.12); }
.button-light:hover { background: var(--blue-tint); border-color: var(--blue-tint); }
.button-sm { font-size: 15px; padding: 14px 28px; }
/* The original's chevron (Font Awesome angle-left), drawn from an inline SVG
   mask so it follows the text colour and needs no icon font. */
.button-arrow::after { content: ''; width: 16px; height: 16px; flex-shrink: 0; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 512'%3E%3Cpath d='M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 512'%3E%3Cpath d='M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z'/%3E%3C/svg%3E") center / contain no-repeat; }
.center-action { text-align: center; margin-top: 44px; }
.products-section { background: var(--surface); }
.product-filter-bar { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 26px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.product-filter-field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink); min-width: 220px; }
.product-filter-field select { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 12px; color: var(--ink); background: #fff; outline: none; }
.product-filter-field select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(25,93,222,.1); }
.product-filter-empty { text-align: center; padding: 40px 20px; color: var(--text); font-size: 13px; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.product-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; transition: .25s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-image { display: block; height: 190px; background: var(--white); flex-shrink: 0; }
.product-image img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.product-placeholder, .blog-placeholder { height: 100%; display: grid; place-items: center; color: var(--primary); background: var(--blue-tint); font-weight: 700; font-size: 28px; }
.product-placeholder.large { min-height: 390px; border-radius: 18px; font-size: 55px; }
.product-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.product-category { display: block; color: var(--primary); font-size: 20px; font-weight: 600; margin-bottom: 7px; direction: ltr; text-align: right; }
.product-card h3 { margin-bottom: 8px; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card h3 a:hover { color: var(--primary); }
.product-card p { color: var(--text); font-size: 11px; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .text-link { margin-top: auto; }
/* Featured product card — the original's: white, 12px corners, 15px inside,
   a faint blue glow; a 250px picture, the category in blue over a blue
   hairline, the product name in dark semibold, and a centred button. On hover
   it lifts and grows a little, as the original's custom CSS does. */
.featured-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; align-items: stretch; }
.featured-card { display: flex; flex-direction: column; align-items: stretch; gap: 15px; padding: 15px; background: #fff; border-radius: 12px; box-shadow: 0 0 10px rgba(80,131,228,.19); overflow: hidden; transition: transform .3s ease-out, box-shadow .3s ease-out; }
.featured-card:hover { transform: translateY(-8px) scale(1.03); box-shadow: 0 10px 25px rgba(0,0,0,.25); }
.featured-card-image { display: flex; align-items: center; justify-content: center; height: 270px; padding: 10px; }
.featured-card-image img { max-width: 100%; max-height: 250px; width: auto; height: auto; object-fit: contain; }
.featured-card-image .product-placeholder { width: 100%; border-radius: 8px; }
.featured-card-title { margin: 0; padding: 5px; border-bottom: 1px solid var(--primary); color: var(--accent); font-size: 20px; font-weight: 700; line-height: 25px; text-align: center; }
.featured-card-desc { margin: 0; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 25px; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 50px; }
.featured-card .button { align-self: center; margin-top: auto; }
.stats-band { background: var(--ink); color: #fff; padding: 36px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-item { display: flex; flex-direction: column; }
.stat-item strong { color: var(--blue-soft); font-size: 30px; line-height: 1.2; }
.stat-item span { font-size: 11px; color: #cbd5e1; }
.customers-section { background: #fff; }
/* Client logos — the original's image carousel: no frame, no background,
   six in view, pale chevrons at the sides and a row of small bullets. */
.logo-carousel { position: relative; padding: 0 40px; }
.logo-carousel-viewport { overflow: hidden; }
.logo-carousel-track { display: flex; transition: transform .5s ease; will-change: transform; }
.logo-carousel-track.no-anim { transition: none; }
.logo-carousel-slide { flex: 0 0 calc(100% / var(--per-view, 6)); display: grid; place-items: center; padding: 4px 10px; }
.logo-carousel-slide img { width: 150px; height: 150px; max-width: 100%; object-fit: contain; }
.logo-carousel-arrow { position: absolute; top: calc(50% - 16px); transform: translateY(-50%); width: 25px; height: 25px; padding: 0; border: 0; background: none; color: rgba(237,237,237,.9); cursor: pointer; }
.logo-carousel-arrow svg { width: 25px; height: 25px; fill: currentColor; }
.logo-carousel-arrow:hover { color: #c9c9c9; }
.logo-carousel-prev { right: 0; }
.logo-carousel-next { left: 0; }
.logo-carousel-dots { display: flex; justify-content: center; margin-top: 18px; }
.logo-carousel-dots button { width: 6px; height: 6px; margin: 0 6px; padding: 0; border: 0; border-radius: 50%; background: #000; opacity: .2; cursor: pointer; }
.logo-carousel-dots button.is-active { opacity: 1; }
.cta-band { background: linear-gradient(110deg, var(--primary), var(--accent)); color: #fff; padding: 42px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.cta-inner h2 { margin: 0; font-size: 25px; color: #fff; }

/* Footer — one blue band as on the original: about text, quick links with
   white bullets, contact lines with white icons, then a hairline and the
   copyright. */
.site-footer { background: var(--primary-2); color: #fff; padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; padding: 10px; }
.footer-about p { margin: 0 0 0 60px; color: #fff; font-size: 14px; line-height: 1.8; text-align: justify; }
.footer-column h3 { color: #fff; font-size: 18px; font-weight: 600; line-height: 1; margin: 0 0 30px; }
.footer-column ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; font-size: 14px; line-height: 21px; }
.footer-links li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; flex-shrink: 0; }
.footer-contact li { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 14px; line-height: 21px; }
.footer-contact svg { width: 20px; height: 20px; fill: #fff; flex-shrink: 0; }
.site-footer a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 10px; padding: 30px 5px 10px; color: var(--surface); font-size: 14px; font-weight: 600; line-height: 1; }

.page-hero { background: linear-gradient(110deg, var(--ink), var(--primary)); color: #fff; padding: 72px 0; }
.page-hero-inner { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.page-hero h1 { margin: 8px 0; font-size: 42px; color: #fff; }
.page-hero p { color: #cbd5e1; margin: 0; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 11px; color: #cbd5e1; white-space: nowrap; flex-wrap: wrap; }
.breadcrumb a:hover { color: #fff; }
/* Products page — measured from the original: a 92px #137FEC band with the
   title, then full-width picture tiles three to a row, 450px tall, 2px white
   seams, a 50% black veil that lifts on hover while the tile grows 10%. */
.title-band { background: var(--primary-2); min-height: 92px; display: flex; align-items: center; }
.title-band h1 { margin: 0; color: #fff; font-size: 32px; font-weight: 600; line-height: 1.3; }
.category-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: #fff; overflow: hidden; }
.category-tile { position: relative; height: 450px; display: flex; align-items: center; justify-content: center; padding: 10px; overflow: hidden; background: var(--ink); transition: transform .4s ease; }
.category-tile-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.category-tile::before { content: ''; position: absolute; inset: 0; z-index: 1; background: rgba(0,0,0,.5); transition: background .3s ease; }
.category-tile:hover { transform: scale(1.1); z-index: 3; }
.category-tile:hover::before { background: rgba(0,0,0,.1); }
/* A lone tile on the last row sits in the left column, as on the original. */
.category-tile:last-child:nth-child(3n+1) { grid-column: 3; }
.category-tile.no-image { background: linear-gradient(135deg, var(--ink), var(--primary)); }
.category-tile h2 { position: relative; z-index: 2; margin: 0; color: #fff; font-size: 20px; font-weight: 600; line-height: 1.4; text-align: center; }
@media (max-width: 1024px) { .category-tile { height: 250px; } }
@media (max-width: 767px) {
    .category-tiles { grid-template-columns: 1fr; }
    .category-tile:last-child:nth-child(3n+1) { grid-column: auto; }
    .category-tile { height: 220px; }
    .category-tile:hover { transform: none; }
    .title-band h1 { font-size: 26px; }
}
/* Category page listing card — the original's (JetEngine listing): three to
   a row with 20px between, a 1px #86BDF4 frame with 8px corners, the English
   name in #137FEC at the top, a 100px picture, the Persian name below. */
.section-tight { padding: 20px 0; }
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.listing-card { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--blue-soft); border-radius: 8px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.listing-card:hover { border-color: var(--primary-2); box-shadow: 0 5px 15px rgba(59,130,246,.15); }
.listing-card-en { min-height: 27px; color: var(--primary-2); font-size: 18px; font-weight: 400; line-height: 27px; direction: ltr; text-align: right; overflow-wrap: anywhere; }
/* The picture fills the card's width inside the card's own 20px padding, in a
   fixed-height box so the row of cards stays even; object-fit keeps tall DIN
   modules and wide boards whole instead of cropping them. */
.listing-card-image { flex: 0 0 auto; height: 240px; margin: 16px 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.listing-card-image img { display: block; width: 100%; height: 100%; max-height: 100%; object-fit: contain; }
.listing-card-fa { margin-top: auto; }
.listing-card-image .product-placeholder { width: 100px; height: 100px; border-radius: 8px; font-size: 22px; }
.listing-card-fa { color: var(--ink); font-size: 16px; font-weight: 400; line-height: 24px; }
@media (max-width: 980px) { .listing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .listing-grid { grid-template-columns: 1fr; } }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.category-card { display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: .25s ease; }
.category-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-4px); }
.category-card-icon { width: 52px; height: 52px; border-radius: 13px; background: var(--blue-tint); color: var(--primary); display: grid; place-items: center; font-weight: 700; margin-bottom: 18px; }
.category-card h2 { font-size: 20px; margin-bottom: 7px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.category-card p { color: var(--text); font-size: 12px; margin-bottom: 18px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.category-card > span { color: var(--primary); font-size: 11px; font-weight: 600; margin-top: auto; }
.category-card > span b { margin-inline-start: 5px; }
.subcategory-section { padding: 0 0 40px; }
.subcategory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.subcategory-card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 15px; overflow: hidden; text-decoration: none; transition: .25s ease; }
.subcategory-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.subcategory-card-image { display: block; height: 190px; overflow: hidden; background: var(--white); flex-shrink: 0; }
/* Product photos are shown whole (contain) — a valve or a flange cut at its
   edges reads as a broken picture. */
.subcategory-card-image img { width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: transform .4s ease; }
.subcategory-card-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--primary); background: var(--blue-tint); font-weight: 800; font-size: 22px; }
.subcategory-card:hover .subcategory-card-image img { transform: scale(1.04); }
.subcategory-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.subcategory-card-body strong { font-size: 15px; color: var(--ink); }
.subcategory-card-link { color: var(--primary); font-size: 11px; font-weight: 600; margin-top: auto; }
.empty-state { text-align: center; padding: 70px 20px; background: var(--surface); border-radius: 16px; }
.empty-state p { color: var(--text); }

/* ---------- Product detail ---------- */
.product-detail-hero { background: var(--surface); padding: 55px 0; }
/* The picture sits at the top of its column on every product — centring it
   against the text moved it up or down with the length of each title and
   feature list. While the text column scrolls, the picture stays in view
   under the sticky header. */
.product-detail-top { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.product-summary, .product-detail { display: block; }
.product-gallery { min-width: 0; position: sticky; top: 126px; }
.gallery-main { position: relative; height: 390px; background: #fff; border-radius: 18px; box-shadow: 0 10px 25px rgba(15,23,42,.06); overflow: hidden; }
.gallery-main img { position: absolute; inset: 25px; width: calc(100% - 50px); height: calc(100% - 50px); object-fit: contain; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumb { width: 70px; height: 70px; border: 2px solid transparent; background: #fff; border-radius: 9px; padding: 4px; }
.gallery-thumb.is-active { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-summary { padding: 10px 0 10px 30px; }
.product-summary .breadcrumb { margin-bottom: 24px; }
.product-model { display: inline-block; padding: 5px 10px; border-radius: 20px; background: var(--blue-tint); color: var(--primary); font-size: 11px; font-weight: 600; margin-bottom: 12px; direction: ltr; }
.product-brand { display: inline-block; padding: 5px 10px; border-radius: 20px; background: var(--surface); color: var(--text); font-size: 11px; font-weight: 600; margin-bottom: 12px; margin-inline-start: 6px; }
.product-summary h1 { font-size: clamp(26px, 4vw, 40px); margin-bottom: 12px; }
.product-lede { color: var(--text); font-size: 15px; }
.product-meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--text); font-size: 11.5px; margin: 20px 0; }
.product-meta span strong { color: var(--ink); }
.product-features-list { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 8px; }
.product-features-list li { font-size: 12.5px; display: flex; gap: 8px; color: var(--ink); }
.product-features-list li::before { content: '›'; color: var(--primary); font-weight: 700; }

.product-content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 55px; }
.rich-text { color: var(--text); font-size: 14px; }

/* ---------- Product tabs ---------- */
.product-tabs { margin-top: 45px; }
.product-tab-nav { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 26px; flex-wrap: wrap; }
.product-tab-nav button { padding: 12px 18px; font-size: 12.5px; font-weight: 600; color: var(--text); border: 0; background: transparent; border-bottom: 2px solid transparent; }
.product-tab-nav button.active, .product-tab-nav button:hover { color: var(--primary); border-color: var(--primary); }
.product-tab-panel { display: none; }
.product-tab-panel.active { display: block; }
.spec-group { margin-bottom: 25px; }
.spec-group h3 { color: var(--primary); background: var(--blue-tint); padding: 10px 14px; border-radius: 7px; font-size: 14px; }
.spec-group dl { margin: 0; }
.spec-group dl div { display: grid; grid-template-columns: 220px 1fr; gap: 15px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.spec-group dt { color: var(--ink); font-weight: 600; font-size: 12px; }
.spec-group dd { margin: 0; color: var(--text); font-size: 12px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { padding: 11px; border-bottom: 1px solid var(--line); text-align: right; }
th { color: var(--ink); background: var(--surface); }
.documents ul { list-style: none; padding: 0; margin: 0; }
.documents li { border-bottom: 1px solid var(--line); }
.documents a { display: flex; justify-content: space-between; padding: 13px 0; color: var(--primary); font-size: 12px; font-weight: 600; }
.dimension-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.dimension-gallery figure { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.dimension-gallery img { width: 100%; height: 220px; object-fit: contain; background: #fff; }
.dimension-gallery figcaption { padding: 8px 12px; font-size: 11px; color: var(--text); }
.tab-empty { color: var(--text); font-size: 13px; padding: 20px 0; }

.product-aside { display: flex; flex-direction: column; gap: 20px; }
.aside-box { background: var(--surface); border-radius: 15px; padding: 22px; }
.aside-box h3 { margin-bottom: 8px; }
.aside-box p { color: var(--text); font-size: 12px; }
.aside-box .button { width: 100%; margin-top: 12px; }
.aside-product { display: flex; flex-direction: column; gap: 3px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.aside-product span { color: var(--primary); font-size: 10px; direction: ltr; text-align: right; }
.aside-product strong { color: var(--ink); }

.blog-layout, .article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 50px; align-items: start; }
.blog-list { display: flex; flex-direction: column; gap: 24px; }
.blog-card { display: grid; grid-template-columns: 230px 1fr; gap: 22px; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.blog-image { height: 170px; border-radius: 12px; overflow: hidden; background: var(--surface); }
.blog-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-placeholder { font-size: 24px; }
.blog-card-body h2 { font-size: 20px; margin: 8px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-body h2 a:hover { color: var(--primary); }
.blog-card-body p { color: var(--text); font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-meta { display: flex; gap: 12px; color: var(--primary); font-size: 10px; }
.sidebar-box { background: var(--surface); border-radius: 14px; padding: 22px; margin-bottom: 20px; }
.sidebar-box h3 { margin-bottom: 12px; }
.sidebar-box p { color: var(--text); font-size: 12px; }
.sidebar-box ul { list-style: none; padding: 0; margin: 0; }
.sidebar-box li { border-bottom: 1px solid var(--line); padding: 8px 0; font-size: 12px; }
.sidebar-box li a:hover { color: var(--primary); }
.article-hero-image { width: 100%; max-height: 430px; object-fit: cover; border-radius: 16px; margin-bottom: 25px; }
.article-content .blog-meta { margin-bottom: 20px; }
.article-content .rich-text { font-size: 15px; line-height: 2; }
.recent-post { display: flex; flex-direction: column; gap: 3px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.recent-post span { color: var(--primary); font-size: 10px; }
.recent-post strong { color: var(--ink); font-size: 12px; line-height: 1.6; }

.about-page-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 65px; align-items: center; }
.about-page p { color: var(--text); font-size: 14px; }
.about-page-visual { min-height: 330px; border-radius: 22px; background: linear-gradient(135deg, var(--primary), var(--ink)); color: #fff; display: grid; place-items: center; text-align: center; }
.about-page-number { font-size: 80px; font-weight: 700; color: #fff; line-height: 1; }
.about-page-visual span { color: #cbd5e1; font-size: 13px; }
.values-section { background: var(--surface); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.values-grid article { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 28px; }
.values-grid article > span { color: var(--primary); font-size: 12px; font-weight: 700; }
.values-grid h3 { margin: 12px 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.values-grid p { color: var(--text); font-size: 12px; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Contact page — measured from the original: grey page, a 36px heading and
   18px subtitle over a hairline, then two white cards (15px corners, 1px
   #E2E8F0, faint shadow): details on the right (1/3), form on the left. */
.contact-page { background: var(--surface); padding: 60px 0 70px; }
.contact-head { padding: 10px 10px 20px; margin-bottom: 25px; border-bottom: 1px solid var(--line); }
.contact-head h1 { margin: 0 0 20px; color: var(--ink); font-size: 36px; font-weight: 600; line-height: 1.2; }
.contact-head p { margin: 0; color: var(--text); font-size: 18px; font-weight: 600; line-height: 27px; }
.contact-cards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 18px; align-items: stretch; padding: 0 10px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 0 15px rgba(0,0,0,.05); padding: 20px; }
.contact-card h3 { margin: 0 0 25px; color: var(--ink); font-size: 18px; font-weight: 600; line-height: 1.2; }
.contact-box { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }
.contact-box:last-child { margin-bottom: 0; }
.contact-box svg { width: 35px; height: 35px; fill: var(--blue-mid); flex-shrink: 0; }
.contact-box h4 { margin: 8px 0 5px; color: var(--ink); font-size: 16px; font-weight: 600; line-height: 19.2px; }
.contact-box p { margin: 0; color: var(--text); font-size: 14px; line-height: 21px; }
.contact-box a { color: inherit; direction: ltr; unicode-bidi: embed; }
.contact-card.contact-form { box-shadow: 0 0 15px rgba(0,0,0,.05); border-radius: 15px; padding: 20px; }
.contact-page .contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-bottom: 25px; }
.contact-page .contact-fields label { display: block; margin: 0; color: var(--ink); font-size: 14px; font-weight: 400; line-height: 14px; }
.contact-page .contact-fields label.wide { grid-column: 1 / -1; }
.contact-page .contact-fields input, .contact-page .contact-fields textarea { display: block; width: 100%; margin-top: 10px; height: 40px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 15px; line-height: 21px; outline: none; }
.contact-page .contact-fields input[type=tel] { direction: ltr; text-align: right; }
.contact-page .contact-fields textarea { height: 117px; padding: 5px 14px; resize: vertical; }
.contact-page .contact-fields input::placeholder, .contact-page .contact-fields textarea::placeholder { color: var(--text); opacity: .8; }
.contact-page .contact-fields input:focus, .contact-page .contact-fields textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(25,93,222,.1); }
.contact-page .contact-fields input:user-invalid, .contact-page .contact-fields textarea:user-invalid { border-color: #dc2626; }
.contact-submit { width: calc((100% - 75px) / 4); min-width: 160px; height: 40px; padding: 0 24px; border: 0; border-radius: 8px; background: var(--primary-2); color: #fff; font-size: 15px; font-weight: 500; transition: background .3s ease; }
.contact-submit:hover { background: var(--accent); }
@media (max-width: 980px) { .contact-cards { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .contact-page .contact-fields { grid-template-columns: 1fr; } .contact-head h1 { font-size: 30px; } .contact-submit { width: 100%; } }
.contact-section { background: var(--surface); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.contact-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.contact-item strong { display: block; color: var(--ink); font-size: 13px; margin-bottom: 4px; }
.contact-item p, .contact-item a { color: var(--text); font-size: 12px; margin: 0; }
.contact-hours { background: #fff; border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 4px; margin-top: 22px; }
.contact-hours span { color: var(--primary); font-size: 12px; }
.contact-form { background: #fff; border-radius: 18px; padding: 32px; box-shadow: var(--shadow); }
.contact-form h2 { margin-bottom: 22px; }
.contact-form label { display: block; color: var(--ink); font-size: 12px; font-weight: 600; margin-bottom: 16px; }
.contact-form label span { color: var(--accent); }
.contact-form input, .contact-form textarea { display: block; width: 100%; margin-top: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; outline: none; color: var(--ink); background: var(--surface); font-size: 12px; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(25,93,222,.1); }
.contact-form input:user-invalid, .contact-form textarea:user-invalid { border-color: #dc2626; }
.contact-form input:user-invalid:focus, .contact-form textarea:user-invalid:focus { box-shadow: 0 0 0 3px rgba(220,38,38,.12); }
.form-honeypot { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.site-alert { margin: 20px 0; padding: 13px 18px; border: 1px solid; border-radius: 10px; font-size: 13px; }
.site-alert-success { color: #0d6b48; border-color: #a9e0c9; background: #edfaf4; }
.site-alert-error { color: #a62b2b; border-color: #f0bcbc; background: #fff1f1; }
.site-alert-warning { color: #92650b; border-color: #f3d98b; background: #fff9eb; }
.site-alert-info { color: #1d4ed8; border-color: #bfdbfe; background: #eff6ff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.search-results { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.result-group h2 { border-bottom: 2px solid var(--primary); padding-bottom: 10px; font-size: 20px; }
.result-row { display: grid; grid-template-columns: 50px 1fr; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.result-row span { color: var(--primary); font-size: 10px; padding-top: 2px; }
.result-row-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.result-row strong { color: var(--ink); font-size: 13px; }
.result-row small { color: var(--text); font-size: 10px; }
.result-row-body p { margin: 0; color: var(--text); font-size: 12px; line-height: 1.7; }
.muted { color: var(--text); font-size: 12px; }
.not-found-section { min-height: 60vh; display: grid; place-items: center; text-align: center; background: var(--surface); }
.not-found-section p { color: var(--text); }

@media (max-width: 980px) {
    .main-header-inner { min-height: 84px; position: relative; }
    .brand-logo { width: 80px; height: 80px; margin-block: 0; }
    .brand-text strong { font-size: 20px; }
    .menu-toggle { display: block; }
    .main-nav { display: none; position: absolute; top: 100%; right: 0; left: 0; max-height: 70vh; overflow-y: auto; background: #fff; box-shadow: var(--shadow); border-radius: 12px; padding: 10px 15px; z-index: 40; }
    .main-nav.is-open { display: block; }
    .nav-list { display: block; }
    .nav-list > li { border-bottom: 1px solid var(--line); }
    .nav-list > li > a { padding: 12px 5px; font-size: 16px; }
    /* On a phone the dropdowns are simply listed, indented under their parent. */
    .sub-menu, .sub-menu .sub-menu { position: static; opacity: 1; visibility: visible; margin: 0 0 8px; min-width: 0; max-height: none; overflow: visible; box-shadow: none; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; padding-inline-start: 14px; }
    .sub-menu::before { display: none; }
    .sub-menu li:not(:last-child) { border-bottom: 0; }
    .sub-menu a { padding: 6px 4px; font-size: 14px; white-space: normal; justify-content: flex-start; }
    /* Accordion: a branch stays folded until it is tapped open (main.js). */
    .nav-list li.has-children > .sub-menu { display: none; }
    .nav-list li.has-children.is-open > .sub-menu { display: block; }
    .sub-arrow { transition: transform .2s ease; }
    .sub-menu .sub-arrow { transform: rotate(-90deg); }
    .nav-list li.has-children.is-open > a > .sub-arrow { transform: rotate(180deg); }
    .sub-menu li.has-children.is-open > a > .sub-arrow { transform: rotate(90deg); }
    .featured-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-about p { margin: 0; }
    .hero-content { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .services-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
    .about-preview-grid, .about-page-grid, .contact-grid { gap: 35px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .product-content-grid, .blog-layout, .article-layout { grid-template-columns: 1fr; }
    .product-aside { display: grid; grid-template-columns: repeat(2, 1fr); }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .subcategory-grid { grid-template-columns: repeat(2, 1fr); }
    .dimension-gallery { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .container { width: min(100% - 28px, 1280px); }
    .section { padding: 62px 0; }
    .brand-text strong { font-size: 17px; }
    .brand-logo { width: 64px; height: 64px; }
    .main-header-inner { gap: 15px; }
    .hero, .hero-slides, .hero-slide { min-height: 540px; }
    .hero-slide { background-position: 65% center; }
    .hero h1, .hero-slide h2 { font-size: 34px; }
    .hero-copy p { font-size: 14px; }
    .services-grid, .product-grid, .category-grid, .values-grid, .search-results { grid-template-columns: 1fr; }
    .subcategory-grid { grid-template-columns: 1fr; }
    .subcategory-card-image { height: 160px; }
    .about-preview-grid, .about-page-grid, .contact-grid { grid-template-columns: 1fr; }
    .about-visual { min-height: 300px; }
    .featured-grid { grid-template-columns: 1fr; }
    .logo-carousel { padding: 0 28px; }
    .about-copy h2 { font-size: 28px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { line-height: 1.6; }
    .page-hero { padding: 55px 0; }
    .page-hero-inner { align-items: flex-start; flex-direction: column; }
    .page-hero h1 { font-size: 34px; }
    .breadcrumb { flex-wrap: wrap; }
    .product-detail-top { grid-template-columns: 1fr; gap: 30px; }
    .product-gallery { position: static; }
    .product-summary { padding: 0; }
    .gallery-main { height: 280px; }
    .gallery-thumbs { overflow-x: auto; }
    .gallery-thumb { min-width: 60px; }
    .product-content-grid { gap: 35px; }
    .spec-group dl div { grid-template-columns: 1fr; gap: 2px; }
    .product-aside { grid-template-columns: 1fr; }
    .blog-card { grid-template-columns: 1fr; }
    .blog-image { height: 210px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .contact-form { padding: 22px; }
    .cta-inner { align-items: flex-start; flex-direction: column; }
    .product-tab-nav { overflow-x: auto; flex-wrap: nowrap; }
    .product-filter-bar { flex-direction: column; gap: 12px; padding: 14px 16px; }
    .product-filter-field { min-width: 0; width: 100%; }
    .product-filter-field select { width: 100%; }
}

/* ---------- About page — measured from the original (Elementor page 40) ---------- */
.about2-intro { padding: 60px 0; background: #fff; }
.about2-intro-grid { display: flex; gap: 40px; align-items: stretch; }
.about2-intro-grid > * { flex: 1 1 0; min-width: 0; }
.about2-photo { min-height: 400px; border-radius: 16px; padding: 20px; background-position: center; background-size: cover; background-repeat: no-repeat; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; }
.about2-badge { width: 225px; display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 10px; padding: 20px; }
.about2-badge strong { color: var(--primary-2); font-size: 36px; font-weight: 600; line-height: 1; direction: ltr; }
.about2-badge span { display: flex; flex-direction: column; gap: 5px; }
.about2-badge b { color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.2; }
.about2-badge small { color: var(--text); font-size: 12px; line-height: 1.2; }
.about2-copy { display: flex; flex-direction: column; justify-content: center; }
.about2-copy .eyebrow { margin-bottom: 30px; }
.about2-copy h1 { margin: 0 0 20px; color: var(--ink); font-size: 30px; font-weight: 600; line-height: 1.4; }
.about2-copy p { margin: 0 0 16px; color: var(--text); font-size: 16px; line-height: 1.7; text-align: justify; }
.about2-values { padding: 60px 0; background: var(--surface); }
.about2-values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.about2-card { background: #fff; border: 1px solid var(--blue-soft); border-radius: 15px; padding: 25px; transition: border-color .3s ease, box-shadow .3s ease; }
.about2-card:hover { border-color: var(--blue-soft); box-shadow: 0 5px 15px rgba(134,189,244,.35); }
.about2-card img { width: 80px; height: 80px; object-fit: contain; margin-bottom: 15px; }
.about2-card h2 { margin: 0 0 12px; color: var(--ink); font-size: 20px; font-weight: 600; line-height: 1.4; }
.about2-card p { margin: 0; color: var(--text); font-size: 16px; line-height: 1.7; }
.about2-cta { padding: 60px 0; background: #fff; }
.about2-cta-box { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 35px; padding: 40px 20px; border-radius: 15px; text-align: center; background: linear-gradient(252deg, rgba(134,189,244,.08), #fff); }
.about2-cta-box h2 { margin: 0; color: var(--ink); font-size: 30px; font-weight: 600; line-height: 1.4; }
.about2-cta-box p { margin: 0; max-width: 650px; color: var(--text); font-size: 18px; line-height: 1.5; }

/* ---------- News archive — the original's "cards" skin (template 152) ---------- */
.news-archive { padding: 40px 0 80px; background: #fff; }
.news-archive-title { margin: 0 0 40px; text-align: center; color: var(--ink); font-size: 32px; font-weight: 600; line-height: 1.3; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px 30px; }
.news-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 0 10px rgba(0,0,0,.15); transition: box-shadow .25s ease; }
.news-card:hover { box-shadow: 0 0 30px rgba(0,0,0,.15); }
.news-card-image { position: relative; display: block; padding-bottom: 56%; background: var(--surface); overflow: hidden; }
.news-card-image img, .news-card-image .blog-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.news-card-badge { position: absolute; top: 15px; right: 15px; z-index: 1; background: var(--primary-2); color: #fff; font-size: 10px; font-weight: 500; line-height: 1; padding: 6px 12px; border-radius: 999px; }
.news-card-title { margin: 20px 30px 15px; font-size: 21px; font-weight: 600; line-height: 1.5; }
.news-card-title a { color: var(--primary); }
.news-card-title a:hover { color: var(--accent); }
.news-card-meta { margin-top: auto; padding: 15px 30px; border-top: 1px solid #eaeaea; color: #adadad; font-size: 12px; line-height: 1.3; }

/* ---------- News post — the original's single-post template (142) ---------- */
.news-post { padding: 10px 0 40px; background: #fff; }
.news-post-image { margin: 0 10px 30px; }
.news-post-image img { width: 100%; height: 450px; object-fit: cover; border-radius: 20px; box-shadow: 0 5px 15px rgba(0,0,0,.1); filter: brightness(50%); transition: filter .5s ease; }
.news-post-row { display: flex; gap: 20px; align-items: flex-start; }
.news-post-body { flex: 1 1 0; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.news-post-body h1 { margin: 0 0 14px; color: var(--ink); font-size: 32px; font-weight: 600; line-height: 1.4; }
.news-post-date { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 14px; }
.news-post-date svg { width: 14px; height: 14px; fill: var(--blue-soft); flex-shrink: 0; }
.news-post-rule { border: 0; border-top: 1px solid var(--line); margin: 15px 0; }
.news-post-content { color: var(--text); font-size: 16px; line-height: 1.8; text-align: right; }
.news-post-content h2, .news-post-content h3, .news-post-content h4 { color: var(--ink); margin: 22px 0 10px; line-height: 1.5; scroll-margin-top: 130px; }
.news-post-content h3 { font-size: 20px; }
.news-post-content p { margin: 0 0 14px; }
.news-post-content ul, .news-post-content ol { margin: 0 0 14px; padding-inline-start: 22px; }
.news-post-content li { margin-bottom: 8px; }
.news-post-content strong { color: var(--ink); }
.news-post-toc { flex: 0 0 40%; max-width: 40%; position: sticky; top: 130px; }
.news-toc { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.news-toc h2 { margin: 0 0 12px; color: var(--ink); font-size: 18px; font-weight: 600; }
.news-toc ul { list-style: none; margin: 0; padding: 0; }
.news-toc li { position: relative; padding-inline-start: 16px; margin: 6px 0; font-size: 16px; line-height: 1.6; }
.news-toc li::before { content: ''; position: absolute; right: 0; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--text); }
.news-toc li.toc-level-3 { margin-inline-start: 14px; }
.news-toc li.toc-level-4 { margin-inline-start: 28px; }
.news-toc a { color: var(--text); }
.news-toc a:hover { color: var(--primary-2); }
.news-toc p { margin: 0; color: var(--text); font-size: 14px; }

@media (max-width: 1024px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .news-post-row { flex-direction: column-reverse; }
    .news-post-toc { position: static; flex-basis: auto; max-width: none; width: 100%; }
    .news-post-image img { height: 350px; }
}
@media (max-width: 767px) {
    .about2-intro { padding: 30px 0; }
    .about2-intro-grid { flex-direction: column; }
    .about2-photo { min-height: 300px; }
    .about2-badge { width: 200px; padding: 20px 10px; }
    .about2-copy h1 { font-size: 26px; }
    .about2-values-grid { grid-template-columns: 1fr; }
    .about2-cta-box h2 { font-size: 24px; }
    .about2-cta-box p { font-size: 16px; }
    .news-grid { grid-template-columns: 1fr; }
    .news-post-image { margin: 0 0 20px; }
    .news-post-image img { height: 300px; }
    .news-post-body h1 { font-size: 26px; }
}


/* ---------- Product filter (ProductFilter) ---------- */
.catalog.has-filter { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 30px; align-items: start; }
.catalog-main { min-width: 0; }
.pf { position: sticky; top: 126px; max-height: calc(100vh - 146px); overflow-y: auto; scrollbar-width: thin; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.pf-toggle { display: none; }
.pf.pf-hidden { display: none !important; }
.catalog-main .product-filter-bar { background: #fff; margin-bottom: 20px; }
.pf-body { padding: 18px; }
.pf-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.pf-head strong { color: var(--ink); font-size: 16px; font-weight: 700; }
.pf-reset { color: var(--primary-2); font-size: 13px; }
.pf-reset:hover { text-decoration: underline; }
.pf-group { display: block; border: 0; margin: 0; padding: 14px 0 6px; border-bottom: 1px solid var(--line); min-width: 0; }
.pf-group:last-of-type { border-bottom: 0; }
.pf-title { display: block; padding: 0; margin: 0 0 8px; color: var(--ink); font-size: 13px; font-weight: 700; }
.pf-select select { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--surface); color: var(--ink); font-size: 13px; outline: none; }
.pf-select select:focus { border-color: var(--primary); }
.pf-check { display: flex; align-items: center; gap: 8px; padding: 5px 0; color: var(--text); font-size: 13px; line-height: 1.5; cursor: pointer; }
.pf-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--primary-2); flex-shrink: 0; }
.pf-check .pf-label { flex: 1; min-width: 0; text-align: right; }
.pf-check .pf-count { color: #94a3b8; font-size: 12px; direction: ltr; }
.pf-check:hover .pf-label { color: var(--ink); }
.pf-check.is-empty { opacity: .45; cursor: default; }
.pf-apply { width: 100%; margin-top: 14px; }
.js-pf .pf-apply { display: none; }
.pf-summary { margin: 0 0 16px; color: var(--text); font-size: 13px; }
.pf-summary a { color: var(--primary-2); }
.catalog.has-filter .listing-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) {
    .catalog.has-filter .listing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
    .catalog.has-filter { grid-template-columns: 1fr; gap: 18px; }
    .pf { position: static; max-height: none; overflow: visible; }
    .pf-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 18px; border: 0; background: none; color: var(--ink); font-size: 15px; font-weight: 700; text-align: right; }
    .pf-toggle::after { content: '▾'; color: var(--text); transition: transform .2s ease; }
    .pf.is-open .pf-toggle::after { transform: rotate(180deg); }
    .pf-toggle-count { margin-inline-start: auto; margin-inline-end: 10px; color: var(--primary-2); font-size: 12px; font-weight: 600; }
    .pf-body { display: none; padding-top: 0; }
    .pf.is-open .pf-body { display: block; }
}
@media (max-width: 620px) {
    .catalog.has-filter .listing-grid { grid-template-columns: 1fr; }
    .listing-card-image { height: 220px; }
}

/* ---------- Product page: status and channels (as on gminternational.com) ---------- */
.product-facts { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 20px; }
.product-fact { flex: 1 1 180px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.product-fact-label { display: block; margin-bottom: 4px; color: var(--text); font-size: 12px; font-weight: 600; }
.product-fact-value { color: var(--ink); font-size: 22px; font-weight: 700; line-height: 1.3; }
.product-stage { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.7; }
.product-stage-active { background: #dcfce7; color: #166534; }
.product-stage-phase-out { background: #fef3c7; color: #92400e; }
.product-fact-note { margin-top: 8px; color: var(--text); font-size: 12px; line-height: 1.8; }
.product-fact-note p, .product-fact-note ul { margin: 0; }
.product-fact-note ul { padding-inline-start: 18px; }

/* Life-cycle dot on product cards — gminternational.com's "cerchioStatus":
   a 26px circle in the card's corner, green for ACTIVE. Orange for PHASE-OUT is
   our choice (GMI's own phase-out colour could not be seen: none of its listed
   products was in that stage). */
.listing-card { position: relative; }
.listing-card .listing-card-en { padding-inline-end: 36px; }
.stage-dot { display: inline-block; width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; }
.listing-card > .stage-dot { position: absolute; top: 20px; left: 20px; }
.stage-dot-active { background: #8cc63f; }
.stage-dot-phase-out { background: #f7931e; }
.pf-check .stage-dot { width: 12px; height: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
