/* ── RESET & ROOT ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: #fffbf5;
  color: #1f1501;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Skip link */
.skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--accent, #940fbd); color: #fff;
  padding: 12px 20px; z-index: 9999;
  font-size: 0.82rem; font-weight: 500;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 8px; }
a { text-decoration: none; color: inherit; }
img { display: block; }
ul { list-style: none; }

:root {
  --bg:      #fffbf5;
  --ink:     #1f1501;
  --ink2:    #6b5e4e;
  --ink3:    #a8977e;
  --accent:  #940fbd;
  --border:  #e4d9cc;
  --surface: #f5ede2;
  --max:     1200px;
  --ease:    cubic-bezier(.22,1,.36,1);
  --gutter:  clamp(20px, 5vw, 72px);
}

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 60px);
  background: rgba(255,251,245,0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav.over-hero {
  background: rgba(15,10,5,0.35);
  border-bottom-color: rgba(255,255,255,0.1);
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.nav-logo img { height: 22px; width: auto; }
.nav-logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.nav.over-hero .nav-logo-text { color: #fff; }
.nav-logo-text em {
  font-style: normal;
  color: var(--accent);
}
.nav-links {
  display: flex; align-items: center; gap: 36px;
}
.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink2);
  transition: color 0.2s;
  font-weight: 400;
}
.nav.over-hero .nav-links a { color: rgba(255,255,255,0.65); }
.nav-links a:hover { color: var(--ink); }
.nav.over-hero .nav-links a:hover { color: #fff; }
.nav-cta-wrap {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.btn-nav-ghost {
  padding: 8px 18px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  color: var(--ink2);
  transition: all 0.2s;
  font-weight: 400;
}
.nav.over-hero .btn-nav-ghost {
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.65);
}
.btn-nav-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-nav-accent {
  padding: 9px 20px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  transition: all 0.2s;
}
.btn-nav-accent:hover { background: #7a0c9e; }
.mobile-menu-btn {
  display: none;
  background: none; border: none;
  cursor: pointer; padding: 4px;
  color: var(--ink);
}
.nav.over-hero .mobile-menu-btn { color: #fff; }

/* ── LANG SWITCHER ── */
.lang-switch {
  display: flex; align-items: center; gap: 2px;
  flex-shrink: 0; font-size: 0.7rem;
  letter-spacing: 0.06em; font-weight: 500;
  margin-right: 6px;
}
.lang-switch a {
  padding: 5px 10px; color: var(--ink2);
  transition: all 0.2s; text-transform: uppercase;
  border: 1px solid transparent;
}
.lang-switch a:hover { color: var(--ink); }
.nav.over-hero .lang-switch a { color: rgba(255,255,255,0.45); }
.nav.over-hero .lang-switch a:hover { color: #fff; }
.lang-switch a.active {
  color: var(--accent); border-color: var(--accent);
  background: rgba(148,15,189,0.06);
}
.nav.over-hero .lang-switch a.active {
  color: var(--accent); border-color: var(--accent);
  background: rgba(148,15,189,0.25);
}
.lang-switch-sep {
  color: var(--border); font-weight: 300;
  user-select: none;
}
.nav.over-hero .lang-switch-sep { color: rgba(255,255,255,0.18); }

@media (max-width: 860px) {
  .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column; gap: 0;
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s var(--ease);
    border-bottom: 0 solid var(--border);
  }
  .nav-links.open { max-height: 280px; border-bottom-width: 1px; }
  .nav-links a { display: block; padding: 14px 24px; font-size: 0.85rem; }
  .btn-nav-ghost { display: none; }
}
@media (max-width: 520px) {
  .nav { height: 56px; }
  .nav-links { top: 56px; }
}

/* ── BREADCRUMB ── */
.breadcrumb {
  position: relative; z-index: 200;
  padding: 80px clamp(20px, 5vw, 60px) 12px;
  background: var(--bg);
}
.breadcrumb ol {
  display: flex; align-items: center; gap: 8px;
  list-style: none; max-width: var(--max); margin: 0 auto;
}
.breadcrumb li {
  font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink3);
  font-weight: 400;
}
.breadcrumb li:not(:last-child)::after {
  content: '/'; margin-left: 8px; color: var(--ink3); opacity: 0.4;
}
.breadcrumb a { color: var(--ink3); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb [aria-current="page"] { color: var(--accent); font-weight: 500; }
@media (max-width: 860px) {
  .breadcrumb { padding-top: 72px; }
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: flex-end;
  padding: 0 clamp(20px, 6vw, 72px) clamp(60px, 8vw, 100px);
  overflow: hidden;
}
@media (max-width: 860px) {
  .hero {
    min-height: 100svh;
    justify-content: center;
    padding-top: 80px;
    padding-bottom: clamp(40px, 8vw, 70px);
  }
  .hero-scroll { display: none; }
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('https://images.unsplash.com/photo-1642969164999-979483e21601?q=80&w=1170&auto=format&fit=crop');
  background-size: cover;
  background-position: center 40%;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    160deg,
    rgba(12,7,3,0.72) 0%,
    rgba(15,8,4,0.55) 50%,
    rgba(20,10,5,0.75) 100%
  );
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 740px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 28px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  font-weight: 400;
}
.hero-eyebrow-line {
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--accent);
  opacity: 0.8;
}
.hero-pulse {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.pulse-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(148,15,189,0.8);
  animation: pulse 2s ease infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.85)} }

.hero-h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(3rem, 7.5vw, 6.8rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 24px;
}
.hero-h1 em {
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
}
.hero-h1 strong {
  font-weight: 600;
  color: #fff;
}
.hero-sub {
  font-size: clamp(0.88rem, 1.5vw, 1rem);
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
  font-weight: 300;
  max-width: 440px;
  margin-bottom: 40px;
  letter-spacing: 0.01em;
}
.hero-btns {
  display: flex; gap: 14px; flex-wrap: wrap;
}
.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.25s var(--ease);
}
.btn-hero-primary:hover { background: #7a0c9e; transform: translateY(-2px); }
.btn-hero-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.65);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  transition: all 0.25s var(--ease);
}
.btn-hero-ghost:hover { border-color: rgba(255,255,255,0.5); color: #fff; }
.hero-scroll {
  position: absolute; bottom: 36px; right: clamp(20px,6vw,72px);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  writing-mode: vertical-lr;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}
.hero-scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollAnim 2s ease infinite;
}
@keyframes scrollAnim { 0%,100%{transform:scaleY(0);transform-origin:top;opacity:0} 50%{transform:scaleY(1);opacity:1} }
@media (max-width: 520px) {
  .hero-btns { flex-direction: column; }
  .btn-hero-primary, .btn-hero-ghost { justify-content: center; }
  .btn-hero-ghost .hero-ext-arrow { display: none; }
}

/* ── STATS BAR ── */
.stats-bar {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.stats-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 32px 24px;
  border-right: 1px solid var(--border);
  text-align: left;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-num em { font-style: normal; color: var(--accent); }
.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink3);
  font-weight: 400;
}
@media (max-width: 600px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat-item:last-child, .stat-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }
}

/* ── MARQUEE ── */
.marquee-wrap {
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 0;
}
.marquee-track {
  display: flex;
  animation: marquee 28s linear infinite;
  width: max-content;
}
.marquee-item {
  display: flex; align-items: center; gap: 20px;
  padding: 14px 32px;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink3);
  white-space: nowrap;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
}
.marquee-sep {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
  flex-shrink: 0;
}
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ── SECTION BASE ── */
.section {
  padding: clamp(56px, 9vw, 120px) clamp(20px, 5vw, 60px);
  position: relative;
}
@media (max-width: 860px) {
  .section { padding-top: 48px; padding-bottom: 48px; }
}
.section-max { max-width: var(--max); margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink3);
  font-weight: 400;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 20px; height: 1px;
  background: var(--accent);
}
.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 16px;
}
.section-title strong { font-weight: 600; }
.section-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--ink2);
}
.section-title .accent { color: var(--accent); }
.section-sub {
  font-size: 0.95rem;
  color: var(--ink2);
  line-height: 1.75;
  max-width: 460px;
  font-weight: 300;
}

/* ── FEATURES ── */
.feat-rows { margin-top: 64px; }
@media (max-width: 860px) {
  .feat-rows { margin-top: 36px; }
}
.feat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding: 64px 0;
  border-top: 1px solid var(--border);
}
.feat-row:last-child { border-bottom: 1px solid var(--border); }
.feat-row.flip { direction: rtl; }
.feat-row.flip > * { direction: ltr; }
.feat-text .eyebrow { margin-bottom: 18px; }
.feat-text h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 14px;
}
.feat-text h3 strong { font-weight: 600; }
.feat-text p {
  font-size: 0.93rem;
  color: var(--ink2);
  line-height: 1.8;
  margin-bottom: 28px;
  font-weight: 300;
  max-width: 400px;
}
.feat-list { display: flex; flex-direction: column; gap: 12px; }
.feat-list li {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: 0.88rem;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.55;
}
.feat-check {
  flex-shrink: 0;
  margin-top: 3px;
  width: 16px; height: 16px;
  border: 1px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.feat-check svg { width: 9px; height: 9px; color: var(--accent); }
.feat-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.feat-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease);
  filter: brightness(0.95) saturate(0.9);
}
.feat-visual:hover img { transform: scale(1.03); }
.feat-chip {
  position: absolute; bottom: 20px; left: 20px;
  background: rgba(255,251,245,0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  padding: 10px 16px;
  display: flex; align-items: center; gap: 9px;
}
.feat-chip-pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(148,15,189,0.6);
  animation: pulse 2s ease infinite;
  flex-shrink: 0;
}
.feat-chip-txt {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink2);
  font-weight: 400;
}

@media (max-width: 860px) {
  .feat-row, .feat-row.flip {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 36px;
    padding: 48px 0;
  }
  .feat-text p { max-width: 100%; }
}

/* ── PROJECTS ── */
.projects-section { background: var(--surface); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 48px;
}
@media (max-width: 860px) {
  .projects-grid { margin-top: 28px; }
}
.proj-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
}
.proj-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease), filter 0.5s;
  filter: brightness(0.75) saturate(0.85);
}
.proj-card:hover img {
  transform: scale(1.05);
  filter: brightness(0.35) saturate(0.6);
}
.proj-always {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 20px 18px;
  background: linear-gradient(to top, rgba(15,7,3,0.88) 0%, transparent 100%);
}
.proj-cat {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 5px;
  font-weight: 400;
}
.proj-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
}
.proj-hover {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px 20px;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  background: linear-gradient(to top, rgba(15,7,3,0.95) 40%, transparent 100%);
}
.proj-card:hover .proj-hover { opacity: 1; }
.proj-hover .proj-cat { margin-bottom: 5px; color: rgba(255,255,255,.5); }
.proj-hover .proj-name { margin-bottom: 10px; }
.proj-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  font-weight: 300;
}
.proj-read-more {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 14px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

/* Modal */
.proj-modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(20,10,5,0.75);
  backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.proj-modal-overlay.open { opacity: 1; pointer-events: auto; }
.proj-modal {
  background: var(--bg);
  border: 1px solid var(--border);
  max-width: 680px; width: 100%;
  max-height: 88vh; overflow-y: auto;
  position: relative;
  transform: translateY(24px);
  transition: transform 0.35s var(--ease);
}
.proj-modal-overlay.open .proj-modal { transform: translateY(0); }
.proj-modal img {
  width: 100%; height: 320px;
  object-fit: cover; display: block;
}
.proj-modal-body { padding: 28px 32px 36px; }
.proj-modal-cat {
  font-size: 0.65rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink3);
  margin-bottom: 10px; font-weight: 400;
}
.proj-modal-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 300; letter-spacing: -0.025em;
  color: var(--ink); margin-bottom: 14px; line-height: 1.1;
}
.proj-modal-desc { font-size: 0.93rem; color: var(--ink2); line-height: 1.75; font-weight: 300; }
.proj-modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: rgba(255,251,245,0.9);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
}
.proj-modal-close:hover { border-color: var(--accent); }
.proj-modal-close svg { width: 14px; height: 14px; color: var(--ink); }

@media (max-width: 860px) { .projects-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) {
  .projects-grid { grid-template-columns: 1fr; }
  .proj-modal img { height: 220px; }
  .proj-modal-body { padding: 20px; }
}

/* ── PRICING ── */
.pricing-section { background: var(--bg); }
.pricing-header { margin-bottom: 56px; }
.pricing-header .section-sub { max-width: 440px; }
@media (max-width: 860px) {
  .pricing-header { margin-bottom: 32px; }
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  border: 1px solid var(--border);
}
.price-card {
  padding: 36px 30px 40px;
  border-right: 1px solid var(--border);
  position: relative;
  transition: background 0.25s;
}
.price-card:last-child { border-right: none; }
.price-card:hover { background: var(--surface); }
.price-card.hot {
  background: var(--ink);
  color: rgba(255,255,255,0.9);
}
.price-card.hot:hover { background: #2e1f0a; }
.price-icon {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.price-card.hot .price-icon { border-color: rgba(255,255,255,0.15); }
.price-icon svg { width: 16px; height: 16px; color: var(--accent); }
.price-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--ink);
}
.price-card.hot .price-name { color: #fff; }
.price-desc {
  font-size: 0.82rem;
  color: var(--ink2);
  line-height: 1.65;
  margin-bottom: 28px;
  font-weight: 300;
  min-height: 52px;
}
.price-card.hot .price-desc { color: rgba(255,255,255,0.5); }
.price-divider { border: none; border-top: 1px solid var(--border); margin-bottom: 24px; }
.price-card.hot .price-divider { border-color: rgba(255,255,255,0.1); }
.price-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 3.2rem;
  font-weight: 300;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}
.price-card.hot .price-val { color: #fff; }
.price-val em { font-style: normal; color: var(--accent); }
.price-val.custom-val {
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  padding-top: 8px;
  color: var(--ink2);
}
.price-card.hot .price-val.custom-val { color: rgba(255,255,255,0.5); }
.price-per {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 28px;
  font-weight: 400;
}
.price-card.hot .price-per { color: rgba(255,255,255,0.3); }
.price-feats { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; flex-grow: 1; }
.price-feats li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.85rem; color: var(--ink);
  font-weight: 400;
}
.price-card.hot .price-feats li { color: rgba(255,255,255,0.75); }
.price-feats li svg { width: 13px; height: 13px; color: var(--accent); flex-shrink: 0; }
.btn-price {
  display: block; width: 100%; text-align: center;
  padding: 13px 20px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.2s;
  border: 1px solid var(--border);
  color: var(--ink);
  margin-top: auto;
}
.btn-price:hover { border-color: var(--ink); }
.price-card.hot .btn-price {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.price-card.hot .btn-price:hover { background: #7a0c9e; border-color: #7a0c9e; }

@media (max-width: 860px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card { border-right: none; border-bottom: 1px solid var(--border); }
  .price-card:last-child { border-bottom: none; }
}

/* ── CONTACT ── */
.contact-section { background: var(--surface); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.contact-left { position: sticky; top: 88px; }
.contact-left h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 14px;
}
.contact-left h2 em { font-style: italic; color: var(--accent); }
.contact-left p {
  font-size: 0.93rem;
  color: var(--ink2);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 36px;
}
.contact-meta { display: flex; flex-direction: column; gap: 8px; }
.cmeta {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.cmeta:hover { border-color: var(--accent); }
.cmeta-ico {
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cmeta-ico svg { width: 13px; height: 13px; color: var(--accent); }
.cmeta-label {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 2px;
  font-weight: 400;
}
.cmeta-val { font-size: 0.85rem; font-weight: 400; color: var(--ink); }
.form-box {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 40px 40px 44px;
}
.form-status {
  display: none; align-items: center; gap: 10px;
  padding: 13px 16px;
  font-size: 0.8rem; margin-bottom: 24px;
}
.form-status.ok { display: flex; background: rgba(34,197,94,0.06); border: 1px solid rgba(34,197,94,0.25); color: #166534; }
.form-status.err { display: flex; background: rgba(239,68,68,0.06); border: 1px solid rgba(239,68,68,0.2); color: #991b1b; }
.form-step-label {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 12px;
}
.fg { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink3);
  font-weight: 400;
  margin-bottom: 8px;
}
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.finput, .ftextarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  padding: 12px 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-weight: 300;
}
.finput:focus, .ftextarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(148,15,189,0.06);
}
.finput::placeholder, .ftextarea::placeholder { color: var(--ink3); }
.ftextarea { resize: vertical; min-height: 110px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pill-row input[type="radio"] { display: none; }
.pill-row label {
  padding: 6px 14px;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ink2);
  cursor: pointer;
  transition: all 0.18s;
  font-weight: 400;
  display: flex; align-items: center; gap: 6px;
}
.pill-row label:hover { border-color: var(--ink2); color: var(--ink); }
.pill-row input:checked + label {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(148,15,189,0.04);
}
.color-dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.12); display: inline-block;
}
.form-sep { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.btn-submit {
  width: 100%; display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: 16px 24px;
  background: var(--ink); border: none;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--bg);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.25s var(--ease);
}
.btn-submit:hover { background: var(--accent); }
.btn-submit svg { width: 14px; height: 14px; }

@media (max-width: 860px) {
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .contact-left { position: static; }
  .f2 { grid-template-columns: 1fr; }
  .form-box { padding: 28px 24px 32px; }
}

/* ── CTA BAND ── */
.cta-band {
  background: var(--ink);
  padding: 80px clamp(20px, 5vw, 60px);
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148,15,189,0.5), transparent);
}
.cta-band h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 12px;
}
.cta-band h2 em { font-style: italic; color: rgba(255,255,255,0.35); }
.cta-band h2 strong { font-weight: 600; color: #fff; }
.cta-band p {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.4);
  font-weight: 300;
  margin-bottom: 36px;
  max-width: 420px;
  margin-left: auto; margin-right: auto;
  line-height: 1.75;
}
.cta-band-btns {
  display: flex; gap: 12px;
  justify-content: center; flex-wrap: wrap;
}
.btn-cta-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px;
  background: var(--accent); color: #fff;
  font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 500;
  transition: all 0.2s;
}
.btn-cta-primary:hover { background: #7a0c9e; }
.btn-cta-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.55);
  font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 400;
  transition: all 0.2s;
}
.btn-cta-ghost:hover { border-color: rgba(255,255,255,0.35); color: #fff; }

/* ── FAQ ── */
.faq-section { background: var(--bg); }
.faq-list {
  max-width: 780px;
  margin-top: 48px;
}
.faq-item {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item dt {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  line-height: 1.35;
}
.faq-item dt::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--accent);
  margin-left: auto;
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s var(--ease);
}
.faq-item dt:hover { color: var(--accent); }
.faq-item dd {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--ink2);
  line-height: 1.75;
  font-weight: 300;
  max-width: 640px;
}
.faq-item dd p { margin-bottom: 12px; }
.faq-item dd p:last-child { margin-bottom: 0; }
.faq-steps {
  list-style: none;
  counter-reset: faq-step;
  padding: 0; margin: 0 0 16px 0;
}
.faq-steps li {
  counter-increment: faq-step;
  padding: 8px 0 8px 32px;
  position: relative;
  font-size: 0.9rem;
  color: var(--ink2);
  line-height: 1.6;
  font-weight: 300;
}
.faq-steps li::before {
  content: counter(faq-step) '.';
  position: absolute; left: 0; top: 8px;
  font-weight: 600; color: var(--accent);
  font-size: 0.85rem;
}
.faq-item dd a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.faq-item dd a:hover { color: #7a0c9e; }
@media (max-width: 860px) {
  .faq-list { margin-top: 28px; }
  .faq-item { padding: 20px 0; }
  .faq-item dt { font-size: 0.95rem; }
}

/* ── SUMMARY / TL;DR ── */
.summary-section { background: var(--surface); }
.summary-box {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 48px 48px 40px;
}
.summary-box .section-sub {
  max-width: 640px;
  font-size: 0.95rem;
  line-height: 1.8;
}
.summary-points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}
.sum-point {
  text-align: center;
  padding: 24px 16px;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.sum-point:hover { border-color: var(--accent); }
.sum-point strong {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: -0.04em;
  color: var(--accent);
  margin-bottom: 4px;
}
.sum-point span {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink3);
  font-weight: 400;
}
@media (max-width: 860px) {
  .summary-box { padding: 32px 24px 28px; }
  .summary-points { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .summary-points { grid-template-columns: 1fr 1fr; gap: 8px; }
  .sum-point { padding: 16px 10px; }
  .sum-point strong { font-size: 1.5rem; }
}
footer {
  background: var(--ink);
  padding: 56px clamp(20px, 5vw, 60px) 28px;
}
.footer-top {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand img { height: 22px; width: auto; margin-bottom: 14px; filter: brightness(10); opacity: 0.7; }
.footer-brand p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.7;
  max-width: 200px;
  font-weight: 300;
}
.footer-col h2 {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  margin-bottom: 16px;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 9px;
  transition: color 0.2s;
  line-height: 1.55;
  font-weight: 300;
}
.footer-col a:hover { color: rgba(255,255,255,0.8); }
.footer-bottom {
  max-width: var(--max); margin: 24px auto 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.footer-bottom p, .footer-bottom-right {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.18);
  letter-spacing: 0.05em;
  font-weight: 300;
}
.footer-bottom a { color: rgba(255,255,255,0.28); transition: color 0.2s; }
.footer-bottom a:hover { color: rgba(255,255,255,0.55); }
.footer-bottom-right span { color: rgba(148,15,189,0.6); }

@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 520px) {
  footer { padding: 36px clamp(16px, 5vw, 40px) 20px; }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
    padding-bottom: 24px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: 100%; font-size: 0.78rem; }
  .footer-col h2 { margin-bottom: 10px; }
  .footer-col a, .footer-col p { font-size: 0.78rem; margin-bottom: 6px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 6px; margin-top: 16px; }
  .footer-bottom p, .footer-bottom-right { font-size: 0.65rem; }
}

/* ── SCROLL REVEAL ── */
.sr { opacity: 0; transform: translateY(22px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
.sr.in { opacity: 1; transform: translateY(0); }
.sr-d1 { transition-delay: 0.08s; }
.sr-d2 { transition-delay: 0.17s; }
.sr-d3 { transition-delay: 0.26s; }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .sr { opacity: 1; transform: none; }
}

/* ── LARGE DESKTOP ── */
@media (min-width: 1400px) {
  .section-max { max-width: 1320px; }
  .stats-inner { max-width: 1320px; }
  .footer-top { max-width: 1320px; }
  .footer-bottom { max-width: 1320px; }
}
@media (min-width: 1800px) {
  .section-max { max-width: 1500px; }
  .stats-inner { max-width: 1500px; }
  .footer-top { max-width: 1500px; }
  .footer-bottom { max-width: 1500px; }
}

/* ── MULTI-PAGE ADDITIONS ── */
.nav-logo a { display: flex; align-items: center; gap: 12px; }
.nav-links a.active,
.nav-links a[aria-current="page"] { color: var(--accent); }
.nav.over-hero .nav-links a.active,
.nav.over-hero .nav-links a[aria-current="page"] { color: #fff; }
[id] { scroll-margin-top: 88px; }

/* ── 3D CENAS KALKULATORS ── */
.calc-section { background: var(--bg); padding: 64px 0 0; }
@media (max-width: 520px) {
  .calc-section { padding-top: 56px; }
}

.calc-screen { display: none; }
.calc-screen.is-active { display: block; }

/* 1. ekrāns — augšupielāde */
.calc-upload { max-width: 640px; margin: 0 auto; padding: 24px clamp(20px, 5vw, 60px) 48px; }

.calc-dropzone {
  border: 1.5px dashed #c9a8d8;
  background: var(--surface);
  border-radius: 20px;
  padding: 44px 28px 36px;
  text-align: center;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.calc-dropzone:hover,
.calc-dropzone:focus-visible,
.calc-dropzone.drag { border-color: var(--accent); background: rgba(148,15,189,0.05); }
.calc-dropzone svg { width: 42px; height: 42px; color: var(--accent); margin: 0 auto 12px; }
.calc-drop-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
}
.calc-drop-sub { font-size: 0.82rem; color: var(--ink3); margin-top: 6px; }

.calc-material-pick { margin: 24px auto 0; max-width: 360px; text-align: left; }

.calc-select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s;
}
.calc-select:focus { border-color: var(--accent); }

.calc-upload-status { min-height: 22px; margin-top: 16px; font-size: 0.82rem; color: var(--ink2); }

.calc-btn-primary {
  margin-top: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff;
  border: none; border-radius: 999px;
  padding: 15px 44px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem; font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, opacity 0.2s;
}
.calc-btn-primary:hover:not(:disabled) { background: #7c0da0; transform: translateY(-1px); }
.calc-btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }

.calc-upload-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.calc-info-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 15px 12px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink2);
}
.calc-info-item strong { color: var(--accent); font-weight: 600; }

.calc-note-min { font-size: 0.74rem; color: var(--ink3); margin-top: 18px; text-align: center; line-height: 1.6; }
@media (max-width: 640px) {
  .calc-upload-info { grid-template-columns: 1fr; }
}

/* 2. ekrāns — darbalauks */
.calc-workspace-grid {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 300px;
  height: calc(100vh - 150px); min-height: 440px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.calc-parts-panel {
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  overflow-y: auto;
  min-width: 0;
}
.calc-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--surface); z-index: 2;
}
.calc-panel-head h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.calc-add-btn {
  background: var(--accent); color: #fff; border: none; border-radius: 8px;
  padding: 8px 12px; font-size: 0.8rem; font-weight: 600; cursor: pointer;
  transition: background 0.2s;
}
.calc-add-btn:hover { background: #7c0da0; }

.calc-parts-list { list-style: none; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.calc-part {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s, background 0.2s;
}
.calc-part.is-active { border-color: var(--accent); background: rgba(148,15,189,0.06); }
.calc-part-btn {
  display: flex; flex-direction: column; gap: 4px; text-align: left;
  width: 100%; padding: 12px 36px 12px 12px;
  background: transparent; border: none; cursor: pointer; color: var(--ink);
  font-family: 'Inter', sans-serif;
}
.calc-part-name { font-size: 0.85rem; font-weight: 600; word-break: break-word; }
.calc-part-dims { font-size: 0.78rem; color: var(--ink2); }
.calc-part-qty { font-size: 0.72rem; color: var(--ink3); }
.calc-part-remove {
  position: absolute; top: 10px; right: 10px;
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface); color: var(--ink2);
  cursor: pointer; font-size: 0.95rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.calc-part-remove:hover { background: #fbe3e3; color: #991b1b; border-color: #e5b8b8; }

.calc-viewer-col { position: relative; min-width: 0; background: var(--bg); }
.calc-viewer {
  position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 50% 0%, rgba(148,15,189,0.07), transparent 60%),
    var(--bg);
}
.calc-viewer canvas { display: block; }
.calc-viewer-hint {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink3); font-size: 0.85rem;
  pointer-events: none; text-align: center; padding: 20px;
}

.calc-controls-panel {
  background: var(--surface);
  border-left: 1px solid var(--border);
  padding: 20px;
  display: flex; flex-direction: column; gap: 20px;
  overflow-y: auto;
  min-width: 0;
}
.calc-control-group { min-width: 0; }

.calc-qty {
  display: inline-flex; align-items: stretch;
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  background: var(--bg);
}
.calc-qty button {
  width: 42px; border: none; background: transparent; color: var(--ink);
  font-size: 1.15rem; cursor: pointer; transition: background 0.15s;
}
.calc-qty button:hover { background: rgba(148,15,189,0.08); }
.calc-qty input {
  width: 56px; text-align: center;
  border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  background: transparent; color: var(--ink);
  font-family: 'Inter', sans-serif; font-size: 0.95rem; outline: none;
  -moz-appearance: textfield; appearance: textfield;
}
.calc-qty input::-webkit-outer-spin-button,
.calc-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.calc-color-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(30px, 1fr));
  gap: 7px;
}
.calc-color-swatch {
  aspect-ratio: 1;
  width: 100%;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15);
  transition: transform 0.12s, border-color 0.12s;
}
.calc-color-swatch:hover { transform: scale(1.12); }
.calc-color-swatch.is-active { border-color: var(--ink); box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px var(--ink); }
.calc-color-label { display: block; margin-top: 10px; font-size: 0.82rem; color: var(--ink2); }

/* 3D skata navigācijas kubs (WebGL canvas) */
.calc-view-cube-canvas {
  position: absolute; left: 16px; bottom: 16px;
  width: 96px; height: 96px;
  z-index: 6;
  cursor: pointer;
}

.calc-part-summary {
  margin-top: auto;
  border: 1px solid var(--border); border-radius: 12px; padding: 14px;
  background: var(--bg);
}
.calc-sum-title {
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink3); margin-bottom: 6px;
}
.calc-sum-row {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 0.84rem; color: var(--ink2);
  padding: 7px 0; border-bottom: 1px dashed var(--border);
}
.calc-sum-row:last-child { border-bottom: none; }
.calc-sum-row strong { color: var(--ink); font-weight: 600; white-space: nowrap; }

.calc-price-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px clamp(20px, 5vw, 60px);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.calc-btn-ghost {
  background: transparent; color: var(--ink2);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 11px 24px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.9rem; font-weight: 500;
  cursor: pointer; transition: border-color 0.2s, color 0.2s;
}
.calc-btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.calc-price-total { text-align: right; }
.calc-price-total span {
  display: block; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink3); margin-bottom: 2px;
}
.calc-price-total strong {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; color: var(--accent);
}

.calc-price-right { display: flex; align-items: center; gap: 18px; }
.calc-order-btn { margin-top: 0; padding: 13px 26px; font-size: 0.92rem; white-space: nowrap; }
@media (max-width: 640px) {
  .calc-price-right { flex-direction: column; align-items: flex-end; gap: 10px; }
}

/* Pasūtījuma modāls */
.calc-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(31, 21, 1, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.calc-modal-overlay[hidden] { display: none; }
.calc-modal {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  width: 100%; max-width: 560px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 26px 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}
.calc-modal h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.calc-modal-sub { font-size: 0.85rem; color: var(--ink2); margin-top: 6px; line-height: 1.55; }
.calc-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface); color: var(--ink2);
  cursor: pointer; font-size: 1rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.calc-modal-close:hover { background: #fbe3e3; color: #991b1b; border-color: #e5b8b8; }

.calc-order-summary {
  margin: 16px 0;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  padding: 6px 14px;
  font-size: 0.84rem;
  color: var(--ink2);
  line-height: 1.5;
}
.calc-order-item { padding: 9px 0; border-bottom: 1px dashed var(--border); }
.calc-order-item:last-of-type { border-bottom: 1px dashed var(--border); }
.calc-order-item strong { color: var(--ink); }
.calc-order-total {
  margin-top: 4px; padding: 10px 0;
  font-size: 1rem; color: var(--ink);
}
.calc-order-total strong { color: var(--accent); font-size: 1.1rem; }
.calc-order-total span { color: var(--ink3); font-size: 0.8rem; }

.calc-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-field { margin-top: 12px; }
.calc-form-grid .calc-field { margin-top: 0; }
.calc-input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s;
  margin-top: 6px;
}
.calc-input:focus { border-color: var(--accent); }
textarea.calc-input { resize: vertical; }
.calc-order-submit { width: 100%; margin-top: 16px; }
.calc-form-status { margin-top: 12px; font-size: 0.85rem; min-height: 20px; }
.calc-form-status.ok { color: #1a7f37; }
.calc-form-status.err { color: #991b1b; }
@media (max-width: 520px) {
  .calc-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1080px) {
  .calc-workspace-grid { grid-template-columns: 240px minmax(0, 1fr) 260px; }
}
@media (max-width: 900px) {
  .calc-workspace-grid { grid-template-columns: 1fr; height: auto; }
  .calc-parts-panel { border-right: none; border-bottom: 1px solid var(--border); max-height: 280px; }
  .calc-viewer-col { height: 52vh; }
  .calc-controls-panel { border-left: none; border-top: 1px solid var(--border); }
}


/* ── PAGE HEADER (H1) ── */
.page-header {
  padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 60px);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.page-header .section-title { margin-bottom: 0; }
.page-header + .section { padding-top: clamp(28px, 5vw, 56px); }
