@font-face {
  font-family: VazirFallback;
  src: local("Tahoma");
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: #071a31;
  color: #fff;
  font-family: VazirFallback, Tahoma, Arial, sans-serif;
  line-height: 1.9
}

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

.container {
  width: min(1120px, 92%);
  margin: auto
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #081a31eF;
  border-bottom: 1px solid #263c55;
  backdrop-filter: blur(12px)
}

.nav {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between
}

.logo {
  height: 70px;
  width: auto;
  object-fit: contain;
  border-radius: 8px
}

.menu {
  display: flex;
  gap: 28px;
  font-size: 15px;
  color: #e8edf3
}

.menu a:hover {
  color: #f6c72b
}

.hero {
  min-height: 680px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 20%, #263b50 0 18%, transparent 19%),
    linear-gradient(135deg, #14283b 0%, #0a2545 58%, #071a31 100%)
}

.hero:after {
  content: "";
  position: absolute;
  left: -12%;
  top: -15%;
  width: 70%;
  height: 125%;
  border-radius: 50%;
  background: #26374655
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0 65px;
  text-align: center;
  max-width: 900px;
  margin: auto
}

.badge {
  display: inline-block;
  border: 1px solid #8b7927;
  background: #27383f;
  color: #f6d34c;
  border-radius: 999px;
  padding: 6px 20px;
  font-weight: 700
}

h1 {
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.25;
  margin: 25px 0 15px;
  font-weight: 900
}

.gold {
  color: #f6c72b
}

.hero p {
  font-size: 20px;
  color: #d7e0e8;
  max-width: 820px;
  margin: 0 auto 30px
}

.hero-workshop {
  display: block;
  width: min(100%, 860px);
  height: 330px;
  object-fit: cover;
  border-radius: 22px;
  margin: 30px auto 28px;
  border: 2px solid #f6c72b;
  box-shadow: 0 18px 45px #0006
}

.btn {
  display: inline-block;
  background: #f6c72b;
  color: #081a31;
  padding: 14px 32px;
  border-radius: 18px;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 12px 30px #0005
}

.section {
  padding: 80px 0
}

.section-title {
  text-align: center;
  font-size: 34px;
  margin: 0 0 12px
}

.section-sub {
  text-align: center;
  color: #aebdcc;
  margin: 0 auto 40px;
  max-width: 900px
}

.activities-intro {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.8;
  letter-spacing: .1px;
  color: #e8edf3;
  font-family: Georgia, "Times New Roman", Tahoma, Arial, sans-serif
}

.workshop {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid #395168;
  box-shadow: 0 25px 70px #0006;
  background: #12283d
}

.workshop img {
  display: block;
  width: 100%;
  height: auto
}

.center {
  text-align: center;
  margin-top: 28px
}

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

.card {
  background: #10263b;
  border: 1px solid #2b4259;
  border-radius: 24px;
  padding: 28px;
  transition: .25s;
  box-shadow: 0 15px 40px #0003
}

.card:hover {
  transform: translateY(-5px);
  border-color: #f6c72b
}

.num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f6c72b;
  color: #081a31;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 14px
}

.card h3 {
  font-size: 22px;
  margin: 0 0 10px
}

.main-activity-title {
  color: #ffd21f;
  font-weight: 900;
  text-align: center;
  font-family: Georgia, "Times New Roman", Tahoma, Arial, sans-serif;
  font-size: 28px;
  line-height: 1.7;
  margin: 0 0 14px;
  text-shadow: 0 1px 0 #0006
}

.card p {
  color: #b9c7d3;
  margin: 0 0 18px
}

.sub-img {
  display: block;
  width: min(100%, 760px);
  max-height: 430px;
  object-fit: cover;
  border-radius: 18px;
  margin: 16px auto 24px;
  border: 1px solid #34495e;
  box-shadow: 0 12px 30px #0005
}

.sub {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed #3a5269;
  color: #dce4eb
}

.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px
}

.product {
  background: #0e2235;
  border: 1px solid #2c465e;
  border-radius: 24px;
  overflow: hidden
}

.product-img {
  height: 210px;
  background: linear-gradient(135deg, #27394a, #101d2a);
  display: flex;
  align-items: center;
  justify-content: center
}

.product-body {
  padding: 24px
}

.product-body h4 {
  font-size: 22px;
  margin: 0 0 8px;
  color: #f6c72b
}

.product-body p {
  color: #bcc9d4;
  margin: 0
}

.machine-photo {
  width: 100%;
  border-radius: 28px;
  display: block;
  box-shadow: 0 20px 60px #0005;
  border: 1px solid #2f475e
}

.about {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: stretch
}

.panel {
  background: #10263b;
  border: 1px solid #2c455d;
  border-radius: 24px;
  padding: 30px
}

.panel strong {
  color: #f6c72b
}

.footer {
  background: #061525;
  border-top: 1px solid #263c55;
  padding: 45px 0;
  color: #aebdca
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px
}

.mobile {
  display: none
}

@media(max-width:800px) {
  .menu {
    display: none
  }

  .mobile {
    display: block;
    color: #fff;
    font-size: 34px
  }

  .cards,
  .products,
  .about,
  .footer-grid {
    grid-template-columns: 1fr
  }

  .hero {
    min-height: 620px
  }

  .hero p {
    font-size: 17px
  }

  .hero-workshop {
    height: 230px;
    margin: 24px auto 22px;
    border-radius: 16px
  }

  h1 {
    font-size: 44px
  }

  .section {
    padding: 58px 0
  }

  .logo {
    height: 66px
  }
}

.fiber-card {
  grid-column: 1/-1;
  margin-top: 24px
}

.fiber-title {
  color: #ffd21f;
  font-weight: 900;
  text-align: center;
  font-family: Georgia, "Times New Roman", Tahoma, Arial, sans-serif;
  font-size: 30px;
  line-height: 1.7;
  margin: 0 0 22px;
  text-shadow: 0 1px 0 #0006
}

.fiber-item {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px dashed #3a5269;
  text-align: center
}

.fiber-item:first-of-type {
  border-top: 0;
  padding-top: 0
}

.fiber-item h4 {
  color: #f6c72b;
  font-size: 24px;
  margin: 0 0 12px;
  font-weight: 900
}

.fiber-item p {
  color: #b9c7d3;
  margin: 0 0 14px
}

.fiber-img {
  display: block;
  width: min(100%, 760px);
  max-height: 500px;
  object-fit: contain;
  border-radius: 18px;
  margin: 14px auto 10px;
  border: 1px solid #34495e;
  box-shadow: 0 12px 30px #0005;
  background: #0b1b2d
}

@media(max-width:800px) {
  .fiber-card {
    grid-column: 1
  }

  .fiber-title {
    font-size: 25px
  }

  .fiber-item h4 {
    font-size: 21px
  }
}

/* هماهنگ‌سازی دو کادر اصلی حوزه‌های فعالیت */
.activity-box {
  border: 2px solid #f6c72b !important;
  border-radius: 26px;
  background: #10263b;
  padding: 30px;
  box-shadow: 0 15px 40px #0004;
}

.activity-box .main-activity-title,
.activity-box .fiber-title {
  color: #ffd21f;
  font-weight: 900;
  text-align: center;
  font-family: Georgia, "Times New Roman", Tahoma, Arial, sans-serif;
  font-size: 30px;
  line-height: 1.7;
  margin: 0 0 18px;
  text-shadow: 0 1px 0 #0006;
}

.activity-box p,
.activity-box .fiber-item p,
.activity-box .sub {
  color: #b9c7d3;
  font-family: VazirFallback, Tahoma, Arial, sans-serif;
}

.activity-box .fiber-item h4,
.activity-box .sub b {
  color: #f6c72b;
  font-family: VazirFallback, Tahoma, Arial, sans-serif;
  font-weight: 900;
}

@media(max-width:800px) {
  .activity-box {
    padding: 22px;
  }

  .activity-box .main-activity-title,
  .activity-box .fiber-title {
    font-size: 25px;
  }
}

/* بخش‌های جدید سایت: همان زبان بصری دو کادر اصلی */
.additional-box {
  margin-top: 28px;
}

.output-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.output-image-wrap {
  background: #0b1b2d;
  border: 1px solid #34495e;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px #0005;
}

.output-img {
  display: block;
  width: 100%;
  height: 270px;
  object-fit: cover;
}

.additional-box .main-activity-title {
  font-size: 30px;
}

@media(max-width:800px) {
  .output-gallery {
    grid-template-columns: 1fr;
  }

  .output-img {
    height: auto;
    max-height: 500px;
    object-fit: contain;
  }

  .additional-box .main-activity-title {
    font-size: 25px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0
}

.nav {
  position: relative
}

.hamburger-btn {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 10px;
  order: 0
}

.hamburger-btn:hover {
  background: #ffffff12;
  color: #f6c72b
}

.lang-wrap {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  z-index: 2
}

.lang-select {
  background: #10263b;
  color: #f6c72b;
  border: 1px solid #f6c72b;
  border-radius: 10px;
  padding: 7px 12px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  outline: none
}

.lang-select option {
  background: #10263b;
  color: #fff
}

.side-menu {
  position: fixed;
  top: 20px;
  left: 20px;
  width: min(330px, 86vw);
  height: auto;
  max-height: calc(100vh - 40px);
  background: #081a31;
  z-index: 100;
  padding: 78px 18px 22px;
  transform: translateX(calc(-100% - 40px));
  transition: transform .28s ease;
  box-shadow: 20px 0 60px #0008;
  overflow: auto;
  border: 2px solid #f6c72b;
  border-radius: 22px
}

.side-menu.open {
  transform: translateX(0)
}

.side-menu .side-link {
  border-bottom: 2px solid #f6c72b;
  border-radius: 10px;
  margin: 0;
  padding: 15px 12px
}

.menu-group .side-link {
  display: flex;
  justify-content: space-between;
  align-items: center
}

.submenu {
  margin: 8px 0 8px 10px;
  border-right: 2px solid #f6c72b;
  border-radius: 0 10px 10px 0
}

.submenu .sub-link {
  font-size: 14px;
  padding: 12px 12px 12px 8px;
  border-bottom: 1px solid #f6c72b;
  border-radius: 8px
}

.menu-caret {
  font-size: 20px;
  color: #f6c72b;
  line-height: 1
}

.menu-group .submenu {
  display: block
}

.side-close {
  position: absolute;
  top: 20px;
  right: 18px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 38px;
  cursor: pointer
}

.side-link {
  display: block;
  padding: 15px 16px;
  margin: 7px 0;
  border-radius: 12px;
  color: #e8edf3;
  font-size: 17px;
  font-weight: 800;
  border: 1px solid transparent
}

.side-link:hover {
  color: #081a31;
  background: #f6c72b
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: #0008;
  z-index: 90;
  display: none
}

.menu-overlay.open {
  display: block
}

html[dir="ltr"] .side-menu {
  left: auto;
  right: 20px;
  transform: translateX(calc(100% + 40px))
}

html[dir="ltr"] .side-menu.open {
  transform: translateX(0) !important
}

html[dir="ltr"] .hamburger-btn {
  order: 0
}

.logo {
  order: 2
}

.lang-wrap {
  order: 1
}

@media(max-width:800px) {
  .nav {
    height: 82px
  }

  .logo {
    height: 66px
  }

  .lang-select {
    padding: 6px 8px;
    font-size: 13px
  }

  .lang-wrap {
    position: absolute
  }

  .hamburger-btn {
    font-size: 32px
  }

  .side-menu {
    padding-top: 72px
  }
}