:root {
  --bg: #f5f8fc;
  --panel: rgba(255, 255, 255, 0.84);
  --panel-strong: #ffffff;
  --text: #162032;
  --muted: #607089;
  --line: rgba(20, 45, 90, 0.10);
  --line-strong: rgba(20, 45, 90, 0.16);
  --primary: #2563eb;
  --primary-2: #38bdf8;
  --accent: #0ea5e9;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --shadow: 0 20px 60px rgba(37, 99, 235, 0.10);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1280px;
  --nav-height: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  min-height: 100vh;
  overflow-x: clip;
  word-wrap: break-word;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(56, 191, 248, 0.055) 0%, transparent 90%),
    radial-gradient(ellipse 60% 40% at 20% 30%, rgba(37, 99, 235, 0.06) 0%, transparent 90%),
    radial-gradient(ellipse 60% 40% at 80% 30%, rgba(37, 99, 235, 0.06) 0%, transparent 90%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 40%, #e8f0fa 100%);
}

body > * {
  position: relative;
  z-index: 1;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(calc(100% - 24px), var(--container));
  margin: 0 auto;
}

.muted {
  color: var(--muted);
}

.spacer-top {
  margin-top: 10px;
}

.nowrap {
  white-space: nowrap;
}

/* NAV */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(20, 45, 90, 0.08);
}

.nav-inner {
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: contain;
  flex-shrink: 0;
  box-shadow: 0 12px 24px rgba(37, 99, 235, .20);
}

.brand-text {
  min-width: 0;
}

.brand-text b {
  display: block;
  font-size: 0.98rem;
  line-height: 1.15;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.2;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}

.avatar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .25);
}

/* BUTTONS */

.btn {
  appearance: none;
  border: 0;
  border-radius: 14px;
  padding: 13px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: .25s ease;
  font-size: 0.95rem;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  min-height: 46px;
  max-width: 100%;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  box-shadow: 0 16px 30px rgba(37, 99, 235, .22);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  border: 1px solid var(--line);
}

.full {
  width: 100%;
}

/* HERO */

.hero {
  padding: 28px 0 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-copy {
  padding: 22px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(255, 255, 255, 0.84) 28%,
      rgba(255, 255, 255, 0.78) 55%,
      rgba(255, 255, 255, 0.85) 100%
    ),
    url('/assets/hero-bg.png');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}

h1 {
  margin: 14px 0 12px;
  font-size: clamp(1.9rem, 8vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.lead {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 780px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.hero-actions .btn {
  flex: 1 1 220px;
}

.hero-bubbles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 20px;
}

.bubble {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(20, 45, 90, 0.08);
  backdrop-filter: blur(6px);
}

.bubble strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--text);
}

.bubble span {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
}

/* SECTIONS */

.section {
  padding: 34px 0;
  scroll-margin-top: calc(var(--nav-height) + 18px);
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 6vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.section-head p {
  color: var(--muted);
  max-width: 720px;
  line-height: 1.7;
  margin: 0;
}

/* GRID HELPERS */

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.order-wrap,
.about-wrap,
.contact-wrap,
.profile-grid,
.form-grid,
.contact-info-grid,
.simple-grid,
.parts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  min-width: 0;
}

.order-wrap > *,
.about-wrap > *,
.contact-wrap > *,
.profile-grid > *,
.form-grid > *,
.contact-info-grid > *,
.simple-grid > *,
.parts-grid > * {
  min-width: 0;
}

/* CARDS */

.card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 18px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(37, 99, 235, .14);
  border-color: rgba(37, 99, 235, .18);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  line-height: 1.25;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(56, 189, 248, .16));
  color: var(--primary);
  margin-bottom: 16px;
  font-size: 1.3rem;
  font-weight: 900;
}

/* CHIPS */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.chip,
.service-card .tag,
.service-card .chip,
.service-card .service-chip,
.summary-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(20, 45, 90, 0.10);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.1;
}

.service-card .tag:hover,
.service-card .chip:hover,
.service-card .service-chip:hover {
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.18);
  color: #0f2c52;
}

/* SERVICES */

.services-section {
  position: relative;
  padding-top: 20px;
  padding-bottom: 42px;
}

.services-section .container {
  position: relative;
  z-index: 1;
}

.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 18px 16px 16px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: 0 10px 30px rgba(20, 45, 90, 0.08);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.14);
  box-shadow: 0 16px 36px rgba(20, 45, 90, 0.12);
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-card .service-visual {
  position: relative;
  width: 100%;
  max-width: 180px;
  margin: 0 auto 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  isolation: isolate;
}

.service-card .service-visual::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150%;
  height: 135%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at center,
      rgba(255, 255, 255, 0.15) 0%,
      rgba(255, 255, 255, 0.18) 32%,
      rgba(255, 255, 255, 0.15) 55%,
      rgba(255, 255, 255, 0.15) 70%,
      rgba(255, 255, 255, 0.15) 100%
    );
  filter: blur(16px);
}

.service-card .service-visual img,
.service-card > img {
  display: block;
  width: 100%;
  max-width: 180px;
  margin: 0 auto;
  position: relative;
  z-index: 0;
  transform: translateY(-4px);
  filter:
    drop-shadow(0 8px 18px rgba(37, 99, 235, 0.14))
    drop-shadow(0 0 10px rgba(56, 189, 248, 0.08));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.service-card:hover .service-visual img,
.service-card:hover > img {
  transform: translateY(-6px) scale(1.04);
  filter:
    drop-shadow(0 12px 26px rgba(37, 99, 235, 0.18))
    drop-shadow(0 0 14px rgba(56, 189, 248, 0.12));
}

.service-card h3 {
  font-size: 1.08rem;
}

.service-card p {
  font-size: 0.95rem;
}

/* FORMS */

.stack {
  display: grid;
  gap: 12px;
}

.field,
textarea,
select,
input[type="file"] {
  width: 100%;
  min-width: 0;
  border-radius: 16px;
  border: 1px solid rgba(20, 45, 90, .10);
  background: rgba(255, 255, 255, .88);
  padding: 14px 15px;
  color: var(--text);
  outline: none;
  transition: .2s ease;
}

.field:focus,
textarea:focus,
select:focus,
input[type="file"]:focus {
  border-color: rgba(37, 99, 235, .30);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .10);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.password-hint {
  margin-top: 4px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ABOUT */

.about-card-main,
.about-card-side {
  position: relative;
  overflow: hidden;
}

.about-card-main {
  padding: 22px;
}

.about-card-side {
  padding: 18px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  width: auto;
  max-width: max-content;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.12);
  margin-bottom: 14px;
}

.about-card-main h2 {
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  max-width: 26ch;
}

.about-lead {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 22px;
  max-width: 640px;
}

.about-grid {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.about-box h3 {
  margin: 0 0 10px;
  font-size: 1.06rem;
  line-height: 1.3;
  color: var(--text);
}

.about-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  max-width: 640px;
}

.about-points {
  display: grid;
  gap: 12px;
}

.about-point {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.05);
}

.about-point strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 0.98rem;
}

.about-point span {
  display: block;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.92rem;
}

/* CONTACT */

.contact-wrap {
  align-items: stretch;
}

.contact-card-main,
.contact-card-side {
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-card-main h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.contact-card-side h3 {
  margin-top: 0;
  margin-bottom: 14px;
}

.contact-card-side .about-point {
  margin: 0;
}

.contact-card-side .contact-note {
  margin-top: auto;
}

.contact-intro {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.contact-chips {
  margin-top: 20px;
}

.contact-item {
  display: block;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  color: var(--text);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.05);
}

.contact-item:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.08);
}

.contact-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.84rem;
  color: var(--muted);
}

.contact-item strong {
  font-size: 1rem;
  line-height: 1.35;
  color: var(--text);
}

.contact-note {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.08), rgba(14, 165, 233, 0.06));
  border: 1px solid rgba(59, 130, 246, 0.14);
  color: var(--text);
  line-height: 1.7;
}

.login-required-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.16);
  color: #8a5a00;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* SUMMARY / PARTS */

.summary-box {
  border-radius: 18px;
  border: 1px solid rgba(20, 45, 90, .08);
  background: rgba(255, 255, 255, .78);
  padding: 14px;
  margin-bottom: 16px;
}

.summary-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.parts-panel {
  display: grid;
  gap: 12px;
}

.part-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(20, 45, 90, .08);
  color: var(--text);
  font-weight: 600;
}

/* FLASH */

.flash {
  position: sticky;
  top: 10px;
  z-index: 100;
  width: min(calc(100% - 24px), 720px);
  margin: 12px auto 0;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.45;
  box-shadow: 0 12px 24px rgba(20, 45, 90, .10);
}

.flash-success {
  background: rgba(16, 185, 129, .10);
  color: #0f766e;
  border: 1px solid rgba(16, 185, 129, .18);
}

.flash-error {
  background: rgba(239, 68, 68, .08);
  color: #b42318;
  border: 1px solid rgba(239, 68, 68, .16);
}

/* MODAL */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}

.modal.is-open {
  display: block;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 34, 0.48);
  backdrop-filter: blur(6px);
}

.modal-box {
  position: relative;
  width: min(calc(100% - 20px), 460px);
  max-height: min(88vh, 920px);
  overflow: auto;
  margin: 5vh auto 0;
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(20, 45, 90, .18);
  padding: 22px 18px 20px;
  z-index: 2;
}

.modal-close {
  position: absolute;
  right: 12px;
  top: 8px;
  border: 0;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  transition: .2s ease;
}

.modal-close:hover {
  color: var(--text);
  transform: scale(1.05);
}

.modal-flash {
  position: static;
  width: 100%;
  margin: 0 0 14px 0;
  padding: 12px 14px;
  border-radius: 14px;
  box-shadow: none;
  font-size: 0.94rem;
}

.auth-links-row {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.auth-links-row a,
.link-like {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  color: var(--primary);
  cursor: pointer;
  font-weight: 700;
}

.modal-box-success {
  text-align: center;
  max-width: 480px;
}

.success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(16, 185, 129, .16), rgba(52, 211, 153, .18));
  color: var(--success);
  font-size: 2rem;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(16, 185, 129, .15);
}

.success-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
}

.success-note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(16, 185, 129, .08);
  border: 1px solid rgba(16, 185, 129, .16);
  color: #0f766e;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* PROFILE */

.profile-section {
  padding-top: 22px;
}

.profile-flash-wrap {
  margin: 0 0 18px 0;
  display: flex;
  justify-content: center;
}

.profile-flash {
  position: static;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  box-shadow: none;
}

.profile-header {
  max-width: 1200px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
}

.profile-avatar-large {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow: 0 16px 30px rgba(37, 99, 235, .20);
  flex-shrink: 0;
}

.profile-header-text {
  min-width: 0;
}

.profile-header-text h1 {
  margin: 0 0 4px;
  font-size: clamp(1.6rem, 6vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.profile-header-text p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.profile-card {
  padding: 20px;
  width: 100%;
}

.profile-card h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.profile-readonly-fields,
.profile-form {
  margin-top: 16px;
  gap: 12px;
}

.profile-field-group {
  display: grid;
  gap: 6px;
}

.profile-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.profile-divider {
  height: 1px;
  background: rgba(20, 45, 90, .08);
  margin: 4px 0;
  border-radius: 999px;
}

/* SHARED CUTOUT */

.shared-cutout {
  --cutout-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08)),
    url('/assets/hero-bg.png') center / cover no-repeat;
  position: relative;
  border-radius: 32px;
  padding: 14px;
}

.shared-cutout-about {
  position: relative;
}

.shared-cutout-about::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 32px;
  background: var(--cutout-bg);
  opacity: 0.8;
  pointer-events: none;
}

.cutout-stage,
.about-wrap {
  position: relative;
  z-index: 1;
}

.cutout-card {
  position: relative;
  overflow: hidden;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: 0 20px 60px rgba(37, 99, 235, 0.10);
}

.cutout-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--cutout-image);
  background-repeat: no-repeat;
  background-size: var(--cutout-bg-size, cover);
  background-position: var(--cutout-bg-pos, center);
  opacity: 0.5;
}

.cutout-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(255, 255, 255, 0.7) 100%
  );
}

.cutout-card > * {
  position: relative;
  z-index: 1;
}

/* ORDER / DEVICE TABS */

.device-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.device-tab {
  border: 1px solid rgba(20, 45, 90, .08);
  background: rgba(255, 255, 255, .72);
  padding: 12px 10px;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  transition: .25s ease;
  text-align: center;
  min-height: 46px;
}

.device-tab.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, .13), rgba(56, 189, 248, .18));
  border-color: rgba(37, 99, 235, .18);
  color: var(--primary);
  box-shadow: 0 12px 26px rgba(37, 99, 235, .12);
}

.render-wrap {
  min-height: 260px;
  display: grid;
  place-items: center;
  padding: 10px 0 14px;
}

.png-scene {
  width: 100%;
  max-width: 760px;
  min-height: 260px;
  border-radius: 24px;
  border: 1px solid rgba(20, 45, 90, .08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(245, 250, 255, .96)),
    radial-gradient(circle at 50% 0%, rgba(56, 189, 248, .08), transparent 52%);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 18px;
}

.png-note {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  width: fit-content;
  max-width: calc(100% - 24px);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(20, 45, 90, .08);
  font-size: .82rem;
  font-weight: 700;
  color: var(--primary);
  box-shadow: 0 10px 20px rgba(20, 45, 90, .08);
}

.device-exploded-layout {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 1 / 1;
}

.device-exploded-layout.device-phone {
  width: min(100%, 250px);
  aspect-ratio: 9 / 18;
}

.device-exploded-layout .base-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateX(6%);
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 12px 24px rgba(20, 45, 90, .10));
  max-width: 100%;
}

.device-exploded-layout .part,
.part {
  position: absolute;
  cursor: pointer;
  transition: transform .22s ease, opacity .22s ease;
  isolation: isolate;
  z-index: 1;
}

.device-exploded-layout .part.selected {
  transform: scale(1.08);
  z-index: 999 !important;
}

@media (hover: hover) and (pointer: fine) {

  .device-exploded-layout .part:hover img {
    filter:
      drop-shadow(0 0 0 rgba(0,0,0,0))
      drop-shadow(0 0 0.6px rgba(16,185,129,.95))
      drop-shadow(0 0 1.2px rgba(16,185,129,.95))
      drop-shadow(0 0 2.4px rgba(16,185,129,.90))
      drop-shadow(0 0 7px rgba(16,185,129,.32))
      drop-shadow(0 10px 24px rgba(37,99,235,.16));
  }

  .device-exploded-layout .part:not(.selected):hover {
    transform: scale(1.05);
  }

  .device-exploded-layout .part.selected:hover {
    transform: scale(1.12);
  }

}
@media (hover: none) {
  .device-exploded-layout .part:hover img {
    filter: none !important;
  }

  .device-exploded-layout .part:hover {
    transform: none !important;
  }
}

.device-exploded-layout .part img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  transition: filter .22s ease, transform .22s ease;
  filter: drop-shadow(0 6px 18px rgba(20, 45, 90, .10));
}

.device-exploded-layout .part:hover img {
  filter:
    drop-shadow(0 0 0 rgba(0, 0, 0, 0))
    drop-shadow(0 0 0.6px rgba(16, 185, 129, .95))
    drop-shadow(0 0 1.2px rgba(16, 185, 129, .95))
    drop-shadow(0 0 2.4px rgba(16, 185, 129, .90))
    drop-shadow(0 0 7px rgba(16, 185, 129, .32))
    drop-shadow(0 10px 24px rgba(37, 99, 235, .16));
}

.device-exploded-layout .part.selected img {
  filter:
    drop-shadow(0 0 0 rgba(0, 0, 0, 0))
    drop-shadow(0 0 0.8px rgba(16, 185, 129, 1))
    drop-shadow(0 0 1.6px rgba(16, 185, 129, 1))
    drop-shadow(0 0 3px rgba(16, 185, 129, .95))
    drop-shadow(0 0 10px rgba(16, 185, 129, .40))
    drop-shadow(0 14px 28px rgba(16, 185, 129, .22));
}

.part-price-badge {
  display: none !important;
}

.part .part-label {
  position: absolute;
  left: 50%;
  bottom: -34px;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  z-index: 20;
}

.part:hover .part-label,
.part.selected .part-label {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

.simple-selector,
.upload-card,
.manual-box {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  border-radius: 20px;
  border: 1px solid rgba(20, 45, 90, .08);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 18px 40px rgba(20, 45, 90, .08);
  padding: 16px;
}

.simple-option,
.part-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid rgba(20, 45, 90, .08);
  background: rgba(255, 255, 255, .76);
  cursor: pointer;
  transition: .2s ease;
  font-weight: 600;
  min-width: 0;
}

.simple-option:hover,
.part-check:hover {
  border-color: rgba(37, 99, 235, .18);
  transform: translateY(-1px);
}

.simple-option.active,
.part-check.active {
  border-color: rgba(16, 185, 129, .26);
  background: rgba(16, 185, 129, .08);
}

.simple-left,
.part-check-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.simple-left > *,
.part-check-left > * {
  min-width: 0;
}

.simple-price,
.part-check-price {
  flex-shrink: 0;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .10);
  color: var(--primary);
  font-size: .84rem;
  font-weight: 800;
  white-space: nowrap;
}

.check-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(20, 45, 90, .16);
  display: grid;
  place-items: center;
  font-size: .72rem;
  flex-shrink: 0;
  color: white;
  background: transparent;
}

.part-check.active .check-dot,
.simple-option.active .check-dot {
  background: var(--success);
  border-color: var(--success);
}

.parts-panel {
  padding: 0;
}

.cart-box {
  border-radius: 20px;
  border: 1px solid rgba(20, 45, 90, .08);
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(247, 250, 255, .96));
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 16px 30px rgba(20, 45, 90, .06);
}

.cart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.cart-title {
  font-size: 1.02rem;
  font-weight: 800;
}

.cart-note {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(20, 45, 90, .07);
}

.cart-item-name {
  font-weight: 700;
  font-size: .95rem;
  min-width: 0;
}

.cart-item-price {
  color: var(--primary);
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.cart-empty {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .82);
  border: 1px dashed rgba(20, 45, 90, .12);
  color: var(--muted);
  font-size: .95rem;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(20, 45, 90, .08);
  font-size: 1rem;
  font-weight: 800;
}

.cart-total strong {
  font-size: 1.18rem;
  color: var(--primary);
  white-space: nowrap;
}

/* NAV STATUS */

.nav-orders-btn {
  position: relative;
  font-weight: 600;
}

.nav-orders-btn::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  background: #3b82f6;
}

.nav-orders-btn[data-status="new"]::before { background: #3b82f6; }
.nav-orders-btn[data-status="received"]::before { background: #06b6d4; }
.nav-orders-btn[data-status="diagnostic"]::before { background: #f59e0b; }
.nav-orders-btn[data-status="repairing"]::before { background: #eab308; }
.nav-orders-btn[data-status="sending_back"]::before { background: #8b5cf6; }
.nav-orders-btn[data-status="completed"]::before { background: #22c55e; }
.nav-orders-btn[data-status="cancelled"]::before { background: #ef4444; }

.progress-cancelled {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 0 4px;
}

.progress-cancelled-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.12);
}

.progress-cancelled-label {
  color: #ef4444;
  font-weight: 700;
}

.progress-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

/* FOOTER */

footer {
  padding: 24px 0 34px;
  color: var(--muted);
}

.footer-box {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(20, 45, 90, .08);
  padding-top: 18px;
}

/* TABLET */

@media (min-width: 640px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .hero {
    padding: 40px 0 26px;
  }

  .hero-copy,
  .card,
  .profile-card,
  .contact-card-main,
  .contact-card-side,
  .about-card-main,
  .about-card-side {
    padding: 24px;
  }

  .hero-bubbles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .device-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .simple-grid,
  .parts-grid,
  .contact-info-grid,
  .form-grid,
  .progress-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card .service-visual,
  .service-card .service-visual img,
  .service-card > img {
    max-width: 220px;
  }

  .device-exploded-layout {
    width: min(100%, 380px);
  }

  .device-exploded-layout.device-phone {
    width: min(100%, 300px);
  }

  .render-wrap {
    min-height: 340px;
    padding: 14px 10px 18px;
  }

  .png-scene {
    min-height: 340px;
    padding: 22px;
  }

  .profile-avatar-large {
    width: 64px;
    height: 64px;
    font-size: 1.3rem;
  }
}

/* SMALL DESKTOP */

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }

  .hero-grid {
    gap: 28px;
  }

  .about-wrap {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
  }

  .contact-wrap {
    grid-template-columns: 1.35fr 0.65fr;
    gap: 22px;
    align-items: stretch;
  }

  .profile-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 24px;
    align-items: start;
  }

  .profile-header {
    gap: 18px;
  }

  .profile-avatar-large {
    width: 68px;
    height: 68px;
    font-size: 1.4rem;
  }

  .progress-steps {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* DESKTOP */

@media (min-width: 1180px) {
  .section {
    padding: 44px 0;
  }

  .services-section {
    padding-top: 40px;
    padding-bottom: 80px;
  }

  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }

  .order-wrap {
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    gap: 20px;
    align-items: start;
  }

  .hero-copy {
    padding: 36px;
  }

  .card {
    padding: 22px;
  }

  .about-card-main {
    padding: 38px 42px;
  }

  .about-card-side {
    padding: 24px;
  }

  .contact-card-main {
    padding: 28px;
  }

  .contact-card-side {
    padding: 24px;
  }

  .profile-card {
    padding: 24px;
  }
}

/* MID RANGE: 2 COLUMNS FOR SERVICES */

@media (min-width: 760px) and (max-width: 1179px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}