:root {
  --purple: #9b5edb;
  --purple-dark: #6f35b5;
  --purple-soft: #c8a8f0;
  --black: #000000;
  --near-black: #181818;
  --gray: #666666;
  --mid-gray: #8f8f8f;
  --light-gray: #d2d2d2;
  --white: #ffffff;
  --panel: #f5f5f6;
  --line: rgba(24, 24, 24, 0.12);
  --content-max: 1240px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--near-black);
  background: var(--white);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 0 clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.88);
  color: var(--white);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(100%, var(--content-max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  min-width: 132px;
  color: rgba(255, 255, 255, 0.96);
  transition: color 160ms ease;
}

.brand:hover,
.brand:focus-visible {
  color: var(--purple-soft);
}

.brand-copy {
  display: grid;
  gap: 4px;
  line-height: 1;
  white-space: nowrap;
}

.brand-name {
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.055em;
}

.brand-subtitle {
  color: var(--purple);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px 20px;
}

.header-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--white);
  border-color: var(--purple);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.06);
}

.language-switcher button {
  min-width: 34px;
  border: 0;
  border-radius: 3px;
  padding: 7px 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.language-switcher button:hover,
.language-switcher button:focus-visible,
.language-switcher button.is-active {
  background: var(--purple);
  color: var(--white);
}

.section-dark {
  background: var(--black);
  color: var(--white);
}

.section-inner,
.footer-inner {
  width: min(100%, var(--content-max));
  margin: 0 auto;
}

.hero {
  min-height: 690px;
  display: flex;
  align-items: center;
  padding: clamp(72px, 10vw, 132px) clamp(20px, 6vw, 86px) 72px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: stretch;
  gap: clamp(28px, 5vw, 80px);
}

.hero-content {
  max-width: 780px;
  align-self: center;
}

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

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

h1 {
  margin-bottom: 22px;
  max-width: 860px;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.95;
  letter-spacing: 0;
}

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

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.15;
}

.hero-copy {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions,
.form-actions,
.result-actions,
.quick-links,
.footer-links,
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 13px 20px;
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
  transition: 160ms ease;
}

.button-primary,
.button-whatsapp {
  background: var(--purple);
  color: var(--white);
}

.button-primary:hover,
.button-whatsapp:hover {
  background: var(--purple-dark);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--white);
}

.button-secondary:hover {
  border-color: var(--purple);
  color: var(--purple-soft);
}

.button-dark {
  background: var(--near-black);
  color: var(--white);
}

.button-dark:hover {
  background: var(--black);
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 36px 0 0;
  list-style: none;
}

.trust-list li {
  border-left: 3px solid var(--purple);
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 800;
}

.hero-panel {
  position: relative;
  min-height: 460px;
  align-self: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(155, 94, 219, 0.22), rgba(255, 255, 255, 0.04) 34%, transparent 34%),
    linear-gradient(160deg, #111 0%, #030303 70%);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 16% 7%;
  border-top: 2px solid rgba(255, 255, 255, 0.34);
  border-bottom: 2px solid rgba(155, 94, 219, 0.5);
  transform: skewY(-10deg);
}

.hero-mark {
  position: absolute;
  left: 34px;
  top: 32px;
  color: rgba(255, 255, 255, 0.1);
  font-size: clamp(84px, 13vw, 160px);
  font-weight: 900;
  line-height: 1;
}

.panel-line {
  position: absolute;
  right: 0;
  bottom: 104px;
  width: 72%;
  height: 7px;
  background: var(--purple);
}

.panel-meta {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 32px;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.estimate-section,
.services-section,
.admin-section {
  padding: clamp(64px, 9vw, 112px) clamp(20px, 6vw, 86px);
}

.section-heading {
  max-width: 900px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  color: var(--gray);
  font-size: 18px;
}

.calculator-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.75fr);
  gap: 24px;
  align-items: start;
}

.estimate-form,
.estimate-result,
.admin-table-wrap {
  border: 1px solid var(--line);
  background: var(--white);
}

.estimate-form {
  padding: clamp(20px, 4vw, 34px);
}

fieldset {
  padding: 0;
  margin: 0 0 28px;
  border: 0;
}

legend {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.parts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  position: static;
  min-height: 0;
  opacity: 1;
  visibility: visible;
}

.part-card,
.damage-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px;
  cursor: pointer;
  background: #fbfbfb;
  position: static;
  opacity: 1;
  visibility: visible;
  z-index: auto;
}

.part-card {
  min-height: 72px;
}

.damage-card {
  min-height: 96px;
}

.part-card:hover,
.damage-card:hover {
  border-color: rgba(155, 94, 219, 0.55);
}

.part-card input,
.damage-card input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--purple);
}

.part-title,
.damage-title {
  display: block;
  font-weight: 900;
}

.damage-copy {
  display: block;
  color: var(--gray);
  font-size: 14px;
}

.damage-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  position: static;
  min-height: 0;
  opacity: 1;
  visibility: visible;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

label {
  color: var(--near-black);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  min-height: 50px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 14px;
  color: var(--near-black);
  background: var(--white);
  font-weight: 600;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
  outline: 2px solid rgba(155, 94, 219, 0.28);
  border-color: var(--purple);
}

.field-wide {
  grid-column: 1 / -1;
}

.form-message {
  min-height: 22px;
  margin: 10px 0 0;
  color: #b42318;
  font-size: 14px;
  font-weight: 800;
}

.photo-upload {
  display: grid;
  gap: 10px;
  border: 1px dashed rgba(155, 94, 219, 0.55);
  border-radius: 4px;
  padding: 18px;
  background: #fbfbfb;
  color: var(--near-black);
  cursor: pointer;
}

.photo-upload input {
  width: 100%;
  color: var(--gray);
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
}

.photo-upload span {
  color: var(--purple-dark);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.photo-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.photo-preview span {
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 10px;
  overflow-wrap: anywhere;
  color: var(--gray);
  background: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.estimate-result {
  position: sticky;
  top: 94px;
  padding: clamp(20px, 4vw, 32px);
  background: var(--near-black);
  color: var(--white);
}

.estimate-result h3 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 42px);
}

.estimate-result p,
.estimate-result dd {
  color: rgba(255, 255, 255, 0.72);
}

.result-summary dl {
  display: grid;
  gap: 16px;
  margin: 0 0 18px;
}

.result-summary div {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 14px;
}

.result-summary dt {
  margin-bottom: 4px;
  color: var(--purple-soft);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.result-summary dd {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.result-actions {
  margin: 22px 0 18px;
}

.save-message {
  margin: 16px 0 0;
  color: var(--purple-soft);
  font-weight: 800;
}

.estimate-note {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px;
}

.quick-links a,
.footer-links a,
.social-links a {
  color: var(--purple-soft);
  font-weight: 900;
  text-transform: uppercase;
}

.services-section {
  background: var(--panel);
}

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

.services-grid article {
  min-height: 250px;
  border-top: 4px solid var(--purple);
  padding: 24px;
  background: var(--white);
}

.services-grid span {
  display: inline-block;
  margin-bottom: 46px;
  color: var(--purple);
  font-weight: 900;
}

.services-grid p {
  color: var(--gray);
}

.about-section {
  padding: clamp(64px, 9vw, 112px) clamp(20px, 6vw, 86px);
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 80px);
}

.about-copy {
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.admin-toolbar {
  margin-bottom: 16px;
}

.admin-table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 880px;
}

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

th {
  color: var(--gray);
  font-size: 12px;
  text-transform: uppercase;
}

td {
  font-size: 14px;
  font-weight: 700;
}

.empty-row {
  color: var(--gray);
  font-weight: 600;
}

.site-footer {
  padding: clamp(56px, 8vw, 86px) clamp(20px, 6vw, 86px) 28px;
  background: var(--black);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 30px;
  padding-bottom: 44px;
}

.footer-logo {
  margin-bottom: 18px;
  color: var(--white);
  font-size: 26px;
  font-weight: 900;
}

.site-footer h3 {
  color: var(--purple-soft);
  font-size: 14px;
  text-transform: uppercase;
}

.site-footer p,
.site-footer li {
  color: rgba(255, 255, 255, 0.68);
}

.site-footer ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

@media (max-width: 900px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-nav {
    justify-content: flex-start;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .hero-inner,
  .calculator-shell,
  .about-inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-panel {
    min-height: 320px;
  }

  .estimate-result {
    position: static;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .parts-grid,
  .damage-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 16px;
  }

  .header-nav {
    gap: 4px 14px;
    font-size: 12px;
  }

  .header-actions {
    gap: 10px 14px;
  }

  .brand {
    min-height: 38px;
    min-width: 112px;
  }

  .brand-name {
    font-size: 17px;
    letter-spacing: 0.05em;
  }

  .brand-subtitle {
    font-size: 8px;
    letter-spacing: 0.14em;
  }

  .hero,
  .estimate-section,
  .services-section,
  .about-section,
  .admin-section,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .parts-grid,
  .damage-options,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .trust-list {
    display: grid;
  }

  h1 {
    font-size: 42px;
  }
}
