:root {
  --bg: #ffffff;
  --text: #101018;
  --brand: #0b1f8a;
  --brand-dark: #07186f;
  --hero: #cfcfcf;
  --surface: #f3f4f8;
  --shadow: 0 18px 28px rgba(16, 16, 24, 0.12);

  /* Type scale */
  --fs-h1: clamp(26px, 2.8vw, 36px);
  --fs-h2: clamp(24px, 2.6vw, 34px);
  --fs-h3: clamp(22px, 2.2vw, 30px);
  --fs-h4: clamp(24px, 2.1vw, 28px);
  --fs-h5: clamp(15px, 1.4vw, 18px);
  --fs-h6: clamp(12px, 1vw, 14px);
  --fs-body-lg: clamp(14px, 1.2vw, 16px);
  --fs-body: clamp(13px, 1.1vw, 14px);
  --fs-body-sm: clamp(12px, 1vw, 13px);
  --fs-body-xs: clamp(11px, 0.95vw, 13px);
  --fs-lead: clamp(12px, 1.1vw, 14px);
  --fs-nav: clamp(14px, 1.2vw, 18px);
  --fs-btn: clamp(13px, 1.1vw, 16px);
  --fs-icon-lg: clamp(24px, 2vw, 30px);
  --fs-icon-sm: clamp(16px, 1.4vw, 18px);
  --fs-footer-title: clamp(12px, 1vw, 18px);
  --fs-footer: clamp(11px, 1vw, 16px);
  --fs-footer-copy: clamp(12px, 0.95vw, 15px);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  color: var(--text);
  background: var(--bg);
}

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

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

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.headerwrap {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 15px 0;
}

.headerbrand {
  margin-left: 2rem;
}

.headerlogo {
  width: 150px;
  height: auto;
}

.headermenu {
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
  justify-content: center;
}

.headermenuitem {
  font-size: var(--fs-nav);
  color: #222;
  opacity: 0.9;
  text-decoration: none;
}

.headermenuitem--mobile {
  display: none;
}

.headermenuitem:hover {
  opacity: 1;
  text-decoration: none;
}

.headertoggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.headertogglebar {
  width: 24px;
  height: 2px;
  background: #0b1f8a;
  display: block;
}

.headerkontakt {
  background: linear-gradient(135deg, #0b1f8a, #1f40d0);
  color: #fff;
  border: 0;
  font-weight: 900;
  cursor: pointer;
  letter-spacing: 0.2px;
  box-shadow: 0 10px 22px rgba(11, 31, 138, 0.34);
  padding: 12px 24px;
  text-decoration: none;
  font-size: var(--fs-btn);
}

.headerkontakt:hover {
  background: #07186f;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  font-weight: 700;
  font-size: var(--fs-btn);
  border: 1px solid transparent;
  transition:
    transform 0.12s ease,
    background 0.12s ease,
    border-color 0.12s ease,
    color 0.12s ease;
  user-select: none;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 10px 18px;
  font-size: var(--fs-btn);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  width: fit-content;
  align-self: center;
  padding: 12px 24px;
  background: linear-gradient(135deg, #0b1f8a, #1f40d0);
  color: #fff;
  border: 0;
  font-weight: 900;
  cursor: pointer;
  letter-spacing: 0.2px;
  box-shadow: 0 10px 22px rgba(11, 31, 138, 0.34);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

/* Hero */
.page-hero {
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
  background:
    linear-gradient(
      90deg,
      rgba(11, 31, 138, 1) 0%,
      rgba(11, 31, 138, 0.2) 55%,
      rgba(255, 255, 255, 0) 80%
    ),
    var(--hero);
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}

.page-hero-inner {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px;
}

.page-title {
  margin: 0;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.7px;
  font-size: var(--fs-h1);
}

/* Contact area */
.contact-section {
  background: var(--surface);
  padding: 34px 0 54px;
}

.contact-layout {
  width: min(1200px, calc(100% - 56px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 290px 1fr;
  grid-template-areas:
    "info form"
    "info map";
  gap: 30px;
  align-items: stretch;
}

.contact-info-col {
  display: grid;
  gap: 14px;
  grid-area: info;
}

.contact-info-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow);
  padding: 18px 16px;
}

.contact-card-title {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  color: #4f5462;
}

.contact-card-line {
  margin: 0 0 8px;
  color: #222;
  font-size: 15px;
  line-height: 1.45;
}

.contact-section .working-hours-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border: 1px solid transparent;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-section .working-hours-status::before {
  content: "";
  width: 9px;
  height: 9px;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
}

.contact-section .working-hours-status.is-open {
  color: #0d7e42;
  border-color: rgba(13, 126, 66, 0.28);
  background: linear-gradient(
    135deg,
    rgba(31, 183, 92, 0.22),
    rgba(13, 126, 66, 0.14)
  );
  box-shadow:
    0 0 18px rgba(31, 183, 92, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  animation: statusPulseOpen 1.6s ease-in-out infinite;
}

.contact-section .working-hours-status.is-closed {
  color: #af1f3a;
  border-color: rgba(175, 31, 58, 0.24);
  background: linear-gradient(
    135deg,
    rgba(255, 86, 116, 0.2),
    rgba(175, 31, 58, 0.12)
  );
  box-shadow:
    0 0 18px rgba(218, 50, 86, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  animation: statusPulseClosed 1.8s ease-in-out infinite;
}

@keyframes statusPulseOpen {
  0%,
  100% {
    transform: translateY(0);
    box-shadow:
      0 0 14px rgba(31, 183, 92, 0.28),
      inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  }

  50% {
    transform: translateY(-1px);
    box-shadow:
      0 0 24px rgba(31, 183, 92, 0.45),
      inset 0 0 0 1px rgba(255, 255, 255, 0.65);
  }
}

@keyframes statusPulseClosed {
  0%,
  100% {
    transform: translateY(0);
    box-shadow:
      0 0 12px rgba(218, 50, 86, 0.24),
      inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  }

  50% {
    transform: translateY(-1px);
    box-shadow:
      0 0 22px rgba(218, 50, 86, 0.4),
      inset 0 0 0 1px rgba(255, 255, 255, 0.62);
  }
}

.contact-link {
  color: #1f2c6a;
  font-weight: 700;
  text-decoration: none;
}

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

.company-details-list {
  margin: 0;
  display: grid;
  gap: 8px;
}

.company-details-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
  align-items: start;
}

.company-details-row dt {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #4f5462;
}

.company-details-row dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #23232c;
}

.company-details-source {
  margin: 12px 0 0;
  font-size: 12px;
  color: #5f6472;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  grid-area: form;
}

.form-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow);
  padding: 16px;
  flex: 1;
}

.form-card-title {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1;
  color: #4f5462;
  font-weight: 800;
}

.form-card-text {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
  color: #2a2a33;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid-2 {
  grid-template-columns: 1fr 1fr;
}

.form-input,
.form-textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #f5f6fa;
  padding: 14px 14px;
  color: #1f1f25;
  font-size: 14px;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #777a84;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: rgba(11, 31, 138, 0.45);
  background: #fff;
}

.form-textarea {
  height: 170px;
  min-height: 170px;
  max-height: 170px;
  resize: none;
  overflow-y: auto;
}

.captcha-wrap {
  margin-top: 2px;
  display: flex;
  justify-content: center;
}

.captcha-wrap.captcha-needs-attention {
  filter: drop-shadow(0 0 0.5rem rgba(11, 31, 138, 0.25));
}

.contact-submit {
  margin: 6px auto 0;
  align-self: center;
}

.map-card {
  margin-top: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow);
  grid-area: map;
}

.map-card iframe {
  width: 100%;
  height: 290px;
  border: 0;
  display: block;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #0b1f8a 80%, #1f40d0 100%);
  color: #fff;
  padding: 54px 0 22px;
  font-family: inherit;
  box-shadow: 0 -8px 32px rgba(11, 31, 138, 0.08);
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 44px;
  align-items: start;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.footer-logo {
  width: 180px;
  height: auto;
  margin-bottom: 14px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
  background-color: #fff;
  padding: 5px;
}

.footer-text {
  margin: 0 0 18px;
  text-align: center;
  font-size: var(--fs-footer);
  line-height: 1.7;
  opacity: 0.92;
  max-width: 48ch;
}

.social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  margin: auto;
}

.social-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  font-weight: 800;
  font-size: var(--fs-icon-sm);
  color: #fff;
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s;
  box-shadow: 0 2px 8px rgba(11, 31, 138, 0.08);
}

.social-btn:hover {
  background: #fff;
  color: #0b1f8a;
  border-color: #fff;
}

.footer-col,
.footer-split-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links-split {
  display: contents;
}

.footer-split-col {
  width: auto;
}

.footer-title {
  margin: 0 0 14px;
  font-size: var(--fs-footer-title);
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(11, 31, 138, 0.08);
}

.footer-link {
  display: block;
  padding: 6px 0;
  font-size: var(--fs-footer);
  opacity: 0.92;
  color: #fff;
  text-decoration: none;
  transition:
    background 0.16s,
    color 0.16s,
    opacity 0.16s;
}

.footer-link:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  color: #ffe600;
  text-decoration: underline;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: var(--fs-footer);
  opacity: 0.97;
  color: #fff;
}

.footer-meta a {
  color: #fff !important;
  text-decoration: underline;
  transition: color 0.18s;
}

.footer-meta a:hover {
  color: #ffe600 !important;
}

.footer-contact-address {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.meta-row,
.footer .working-hours-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: 0.1px;
}

.footer-address-col .footer-meta {
  margin-top: 10px;
}

.footer .working-hours-status {
  font-weight: 800;
}

.footer .working-hours-status.is-open {
  color: #8ef7b2;
}

.footer .working-hours-status.is-closed {
  color: #ffd0d0;
}

.footer-bottom {
  margin-top: 28px;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

.footer-sep {
  height: 1.5px;
  width: 100%;
  background: rgba(255, 255, 255, 0.22);
  margin: 18px 0 12px;
}

.footer-copy {
  display: block;
  text-align: center;
  font-size: var(--fs-footer-copy);
  opacity: 0.95;
  color: #fff;
  letter-spacing: 0.2px;
}

/* Responsive */
@media (max-width: 1100px) {
  .contact-layout {
    width: min(1200px, calc(100% - 32px));
    grid-template-columns: 1fr;
    grid-template-areas:
      "form"
      "info"
      "map";
    align-items: start;
  }

  .contact-form-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .contact-info-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    justify-content: center;
    text-align: center;
  }
  .footer-col,
  .footer-split-col {
    margin-bottom: 18px;
    align-items: center;
  }
  .footer-meta {
    align-items: center;
  }
  .meta-row,
  .footer .working-hours-status {
    justify-content: center;
  }
  .footer .working-hours-status {
    margin: auto;
  }
}

@media (max-width: 720px) {
  .headerkontakt {
    display: none;
  }

  .headermenu {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    z-index: 100;
  }

  .headermenu.open {
    display: flex;
  }

  .headertoggle {
    display: flex;
    position: absolute;
    right: 18px;
    top: 18px;
    z-index: 101;
  }

  .headerwrap {
    position: relative;
    flex-direction: row;
    padding: 15px 0;
  }

  .headerbrand {
    margin-left: 0;
  }

  .headermenuitem {
    padding: 18px 0;
    border-bottom: 1px solid #eee;
    text-align: center;
    font-size: 18px;
  }

  .headermenuitem--mobile {
    display: inline-flex;
  }

  .page-hero-inner {
    padding: 30px 16px;
    min-height: 90px;
  }

  .contact-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "form form"
      "email phone"
      "address hours"
      "billing map";
    --contact-card-height: clamp(220px, 45vw, 260px);
    grid-template-rows: auto repeat(2, var(--contact-card-height)) auto;
    gap: 16px;
  }

  .contact-info-col {
    display: contents;
  }

  .contact-card-email {
    grid-area: email;
  }

  .contact-card-phone {
    grid-area: phone;
  }

  .contact-card-address {
    grid-area: address;
  }

  .contact-card-hours {
    grid-area: hours;
  }

  .contact-card-billing {
    grid-area: billing;
  }

  .contact-card-map {
    grid-area: map;
  }

  .contact-card-email,
  .contact-card-phone,
  .contact-card-address,
  .contact-card-hours,
  .map-card {
    height: 100%;
  }

  .map-card iframe {
    height: 100%;
  }

  .company-details-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .form-card {
    flex: initial;
  }

  .g-recaptcha {
    transform: scale(0.9);
    transform-origin: 0 0;
  }

  .captcha-wrap {
    justify-content: flex-start;
  }

  .contact-submit {
    margin-inline: 0;
  }

  .footer-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
    padding: 0 8px;
  }
  .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }
  .footer-text,
  .footer-meta,
  .footer-link {
    text-align: center;
  }
  .footer-col,
  .footer-split-col {
    align-items: center;
  }
  .footer-links-split {
    display: flex;
    width: 100%;
    gap: 12px;
  }
  .footer-split-col {
    width: 50%;
    align-items: center;
  }
  .footer-split-col .footer-title,
  .footer-split-col .footer-link {
    text-align: left;
  }
  .footer-split-col .footer-meta {
    text-align: left;
    align-items: flex-start;
  }
  .footer-split-col .meta-row,
  .footer-split-col .working-hours-status {
    justify-content: flex-start;
  }

  .footer-links-split:last-of-type {
    align-items: flex-start;
  }
  .footer-links-split:last-of-type .footer-split-col {
    width: 100%;
  }
  .footer-links-split:last-of-type .footer-contact-address {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
    row-gap: 0;
    align-items: start;
    width: 100%;
  }
  .footer-links-split:last-of-type .footer-contact-col,
  .footer-links-split:last-of-type .footer-address-col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-links-split:last-of-type .footer-address-col .footer-meta {
    margin-top: 0;
  }
  .footer-links-split:last-of-type .footer-contact-col .footer-title,
  .footer-links-split:last-of-type .footer-address-col .footer-title {
    margin-top: 0;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .contact-layout {
    width: 100%;
    max-width: 100%;
    padding-inline: 12px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "form"
      "info"
      "map";
    grid-template-rows: auto;
    gap: 14px;
  }

  .contact-layout > * {
    min-width: 0;
  }

  .contact-info-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-info-col .contact-info-card {
    grid-area: auto;
  }

  .contact-form-col {
    gap: 12px;
  }

  .contact-info-card,
  .map-card {
    height: auto;
    max-width: 100%;
  }

  .form-card {
    padding: 14px;
  }

  .form-input,
  .form-textarea {
    padding: 12px;
    font-size: 13px;
    min-width: 0;
    max-width: 100%;
  }

  .form-textarea {
    height: 150px;
    min-height: 150px;
    max-height: 150px;
  }

  .form-card-title {
    font-size: 22px;
  }

  .form-card-text {
    font-size: 13px;
  }

  .contact-card-title {
    font-size: 20px;
  }

  .contact-card-line {
    font-size: 13px;
    overflow-wrap: anywhere;
  }

  .contact-link,
  .company-details-row dd {
    overflow-wrap: anywhere;
  }

  .captcha-wrap {
    max-width: 100%;
    overflow: hidden;
  }

  .g-recaptcha {
    width: 100%;
    transform: scale(0.85);
    transform-origin: 0 0;
  }

  .footer {
    padding: 28px 0 12px;
  }
  .footer-bottom {
    margin-top: 18px;
    padding: 0 4px;
  }
  .footer-logo {
    width: 140px;
  }
}
