:root {
  --font-body: 'Aptos', 'Segoe UI Variable Text', 'Segoe UI', 'Trebuchet MS', sans-serif;
  --font-display: 'Bahnschrift', 'Aptos Display', 'Segoe UI Variable Display', 'Segoe UI', sans-serif;
  --bg: #eef3fb;
  --bg-alt: #e5ecf7;
  --ink: #0b1220;
  --ink-soft: #5d687d;
  --paper: rgba(255, 255, 255, 0.82);
  --paper-strong: #ffffff;
  --paper-dark: #0d1628;
  --paper-dark-soft: #13203a;
  --line: rgba(11, 18, 32, 0.1);
  --line-strong: rgba(11, 18, 32, 0.16);
  --brand: #00b8a5;
  --brand-strong: #028b7f;
  --accent: #ff7a59;
  --accent-soft: #ffd9cf;
  --sky: #7dd3fc;
  --white: #ffffff;
  --shadow-soft: 0 24px 64px rgba(11, 18, 32, 0.08);
  --shadow-card: 0 18px 36px rgba(11, 18, 32, 0.07);
  --shadow-lift: 0 32px 70px rgba(11, 18, 32, 0.14);
  --radius-sm: 20px;
  --radius-md: 30px;
  --radius-lg: 42px;
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 184, 165, 0.16), transparent 28%),
    radial-gradient(circle at 100% 15%, rgba(255, 122, 89, 0.16), transparent 28%),
    linear-gradient(180deg, #f7faff 0%, #eef3fb 48%, #f5f8fd 100%);
  line-height: 1.65;
}

body.page {
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 18, 32, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 18, 32, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent 82%);
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  inset: auto auto -14rem -10rem;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.18), transparent 66%);
  pointer-events: none;
  z-index: -2;
}

a {
  color: inherit;
  text-decoration-color: rgba(11, 18, 32, 0.2);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4,
.site-footer__headline,
.page-title,
.section-title {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  line-height: 0.98;
}

p,
blockquote {
  margin: 0;
}

.container {
  width: min(calc(100% - 2rem), max(78vw, 1240px));
  margin: 0 auto;
}

.eyebrow,
.section-kicker,
.section__kicker,
.card__eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 2.1rem;
  padding: 0.4rem 0.82rem;
  border: 1px solid rgba(11, 18, 32, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow--light,
.eyebrow--footer {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.78);
}

.muted,
.page-copy,
.section-copy,
.card__text,
.prose {
  color: var(--ink-soft);
}

.page-title {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  max-width: 12ch;
}

.page-hero__title {
  font-size: clamp(2.4rem, 4.8vw, 4.6rem);
  max-width: 12ch;
}

.section-title,
.section__title {
  font-size: clamp(2.1rem, 4vw, 4.2rem);
}

.page-copy,
.section-copy,
.lead,
.section__copy {
  max-width: 60ch;
  font-size: clamp(1rem, 1.5vw, 1.14rem);
}

.section-title--light,
.section-copy--light {
  color: rgba(255, 255, 255, 0.96);
}

.section-copy--light {
  color: rgba(255, 255, 255, 0.72);
}

.section {
  position: relative;
  padding: 5.5rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.2rem;
  padding: 0.88rem 1.24rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
}

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

.btn--primary {
  background: linear-gradient(135deg, var(--ink), #18253e);
  color: var(--white);
  box-shadow: 0 18px 36px rgba(11, 18, 32, 0.18);
}

.btn--ghost {
  border-color: rgba(11, 18, 32, 0.12);
  background: rgba(255, 255, 255, 0.66);
}

.btn--danger {
  background: linear-gradient(135deg, #7f1d1d, #b91c1c);
  color: var(--white);
  box-shadow: 0 18px 36px rgba(127, 29, 29, 0.2);
}

.btn--light {
  background: var(--white);
  color: var(--ink);
}

.btn--ghost-light {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.btn--small {
  min-height: 2.86rem;
  padding: 0.72rem 1.02rem;
  font-size: 0.92rem;
}

.site-header {
  --header-bar-height: 6rem;
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 0.28rem 0;
  backdrop-filter: blur(18px);
  background: rgba(238, 243, 251, 0.78);
  border-bottom: 1px solid rgba(11, 18, 32, 0.06);
  box-shadow: 0 10px 28px rgba(11, 18, 32, 0.05);
}

.site-header__bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: var(--header-bar-height);
  gap: 0.8rem;
}

.brand {
  display: inline-grid;
  align-items: center;
  align-self: stretch;
  gap: 0.9rem;
  min-width: 0;
  text-decoration: none;
}

.brand__visual {
  display: flex;
  align-items: center;
  height: 100%;
}

.brand__logo {
  display: block;
  width: auto;
  height: 5.25rem;
  max-width: min(18rem, 70vw);
  margin: 0;
  object-fit: contain;
}

.brand__icon {
  display: none;
  width: 4.8rem;
  height: 4.8rem;
  margin: -0.12rem 0;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.32rem;
}

.main-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.7rem;
  padding: 0.52rem 0.74rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.main-nav__link:hover {
  background: rgba(11, 18, 32, 0.07);
  color: var(--ink);
}

.main-nav__link--active {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(11, 18, 32, 0.14);
}

.site-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.68rem;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.8rem;
  padding: 0.6rem 0.96rem;
  border: 1px solid rgba(11, 18, 32, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-card);
}

.site-footer {
  margin-top: 4rem;
  padding-top: 3rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 184, 165, 0.16), transparent 30%),
    linear-gradient(180deg, #09111f 0%, #0b1220 100%);
  color: rgba(255, 255, 255, 0.9);
}

.footer-shell {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.2rem;
}

.footer-hero {
  display: grid;
  gap: 1rem;
}

.footer-brand__logo {
  display: block;
  width: auto;
  height: 5.15rem;
  max-width: min(19rem, 100%);
  object-fit: contain;
}

.site-footer__headline {
  font-size: clamp(2rem, 4vw, 3.5rem);
  max-width: 11ch;
}

.site-footer__copy {
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.72);
}

.footer-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 0.6rem;
}

.footer-column__title {
  margin: 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.96);
}

.footer-column a,
.footer-column span {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.footer-column a:hover {
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.92rem;
}

.card,
.legal-card,
.form,
.faq-card,
.support-card,
.service-card,
.process-card,
.request-proof__card,
.scene-note,
.metric-tile,
.quote-panel,
.contact-card,
.section-note,
.showcase-caption,
.request-side-card,
.legal-side__card,
.scene-card,
.info-card,
.setup-card,
.metric-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 248, 255, 0.9));
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
}

.card,
.legal-card,
.support-card,
.request-proof__card,
.scene-note,
.metric-tile,
.quote-panel,
.contact-card,
.section-note,
.showcase-caption,
.request-side-card,
.legal-side__card,
.info-card,
.setup-card,
.metric-card {
  padding: 1.55rem;
}

.card__title {
  font-size: 1.4rem;
}

.card__text,
.prose {
  line-height: 1.72;
}

.prose a,
.card__text a {
  color: var(--ink);
}

.form {
  padding: 1.55rem;
}

.form--embedded {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
}

.form__field span {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.form__field-help {
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.45;
}

.form__field--full {
  grid-column: 1 / -1;
}

.form__section-heading {
  display: flex;
  align-items: center;
  padding-top: 0.45rem;
}

.form__section-heading span {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.form__option-chip {
  position: relative;
  display: inline-flex;
}

.form__option-chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.form__option-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(11, 18, 32, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.form__option-chip input:focus + span {
  border-color: rgba(0, 184, 165, 0.48);
  box-shadow: 0 0 0 4px rgba(0, 184, 165, 0.12);
}

.form__option-chip input:checked + span {
  border-color: rgba(0, 184, 165, 0.38);
  background: rgba(0, 184, 165, 0.12);
  color: var(--ink);
}

.form__service-grid {
  display: grid;
  gap: 0.85rem;
}

.form__service-row {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(14rem, 24rem);
  gap: 0.85rem;
  align-items: center;
}

.form__option-chip--service {
  width: 100%;
}

.form__option-chip--service span {
  width: 100%;
  justify-content: flex-start;
}

.form__service-quantity {
  display: none;
  width: min(100%, 24rem);
  justify-self: end;
}

.form__service-quantity.is-visible {
  display: block;
}

.form__service-quantity input,
.form__service-quantity select {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(11, 18, 32, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.form__service-quantity input:focus,
.form__service-quantity select:focus {
  outline: none;
  border-color: rgba(0, 184, 165, 0.34);
  box-shadow: 0 0 0 4px rgba(0, 184, 165, 0.12);
}

.form__service-quantity input:disabled,
.form__service-quantity select:disabled {
  background: rgba(242, 246, 252, 0.84);
  color: rgba(16, 32, 51, 0.5);
}

.form__service-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-top: 0.65rem;
  padding: 0.75rem;
  border: 1px solid rgba(11, 18, 32, 0.08);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
}

.form__service-meta label {
  display: grid;
  gap: 0.35rem;
  color: rgba(11, 18, 32, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
}

.form__service-meta input,
.form__service-meta select {
  min-height: 2.75rem;
  padding: 0.75rem 0.85rem;
}

.form__service-meta small {
  color: rgba(11, 18, 32, 0.58);
  line-height: 1.4;
}

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

.calculator-pv-meta,
.calculator-facade-meta {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.74);
}

.calculator-pv-meta[hidden],
.calculator-facade-meta[hidden] {
  display: none;
}

.calculator-pv-meta__head,
.calculator-facade-meta__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.calculator-pv-meta__head strong,
.calculator-facade-meta__head strong {
  color: var(--ink);
  text-align: right;
}

.calculator-pv-meta__grid,
.calculator-facade-meta__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.calculator-pv-meta small,
.calculator-facade-meta small {
  color: rgba(11, 18, 32, 0.62);
  line-height: 1.45;
}

.form__date-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.form__date-subfield {
  display: grid;
  gap: 0.45rem;
}

.form__date-subfield span {
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.object-location-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.3rem;
}

.object-location-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 0.9fr) auto;
  gap: 0.75rem;
  align-items: end;
  padding: 0.9rem;
  border: 1px solid rgba(11, 18, 32, 0.1);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 184, 165, 0.1), transparent 38%),
    rgba(255, 255, 255, 0.78);
}

.object-location-row label {
  display: grid;
  gap: 0.42rem;
}

.object-location-row label span {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.object-location-row input {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.76rem 0.9rem;
  border: 1px solid rgba(11, 18, 32, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
}

.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(11, 18, 32, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.form__field select option,
.form__field select optgroup {
  background: #ffffff;
  color: var(--ink);
}

.form__field textarea {
  min-height: 8.2rem;
  resize: vertical;
}

.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none;
  border-color: rgba(0, 184, 165, 0.48);
  box-shadow: 0 0 0 4px rgba(0, 184, 165, 0.12);
  background: var(--white);
}

.form__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.form__check {
  display: flex;
  align-items: flex-start;
  gap: 0.82rem;
  color: var(--ink-soft);
}

.form__check input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.2rem;
}

.form__check a {
  color: var(--ink);
}

.notice {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-card);
}

.notice--hidden {
  display: none;
}

.notice--success {
  border-color: rgba(0, 184, 165, 0.28);
  background: rgba(0, 184, 165, 0.12);
}

.notice--error {
  border-color: rgba(255, 122, 89, 0.28);
  background: rgba(255, 122, 89, 0.12);
}

.notice--warning {
  border-color: rgba(245, 158, 11, 0.32);
  background: rgba(245, 158, 11, 0.14);
}

.portal-page {
  position: relative;
  overflow: hidden;
  padding: 3.8rem 0 5rem;
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 184, 165, 0.2), transparent 30rem),
    radial-gradient(circle at 92% 6%, rgba(255, 122, 89, 0.16), transparent 28rem),
    linear-gradient(180deg, #f7fbfd 0%, #edf4f8 54%, #f8fbff 100%);
}

.portal-page::before {
  content: '';
  position: absolute;
  inset: 1.5rem auto auto 50%;
  width: min(52rem, 90vw);
  height: min(52rem, 90vw);
  border: 1px solid rgba(11, 18, 32, 0.08);
  border-radius: 38% 62% 55% 45%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(0, 184, 165, 0.08));
  transform: translateX(-10%) rotate(-7deg);
  pointer-events: none;
}

.portal-login,
.portal-dashboard,
.portal-hero {
  position: relative;
  z-index: 1;
}

.portal-login {
  display: grid;
  gap: 1.35rem;
}

.portal-login__intro {
  display: grid;
  gap: 1rem;
  max-width: 860px;
}

.portal-login__intro h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.07em;
}

.portal-login__intro p {
  max-width: 66ch;
  color: var(--ink-soft);
  font-size: clamp(1.04rem, 1.6vw, 1.18rem);
}

.portal-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.portal-trust-row span {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.48rem 0.85rem;
  border: 1px solid rgba(11, 18, 32, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
}

.portal-login__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 1rem;
  align-items: stretch;
}

.portal-login__forms,
.portal-login__aside,
.portal-dashboard {
  display: grid;
  gap: 1rem;
}

.portal-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
}

.portal-hero h1 {
  max-width: 760px;
  margin: 0.8rem 0 0.5rem;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.portal-hero p {
  max-width: 660px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

.portal-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.portal-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.portal-metric {
  display: grid;
  gap: 0.3rem;
  min-height: 10rem;
  padding: 1.15rem;
  border: 1px solid rgba(11, 18, 32, 0.09);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(230, 247, 244, 0.7));
  box-shadow: var(--shadow-card);
}

.portal-metric span {
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portal-metric strong {
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.95;
}

.portal-metric small {
  align-self: end;
  color: var(--ink-soft);
  font-weight: 700;
  line-height: 1.45;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.portal-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.85rem;
  padding: 1.35rem;
  border: 1px solid rgba(11, 18, 32, 0.09);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
}

.portal-card--wide {
  grid-column: 1 / -1;
}

.portal-card--action {
  background: linear-gradient(135deg, rgba(223, 248, 242, 0.92), rgba(255, 255, 255, 0.9));
  border-color: rgba(0, 184, 165, 0.22);
}

.portal-card--login {
  padding: clamp(1.2rem, 2.6vw, 1.8rem);
}

.portal-card--login-primary {
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 184, 165, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(231, 247, 244, 0.86));
  border-color: rgba(0, 184, 165, 0.18);
  color: var(--ink);
}

.portal-card--login-primary p,
.portal-card--login-primary .portal-form label span {
  color: var(--ink-soft);
}

.portal-card--login-primary .section-kicker {
  border-color: rgba(0, 184, 165, 0.16);
  background: rgba(0, 184, 165, 0.08);
  color: var(--brand-strong);
}

.portal-card--login-primary .portal-form input {
  border-color: rgba(11, 18, 32, 0.11);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
}

.portal-card--login-primary .portal-form input::placeholder {
  color: rgba(42, 52, 68, 0.48);
}

.portal-card--login-primary .btn--primary {
  background: linear-gradient(135deg, var(--brand), #69f0df);
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(0, 184, 165, 0.24);
}

.portal-card--login-secondary {
  background:
    radial-gradient(circle at 96% 0%, rgba(255, 122, 89, 0.18), transparent 34%),
    rgba(255, 255, 255, 0.86);
}

.portal-card__topline {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.portal-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  min-width: 2.1rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  background: var(--brand);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-card h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: -0.045em;
}

.portal-card p {
  color: var(--ink-soft);
  line-height: 1.65;
}

.portal-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

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

.portal-form label {
  display: grid;
  gap: 0.45rem;
  font-weight: 800;
}

.portal-form label span {
  color: var(--ink);
  font-size: 0.84rem;
}

.portal-form input,
.portal-copy {
  width: 100%;
  min-height: 3.15rem;
  border: 1px solid rgba(11, 18, 32, 0.11);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  padding: 0.8rem 1rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.portal-form input:focus,
.portal-copy:focus {
  border-color: rgba(0, 184, 165, 0.58);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 184, 165, 0.12);
}

.portal-form .btn {
  align-self: end;
  justify-content: center;
}

.portal-copy {
  font-weight: 800;
}

.portal-referral-card {
  gap: 1rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 184, 165, 0.2), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(232, 247, 244, 0.84));
  border-color: rgba(0, 184, 165, 0.18);
}

.portal-referral-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.portal-copy-row {
  display: grid;
  gap: 0.45rem;
}

.portal-copy-row span {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-referral-link-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: end;
}

.portal-referral-link-panel--materials {
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(0, 184, 165, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
}

.portal-referral-link-panel__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.portal-referral-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.portal-referral-metrics span {
  display: grid;
  gap: 0.2rem;
  min-height: 6.6rem;
  padding: 0.9rem;
  border: 1px solid rgba(11, 18, 32, 0.07);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.portal-referral-metrics strong {
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  line-height: 1.05;
}

.portal-referral-metrics small {
  align-self: end;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-promo-help {
  display: grid;
  gap: 0.75rem;
  padding: 1.1rem;
  border: 1px solid rgba(0, 184, 165, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.68);
}

.portal-promo-help h3 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.2rem, 2.6vw, 1.65rem);
  letter-spacing: -0.035em;
}

.portal-promo-help p,
.portal-promo-note {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.portal-promo-note {
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: rgba(255, 248, 224, 0.9);
  color: #6f4c00;
  font-weight: 800;
}

.portal-promo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.portal-promo-grid--standalone {
  position: relative;
  z-index: 1;
}

.portal-promo-card {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(11, 18, 32, 0.08);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 46px rgba(11, 18, 32, 0.08);
}

.portal-promo-card:first-child {
  grid-column: 1 / -1;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1fr);
}

.portal-promo-preview {
  display: grid;
  place-items: center;
  min-height: 13rem;
  padding: 1rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 184, 165, 0.18), transparent 38%),
    linear-gradient(145deg, rgba(7, 18, 33, 0.96), rgba(18, 58, 98, 0.92));
}

.portal-promo-preview img {
  display: block;
  max-width: 100%;
  max-height: 22rem;
  border-radius: 16px;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28);
}

.portal-promo-preview__pdf {
  display: block;
  width: min(100%, 18rem);
  height: 24rem;
  border: 0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28);
}

.portal-promo-body {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: 1.1rem;
}

.portal-promo-body h3 {
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  letter-spacing: -0.035em;
}

.portal-promo-body p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.portal-promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.portal-embed-code {
  display: grid;
  gap: 0.45rem;
}

.portal-embed-code span {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-embed-code textarea {
  width: 100%;
  min-height: 5.2rem;
  resize: vertical;
  border: 1px solid rgba(11, 18, 32, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  padding: 0.85rem;
  font: 0.82rem/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.portal-list {
  display: grid;
  gap: 0.7rem;
}

.portal-list__item,
.portal-empty {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(11, 18, 32, 0.07);
  border-radius: 20px;
  background: rgba(8, 29, 44, 0.045);
}

.portal-list__item--action {
  grid-template-columns: minmax(0, 1.1fr) auto auto auto;
  align-items: center;
  gap: 0.75rem;
}

.portal-list__item strong {
  min-width: 0;
}

.portal-list span {
  color: var(--ink-soft);
}

.portal-list em {
  width: fit-content;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  background: rgba(0, 184, 165, 0.12);
  color: #04786f;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
}

.portal-list a {
  justify-self: start;
  color: var(--brand-strong);
  font-weight: 900;
  text-decoration: none;
}

.portal-list--referrals .portal-list__item--action {
  grid-template-columns: minmax(0, 1.2fr) auto auto minmax(8rem, auto);
}

.portal-list small {
  color: var(--ink-soft);
  font-weight: 800;
}

.portal-empty {
  color: var(--ink-soft);
  font-weight: 700;
}

.portal-side-card {
  display: grid;
  gap: 0.55rem;
  min-height: 10rem;
  padding: 1.1rem;
  border: 1px solid rgba(11, 18, 32, 0.09);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-card);
}

.portal-side-card span {
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portal-side-card strong {
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.portal-side-card p {
  align-self: end;
  color: var(--ink-soft);
}

.portal-side-card--dark {
  min-height: 14rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 184, 165, 0.2), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(231, 247, 244, 0.82));
  color: var(--ink);
}

.portal-side-card--dark span,
.portal-side-card--dark p {
  color: var(--ink-soft);
}

.portal-side-card--accent {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 122, 89, 0.28), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 237, 232, 0.82));
  border-color: rgba(255, 122, 89, 0.18);
}

@media (max-width: 1080px) {
  .portal-login__layout,
  .portal-metrics {
    grid-template-columns: 1fr;
  }

  .portal-login__aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-side-card--dark {
    min-height: 10rem;
  }
}

@media (max-width: 720px) {
  .portal-page {
    padding: 2.4rem 0 3.6rem;
  }

  .portal-login__intro h1 {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  .portal-login__aside,
  .portal-referral-metrics,
  .portal-promo-grid,
  .portal-promo-card:first-child,
  .portal-referral-link-panel,
  .portal-list__item--action {
    grid-template-columns: 1fr;
  }

  .portal-hero__actions,
  .portal-referral-link-panel__actions {
    justify-content: flex-start;
  }

  .portal-card,
  .portal-side-card,
  .portal-metric {
    border-radius: 24px;
  }
}

.ba {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 8px);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(240, 246, 255, 0.92));
}

.ba__img {
  display: block;
  width: 100%;
  height: auto;
}

.ba__img--after {
  position: absolute;
  inset: 0;
  width: auto;
  height: 100%;
  clip-path: inset(0 50% 0 0);
  transition: clip-path 0.12s ease;
}

.ba__slider {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: ew-resize;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

.table-wrap {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}

.table th,
.table td {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table thead th {
  background: rgba(11, 18, 32, 0.04);
  font-weight: 700;
}

.table tbody tr:hover {
  background: rgba(0, 184, 165, 0.06);
}

.admin-nav-shell {
  position: relative;
  z-index: 20;
  padding-top: 0.6rem;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-card);
}

.admin-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.7rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.admin-nav__link:hover {
  background: rgba(11, 18, 32, 0.07);
}

.admin-nav__link--active {
  background: var(--ink);
  color: var(--white);
}

.dashboard-shell {
  display: grid;
  gap: 1.4rem;
}

.dashboard-meta {
  margin: -0.2rem 0 0;
  color: var(--ink-soft);
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.metric-card {
  display: grid;
  gap: 0.5rem;
}

.metric-card__value {
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.admin-filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.7fr) auto;
  gap: 1rem;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.admin-table-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.table-stack,
.inline-links,
.info-list {
  display: grid;
  gap: 0.3rem;
}

.inline-links a,
.leads-table__id {
  color: var(--ink);
  text-decoration: none;
}

.inline-links a:hover,
.leads-table__id:hover {
  text-decoration: underline;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.status-badge--new {
  background: rgba(255, 122, 89, 0.16);
  color: #a6432b;
}

.status-badge--contacted {
  background: rgba(0, 184, 165, 0.16);
  color: #046f65;
}

.status-badge--scheduled {
  background: rgba(85, 139, 241, 0.16);
  color: #325da7;
}

.status-badge--done {
  background: rgba(51, 143, 88, 0.16);
  color: #236140;
}

.status-badge--declined {
  background: rgba(162, 67, 67, 0.16);
  color: #813737;
}

.status-badge--deleted {
  background: rgba(75, 85, 99, 0.18);
  color: #475569;
}

.table-form {
  display: grid;
  gap: 0.45rem;
  min-width: 180px;
}

.table-form--compact {
  min-width: 0;
}

.table-form__hint {
  color: var(--ink-soft);
  line-height: 1.45;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 0.7rem;
  padding: 3rem 1.5rem;
  text-align: center;
}

details {
  margin: 0;
}

details > summary {
  cursor: pointer;
  list-style: none;
}

details > summary::-webkit-details-marker {
  display: none;
}

@media (max-width: 1180px) {
  .site-header__bar,
  .footer-shell,
  .dashboard-metrics,
  .grid--3 {
    grid-template-columns: 1fr;
  }

  .main-nav,
  .site-header__actions {
    justify-content: flex-start;
  }

  .site-header__bar {
    gap: 1rem;
  }

  .main-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    margin: 0 -0.15rem;
    padding-inline: 0.15rem;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav__link {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .site-header__actions {
    flex-wrap: wrap;
  }

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

  .admin-filter-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(calc(100% - 1.25rem), 100%);
  }

  .section {
    padding: 4.3rem 0;
  }

  .site-header {
    --header-bar-height: 4.9rem;
    padding: 0.18rem 0;
  }

  .form__grid,
  .grid--3,
  .admin-filter-grid,
  .footer-grid,
  .dashboard-metrics,
  .portal-grid,
  .portal-form {
    grid-template-columns: 1fr;
  }

  .portal-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .form__date-range {
    grid-template-columns: 1fr;
  }

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

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

  .footer-bottom,
  .form__actions {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .site-header__bar {
    gap: 0.85rem;
  }

  .site-header__actions {
    width: 100%;
    gap: 0.55rem;
  }

  .site-header__actions .btn,
  .site-header__actions .contact-pill {
    flex: 1 1 calc(50% - 0.28rem);
    justify-content: center;
  }

  .page-title,
  .page-hero__title {
    max-width: none;
  }

  .brand {
    gap: 0;
  }

  .brand__logo {
    display: block;
    height: 4.2rem;
    max-width: min(15rem, 82vw);
    margin: 0;
  }

  .brand__icon {
    display: none;
  }

  .hero-actions .btn,
  .cta-band__actions .btn,
  .footer-cta .btn,
  .form__actions .btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .container {
    width: calc(100% - 1rem);
  }

  .site-header {
    --header-bar-height: auto;
  }

  .brand__logo {
    display: block;
    height: 3.35rem;
    max-width: min(12rem, 82vw);
  }

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

  .site-header__actions .btn,
  .site-header__actions .contact-pill {
    width: 100%;
    flex: none;
  }

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

  .table th,
  .table td {
    white-space: nowrap;
  }
}

.footer-cookie-button {
  width: fit-content;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.24);
  text-underline-offset: 0.2em;
}

.footer-cookie-button:hover,
.footer-cookie-button:focus-visible {
  color: var(--white);
  text-decoration-color: currentColor;
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent {
  position: fixed;
  inset: auto 1.25rem 1.25rem auto;
  z-index: 1200;
  width: min(42rem, calc(100vw - 2.5rem));
  color: var(--white);
}

.cookie-consent__panel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 184, 165, 0.28), transparent 34%),
    linear-gradient(135deg, rgba(13, 22, 40, 0.98), rgba(19, 32, 58, 0.98));
  box-shadow: 0 28px 70px rgba(3, 7, 18, 0.34);
  padding: clamp(1.1rem, 2.4vw, 1.5rem);
}

.cookie-consent__copy {
  display: grid;
  gap: 0.45rem;
}

.cookie-consent__eyebrow {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cookie-consent h2 {
  color: var(--white);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
}

.cookie-consent p,
.cookie-consent small {
  color: rgba(255, 255, 255, 0.76);
}

.cookie-consent__settings {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.cookie-consent__settings[hidden] {
  display: none;
}

.cookie-consent__option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  padding: 0.85rem;
}

.cookie-consent__option input {
  width: 1.18rem;
  height: 1.18rem;
  margin-top: 0.18rem;
  accent-color: var(--brand);
}

.cookie-consent__option strong {
  display: block;
  color: var(--white);
  font-size: 0.94rem;
}

.cookie-consent__option small {
  display: block;
  margin-top: 0.2rem;
  line-height: 1.45;
}

.cookie-consent__option--required {
  opacity: 0.82;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 1.15rem;
}

.cookie-consent__actions [data-cookie-action='accept'],
.cookie-consent__actions [data-cookie-action='reject'] {
  border-color: rgba(255, 255, 255, 0.72);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 16px 30px rgba(3, 7, 18, 0.18);
}

.cookie-consent__actions [hidden] {
  display: none;
}

.cookie-consent__link {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration-color: rgba(255, 255, 255, 0.28);
  text-underline-offset: 0.2em;
}

.cookie-consent__link:hover,
.cookie-consent__link:focus-visible {
  color: var(--white);
}

/* v0.1.98: Mobile Grundhärtung für öffentliche Seiten. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
video,
iframe,
embed,
object {
  max-width: 100%;
}

.table-wrap,
.admin-table-shell,
.portal-list,
.mail-preview {
  max-width: 100%;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

a,
button,
input,
select,
textarea {
  min-width: 0;
}

@media (max-width: 760px) {
  .site-header__bar {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .main-nav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav__link {
    flex: 0 0 auto;
  }

  .form__grid,
  .form__date-range,
  .form__service-row {
    grid-template-columns: 1fr;
  }

  .form__service-quantity {
    width: 100%;
    justify-self: stretch;
  }

  .calculator-pv-meta__head,
  .calculator-pv-meta__grid,
  .calculator-facade-meta__head,
  .calculator-facade-meta__grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .calculator-pv-meta__head strong,
  .calculator-facade-meta__head strong {
    text-align: left;
  }

  .form__actions,
  .hero-actions,
  .footer-cta {
    align-items: stretch;
  }

  .form__actions .btn,
  .hero-actions .btn,
  .footer-cta .btn {
    width: 100%;
  }

  .cookie-consent {
    inset: auto 0.75rem 0.75rem 0.75rem;
    width: auto;
  }

  .cookie-consent__panel {
    border-radius: 22px;
  }

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

  .cookie-consent__actions .btn {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .brand__logo {
    height: 3rem;
    max-width: min(10.5rem, 78vw);
  }

  .btn,
  .contact-pill {
    min-height: 3rem;
    padding-inline: 0.85rem;
  }
}
.drone-service-ribbon {
  position: fixed;
  top: 50%;
  right: 1.4rem;
  z-index: 1400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 268px;
  padding: 0.8rem 1.1rem;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: right center;
  border: 1px solid rgba(120, 7, 15, 0.28);
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, #d11d27 0%, #b90f18 100%);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.16);
  white-space: nowrap;
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.drone-service-ribbon:hover,
.drone-service-ribbon:focus-visible {
  border-color: rgba(255, 255, 255, 0.12);
  background: #111827;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 0 34px rgba(0, 0, 0, 0.42);
  color: #ffffff;
  outline: none;
}

@media (max-width: 860px) {
  .drone-service-ribbon {
    right: 1.15rem;
    min-width: 224px;
    padding: 0.72rem 0.88rem;
    font-size: 0.79rem;
  }
}
