@font-face {
  font-family: "BPG Nino Mtavruli";
  src: url("../fonts/nino/bpg-nino-mtavruli-webfont.woff2") format("woff2"),
    url("../fonts/nino/bpg-nino-mtavruli-webfont.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #0a0b09;
  --color-surface: rgba(10, 11, 9, 0.55);
  --color-text: #f6f6f4;
  --color-muted: #c3c3bd;
  --color-accent: #e74f1c;
  --color-border: rgba(255, 255, 255, 0.08);
  --nav-height: 82px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "BPG Nino Mtavruli", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

html[lang="ka"] body {
  font-family: "BPG Nino Mtavruli", "Space Grotesk", sans-serif;
}

@media (max-width: 575.98px) {
  .container {
    --bs-gutter-x: 2rem;
  }
}

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

.navbar-brand img {
  height: 28px;
  max-height: 32px;
  width: auto;
}

.navbar-brand img.header-logo {
  height: 28px;
  max-height: 32px;
}

.logo-glow {
  /* Disable filter effects to prevent SVG rasterization on some mobile browsers. */
  filter: none;
}

.logo-glow:hover {
  filter: none;
}

#mainNav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 12px 0;
  background: transparent;
}

.nav-mobile {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  z-index: 1200;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer-panel {
  width: min(360px, 86vw);
  height: 75vh;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.35);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.drawer-overlay.active .drawer-panel {
  transform: translateY(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-header .navbar-brand img {
  height: 26px;
}

.drawer-close {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text);
  font-size: 22px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.drawer-close:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(231, 79, 28, 0.5);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 0;
  flex: 1;
}

.drawer-link {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.drawer-link:hover {
  border-color: rgba(231, 79, 28, 0.5);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.drawer-link-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.drawer-link-row .drawer-link {
  flex: 1;
}

.drawer-lang-inline .lang-switch {
  margin-left: auto;
}

.drawer-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
}

.drawer-cta {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.drawer-lang {
  margin-top: auto;
  display: flex;
  justify-content: center;
}

.drawer-control-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 16px;
  flex-wrap: wrap;
}

.drawer-control-row .lang-switch {
  margin-left: 4px;
}

body.drawer-open {
  overflow: hidden;
}

.nav-shell {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  padding: 12px 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.24);
}

.navbar-toggler:focus {
  box-shadow: none;
}

#mainNav .nav-link {
  color: var(--color-text);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  padding: 0.3rem 0.6rem;
  border-radius: 12px;
}

#mainNav .nav-link:hover,
#mainNav .nav-link:focus {
  color: var(--color-accent);
  background: rgba(255, 255, 255, 0.05);
}

#mainNav .nav-link.active {
  color: var(--color-accent);
  background: rgba(231, 79, 28, 0.12);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: 0.65rem 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border-radius: 12px;
}

.btn-accent:hover,
.btn-accent:focus {
  transform: translateY(-0.5px);
  box-shadow: 0 10px 30px rgba(231, 79, 28, 0.22);
  background: #f25f2c;
  color: #fff;
}

.btn.is-loading {
  position: relative;
  color: rgba(255, 255, 255, 0.8);
  pointer-events: none;
}

.btn.is-loading::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

.btn.is-success {
  box-shadow: 0 8px 22px rgba(231, 79, 28, 0.16);
}

.btn.is-success::after {
  content: "✓";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

.lang-switch {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 4px;
  gap: 6px;
}

.lang-switch button {
  border: none;
  background: transparent;
  color: var(--color-muted);
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch button.active {
  background: var(--color-text);
  color: var(--color-bg);
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.icon-btn img {
  width: 20px;
  height: 20px;
}

.icon-btn:hover,
.icon-btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border-color: rgba(231, 79, 28, 0.6);
}

@media (max-width: 992px) {
  #mainNav .navbar-collapse {
    margin-top: 12px;
  }
  .nav-shell {
    padding: 12px 14px;
  }
}

/* Desktop header polish (keeps mobile/tablet untouched) */
@media (min-width: 1200px) {
  .nav-shell {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  #mainNav .nav-link {
    padding: 0.35rem 0.7rem;
    color: rgba(255, 255, 255, 0.9);
  }

  #mainNav .nav-actions .icon-btn {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.045);
  }

  #mainNav .nav-actions .icon-btn img {
    display: block;
    opacity: 0.9;
  }

  #mainNav .nav-actions .icon-btn:hover,
  #mainNav .nav-actions .icon-btn:focus {
    border-color: rgba(231, 79, 28, 0.45);
    background: rgba(231, 79, 28, 0.055);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  }

  #mainNav .nav-actions .icon-btn:hover img,
  #mainNav .nav-actions .icon-btn:focus img {
    opacity: 1;
  }
}

main {
  padding-top: 0;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.2);
  transform-origin: center;
  filter: saturate(1.05);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(10, 11, 9, 0.6) 0%,
      rgba(10, 11, 9, 0.35) 45%,
      rgba(10, 11, 9, 0.9) 82%,
      #0a0b09 100%
    ),
    linear-gradient(
      90deg,
      rgba(10, 11, 9, 0) 0%,
      rgba(10, 11, 9, 0.32) 58%,
      rgba(10, 11, 9, 0.55) 100%
    ),
    radial-gradient(circle at 20% 20%, rgba(0, 0, 0, 0.25) 0%, transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(0, 0, 0, 0.18) 0%, transparent 40%);
  pointer-events: none;
}

.about-hero {
  position: relative;
  min-height: 78vh;
  background: #0a0b09;
  background-attachment: scroll;
  overflow: hidden;
}

.about-hero-media {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(10, 11, 9, 0.5),
      rgba(10, 11, 9, 0.9)
    ),
    url("../img/maps/map.jpg") center / cover no-repeat;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  width: 100%;
  padding: 0;
  margin: 0;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  margin-top: 8px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.reveal.show {
  opacity: 1;
  transform: none;
}

.lang-fade {
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Remove native number spinners */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.cta-form input,
.cta-form select,
.form-select {
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  background-image: none;
}

.lang-fade.show {
  opacity: 1;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.info-card {
  display: grid;
  gap: 8px;
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
}

.metric-label {
  color: var(--color-muted);
  letter-spacing: 0.01em;
  font-weight: 600;
}

.meter {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.meter-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #e74f1c 0%, #f77a3f 100%);
  transition: width 0.8s ease;
}

.delivery-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.delivery-card {
  display: grid;
  gap: 16px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-row > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.metric-row .metric-value {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.metric-row .metric-label {
  font-size: 0.95rem;
}

.delivery-card .spec-list {
  display: grid;
  gap: 8px;
}

.delivery-card .spec-item:first-child {
  background: rgba(231, 79, 28, 0.08);
  border-color: rgba(231, 79, 28, 0.18);
}

.delivery-card .spec-item {
  min-width: 0;
}

@media (max-width: 900px) {
  .metric-row {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (max-width: 600px) {
  .metric-row {
    grid-template-columns: 1fr;
  }
}

.delivery-map {
  position: relative;
  width: 100%;
  min-height: 340px;
  border-radius: 18px;
  overflow: hidden;
  background: #111;
  background-image: url("../img/maps/map-loc.png");
  background-size: cover;
  background-position: center;
}

.delivery-routes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.delivery-routes path {
  fill: none;
  stroke: rgba(231, 79, 28, 0.6);
  stroke-width: 2.5px;
  stroke-dasharray: 6 6;
  filter: drop-shadow(0 0 6px rgba(231, 79, 28, 0.25));
  animation: route-dash 2.4s linear infinite;
}

@keyframes route-dash {
  to {
    stroke-dashoffset: -24;
  }
}

.delivery-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 30% 50%,
      rgba(231, 79, 28, 0.14),
      transparent 40%
    ),
    radial-gradient(circle at 70% 35%, rgba(231, 79, 28, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(10, 11, 9, 0.35), rgba(10, 11, 9, 0.55));
  pointer-events: none;
}

.pin {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.pin-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e74f1c;
  position: relative;
}

.pin-dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: rgba(231, 79, 28, 0.28);
  animation: pulse 1.8s ease-in-out infinite;
}

.pin-plant {
  border-color: rgba(231, 79, 28, 0.5);
  background: rgba(231, 79, 28, 0.16);
}

.pin-plant .pin-dot {
  box-shadow: 0 0 0 2px rgba(231, 79, 28, 0.4);
}

.delivery-note {
  color: var(--color-muted);
  font-size: 0.95rem;
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}
.btn-glass {
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.6rem 1.1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease,
    background 0.2s ease;
  border-radius: 12px;
}

.btn-glass:hover,
.btn-glass:focus {
  transform: translateY(-0.5px);
  border-color: rgba(231, 79, 28, 0.45);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
  color: var(--color-text);
}

.btn-glass.small {
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  line-height: 1.18;
  margin-bottom: 1.05rem;
  max-width: 20ch;
}

@media (min-width: 1200px) {
  html[lang="ka"] .hero h1 {
    max-width: 24ch;
  }
}

.hero p {
  max-width: 540px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.7rem;
  font-size: 1.02rem;
  line-height: 1.6;
}

.hero-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: calc(var(--nav-height) + 24px) 0 6vw;
  padding-left: calc(var(--bs-gutter-x) * 0.5);
}

.section {
  padding: 70px 0;
  background: transparent;
}

.section + .section {
  margin-top: 0;
}

.section-title {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 14px;
}

.section-lead {
  color: var(--color-muted);
  max-width: 820px;
  margin-bottom: 30px;
  line-height: 1.6;
}

.glass-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.glass-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.glass-card h3 {
  margin: 0 0 10px 0;
  font-size: 1.35rem;
}

.glass-card .card-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-muted);
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.glass-card p {
  color: var(--color-muted);
  margin-bottom: 18px;
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.spec-item {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.spec-item strong {
  display: block;
  color: var(--color-text);
  margin-bottom: 4px;
}

.spec-item span {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.spec-heading {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text);
  font-size: 0.9rem;
  margin: 6px 0 8px;
}

.spec-item.collapsed {
  display: none;
}

.pill-switch {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 4px;
  gap: 6px;
}

.pill-button {
  border: none;
  background: transparent;
  color: var(--color-muted);
  padding: 8px 14px;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.pill-button.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-text);
  transform: translateY(-1px);
}

.product-pane {
  display: none;
}

.product-pane.active {
  display: block;
}

.cases-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.cases-dots {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.cases-dots.active {
  display: flex;
}

.slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.28);
  transition: transform 0.2s ease, background 0.2s ease;
  padding: 0;
  cursor: pointer;
}

.slider-dot.active {
  background: var(--color-accent);
  transform: scale(1.05);
}

.case-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.25s ease, border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.case-card:hover {
  transform: translateY(-3px);
  border-color: rgba(231, 79, 28, 0.32);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.3);
}

.case-thumb {
  position: relative;
  height: 180px;
  background: radial-gradient(
      circle at 30% 30%,
      rgba(231, 79, 28, 0.16),
      transparent 50%
    ),
    rgba(10, 11, 9, 0.85);
  overflow: hidden;
}

.case-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 11, 9, 0.05) 0%,
    rgba(10, 11, 9, 0.35) 100%
  );
}

.play-btn {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
}

.play-btn span {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.play-btn span::before {
  content: "";
  border-style: solid;
  border-width: 9px 0 9px 14px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}

.play-btn:hover span {
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.case-body {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.case-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 0.88rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.06);
}

.badge.orange {
  background: rgba(231, 79, 28, 0.16);
  border-color: rgba(231, 79, 28, 0.5);
  color: #fff;
}

.case-card h4 {
  margin: 0;
  font-size: 1.2rem;
}

.case-card p {
  margin: 0;
  color: var(--color-muted);
}

.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.video-modal.active {
  display: flex;
}

.video-modal .modal-content {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  max-width: 960px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.video-modal header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.video-modal h4 {
  margin: 0;
}

.video-modal .close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--color-text);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.video-modal .close-btn:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.16);
}

.video-modal video {
  width: 100%;
  height: 100%;
  max-height: 70vh;
  background: #000;
  display: block;
}

.form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

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

.form-field label {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.form-control,
.form-select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  -webkit-text-fill-color: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  padding: 10px 12px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23ffffff' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 8px;
}

.form-control::placeholder {
  color: rgba(246, 246, 244, 0.8);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(231, 79, 28, 0.5);
  box-shadow: 0 0 0 2px rgba(231, 79, 28, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  -webkit-text-fill-color: rgba(255, 255, 255, 0.92);
}

.calc-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.phone-input {
  color: rgba(255, 255, 255, 0.92);
  -webkit-text-fill-color: rgba(255, 255, 255, 0.92);
  caret-color: #fff;
}

.phone-input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.phone-input:focus,
.phone-input:active,
.phone-input:not(:placeholder-shown) {
  color: rgba(255, 255, 255, 0.92);
  -webkit-text-fill-color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.06);
}

.phone-input:-webkit-autofill {
  -webkit-text-fill-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.06) inset;
  caret-color: #fff;
}

.form-control:hover,
.form-select:hover,
.form-control:active,
.form-select:active,
.form-control:not(:placeholder-shown),
.form-select:not(:placeholder-shown) {
  color: rgba(255, 255, 255, 0.92);
  -webkit-text-fill-color: rgba(255, 255, 255, 0.92);
}

input:-webkit-autofill,
input:-webkit-autofill:focus,
input:-webkit-autofill:hover,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.06) inset;
  caret-color: #fff;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.input-error {
  border-color: rgba(231, 79, 28, 0.75) !important;
  box-shadow: 0 0 0 2px rgba(231, 79, 28, 0.25) !important;
}

.toast-layer {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 2000;
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.toast-bubble {
  min-width: 200px;
  max-width: 320px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: auto;
}

.toast-bubble.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-bubble.error {
  border-color: rgba(231, 79, 28, 0.8);
  background: rgba(231, 79, 28, 0.14);
  color: #fff;
}

.calc-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1.4fr 0.8fr;
  align-items: start;
  margin-top: 14px;
}

.calc-row > * {
  min-width: 0;
}

.btn-full {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 14px;
}

.calc-note {
  margin-top: 10px;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.calc-result {
  margin-top: 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.02rem;
  min-height: 52px;
  flex-direction: column;
  opacity: 0.92;
  transform: translateY(6px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.calc-result.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.range-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.range-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-muted);
  font-weight: 600;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--color-accent);
  cursor: pointer;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
}

@media (max-width: 991px) {
  .calc-row {
    grid-template-columns: 1fr;
  }

  .calc-result {
    order: -1;
  }

  .calc-buttons {
    grid-template-columns: 1fr;
  }

  .calc-actions-col {
    width: 100%;
  }
}

.calc-fields {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: end;
}

.calc-fields .form-field {
  min-width: 0;
}

.volume-inline {
  display: flex;
  gap: 10px;
  align-items: center;
}

.volume-inline .form-control {
  max-width: 110px;
}

.result-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.result-price {
  font-size: 1.4rem;
  font-weight: 700;
}

.result-label {
  color: var(--color-muted);
  font-weight: 600;
  letter-spacing: 0.01em;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.result-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  width: 100%;
}

.result-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 10px;
}

.result-item span {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.result-item strong {
  color: var(--color-text);
  font-size: 0.98rem;
}

.result-empty {
  color: var(--color-muted);
}

.form-helper {
  color: #f2994a;
  font-size: 0.9rem;
  min-height: 18px;
}

.calc-actions-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-secondary-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.btn-request {
  background: var(--color-accent);
  border: 1px solid rgba(231, 79, 28, 0.6);
  color: #fff;
  box-shadow: 0 10px 26px rgba(231, 79, 28, 0.2);
}

.btn-request:hover,
.btn-request:focus {
  border-color: rgba(231, 79, 28, 0.8);
  box-shadow: 0 12px 28px rgba(231, 79, 28, 0.24);
}

.btn-request:disabled {
  background: var(--color-accent);
  border: 1px solid rgba(231, 79, 28, 0.6);
  color: #fff;
  opacity: 1;
}

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

.calc-buttons .btn,
.calc-actions-col .btn {
  min-height: 52px;
  border-radius: 14px;
}

.calc-addons {
  margin-top: 8px;
}

.calc-addons .text-muted {
  /* Bootstrap's .text-muted uses !important, so override with equal priority. */
  color: rgba(255, 255, 255, 0.82) !important;
}

.addons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.addon-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  user-select: none;
  min-height: 42px;
}

.addon-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent);
  flex-shrink: 0;
}

.calc-fields .form-control,
.calc-fields .form-select,
.calc-addons .form-select,
.calc-row .form-control,
.calc-row .form-select {
  min-height: 52px;
  border-radius: 12px;
}

.result-tooltip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
  color: var(--color-muted);
  line-height: 1;
}

.result-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.chip small {
  color: var(--color-muted);
  font-size: 0.82rem;
}

.chip strong {
  font-size: 0.95rem;
}

.result-subtext {
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.calc-result .result-meta {
  margin-top: 6px;
}

.result-breakdown {
  width: 100%;
}

.result-subline {
  color: var(--color-text);
  font-size: 0.95rem;
}

.result-total-line {
  border: 1px solid rgba(255, 255, 255, 0.25);
}

@media (prefers-reduced-motion: reduce) {
  .calc-result,
  .toast-bubble {
    transition: none;
  }
}

@media (max-width: 1200px) {
  .calc-row {
    grid-template-columns: 1fr;
  }

  .calc-result {
    order: -1;
  }
}

@media (max-width: 900px) {
  .calc-fields {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .addons-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

@media (max-width: 600px) {
  .calc-fields {
    grid-template-columns: 1fr;
  }

  .calc-row {
    grid-template-columns: 1fr;
  }

  .calc-buttons {
    grid-template-columns: 1fr;
  }

  .calc-actions-col {
    width: 100%;
  }

  .addon-check {
    padding: 12px 14px;
  }
}

@media (max-width: 768px) {
  .calc-card .field-volume {
    grid-column: span 2;
  }
  .calc-card .field-zone {
    grid-column: span 2;
  }
}

/* Volume stepper overrides */
.volume-stepper {
  position: relative;
  width: 100%;
}

.volume-stepper input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding-left: 52px;
  padding-right: 52px;
  text-align: center;
  border-radius: 12px;
  -moz-appearance: textfield;
  appearance: textfield;
  background-image: none !important;
  color: var(--color-text);
}

.volume-stepper input::-webkit-outer-spin-button,
.volume-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.volume-stepper .stepper-btn {
  position: absolute;
  top: 2px;
  bottom: 2px;
  width: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
  z-index: 2;
}

.volume-stepper .stepper-btn.minus {
  left: 2px;
  border-right: 0;
  border-radius: 10px 0 0 10px;
}

.volume-stepper .stepper-btn.plus {
  right: 2px;
  border-left: 0;
  border-radius: 0 10px 10px 0;
}

.volume-stepper .stepper-btn:hover,
.volume-stepper .stepper-btn:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.volume-stepper .stepper-btn:active {
  background: rgba(255, 255, 255, 0.12);
}

/* Calculator overrides */
.calc-card .calc-fields {
  gap: 15px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.calc-card .calc-row {
  gap: 14px;
}

.calc-card .field-volume {
  min-width: 260px;
  grid-column: span 2;
}

.calc-card #volumeInput {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding-left: 52px;
  padding-right: 52px;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
  display: block;
}

.calc-card #volumeInput::-webkit-outer-spin-button,
.calc-card #volumeInput::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.calc-card .volume-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.calc-card .volume-stepper {
  position: relative;
  width: 100%;
  display: block;
}

.calc-card .volume-stepper .stepper-btn {
  position: absolute;
  top: 1px;
  bottom: 1px;
  width: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.calc-card .volume-stepper .stepper-btn:hover,
.calc-card .volume-stepper .stepper-btn:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.calc-card .volume-stepper .stepper-btn:active {
  background: rgba(255, 255, 255, 0.12);
}

.calc-card .volume-stepper .stepper-btn.minus {
  left: 0;
  border-right: none;
  border-radius: 10px 0 0 10px;
  z-index: 2;
}

.calc-card .volume-stepper .stepper-btn.plus {
  right: 0;
  border-left: none;
  border-radius: 0 10px 10px 0;
  z-index: 2;
}

.calc-card .volume-hint {
  color: var(--color-muted);
  font-size: 0.9rem;
  padding: 0 4px;
}

.contacts-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.contact-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  height: 100%;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-icon img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.contact-text strong {
  display: block;
  color: var(--color-text);
}

.contact-text span,
.contact-text a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-item:hover {
  border-color: rgba(231, 79, 28, 0.5);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.contact-item:hover .contact-text strong,
.contact-item:hover .contact-text a {
  color: var(--color-text);
}

.contact-item:hover .contact-text span {
  color: var(--color-accent);
}

.map-frame {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  filter: grayscale(5%) contrast(1.05) saturate(1.05);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.map-frame:hover {
  filter: grayscale(0%) contrast(1.08) saturate(1.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) and (max-width: 1024px) {
  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-card {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 24px;
  }

  .contact-list {
    gap: 16px;
  }

  .map-frame {
    height: clamp(320px, 45vw, 420px);
    border-radius: 20px;
  }
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-radius: 16px;
  background: #f2f2f2;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 8px 22px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.partner-card img {
  max-width: 120px;
  max-height: 46px;
}

.partner-card--ciu {
  background: #f2f2f2;
  border: 1px solid rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 8px 22px rgba(0, 0, 0, 0.12);
}

.partner-card--ciu img {
  max-height: 50px;
  filter: none;
}

.cta-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.cta-form {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer {
  padding: 24px 0 30px;
}

.footer-shell {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--color-muted);
  font-weight: 600;
}

.footer-link {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-link:hover {
  color: var(--color-accent);
  border-color: rgba(231, 79, 28, 0.6);
}

.to-top {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--color-text);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border-color: rgba(231, 79, 28, 0.6);
}

@media (max-width: 991px) {
  #mainNav {
    padding: 10px 0;
  }

  .nav-shell {
    border-radius: 20px;
    padding: 10px 14px;
    align-items: center;
  }

  #navbarContent {
    width: 100%;
    margin-top: 6px;
  }

  .nav-mobile {
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }

  .navbar-brand {
    margin-right: auto;
  }

  .navbar-nav {
    gap: 6px;
    width: 100%;
  }

  .navbar-nav .nav-link {
    width: 100%;
  }

  .nav-mobile ~ #navbarContent .nav-actions {
    display: none;
  }

  .cases-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }

  .cases-grid::-webkit-scrollbar {
    display: none;
  }

  .cases-grid {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .case-card {
    scroll-snap-align: start;
    flex: 0 0 45vw;
    max-width: 45vw;
  }

  .about-hero {
    background-attachment: scroll;
    background-position: center;
    min-height: 82vh;
  }

  .about-hero h1 {
    font-size: clamp(2.3rem, 5.8vw, 3rem);
    line-height: 1.2;
    max-width: 24ch;
    letter-spacing: 0;
  }

  .about-hero p {
    font-size: 1.02rem;
    line-height: 1.6;
    max-width: 42ch;
  }
}

@media (max-width: 768px) {
  :root {
    --accent-orange: #e74f1c;
    --accent-orange-rgb: 231, 79, 28;
    --accent-filter-orange: brightness(0) saturate(100%) invert(42%) sepia(84%)
      saturate(1900%) hue-rotate(345deg) brightness(98%) contrast(102%);
    --glass-bg: rgba(10, 11, 9, 0.55);
  }

  .hero {
    background: transparent;
    min-height: 100vh;
  }

  .hero video {
    object-fit: cover;
    transform: none;
  }

  body.home-page {
    background: transparent;
  }

  body.home-page .hero video {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
  }

  body.home-page .hero::after {
    position: fixed;
    inset: 0;
    z-index: -1;
  }

  .case-card {
    flex-basis: 90vw;
    max-width: 90vw;
  }

  .about-hero h1 {
    font-size: clamp(2.2rem, 7vw, 2.7rem);
    line-height: 1.16;
  }

  .about-hero p {
    font-size: 0.99rem;
    max-width: 40ch;
    line-height: 1.55;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 6vw, 2.45rem);
    line-height: 1.16;
    max-width: 23ch;
  }

  .hero p {
    font-size: 0.98rem;
    line-height: 1.55;
    max-width: 36ch;
    color: rgba(255, 255, 255, 0.88);
    margin-top: 6px;
  }

  .hero-shell {
    padding: calc(var(--nav-height) + 8px) 0 8vw;
    padding-left: calc(var(--bs-gutter-x) * 0.5);
  }

  .hero-actions {
    margin-top: 6px;
  }

  .calc-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .calc-card {
    padding-bottom: 92px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }

  .calc-card .form-control,
  .calc-card .form-select {
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.02);
  }

  .calc-card .form-control:focus,
  .calc-card .form-select:focus {
    border-color: rgba(var(--accent-orange-rgb), 0.6);
    box-shadow: 0 0 0 1px rgba(var(--accent-orange-rgb), 0.25);
    background: rgba(255, 255, 255, 0.03);
  }

  .volume-stepper input {
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.06);
  }

  .volume-stepper .stepper-btn {
    top: 4px;
    bottom: 4px;
    border: 1px solid rgba(var(--accent-orange-rgb), 0.5);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
  }

  .calc-buttons {
    grid-template-columns: 1fr;
  }

  .calc-collapse {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    margin-top: 12px;
  }

  .collapse-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    list-style: none;
  }

  .collapse-summary::-webkit-details-marker {
    display: none;
  }

  .collapse-body {
    margin-top: 10px;
  }

  .collapse-icon {
    font-weight: 700;
    color: rgba(var(--accent-orange-rgb), 0.9);
    transform: rotate(0deg);
    transition: transform 0.2s ease;
  }

  .calc-addons .collapse-summary {
    align-items: center;
  }

  .calc-addons .collapse-summary > span {
    line-height: 1.2;
  }

  .calc-addons[open] .collapse-icon {
    transform: rotate(180deg);
  }

  .calc-actions .collapse-body .btn {
    margin-bottom: 8px;
  }

  .calc-addons .collapse-summary {
    align-items: center;
  }

  .calc-addons .collapse-summary > span {
    line-height: 1.2;
  }

  .calc-card {
    padding-bottom: 88px;
  }

  .calc-note {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.7);
  }

  .calc-secondary-buttons {
    margin-top: 14px;
  }

  .calc-addons .collapse-sub {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
  }

  .calc-addons[open] .collapse-icon {
    transform: rotate(180deg);
  }

  .navbar-brand img.header-logo {
    max-height: 24px;
    height: 24px;
  }

  .drawer-header .navbar-brand img.header-logo {
    max-height: 22px;
    height: 22px;
  }

  .drawer-control-row {
    justify-content: flex-start;
    gap: 10px;
    padding-top: 18px;
  }

  .drawer-control-row .icon-btn {
    width: 44px;
    height: 44px;
  }

  .drawer-control-row {
    display: none;
  }

  .drawer-link-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .drawer-link-row .drawer-link {
    flex: 1;
  }

  .drawer-lang-inline .lang-switch {
    display: inline-flex;
  }

  .navbar-brand img.header-logo {
    max-height: 28px;
    height: 28px;
  }

  .drawer-header .navbar-brand img.header-logo {
    max-height: 26px;
    height: 26px;
  }
}

.drawer-actions-row,
.nav-mobile-actions {
  display: none !important;
}

.calc-modal .modal-dialog {
  max-width: 540px;
}

.calc-modal .modal-content {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--color-text);
}

.calc-modal .modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.calc-modal .modal-title {
  color: var(--color-text);
}

.calc-modal .btn-close {
  filter: invert(1);
}

.calc-modal .modal-body {
  display: grid;
  gap: 12px;
}

.calc-modal-summary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.summary-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.summary-item span {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.summary-item strong {
  color: var(--color-text);
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
}

.calc-modal-success {
  text-align: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.success-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .calc-modal .modal-dialog {
    margin: 0;
    width: 100%;
    max-width: none;
    height: auto;
    align-items: flex-end;
  }

  .calc-modal .modal-content {
    border-radius: 18px 18px 0 0;
  }
}

@media (max-width: 1199px) {
  #mainNav {
    padding: 10px 0;
  }

  .nav-shell {
    border-radius: 20px;
    padding: 10px 14px;
    align-items: center;
  }

  .navbar-expand-lg .navbar-toggler {
    display: inline-block;
  }

  .navbar-expand-lg .navbar-collapse {
    display: none !important;
  }

  .navbar-expand-lg .navbar-collapse.show {
    display: block !important;
  }

  .nav-mobile,
  .navbar-toggler.d-lg-none {
    display: inline-flex !important;
  }

  .navbar-brand {
    margin-right: auto;
  }

  .nav-mobile ~ #navbarContent .nav-actions {
    display: none;
  }

  .nav-mobile-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .nav-mobile .icon-btn.mobile-icon-btn {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-mobile .navbar-toggler {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(var(--accent-orange-rgb), 0.7);
    background: rgba(10, 11, 9, 0.5);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3),
      0 0 10px rgba(var(--accent-orange-rgb), 0.2);
    transition: transform 0.15s ease, box-shadow 0.15s ease,
      border-color 0.15s ease;
  }

  .nav-mobile .navbar-toggler:focus,
  .nav-mobile .navbar-toggler:hover {
    border-color: rgba(var(--accent-orange-rgb), 0.9);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34),
      0 0 12px rgba(var(--accent-orange-rgb), 0.28);
  }
}

@media (max-width: 768px) {
  :root {
    --accent-orange: #e74f1c;
    --accent-orange-rgb: 231, 79, 28;
    --accent-filter-orange: brightness(0) saturate(100%) invert(42%) sepia(84%)
      saturate(1900%) hue-rotate(345deg) brightness(98%) contrast(102%);
    --glass-bg: rgba(10, 11, 9, 0.55);
  }

  .nav-shell {
    padding: 8px 12px;
    gap: 6px;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .nav-mobile {
    gap: 6px;
  }

  .nav-mobile-actions {
    display: none;
  }

  .nav-mobile .icon-btn.mobile-icon-btn {
    width: 34px;
    height: 34px;
  }

  .nav-mobile .navbar-toggler {
    width: 36px;
    height: 36px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--accent-orange);
    background: var(--glass-bg);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35),
      0 0 12px rgba(var(--accent-orange-rgb), 0.25);
  }

  .navbar-brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .navbar-brand img.header-logo {
    height: 18px;
    max-height: 18px;
    width: auto;
  }

  .drawer-actions-row {
    gap: 6px;
    padding-top: 8px;
  }

  .drawer-actions-row .icon-btn {
    width: 34px;
    height: 34px;
  }

  .drawer-lang-inline {
    padding-top: 8px;
    display: flex;
    justify-content: flex-start;
  }

  .drawer-lang-inline .lang-switch {
    margin-left: 0;
  }

  #mainNav .nav-link.active {
    color: #ff8a4a;
    text-shadow: 0 0 8px rgba(231, 79, 28, 0.45);
    box-shadow: inset 0 -1.5px 0 rgba(231, 79, 28, 0.6);
  }

  .nav-mobile .navbar-toggler-icon {
    width: 18px;
    height: 12px;
    background-image: linear-gradient(
        to bottom,
        var(--accent-orange) 2.6px,
        var(--accent-orange) 2.6px
      ),
      linear-gradient(
        to bottom,
        var(--accent-orange) 2.6px,
        var(--accent-orange) 2.6px
      ),
      linear-gradient(
        to bottom,
        var(--accent-orange) 2.6px,
        var(--accent-orange) 2.6px
      );
    background-size: 100% 2px, 100% 2px, 100% 2px;
    background-repeat: no-repeat;
    background-position: 0 0, 0 5px, 0 10px;
    opacity: 0.9;
  }

  .nav-mobile .navbar-toggler:active {
    transform: scale(0.96);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34),
      0 0 12px rgba(var(--accent-orange-rgb), 0.28);
    border-color: rgba(var(--accent-orange-rgb), 0.9);
  }
}

.fab-shell {
  position: fixed;
  right: 16px;
  bottom: 18px;
  display: none;
  flex-direction: column-reverse;
  align-items: center;
  gap: 10px;
  z-index: 1201;
}

.fab-toggle,
.fab-item {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--glass-bg);
  border: 1px solid rgba(var(--accent-orange-rgb), 0.35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35),
    0 0 12px rgba(var(--accent-orange-rgb), 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease,
    opacity 0.2s ease;
}

.fab-toggle img,
.fab-item img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

.fab-toggle {
  animation: fab-pulse 3s ease-in-out infinite;
}

.fab-toggle:hover,
.fab-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35),
    0 0 14px rgba(var(--accent-orange-rgb), 0.28);
  border-color: rgba(var(--accent-orange-rgb), 0.55);
}

.fab-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.fab-shell.open .fab-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@keyframes fab-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35),
      0 0 12px rgba(var(--accent-orange-rgb), 0.18);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38),
      0 0 16px rgba(var(--accent-orange-rgb), 0.24);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35),
      0 0 12px rgba(var(--accent-orange-rgb), 0.18);
  }
}

@media (max-width: 768px) {
  .fab-shell {
    display: flex;
  }
}
.calc-result .result-meta,
.calc-result .result-breakdown,
.calc-result .result-chips {
  min-width: 0;
}

.result-breakdown {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.calc-card .field-zone {
  min-width: 240px;
}

@media (min-width: 1200px) {
  .calc-card .calc-fields {
    grid-template-columns: 1fr 1.2fr 1fr;
  }
  .calc-card .field-volume {
    grid-column: 2 / span 1;
  }
  .calc-card .field-zone {
    grid-column: 3 / span 1;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .calc-card .calc-fields {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
  .calc-card .field-volume {
    grid-column: 1 / span 2;
  }
  .calc-card .field-zone {
    grid-column: 1 / span 2;
  }
}
