/* TARDIGRAD — dark / electric blue theme */

:root {
  --bg-deep: #050810;
  --bg: #0a0f1a;
  --bg-elevated: #0f1624;
  --surface: rgba(18, 28, 48, 0.72);
  --surface-border: rgba(0, 180, 255, 0.22);
  --text: #e8eef7;
  --text-muted: #94a3b8;
  --accent: #00c8ff;
  --accent-dim: #0090c9;
  --accent-glow: rgba(0, 200, 255, 0.45);
  --font: "Montserrat", system-ui, sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 76px;
  --container-pad: 20px;
  --section-y: 4.5rem;
  --section-y-sm: 2.65rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Ankere u meniju: vrh sekcije ostaje ispod fiksnog headera */
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1160px, calc(100% - var(--container-pad) * 2));
  margin-inline: auto;
  box-sizing: border-box;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
  z-index: 100;
  background: linear-gradient(180deg, rgba(5, 8, 16, 0.94) 0%, rgba(5, 8, 16, 0.72) 85%, transparent 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 200, 255, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--header-h);
  padding-block: 0.35rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand:hover .brand__logo {
  filter: brightness(0) invert(1) drop-shadow(0 0 18px rgba(0, 200, 255, 0.35));
}

.brand__logo {
  flex-shrink: 0;
  height: 52px;
  width: auto;
  max-width: min(148px, 38vw);
  object-fit: contain;
  object-position: left center;
  display: block;
  /* tamni logo → svetli na tamnoj pozadini + blagi plavi sjaj */
  filter: brightness(0) invert(1) drop-shadow(0 0 12px rgba(0, 200, 255, 0.2));
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand__text--after-logo {
  padding-top: 0.1rem;
}

.brand__name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand__tag {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.brand__name--footer {
  font-size: 0.82rem;
  line-height: 1.25;
  margin-bottom: 0.15rem;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list a {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav__list a:hover {
  color: var(--accent);
  text-decoration: none;
}

.header__cta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  position: relative;
  z-index: 2;
}

.header__mail {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  margin: 0;
  border: none;
  background: transparent;
  font: inherit;
  cursor: pointer;
  border-radius: var(--radius-sm);
  -webkit-tap-highlight-color: transparent;
}

.header__mail svg {
  pointer-events: none;
}

.header__mail:hover {
  color: var(--accent);
}

.header__mail:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(0, 200, 255, 0.25);
  border-radius: var(--radius-sm);
  background: rgba(15, 22, 36, 0.8);
  cursor: pointer;
}

.nav__toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-glow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.25s, background 0.2s, border-color 0.2s, color 0.2s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.68rem;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
  color: #041018;
  box-shadow: 0 0 24px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn--primary:hover {
  box-shadow: 0 0 32px var(--accent-glow), 0 4px 20px rgba(0, 0, 0, 0.35);
  color: #020910;
}

.btn--glow:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(0, 200, 255, 0.45);
  box-shadow: 0 0 16px rgba(0, 200, 255, 0.12);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.2);
}

.btn--block {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
}

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

.hero__bg__img {
  position: absolute;
  inset: 0;
  background-color: #0a1528;
  background-image: url("../assets/hero.png");
  background-size: cover;
  background-position: left center;
  filter: saturate(0.92) brightness(0.52);
}

.hero__bg__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(5, 8, 16, 0.92) 0%,
    rgba(5, 12, 28, 0.75) 38%,
    rgba(5, 10, 22, 0.55) 100%
  );
}

.hero__bg__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 20% 50%, rgba(0, 180, 255, 0.12) 0%, transparent 55%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-block: 4rem 5rem;
  max-width: 640px;
}

.hero__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
}

.hero__title {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.05;
  text-transform: uppercase;
}

.hero__subtitle {
  margin: 0.6rem 0 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.hero__desc {
  margin: 1.35rem 0 0;
  font-size: 1rem;
  color: #b8c5d6;
  max-width: 34rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* Sections */
.section {
  position: relative;
  padding: var(--section-y) 0;
  background: var(--bg);
}

.section--tight {
  padding: 3rem 0 2rem;
  background: linear-gradient(180deg, var(--bg) 0%, #0b1220 100%);
}

.section--gallery {
  background: linear-gradient(180deg, #0b1220 0%, var(--bg) 50%, #080d18 100%);
}

.section__title {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section__lead {
  margin: 0;
  color: var(--text-muted);
  max-width: 52rem;
}

.section__heading {
  margin: 0 0 2rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 0 24px rgba(0, 200, 255, 0.15);
}

.section__muted {
  text-align: center;
  color: var(--text-muted);
  margin: -1.25rem auto 2.5rem;
  max-width: 36rem;
}

.prose {
  padding-inline: 0;
}

.prose-block p {
  margin: 0 0 1.1rem;
  color: var(--text-muted);
  max-width: 52rem;
}

.prose-block p:last-child {
  margin-bottom: 0;
}

.legal-note {
  margin: 1.75rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 52rem;
}

.section--muted-bg {
  background: linear-gradient(180deg, #0b1220 0%, var(--bg) 100%);
  padding: 3.5rem 0;
}

.section__intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 42rem;
  margin: -0.5rem auto 2rem;
}

.section__heading--left {
  text-align: left;
  margin-bottom: 1.25rem;
}

.split .section__heading--left {
  margin-bottom: 1.25rem;
}

.team-list {
  max-width: min(960px, 100%);
  margin: 0 auto;
  padding-left: 1.25rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.team-list__item--one-line {
  white-space: nowrap;
  font-size: clamp(0.72rem, 0.35vw + 0.78rem, 1rem);
}

@media (max-width: 520px) {
  .team-list__item--one-line {
    letter-spacing: -0.02em;
  }
}

.team-list__name {
  color: var(--text);
  font-weight: 600;
}

.partners__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.partners__block {
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-sm);
  background: rgba(12, 20, 36, 0.65);
  border: 1px solid rgba(0, 200, 255, 0.12);
}

.partners__heading {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.partners__text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.partners__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.95rem;
}

.partners__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 200, 255, 0.3);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.partners__link:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(0, 200, 255, 0.2);
}

.partners__note {
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
  color: #b8c5d6;
  font-style: italic;
  max-width: 48rem;
  margin-inline: auto;
}

.partners__note-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.partners__note-link:hover {
  text-decoration: underline;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.cards--six {
  grid-template-columns: repeat(3, 1fr);
}

.card--service {
  position: relative;
  padding: 0 0 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(0, 200, 255, 0.12);
  box-shadow:
    0 0 0 1px rgba(0, 200, 255, 0.06),
    0 20px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.card--service::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 16px var(--accent-glow);
  opacity: 0.9;
}

.card--service::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.35), transparent);
}

.card__media {
  height: 168px;
  background-color: #152030;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid rgba(0, 200, 255, 0.1);
}

.card__media--truck {
  background-image: linear-gradient(180deg, rgba(5, 8, 16, 0.12) 0%, rgba(5, 8, 16, 0.68) 100%),
    url("../assets/card-truck.png");
  background-position: center 45%;
}

.card__media--trailer {
  background-image: linear-gradient(180deg, rgba(5, 8, 16, 0.12) 0%, rgba(5, 8, 16, 0.68) 100%),
    url("../assets/card-trailer.png");
  background-position: center 72%;
}

.card__media--car {
  background-image: linear-gradient(180deg, rgba(5, 8, 16, 0.12) 0%, rgba(5, 8, 16, 0.68) 100%),
    url("../assets/card-car.png");
  background-position: center 58%;
}

.card__media--excavator {
  background-image: linear-gradient(180deg, rgba(5, 8, 16, 0.12) 0%, rgba(5, 8, 16, 0.68) 100%),
    url("../assets/card-excavator.png");
  background-position: center 48%;
}

.card__media--special {
  background-image: linear-gradient(180deg, rgba(5, 8, 16, 0.12) 0%, rgba(5, 8, 16, 0.68) 100%),
    url("../assets/card-special.png");
  background-position: center 52%;
}

.card__media--diag {
  background-image: linear-gradient(180deg, rgba(5, 8, 16, 0.12) 0%, rgba(5, 8, 16, 0.68) 100%),
    url("../assets/card-dodatne.png");
  background-position: 38% 48%;
}

.card__title {
  margin: 1.15rem 1.15rem 0.65rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card__list {
  margin: 0 1.15rem;
  padding: 0;
  list-style: none;
}

.card__list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.45rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.card__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.32rem;
  width: 7px;
  height: 12px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  box-shadow: 0 0 8px var(--accent-glow);
  filter: drop-shadow(0 0 4px var(--accent-glow));
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  min-height: 100px;
}

.gallery-grid:has(.gallery__item) .gallery__empty-msg {
  display: none;
}

.gallery__empty-msg {
  grid-column: 1 / -1;
  margin: 0;
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
  border: 1px dashed rgba(0, 200, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(12, 20, 36, 0.35);
}

.gallery__item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(0, 200, 255, 0.15);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  background: #152030;
  aspect-ratio: 4 / 3;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.gallery__item:hover,
.gallery__item:focus-visible {
  outline: none;
  border-color: rgba(0, 200, 255, 0.45);
  box-shadow: 0 0 24px rgba(0, 200, 255, 0.15);
  transform: translateY(-2px);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(2, 4, 10, 0.92);
  cursor: pointer;
}

.lightbox__box {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1400px);
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55);
}

.lightbox__close {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(0, 200, 255, 0.35);
  border-radius: 50%;
  background: rgba(10, 16, 28, 0.9);
  color: var(--text);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, box-shadow 0.2s;
}

.lightbox__close:hover {
  background: rgba(0, 200, 255, 0.15);
  box-shadow: 0 0 20px var(--accent-glow);
}

.lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(0, 200, 255, 0.35);
  border-radius: 50%;
  background: rgba(10, 16, 28, 0.92);
  color: var(--accent);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 4px;
  transition: background 0.2s, box-shadow 0.2s;
}

.lightbox__nav:hover {
  background: rgba(0, 200, 255, 0.12);
  box-shadow: 0 0 18px var(--accent-glow);
}

.lightbox__prev {
  left: 0.75rem;
}

.lightbox__next {
  right: 0.75rem;
}

.lightbox__counter {
  position: fixed;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  margin: 0;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: rgba(10, 16, 28, 0.85);
  border-radius: 999px;
  border: 1px solid rgba(0, 200, 255, 0.15);
}

@media (max-width: 600px) {
  .lightbox__nav {
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
  }

  .lightbox__prev {
    left: 0.35rem;
  }

  .lightbox__next {
    right: 0.35rem;
  }
}

/* Upit — modal */
.inquiry-modal {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

.inquiry-modal[hidden] {
  display: none !important;
}

.inquiry-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(2, 4, 10, 0.88);
  cursor: pointer;
}

.inquiry-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  max-height: min(92dvh, 720px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.65rem 1.5rem 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(18, 28, 48, 0.98) 0%, rgba(8, 12, 22, 0.98) 100%);
  border: 1px solid rgba(0, 200, 255, 0.22);
  box-shadow: 0 0 48px rgba(0, 80, 140, 0.2), 0 24px 64px rgba(0, 0, 0, 0.5);
}

.inquiry-modal__x {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 200, 255, 0.3);
  border-radius: 50%;
  background: rgba(10, 16, 28, 0.9);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inquiry-modal__x:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.inquiry-modal__title {
  margin: 0 2.25rem 0.5rem 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}

.inquiry-modal__lead {
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.inquiry-form__field {
  margin-bottom: 1rem;
}

.inquiry-form__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.inquiry-form__control {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: rgba(5, 10, 20, 0.75);
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.inquiry-form__control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 200, 255, 0.2);
}

.inquiry-form__select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2300c8ff' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.25rem;
}

.inquiry-form__textarea {
  resize: vertical;
  min-height: 100px;
}

.inquiry-form__field--antibot .inquiry-form__antibot-sum {
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.inquiry-form__hint {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.inquiry-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.inquiry-form {
  position: relative;
}

.inquiry-form__error {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: #f87171;
}

.inquiry-form__submit:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.inquiry-modal__success {
  text-align: center;
  padding: 0.5rem 0 0;
}

.inquiry-modal__success-text {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: #b8e6c1;
  line-height: 1.5;
}

/* Split section */
.section--split {
  background: linear-gradient(180deg, #080d18 0%, #060a12 100%);
  padding-bottom: 5rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.checklist {
  list-style: none;
  margin: 0 0 2.25rem;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.65rem;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 8px;
  height: 14px;
  border: solid var(--accent);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
  filter: drop-shadow(0 0 6px var(--accent-glow));
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat {
  padding: 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(12, 20, 36, 0.75);
  border: 1px solid rgba(0, 200, 255, 0.12);
  text-align: center;
}

.stat__value {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
}

.stat__label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.stat__label--strong {
  font-weight: 700;
  color: var(--text);
  font-size: 0.8rem;
}

.stat--icon .stat__icon {
  display: flex;
  justify-content: center;
  color: var(--accent);
  filter: drop-shadow(0 0 10px var(--accent-glow));
  margin-bottom: 0.25rem;
}

/* Contact card */
.contact-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(18, 28, 48, 0.95) 0%, rgba(10, 16, 28, 0.92) 100%);
  border: 1px solid rgba(0, 200, 255, 0.2);
  box-shadow:
    0 0 40px rgba(0, 100, 180, 0.12),
    0 24px 48px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.contact-card__title {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-card__legal {
  margin: -0.65rem 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-transform: uppercase;
}

.contact-card__list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.contact-card__list li {
  display: flex;
  gap: 0.9rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.contact-card__list strong {
  display: block;
  color: var(--text);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}

.contact-card__list a {
  color: var(--text);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.contact-card__list a:hover {
  color: var(--accent);
}

.contact-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(0, 200, 255, 0.1);
  color: var(--accent);
  border: 1px solid rgba(0, 200, 255, 0.25);
  box-shadow: 0 0 14px rgba(0, 200, 255, 0.12);
}

.contact-card__map {
  margin-bottom: 1.25rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(0, 200, 255, 0.15);
  height: 200px;
}

.contact-card__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.85) contrast(1.05);
}

/* Footer */
.footer {
  background: #04060c;
  border-top: 1px solid rgba(0, 200, 255, 0.1);
  padding-top: 3rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer__grid p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer__grid a {
  color: var(--text);
}

.footer__heading {
  margin: 0 0 0.65rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer__heading--spaced {
  margin-top: 1.1rem;
}

.brand--footer {
  align-items: flex-start;
  gap: 1rem;
}

.brand__logo--footer {
  height: 72px;
  max-width: 200px;
}

.footer__bar {
  background: #020308;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  padding-block: 0.85rem;
  padding-inline: max(0px, env(safe-area-inset-left)) max(0px, env(safe-area-inset-right));
  padding-bottom: max(0.85rem, env(safe-area-inset-bottom));
}

.footer__social {
  display: flex;
  gap: 0.75rem;
}

.footer__social-link {
  color: var(--text-muted);
  display: flex;
  padding: 0.35rem;
  border-radius: 8px;
  transition: color 0.2s, box-shadow 0.2s;
}

.footer__social-link:hover {
  color: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
  text-decoration: none;
}

.footer__copy {
  margin: 0;
  font-size: 0.75rem;
  color: #64748b;
}

/* Responsive */
@media (max-width: 1024px) {
  .cards--six {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 880px) {
  .nav__toggle {
    display: flex;
  }

  .nav {
    order: 3;
    position: relative;
  }

  .header__inner {
    flex-wrap: wrap;
  }

  .header__cta {
    margin-left: auto;
  }

  .brand {
    min-width: 0;
    max-width: calc(100vw - 11rem);
  }

  .nav__list {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-width: min(280px, calc(100vw - var(--container-pad) * 2));
    max-height: min(70dvh, 420px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0;
    background: rgba(10, 15, 26, 0.98);
    border: 1px solid rgba(0, 200, 255, 0.2);
    border-radius: var(--radius-sm);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  }

  .nav__list.is-open {
    display: flex;
  }

  .nav__list li a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.65rem 1.25rem;
  }

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

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

  .stat--icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: left;
  }

  .stat--icon .stat__icon {
    margin-bottom: 0;
  }
}

@media (max-width: 600px) {
  :root {
    --container-pad: 16px;
    --section-y: var(--section-y-sm);
    --header-h: 72px;
  }

  .cards,
  .cards--six {
    grid-template-columns: 1fr;
  }

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

  .header__cta .btn--sm {
    font-size: 0.62rem;
    padding: 0.55rem 0.75rem;
    min-height: 44px;
  }

  .header__mail {
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    justify-content: center;
    min-height: 48px;
  }

  .hero__content {
    padding-block: 2.5rem 3rem;
  }

  .hero__title {
    font-size: clamp(1.55rem, 8.5vw, 2.65rem);
    letter-spacing: 0.04em;
    line-height: 1.08;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .hero__desc {
    font-size: 0.94rem;
  }

  .hero__bg__img {
    background-position: 52% center;
  }

  .section--tight {
    padding: 2rem 0 1.5rem;
  }

  .section--muted-bg {
    padding: 2.5rem 0;
  }

  .section--split {
    padding-bottom: 2.75rem;
  }

  .section__heading {
    font-size: 1.05rem;
    letter-spacing: 0.09em;
    line-height: 1.35;
    margin-bottom: 1.35rem;
    padding-inline: 0.25rem;
  }

  .section__title {
    font-size: 1.08rem;
    letter-spacing: 0.05em;
  }

  .section__muted {
    font-size: 0.88rem;
    margin: -0.75rem auto 1.75rem;
    padding-inline: 0.25rem;
  }

  .section__intro {
    font-size: 0.9rem;
    margin-bottom: 1.35rem;
    padding-inline: 0.25rem;
  }

  .split .section__heading--left {
    text-align: center;
    margin-inline: auto;
    max-width: 100%;
  }

  .card__media {
    height: 152px;
  }

  .card__list li {
    font-size: 0.88rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 0.75rem;
  }

  .gallery__empty-msg {
    padding: 1.75rem 1rem;
    font-size: 0.88rem;
  }

  .contact-card {
    padding: 1.35rem 1.1rem;
  }

  .contact-card__map {
    height: min(220px, 50vw);
  }

  .footer {
    padding-top: 2.25rem;
  }

  .footer__grid {
    gap: 1.5rem;
  }

  .footer__bar__inner {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .brand__logo--footer {
    height: 64px;
    max-width: 100%;
  }

  .team-list {
    padding-left: 1rem;
    font-size: 0.92rem;
  }
}

@media (max-width: 480px) {
  .brand__logo {
    height: 44px;
    max-width: min(120px, 34vw);
  }

  .brand__tag {
    font-size: 0.58rem;
    letter-spacing: 0.03em;
    line-height: 1.3;
  }

  .team-list__item--one-line {
    white-space: normal;
    font-size: 0.86rem;
    line-height: 1.45;
  }

  .partners__note {
    font-size: 0.8rem;
    padding-inline: 0.25rem;
  }

  .stat__label {
    font-size: 0.65rem;
  }

  .lightbox__prev {
    left: max(0.35rem, env(safe-area-inset-left));
  }

  .lightbox__next {
    right: max(0.35rem, env(safe-area-inset-right));
  }
}

@media (hover: none) and (pointer: coarse) {
  .btn:active {
    transform: scale(0.98);
  }

  .btn:hover {
    transform: none;
  }

  .gallery__item:active {
    transform: scale(0.99);
  }

  .gallery__item:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .gallery__item,
  .brand__logo {
    transition: none;
  }
}
