:root {
  --bg: #eaf1f5;
  --surface: #ffffff;
  --surface-alt: #e3edf1;
  --primary: #123b50;
  --primary-dark: #0d2f40;
  --accent: #19a7a0;
  --accent-dark: #128780;
  --text: #1f2937;
  --muted: #64748b;
  --border: #d5e1e8;
  --success: #2f9e75;
  --error: #c92a4f;
  --warning: #d98a22;
  --shadow: 0 8px 24px rgba(18, 59, 80, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
h1, h2, h3 {
  color: var(--primary);
  min-width: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
}
body[dir='rtl'] {
  text-align: right;
}
img { max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
input, select, textarea, button {
  font: inherit;
}

.container {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--primary);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--primary-dark);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 58px;
}
.brand {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--surface);
  white-space: nowrap;
}
.main-nav, .lang-switcher, .header-inner, .footer-inner, .admin-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.main-nav a, .footer-links a {
  color: var(--muted);
}
.main-nav a {
  color: rgba(255, 255, 255, 0.92);
}
.main-nav a:hover, .brand:hover {
  color: var(--surface);
}
.main-nav a, .footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}
.lang-switcher {
  flex-wrap: nowrap;
  gap: 0.35rem;
}
.lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0.25rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--surface);
  font-size: 0.8rem;
}
.lang-pill.active {
  background: var(--accent);
  color: var(--text);
  border-color: var(--accent);
}
.lang-pill:focus-visible, .main-nav a:focus-visible, .brand:focus-visible {
  outline: 2px solid var(--surface);
  outline-offset: 2px;
}
.page-shell {
  padding: 1.5rem 0 3rem;
}
.hero {
  padding: 1.5rem 0 0.5rem;
}
.hero-copy {
  background: linear-gradient(120deg, rgba(18,59,80,0.07), rgba(25,167,160,0.1));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow);
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.9rem;
}
.hero-copy h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  overflow-wrap: normal;
  hyphens: auto;
}
.hero-copy p {
  margin: 0;
  color: var(--muted);
  max-width: 680px;
}
.cta-row {
  margin-top: 1.4rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
}
.btn-secondary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text);
}
.btn-secondary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-danger {
  background: var(--error);
  color: white;
}
.btn-small {
  padding: 0.55rem 0.8rem;
  min-height: 36px;
  font-size: 0.8rem;
}
.full { width: 100%; }
.section-title {
  margin: 2.5rem 0 0.5rem;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}
.section-intro {
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.product-card, .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.product-card {
  padding: 1.5rem;
}
.product-card h2 {
  line-height: 1.25;
}
.product-card p {
  margin: 0.5rem 0 1rem;
  line-height: 1.5;
}
.tag {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(25,167,160,0.12);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
}
.product-card h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.4rem;
}
.product-card p {
  color: var(--muted);
}
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.card {
  padding: 1.5rem;
}
.card-header h1, .card-header h2 {
  margin: 0;
}
.request-form {
  margin-top: 1.2rem;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-weight: 600;
}
label span {
  color: var(--text);
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
}
textarea {
  resize: vertical;
}
.full-width {
  grid-column: 1 / -1;
}
.form-actions {
  margin-top: 1.2rem;
}
.summary-card h2 {
  margin-top: 0;
}
.summary-list {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1rem;
  color: var(--muted);
}
.customer-review {
  margin-top: 1.2rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.customer-review h2 {
  margin: 0 0 0.8rem;
  font-size: 1.05rem;
}
.customer-review dl {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}
.customer-review dl div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.5rem;
}
.customer-review dt {
  font-weight: 700;
}
.customer-review dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.note {
  color: var(--muted);
  margin: 0;
}
.alert {
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-top: 1rem;
  font-weight: 600;
}
.alert.error {
  background: rgba(201,42,79,0.08);
  border: 1px solid rgba(201,42,79,0.25);
  color: var(--error);
}
.auth-wrap, .success-wrap, .error-wrap {
  display: grid;
  place-items: center;
  min-height: 60vh;
}
.auth-card, .success-card, .error-card {
  width: min(480px, 100%);
}
.auth-card form {
  display: grid;
  gap: 1rem;
}
.admin-layout {
  display: grid;
  gap: 1.25rem;
}
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.admin-topbar h1 {
  margin: 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 1rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--muted);
}
.stat-card strong {
  color: var(--text);
  font-size: 1.8rem;
}
.filter-form, .option-form, .settings-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  align-items: end;
}
.filter-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.checkbox-inline {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  min-height: 46px;
}
.checkbox-inline input {
  width: auto;
}
.option-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}
.option-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-alt);
}
.option-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.option-type {
  font-weight: 700;
  text-transform: capitalize;
}
.inline-edit-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  align-items: center;
}
.tiny {
  min-width: 80px;
}
.delete-option-form {
  display: flex;
  align-items: center;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
th, td {
  padding: 0.8rem 0.7rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
th {
  background: var(--surface-alt);
}
.empty-cell {
  text-align: center;
  color: var(--muted);
}
.status-pill {
  display: inline-flex;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(18,59,80,0.09);
  color: var(--primary);
  font-weight: 700;
}
.request-details-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 1.25rem;
}
.request-meta {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}
.content-page {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow);
  max-width: 820px;
}
.reference-box {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  background: var(--surface-alt);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin: 1rem 0;
  font-size: 1.1rem;
}
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  background: rgba(255,255,255,0.82);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.footer-links {
  display: flex;
  gap: 1rem;
}
.muted { color: var(--muted); }
.home-hero {
  min-height: 0;
  display: block;
  padding-top: 0;
}
.home-hero .hero-copy {
  padding: 1rem;
}
.home-products {
  margin-top: 0;
  max-width: 900px;
  gap: 0.75rem;
}
.home-products .product-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem;
}
.home-products .product-card h2 {
  margin: 0.5rem 0 0.75rem;
  font-size: 1.1rem;
  line-height: 1.2;
  overflow-wrap: normal;
  hyphens: none;
}
.home-products .btn {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  font-size: 0.92rem;
}
.breadcrumbs, .catalog-back {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  color: var(--muted);
}
.catalog-intro {
  margin-bottom: 1.25rem;
}
.catalog-intro h1 {
  margin: 0 0 0.4rem;
}
.catalog-intro p {
  margin: 0;
}
.catalog-grid {
  margin-top: 1.25rem;
}
.catalog-grid.domestic-offers,
.catalog-grid.international-offers {
  margin-top: 0;
}
.empty-catalog {
  margin-top: 1.25rem;
}
.empty-catalog h2 {
  margin-top: 0;
}
.catalog-disclaimer {
  border: 1px solid var(--border);
  border-inline-start: 4px solid var(--accent);
  background: var(--surface);
  color: var(--muted);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin: 1rem 0;
}
.offer-details {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}
.offer-details div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.offer-details dt {
  color: var(--muted);
}
.offer-details dd {
  margin: 0;
  text-align: end;
}
.offer-price {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: 1.2rem 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
}
.offer-price strong {
  color: var(--text);
  font-size: 1.5rem;
}
.offer-card .btn {
  width: auto;
  min-width: 150px;
}
.offer-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 0.9rem 0 1rem;
}
.discount-note, .source-link {
  font-size: 0.9rem;
}
.source-link a {
  color: var(--primary);
}
.option-edit {
  grid-column: 2 / -1;
  width: 100%;
}
.option-edit summary {
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  padding: 0.45rem 0;
}
.option-edit .inline-edit-form {
  margin-top: 0.7rem;
}
.option-edit .inline-edit-form .full-width {
  grid-column: 1 / -1;
}
.field-title {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.contact-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.choice-card {
  flex-direction: row;
  align-items: center;
  min-height: 48px;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}
.choice-card input {
  width: auto;
  margin: 0;
}
.date-preview {
  align-self: end;
  min-height: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
[hidden] {
  display: none !important;
}
@media (max-width: 860px) {
  .product-grid, .field-grid, .form-layout, .request-details-layout, .filter-form, .option-form, .settings-form, .stats-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .form-layout, .form-layout > * {
    min-width: 0;
  }
  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.15rem 0.5rem;
    padding: 0.25rem 0;
  }
  .header-inner > .brand {
    margin-inline-end: auto;
    font-size: 1rem;
  }
  .main-nav {
    flex-wrap: wrap;
    flex: 1 0 100%;
    order: 3;
    gap: 0.05rem 0.15rem;
  }
  .main-nav a {
    min-height: 30px;
    padding: 0.1rem 0.12rem;
    font-size: 0.68rem;
    line-height: 1.15;
  }
  .lang-switcher {
    gap: 0.25rem;
  }
  .lang-pill {
    min-width: 34px;
    min-height: 36px;
    padding: 0.2rem 0.35rem;
    font-size: 0.72rem;
  }
  .admin-topbar, .footer-inner {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .option-row {
    grid-template-columns: 1fr;
  }
  .option-edit {
    grid-column: 1;
  }
  .inline-edit-form {
    grid-template-columns: 1fr;
  }
  .home-hero {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 1rem, 1100px);
  }
  .page-shell {
    padding: 0.75rem 0 2rem;
  }
  .home-hero {
    padding-top: 0;
  }
  .hero-copy {
    padding: 1rem;
    border-radius: 18px;
  }
  .hero-copy .eyebrow {
    margin-bottom: 0.5rem;
  }
  .hero-copy h1 {
    font-size: clamp(1.25rem, 5.5vw, 1.48rem);
    line-height: 1.15;
    overflow-wrap: normal;
    hyphens: none;
  }
  .hero-copy > p {
    font-size: 0.88rem;
    line-height: 1.4;
  }
  .home-products {
    margin-top: 0.65rem;
    gap: 0.75rem;
  }
  .home-hero .hero-copy {
    padding: 0.75rem;
    border-radius: 16px;
  }
  .home-hero .home-products {
    margin-top: 0;
  }
  .home-products .product-card,
  .card,
  .product-card {
    padding: 1rem;
  }
  .home-products .product-card {
    padding: 0.75rem;
  }
  .home-products .tag {
    padding: 0.25rem 0.5rem;
    font-size: 0.65rem;
  }
  .home-products .product-card h2 {
    margin: 0.4rem 0 0.6rem;
    font-size: 0.98rem;
    line-height: 1.2;
  }
  .home-products .btn {
    min-height: 44px;
    padding: 0.45rem 0.5rem;
    font-size: 0.82rem;
  }
  .product-card {
    border-radius: 16px;
  }
  .product-card h2 {
    font-size: 1.15rem;
  }
  .product-card p {
    font-size: 0.93rem;
  }
  .btn {
    min-height: 44px;
    padding: 0.65rem 0.9rem;
  }
  .footer-inner, .footer-links {
    gap: 0.35rem 0.75rem;
  }
  .footer-links {
    flex-wrap: wrap;
  }
  .footer-links a {
    font-size: 0.9rem;
  }
  .contact-choice-grid {
    grid-template-columns: 1fr;
  }
  .breadcrumbs {
    flex-wrap: wrap;
  }
}

@media (min-width: 380px) and (max-width: 860px) {
  .home-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 379px) {
  .home-products {
    grid-template-columns: minmax(0, 1fr);
  }
}
