:root {
  --bg: #1f2324;
  --bg-soft: #2a2f30;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.72);
  --accent: #f46302;
  --accent-soft: rgba(244, 99, 2, 0.18);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
  --radius: 24px;
  --radius-sm: 18px;
  --max-width: 1160px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(244, 99, 2, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.05), transparent 22%),
    linear-gradient(180deg, #232829 0%, #1b1f20 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(var(--max-width), 92%);
  margin: 0 auto;
}

.hero-shell {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(to bottom, #1f2324 0%, rgba(31, 35, 36, 0.25) 18%, rgba(31, 35, 36, 0.25) 82%, #1f2324 100%),
    url("images/stock/background.jpg") center/cover no-repeat;
}

.hero-shell::before,
.hero-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(70px);
  pointer-events: none;
}

.hero-shell::before {
  width: 280px;
  height: 280px;
  background: rgba(244, 99, 2, 0.2);
  top: 110px;
  left: -60px;
}

.hero-shell::after {
  width: 220px;
  height: 220px;
  background: rgba(255, 255, 255, 0.06);
  top: 140px;
  right: 40px;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding-top: 8px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 22px;
  border: none;
  border-radius: 22px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: var(--shadow);
  margin-top: 6px;
}

.logo {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.logo span,
.eyebrow,
.card-number {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-soft);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.hero {
  display: flex;
  align-items: center;
  min-height: calc(86vh - 90px);
  padding: 18px 0 38px;
}

.hero-panel {
  max-width: 1200px;
  padding: 30px;
  border-radius: 34px;
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1,
.section-head h2,
.about-copy h2,
#kontakt h2 {
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.updated-text {
  margin-left: 15px;
}

.hero h1 {
  font-size: clamp(1.5rem, 5vw, 3.75rem);
  max-width: 11ch;
}

.hero-text,
.about-copy p,
.section-text,
.card p,
.contact-list p,
.privacy-box p,
.form-note,
.form-status {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 600;
}

.hero-text {
  max-width: 680px;
  margin: 22px 0 30px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(180deg, #ff7b23, var(--accent));
  color: white;
  box-shadow: 0 14px 34px rgba(244, 99, 2, 0.35);
}

.btn-glass {
  color: var(--text);
  border-color: var(--border);
  background: linear-gradient(180deg, rgba(150,150,150,0.14), rgba(150,150,150,0.06));
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

.section {
  padding: 32px 0 86px;
}

.section-head,
.about-copy,
#kontakt > .container > div:first-child {
  margin-bottom: 1px;
}

.section-head h2,
.about-copy h2,
#kontakt h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 14px;
}

.grid {
  display: grid;
  gap: 22px;
}

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

.card,
.about-box,
.contact-list,
.contact-form,
.hero-panel,
.privacy-box {
  position: relative;
  border: none;
  background: rgba(94, 94, 94, 0.2);
  box-shadow: var(--shadow);
}

.liquid-glass {
  backdrop-filter: blur(20px) saturate(100%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
}

.card {
  padding: 26px;
  border-radius: var(--radius);
}

.service-card {
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  background: rgba(110, 110, 110, 0.24);
}

.service-card:active {
  transform: translateY(-1px);
}

.service-card:focus-visible {
  outline: 2px solid rgba(244, 99, 2, 0.8);
  outline-offset: 4px;
}

.card-number {
  display: inline-block;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.about-box {
  border-radius: 30px;
  padding: 28px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.stat-row:last-child {
  border-bottom: none;
}

.stat-row strong {
  font-size: 1rem;
  font-weight: 900;
  color: var(--text);
}

.stat-row span {
  color: var(--text-soft);
  font-weight: 700;
  text-align: right;
}

.contact-list,
.contact-form,
.privacy-box {
  border-radius: 28px;
}

.contact-list {
  padding: 26px;
  display: grid;
  gap: 16px;
}

.contact-list strong {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 900;
}

.contact-form {
  padding: 26px;
  display: grid;
  gap: 14px;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-radius: 16px;
  padding: 15px 16px;
  outline: none;
  font-weight: 700;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease,
    transform 0.25s ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255,255,255,0.45);
}

input:hover,
textarea:hover {
  border-color: rgba(255,255,255,0.16);
}

input:focus,
textarea:focus {
  border-color: rgba(244, 99, 2, 0.7);
  box-shadow: 0 0 0 4px rgba(244, 99, 2, 0.12);
  background: rgba(255,255,255,0.08);
}

textarea {
  min-height: 148px;
  resize: vertical;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 600;
}

.consent-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex: 0 0 auto;
  accent-color: var(--accent);
}

.consent-check a,
.footer-link {
  color: #ff9a57;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-note {
  font-size: 0.92rem;
}

.form-status {
  min-height: 1.5em;
  font-size: 0.95rem;
}

.form-status.is-success {
  color: #9ff0b1;
}

.form-status.is-error {
  color: #ffb3b3;
}

.privacy-box {
  padding: 26px;
  display: grid;
  gap: 16px;
}

footer {
  padding: 0 0 28px;
}

.footer-inner {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-inner p {
  color: rgba(255,255,255,0.55);
  font-weight: 700;
}

.logo-box {
  margin-top: 18px;
  padding: 26px;
  border-radius: 28px;
  background-color: rgba(0, 0, 0, 0);
  box-shadow: var(--shadow);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: left;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  overflow: hidden;
}

.logo-box img {
  width: min(400px, 100%);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: contrast(1.1);
}

/* Modal */
.service-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.service-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.service-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 10, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.service-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  border-radius: 32px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04)),
    rgba(40, 40, 40, 0.34);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 28px 90px rgba(0, 0, 0, 0.46);
}

.service-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04)),
    rgba(255,255,255,0.05);
  color: white;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 10px 25px rgba(0,0,0,0.18);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.service-modal-close:hover {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06)),
    rgba(255,255,255,0.08);
  transform: scale(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 14px 28px rgba(0,0,0,0.24);
}

.service-modal-slider {
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}

.service-modal-image-wrap {
  position: relative;
  width: 100%;
  min-height: 420px;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03)),
    rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 20px 40px rgba(0,0,0,0.22);
}

.service-modal-track {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
}

.service-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 1;
  transform: translateX(0);
}

.service-slide img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
  display: block;
  border-radius: 18px;
  background: rgba(255,255,255,0.02);
}

.service-slide.is-entering-from-right {
  animation: slideInFromRight 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.service-slide.is-entering-from-left {
  animation: slideInFromLeft 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.service-slide.is-leaving-to-left {
  animation: slideOutToLeft 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.service-slide.is-leaving-to-right {
  animation: slideOutToRight 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(10%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-10%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutToLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-10%);
  }
}

@keyframes slideOutToRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(10%);
  }
}

.service-modal-arrow {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04)),
    rgba(255,255,255,0.05);
  color: white;
  font-size: 1.35rem;
  cursor: pointer;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 10px 25px rgba(0,0,0,0.18);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.service-modal-arrow:hover {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06)),
    rgba(255,255,255,0.08);
  transform: scale(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 14px 28px rgba(0,0,0,0.24);
}

.service-modal-content h3 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.service-modal-content p {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 600;
}

@media (max-width: 900px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    padding: 28px;
  }
}

@media (max-width: 720px) {
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    gap: 12px;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-panel {
    max-width: 92%;
    margin: 0 auto;
    padding: 24px;
  }

  .hero h1 {
    max-width: 100%;
  }

  .updated-text {
    margin-left: 0;
  }

  .logo-box {
    padding: 18px;
    align-items: center;
    justify-content: center;
  }

  .logo-box img {
    width: min(300px, 100%);
  }

  .service-modal {
    padding: 14px;
  }

  .service-modal-dialog {
    padding: 18px;
    border-radius: 22px;
  }

  .service-modal-slider {
    grid-template-columns: 42px 1fr 42px;
    gap: 10px;
  }

  .service-modal-arrow {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }

  .service-modal-close {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .service-modal-image-wrap,
  .service-modal-track {
    min-height: 260px;
  }

  .service-slide {
    padding: 12px;
  }

  .footer-inner {
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
    width: 100%;
  }

  .nav-links li {
    min-width: 0;
  }

  .nav-links a {
    display: block;
    width: 100%;
  }

  .hero-panel {
    max-width: 90%;
    padding: 22px 18px;
  }

  .logo-box img {
    width: min(260px, 100%);
  }
}