@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #073b4c;
  --primary-strong: #052b38;
  --accent: #ef6a4b;
  --accent-hover: #d95739;
  --surface: #ffffff;
  --background: #f5f7f8;
  --sand: #e9e2d7;
  --text: #12252d;
  --muted: #607179;
  --border: #dce4e7;
  --radius: 22px;
  --shadow: 0 22px 60px rgba(5, 43, 56, 0.1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  direction: inherit;
  color: var(--text);
  background: var(--surface);
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; right: 16px; z-index: 100; background: var(--surface); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.site-header.is-scrolled { border-color: var(--border); box-shadow: 0 8px 24px rgba(5,43,56,.06); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand-logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand-logo img { width: 142px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.main-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 15px; border-radius: 12px; color: #30464f; font-weight: 600; font-size: .94rem; }
.main-nav a:hover, .main-nav a[aria-current='page'] { color: var(--primary); background: #eef4f5; }
.main-nav .language-switch { border: 1px solid var(--border); font-family: Arial, sans-serif; font-weight: 800; }
.header-contact { color: var(--primary); border: 1px solid var(--primary); border-radius: 13px; padding: 8px 16px; font-weight: 700; }
.header-contact:hover { background: var(--primary); color: #fff; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: #eef4f5; border-radius: 13px; position: relative; }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { content: ''; width: 21px; height: 2px; background: var(--primary); position: absolute; right: 12px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle::before { top: 15px; }
.nav-toggle span { top: 22px; }
.nav-toggle::after { top: 29px; }
.nav-toggle[aria-expanded='true']::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span { opacity: 0; }
.nav-toggle[aria-expanded='true']::after { transform: translateY(-7px) rotate(-45deg); }

.hero { position: relative; min-height: 620px; display: grid; align-items: center; overflow: hidden; background: var(--primary-strong); color: #fff; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,43,56,.15) 5%, rgba(5,43,56,.72) 58%, rgba(5,43,56,.98) 100%), url('../images/hero.webp') center/cover no-repeat; }
.hero::after { content: ''; position: absolute; width: 420px; height: 420px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; right: -150px; top: -190px; box-shadow: 0 0 0 75px rgba(255,255,255,.025), 0 0 0 150px rgba(255,255,255,.02); }
.hero-inner { position: relative; z-index: 1; padding-block: 110px; }
.hero-content { max-width: 690px; }
.hero-kicker, .eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--accent); font-size: .86rem; font-weight: 800; letter-spacing: .02em; }
.hero-kicker::before, .eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: 1.15; margin: 14px 0 18px; letter-spacing: -.045em; }
.hero p { max-width: 610px; margin: 0 0 34px; font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 2; color: #dce8eb; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; padding: 11px 22px; font-weight: 800; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--accent); color: #fff; }
.button--primary:hover { background: var(--accent-hover); }
.button--ghost { color: #fff; border: 1px solid rgba(255,255,255,.45); }
.button--ghost:hover { background: #fff; color: var(--primary); }
.button--dark { background: var(--primary); color: #fff; }
.button--outline { color: var(--primary); border: 1px solid var(--primary); }

.section { padding-block: 96px; }
.section--soft { background: var(--background); }
.section--sand { background: #f3eee8; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 38px; }
.section-heading h2, .split-copy h2, .page-hero h1 { margin: 8px 0 0; line-height: 1.35; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.035em; }
.section-heading p { max-width: 540px; color: var(--muted); margin: 0; }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; }
.split-copy p { color: var(--muted); margin: 20px 0 28px; }
.signature-stat { position: relative; min-height: 410px; border-radius: 32px; overflow: hidden; background: var(--primary); color: #fff; display: flex; align-items: end; padding: 34px; box-shadow: var(--shadow); }
.signature-stat::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 15%, rgba(5,43,56,.93) 92%), url('../images/hero.webp') center/cover; transform: scale(1.02); }
.signature-stat__content { position: relative; z-index: 1; }
.signature-stat strong { display: block; font-size: 2rem; margin-bottom: 5px; }
.signature-stat span { color: #d5e2e5; }

.brand-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.brand-card { min-height: 300px; padding: 34px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; display: grid; grid-template-columns: 170px 1fr; gap: 32px; align-items: center; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.brand-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.brand-card__logo { height: 155px; display: grid; place-items: center; border-radius: 18px; background: #f7f8f9; padding: 20px; }
.brand-card__logo img { max-height: 110px; object-fit: contain; }
.brand-card h3 { font-size: 1.8rem; margin: 3px 0 4px; }
.brand-card p { color: var(--muted); margin: 12px 0 0; }
.brand-country { color: var(--accent); font-weight: 800; font-size: .88rem; }

.benefit-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.benefit-card { padding: 26px; border-top: 2px solid var(--accent); background: #fff; box-shadow: 0 12px 35px rgba(5,43,56,.06); border-radius: 0 0 18px 18px; }
.benefit-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: #eaf1f3; color: var(--primary); font-size: 1.25rem; font-weight: 800; }
.benefit-card h3 { margin: 17px 0 6px; font-size: 1.06rem; }
.benefit-card p { margin: 0; color: var(--muted); font-size: .92rem; }

.products-preview { border: 1px solid var(--border); border-radius: 30px; min-height: 310px; background: linear-gradient(135deg,#f8fafb,#edf3f4); display: grid; place-items: center; text-align: center; padding: 42px; }
.empty-products { width: min(640px,100%); margin: auto; text-align: center; padding: 42px 20px; }
.empty-products__mark { width: 62px; height: 62px; display: grid; place-items: center; margin: 0 auto 19px; border-radius: 50%; background: var(--sand); color: var(--primary); font-size: 1.65rem; }
.empty-products h1, .empty-products h2 { margin: 0 0 10px; font-size: clamp(1.55rem,3vw,2.25rem); line-height: 1.45; }
.empty-products p { margin: 0 auto 24px; color: var(--muted); }

.cta { margin-bottom: 0; background: var(--primary); color: #fff; border-radius: 32px; padding: 52px; display: flex; justify-content: space-between; align-items: center; gap: 30px; overflow: hidden; position: relative; }
.cta::after { content: ''; position: absolute; width: 250px; height: 250px; left: -85px; top: -110px; border: 36px solid rgba(255,255,255,.04); border-radius: 50%; }
.cta h2 { position: relative; z-index: 1; max-width: 700px; margin: 0; font-size: clamp(1.65rem,3vw,2.4rem); line-height: 1.55; }
.cta .button { position: relative; z-index: 1; flex: 0 0 auto; }

.page-hero { background: var(--primary-strong); color: #fff; padding-block: 82px 72px; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; left: -80px; top: -190px; width: 430px; height: 430px; border: 75px solid rgba(255,255,255,.025); border-radius: 50%; }
.page-hero .eyebrow { color: #ff8a70; }
.page-hero p { max-width: 670px; color: #d2e0e3; margin: 18px 0 0; }
.catalog-toolbar { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 12px; margin-bottom: 26px; }
.field { width: 100%; min-height: 52px; border: 1px solid var(--border); border-radius: 13px; background: #fff; color: var(--text); padding: 11px 15px; outline: none; }
.field:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(239,106,75,.12); }
.products-grid { min-height: 310px; border: 1px dashed #bdcbd0; border-radius: 24px; display: grid; place-items: center; }
.products-grid, .home-products-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; border: 0; border-radius: 0; align-items: stretch; }
.home-products-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.product-card { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 20px; background: #fff; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.product-card__image { display: block; aspect-ratio: 4 / 3; background: linear-gradient(145deg,#f0f5f6,#e4ecee); padding: 18px; }
.product-card__image img { width: 100%; height: 100%; object-fit: contain; }
.product-placeholder { width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--primary); border: 1px dashed #b7c8cd; border-radius: 14px; }
.product-placeholder span { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: var(--primary); color: #fff; font-size: 1.65rem; font-weight: 800; font-family: Arial,sans-serif; }
.product-placeholder small { color: var(--muted); }
.product-card__body { padding: 20px; }
.product-card__brand { color: var(--accent); font-size: .84rem; font-weight: 800; }
.product-card h2 { margin: 5px 0 12px; font-size: 1.35rem; letter-spacing: .01em; text-align: start; }
.product-card__meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.product-card__meta span { padding: 4px 9px; border-radius: 8px; background: var(--background); color: var(--muted); font-size: .78rem; }
.text-link { color: var(--primary); font-weight: 800; font-size: .9rem; }
.back-link { display: inline-flex; margin-bottom: 24px; color: var(--primary); font-weight: 800; }
.product-detail__hero { display: grid; grid-template-columns: .9fr 1.1fr; gap: 54px; align-items: center; }
.product-detail__visual, .product-detail__intro { min-width: 0; }
.product-detail__visual { min-height: 440px; padding: 26px; border-radius: 28px; background: linear-gradient(145deg,#eef4f5,#dfe9eb); }
.product-detail__visual img { width: 100%; height: 388px; object-fit: contain; }
.product-placeholder--large { min-height: 388px; border-radius: 20px; }
.product-placeholder--large span { width: 84px; height: 84px; font-size: 2.4rem; border-radius: 22px; }
.product-detail__intro h1 { margin: 10px 0; font-size: clamp(2.6rem,6vw,4.8rem); line-height: 1.15; overflow-wrap: anywhere; }
.product-detail__intro > p { color: var(--muted); }
.product-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 25px 0; }
.product-facts div { padding: 13px 15px; border: 1px solid var(--border); border-radius: 13px; background: #fff; }
.product-facts small { display: block; color: var(--muted); }
.product-facts strong { display: block; }
.product-detail__content { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.detail-panel { min-width: 0; padding: 30px; background: #fff; border: 1px solid var(--border); border-radius: 22px; }
.detail-panel h2 { margin: 6px 0 20px; }
.table-wrap { width: 100%; max-width: 100%; overflow-x: auto; }
.analysis-table { width: 100%; border-collapse: collapse; min-width: 430px; }
.analysis-table th, .analysis-table td { padding: 11px 10px; border-bottom: 1px solid var(--border); text-align: start; }
.analysis-table thead th { color: var(--muted); font-size: .85rem; }
.analysis-table td { color: var(--primary); font-weight: 800; }
.check-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.check-list li { position: relative; padding-inline-start: 28px; }
.check-list li::before { content: '✓'; position: absolute; inset-inline-start: 0; top: 1px; color: var(--accent); font-weight: 900; }
.product-note { margin-top: 20px; padding: 16px 20px; border-radius: 14px; background: #f4eee8; color: #705a4f; }

.value-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 34px; }
.value-card { padding: 25px; border: 1px solid var(--border); border-radius: 18px; }
.value-card h3 { margin: 0 0 6px; }
.value-card p { margin: 0; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 54px; align-items: start; }
.contact-grid--single { grid-template-columns: minmax(0, 780px); justify-content: center; }
.contact-list { display: grid; gap: 13px; margin-top: 28px; }
.contact-item { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 13px; padding: 16px; background: var(--background); border-radius: 16px; }
.contact-item__icon { width: 46px; height: 46px; display: grid; place-items: center; background: #fff; border-radius: 13px; color: var(--accent); font-weight: 800; }
.contact-item small { display: block; color: var(--muted); }
.social-block { margin-top: 34px; }
.social-block h2 { margin: 0 0 14px; font-size: 1.15rem; }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.social-link { min-height: 48px; display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px; border: 1px solid var(--border); border-radius: 13px; background: #fff; color: var(--primary); font-weight: 700; transition: transform .2s ease, color .2s ease, border-color .2s ease; }
.social-link:hover { transform: translateY(-2px); color: var(--accent); border-color: var(--accent); }
.social-link svg { width: 21px; height: 21px; fill: currentColor; flex: 0 0 auto; }
.contact-form { padding: 32px; border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow); }
.contact-form h2 { margin-top: 0; }
.form-grid { display: grid; gap: 14px; }
.form-field label { display: block; margin-bottom: 6px; font-weight: 700; }
textarea.field { min-height: 140px; resize: vertical; }
.map-frame { width: 100%; height: 360px; border: 0; border-radius: 24px; margin-top: 28px; filter: saturate(.65) contrast(1.05); }

.site-footer { background: #061f29; color: #fff; margin-top: 96px; }
.footer-grid { padding-block: 54px; display: grid; grid-template-columns: 1.25fr .7fr 1fr; gap: 54px; }
.footer-brand img { width: 150px; background: #fff; border-radius: 12px; padding: 8px 10px; margin-bottom: 18px; }
.footer-brand p { color: #aec0c6; max-width: 390px; margin: 0; }
.site-footer h3 { margin: 0 0 15px; font-size: 1rem; }
.footer-links { display: grid; gap: 8px; color: #c6d4d8; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.11); padding-block: 18px; display: flex; justify-content: space-between; gap: 20px; color: #91a7ae; font-size: .87rem; }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .header-contact { display: none; }
  .nav-toggle { display: inline-block; }
  .main-nav { position: fixed; top: 78px; right: 0; left: 0; height: calc(100dvh - 78px); padding: 24px 20px; background: #fff; display: flex; flex-direction: column; align-items: stretch; gap: 5px; transform: translateX(105%); transition: transform .25s ease; }
  .main-nav.is-open { transform: none; }
  .main-nav a { justify-content: center; min-height: 52px; font-size: 1rem; }
  .hero { min-height: 570px; }
  .hero::before { background: linear-gradient(90deg,rgba(5,43,56,.72),rgba(5,43,56,.96)), url('../images/hero.webp') center/cover; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 38px; }
  .brand-card { grid-template-columns: 135px 1fr; }
  .benefit-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .products-grid, .home-products-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .product-detail__hero, .product-detail__content { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1180px); }
  .brand-logo img { width: 126px; }
  .hero { min-height: 560px; }
  .hero-inner { padding-block: 76px; }
  .hero h1 { font-size: 2.8rem; }
  .hero-actions .button { width: 100%; }
  .section { padding-block: 70px; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 14px; }
  .signature-stat { min-height: 340px; padding: 24px; }
  .brand-grid, .benefit-grid, .value-grid, .catalog-toolbar { grid-template-columns: 1fr; }
  .products-grid, .home-products-grid { grid-template-columns: 1fr; }
  .product-detail__visual { min-height: 320px; padding: 18px; }
  .product-detail__visual img { height: 284px; }
  .product-placeholder--large { min-height: 284px; }
  .brand-card { grid-template-columns: 1fr; min-height: 0; padding: 24px; }
  .brand-card__logo { height: 135px; }
  .cta { padding: 34px 24px; display: block; }
  .cta .button { width: 100%; margin-top: 24px; }
  .contact-form { padding: 23px 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { display: block; text-align: center; }
  .footer-bottom span { display: block; margin-top: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
