@layer reset, base, layout, components;

@layer reset {
  *, *::before, *::after { box-sizing: border-box }
  * { margin: 0 }
  ul, ol { padding: 0; list-style: none }
  svg { display: block; max-width: 100% }
  button, input, select, textarea { font: inherit; color: inherit }
  a { color: inherit; text-decoration: none }
  [hidden] { display: none !important }
}

@layer base {
  :root {
    --navy: #1E5B13; --green: #1E5B13; --blue: #4EA72E; --blue-d: #3D8322;
    --ink: #1B2733; --mut: #566372; --line: #D7ECC9; --soft: #EFFBE9;
    --r: 6px; --w: 1200px;
  }
  html { scroll-padding-top: 96px }
  body { font-family: 'Vazirmatn', Tahoma, sans-serif; color: var(--ink); background: #fff; line-height: 1.9; text-wrap: pretty }
  h1, h2, h3 { color: var(--navy); line-height: 1.5; text-wrap: balance }
  p { color: var(--mut) }
  :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } * { transition: none !important } }
}

@layer layout {
  .wrap { width: min(var(--w), 100% - 48px); margin-inline: auto }
  section { padding-block: clamp(56px, 8vw, 96px) }
  .alt { background: var(--soft) }
  .sec-head {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px 48px; align-items: end;
    padding-bottom: 20px; margin-bottom: 40px; border-bottom: 1px solid var(--line);
    h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800 }
  }
  @media (max-width: 800px) { .sec-head { grid-template-columns: 1fr } }
}

@layer components {
  .btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding-inline: 28px;
    border-radius: var(--r); border: 1.5px solid var(--blue); background: var(--blue); color: #fff;
    font-weight: 700; cursor: pointer; transition: background .2s, box-shadow .2s;
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
    &:hover { background: var(--blue-d); box-shadow: 0 8px 20px rgba(0,0,0,.2) }
    &.ghost { background: #fff; color: var(--blue);
      &:hover { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.2) } }
  }

  /* top bar + header */
  .topbar { background: var(--navy); color: #CFEFC2; font-size: 14px;
    .wrap { display: flex; flex-wrap: wrap; gap: 4px 28px; padding-block: 8px } }
  .tel-btn { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 2px 0; display: inline-flex; align-items: center; gap: 6px;
    &:hover { color: #fff; text-decoration: underline } }
  .site { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line) }
  .bar { display: flex; align-items: center; justify-content: flex-start; gap: 44px; min-height: 76px }
  .top-cta { margin-inline-start: auto }
  .logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 20px; color: var(--navy);
    i { width: 42px; height: 42px; border-radius: var(--r); background: var(--navy); display: grid; place-items: center } }
  .nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500;
    a { padding-block: 10px; border-bottom: 2px solid transparent; &:hover { color: var(--blue); border-color: var(--blue) } } }
  .burger { display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; cursor: pointer; place-items: center; margin-inline-start: auto; box-shadow: 0 4px 12px rgba(0,0,0,.1) }

  /* hero */
  .hero { position: relative; padding-block: clamp(60px, 9vw, 120px); overflow: hidden; color: #fff; }
  .hero h1 { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.5) }
  .hero p { color: rgba(255,255,255,.92); text-shadow: 0 1px 4px rgba(0,0,0,.4) }
  .hero-slides { position: absolute; inset: 0; z-index: 0 }
  .hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease; }
  .hero-slide.active { opacity: 1 }
  .hero-slide.s1 { background-image: url('/img/hero-1.jpg') }
  @media (max-width: 700px) { .hero-slide.s1 { background-image: url('/img/hero-1-sm.jpg') } }
  .hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(135deg, rgba(10,30,10,.72) 0%, rgba(20,55,20,.55) 100%) }
  .hero .wrap { position: relative; z-index: 2 }
    h1 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; margin-bottom: 20px }
    p { font-size: 18px; max-width: 56ch }
    .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px } }

  /* forms */
  .form { display: grid; gap: 16px;
    .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px }
    label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 4px }
    input, select, textarea { width: 100%; min-height: 48px; padding: 8px 14px; border: 1px solid #B9C2CE; border-radius: var(--r); background: #fff }
    textarea { min-height: 110px; resize: vertical }
    input:user-invalid { border-color: #A32626 }
    .btn { width: 100% }
    .msg { min-height: 24px; font-size: 14px; font-weight: 500; &.err { color: #A32626 } &.ok { color: #1B6B3A } } }

  /* facts */
  .facts { background: var(--navy); color: #fff; padding-block: 56px 48px; margin-top: -1px; }
  .facts-list { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 0; padding: 0 }
  .facts-list li { text-align: center; padding: 4px 24px; display: flex; flex-direction: column; gap: 8px }
  .facts-list li + li { border-inline-start: 1px solid rgba(255,255,255,.18) }
  .facts-list b { display: block; font-size: clamp(32px, 5vw, 52px); font-weight: 800; line-height: 1.1; color: #fff }
  .facts-list span { font-size: 15px; color: rgba(255,255,255,.85) }
  .facts .facts-sub { color: rgba(255,255,255,.88); font-size: 15px; max-width: 760px; margin: 36px auto 0; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.18); line-height: 2 }

  /* about */
  .about { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px;
    .checks { display: grid; gap: 14px; align-content: start }
    .checks li { display: flex; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; font-weight: 500;
      &::before { content: "✓"; color: var(--blue); font-weight: 800 } } }

  /* services */
  .svc { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; gap: 32px; align-items: start }
  .svc-list { border: 1px solid var(--line); border-radius: 10px; overflow: visible; background: #fff;
    li { position: relative; border-bottom: 1px solid var(--line); transition: box-shadow .25s, transform .25s; z-index: 1;
      &:last-child { border-bottom: 0 }
      button { width: 100%; min-height: 72px; padding: 16px 24px; display: flex; align-items: center; justify-content: center; text-align: center; background: none; border: 0; cursor: pointer; font: inherit; color: inherit }
      h3 { font-size: 17px; font-weight: 700 }
      &.on { z-index: 3; box-shadow: 0 16px 36px rgba(0,0,0,.16); transform: scale(1.04); border-radius: var(--r); background: #fff } } }
  .svc-desc { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 28px; font-size: 16px; color: var(--mut); line-height: 2; min-height: 180px; transition: box-shadow .25s; }
  .svc-desc.on { box-shadow: 0 16px 36px rgba(0,0,0,.16) }
  /* انیمیشن بخش خدمات */
  .svc-list li::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px; background: var(--green); transform: scaleY(0); transform-origin: center; transition: transform .3s; border-radius: 4px }
  .svc-list li.on::before { transform: scaleY(1) }
  .svc-list li button { transition: color .25s, letter-spacing .25s }
  .svc-list li.on button { color: var(--green) }
  .js-anim .svc-list li, .js-anim .svc-desc { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease, box-shadow .25s }
  .js-anim .svc-desc { transform: translateX(-28px) }
  .js-anim .svc.in .svc-list li, .js-anim .svc.in .svc-desc { opacity: 1; transform: none }
  .js-anim .svc.in .svc-list li:nth-child(2) { transition-delay: .12s }
  .js-anim .svc.in .svc-list li:nth-child(3) { transition-delay: .24s }
  .js-anim .svc.in .svc-list li:nth-child(4) { transition-delay: .36s }
  .js-anim .svc.in .svc-desc { transition-delay: .3s }
  .js-anim .svc.in .svc-list li.on { transform: none; transition-delay: 0s }
  .js-anim .svc.in:has(li.on) .svc-desc { opacity: 0 }
  .svc-list li.on { transform: none }
  .svc-desc { transition: opacity .3s }
  .svc:has(li.on) .svc-desc { opacity: 0 }
  .svc-pop { position: absolute; top: 0; inset-inline-start: 100%; width: calc(135% + 32px); padding-inline-start: 32px; z-index: 5; opacity: 0; visibility: hidden; transform: translateX(-14px); transition: opacity .3s, transform .3s, visibility .3s }
  .svc-pop > div { background: #fff; border: 1px solid var(--line); border-right: 4px solid var(--green); border-radius: 10px; padding: 24px 28px; font-size: 16px; color: var(--mut); line-height: 2; box-shadow: 0 16px 36px rgba(0,0,0,.16) }
  .svc-list li.on .svc-pop { opacity: 1; visibility: visible; transform: none }
  @media (max-width: 800px) {
    .svc-desc { display: none }
    .svc-pop { position: static; width: auto; padding: 0; display: grid; grid-template-rows: 0fr; opacity: 1; visibility: visible; transform: none; transition: grid-template-rows .35s ease }
    .svc-pop > div { overflow: hidden; min-height: 0; padding: 0 20px; border: 0; box-shadow: none; border-radius: 0; background: var(--soft, #f6f8f6); font-size: 15px; line-height: 1.9; transition: padding .35s }
    .svc-list li.on .svc-pop { grid-template-rows: 1fr }
    .svc-list li.on .svc-pop > div { padding: 16px 20px }
    .svc-list li button { min-height: 64px }
  }
  @media (prefers-reduced-motion: reduce) { .js-anim .svc-list li, .js-anim .svc-desc { opacity: 1 !important; transform: none !important; animation: none !important } }
  .about-stat { display: grid; grid-template-columns: 1fr; gap: 16px; align-content: start }
  .astat { background: var(--soft); border-radius: 12px; padding: 24px; text-align: center }
  .astat span { display: block; font-size: 40px; font-weight: 800; color: var(--green); line-height: 1.1 }
  .astat p { margin: 8px 0 0; font-size: 14px; color: var(--mut) }
  @media (max-width: 800px) { .svc { grid-template-columns: 1fr } }

  /* products */
  .prod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px }
  .prod-grid.all { grid-template-columns: repeat(4, 1fr) }
  @media (max-width: 1000px) { .prod-grid.all { grid-template-columns: repeat(2, 1fr) } }
  @media (max-width: 560px) { .prod-grid.all { grid-template-columns: 1fr } }
  .prod-carousel { display: flex; align-items: center; gap: 16px }
  .prod-viewport { flex: 1; overflow: hidden }
  .prod-track { display: flex; gap: 24px; transition: transform .5s cubic-bezier(.22,.61,.36,1);
    .pc { flex: none } }
  .arrow { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--blue); font-size: 16px; cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s, box-shadow .2s; box-shadow: 0 4px 12px rgba(0,0,0,.12);
    &:hover:not(:disabled) { background: var(--blue); color: #fff }
    &:disabled { opacity: .35; cursor: default } }
  .prod-more { text-align: center; margin-top: 32px }
  .oos-badge { display: inline-block; background: var(--red, #A32626); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; z-index: 1; }
  .pc.oos .ph img { filter: grayscale(.5); opacity: .7 }
  .oos-badge.large { margin: 8px 0 }
  .price-badge { display: grid; place-items: center; text-align: center; background: #C0262B; color: #fff; font-size: 13px; font-weight: 800; line-height: 1.4; min-width: 46px; padding: 4px 12px; border-radius: 8px; z-index: 1; box-shadow: 0 2px 6px rgba(0,0,0,.2) }
  .ph .price-badge { position: absolute; bottom: 10px; left: 10px; top: auto; right: auto }
  .price-badge.large { display: inline-grid; margin: 8px 0 }

  /* گروه‌های تصویری */
  .groups-carousel { margin-bottom: 24px }
  .gcard { position: relative; flex: none; display: grid; align-content: start; gap: 10px; padding: 0 0 12px; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; cursor: pointer; text-align: center; font: inherit; color: var(--navy); box-shadow: 0 2px 10px rgba(0,0,0,.06); transition: border-color .2s, box-shadow .2s;
    .gimg { display: block; aspect-ratio: 4/3; background: repeating-linear-gradient(90deg, #DCF2D1 0 1px, #EFFBE9 1px 48px) }
    img { display: block; width: 100%; height: 100%; object-fit: cover }
    b { font-size: 16px; padding-inline: 8px }
    &:hover { border-color: var(--blue); box-shadow: 0 10px 18px -8px rgba(0,0,0,.28) }
    &.on { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 10px 18px -8px rgba(30,91,19,.6);
      &::after { content: ""; position: absolute; inset: 0; border: 4px solid var(--blue); border-radius: inherit; box-shadow: inset 0 0 14px rgba(142,217,115,.9); pointer-events: none } } }
.groups-carousel .prod-viewport { padding-block: 6px 22px; margin-block: -6px -22px }
  .prod-divider { border: 0; border-top: 1px solid var(--line); margin: 0 0 32px }
  .pc { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s;
    &:hover { border-color: var(--blue) }
    .oos-badge { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 1 }
    .ph { aspect-ratio: 16/9; background: repeating-linear-gradient(90deg, #DCF2D1 0 1px, #EFFBE9 1px 48px); display: grid; place-items: center; color: var(--mut); font-size: 14px; border-bottom: 1px solid var(--line) }
    .b { padding: 24px; display: grid; gap: 12px; flex: 1; align-content: start }
    h3 { font-size: 20px }
    table { width: 100%; border-collapse: collapse; font-size: 14px; margin-block: 4px 8px }
    th, td { text-align: start; padding: 8px 0; border-bottom: 1px solid var(--line) }
    th { font-weight: 500; color: var(--mut); width: 45% }
    .btn { margin-top: auto }
    .btn::after { content: ""; position: absolute; inset: 0 } }
  .ph { background: repeating-linear-gradient(90deg, #DCF2D1 0 1px, #EFFBE9 1px 48px); display: grid; place-items: center; color: var(--mut); font-size: 14px; text-align: center; padding: 12px }
  .nav a[aria-current="page"] { color: var(--blue); border-color: var(--blue) }
  .crumbs { background: var(--soft); border-bottom: 1px solid var(--line); font-size: 14px;
    ol { display: flex; flex-wrap: wrap; gap: 4px 10px; padding-block: 12px }
    li + li::before { content: "‹"; margin-inline-end: 10px; color: var(--mut) }
    a:hover { color: var(--blue) } [aria-current] { color: var(--mut) } }
  .pd-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start;
    h1 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; margin-bottom: 16px }
    .sum { font-size: 18px } }
  .gallery { display: grid; gap: 12px;
    > .ph { border: 1px solid var(--line); border-radius: var(--r); aspect-ratio: 4/3 }
    .thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
      .ph { border: 1px solid var(--line); border-radius: var(--r); aspect-ratio: 4/3; font-size: 12px } } }
  .quick { display: grid; grid-template-columns: repeat(3, 1fr); margin: 24px 0 0; border: 1px solid var(--line); border-radius: var(--r);
    div { padding: 14px 16px; border-inline-start: 1px solid var(--line); &:first-child { border-inline-start: 0 } }
    dt { font-size: 13px; color: var(--mut) } dd { margin: 0; font-weight: 700; color: var(--navy) } }
  .pd-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px }
  .pd-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 56px; align-items: start; margin-top: 64px;
    h2 { font-size: 24px; margin: 40px 0 12px; &:first-child { margin-top: 0 } }
    p + p { margin-top: 12px } }
  .tick { display: grid; gap: 10px;
    li { display: flex; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r); &::before { content: "✓"; color: var(--blue); font-weight: 800 } } }
  .spec { width: 100%; border-collapse: collapse;
    th, td { text-align: start; padding: 12px 16px; border: 1px solid var(--line) }
    th { background: var(--soft); width: 38%; font-weight: 700; color: var(--navy) } }
  .aside { position: sticky; top: 104px; border: 1px solid var(--line); border-radius: 10px; padding: 24px; display: grid; gap: 12px; background: var(--soft);
    h3 { font-size: 18px } .btn { width: 100% } }
  .more { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px;
    a { display: block; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; font-weight: 700; color: var(--navy); &:hover { border-color: var(--blue) }
      span { display: block; font-weight: 400; color: var(--mut); font-size: 14px } } }
  @media (max-width: 900px) {
    .pd-top, .pd-grid { grid-template-columns: minmax(0, 1fr); gap: 32px } .pd-grid { margin-top: 40px } .aside { position: static }
    .quick { grid-template-columns: 1fr; div { border-inline-start: 0; border-top: 1px solid var(--line); &:first-child { border-top: 0 } } }
  }

  /* certs */
  .certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
  @media (max-width: 900px) { .certs { grid-template-columns: repeat(2, 1fr) } }
  @media (max-width: 500px) { .certs { grid-template-columns: 1fr } }
  .cert-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-align: center; padding: 24px 16px }
  .cert-card .cert-img { min-height: 120px; display: flex; align-items: center; justify-content: center; background: var(--soft); border-radius: 8px; margin-bottom: 12px; font-size: 13px; color: var(--mut) }
  .cert-card img { max-width: 100%; max-height: 120px; object-fit: contain }
  .cert-card p { font-size: 13px; color: var(--navy); font-weight: 600; margin: 0 } }

  /* process */
  .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; counter-reset: p;
    li { padding: 24px; border-inline-start: 1px solid var(--line); counter-increment: p;
      &::before { content: counter(p, persian-num); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 12px }
      h3 { font-size: 18px } } }

  /* faq */
  .faq { max-width: 860px;
    details { border-bottom: 1px solid var(--line) }
    summary { cursor: pointer; padding-block: 20px; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 16px; min-height: 48px;
      &::after { content: "+"; font-size: 24px; line-height: 1; color: var(--blue) } }
    details[open] summary::after { content: "−" }
    details p { padding-bottom: 20px } }

  /* contact */
  .contact .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start }
  .info { display: grid; gap: 0; margin-top: 24px;
    div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--line) }
    dt { font-weight: 700; color: var(--navy) } dd { margin: 0; color: var(--mut) } }
  .card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 32px }

  /* footer */
  footer { background: var(--navy); color: #BFE8AE; font-size: 14px;
    .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-block: 48px }
    h3 { color: #fff; font-size: 16px; margin-bottom: 8px }
    p { color: #BFE8AE }
    li a { display: inline-block; padding-block: 4px; &:hover { color: #fff } }
    .copy { border-top: 1px solid #2A5A1C; padding-block: 18px } }

  @counter-style persian-num { system: numeric; symbols: "۰" "۱" "۲" "۳" "۴" "۵" "۶" "۷" "۸" "۹" }

  @media (max-width: 900px) {
    .hero .wrap, .about, .contact .wrap, footer .cols { grid-template-columns: 1fr; gap: 40px }
    .hero .wrap { max-width: none; margin-inline-start: 0 }
    .burger { display: grid }
    .site .btn.top-cta { display: none }
    .nav { display: none; position: absolute; inset-inline: 0; top: 100%; flex-direction: column; gap: 0; padding: 8px 24px 16px; background: #fff; border-bottom: 1px solid var(--line);
      a { padding-block: 14px; border-bottom: 1px solid var(--line); text-align: center } }
    .nav.open { display: flex }
    .svc-list li { grid-template-columns: 48px 1fr; row-gap: 4px; p { grid-column: 2 } }
    .facts { margin-top: -28px }
    .steps li { border-inline-start: 0; border-top: 1px solid var(--line) }
  }
  @media (max-width: 520px) { .form .row { grid-template-columns: 1fr } .cta .btn { width: 100% } .info div { grid-template-columns: 1fr; gap: 0 } }
}

@layer components {
  .ph { position: relative; overflow: hidden; &:has(img) { padding: 0 } img { display: block; width: 100%; height: 100%; object-fit: cover } }
  .thumbs button { padding: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: none; cursor: pointer; aspect-ratio: 4/3;
    img { width: 100%; height: 100%; object-fit: cover } &[aria-current="true"] { border-color: var(--blue); outline: 2px solid var(--blue) } }
}
.sr { position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0 }

/* صفحات داخلی */
.page-hero { background: var(--soft); color: var(--navy); padding-block: 40px 36px; border-bottom: 1px solid var(--line) }
.page-hero h1 { color: var(--navy); font-size: clamp(22px, 3vw, 36px); margin-top: 12px }
.page-hero .crumbs { background: none; border: 0 }
.page-hero .crumbs ol { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; font-size: 13px; color: var(--mut) }
.page-hero .crumbs li + li::before { content: '/'; margin-left: 8px }
.page-hero .crumbs a { color: var(--blue-d); text-decoration: none }
.page-hero .crumbs a:hover { text-decoration: underline }
.page-hero .crumbs [aria-current] { color: var(--ink); font-weight: 700 }

  @media (max-width: 520px) {
    .facts { padding-block: 40px 36px }
    .facts-list li { padding-inline: 8px }
    .facts-list span { font-size: 13px }
    .facts .facts-sub { margin-top: 28px; padding-top: 20px; font-size: 14px }
  }

  .logo-img { gap: 12px }
  .logo-txt { display: flex; align-items: center }
  .logo-txt b { font-size: 20px; font-weight: 800; color: var(--navy) }

/* روند همکاری: ۴ باکس کنار هم */
@counter-style fa-num { system: numeric; symbols: "۰" "۱" "۲" "۳" "۴" "۵" "۶" "۷" "۸" "۹"; }
#process .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: step }
#process .steps li { counter-increment: step; position: relative; display: flex; flex-direction: column; gap: 8px; padding: 28px 22px 24px; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; border-inline-start: 1px solid var(--line); border-top: 1px solid var(--line); transition: transform .2s, box-shadow .2s }
#process .steps li:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(30,91,19,.12) }
#process .steps li::before { content: counter(step, fa-num); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 8px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 18px; font-weight: 800 }
#process .steps h3 { font-size: 18px; line-height: 1.6; color: var(--navy); margin: 0 }
#process .steps p { font-size: 14.5px; line-height: 2; margin: 0 }
@media (max-width: 1000px) { #process .steps { grid-template-columns: repeat(2, 1fr) } }
@media (max-width: 560px) { #process .steps { grid-template-columns: 1fr } }

/* خدمات: زیرعنوان در یک خط (دسکتاپ) */
@media (min-width: 1000px) {
  .sec-head:has(.one-line) { grid-template-columns: 1fr; align-items: start }
  .sec-head .one-line { white-space: nowrap }
}
/* موبایل: بخش اول سایت وسط‌چین */
@media (max-width: 900px) {
  .hero .wrap > div { text-align: center }
  .hero .cta { justify-content: center }
}
@media (max-width: 520px) {
  .hero .cta { flex-direction: column; align-items: center }
  .hero .cta .btn { width: 100%; max-width: 320px }
}

/* تماس با ما: سبز کمرنگ */
.contact { background: var(--soft); border-top: 1px solid var(--line) }
.contact.plain { background: transparent; border-top: 0 }
.contact.plain .card { background: var(--soft); border-color: var(--line) }

/* فرم تماس: سبز کمرنگ فقط وقتی پس‌زمینه‌ی بخش سفید است (صفحه‌ی اصلی) */
.contact.plain .card { background: #E4F5D9; border-color: #BFE3AB }
.contact.plain .form input, .contact.plain .form select, .contact.plain .form textarea { background: var(--soft); border-color: #A9D68F; color: var(--ink) }
.contact.plain .form input:focus, .contact.plain .form select:focus, .contact.plain .form textarea:focus { background: #fff; border-color: var(--blue); outline: 2px solid rgba(78,167,46,.25); outline-offset: 0 }
.contact.plain .form select option { background: var(--soft); color: var(--ink) }

/* موبایل/تبلت: کادر محتوای هیرو دقیقاً وسط صفحه */
@media (max-width: 900px) {
  .hero .wrap { margin-inline: auto; max-width: none; justify-items: center }
  .hero .wrap > div { width: 100%; text-align: center }
  .hero .wrap p { margin-inline: auto }
}

/* متن‌های طولانی بدون فاصله، صفحه محصول را از قاب بیرون نبرند */
#pd p, #pd li, #pd h1, #pd td, #pd th { overflow-wrap: anywhere }

/* عکس عمودی یا بلند نباید قاب را بکشد: قاب نسبت ثابت دارد و عکس داخلش برش (cover) می‌خورد */
.ph, .gimg { position: relative; overflow: hidden; min-height: 0 }
.ph:not([style*="aspect"]) { aspect-ratio: 4/3 }
.ph > img, .gimg > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
