@font-face {
  font-family: IranSans;
  src: url("assets/IRANSansWeb.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: IranSans;
  src: url("assets/IRANSansWebBold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  --ink: #2e2b36;
  --orange: #e16a4b;
  --orange-dark: #a83d24;
  --soft: #ececec;
  --muted: #595761;
  --line: #e5e3e6;
  --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font: 1rem/1.95 IranSans, Tahoma, sans-serif; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--orange-dark); }
button, input { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.5; }
h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); }
ul { margin: 0; }
address { font-style: normal; }
[id] { scroll-margin-top: 25px; }
.wrap { width: min(calc(100% - 64px), var(--wrap)); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; inset: 10px auto auto 10px; z-index: 20; color: var(--ink); background: #fff; padding: 8px 16px; }
.button { display: inline-block; padding: 10px 24px; min-height: 44px; background: var(--orange); color: #211a1b; font-weight: 700; text-align: center; transition: background .2s, color .2s; }
.button:hover { background: var(--ink); color: #fff; }

.site-header { background: var(--ink); color: #fff; position: relative; z-index: 3; }
.home .site-header { position: absolute; inset: 0 0 auto; background: transparent; }
.top-bar { background: rgba(255,255,255,.25); }
.top-inner, .top-contact, .top-tools { display: flex; align-items: center; gap: 20px; }
.top-inner { justify-content: space-between; min-height: 43px; font-size: .875rem; }
.site-header a:hover { color: #ffd2c5; }
.top-tools { gap: 12px; }
.search-tools { position: relative; }
.search-tools summary { display: grid; place-items: center; width: 32px; height: 34px; list-style: none; }
.search-tools summary::-webkit-details-marker { display: none; }
.search-icon { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-radius: 50%; position: relative; }
.search-icon::after { content: ""; width: 7px; height: 2px; background: currentColor; position: absolute; inset: auto -5px -2px auto; transform: rotate(46deg); }
.search-form { display: flex; position: absolute; inset: 42px auto auto 0; width: min(285px, 82vw); padding: 8px; color: var(--ink); background: #fff; box-shadow: 0 5px 22px #0003; }
.search-form input { min-width: 0; flex: 1; padding: 4px 8px; border: 1px solid var(--line); }
.search-form button { width: 42px; border: 0; background: var(--soft); color: var(--ink); }
.telegram { display: grid; align-items: center; justify-items: center; width: 32px; height: 32px; font-size: 1.25rem; }
.telegram span { transform: rotate(-32deg); }
.nav-row { position: relative; }
.desktop-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(26px, 5vw, 75px); min-height: 92px; }
.desktop-nav > div { display: flex; align-items: center; justify-content: flex-end; gap: clamp(18px, 2.5vw, 38px); }
.desktop-nav > div:last-child { justify-content: flex-start; }
.desktop-nav > div a { position: relative; white-space: nowrap; font-weight: 700; font-size: .9375rem; }
.desktop-nav a[aria-current]::after { content: ""; position: absolute; inset: auto 0 -8px; height: 2px; background: var(--orange); }
.logo { display: inline-flex; flex: none; }
.logo img { object-fit: contain; }
.mobile-brand, .mobile-nav { display: none; }

.hero {
  min-height: max(650px, 100svh);
  display: grid;
  align-items: center;
  background: linear-gradient(100deg, #1e1c24b5, #29263062 65%, #29263071), url("assets/silver-alloy.jpg") center/cover no-repeat, #38333b;
  color: #fff;
  padding: 150px 0 55px;
}
.hero-inner { display: flex; justify-content: flex-end; }
.hero-copy { width: min(100%, 410px); }
.hero h1 { font-size: clamp(2.125rem, 4vw, 2.75rem); margin-bottom: 10px; }
.hero p { font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.65; font-weight: 700; margin-bottom: 25px; }
.intro { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; padding-block: 70px 50px; }
.intro h2::after { content: ""; display: block; width: 70px; border-bottom: 6px double var(--ink); margin-top: 20px; }
.intro p, .section-title p, .holding p { color: var(--muted); }
.products-section { background: var(--soft); padding-block: 70px 100px; }
.section-title { text-align: center; padding: 0 24px 40px; }
.section-title h2 { margin-bottom: 16px; }
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--ink); color: #fff; }
.mosaic-image { position: relative; min-height: 200px; }
.mosaic-image img { width: 100%; height: 100%; position: absolute; inset: 0; transition: opacity .2s; }
.mosaic-image:hover img { opacity: .8; }
.mosaic-text { display: flex; flex-direction: column; justify-content: center; padding: clamp(20px, 3.5vw, 50px); min-height: 200px; }
.mosaic-text h3 { font-size: clamp(1rem, 1.55vw, 1.25rem); margin-bottom: 10px; }
.mosaic-text p { text-align: right; font: .9rem/1.5 Arial, sans-serif; color: #fff; }
.mosaic-text:hover { color: #ffb8a5; }
.action-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; padding: 60px 20px 0; }
.industrial-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.industrial, .customers { padding: 70px clamp(24px, 4vw, 50px); }
.industrial { color: #fff; background: var(--ink); }
.industrial h2, .customers h2 { margin-bottom: 20px; }
.industrial ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 15px; padding-inline-start: 22px; margin-top: 22px; }
.industrial li::marker { color: var(--orange); }
.customer-slides { margin-top: 24px; }
.customer-slide { color: var(--muted); font: 1rem/1.55 Arial, sans-serif; }
.customer-slide blockquote { margin: 0 0 16px; padding: 15px 20px; background: #f4f3f4; }
.customer-name { display: flex; align-items: center; gap: 13px; }
.customer-name img { border-radius: 50%; }
.customer-name small { display: block; }
.carousel-controls { display: flex; justify-content: center; gap: 2px; margin-top: 8px; }
.carousel-controls button { display: grid; place-items: center; width: 27px; height: 32px; padding: 0; background: transparent; border: 0; }
.carousel-controls button::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #77727f; }
.carousel-controls button[aria-pressed="true"]::after { background: var(--orange-dark); }
.experience { display: grid; place-items: center; padding: 12% 22px; background: linear-gradient(#aab3b877,#aab3b877), url("assets/copper-phosphorus.jpg") center/cover; }
.experience h2 { max-width: 100%; padding: 20px 30px; font-size: clamp(1.75rem, 4vw, 2.75rem); background: var(--ink); color: #fff; text-align: center; }
.holding { padding-block: 70px 80px; text-align: center; }
.holding p { margin-block: 20px 27px; }

.site-footer { color: #eee; background: #282630; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; padding-block: 48px; }
.footer-grid h2 { color: #fff; font-size: 1.125rem; margin-bottom: 18px; }
.footer-grid a:hover { color: #ffad98; }
.footer-grid details { border-block-end: 1px solid #65616f; padding-block: 5px; }
.footer-grid details p { margin-top: 5px; }
.footer-posts { list-style: none; padding: 0; }
.footer-posts li + li { margin-top: 12px; }
.footer-posts a { display: flex; align-items: center; gap: 10px; font-size: .875rem; }
.footer-posts img { flex: none; }
.footer-posts small { display: block; color: #d0c9d0; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 72px)); gap: 6px; }
.gallery img { width: 100%; aspect-ratio: 1; }
.footer-bottom { background: #211f28; }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 15px; align-items: center; min-height: 75px; }
.footer-bottom small { font-family: Arial, sans-serif; }
.to-top { position: fixed; z-index: 4; inset: auto auto 18px 18px; width: 44px; height: 44px; color: #fff; background: var(--ink); border: 1px solid #ffffff55; }
.gallery-view { max-width: min(95vw, 1000px); max-height: 90vh; padding: 40px 10px 10px; border: 0; background: #282630; color: #fff; }
.gallery-view::backdrop { background: #000c; }
.gallery-view img { min-width: min(280px, 78vw); max-height: 73vh; object-fit: contain; }
.gallery-close { position: absolute; top: 0; inset-inline-end: 6px; background: transparent; color: #fff; border: 0; font-size: 1.5rem; line-height: 1.5; }

.interior-title { background: var(--soft); padding-block: 45px; }
.interior-title h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
.interior-title p { margin-top: 8px; }
.interior-copy, .catalog, .post-grid { padding-block: 50px 70px; min-height: 295px; }
.interior-copy h2, .interior-copy p { margin-bottom: 18px; }
.interior-copy a:not(.button), .post-grid a { color: var(--orange-dark); text-decoration: underline; }
.contact address { margin-bottom: 20px; }
.catalog, .post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.catalog-card, .post-grid article { border: 1px solid var(--line); }
.catalog-card > img { width: 100%; aspect-ratio: 16/9; }
.catalog-card > div, .post-grid article { padding: 22px; }
.catalog-card h2, .post-grid h2 { font-size: 1.25rem; }
.catalog-card p { text-align: right; margin-block: 8px 16px; }
.post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-grid img { margin-bottom: 14px; }
.post-grid p { margin-block: 6px 14px; }
.catalog-card:target, .post-grid article:target { outline: 2px solid var(--orange); outline-offset: 4px; }
[data-search-results] { list-style: none; padding: 0; }
[data-search-results] li { border-bottom: 1px solid var(--line); padding-block: 9px; }

@media (min-width: 761px) {
  .mosaic > :nth-child(4) { grid-column: 3; grid-row: 1; }
  .mosaic > :nth-child(5) { grid-column: 2; grid-row: 2; }
  .mosaic > :nth-child(6) { grid-column: 1; grid-row: 2; }
}
@media (max-width: 950px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .top-address, .desktop-nav { display: none; }
  .mobile-brand { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
  .menu-toggle { min-height: 44px; padding-inline: 10px; color: #fff; background: transparent; border: 1px solid #ffffff96; }
  .menu-toggle span { margin-inline-end: 4px; }
  .mobile-nav { display: grid; position: absolute; inset: 100% 0 auto; background: var(--ink); padding: 8px 14px; box-shadow: 0 8px 20px #0004; }
  .mobile-nav a { display: block; padding: 7px 9px; }
  .mobile-nav a[aria-current] { color: #ffbfb0; }
  html:not(.has-js) .mobile-nav[hidden] { display: grid !important; position: static; }
  html:not(.has-js) .menu-toggle { display: none; }
  html:not(.has-js) .home .site-header { position: relative; background: var(--ink); }
  .hero { min-height: max(510px, 75svh); padding-top: 135px; background-position: 55% center; }
  .hero-inner { justify-content: center; text-align: center; }
  .intro, .industrial-row { grid-template-columns: 1fr; }
  .intro { padding-block: 50px; gap: 18px; }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic-image, .mosaic-text { min-height: 153px; }
  .products-section { padding-block: 48px 60px; }
  .action-row { padding-top: 36px; }
  .industrial, .customers, .holding { padding-block: 48px; }
  .catalog, .post-grid { grid-template-columns: 1fr; }
}
@media (max-width: 430px) {
  .footer-grid { grid-template-columns: 1fr; gap: 25px; }
  .mosaic-text { padding: 15px; }
  .mosaic-text p { font-size: .8rem; }
  .industrial ul { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
.post-grid .post-note { margin-bottom: 0; color: var(--muted); font-size: .875rem; }
