/* ===============================
   MULTILIFT KALLUR — DESIGN SYSTEM
   =============================== */

:root {
  --brand-yellow: #F2B91A;
  --brand-yellow-dark: #D9A511;
  --brand-yellow-light: #FFF8E1;
  --brand-orange: #EE7203;
  --brand-orange-dark: #C95F02;
  --brand-black: #0F0F0F;
  --brand-grey-50: #FAFAF8;
  --brand-grey-100: #F1F1ED;
  --brand-grey-200: #E5E4DF;
  --brand-grey-300: #D1CFC8;
  --brand-grey-400: #A8A6A0;
  --brand-grey-600: #5A5853;
  --brand-grey-800: #2A2926;

  --container: 1280px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px -8px rgba(0,0,0,0.12);
  --shadow-lg: 0 24px 48px -16px rgba(0,0,0,0.18);
  --shadow-yellow: 0 16px 32px -8px rgba(242,185,26,0.45);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Archivo', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--brand-grey-50);
  color: var(--brand-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.5;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.font-display {
  font-family: 'Archivo Black', sans-serif;
  letter-spacing: -0.02em;
  line-height: 0.95;
}
.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* ===============================
   LAYOUT
   =============================== */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container { padding: 0 32px; }
}

/* ===============================
   HEADER
   =============================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all .35s cubic-bezier(.4,0,.2,1);
  padding: 16px 0;
}

.header--transparent {
  background: transparent;
}

.header--solid {
  background: rgba(15, 15, 15, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px -8px rgba(0,0,0,0.4);
  padding: 12px 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header__logo img {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
  transition: all .3s ease;
}

.header--solid .header__logo img {
  height: 40px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.header__nav {
  display: none;
  align-items: center;
  gap: 4px;
}

@media (min-width: 1024px) {
  .header__nav { display: flex; }
}

.header__nav-item {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 99px;
  transition: all .2s ease;
}

.header--transparent .header__nav-item {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.header--solid .header__nav-item {
  color: rgba(255, 255, 255, 0.85);
  text-shadow: none;
}

.header__nav-item:hover {
  background: rgba(242,185,26,0.2);
}

.header--solid .header__nav-item:hover {
  background: rgba(242, 185, 26, 0.15);
  color: var(--brand-yellow);
}

.header__nav-item--active {
  color: var(--brand-yellow) !important;
}

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown-arrow {
  display: inline-block;
  margin-left: 4px;
  font-size: 10px;
  transition: transform .2s;
}
.has-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 260px;
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transition: all .25s ease;
  border: 1px solid var(--brand-grey-200);
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(4px);
}

.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--brand-grey-800);
  font-weight: 500;
  transition: all .2s;
}

.dropdown a:hover {
  background: var(--brand-yellow-light);
  color: var(--brand-black);
}

.header__cta {
  display: none;
  align-items: center;
  gap: 12px;
}

@media (min-width: 768px) {
  .header__cta { display: flex; }
}

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--brand-yellow);
  color: var(--brand-black);
  border-radius: 99px;
  font-weight: 700;
  font-size: 15px;
  transition: all .25s ease;
  box-shadow: var(--shadow-yellow);
}

.header__phone:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 36px -8px rgba(242,185,26,0.55);
}

.header__phone svg { width: 16px; height: 16px; }

/* Mobile menu button */
.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  transition: all .25s;
}

.header--solid .mobile-toggle {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.mobile-toggle svg {
  width: 22px;
  height: 22px;
  color: #fff;
}

.header--solid .mobile-toggle svg { color: #fff; }

@media (min-width: 1024px) {
  .mobile-toggle { display: none; }
}

/* Mobile menu drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--brand-black);
  color: #fff;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  padding: 24px 20px 40px;
}

.mobile-drawer--open {
  transform: translateX(0);
}

.mobile-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.mobile-drawer__close {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.mobile-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-drawer__item {
  display: block;
  padding: 16px 20px;
  font-size: 18px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: background .2s;
  color: #fff;
}

.mobile-drawer__item:hover,
.mobile-drawer__item--active {
  background: rgba(242,185,26,0.15);
  color: var(--brand-yellow);
}

.mobile-drawer__group {
  padding: 12px 20px;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-yellow);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 16px;
}

.mobile-drawer__sub {
  display: block;
  padding: 12px 20px;
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  border-radius: var(--radius-md);
  transition: background .2s;
}

.mobile-drawer__sub:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
}

.mobile-drawer__cta {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-drawer__phone {
  background: var(--brand-yellow);
  color: var(--brand-black);
  padding: 16px;
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 700;
  font-size: 16px;
}

/* ===============================
   BUTTONS
   =============================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 15px;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  white-space: nowrap;
}

.btn--primary {
  background: var(--brand-yellow);
  color: var(--brand-black);
  box-shadow: var(--shadow-yellow);
}
.btn--primary:hover:not(:disabled) {
  background: var(--brand-yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 20px 36px -8px rgba(242,185,26,0.55);
}
.btn--primary:disabled {
  background: var(--brand-grey-200);
  color: var(--brand-grey-400);
  cursor: not-allowed;
  box-shadow: none;
}

.btn--dark {
  background: var(--brand-black);
  color: #fff;
}
.btn--dark:hover {
  background: var(--brand-grey-800);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--brand-grey-800);
  border: 1.5px solid var(--brand-grey-300);
}
.btn--ghost:hover {
  border-color: var(--brand-grey-400);
  background: var(--brand-grey-100);
}

.btn--outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(4px);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

.btn--lg {
  padding: 18px 36px;
  font-size: 16px;
}

/* ===============================
   FOOTER
   =============================== */

.footer {
  background: var(--brand-black);
  color: #fff;
  margin-top: 80px;
}

.footer__top {
  padding: 64px 0 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .footer__top {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.footer__brand img {
  height: 56px;
  margin-bottom: 20px;
}

.footer__brand p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  margin: 0 0 24px;
  max-width: 320px;
  line-height: 1.6;
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s;
  color: #fff;
}

.footer__social a:hover {
  background: var(--brand-yellow);
  color: var(--brand-black);
  transform: translateY(-2px);
}

.footer__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-yellow);
  margin-bottom: 20px;
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__list a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: color .2s;
}

.footer__list a:hover {
  color: var(--brand-yellow);
}

.footer__contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
}

.footer__contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--brand-yellow);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer__contact-item a:hover { color: var(--brand-yellow); }

.footer__certs {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.footer__cert {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.footer__bottom a:hover { color: var(--brand-yellow); }

/* ===============================
   HERO SECTIONS
   =============================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  padding-top: 100px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15,15,15,0.7) 0%,
    rgba(15,15,15,0.4) 40%,
    rgba(15,15,15,0.85) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 40px 0 80px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(242,185,26,0.15);
  border: 1px solid rgba(242,185,26,0.4);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-yellow);
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.hero__badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--brand-yellow);
  border-radius: 50%;
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__title {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(40px, 8vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  max-width: 900px;
}

.hero__title span {
  color: var(--brand-yellow);
  display: inline-block;
}

.hero__subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 0 32px;
  line-height: 1.6;
}

.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 500px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.hero__stat-num {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(28px, 4vw, 36px);
  color: var(--brand-yellow);
  line-height: 1;
  margin-bottom: 4px;
}

.hero__stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
}

/* Sub-page hero (smaller) */
.subhero {
  position: relative;
  padding: 160px 0 80px;
  background: linear-gradient(180deg, var(--brand-black) 0%, var(--brand-grey-800) 100%);
  color: #fff;
  overflow: hidden;
}
@media (max-width: 640px) {
  .subhero { padding: 120px 0 50px; }
}

.subhero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(135deg, transparent 0, transparent 40px, rgba(242,185,26,0.04) 40px, rgba(242,185,26,0.04) 41px);
  pointer-events: none;
}

.subhero__inner {
  position: relative;
  z-index: 1;
}

.subhero__breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}

.subhero__breadcrumb a:hover { color: var(--brand-yellow); }
.subhero__breadcrumb span { color: rgba(255,255,255,0.3); }

.subhero__title {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  max-width: 800px;
}

.subhero__subtitle {
  font-size: clamp(16px, 1.6vw, 18px);
  color: rgba(255,255,255,0.75);
  max-width: 700px;
  line-height: 1.6;
}

/* ===============================
   SECTIONS
   =============================== */

.section {
  padding: 80px 0;
}

@media (min-width: 768px) {
  .section { padding: 100px 0; }
}

.section--grey { background: var(--brand-grey-100); }
.section--dark { background: var(--brand-black); color: #fff; }

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

.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-yellow-dark);
  margin-bottom: 16px;
}

.section--dark .section-eyebrow {
  color: var(--brand-yellow);
}

.section-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  max-width: 800px;
}

.section-subtitle {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--brand-grey-600);
  max-width: 600px;
  line-height: 1.6;
  margin: 0;
}

.section--dark .section-subtitle {
  color: rgba(255,255,255,0.7);
}

/* ===============================
   SERVICE CARDS
   =============================== */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .35s cubic-bezier(.4,0,.2,1);
  border: 1px solid var(--brand-grey-200);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-yellow);
}

.service-card__img {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--brand-grey-200);
}

.service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.service-card:hover .service-card__img img {
  transform: scale(1.08);
}

.service-card__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 10px;
  background: rgba(15,15,15,0.85);
  backdrop-filter: blur(8px);
  color: var(--brand-yellow);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.service-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card__title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 22px;
  line-height: 1.1;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.service-card__desc {
  color: var(--brand-grey-600);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px;
  flex: 1;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-yellow-dark);
  font-weight: 700;
  font-size: 14px;
  transition: gap .2s;
}

.service-card:hover .service-card__link {
  gap: 12px;
}

/* ===============================
   FORMS
   =============================== */

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-grey-800);
}

.form-input,
.form-select,
.form-textarea {
  padding: 14px 18px;
  border: 1.5px solid var(--brand-grey-200);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 15px;
  color: var(--brand-black);
  background: #fff;
  transition: all .2s ease;
  width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand-yellow);
  box-shadow: 0 0 0 4px rgba(242,185,26,0.15);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
}

.form-checkbox-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  background: var(--brand-yellow-light);
  border-radius: var(--radius-md);
  border: 1px solid rgba(242,185,26,0.3);
  font-size: 13px;
  cursor: pointer;
}

.form-checkbox-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-yellow-dark);
  margin-top: 2px;
  flex-shrink: 0;
}

/* ===============================
   PRICE TABLE
   =============================== */

.price-table {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--brand-grey-200);
}

.price-table__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--brand-grey-100);
  gap: 16px;
}

.price-table__row:last-child {
  border-bottom: none;
}

.price-table__row:hover {
  background: var(--brand-grey-50);
}

.price-table__row--header {
  background: var(--brand-black);
  color: #fff;
  font-family: 'Archivo Black', sans-serif;
}

.price-table__row--header:hover {
  background: var(--brand-black);
}

.price-table__name {
  flex: 1;
  font-weight: 600;
}

.price-table__price {
  font-family: 'Archivo Black', sans-serif;
  font-size: 18px;
  color: var(--brand-yellow-dark);
  white-space: nowrap;
}

.price-table__row--header .price-table__price {
  color: #fff;
  font-size: 14px;
}

/* ===============================
   UTILITY
   =============================== */

.text-yellow { color: var(--brand-yellow); }
.text-yellow-dark { color: var(--brand-yellow-dark); }
.text-grey { color: var(--brand-grey-600); }

/* Page wrapper for non-home pages */
main {
  min-height: 60vh;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--brand-grey-100); }
::-webkit-scrollbar-thumb { background: var(--brand-grey-300); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-grey-400); }

/* Reveal animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  animation: fadeUp .7s cubic-bezier(.4,0,.2,1) forwards;
}

.reveal--delay-1 { animation-delay: .1s; }
.reveal--delay-2 { animation-delay: .2s; }
.reveal--delay-3 { animation-delay: .3s; }
.reveal--delay-4 { animation-delay: .4s; }
.reveal--delay-5 { animation-delay: .5s; }

/* No scroll when drawer open */
body.no-scroll {
  overflow: hidden;
}


/* ============================================
   KALKULAATOR v5 STIIL
   ============================================ */

/* ============================================
   MULTILIFT KALLUR — STANDALONE KALKULAATOR v2
   Aadressi inputiga, KM-ta hindadega
   ============================================ */



.mlk-calc-wrap {
  font-family: 'Archivo', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--brand-black);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px;
  background: var(--brand-grey-50);
  overflow-x: hidden;
}

.mlk-calc-wrap, .mlk-calc-wrap * {
  min-width: 0;
}

.mlk-calc-wrap .mlk-calc-wrap img { display: block; max-width: 100%; }
.mlk-calc-wrap button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}
.mlk-calc-wrap input {
  font-family: inherit;
}

.mlk-calc-wrap .font-mono { font-family: 'JetBrains Mono', monospace; }

/* === Page Header === */
.calc-page-header {
  text-align: center;
  margin-bottom: 32px;
  padding: 0 8px;
}
.calc-page-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  color: var(--brand-black);
}
.calc-page-title span {
  color: var(--brand-yellow-dark);
}
.calc-page-subtitle {
  font-size: clamp(14px, 1.6vw, 17px);
  color: var(--brand-grey-600);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

/* === Buttons === */
.mlk-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 15px;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  white-space: nowrap;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  justify-content: center;
}
.mlk-btn--primary {
  background: var(--brand-yellow);
  color: var(--brand-black);
  box-shadow: 0 16px 32px -8px rgba(242,185,26,0.45);
}
.mlk-btn--primary:hover:not(:disabled) {
  background: var(--brand-yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 20px 36px -8px rgba(242,185,26,0.55);
}
.mlk-btn--primary:disabled {
  background: var(--brand-grey-200);
  color: var(--brand-grey-400);
  cursor: not-allowed;
  box-shadow: none;
}
.mlk-btn--ghost {
  background: transparent;
  color: var(--brand-grey-800);
  border: 1.5px solid var(--brand-grey-300);
}
.mlk-btn--ghost:hover {
  border-color: var(--brand-grey-400);
  background: var(--brand-grey-100);
}

/* === Calculator wrapper === */
.calc { position: relative; }

/* === Progress bar === */
.calc-progress {
  background: var(--brand-grey-200);
  height: 4px;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 24px;
}
.calc-progress-fill {
  background: linear-gradient(90deg, var(--brand-yellow), var(--brand-orange));
  height: 100%;
  transition: width .6s cubic-bezier(.4,0,.2,1);
  width: 0%;
}

/* === Step pills === */
.calc-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.calc-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 99px;
  transition: all .3s ease;
  cursor: pointer;
  background: var(--brand-grey-100);
}
.calc-pill[data-active="true"] {
  background: var(--brand-black);
  color: #fff;
}
.calc-pill[data-done="true"] {
  background: var(--brand-yellow);
  color: var(--brand-black);
}
.calc-pill-num {
  width: 26px;
  height: 26px;
  background: var(--brand-grey-200);
  color: var(--brand-grey-600);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  transition: all .3s ease;
}
.calc-pill[data-active="true"] .calc-pill-num {
  background: var(--brand-yellow);
  color: var(--brand-black);
}
.calc-pill[data-done="true"] .calc-pill-num {
  background: var(--brand-black);
  color: var(--brand-yellow);
}
.calc-pill-label {
  font-weight: 700;
  font-size: 14px;
}
.calc-pill-line {
  flex: 1;
  height: 1px;
  background: var(--brand-grey-200);
  display: none;
}
@media (min-width: 768px) {
  .calc-pill-line { display: block; }
}

/* === Layout === */
.calc-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 1024px) {
  .calc-layout { grid-template-columns: 1fr 380px; gap: 32px; }
}

.calc-section { display: none; }
.calc-section[data-active="true"] { display: block; animation: fadeUp .5s ease both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.calc-card {
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--brand-grey-200);
  padding: 24px;
}
@media (min-width: 768px) {
  .calc-card { padding: 40px; }
}

.calc-section-head {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.calc-section-num {
  width: 40px;
  height: 40px;
  background: var(--brand-yellow);
  color: var(--brand-black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Archivo Black', sans-serif;
  font-size: 16px;
  flex-shrink: 0;
}
.calc-section-num.pulse-step {
  animation: pulse-yellow 2s infinite;
}
@keyframes pulse-yellow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(242,185,26,.6); }
  50% { box-shadow: 0 0 0 14px rgba(242,185,26,0); }
}
.calc-section-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.1;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}
.calc-section-desc {
  color: var(--brand-grey-600);
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
}
.calc-section-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.calc-note {
  font-size: 12px;
  color: var(--brand-grey-600);
  margin-top: 12px;
}

/* ===== STEP 1: ADDRESS INPUT ===== */
.calc-address-wrap {
  position: relative;
}
.calc-address-input-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.calc-address-input-box {
  position: relative;
  flex: 1;
  min-width: 0;
}
.calc-address-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--brand-yellow-dark);
  pointer-events: none;
}
.calc-address-input {
  width: 100%;
  padding: 16px 16px 16px 44px;
  border: 2px solid var(--brand-grey-200);
  border-radius: var(--radius-md);
  font-size: 15px;
  background: #fff;
  color: var(--brand-black);
  transition: all .2s ease;
  outline: none;
  font-weight: 500;
}
.calc-address-input:focus {
  border-color: var(--brand-yellow);
  box-shadow: 0 0 0 4px rgba(242,185,26,0.15);
}
.calc-address-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  background: var(--brand-grey-200);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--brand-grey-600);
  transition: all .2s;
}
.calc-address-clear.show {
  display: flex;
}
.calc-address-clear:hover {
  background: var(--brand-grey-300);
  color: var(--brand-black);
}
.calc-gps-btn {
  width: 56px;
  flex-shrink: 0;
  background: var(--brand-black);
  color: var(--brand-yellow);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s ease;
}
.calc-gps-btn:hover {
  background: var(--brand-grey-800);
  transform: translateY(-1px);
}
.calc-gps-btn:active {
  transform: scale(0.95);
}
.calc-gps-btn svg { width: 22px; height: 22px; }
.calc-gps-btn.loading svg { animation: spin 1s linear infinite; }
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Autocomplete dropdown */
.calc-autocomplete {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px -8px rgba(0,0,0,0.15);
  border: 1px solid var(--brand-grey-200);
  max-height: 280px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}
.calc-autocomplete.show { display: block; }
.calc-autocomplete-item {
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  transition: background .15s;
  border-bottom: 1px solid var(--brand-grey-100);
}
.calc-autocomplete-item:last-child {
  border-bottom: none;
}
.calc-autocomplete-item:hover,
.calc-autocomplete-item.focused {
  background: var(--brand-yellow-light);
}
.calc-autocomplete-icon {
  width: 32px;
  height: 32px;
  background: var(--brand-grey-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-grey-600);
  flex-shrink: 0;
}
.calc-autocomplete-text {
  flex: 1;
  min-width: 0;
}
.calc-autocomplete-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.calc-autocomplete-meta {
  font-size: 12px;
  color: var(--brand-grey-600);
}

/* Distance info chip */
.calc-distance-info {
  display: none;
  margin-top: 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #FFF8E1, #FFF1C2);
  border: 1px solid rgba(242,185,26,0.4);
  border-radius: var(--radius-md);
  align-items: center;
  gap: 12px;
}
.calc-distance-info.show { display: flex; }
.calc-distance-icon {
  width: 38px;
  height: 38px;
  background: var(--brand-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-black);
  flex-shrink: 0;
}
.calc-distance-text { flex: 1; min-width: 0; }
.calc-distance-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-grey-600);
}
.calc-distance-value {
  font-family: 'Archivo Black', sans-serif;
  font-size: 16px;
  line-height: 1.2;
  margin-top: 2px;
}
.calc-distance-detail {
  font-size: 12px;
  color: var(--brand-grey-600);
  margin-top: 2px;
}

/* Quick zone buttons */
.calc-zone-quick {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.calc-zone-quick-label {
  width: 100%;
  font-size: 12px;
  color: var(--brand-grey-600);
  margin-bottom: 4px;
}
.calc-zone-quick-btn {
  padding: 8px 14px;
  border-radius: 99px;
  background: var(--brand-grey-100);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-grey-800);
  transition: all .2s;
  cursor: pointer;
  font-family: inherit;
}
.calc-zone-quick-btn:hover {
  background: var(--brand-yellow-light);
  color: var(--brand-black);
}

/* ===== STEP 2: Material ===== */
.calc-cat-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.calc-cat-btn {
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  background: var(--brand-grey-100);
  color: var(--brand-grey-600);
  transition: all .2s ease;
  cursor: pointer;
  font-family: inherit;
}
.calc-cat-btn.active {
  background: var(--brand-black);
  color: #fff;
}
.calc-cat-btn:hover:not(.active) { background: var(--brand-grey-200); }

.calc-material-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (min-width: 768px) { .calc-material-grid { grid-template-columns: 1fr 1fr 1fr; gap: 16px; } }
@media (min-width: 1024px) { .calc-material-grid { grid-template-columns: 1fr 1fr 1fr; } }

.calc-material-card {
  background: #fff;
  border: 2px solid var(--brand-grey-200);
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  transition: all .25s ease;
  position: relative;
  text-align: left;
  display: flex;
  gap: 12px;
  align-items: center;
}
.calc-material-card:hover {
  border-color: var(--brand-yellow);
  box-shadow: 0 8px 24px -8px rgba(0,0,0,.08);
}
.calc-material-card[data-selected="true"] {
  border-color: var(--brand-yellow);
  background: var(--brand-yellow);
}
.calc-material-card-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--brand-grey-100);
}
.calc-material-card-body {
  flex: 1;
  min-width: 0;
}
.calc-material-card-name {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  margin-bottom: 4px;
  word-break: break-word;
}
.calc-material-card-price {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-grey-800);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.calc-material-card[data-selected="true"] .calc-material-card-price {
  color: var(--brand-black);
}
.calc-material-card-price strong {
  font-family: 'Archivo Black', sans-serif;
  font-size: 14px;
  color: var(--brand-yellow-dark);
}
.calc-material-card[data-selected="true"] .calc-material-card-price strong {
  color: var(--brand-black);
}
.calc-material-card-vat {
  font-size: 10px;
  color: var(--brand-grey-600);
  margin-top: 2px;
}
.calc-material-card[data-selected="true"] .calc-material-card-vat {
  color: rgba(15,15,15,0.65);
}

/* Bigger cards desktop */
@media (min-width: 768px) {
  .calc-material-card {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }
  .calc-material-card-img {
    width: 100%;
    height: 110px;
    border-radius: 12px;
    margin-bottom: 4px;
  }
  .calc-material-card-name {
    font-size: 14px;
  }
  .calc-material-card-price strong {
    font-size: 18px;
  }
}

/* ===== STEP 3: Quantity ===== */
.calc-qty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
@media (min-width: 480px) { .calc-qty-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px) { .calc-qty-grid { grid-template-columns: repeat(6, 1fr); gap: 10px; } }
.calc-qty-tile {
  border: 2px solid var(--brand-yellow);
  background: #fff;
  padding: 10px 6px;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all .2s ease;
}
.calc-qty-tile:hover {
  background: #FFF8E1;
  transform: translateY(-2px);
}
.calc-qty-tile[data-selected="true"] {
  background: var(--brand-yellow);
  color: var(--brand-black);
}
.calc-qty-num {
  font-family: 'Archivo Black', sans-serif;
  font-size: 15px;
}
.calc-qty-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  opacity: 0.7;
  margin-top: 2px;
}
.calc-qty-more { border-style: dashed; }
.calc-qty-more .calc-qty-num {
  font-size: 12px;
  line-height: 1.2;
}

/* === Truck box === */
.calc-truck-box {
  position: relative;
  min-height: 240px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--brand-grey-100);
}
@media (min-width: 768px) {
  .calc-truck-box { min-height: 320px; }
}
.truck-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: opacity .5s ease;
}
.truck-photo.hidden {
  opacity: 0;
  pointer-events: none;
}
.calc-truck-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 20px;
  color: var(--brand-grey-400);
  font-size: 13px;
}
.calc-truck-empty.hidden { display: none; }
.calc-truck-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  color: #fff;
  background: linear-gradient(to top, rgba(15,15,15,.92), rgba(15,15,15,.4) 60%, transparent);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  opacity: 0;
  transition: opacity .4s ease;
}
.calc-truck-overlay.show { opacity: 1; }
.calc-truck-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-yellow);
  margin-bottom: 4px;
}
.calc-truck-name {
  font-family: 'Archivo Black', sans-serif;
  font-size: 20px;
  line-height: 1.1;
}
.calc-truck-spec {
  font-size: 11px;
  opacity: 0.8;
  margin-top: 2px;
}
.calc-truck-badge {
  background: var(--brand-black);
  color: var(--brand-yellow);
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 99px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* === Time === */
.calc-week-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 8px;
  flex-wrap: wrap;
}
.calc-week-label {
  font-size: 13px;
  color: var(--brand-grey-600);
}
.calc-time-scroll {
  overflow-x: auto;
  padding-bottom: 8px;
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
}
.calc-time-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(95px, 1fr));
  gap: 8px;
  min-width: 500px;
}
.calc-time-day-head {
  text-align: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--brand-grey-200);
  margin-bottom: 8px;
}
.calc-time-day-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--brand-grey-600);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.calc-time-day-date {
  font-family: 'Archivo Black', sans-serif;
  font-size: 15px;
  margin-top: 2px;
}
.calc-time-slot {
  border: 2px solid var(--brand-grey-200);
  background: #fff;
  color: var(--brand-grey-600);
  padding: 8px 4px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 11px;
  transition: all .2s ease;
  cursor: pointer;
  width: 100%;
  margin-bottom: 6px;
  display: block;
  font-family: inherit;
}
.calc-time-slot[data-available="true"] {
  border-color: var(--brand-yellow);
  color: var(--brand-yellow-dark);
}
.calc-time-slot[data-available="true"]:hover { background: #FFF8E1; }
.calc-time-slot[data-selected="true"] {
  background: var(--brand-yellow);
  color: var(--brand-black);
  border-color: var(--brand-yellow);
}
.calc-time-slot[data-available="false"] {
  cursor: not-allowed;
  opacity: 0.4;
}

/* === Form checkbox === */
.calc-checkbox-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  background: var(--brand-yellow-light);
  border-radius: var(--radius-md);
  border: 1px solid rgba(242,185,26,0.3);
  font-size: 12px;
  cursor: pointer;
  margin-top: 20px;
}
.calc-checkbox-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-yellow-dark);
  margin-top: 2px;
  flex-shrink: 0;
}

/* === Sidebar === */
.calc-sidebar { position: relative; }
@media (min-width: 1024px) {
  .calc-sidebar > .calc-summary {
    position: sticky;
    top: 24px;
  }
}
.calc-summary {
  background: #fff;
  border-radius: var(--radius-xl);
  border: 2px solid var(--brand-black);
  overflow: hidden;
}
.calc-summary-head {
  background: var(--brand-black);
  color: #fff;
  padding: 16px 20px;
}
.calc-summary-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-yellow);
  margin-bottom: 4px;
}
.calc-summary-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 20px;
  line-height: 1.2;
}
.calc-summary-body { padding: 16px 20px; }
.calc-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--brand-grey-200);
  margin-bottom: 10px;
}
.calc-summary-row--last { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.calc-summary-right { text-align: right; }
.calc-summary-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-grey-600);
  margin-bottom: 2px;
}
.calc-summary-sub {
  font-size: 11px;
  color: var(--brand-grey-600);
}
.calc-summary-value {
  font-weight: 700;
  font-size: 13px;
  word-break: break-word;
}
.calc-summary-price {
  font-weight: 700;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}
.calc-summary-total {
  padding-top: 14px;
  border-top: 1px solid var(--brand-grey-200);
  margin-top: 14px;
}
/* Hind ilma km'iga */
.calc-summary-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--brand-grey-600);
  margin-bottom: 4px;
}
.calc-summary-subtotal-amt {
  font-weight: 600;
  font-feature-settings: "tnum";
}
.calc-summary-total-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4px;
  margin-top: 8px;
}
.calc-summary-total-amt {
  font-family: 'Archivo Black', sans-serif;
  font-size: 32px;
  color: var(--brand-yellow-dark);
  font-feature-settings: "tnum";
  line-height: 1;
  margin-bottom: 14px;
}
.calc-summary-note {
  font-size: 11px;
  color: var(--brand-grey-600);
  text-align: center;
  margin-top: 10px;
}

/* === Modal === */
.calc-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.calc-modal.show { display: flex; }
.calc-modal-inner {
  background: #fff;
  border-radius: var(--radius-xl);
  max-width: 480px;
  width: 100%;
  padding: 32px;
  text-align: center;
}
.calc-modal-check {
  width: 72px;
  height: 72px;
  background: var(--brand-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.calc-modal-check svg {
  width: 38px;
  height: 38px;
  color: var(--brand-black);
}
.calc-modal-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 24px;
  margin: 0 0 8px;
}
.calc-modal-desc {
  color: var(--brand-grey-600);
  margin: 0 0 20px;
  font-size: 14px;
}
.calc-modal-summary {
  background: var(--brand-grey-50);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: left;
  margin-bottom: 20px;
}
.calc-modal-summary > div {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 13px;
  gap: 12px;
}

/* ============================================
   MOBILE FIX - kuni 640px
   ============================================ */
@media (max-width: 640px) {
  .mlk-calc-wrap {
    padding: 14px 12px !important;
  }
  .calc-page-header {
    margin-bottom: 20px !important;
  }
  .calc-page-title {
    font-size: 26px !important;
  }
  .calc-page-subtitle {
    font-size: 13px !important;
  }

  /* Card padding */
  .calc-card {
    padding: 16px !important;
    border-radius: 18px !important;
  }
  .calc-section-head {
    gap: 10px !important;
    margin-bottom: 16px !important;
  }
  .calc-section-num {
    width: 32px !important;
    height: 32px !important;
    font-size: 13px !important;
  }
  .calc-section-title {
    font-size: 17px !important;
    line-height: 1.2 !important;
  }
  .calc-section-desc {
    font-size: 12px !important;
  }

  /* Step pills - kõik mahuvad ühele reale */
  .calc-steps {
    margin-bottom: 18px !important;
    gap: 4px !important;
    justify-content: center;
    flex-wrap: nowrap !important;
  }
  .calc-pill {
    padding: 6px 8px !important;
    flex-shrink: 1;
    min-width: 0;
  }
  .calc-pill-num {
    width: 22px !important;
    height: 22px !important;
    font-size: 11px !important;
  }
  .calc-pill-label {
    display: none !important;
  }
  .calc-pill[data-active="true"] {
    padding: 6px 12px !important;
  }
  .calc-pill[data-active="true"] .calc-pill-label {
    display: inline !important;
    font-size: 12px !important;
    white-space: nowrap;
  }
  .calc-pill-line {
    display: none !important;
  }

  /* Address input */
  .calc-address-input {
    padding: 14px 12px 14px 38px !important;
    font-size: 14px !important;
  }
  .calc-address-icon {
    left: 12px !important;
    width: 18px !important;
    height: 18px !important;
  }
  .calc-gps-btn {
    width: 48px !important;
  }
  .calc-gps-btn svg {
    width: 20px !important;
    height: 20px !important;
  }
  .calc-distance-info {
    padding: 12px !important;
  }
  .calc-distance-value {
    font-size: 14px !important;
  }
  .calc-distance-detail {
    font-size: 11px !important;
  }

  /* Material cards - kompaktsemad telefoni vaates */
  .calc-material-grid {
    gap: 8px !important;
  }
  .calc-material-card {
    padding: 10px !important;
    gap: 10px !important;
  }
  .calc-material-card-img {
    width: 42px !important;
    height: 42px !important;
  }
  .calc-material-card-name {
    font-size: 12px !important;
  }
  .calc-material-card-price strong {
    font-size: 13px !important;
  }
  .calc-material-card-price {
    font-size: 11px !important;
  }
  .calc-material-card-vat {
    font-size: 9px !important;
  }

  /* Category filter scrollitav */
  .calc-cat-filter {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    margin: 0 -16px 16px !important;
    padding: 0 16px 4px !important;
    scrollbar-width: none;
  }
  .calc-cat-filter::-webkit-scrollbar { display: none; }
  .calc-cat-btn {
    flex-shrink: 0;
    font-size: 12px !important;
    padding: 7px 14px !important;
  }

  /* Truck box - rohkem ruumi auto jaoks */
  .calc-truck-box {
    min-height: 220px !important;
  }
  .calc-truck-name {
    font-size: 17px !important;
  }
  .calc-truck-overlay {
    padding: 12px !important;
  }

  /* Time grid */
  .calc-time-grid {
    min-width: 460px !important;
    grid-template-columns: repeat(5, minmax(88px, 1fr)) !important;
    gap: 6px !important;
  }
  .calc-time-day-name {
    font-size: 8px !important;
  }
  .calc-time-day-date {
    font-size: 13px !important;
  }
  .calc-time-slot {
    font-size: 10px !important;
    padding: 7px 2px !important;
  }
  .calc-week-nav {
    flex-direction: column;
    align-items: stretch !important;
  }
  .calc-week-nav .mlk-btn {
    flex: 1;
  }

  /* Section nupud */
  .calc-section-foot {
    margin-top: 18px !important;
    gap: 8px !important;
  }
  .calc-section-foot .mlk-btn {
    flex: 1;
    padding: 11px 12px !important;
    font-size: 12px !important;
  }

  /* Modal */
  .calc-modal-inner {
    padding: 24px 18px !important;
    border-radius: 20px !important;
  }
  .calc-modal-title {
    font-size: 20px !important;
  }
  .calc-modal-check {
    width: 56px !important;
    height: 56px !important;
  }
  .calc-modal-check svg {
    width: 30px !important;
    height: 30px !important;
  }
}

/* === Sidebar in mobile - SUMMARY ALWAYS ON TOP === */
@media (max-width: 1023px) {
  .calc-layout {
    grid-template-columns: 1fr !important;
  }
  .calc-sidebar {
    order: -1;
    margin-bottom: 0;
  }
  .calc-summary {
    position: sticky !important;
    top: 8px !important;
    z-index: 50;
  }
}

/* Telefonis - kompaktne summary */
@media (max-width: 640px) {
  .calc-sidebar .calc-summary-row {
    display: none !important;
  }
  .calc-sidebar .calc-summary-total {
    padding-top: 0 !important;
    border-top: none !important;
    margin-top: 0 !important;
  }
  .calc-sidebar .calc-summary-total-amt {
    font-size: 24px !important;
    margin-bottom: 8px !important;
  }
  .calc-sidebar .calc-summary-note {
    display: none !important;
  }
  .calc-sidebar .calc-summary-subtotal {
    font-size: 11px !important;
    margin-bottom: 2px !important;
  }
  .calc-summary {
    border-width: 1.5px !important;
    border-radius: 14px !important;
    box-shadow: 0 6px 20px -8px rgba(0,0,0,0.18);
  }
  .calc-summary-head {
    padding: 10px 14px !important;
  }
  .calc-summary-body {
    padding: 10px 14px !important;
  }
  .calc-summary-total-row {
    margin-bottom: 0 !important;
    margin-top: 4px !important;
  }
  #sidebar-submit {
    padding: 10px !important;
    font-size: 12px !important;
  }
}

/* Päris väikesed ekraanid */
@media (max-width: 380px) {
  .mlk-calc-wrap {
    padding: 12px 10px !important;
  }
  .calc-card {
    padding: 14px !important;
  }
  .calc-material-card {
    padding: 8px !important;
    gap: 8px !important;
  }
  .calc-material-card-img {
    width: 38px !important;
    height: 38px !important;
  }
}


/* === Extra fix tõeliselt väikestele ekraanidele === */
@media (max-width: 420px) {
  .mlk-calc-wrap {
    padding: 12px 10px !important;
  }
  .calc-page-title {
    font-size: 24px !important;
  }
  .calc-page-subtitle {
    font-size: 12px !important;
  }
  .calc-card {
    padding: 14px !important;
  }
  /* Step pillid - ainult numbrid, ka aktiivne */
  .calc-steps {
    gap: 4px !important;
  }
  .calc-pill {
    padding: 5px 8px !important;
  }
  .calc-pill[data-active="true"] {
    padding: 5px 10px !important;
  }
  .calc-pill-label {
    display: none !important;
  }
  .calc-pill[data-active="true"] .calc-pill-label {
    font-size: 11px !important;
  }
  /* Address input */
  .calc-address-input-row {
    gap: 8px !important;
  }
  .calc-address-input {
    font-size: 13px !important;
    padding: 12px 10px 12px 34px !important;
  }
  .calc-address-icon {
    left: 10px !important;
    width: 16px !important;
    height: 16px !important;
  }
  .calc-gps-btn {
    width: 44px !important;
  }
  .calc-gps-btn svg {
    width: 18px !important;
    height: 18px !important;
  }
  /* Quick zone buttons */
  .calc-zone-quick-btn {
    font-size: 11px !important;
    padding: 6px 10px !important;
  }
  /* Material cards */
  .calc-material-grid {
    gap: 6px !important;
  }
  .calc-material-card {
    padding: 8px !important;
    gap: 8px !important;
    border-width: 1.5px !important;
  }
  .calc-material-card-img {
    width: 36px !important;
    height: 36px !important;
  }
  .calc-material-card-name {
    font-size: 11px !important;
  }
  .calc-material-card-price strong {
    font-size: 12px !important;
  }
  .calc-material-card-price {
    font-size: 10px !important;
  }
  .calc-material-card-vat {
    font-size: 8px !important;
  }
  /* Qty grid */
  .calc-qty-grid {
    gap: 6px !important;
  }
  .calc-qty-tile {
    padding: 8px 4px !important;
    border-width: 1.5px !important;
  }
  .calc-qty-num {
    font-size: 13px !important;
  }
  .calc-qty-price {
    font-size: 9px !important;
  }
  /* Truck box - rohkem ruumi auto jaoks */
  .calc-truck-box {
    min-height: 200px !important;
  }
  .calc-truck-name {
    font-size: 15px !important;
  }
  /* Time */
  .calc-time-grid {
    min-width: 420px !important;
    grid-template-columns: repeat(5, minmax(80px, 1fr)) !important;
  }
  .calc-time-slot {
    font-size: 9px !important;
    padding: 6px 2px !important;
  }
  /* Section foot */
  .calc-section-foot .mlk-btn {
    padding: 10px 8px !important;
    font-size: 11px !important;
  }
  /* Sidebar */
  .calc-summary-head {
    padding: 8px 12px !important;
  }
  .calc-summary-body {
    padding: 8px 12px !important;
  }
  .calc-summary-title {
    font-size: 15px !important;
  }
  .calc-summary-eyebrow {
    font-size: 9px !important;
  }
  .calc-sidebar .calc-summary-total-amt {
    font-size: 22px !important;
  }
  .calc-sidebar .calc-summary-subtotal {
    font-size: 10px !important;
  }
}

/* Kindlustame, et midagi ei lähe üle ekraani */
@media (max-width: 1023px) {
  .calc-material-card,
  .calc-region-card,
  .calc-qty-tile,
  .calc-time-slot,
  .mlk-btn {
    max-width: 100%;
  }
  .calc-material-card-body,
  .calc-summary-value {
    overflow: hidden;
  }
  .calc-material-card-name {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}

