:root {
  --ink: #101820;
  --muted: #5a6673;
  --line: #d9e0e7;
  --paper: #f6f8fb;
  --white: #ffffff;
  --red: #d72638;
  --green: #168b62;
  --amber: #f2b705;
  --blue: #1f5fbf;
  --shadow: 0 18px 45px rgba(16, 24, 32, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 104px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
}

body[dir="rtl"] {
  font-family: Cairo, Inter, Arial, sans-serif;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 74px;
  padding: 12px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid rgba(217, 224, 231, 0.88);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: 152px;
  height: auto;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: var(--muted);
  font-weight: 700;
}

.main-nav a:hover {
  color: var(--red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch,
.icon-button {
  display: inline-flex;
  min-width: 44px;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.icon-button strong {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-size: 0.78rem;
}

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 34px));
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #101820;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.94) 0%, rgba(16, 24, 32, 0.78) 42%, rgba(16, 24, 32, 0.14) 100%),
    linear-gradient(0deg, rgba(16, 24, 32, 0.52), rgba(16, 24, 32, 0.04));
}

body[dir="rtl"] .hero-overlay {
  background:
    linear-gradient(270deg, rgba(16, 24, 32, 0.94) 0%, rgba(16, 24, 32, 0.78) 42%, rgba(16, 24, 32, 0.14) 100%),
    linear-gradient(0deg, rgba(16, 24, 32, 0.52), rgba(16, 24, 32, 0.04));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(620px, calc(100% - 32px));
  margin-inline: clamp(16px, 7vw, 92px);
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

body[dir="rtl"] .eyebrow {
  text-transform: none;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.35rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 58ch;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.06rem;
  line-height: 1.7;
}

.hero-actions,
.quote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
}

.primary-button {
  background: var(--red);
  color: var(--white);
}

.secondary-button {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip div {
  padding: 18px clamp(16px, 4vw, 48px);
  background: var(--white);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip span {
  margin-top: 4px;
  color: var(--muted);
}

.section-shell,
.quote-band {
  padding: 74px clamp(16px, 5vw, 72px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 520px);
  gap: 22px;
  align-items: end;
  margin-bottom: 28px;
}

h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 3rem);
  line-height: 1.1;
}

.section-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.catalog-tools {
  display: grid;
  grid-template-columns: minmax(230px, 380px) 1fr;
  gap: 14px;
  align-items: end;
  margin-bottom: 24px;
}

.search-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.search-field input {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  background: var(--white);
  color: var(--ink);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.category-tabs button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 13px;
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.category-tabs button.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.shop-mode-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: var(--white);
}

body[dir="rtl"] .shop-mode-bar {
  border-right: 4px solid var(--red);
  border-left-width: 1px;
}

.shop-mode-bar strong,
.shop-mode-bar span {
  display: block;
}

.shop-mode-bar span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.price-mode-tabs {
  display: flex;
  gap: 4px;
  border-radius: var(--radius);
  padding: 4px;
  background: var(--paper);
}

.price-mode-tabs button {
  min-width: 86px;
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.price-mode-tabs button.active {
  background: var(--ink);
  color: var(--white);
}

.product-grid,
.service-grid,
.contact-grid {
  display: grid;
  gap: 16px;
}

.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.catalog-status {
  display: flex;
  justify-content: space-between;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.product-card,
.service-grid article,
.contact-card,
.quote-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.product-card {
  display: grid;
  min-height: 470px;
  padding: 18px;
}

.product-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: #eef1f4;
}

.product-card h3 {
  margin: 18px 0 8px;
  font-size: 1.08rem;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.price-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-self: end;
  margin-top: 16px;
}

.price-option {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
}

.price-option.active {
  border-color: var(--red);
  background: #fff4f4;
}

.price-option small,
.price-option strong {
  display: block;
}

.price-option small {
  min-height: 34px;
  color: var(--muted);
  font-size: 0.75rem;
}

.price-option strong {
  margin-top: 5px;
  color: var(--red);
  font-size: 1rem;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: end;
  margin-top: 18px;
}

.product-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.add-button {
  align-self: end;
  min-height: 42px;
  margin-top: 16px;
  border: 0;
  border-radius: var(--radius);
  background: var(--green);
  color: var(--white);
  cursor: pointer;
  font-weight: 800;
}

.add-button:disabled,
.quantity-stepper input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  align-self: end;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.quantity-stepper {
  display: grid;
  grid-template-columns: 36px 50px 36px;
  height: 38px;
}

.quantity-stepper button,
.quantity-stepper input {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  text-align: center;
}

.quantity-stepper button {
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 800;
}

.quantity-stepper button:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
}

.quantity-stepper button:last-child {
  border-radius: 0 var(--radius) var(--radius) 0;
}

body[dir="rtl"] .quantity-stepper button:first-child {
  border-radius: 0 var(--radius) var(--radius) 0;
}

body[dir="rtl"] .quantity-stepper button:last-child {
  border-radius: var(--radius) 0 0 var(--radius);
}

.quantity-stepper input {
  border-inline-width: 0;
  appearance: textfield;
}

.quantity-stepper input::-webkit-inner-spin-button {
  appearance: none;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.load-more-wrap .secondary-button {
  min-width: 180px;
}

.no-results {
  grid-column: 1 / -1;
  padding: 40px 16px;
  color: var(--muted);
  text-align: center;
}

.services {
  background: var(--white);
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-grid article {
  padding: 24px;
}

.service-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: var(--radius);
  background: #edf4ff;
  color: var(--blue);
  font-size: 1.4rem;
  font-weight: 800;
}

.service-grid h3 {
  margin: 18px 0 8px;
}

.service-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.quote-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: 28px;
  align-items: center;
  background: var(--ink);
  color: var(--white);
}

.quote-band p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.7;
}

.quote-panel {
  padding: 18px;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.empty-state {
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.quote-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quote-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
}

.quote-line-info {
  display: grid;
  flex: 1;
  gap: 3px;
}

.quote-line-info small {
  color: var(--muted);
}

.quote-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.quote-total strong {
  color: var(--red);
  font-size: 1.2rem;
}

.remove-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--red);
  cursor: pointer;
  font-weight: 800;
}

.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-card {
  display: grid;
  gap: 8px;
  padding: 20px;
}

.contact-card strong {
  color: var(--muted);
}

.contact-card a {
  color: var(--blue);
  font-weight: 800;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(16px, 5vw, 72px);
  background: var(--white);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

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

  .section-heading,
  .catalog-tools,
  .quote-band {
    grid-template-columns: 1fr;
  }

  .category-tabs {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .site-header {
    gap: 12px;
  }

  .brand-logo {
    width: 130px;
  }

  .hero {
    min-height: 680px;
    align-items: end;
    padding-bottom: 38px;
  }

  .hero-overlay,
  body[dir="rtl"] .hero-overlay {
    background:
      linear-gradient(0deg, rgba(16, 24, 32, 0.96) 0%, rgba(16, 24, 32, 0.7) 58%, rgba(16, 24, 32, 0.08) 100%);
  }

  h1 {
    max-width: 13ch;
    font-size: 2.85rem;
  }

  .trust-strip,
  .product-grid,
  .service-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section-shell,
  .quote-band {
    padding-block: 52px;
  }

  .shop-mode-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .price-mode-tabs button {
    flex: 1;
  }

  .price-options {
    grid-template-columns: 1fr;
  }

  .quote-actions .primary-button,
  .quote-actions .secondary-button,
  .hero-actions .primary-button,
  .hero-actions .secondary-button {
    width: 100%;
  }
}
