@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn-arabic.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+25CC;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-024F, U+1E00-1EFF;
}

:root {
  --pw-primary: #0ea5e9;
  --pw-primary-dark: #0369a1;
  --pw-accent: #f59e0b;
  --pw-accent-light: #fbbf24;
  --pw-ink: #07111f;
  --pw-navy: #091a2f;
  --pw-navy-2: #0d2745;
  --pw-slate: #526174;
  --pw-muted: #718096;
  --pw-surface: #f5f8fc;
  --pw-line: #dce5ef;
  --pw-white: #fff;
  --pw-radius: 22px;
  --pw-shadow: 0 18px 50px rgba(7, 17, 31, 0.1);
  --pw-shadow-lg: 0 28px 80px rgba(4, 15, 28, 0.18);
  --pw-container: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: var(--pw-white);
  color: var(--pw-ink);
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.pw-language-fa {
  direction: rtl;
}

body.pw-language-en {
  direction: ltr;
}

body.pw-menu-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--pw-primary) 65%, white);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.pw-section {
  position: relative;
  padding: 100px 0;
}

.pw-section--soft {
  background: var(--pw-surface);
}

.pw-section--dark {
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 5%, rgba(14, 165, 233, 0.16), transparent 28%),
    linear-gradient(140deg, #07111f, #0a1d35 62%, #0c2846);
  color: var(--pw-white);
}

.pw-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 42px;
}

.pw-section__head--center {
  max-width: 780px;
  margin-inline: auto;
  margin-bottom: 48px;
  text-align: center;
  display: block;
}

.pw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
  color: var(--pw-primary-dark);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.03em;
}

.pw-eyebrow::before {
  width: 28px;
  height: 3px;
  border-radius: 5px;
  background: var(--pw-accent);
  content: "";
}

.pw-section--dark .pw-eyebrow {
  color: var(--pw-accent-light);
}

.pw-title,
.pw-section h2,
.pw-page-hero h1 {
  margin: 0;
  color: var(--pw-navy);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.35;
}

.pw-section--dark h2 {
  color: var(--pw-white);
}

.pw-lead {
  max-width: 700px;
  margin: 16px 0 0;
  color: var(--pw-slate);
  font-size: 1.08rem;
}

.pw-section--dark .pw-lead {
  color: #b9c9dc;
}

.pw-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.4;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.pw-button:hover {
  transform: translateY(-2px);
}

.pw-button--primary {
  background: linear-gradient(135deg, var(--pw-primary), #0284c7);
  box-shadow: 0 14px 34px rgba(14, 165, 233, 0.28);
  color: var(--pw-white);
}

.pw-button--accent {
  background: linear-gradient(135deg, var(--pw-accent-light), var(--pw-accent));
  box-shadow: 0 14px 34px rgba(245, 158, 11, 0.26);
  color: #1e1605;
}

.pw-button--outline {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.07);
  color: var(--pw-white);
  backdrop-filter: blur(10px);
}

.pw-button--light {
  background: var(--pw-white);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
  color: var(--pw-navy);
}

.pw-text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--pw-primary-dark);
  font-size: 0.92rem;
  font-weight: 800;
}

.pw-text-link::after {
  content: "←";
  transition: transform 180ms ease;
}

.pw-language-en .pw-text-link::after {
  content: "→";
}

.pw-text-link:hover::after {
  transform: translateX(-4px);
}

.pw-language-en .pw-text-link:hover::after {
  transform: translateX(4px);
}

/* Header */
.pw-topbar {
  background: var(--pw-ink);
  color: #c4d2e1;
  font-size: 0.78rem;
}

.pw-topbar__inner {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.pw-topbar__items,
.pw-topbar__item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pw-topbar__item {
  gap: 7px;
}

.pw-topbar svg {
  width: 16px;
  color: var(--pw-accent-light);
}

.pw-site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid rgba(220, 229, 239, 0.86);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 28px rgba(4, 16, 30, 0.05);
  backdrop-filter: blur(18px);
}

body.admin-bar .pw-site-header {
  top: 32px;
}

.pw-header__inner {
  display: grid;
  min-height: 86px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
}

.pw-brand,
.pw-brand__fallback,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.custom-logo {
  width: auto;
  max-width: 235px;
  height: 57px;
  object-fit: contain;
}

.pw-brand__fallback {
  width: 245px;
  height: 67px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.pw-brand__fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
}

.pw-nav {
  justify-self: center;
}

.pw-nav__list {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pw-nav__list li {
  position: relative;
}

.pw-nav__list a {
  position: relative;
  display: block;
  padding: 28px 0;
  color: #243246;
  font-size: 0.9rem;
  font-weight: 750;
  white-space: nowrap;
}

.pw-nav__list > li > a::after {
  position: absolute;
  right: 0;
  bottom: 19px;
  left: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--pw-accent);
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.pw-nav__list > li:hover > a::after,
.pw-nav__list > .current-menu-item > a::after,
.pw-nav__list > .current_page_item > a::after {
  transform: scaleX(1);
}

.pw-nav__list .sub-menu {
  position: absolute;
  top: calc(100% - 8px);
  min-width: 220px;
  padding: 10px;
  margin: 0;
  border: 1px solid var(--pw-line);
  border-radius: 14px;
  background: var(--pw-white);
  box-shadow: var(--pw-shadow);
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: 180ms ease;
}

.pw-nav__list li:hover > .sub-menu,
.pw-nav__list li:focus-within > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.pw-nav__list .sub-menu a {
  padding: 9px 12px;
  border-radius: 8px;
}

.pw-nav__list .sub-menu a:hover {
  background: var(--pw-surface);
}

.pw-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pw-language-switch {
  display: inline-flex;
  min-width: 45px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pw-line);
  border-radius: 12px;
  color: var(--pw-navy);
  font-size: 0.78rem;
  font-weight: 850;
}

.pw-language-list{display:flex;align-items:center;gap:.25rem}.pw-language-list .pw-language-switch{min-width:2.15rem;padding:.45rem .5rem;text-align:center}.pw-language-list .pw-language-switch.is-active{background:var(--pw-accent);color:#111827;border-color:var(--pw-accent)}

.pw-header__cta {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--pw-navy);
  color: var(--pw-white);
  font-size: 0.82rem;
  font-weight: 800;
}

.pw-menu-toggle {
  display: none;
  width: 46px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--pw-line);
  border-radius: 12px;
  background: var(--pw-white);
  cursor: pointer;
}

.pw-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  border-radius: 4px;
  background: var(--pw-navy);
  transition: 180ms ease;
}

/* Hero */
.pw-hero {
  position: relative;
  isolation: isolate;
  min-height: 720px;
  overflow: hidden;
  background-color: var(--pw-ink);
  background-image: var(--pw-hero-image);
  background-position: center;
  background-size: cover;
  color: var(--pw-white);
}

.pw-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 9, 17, 0.93) 0%, rgba(3, 9, 17, 0.78) 34%, rgba(3, 9, 17, 0.28) 66%, rgba(3, 9, 17, 0.04) 100%);
  content: "";
}

.pw-language-fa .pw-hero::before {
  background: linear-gradient(270deg, rgba(3, 9, 17, 0.93) 0%, rgba(3, 9, 17, 0.78) 34%, rgba(3, 9, 17, 0.28) 66%, rgba(3, 9, 17, 0.04) 100%);
}

.pw-hero::after {
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(transparent, rgba(3, 9, 17, 0.6));
  content: "";
}

.pw-hero__inner {
  display: grid;
  min-height: 720px;
  grid-template-columns: minmax(0, 610px) 1fr;
  align-items: center;
}

.pw-language-fa .pw-hero__inner {
  grid-template-columns: 1fr minmax(0, 640px);
}

.pw-language-fa .pw-hero__content {
  grid-column: 2;
}

.pw-hero__content {
  padding: 70px 0 110px;
}

.pw-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--pw-accent-light);
  font-size: 0.9rem;
  font-weight: 800;
}

.pw-hero__kicker::before {
  width: 34px;
  height: 3px;
  border-radius: 8px;
  background: var(--pw-accent);
  content: "";
}

.pw-hero h1 {
  max-width: 690px;
  margin: 0;
  color: var(--pw-white);
  font-size: clamp(2.75rem, 5.6vw, 5.15rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.14;
}

.pw-hero h1 span {
  display: block;
  margin-top: 14px;
  color: var(--pw-accent-light);
  font-size: 0.49em;
  letter-spacing: -0.025em;
  line-height: 1.45;
}

.pw-hero__description {
  max-width: 630px;
  margin: 24px 0 32px;
  color: #d2deeb;
  font-size: 1.08rem;
  line-height: 1.95;
}

.pw-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pw-hero__trust {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(4, 13, 24, 0.72);
  backdrop-filter: blur(16px);
}

.pw-hero__trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.pw-hero__trust-item {
  display: flex;
  min-height: 88px;
  align-items: center;
  gap: 14px;
  padding: 15px 24px;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.12);
}

.pw-hero__trust-item:last-child {
  border: 0;
}

.pw-hero__trust-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.1);
  color: var(--pw-accent-light);
  font-size: 1.25rem;
}

.pw-hero__trust-item strong,
.pw-hero__trust-item span {
  display: block;
}

.pw-hero__trust-item strong {
  font-size: 0.94rem;
}

.pw-hero__trust-item span {
  color: #9eb0c4;
  font-size: 0.75rem;
}

/* Categories */
.pw-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pw-category-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--pw-line);
  border-radius: var(--pw-radius);
  background: var(--pw-white);
  box-shadow: 0 12px 38px rgba(8, 26, 48, 0.06);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.pw-category-card::after {
  position: absolute;
  top: -65px;
  left: -65px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--pw-primary) 9%, transparent);
  content: "";
}

.pw-category-card:hover {
  border-color: color-mix(in srgb, var(--pw-primary) 50%, var(--pw-line));
  box-shadow: var(--pw-shadow);
  transform: translateY(-6px);
}

.pw-category-card__icon {
  display: grid;
  width: 55px;
  height: 55px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--pw-navy), var(--pw-navy-2));
  box-shadow: 0 11px 22px rgba(7, 17, 31, 0.17);
  color: var(--pw-accent-light);
  font-size: 1.55rem;
}

.pw-category-card h3 {
  margin: 20px 0 8px;
  color: var(--pw-navy);
  font-size: 1.24rem;
  line-height: 1.45;
}

.pw-category-card p {
  min-height: 58px;
  margin: 0 0 16px;
  color: var(--pw-slate);
  font-size: 0.89rem;
}

.pw-category-card--image {
  padding: 0;
}

.pw-category-card--image::after {
  display: none;
}

.pw-category-card__media {
  position: relative;
  display: block;
  height: 190px;
  overflow: hidden;
  background: var(--pw-navy);
}

.pw-category-card__media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(3, 10, 19, 0.72));
  content: "";
}

.pw-category-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.pw-category-card--image:hover .pw-category-card__media img {
  transform: scale(1.045);
}

.pw-category-card__media .pw-category-card__icon {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 16px;
  width: 48px;
  height: 48px;
}

.pw-language-en .pw-category-card__media .pw-category-card__icon {
  right: auto;
  left: 18px;
}

.pw-category-card__content {
  padding: 24px;
}

.pw-category-card__content h3 {
  margin-top: 0;
}

.pw-category-card__content p {
  min-height: 96px;
}

/* Services */
.pw-services-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.pw-service-card {
  position: relative;
  overflow: hidden;
  padding: 28px 24px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.pw-service-card__number {
  display: block;
  color: var(--pw-primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.pw-service-card h3 {
  min-height: 58px;
  margin: 18px 0 10px;
  color: var(--pw-white);
  font-size: 1.13rem;
  line-height: 1.55;
}

.pw-service-card p {
  margin: 0;
  color: #a9bbcf;
  font-size: 0.84rem;
}

.pw-service-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pw-primary), var(--pw-accent));
  content: "";
  transition: width 240ms ease;
}

.pw-service-card:hover::after {
  width: 100%;
}

/* Calculator */
.pw-tools-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 70px;
}

.pw-check-list {
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.pw-check-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 12px 0;
  color: #26384d;
  font-weight: 650;
}

.pw-check-list li::before {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #dff4ff;
  color: var(--pw-primary-dark);
  content: "✓";
  font-weight: 900;
}

.pw-calculator {
  position: relative;
  padding: 34px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 90% 5%, rgba(14, 165, 233, 0.22), transparent 32%),
    linear-gradient(145deg, var(--pw-navy), #06111f);
  box-shadow: var(--pw-shadow-lg);
  color: var(--pw-white);
}

.pw-calculator__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.pw-calculator__head h3 {
  margin: 0;
  font-size: 1.35rem;
}

.pw-calculator__badge {
  padding: 5px 10px;
  border-radius: 20px;
  background: rgba(245, 158, 11, 0.16);
  color: var(--pw-accent-light);
  font-size: 0.7rem;
  font-weight: 800;
}

.pw-calculator__fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.pw-field label {
  display: block;
  margin-bottom: 6px;
  color: #b8c8da;
  font-size: 0.76rem;
}

.pw-field input,
.pw-field select,
.pw-field textarea,
.pw-contact-form input,
.pw-contact-form select,
.pw-contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--pw-line);
  border-radius: 12px;
  background: var(--pw-white);
  color: var(--pw-ink);
}

.pw-calculator .pw-field input {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.08);
  color: var(--pw-white);
}

.pw-calculator__action {
  width: 100%;
  margin-top: 18px;
  border: 0;
}

.pw-calculator__result {
  display: grid;
  min-height: 100px;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px;
  margin-top: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.pw-calculator__result-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 14px;
  background: rgba(14, 165, 233, 0.15);
  color: var(--pw-primary);
  font-size: 1.5rem;
}

.pw-calculator__result strong,
.pw-calculator__result small {
  display: block;
}

.pw-calculator__result strong {
  color: var(--pw-accent-light);
  font-size: 1.55rem;
}

.pw-calculator__result small {
  color: #9cb0c5;
  font-size: 0.72rem;
}

/* Product feature */
.pw-product-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 65px;
}

.pw-product-feature__image {
  position: relative;
}

.pw-product-feature__image::before {
  position: absolute;
  z-index: -1;
  inset: 12% 8% 3%;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.12);
  content: "";
  filter: blur(34px);
}

.pw-product-feature__image img {
  filter: drop-shadow(0 28px 30px rgba(3, 13, 23, 0.17));
}

.pw-feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0;
  margin: 28px 0;
  list-style: none;
}

.pw-feature-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 13px;
  border: 1px solid var(--pw-line);
  border-radius: 12px;
  background: var(--pw-white);
  color: #273a50;
  font-size: 0.82rem;
  font-weight: 700;
}

.pw-feature-list li::before {
  color: var(--pw-accent);
  content: "◆";
  font-size: 0.7rem;
}

/* Applications */
.pw-application-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pw-application-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  padding: 30px;
  border-radius: 22px;
  background: var(--pw-navy);
  color: var(--pw-white);
}

.pw-application-card::before,
.pw-application-card::after {
  position: absolute;
  content: "";
}

.pw-application-card::before {
  inset: 0;
  background:
    radial-gradient(circle at 80% 18%, rgba(14, 165, 233, 0.3), transparent 30%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 34px);
}

.pw-application-card::after {
  right: -40px;
  bottom: -60px;
  width: 190px;
  height: 190px;
  border: 30px solid rgba(245, 158, 11, 0.09);
  border-radius: 50%;
}

.pw-application-card > * {
  position: relative;
  z-index: 1;
}

.pw-application-card__icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--pw-accent-light);
  font-size: 1.6rem;
}

.pw-application-card h3 {
  margin: 70px 0 9px;
  font-size: 1.3rem;
}

.pw-application-card p {
  margin: 0;
  color: #b0c1d4;
  font-size: 0.88rem;
}

/* Articles */
.pw-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pw-post-card {
  overflow: hidden;
  border: 1px solid var(--pw-line);
  border-radius: 20px;
  background: var(--pw-white);
  box-shadow: 0 12px 34px rgba(7, 17, 31, 0.06);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.pw-post-card:hover {
  box-shadow: var(--pw-shadow);
  transform: translateY(-5px);
}

.pw-post-card__media {
  display: grid;
  height: 190px;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.34), transparent 26%),
    linear-gradient(145deg, #091a2f, #0d3157);
  color: var(--pw-accent-light);
  font-size: 3rem;
}

.pw-post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.pw-post-card:hover .pw-post-card__media img {
  transform: scale(1.035);
}

.pw-post-card__body {
  padding: 22px;
}

.pw-post-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--pw-muted);
  font-size: 0.73rem;
}

.pw-post-card h3 {
  margin: 12px 0 10px;
  color: var(--pw-navy);
  font-size: 1.12rem;
  line-height: 1.65;
}

.pw-post-card p {
  margin: 0;
  color: var(--pw-slate);
  font-size: 0.84rem;
}

/* CTA */
.pw-cta {
  position: relative;
  overflow: hidden;
  padding: 58px 0;
  background: linear-gradient(120deg, #0284c7, #0ea5e9 52%, #0369a1);
  color: var(--pw-white);
}

.pw-cta::before,
.pw-cta::after {
  position: absolute;
  border: 40px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.pw-cta::before {
  top: -120px;
  left: -70px;
  width: 250px;
  height: 250px;
}

.pw-cta::after {
  right: 8%;
  bottom: -130px;
  width: 220px;
  height: 220px;
}

.pw-cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.pw-cta h2 {
  margin: 0;
  color: var(--pw-white);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.4;
}

.pw-cta p {
  margin: 7px 0 0;
  color: #e7f7ff;
}

.pw-cta__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

/* Page content */
.pw-page-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 74px;
  background:
    radial-gradient(circle at 15% 15%, rgba(14, 165, 233, 0.19), transparent 28%),
    linear-gradient(135deg, #07111f, #0d2745);
  color: var(--pw-white);
}

.pw-page-hero::after {
  position: absolute;
  right: -80px;
  bottom: -130px;
  width: 330px;
  height: 330px;
  border: 55px solid rgba(245, 158, 11, 0.08);
  border-radius: 50%;
  content: "";
}

.pw-page-hero h1 {
  color: var(--pw-white);
}

.pw-page-hero p {
  max-width: 700px;
  margin: 15px 0 0;
  color: #bdcddd;
}

.pw-breadcrumb {
  margin-bottom: 14px;
  color: var(--pw-accent-light);
  font-size: 0.78rem;
  font-weight: 700;
}

.pw-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 55px;
}

.pw-language-en .pw-content-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.pw-entry-content {
  min-width: 0;
  color: #26384c;
}

.pw-entry-content > *:first-child {
  margin-top: 0;
}

.pw-entry-content h2,
.pw-entry-content h3,
.pw-entry-content h4 {
  margin-top: 1.8em;
  color: var(--pw-navy);
  line-height: 1.45;
}

.pw-entry-content h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.pw-entry-content h3 {
  font-size: 1.35rem;
}

.pw-entry-content a:not(.pw-button) {
  color: var(--pw-primary-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.pw-entry-content img {
  border-radius: 18px;
}

.pw-entry-content blockquote {
  padding: 20px 24px;
  margin: 28px 0;
  border-inline-start: 4px solid var(--pw-accent);
  border-radius: 12px;
  background: var(--pw-surface);
}

.pw-entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.pw-entry-content th,
.pw-entry-content td {
  padding: 12px;
  border: 1px solid var(--pw-line);
  text-align: start;
}

.pw-sidebar-card {
  position: sticky;
  top: 120px;
  padding: 25px;
  border: 1px solid var(--pw-line);
  border-radius: 20px;
  background: var(--pw-surface);
}

.pw-sidebar-card h3 {
  margin: 0 0 8px;
  color: var(--pw-navy);
  font-size: 1.15rem;
}

.pw-sidebar-card p {
  margin: 0 0 18px;
  color: var(--pw-slate);
  font-size: 0.83rem;
}

.pw-sidebar-card .pw-button {
  width: 100%;
}

.pw-content-blocks {
  display: grid;
  gap: 20px;
  margin: 32px 0;
}

.pw-content-block {
  padding: 26px;
  border: 1px solid var(--pw-line);
  border-radius: 18px;
  background: var(--pw-white);
  box-shadow: 0 10px 30px rgba(7, 17, 31, 0.05);
}

.pw-content-block h3 {
  margin-top: 0;
}

.pw-contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 36px;
}

.pw-contact-details {
  display: grid;
  gap: 12px;
}

.pw-contact-detail {
  padding: 18px;
  border: 1px solid var(--pw-line);
  border-radius: 15px;
  background: var(--pw-surface);
}

.pw-contact-detail strong,
.pw-contact-detail span {
  display: block;
}

.pw-contact-detail span {
  color: var(--pw-slate);
  font-size: 0.87rem;
}

.pw-contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.pw-contact-form__wide {
  grid-column: 1 / -1;
}

.pw-contact-form label {
  display: block;
  margin-bottom: 5px;
  color: var(--pw-navy);
  font-size: 0.8rem;
  font-weight: 750;
}

.pw-contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.pw-form-notice {
  grid-column: 1 / -1;
  padding: 12px 15px;
  border-radius: 11px;
  font-size: 0.84rem;
}

.pw-form-notice--success {
  background: #e7f8ef;
  color: #15643d;
}

.pw-form-notice--error {
  background: #fff0f0;
  color: #9d2828;
}

.pw-honeypot {
  position: absolute !important;
  left: -9999px !important;
}

/* Archive and single */
.pw-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.pw-pagination {
  margin-top: 45px;
}

.pw-pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.pw-pagination .page-numbers {
  display: grid;
  min-width: 42px;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--pw-line);
  border-radius: 10px;
}

.pw-pagination .current,
.pw-pagination a:hover {
  border-color: var(--pw-primary);
  background: var(--pw-primary);
  color: var(--pw-white);
}

.pw-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 15px;
  color: #b9c9d9;
  font-size: 0.78rem;
}

/* WooCommerce */
.pw-commerce {
  padding: 80px 0 100px;
}

.woocommerce .woocommerce-breadcrumb {
  color: var(--pw-muted);
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
}

.woocommerce ul.products li.product {
  width: auto !important;
  padding: 16px;
  margin: 0 !important;
  border: 1px solid var(--pw-line);
  border-radius: 18px;
  background: var(--pw-white);
  box-shadow: 0 12px 34px rgba(7, 17, 31, 0.06);
}

.woocommerce ul.products li.product a img {
  border-radius: 13px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: var(--pw-navy);
  font-size: 1rem;
}

.woocommerce ul.products li.product .price {
  color: var(--pw-primary-dark);
  font-weight: 800;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  border-radius: 11px;
  background: var(--pw-navy);
  color: var(--pw-white);
  font-family: inherit;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--pw-primary-dark);
  color: var(--pw-white);
}

.pw-empty-state {
  max-width: 720px;
  padding: 55px 30px;
  margin: 30px auto;
  border: 1px dashed #b9c9d9;
  border-radius: 22px;
  background: var(--pw-surface);
  text-align: center;
}

.pw-empty-state__icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: var(--pw-navy);
  color: var(--pw-accent-light);
  font-size: 1.8rem;
}

.pw-empty-state h2 {
  margin: 0 0 8px;
}

.pw-empty-state p {
  margin: 0 auto 22px;
  color: var(--pw-slate);
}

/* Catalogue category pages */
.pw-catalog-hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(14, 165, 233, 0.2), transparent 30%),
    linear-gradient(135deg, #07111f, #0b2440);
  color: var(--pw-white);
}

.pw-catalog-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: 58px;
}

.pw-catalog-hero h1 {
  margin: 0;
  color: var(--pw-white);
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.28;
}

.pw-catalog-hero p {
  max-width: 690px;
  margin: 18px 0 0;
  color: #c1d0df;
  font-size: 1.04rem;
}

.pw-catalog-hero .pw-eyebrow {
  color: var(--pw-accent-light);
}

.pw-catalog-hero__media {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 28px;
  background: #0d1f34;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.35);
}

.pw-catalog-hero__media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(2, 8, 15, 0.2), transparent 58%);
  content: "";
  pointer-events: none;
}

.pw-catalog-hero__media img {
  width: 100%;
  height: 390px;
  object-fit: cover;
}

.pw-feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.pw-feature-strip__item {
  display: flex;
  min-height: 92px;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--pw-line);
  border-radius: 16px;
  background: var(--pw-white);
  color: var(--pw-navy);
}

.pw-feature-strip__item span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: #e3f5fe;
  color: var(--pw-primary-dark);
  font-weight: 900;
}

.pw-feature-strip__item strong {
  font-size: 0.86rem;
  line-height: 1.55;
}

/* Projects */
.pw-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.pw-project-card {
  overflow: hidden;
  border: 1px solid var(--pw-line);
  border-radius: 21px;
  background: var(--pw-white);
  box-shadow: 0 12px 34px rgba(7, 17, 31, 0.06);
}

.pw-project-card__media {
  display: grid;
  height: 230px;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, var(--pw-navy), #0d3157);
  color: var(--pw-accent-light);
  font-size: 3rem;
}

.pw-project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pw-project-card__body {
  padding: 24px;
}

.pw-project-card h2 {
  margin: 0 0 9px;
  color: var(--pw-navy);
  font-size: 1.2rem;
}

.pw-project-card p {
  color: var(--pw-slate);
  font-size: 0.86rem;
}

.pw-empty-state--projects {
  min-height: 360px;
  display: grid;
  align-content: center;
}

.pw-projects-intro {
  background:
    radial-gradient(circle at 12% 0%, rgba(14, 165, 233, 0.12), transparent 28%),
    var(--pw-surface);
}

.pw-projects-intro__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.pw-projects-intro__inner > div {
  max-width: 780px;
}

.pw-projects-intro__inner h2 {
  margin: 0;
  color: var(--pw-navy);
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.4;
}

/* YouTube training */
.pw-page-hero--video {
  background:
    radial-gradient(circle at 15% 12%, rgba(239, 68, 68, 0.19), transparent 25%),
    radial-gradient(circle at 85% 10%, rgba(14, 165, 233, 0.2), transparent 28%),
    linear-gradient(135deg, #07111f, #0d2745);
}

.pw-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.pw-video-card {
  overflow: hidden;
  border: 1px solid var(--pw-line);
  border-radius: 20px;
  background: var(--pw-white);
  box-shadow: 0 12px 34px rgba(7, 17, 31, 0.07);
}

.pw-video-player {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #02060c;
  aspect-ratio: 16 / 9;
}

.pw-video-player iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  border: 0;
}

.pw-video-card__body {
  position: relative;
  padding: 21px;
}

.pw-video-card__duration {
  display: inline-flex;
  padding: 3px 9px;
  margin-bottom: 8px;
  border-radius: 20px;
  background: #e8f6fd;
  color: var(--pw-primary-dark);
  font-size: 0.72rem;
  font-weight: 800;
}

.pw-video-card h3 {
  margin: 0;
  color: var(--pw-navy);
  font-size: 1.05rem;
  line-height: 1.65;
}

.pw-video-card p {
  margin: 10px 0 0;
  color: var(--pw-slate);
  font-size: 0.82rem;
}

.pw-video-channel-cta {
  margin-top: 34px;
  text-align: center;
}

.pw-video-single {
  max-width: 980px;
}

.pw-video-single > .pw-video-player {
  margin-bottom: 34px;
  border-radius: 24px;
  box-shadow: var(--pw-shadow-lg);
}

.pw-video-single > .pw-button {
  margin-top: 24px;
}

/* Company profile */
.pw-about-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr);
  align-items: center;
  gap: 62px;
}

.pw-about-intro__copy h2,
.pw-about-values h2 {
  margin: 0;
  color: var(--pw-navy);
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.4;
}

.pw-about-intro__copy .pw-entry-content,
.pw-about-intro__copy .pw-content-blocks {
  margin-top: 28px;
}

.pw-about-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.pw-about-gallery img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 19px;
  box-shadow: var(--pw-shadow);
}

.pw-about-gallery__main {
  height: 430px !important;
  grid-row: span 2;
}

.pw-about-values {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 58px;
}

.pw-about-values .pw-content-blocks {
  margin: 0;
}

.pw-single-image {
  overflow: hidden;
  margin-bottom: 30px;
  border-radius: 21px;
}

.pw-single-image img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

/* Footer */
.pw-site-footer {
  position: relative;
  overflow: hidden;
  padding: 75px 0 22px;
  background: #050e1a;
  color: #b8c7d7;
}

.pw-footer__grid {
  display: grid;
  grid-template-columns: 1.7fr 0.8fr 0.9fr;
  gap: 60px;
}

.pw-footer__brand > a {
  display: block;
  width: 270px;
  max-width: 100%;
  height: 76px;
  overflow: hidden;
  border-radius: 11px;
  background: var(--pw-white);
}

.pw-footer__brand img {
  max-width: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
}

.pw-footer__brand p {
  max-width: 480px;
  margin: 20px 0;
  color: #899db2;
  font-size: 0.86rem;
}

.pw-footer__company {
  color: var(--pw-white);
  font-weight: 750;
}

.pw-footer__youtube {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  color: var(--pw-accent-light);
  font-size: 0.84rem;
  font-weight: 800;
}

.pw-site-footer h3 {
  margin: 0 0 18px;
  color: var(--pw-white);
  font-size: 1rem;
}

.pw-footer__links,
.pw-footer__contact {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pw-footer__links a,
.pw-footer__contact a,
.pw-footer__contact span {
  color: #9badc0;
  font-size: 0.84rem;
  transition: color 180ms ease;
}

.pw-footer__links a:hover,
.pw-footer__contact a:hover {
  color: var(--pw-accent-light);
}

.pw-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  margin-top: 52px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: #667c92;
  font-size: 0.76rem;
}

.pw-floating-call {
  position: fixed;
  z-index: 900;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 3px solid var(--pw-white);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pw-accent-light), var(--pw-accent));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  color: #1c1607;
  font-size: 1.35rem;
}

.pw-language-fa .pw-floating-call {
  right: auto;
  left: 22px;
}

/* Elementor and block editor compatibility */
.elementor-page .pw-entry-content {
  max-width: none;
}

.elementor-page .pw-section--content {
  padding: 0;
}

.alignwide {
  width: min(1320px, calc(100vw - 40px));
  max-width: none;
  margin-inline: calc((100% - min(1320px, calc(100vw - 40px))) / 2);
}

.alignfull {
  width: 100vw;
  max-width: none;
  margin-inline: calc(50% - 50vw);
}

/* Responsive */
@media (max-width: 1220px) {
  .pw-header__inner {
    grid-template-columns: auto 1fr auto;
    gap: 16px;
  }

  .pw-menu-toggle {
    display: block;
    justify-self: end;
  }

  .pw-language-fa .pw-menu-toggle {
    justify-self: start;
  }

  .pw-nav {
    position: fixed;
    z-index: 999;
    top: 124px;
    right: 16px;
    left: 16px;
    display: none;
    max-height: calc(100vh - 150px);
    padding: 18px;
    border: 1px solid var(--pw-line);
    border-radius: 18px;
    background: var(--pw-white);
    box-shadow: var(--pw-shadow-lg);
    overflow-y: auto;
  }

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

  .pw-nav__list {
    display: grid;
    gap: 4px;
  }

  .pw-nav__list a {
    padding: 10px 12px;
    border-radius: 9px;
  }

  .pw-nav__list > li > a::after {
    display: none;
  }

  .pw-nav__list .sub-menu {
    position: static;
    display: grid;
    padding: 0 15px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .pw-header__inner {
    gap: 16px;
  }

  .pw-nav__list {
    gap: 17px;
  }

  .pw-header__cta {
    display: none;
  }

  .pw-services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pw-service-card:nth-child(n + 4) {
    grid-column: span 1;
  }

  .pw-catalog-hero__grid,
  .pw-about-intro {
    grid-template-columns: 1fr;
  }

  .pw-catalog-hero__media {
    min-height: 330px;
  }

  .pw-catalog-hero__media img {
    height: 330px;
  }

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

@media (max-width: 920px) {
  body {
    font-size: 16px;
  }

  body.admin-bar .pw-site-header {
    top: 46px;
  }

  .pw-section {
    padding: 80px 0;
  }

  .pw-header__inner {
    grid-template-columns: auto 1fr auto;
    min-height: 76px;
  }

  .custom-logo {
    max-width: 200px;
    height: 50px;
  }

  .pw-brand__fallback {
    width: 205px;
    height: 57px;
  }

  .pw-menu-toggle {
    display: block;
    justify-self: end;
  }

  .pw-language-fa .pw-menu-toggle {
    justify-self: start;
  }

  .pw-nav {
    position: fixed;
    z-index: 999;
    top: 114px;
    right: 16px;
    left: 16px;
    display: none;
    max-height: calc(100vh - 140px);
    padding: 18px;
    border: 1px solid var(--pw-line);
    border-radius: 18px;
    background: var(--pw-white);
    box-shadow: var(--pw-shadow-lg);
    overflow-y: auto;
  }

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

  .pw-nav__list {
    display: grid;
    gap: 4px;
  }

  .pw-nav__list a {
    padding: 10px 12px;
    border-radius: 9px;
  }

  .pw-nav__list a:hover {
    background: var(--pw-surface);
  }

  .pw-nav__list > li > a::after {
    display: none;
  }

  .pw-nav__list .sub-menu {
    position: static;
    display: grid;
    padding: 0 15px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .pw-hero,
  .pw-hero__inner {
    min-height: 650px;
  }

  .pw-hero__inner,
  .pw-language-fa .pw-hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .pw-language-fa .pw-hero__content {
    grid-column: 1;
  }

  .pw-hero__content {
    max-width: 620px;
    padding-top: 60px;
  }

  .pw-hero::before,
  .pw-language-fa .pw-hero::before {
    background: rgba(2, 8, 15, 0.72);
  }

  .pw-category-grid,
  .pw-application-grid,
  .pw-post-grid,
  .pw-archive-grid,
  .pw-project-grid,
  .pw-video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pw-tools-grid,
  .pw-product-feature,
  .pw-contact-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .pw-product-feature__image {
    max-width: 720px;
    margin-inline: auto;
  }

  .pw-content-layout {
    grid-template-columns: 1fr;
  }

  .pw-about-values {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .pw-projects-intro__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .pw-sidebar-card {
    position: static;
  }

  .pw-footer__grid {
    grid-template-columns: 1.4fr 1fr;
  }

  .pw-footer__brand {
    grid-column: 1 / -1;
  }

  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .pw-container {
    width: min(100% - 26px, var(--pw-container));
  }

  .pw-section {
    padding: 66px 0;
  }

  .pw-topbar__inner {
    justify-content: center;
  }

  .pw-topbar__items .pw-topbar__item:first-child,
  .pw-topbar__message {
    display: none;
  }

  .pw-header__inner {
    gap: 8px;
  }

  .custom-logo {
    max-width: 165px;
    height: 44px;
  }

  .pw-brand__fallback {
    width: 165px;
    height: 48px;
  }

  .pw-language-switch {
    min-width: 40px;
    min-height: 40px;
  }

  .pw-nav {
    top: 108px;
  }

  .pw-hero,
  .pw-hero__inner {
    min-height: 720px;
  }

  .pw-hero {
    background-position: 64% center;
  }

  .pw-language-fa .pw-hero {
    background-position: 60% center;
  }

  .pw-hero__content {
    align-self: start;
    padding-top: 70px;
    text-align: center;
  }

  .pw-hero__kicker,
  .pw-hero__actions {
    justify-content: center;
  }

  .pw-hero h1 {
    font-size: clamp(2.25rem, 12vw, 3.4rem);
  }

  .pw-hero__description {
    margin-inline: auto;
    font-size: 0.98rem;
  }

  .pw-hero__actions {
    display: grid;
  }

  .pw-hero__trust-grid {
    grid-template-columns: 1fr;
  }

  .pw-hero__trust-item {
    display: none;
    min-height: 80px;
    justify-content: center;
    border: 0;
    text-align: start;
  }

  .pw-hero__trust-item:first-child {
    display: flex;
  }

  .pw-section__head,
  .pw-cta__inner,
  .pw-footer__bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .pw-section__head {
    display: flex;
  }

  .pw-category-grid,
  .pw-services-grid,
  .pw-application-grid,
  .pw-post-grid,
  .pw-archive-grid,
  .pw-project-grid,
  .pw-video-grid,
  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }

  .pw-catalog-hero {
    padding: 58px 0;
  }

  .pw-catalog-hero__grid {
    gap: 34px;
  }

  .pw-catalog-hero__media,
  .pw-catalog-hero__media img {
    min-height: 250px;
    height: 250px;
  }

  .pw-feature-strip {
    grid-template-columns: 1fr;
  }

  .pw-about-gallery img {
    height: 150px;
  }

  .pw-about-gallery__main {
    height: 313px !important;
  }

  .pw-category-card,
  .pw-service-card {
    min-height: 0;
  }

  .pw-service-card h3 {
    min-height: 0;
  }

  .pw-tools-grid {
    gap: 34px;
  }

  .pw-calculator {
    padding: 24px 18px;
  }

  .pw-calculator__fields,
  .pw-feature-list,
  .pw-contact-form {
    grid-template-columns: 1fr;
  }

  .pw-contact-form__wide {
    grid-column: auto;
  }

  .pw-product-feature {
    gap: 28px;
  }

  .pw-cta__inner {
    display: flex;
    text-align: center;
  }

  .pw-cta__actions {
    display: grid;
  }

  .pw-footer__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .pw-footer__brand {
    grid-column: auto;
  }

  .pw-footer__bottom {
    display: flex;
    text-align: center;
  }

  .pw-page-hero {
    padding: 68px 0 58px;
  }

  .pw-floating-call {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
  }

  .pw-language-fa .pw-floating-call {
    right: auto;
    left: 14px;
  }
}

/* Version 1.3 — readable-only lessons, citations and product safety notes */
.pw-edu-figure {
  margin: 34px 0;
  overflow: hidden;
  border: 1px solid #d9e1ea;
  border-radius: 20px;
  background: #f4f7fb;
  box-shadow: 0 14px 35px rgba(15, 37, 63, 0.08);
}

.pw-edu-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.pw-edu-figure figcaption {
  padding: 13px 18px;
  border-top: 1px solid #d9e1ea;
  color: #53657a;
  font-size: 0.88rem;
  line-height: 1.8;
}

.pw-table-wrap {
  width: 100%;
  margin: 26px 0;
  overflow-x: auto;
  border: 1px solid #d9e1ea;
  border-radius: 16px;
}

.pw-edu-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: #fff;
}

.pw-edu-table th,
.pw-edu-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e8edf3;
  text-align: start;
  vertical-align: top;
}

.pw-edu-table th {
  background: #edf3f8;
  color: #10253f;
  font-weight: 850;
}

.pw-edu-table tr:last-child th,
.pw-edu-table tr:last-child td {
  border-bottom: 0;
}

.pw-formula-card {
  margin: 22px 0 30px;
  padding: 22px;
  border-inline-start: 5px solid #e97813;
  border-radius: 16px;
  background: #f5f8fb;
  color: #10253f;
}

.pw-formula-card strong {
  display: block;
  color: #d5660b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  text-align: center;
}

.pw-formula-card p {
  margin: 13px 0 0;
}

.pw-source-box,
.pw-article-notice,
.pw-safety-note {
  margin: 30px 0;
  padding: 22px;
  border: 1px solid #d9e1ea;
  border-radius: 18px;
  background: #f5f8fb;
}

.pw-source-box {
  border-top: 5px solid #10253f;
}

.pw-source-box h2 {
  margin-top: 0;
}

.pw-source-box p {
  margin: 8px 0;
}

.pw-article-notice {
  border-inline-start: 5px solid #e97813;
  background: #fff8ed;
}

.pw-safety-note {
  border-inline-start: 5px solid #b42318;
  background: #fff4f2;
  color: #682018;
}

.pw-video-placeholder {
  display: grid;
  min-height: 290px;
  margin-top: 42px;
  padding: 36px;
  place-content: center;
  border: 3px dashed #94a3b8;
  border-radius: 22px;
  background: linear-gradient(145deg, #f4f7fb, #e9eef5);
  color: #10253f;
  text-align: center;
}

.pw-video-placeholder > span {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  place-items: center;
  border-radius: 50%;
  background: #e97813;
  color: #fff;
  font-size: 2rem;
}

.pw-video-placeholder h2,
.pw-video-placeholder p {
  margin: 5px 0;
}

@media (max-width: 680px) {
  .pw-edu-figure,
  .pw-source-box,
  .pw-article-notice,
  .pw-safety-note,
  .pw-formula-card {
    border-radius: 14px;
  }

  .pw-video-placeholder {
    min-height: 230px;
    padding: 24px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Version 1.3 — Arka navigation, educational library and catalogue */
.pw-header__inner {
  min-height: 148px;
  gap: 20px;
}

.pw-brand__arka,
.pw-brand__text {
  display: inline-flex;
  min-width: 178px;
  min-height: 128px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.pw-brand__arka img {
  display: block;
  width: auto;
  max-width: 280px;
  height: 124px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.pw-brand__text {
  flex-direction: column;
  align-items: flex-start;
  padding: 8px 14px;
  border: 1px solid #f0d6a6;
  background: linear-gradient(135deg, #fffaf0, #fff);
  color: var(--pw-navy);
  line-height: 1.3;
}

.pw-brand__text strong {
  color: #d97706;
  font-size: 1rem;
  font-weight: 900;
}

.pw-brand__text span {
  color: #43536a;
  font-size: 0.69rem;
  font-weight: 750;
}

.pw-nav__list--mega {
  gap: clamp(14px, 1.55vw, 28px);
}

.pw-nav__list--mega > li > a {
  padding-block: 33px;
}

.pw-menu-has-mega > a::before {
  display: inline-block;
  margin-inline-start: 6px;
  border: 4px solid transparent;
  border-top-color: #718096;
  vertical-align: -3px;
  content: "";
}

.pw-mega-menu {
  position: absolute;
  z-index: 1050;
  top: calc(100% - 6px);
  right: 50%;
  width: min(840px, calc(100vw - 36px));
  padding: 18px;
  border: 1px solid var(--pw-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 24px 70px rgba(5, 20, 38, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, 10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.pw-menu-has-mega:hover > .pw-mega-menu,
.pw-menu-has-mega:focus-within > .pw-mega-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(50%, 0);
}

.pw-mega-menu--small {
  width: 320px;
}

.pw-menu-has-mega:last-child > .pw-mega-menu {
  right: auto;
  left: 0;
  transform: translateY(10px);
}

.pw-menu-has-mega:last-child:hover > .pw-mega-menu,
.pw-menu-has-mega:last-child:focus-within > .pw-mega-menu {
  transform: none;
}

.pw-mega-menu a,
.pw-nav__list .pw-mega-menu a {
  padding: 10px 12px;
  border-radius: 10px;
  color: #23354a;
  font-size: 0.82rem;
  line-height: 1.55;
  white-space: normal;
}

.pw-mega-menu > a {
  display: block;
}

.pw-mega-menu a:hover,
.pw-mega-menu a:focus-visible {
  background: #eef7fd;
  color: var(--pw-primary-dark);
}

.pw-mega-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.pw-mega-group {
  position: relative;
}

.pw-mega-group__title {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--pw-surface);
  font-weight: 850 !important;
}

.pw-mega-flyout {
  position: absolute;
  z-index: 1060;
  top: 0;
  right: calc(100% + 8px);
  width: 250px;
  padding: 10px;
  border: 1px solid var(--pw-line);
  border-radius: 14px;
  background: var(--pw-white);
  box-shadow: var(--pw-shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: 160ms ease;
}

.pw-language-en .pw-mega-flyout {
  right: auto;
  left: calc(100% + 8px);
  transform: translateX(-8px);
}

.pw-mega-group--flyout:hover > .pw-mega-flyout,
.pw-mega-group--flyout:focus-within > .pw-mega-flyout {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.pw-mega-flyout a {
  display: block;
}

.pw-mega-menu--contact {
  display: grid;
  width: min(800px, calc(100vw - 36px));
  grid-template-columns: 0.72fr 1.28fr;
  gap: 20px;
}

.pw-mega-contact__details {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 14px;
  border-radius: 14px;
  background: var(--pw-surface);
}

.pw-mega-contact__details > a {
  display: grid;
  gap: 4px;
}

.pw-mega-contact__details strong,
.pw-mega-contact__details span {
  display: block;
}

.pw-mega-contact__details span {
  color: var(--pw-slate);
  font-size: 0.76rem;
}

.pw-mega-contact__form > strong {
  display: block;
  margin-bottom: 10px;
  color: var(--pw-navy);
  font-size: 0.92rem;
}

.pw-career-flyout {
  top: calc(100% + 2px);
  right: 0;
  width: 440px;
  max-height: min(680px, 76vh);
  overflow-y: auto;
}

.pw-language-en .pw-career-flyout {
  right: auto;
  left: 0;
}

.pw-contact-form--compact,
.pw-career-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pw-career-form__wide {
  grid-column: 1 / -1;
}

.pw-contact-form--compact label,
.pw-career-form label {
  display: block;
  margin-bottom: 4px;
  color: var(--pw-navy);
  font-size: 0.7rem;
  font-weight: 750;
}

.pw-contact-form--compact input,
.pw-contact-form--compact textarea,
.pw-career-form input,
.pw-career-form textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--pw-line);
  border-radius: 9px;
  background: var(--pw-white);
  color: var(--pw-ink);
  font-size: 0.76rem;
}

.pw-contact-form--compact textarea,
.pw-career-form--compact textarea {
  min-height: 72px;
}

.pw-career-form:not(.pw-career-form--compact) textarea {
  min-height: 130px;
  resize: vertical;
}

.pw-contact-form--compact .pw-button,
.pw-career-form--compact .pw-button {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 0.75rem;
}

.pw-hero__trust-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pw-site-footer .pw-brand__arka,
.pw-site-footer .pw-brand__text {
  display: inline-flex;
  width: 270px;
  max-width: 100%;
  height: auto;
  min-height: 72px;
  overflow: visible;
  background: var(--pw-white);
}

@media (max-width: 1220px) {
  .pw-header__inner {
    min-height: 82px;
  }

  .pw-nav {
    top: 94px;
  }

  body.admin-bar .pw-nav {
    top: 126px;
  }

  .pw-nav__list--mega > li > a {
    padding: 10px 12px;
    font-size: 0.95rem;
  }

  .pw-mega-menu,
  .pw-menu-has-mega:last-child > .pw-mega-menu {
    position: static;
    display: block;
    width: auto;
    padding: 8px 12px;
    margin: 0 12px 10px;
    border: 0;
    border-inline-start: 2px solid var(--pw-primary);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .pw-mega-grid,
  .pw-mega-menu--contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pw-mega-flyout,
  .pw-language-en .pw-mega-flyout,
  .pw-career-flyout,
  .pw-language-en .pw-career-flyout {
    position: static;
    display: block;
    width: auto;
    max-height: none;
    padding: 6px 12px;
    margin-top: 5px;
    border: 0;
    border-inline-start: 2px solid var(--pw-accent);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    overflow: visible;
    pointer-events: auto;
    transform: none;
  }
}

@media (max-width: 680px) {
  .pw-brand__arka,
  .pw-brand__text {
    min-width: 132px;
    min-height: 78px;
  }

  .pw-brand__arka img {
    max-width: 170px;
    height: 76px;
  }

  .pw-brand__text {
    padding: 6px 9px;
  }

  .pw-brand__text strong {
    font-size: 0.83rem;
  }

  .pw-nav {
    top: 112px;
  }

  body.admin-bar .pw-nav {
    top: 158px;
  }

  .pw-mega-grid,
  .pw-mega-menu--contact,
  .pw-contact-form--compact,
  .pw-career-form {
    grid-template-columns: 1fr;
  }

  .pw-career-form__wide {
    grid-column: auto;
  }

  .pw-mega-contact__form {
    padding-top: 8px;
  }
}
