:root {
  color-scheme: light;
  --bg: #f3f6f8;
  --ink: #101820;
  --muted: #5d6975;
  --line: #d8e0e7;
  --panel: #ffffff;
  --soft: #eef3f7;
  --accent: #a66f12;
  --accent-strong: #d39b35;
  --dark: #0d141c;
  --radius: 8px;
  --hero-image: url("./assets/maextro-s800-hero.png");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 16px clamp(22px, 5vw, 72px);
  background: rgba(243, 246, 248, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--dark);
  border-radius: var(--radius);
  font-weight: 800;
}

.brand strong,
.brand small,
footer span {
  display: block;
}

.brand small,
footer span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

nav a:hover {
  color: var(--ink);
}

.language-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.language-select select,
input,
select,
textarea {
  min-height: 40px;
  padding: 0 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
}

textarea {
  min-height: 96px;
  padding-top: 12px;
  resize: vertical;
}

.hero {
  min-height: calc(100dvh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  align-items: end;
  gap: clamp(28px, 5vw, 72px);
  padding: 84px clamp(22px, 5vw, 72px) 72px;
  background:
    linear-gradient(100deg, rgba(5, 9, 13, 0.96) 0%, rgba(5, 9, 13, 0.82) 42%, rgba(5, 9, 13, 0.24) 76%),
    var(--hero-image) center/cover;
  color: #fff;
}

.compact-hero {
  min-height: 560px;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow,
.contact-section .eyebrow {
  color: var(--accent-strong);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.03em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  letter-spacing: -0.01em;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] p {
  letter-spacing: 0;
}

.lead,
.section-intro {
  max-width: 700px;
  line-height: 1.65;
}

.lead {
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
}

.section-intro {
  margin: 18px 0 0;
  color: var(--muted);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: var(--radius);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(1px);
}

.button.primary {
  color: var(--ink);
  background: #fff;
  border-color: #fff;
}

.button.primary.dark {
  color: #fff;
  background: var(--dark);
  border-color: var(--dark);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
}

.hero-panel,
.service-grid,
.trust-grid,
.audience-grid {
  display: grid;
  gap: 16px;
}

.hero-panel div,
.model-grid article,
.service-grid article,
.trust-grid article,
.audience-grid article {
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-panel div {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--ink);
}

.hero-panel span,
.model-grid span,
.process-list span,
.service-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  font-size: 18px;
  line-height: 1.35;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.proof-strip span {
  padding: 20px clamp(18px, 3vw, 34px);
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.proof-strip span:last-child {
  border-right: 0;
}

.section {
  padding: 76px clamp(22px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 30px;
}

.page-hero {
  padding: 92px clamp(22px, 5vw, 72px) 58px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.page-hero h1 {
  color: var(--ink);
}

.empty-page {
  min-height: calc(100dvh - 190px);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.choice-card {
  display: grid;
  gap: 14px;
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.choice-card:hover {
  transform: translateY(-2px);
  border-color: rgba(166, 111, 18, 0.45);
  box-shadow: 0 18px 48px rgba(16, 24, 32, 0.08);
}

.choice-card span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.choice-card p {
  color: var(--muted);
  line-height: 1.65;
}

.choice-card strong {
  align-self: end;
}

.choice-card.featured {
  background: linear-gradient(145deg, #ffffff, #f7f1e6);
}

.model-grid,
.service-grid,
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

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

.model-grid p,
.service-grid p,
.trust-grid p,
.process-list p,
.audience-grid p,
.faq-list p,
.contact-section p {
  color: var(--muted);
  line-height: 1.65;
}

dl {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}

.service-section,
.process-section,
.faq-section,
.specs-section {
  background: #fff;
}

.spec-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.spec-summary-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.spec-summary-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.spec-summary-grid strong {
  display: block;
  line-height: 1.45;
}

.spec-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.spec-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  font-size: 14px;
}

.spec-table th,
.spec-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.spec-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--muted);
  background: #f8fafc;
  font-size: 12px;
  text-transform: uppercase;
}

.spec-table tbody tr:last-child td {
  border-bottom: 0;
}

.spec-table td:first-child,
.spec-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 170px;
  background: #fff;
  font-weight: 800;
}

.spec-table th:first-child {
  z-index: 3;
  background: #f8fafc;
}

.spec-note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.spec-note-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.spec-note-grid p {
  color: var(--muted);
  line-height: 1.65;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 72px);
}

.market-list {
  display: grid;
  gap: 12px;
}

.market-list article {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.market-list span {
  color: var(--muted);
  text-align: right;
}

.process-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.process-list article {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.process-list span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.trust-section {
  background: var(--soft);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 980px;
}

details {
  padding: 20px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

summary {
  cursor: pointer;
  font-weight: 800;
}

summary + p {
  margin: 14px 0 0;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 520px);
  align-items: start;
  gap: clamp(28px, 5vw, 72px);
  padding: 72px clamp(22px, 5vw, 72px);
  color: #fff;
  background: var(--dark);
}

.contact-section p {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.inquiry-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: #fff;
  border-radius: var(--radius);
  color: var(--ink);
}

.inquiry-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 30px clamp(22px, 5vw, 72px);
  background: #fff;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (max-width: 1040px) {
  .model-grid.detailed,
  .service-grid,
  .trust-grid,
  .spec-summary-grid,
  .spec-note-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .site-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .language-select {
    margin-left: auto;
  }

  .hero,
  .split-section,
  .proof-strip,
  .contact-section,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 72px;
    background:
      linear-gradient(180deg, rgba(5, 9, 13, 0.96) 0%, rgba(5, 9, 13, 0.76) 58%, rgba(5, 9, 13, 0.38) 100%),
      var(--hero-image) center/cover;
  }

  .proof-strip span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-strip span:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .brand-text small {
    display: none;
  }

  h1 {
    font-size: 42px;
  }

  .button,
  .inquiry-form .button {
    width: 100%;
  }

  .model-grid.detailed,
  .service-grid,
  .trust-grid,
  .spec-summary-grid,
  .spec-note-grid {
    grid-template-columns: 1fr;
  }

  .process-list article {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .market-list article,
  dl div {
    display: grid;
  }

  .market-list span,
  dd {
    text-align: left;
  }
}
