:root {
  --bg: #09101d;
  --panel: rgba(15, 24, 42, 0.82);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f8faff;
  --muted: #a7b1c7;
  --accent: #ff7a1a;
  --accent-2: #ffcf6a;
  --success: #65e4aa;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  --radius: 26px;
  --container: 1100px;
}

* { box-sizing: border-box; }
html { overflow-x: clip; }
body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  overflow-x: clip;
  background:
    radial-gradient(circle at top left, rgba(255, 122, 26, 0.16), transparent 26%),
    linear-gradient(180deg, #060c18 0%, #09101d 50%, #08111f 100%);
}

body[data-theme='light'] {
  --bg: #f3f7fc;
  --panel: rgba(255, 255, 255, 0.90);
  --line: rgba(15, 23, 42, 0.10);
  --text: #0f1d36;
  --muted: #607089;
  --shadow: 0 20px 60px rgba(16, 24, 40, 0.10);
  background:
    radial-gradient(circle at top left, rgba(255, 122, 26, 0.14), transparent 26%),
    linear-gradient(180deg, #f8fbff 0%, #edf3fb 50%, #e6edf8 100%);
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, .brand { font-family: 'Space Grotesk', sans-serif; }

.page {
  width: min(calc(100% - 28px), var(--container));
  margin: 0 auto;
  padding-bottom: 70px;
}

.top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(9, 15, 27, 0.8);
  box-shadow: var(--shadow);
}

.top > * {
  min-width: 0;
}

body[data-theme='light'] .top {
  background: rgba(255, 255, 255, 0.92);
}

.brand {
  font-weight: 800;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

body[data-theme='light'] .brand {
  background: rgba(255, 255, 255, 0.72);
}

.brand-logo {
  display: block;
  width: clamp(126px, 13vw, 210px);
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent), #ff9858);
  color: #111;
  font-weight: 800;
  text-align: center;
}

.button.alt {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.lang-switcher {
  display: flex;
  gap: 6px;
}

.theme-button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}

body[data-theme='light'] .theme-button,
body[data-theme='light'] .lang-button,
body[data-theme='light'] .button.alt {
  background: rgba(255, 255, 255, 0.82);
}

.lang-button {
  min-width: 42px;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.lang-button.is-active {
  background: var(--accent);
  color: #111;
  border-color: transparent;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 24px;
  align-items: center;
  min-height: calc(100vh - 110px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.96;
}

.lead,
.panel p,
.bullet-list,
.form-status,
.section-head p {
  color: var(--muted);
}

.lead { line-height: 1.7; font-size: 1.08rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; min-width: 0; }

.top > .actions {
  justify-content: flex-end;
  min-width: max-content;
}

.panel,
.service-card,
.faq details,
.contact-card,
.form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

body[data-theme='light'] .panel,
body[data-theme='light'] .service-card,
body[data-theme='light'] .faq details,
body[data-theme='light'] .contact-card,
body[data-theme='light'] .form-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 253, 0.92)),
    var(--panel);
}

.panel,
.service-card,
.contact-card,
.form-card {
  padding: 24px;
  min-width: 0;
}

section { padding-top: 82px; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

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

.bullet-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.9;
}

.faq { display: grid; gap: 14px; }
.faq details { padding: 18px 20px; }
.faq summary { cursor: pointer; font-weight: 800; }

.contact-wrap { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 18px; }
.form-card form { display: grid; gap: 14px; }
.form-card label { display: grid; gap: 8px; }
.form-card input,
.form-card textarea,
.form-card select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

body[data-theme='light'] .form-card input,
body[data-theme='light'] .form-card textarea,
body[data-theme='light'] .form-card select {
  border-color: rgba(15, 23, 42, 0.10);
  background: rgba(244, 247, 252, 0.92);
}
.form-status { min-height: 24px; margin: 0; }
.form-status.success { color: var(--success); }
.form-status.error { color: #ff9191; }

@media (max-width: 980px) {
  .top {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .top > .actions {
    justify-self: end;
  }
}

@media (max-width: 900px) {
  .hero,
  .grid-3,
  .grid-2,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .top,
  .section-head {
    align-items: start;
  }
}

@media (max-width: 620px) {
  .page { width: min(calc(100% - 18px), var(--container)); }

  .top {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .brand,
  .brand-logo {
    max-width: 100%;
  }

  .brand-logo {
    width: min(58vw, 180px);
  }

  .top > .actions {
    width: 100%;
    justify-content: center;
  }

  .top > .actions .button {
    width: 100%;
  }
}
