/* ==========================================================================
   قالب HTML شرکت چاپ و صنعتی مقدم اصفهان
   RTL Persian Template — V1.0
   ========================================================================== */

/* ---------- Variables & Reset ---------- */
:root {
  --c-primary: #23235a;
  --c-primary-2: #2d2d70;
  --c-primary-dark: #191940;
  --c-navy-950: #12122b;
  --c-accent: #ff5a3c;
  --c-accent-dark: #e64527;
  --c-blue: #3f7fc1;
  --c-blue-dark: #2f66a3;
  --c-gold: #f5b942;
  --c-teal: #2bb3a3;
  --c-text: #26263a;
  --c-muted: #7a7a90;
  --c-line: #e8e9f2;
  --c-bg: #ffffff;
  --c-bg-alt: #f5f6fb;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(20, 20, 50, 0.06);
  --shadow-md: 0 10px 30px rgba(20, 20, 50, 0.10);
  --shadow-lg: 0 24px 60px rgba(20, 20, 50, 0.16);
  --container: 1200px;
  --tr: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
  text-align: right;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--tr); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; }

::selection { background: var(--c-accent); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--c-bg-alt); }
::-webkit-scrollbar-thumb { background: #b9bdd6; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--c-primary-2); }

/* ---------- Utilities ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.section { padding: 90px 0; }
.section--alt { background: var(--c-bg-alt); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head__title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  color: var(--c-primary);
  position: relative;
  display: inline-block;
  padding-bottom: 18px;
}
.section-head__title::before,
.section-head__title::after {
  content: '';
  position: absolute;
  bottom: 6px;
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: var(--c-accent);
}
.section-head__title::before { right: calc(100% + 12px); }
.section-head__title::after { left: calc(100% + 12px); }
.section-head__sub {
  color: var(--c-muted);
  font-size: 16.5px;
  margin-top: 6px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 32px;
  border-radius: 50px;
  font-size: 15.5px;
  font-weight: 600;
  transition: all var(--tr);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn--accent { background: var(--c-accent); color: #fff; box-shadow: 0 10px 24px rgba(255, 90, 60, 0.35); }
.btn--accent:hover { background: var(--c-accent-dark); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(255, 90, 60, 0.45); }
.btn--blue { background: var(--c-blue); color: #fff; box-shadow: 0 8px 20px rgba(63, 127, 193, 0.35); }
.btn--blue:hover { background: var(--c-blue-dark); transform: translateY(-3px); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.65); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--c-primary); border-color: #fff; }
.btn--light { background: #fff; color: var(--c-primary); }
.btn--light:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn--outline { border-color: var(--c-primary); color: var(--c-primary); }
.btn--outline:hover { background: var(--c-primary); color: #fff; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--c-primary-dark);
  color: #cfd1e8;
  font-size: 13.5px;
  position: relative;
  z-index: 60;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  gap: 16px;
}
.topbar__contact { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; color: #cfd1e8; }
.topbar__item svg { width: 15px; height: 15px; color: var(--c-gold); flex-shrink: 0; }
a.topbar__item:hover { color: #fff; }
.topbar__actions { display: flex; align-items: center; gap: 6px; }
.topbar__icon {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 8px;
  color: #cfd1e8;
  transition: all var(--tr);
}
.topbar__icon svg { width: 16px; height: 16px; }
.topbar__icon:hover { background: var(--c-accent); color: #fff; }

/* ---------- Header ---------- */
.header {
  background: linear-gradient(180deg, var(--c-primary) 0%, var(--c-primary-2) 100%);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 6px 24px rgba(18, 18, 43, 0.35);
}
.header__logo-row { display: flex; justify-content: center; padding: 16px 0 4px; overflow: hidden; max-height: 120px; transition: all var(--tr); }
.header.is-scrolled .header__logo-row { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; }
.header.is-scrolled .header__nav-row { padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand__badge {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: #fff;
  color: var(--c-primary);
  display: grid;
  place-items: center;
  font-size: 23px;
  font-weight: 900;
  position: relative;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25), 0 8px 20px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  line-height: 1;
  padding-bottom: 6px;
}
.brand__badge::after {
  content: '';
  position: absolute;
  bottom: 11px; left: 50%;
  transform: translateX(-50%);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-accent);
}
.brand__text { color: #fff; line-height: 1.5; }
.brand__text b { display: block; font-size: 21px; font-weight: 800; letter-spacing: -0.3px; }
.brand__text small { display: block; font-size: 10.5px; color: #aeb2d8; letter-spacing: 0.4px; }
.header__nav-row { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 4px 20px 12px; position: relative; }

/* Nav */
.nav__list { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #dfe1f5;
  font-size: 15.5px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 10px;
  position: relative;
  transition: all var(--tr);
}
.nav__link svg { width: 13px; height: 13px; transition: transform var(--tr); }
.nav__link:hover, .nav__link.is-active { color: #fff; background: rgba(255, 255, 255, 0.09); }
.nav__link.is-active::after {
  content: '';
  position: absolute;
  bottom: 2px; right: 50%;
  transform: translateX(50%);
  width: 22px; height: 3px;
  border-radius: 3px;
  background: var(--c-accent);
}

/* Dropdown */
.nav__item { position: relative; }
.nav__item:hover > .nav__link svg { transform: rotate(180deg); }
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 230px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all var(--tr);
  z-index: 40;
}
.dropdown::before { content: ''; position: absolute; top: -8px; right: 34px; border: 8px solid transparent; border-bottom-color: #fff; border-top: 0; }
.nav__item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--c-text);
  font-size: 14.5px;
  transition: all var(--tr);
}
.dropdown a svg { width: 15px; height: 15px; color: var(--c-blue); flex-shrink: 0; }
.dropdown a:hover { background: var(--c-bg-alt); color: var(--c-blue-dark); padding-right: 20px; }

/* Language switcher */
.lang { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); }
.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #dfe1f5;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: all var(--tr);
}
.lang__btn:hover, .lang.open .lang__btn { background: rgba(255, 255, 255, 0.1); color: #fff; }
.lang__btn svg { width: 14px; height: 14px; }
.lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 140px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--tr);
  z-index: 40;
}
.lang.open .lang__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang__menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--c-text);
}
.lang__menu a:hover { background: var(--c-bg-alt); }
.lang__menu a.is-active { color: var(--c-blue-dark); font-weight: 700; }
.lang__flag { width: 20px; height: 14px; border-radius: 3px; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  position: absolute;
  right: 16px;
  top: 0%;
  transform: translateY(-150%);
  z-index: 70;
}
.hamburger span { width: 26px; height: 3px; border-radius: 3px; background: #fff; transition: all var(--tr); }
.hamburger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Mobile Drawer ---------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 12, 30, 0.6);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--tr);
  z-index: 80;
}
.drawer-overlay.is-visible { opacity: 1; visibility: visible; }
.drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  height: 100dvh;
  background: var(--c-primary-dark);
  z-index: 90;
  transform: translateX(105%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
}
.drawer.is-open { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.drawer__head .brand__badge { width: 46px; height: 46px; font-size: 17px; padding-bottom: 4px; }
.drawer__head .brand__badge::after { bottom: 8px; width: 5px; height: 5px; }
.drawer__close { color: #fff; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.08); }
.drawer__close svg { width: 18px; height: 18px; }
.drawer__nav { flex: 1; overflow-y: auto; padding: 14px 12px; }
.drawer__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #dfe1f5;
  padding: 13px 14px;
  border-radius: 10px;
  font-size: 15.5px;
  margin-bottom: 3px;
}
.drawer__nav a:hover, .drawer__nav a.is-active { background: rgba(255, 255, 255, 0.08); color: #fff; }
.drawer__nav a svg { width: 15px; height: 15px; opacity: .7; }
.drawer__submenu { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.drawer__submenu a { font-size: 14px; padding-right: 30px; opacity: .9; }
.drawer__footer { padding: 18px 20px; border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; gap: 10px; }
.drawer__footer .topbar__icon { background: rgba(255, 255, 255, 0.1); }
.drawer__footer .topbar__icon:hover { background: var(--c-accent); }
/* ---------- Hero Slider ---------- */
.hero {
  position: relative;
  /* ارتفاع متناسب با نسبت بنر (~2.74:1) تا بنر کامل و پهن دیده شود */
  height: clamp(340px, 36.5vw, 620px);
  background: var(--c-navy-950);
  overflow: hidden;
}
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.08);
  transition: opacity 0.9s ease, transform 6s linear, visibility 0.9s;
  display: flex;
  align-items: center;
}
.hero__slide.is-active { opacity: 1; visibility: visible; transform: scale(1); z-index: 2; }
.hero__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  /* background: linear-gradient(105deg, rgba(18, 18, 43, 0.92) 0%, rgba(24, 24, 58, 0.78) 42%, rgba(24, 24, 58, 0.25) 100%); */
}
.hero__content { position: relative; z-index: 3; width: 100%; }
.hero__text { max-width: 620px; }
.hero__slide .hero__text > * {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.hero__slide.is-active .hero__text > * { opacity: 1; transform: translateY(0); }
.hero__slide.is-active .hero__text > *:nth-child(1) { transition-delay: 0.25s; }
.hero__slide.is-active .hero__text > *:nth-child(2) { transition-delay: 0.4s; }
.hero__slide.is-active .hero__text > *:nth-child(3) { transition-delay: 0.55s; }
.hero__slide.is-active .hero__text > *:nth-child(4) { transition-delay: 0.7s; }
.hero__tag {
  display: inline-block;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  padding: 6px 16px;
  color: #fff;
  font-family: 'Segoe UI', var(--font);
  font-size: 13px;
  letter-spacing: 1.5px;
  direction: ltr;
  margin-bottom: 22px;
  backdrop-filter: blur(2px);
}
.hero__title {
  color: #fff;
  font-size: clamp(28px, 4.6vw, 52px);
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: 18px;
}
.hero__title b { color: var(--c-gold); position: relative; }
.hero__desc {
  color: #d5d8ee;
  font-size: clamp(15px, 1.6vw, 17.5px);
  line-height: 2.1;
  margin-bottom: 34px;
  max-width: 540px;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__arrows { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.hero__arrow {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: rgba(18, 18, 43, 0.35);
  backdrop-filter: blur(4px);
  color: #fff;
  display: grid;
  place-items: center;
  transition: all var(--tr);
}
.hero__arrow svg { width: 20px; height: 20px; }
.hero__arrow:hover { background: var(--c-accent); border-color: var(--c-accent); box-shadow: 0 8px 22px rgba(255, 90, 60, 0.4); }
.hero__arrow--next { right: 26px; }
.hero__arrow--prev { left: 26px; }

.hero__dots {
  position: absolute;
  bottom: 26px; right: 50%;
  transform: translateX(50%);
  display: flex;
  gap: 9px;
  z-index: 5;
}
.hero__dot {
  width: 12px; height: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  transition: all var(--tr);
}
.hero__dot.is-active { width: 34px; background: var(--c-accent); }
.hero__scroll {
  position: absolute;
  bottom: 22px; left: 34px;
  z-index: 5;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 1px;
}
.hero__scroll span { writing-mode: vertical-rl; }
.hero__scroll i { width: 1.5px; height: 44px; background: linear-gradient(180deg, rgba(255,255,255,.7), transparent); display: block; animation: scrollPulse 1.8s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100% { opacity: .4; transform: scaleY(.7); } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------- Categories Strip ---------- */
.cats { padding: 80px 0 70px; background: var(--c-bg); }
.cats__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 18px;
}
.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 26px 10px 20px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: all var(--tr);
  cursor: pointer;
}
.cat-item:hover {
  border-color: var(--c-line);
  box-shadow: var(--shadow-md);
  transform: translateY(-8px);
  background: #fff;
}
.cat-item__icon {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--c-bg-alt);
  display: grid;
  place-items: center;
  transition: all var(--tr);
}
.cat-item__icon svg { width: 46px; height: 46px; transition: transform var(--tr); }
.cat-item:hover .cat-item__icon { background: #fff; box-shadow: 0 10px 24px rgba(35, 35, 90, 0.14); }
.cat-item:hover .cat-item__icon svg { transform: scale(1.12) rotate(-4deg); }
.cat-item__title { font-size: 14px; font-weight: 600; color: var(--c-text); line-height: 1.8; }

/* ---------- Big Category Cards ---------- */
.cat-cards { padding: 20px 0 90px; background: var(--c-bg); }
.cat-cards__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
}
.cat-card {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(160deg, var(--c-primary-2) 0%, var(--c-primary-dark) 100%);
  background-size: 100% 100%;
  overflow: hidden;
  padding: 34px 24px 0;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  transition: all var(--tr);
  isolation: isolate;
  border: 1px solid rgba(255,255,255,.06);
}
.cat-card:nth-child(even) { margin-top: 34px; }
.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 1l25 14.5v29L28 59 3 44.5v-29z' fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1.2'/%3E%3Cpath d='M28 49l25 14.5v29L28 107 3 92.5v-29z' fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1.2'/%3E%3C/svg%3E");
  opacity: 1;
  z-index: -1;
  transition: opacity var(--tr);
}
.cat-card::after {
  content: '';
  position: absolute;
  top: -46px; left: -46px;
  width: 92px; height: 92px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 8px var(--c-bg);
  transition: all var(--tr);
}
.cat-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.cat-card:hover::after { transform: scale(1.18) translate(6px, -6px); }
.cat-card__title {
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 6px;
}
.cat-card__line { width: 34px; height: 3px; background: var(--c-gold); border-radius: 3px; margin: 0 auto 10px; }
.cat-card__num { text-align: center; color: #8d92c4; font-size: 12.5px; letter-spacing: 2px; margin-bottom: 8px; }
.cat-card__img {
  margin: 14px -24px 0;
  margin-top: auto;
  height: 210px;
  position: relative;
}
.cat-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center bottom;
  mask-image: linear-gradient(180deg, transparent 0%, #000 34%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 34%);
  transition: transform 0.5s ease;
}
.cat-card:hover .cat-card__img img { transform: scale(1.07); }
.cat-card__link {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(20, 20, 50, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity var(--tr);
  color: #fff;
  font-weight: 700;
  font-size: 15.5px;
  gap: 8px;
}
.cat-card:hover .cat-card__link { opacity: 1; }

/* ---------- Parallax Banner ---------- */
.parallax {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 110px 0;
  text-align: center;
  isolation: isolate;
}
.parallax::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(25, 25, 64, 0.88) 0%, rgba(35, 35, 90, 0.72) 50%, rgba(230, 100, 40, 0.45) 100%);
  z-index: -1;
}
.parallax__title { color: #fff; font-size: clamp(24px, 3.2vw, 36px); font-weight: 800; margin-bottom: 14px; }
.parallax__text { color: #e3e5f4; max-width: 640px; margin: 0 auto 32px; font-size: 16.5px; }
/* ---------- Products ---------- */
.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.product-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--c-line);
  overflow: hidden;
  transition: all var(--tr);
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-lg); border-color: transparent; transform: translateY(-8px); }
.product-card__img { position: relative; height: 240px; overflow: hidden; background: var(--c-bg-alt); }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.product-card:hover .product-card__img img { transform: scale(1.09); }
.product-card__badge {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--c-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(255, 90, 60, 0.4);
}
.product-card__badge--blue { background: var(--c-blue); box-shadow: 0 4px 12px rgba(63, 127, 193, 0.4); }
.product-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.product-card__title { font-size: 16.5px; font-weight: 700; color: var(--c-primary); margin-bottom: 8px; line-height: 1.7; }
.product-card__desc { font-size: 13.8px; color: var(--c-muted); line-height: 2; flex: 1; margin-bottom: 18px; }
.product-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--c-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 40px;
  transition: all var(--tr);
}
.product-card__btn svg { width: 16px; height: 16px; transition: transform var(--tr); }
.product-card__btn:hover { background: var(--c-blue-dark); box-shadow: 0 8px 20px rgba(63, 127, 193, 0.4); }
.product-card__btn:hover svg { transform: translateX(-4px); }

/* ---------- About ---------- */
.about {
  position: relative;
  background: url('../images/about.jpg') center/cover no-repeat;
  isolation: isolate;
  padding: 100px 0;
}
.about::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg, rgba(18, 18, 43, 0.25) 0%, rgba(18, 18, 43, 0.72) 100%);
  z-index: -1;
}
.about__card {
  max-width: 560px;
  margin-right: auto;
  background: #fff;
  border-radius: 22px;
  padding: 46px 44px 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.about__card::before {
  content: '';
  position: absolute;
  top: -14px; right: 40px;
  width: 70px; height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-gold));
}
.about__tag {
  display: inline-block;
  color: var(--c-accent);
  background: rgba(255, 90, 60, 0.09);
  font-size: 13px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 30px;
  margin-bottom: 16px;
}
.about__title { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; color: var(--c-primary); margin-bottom: 18px; line-height: 1.6; }
.about__text { color: #55566d; font-size: 15px; line-height: 2.15; margin-bottom: 14px; text-align: justify; }
.about__features { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 26px; }
.about__feature { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: var(--c-text); }
.about__feature svg { width: 20px; height: 20px; color: var(--c-teal); flex-shrink: 0; }
.about__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; border-top: 1px dashed var(--c-line); padding-top: 26px; }
.stat { text-align: center; }
.stat__num { font-size: clamp(21px, 2.4vw, 27px); font-weight: 900; color: var(--c-blue-dark); line-height: 1.4; }
.stat__label { font-size: 12px; color: var(--c-muted); }
.about__certs { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.cert {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--c-line);
  border-radius: 10px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: #63647e;
  background: var(--c-bg-alt);
}
.cert svg { width: 18px; height: 18px; color: var(--c-gold); }

/* ---------- Clients ---------- */
.clients { padding: 70px 0; }
.clients__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.client {
  background: #fff;
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius);
  height: 96px;
  display: grid;
  place-items: center;
  filter: grayscale(1);
  opacity: 0.65;
  transition: all var(--tr);
  cursor: pointer;
}
.client:hover { filter: grayscale(0); opacity: 1; box-shadow: var(--shadow-md); transform: translateY(-6px); border-color: transparent; }
.client__logo { text-align: center; line-height: 1.4; color: var(--c-primary); }
.client__logo b { display: block; font-size: 19px; font-weight: 900; }
.client__logo small { font-size: 10px; color: var(--c-muted); letter-spacing: 1px; }
.client__logo--serif b { font-family: Georgia, 'Times New Roman', serif; font-style: italic; }

/* ---------- News ---------- */
.news__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.news-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--c-line);
  overflow: hidden;
  transition: all var(--tr);
  display: flex;
  flex-direction: column;
}
.news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-8px); border-color: transparent; }
.news-card__img { position: relative; height: 190px; overflow: hidden; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.news-card:hover .news-card__img img { transform: scale(1.08); }
.news-card__cat {
  position: absolute;
  bottom: 12px; right: 12px;
  background: rgba(35, 35, 90, 0.88);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 30px;
}
.news-card__body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.news-card__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--c-muted);
  margin-bottom: 10px;
}
.news-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.news-card__meta svg { width: 13px; height: 13px; color: var(--c-accent); }
.news-card__title { font-size: 15px; font-weight: 700; color: var(--c-text); line-height: 1.9; flex: 1; margin-bottom: 14px; transition: color var(--tr); }
.news-card:hover .news-card__title { color: var(--c-blue-dark); }
.news-card__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--c-blue);
  font-size: 13.5px;
  font-weight: 700;
}
.news-card__link svg { width: 15px; height: 15px; transition: transform var(--tr); }
.news-card__link:hover { color: var(--c-accent); }
.news-card__link:hover svg { transform: translateX(-4px); }

/* ---------- Footer ---------- */
.footer { background: var(--c-navy-950); color: #b9bcd9; position: relative; }
.footer::before {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-gold), var(--c-blue));
}
.footer__top { padding: 74px 0 50px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.footer__brand .brand { margin-bottom: 18px; }
.footer__brand .brand__text b { font-size: 18px; }
.footer__about { font-size: 14px; line-height: 2.1; margin-bottom: 22px; text-align: justify; }
.footer__socials { display: flex; gap: 10px; }
.footer__socials a {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  display: grid;
  place-items: center;
  color: #cdd0e9;
  transition: all var(--tr);
}
.footer__socials a svg { width: 18px; height: 18px; }
.footer__socials a:hover { background: var(--c-accent); color: #fff; transform: translateY(-4px); box-shadow: 0 8px 18px rgba(255, 90, 60, 0.35); }
.footer__title { color: #fff; font-size: 17px; font-weight: 800; margin-bottom: 22px; position: relative; padding-bottom: 12px; }
.footer__title::after { content: ''; position: absolute; bottom: 0; right: 0; width: 34px; height: 3px; border-radius: 3px; background: var(--c-accent); }
.footer__links li { margin-bottom: 11px; }
.footer__links a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #b9bcd9; transition: all var(--tr); }
.footer__links a svg { width: 13px; height: 13px; color: var(--c-accent); }
.footer__links a:hover { color: #fff; padding-right: 6px; }
.footer__contact li { display: flex; gap: 12px; margin-bottom: 16px; font-size: 14px; line-height: 2; }
.footer__contact svg { width: 18px; height: 18px; color: var(--c-gold); flex-shrink: 0; margin-top: 6px; }
.footer__contact a { color: #b9bcd9; }
.footer__contact a:hover { color: #fff; }
.footer__newsletter {
  background: var(--c-primary-dark);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 46px;
}
.footer__newsletter-text h4 { color: #fff; font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.footer__newsletter-text p { font-size: 13.5px; color: #9fa3c9; }
.newsletter-form { display: flex; gap: 0; background: rgba(255, 255, 255, 0.08); border-radius: 40px; padding: 5px; min-width: 340px; }
.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  padding: 8px 18px;
  font-size: 14px;
  min-width: 0;
}
.newsletter-form input::placeholder { color: #8d92c4; }
.newsletter-form button {
  background: var(--c-accent);
  color: #fff;
  border-radius: 40px;
  padding: 9px 26px;
  font-size: 14px;
  font-weight: 700;
  transition: all var(--tr);
}
.newsletter-form button:hover { background: var(--c-accent-dark); }
.newsletter-msg { font-size: 13px; color: #6fe0b2; margin-top: 10px; min-height: 20px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 20px 0; }
.footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px; }
.footer__bottom a:hover { color: #fff; }
.footer__bottom-links { display: flex; gap: 20px; }

/* ---------- Search Modal ---------- */
.search-modal {
  position: fixed;
  inset: 0;
  background: rgba(14, 14, 36, 0.94);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--tr);
}
.search-modal.is-open { opacity: 1; visibility: visible; }
.search-modal__box { width: min(640px, 90vw); transform: translateY(24px); transition: transform var(--tr); }
.search-modal.is-open .search-modal__box { transform: translateY(0); }
.search-modal__label { color: #9fa3c9; font-size: 14px; margin-bottom: 16px; text-align: center; }
.search-modal__input {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  color: #fff;
  font-size: 18px;
  padding: 18px 24px;
  outline: none;
  transition: all var(--tr);
}
.search-modal__input:focus { border-color: var(--c-accent); background: rgba(255, 255, 255, 0.1); }
.search-modal__input::placeholder { color: #8d92c4; }
.search-modal__hint { color: #6d71a0; font-size: 12.5px; margin-top: 14px; text-align: center; }
.search-modal__close {
  position: absolute;
  top: 30px; left: 30px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  display: grid;
  place-items: center;
  transition: all var(--tr);
}
.search-modal__close:hover { background: var(--c-accent); border-color: var(--c-accent); transform: rotate(90deg); }
.search-modal__close svg { width: 20px; height: 20px; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  bottom: 28px; left: 28px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(255, 90, 60, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--tr);
  z-index: 70;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--c-accent-dark); transform: translateY(-4px); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal Animations ---------- */
[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 0.8s ease, transform 0.8s ease; }
[data-reveal="right"] { transform: translateX(48px); }
[data-reveal="left"] { transform: translateX(-48px); }
[data-reveal].is-revealed { opacity: 1; transform: translate(0, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1240px) {
  .cats__grid { grid-template-columns: repeat(4, 1fr); }
  .cat-item { padding: 20px 8px 16px; }
}

@media (max-width: 1100px) {
  .lang { position: static; transform: none; }
  .header__nav-row { justify-content: space-between; padding-right: 60px; }
  .hamburger { display: flex; }
  .nav { display: none; }
  .header__nav-row { justify-content: center; }
}

@media (max-width: 992px) {
  .section { padding: 70px 0; }
  .cat-cards__grid { grid-template-columns: repeat(2, 1fr); }
  .cat-card:nth-child(even) { margin-top: 0; }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .news__grid { grid-template-columns: repeat(2, 1fr); }
  .clients__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .about__card { max-width: 500px; padding: 36px 32px 32px; }
  .about__stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .footer__newsletter { flex-direction: column; text-align: center; }
  .newsletter-form { min-width: 0; width: 100%; max-width: 460px; }
}

@media (max-width: 768px) {
  .topbar__contact .topbar__item span { display: none; }
  .topbar__item { gap: 0; }
  .hero { padding: 0; height: min(42vw, 320px); min-height: 220px; }
  .hero__text { max-width: 100%; }
  .hero__arrow { width: 42px; height: 42px; }
  .hero__arrow--next { right: 10px; }
  .hero__arrow--prev { left: 10px; }
  .hero__scroll { display: none; }
  .cats { padding: 60px 0 40px; }
  .cats__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-item__icon { width: 68px; height: 68px; }
  .cat-item__icon svg { width: 38px; height: 38px; }
  .cat-cards { padding-bottom: 60px; }
  .parallax { background-attachment: scroll; padding: 80px 0; }
  .about { padding: 70px 0; }
  .about__card { max-width: 100%; }
  .clients { padding: 50px 0; }
  .clients__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .footer__top { padding: 56px 0 36px; }
  .footer__bottom-inner { justify-content: center; text-align: center; }
}

@media (max-width: 576px) {
  body { font-size: 15px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 40px; }
  .section-head__title::before, .section-head__title::after { display: none; }
  .topbar__item--mail { display: none; }
  .brand__badge { width: 50px; height: 50px; font-size: 18px; padding-bottom: 5px; }
  .brand__badge::after { bottom: 9px; width: 6px; height: 6px; }
  .brand__text b { font-size: 16px; }
  .brand__text small { font-size: 8.5px; }
  .header__nav-row { padding: 2px 14px 10px; }
  .hero__title { font-size: 26px; }
  .hero__desc { font-size: 14.5px; }
  .hero__cta .btn { padding: 11px 22px; font-size: 14px; }
  .hero__dots { bottom: 14px; }
  .cat-cards__grid { grid-template-columns: 1fr; }
  .cat-card { min-height: 330px; }
  .cat-card__img { height: 180px; }
  .products__grid { grid-template-columns: 1fr; }
  .news__grid { grid-template-columns: 1fr; }
  .about__card { padding: 30px 22px 26px; border-radius: 18px; }
  .about__stats { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .newsletter-form { flex-direction: column; background: transparent; gap: 10px; padding: 0; }
  .newsletter-form input { background: rgba(255, 255, 255, 0.08); border-radius: 14px; padding: 13px 18px; }
  .newsletter-form button { border-radius: 14px; padding: 12px; }
  .to-top { width: 44px; height: 44px; bottom: 20px; left: 20px; }
}

/* ---------- Print ---------- */
@media print {
  .topbar, .header, .hero__arrows, .hero__dots, .to-top, .search-modal, .drawer, .drawer-overlay { display: none !important; }
  .hero { min-height: 300px; }
}

